Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/types/PromiseAPI.ts>PromiseOauthApi

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class PromiseOauthApi
import { PromiseOauthApi } from "https://deno.land/x/windmill@v1.38.0/windmill-api/types/PromiseAPI.ts";

Constructors

new
PromiseOauthApi(
configuration: Configuration,
requestFactory?: OauthApiRequestFactory,
responseProcessor?: OauthApiResponseProcessor,
)

Methods

connectCallback(
clientName: string,
inlineObject12: InlineObject12,
_options?: Configuration,
): Promise<TokenResponse>

connect callback

connectSlackCallback(inlineObject11: InlineObject11, _options?: Configuration): Promise<SlackToken>

connect slack callback

createAccount(
workspace: string,
inlineObject13: InlineObject13,
_options?: Configuration,
): Promise<string>

create OAuth account

disconnectAccount(
workspace: string,
id: string,
_options?: Configuration,
): Promise<string>

disconnect account

disconnectSlack(workspace: string, _options?: Configuration): Promise<string>

disconnect slack

listOAuthConnects(_options?: Configuration): Promise<{ [key: string]: InlineResponse2001; }>

list oauth connects

listOAuthLogins(_options?: Configuration): Promise<Array<string>>

list oauth logins

refreshToken(
workspace: string,
id: string,
inlineObject14: InlineObject14,
_options?: Configuration,
): Promise<string>

refresh token

setWorkspaceSlack(
workspace: string,
slackToken: SlackToken,
_options?: Configuration,
): Promise<string>

set workspace's slack