x/windmill/windmill-api/OauthApi.md
.OauthApi
All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
connectCallback | POST /oauth/connect_callback/{client_name} | connect callback |
connectSlackCallback | POST /oauth/connect_slack_callback | connect slack callback |
createAccount | POST /w/{workspace}/oauth/create_account | create OAuth account |
disconnectAccount | POST /w/{workspace}/oauth/disconnect/{id} | disconnect account |
disconnectSlack | POST /w/{workspace}/oauth/disconnect_slack | disconnect slack |
listOAuthConnects | GET /oauth/list_connects | list oauth connects |
listOAuthLogins | GET /oauth/list_logins | list oauth logins |
refreshToken | POST /w/{workspace}/oauth/refresh_token/{id} | refresh token |
setWorkspaceSlack | POST /w/{workspace}/oauth/set_workspace_slack | set workspace's slack |
connectCallback
TokenResponse connectCallback(inlineObject12)
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiConnectCallbackRequest = {
// string
clientName: "client_name_example",
// InlineObject12
inlineObject12: {
code: "code_example",
state: "state_example",
},
};
apiInstance.connectCallback(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
inlineObject12 | InlineObject12 | ||
clientName | [string] | defaults to undefined |
Return type
TokenResponse
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | oauth token | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
connectSlackCallback
SlackToken connectSlackCallback(inlineObject11)
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiConnectSlackCallbackRequest = {
// InlineObject11
inlineObject11: {
code: "code_example",
state: "state_example",
},
};
apiInstance.connectSlackCallback(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
inlineObject11 | InlineObject11 |
Return type
SlackToken
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | slack token | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createAccount
string createAccount(inlineObject13)
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiCreateAccountRequest = {
// string
workspace: "workspace_example",
// InlineObject13
inlineObject13: {
refreshToken: "refreshToken_example",
expiresIn: 1,
owner: "owner_example",
client: "client_example",
},
};
apiInstance.createAccount(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
inlineObject13 | InlineObject13 | ||
workspace | [string] | defaults to undefined |
Return type
string
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: text/plain
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | account set | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
disconnectAccount
string disconnectAccount()
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiDisconnectAccountRequest = {
// string
workspace: "workspace_example",
// string
id: "id_example",
};
apiInstance.disconnectAccount(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
workspace | [string] | defaults to undefined | |
id | [string] | defaults to undefined |
Return type
string
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | disconnected client | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
disconnectSlack
string disconnectSlack()
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiDisconnectSlackRequest = {
// string
workspace: "workspace_example",
};
apiInstance.disconnectSlack(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
workspace | [string] | defaults to undefined |
Return type
string
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: text/plain
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | disconnected slack | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listOAuthConnects
{ [key: string]: Array; } listOAuthConnects()
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:any = {};
apiInstance.listOAuthConnects(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
This endpoint does not need any parameter.
Return type
{ [key: string]: Array; }
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | list of oauth connects clients | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listOAuthLogins
Array listOAuthLogins()
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:any = {};
apiInstance.listOAuthLogins(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
This endpoint does not need any parameter.
Return type
Array
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | list of oauth login clients | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
refreshToken
string refreshToken(inlineObject14)
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiRefreshTokenRequest = {
// string
workspace: "workspace_example",
// string
id: "id_example",
// InlineObject14
inlineObject14: {
path: "path_example",
},
};
apiInstance.refreshToken(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
inlineObject14 | InlineObject14 | ||
workspace | [string] | defaults to undefined | |
id | [string] | defaults to undefined |
Return type
string
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: text/plain
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | token refreshed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setWorkspaceSlack
string setWorkspaceSlack(slackToken)
Example
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .OauthApi(configuration);
let body:.OauthApiSetWorkspaceSlackRequest = {
// string
workspace: "workspace_example",
// SlackToken
slackToken: {
accessToken: "accessToken_example",
teamId: "teamId_example",
teamName: "teamName_example",
bot: {
botAccessToken: "botAccessToken_example",
},
},
};
apiInstance.setWorkspaceSlack(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Parameters
Name | Type | Description | Notes |
---|---|---|---|
slackToken | SlackToken | ||
workspace | [string] | defaults to undefined |
Return type
string
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: text/plain
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | workspace slack is set | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]