windmill-client 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ApiError.d.ts +10 -0
- package/dist/core/ApiError.js +15 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiRequestOptions.js +2 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/ApiResult.js +2 -0
- package/dist/core/CancelablePromise.d.ts +26 -0
- package/dist/core/CancelablePromise.js +94 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/OpenAPI.js +14 -0
- package/dist/core/request.d.ts +13 -0
- package/dist/core/request.js +269 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.js +85 -0
- package/dist/models/AppWithLastVersion.d.ts +21 -0
- package/dist/models/AppWithLastVersion.js +15 -0
- package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
- package/dist/models/AppWithLastVersionWDraft.js +5 -0
- package/dist/models/AuditLog.d.ts +32 -0
- package/dist/models/AuditLog.js +32 -0
- package/dist/models/BranchAll.d.ts +10 -0
- package/dist/models/BranchAll.js +5 -0
- package/dist/models/BranchOne.d.ts +10 -0
- package/dist/models/BranchOne.js +5 -0
- package/dist/models/CompletedJob.d.ts +57 -0
- package/dist/models/CompletedJob.js +26 -0
- package/dist/models/ContextualVariable.d.ts +5 -0
- package/dist/models/ContextualVariable.js +5 -0
- package/dist/models/CreateInput.d.ts +4 -0
- package/dist/models/CreateInput.js +5 -0
- package/dist/models/CreateResource.d.ts +6 -0
- package/dist/models/CreateResource.js +5 -0
- package/dist/models/CreateVariable.d.ts +8 -0
- package/dist/models/CreateVariable.js +5 -0
- package/dist/models/CreateWorkspace.d.ts +5 -0
- package/dist/models/CreateWorkspace.js +5 -0
- package/dist/models/EditResource.d.ts +5 -0
- package/dist/models/EditResource.js +5 -0
- package/dist/models/EditResourceType.d.ts +4 -0
- package/dist/models/EditResourceType.js +5 -0
- package/dist/models/EditSchedule.d.ts +6 -0
- package/dist/models/EditSchedule.js +5 -0
- package/dist/models/EditVariable.d.ts +6 -0
- package/dist/models/EditVariable.js +5 -0
- package/dist/models/EditWorkspaceUser.d.ts +5 -0
- package/dist/models/EditWorkspaceUser.js +5 -0
- package/dist/models/Flow.d.ts +3 -0
- package/dist/models/Flow.js +5 -0
- package/dist/models/FlowMetadata.d.ts +11 -0
- package/dist/models/FlowMetadata.js +5 -0
- package/dist/models/FlowModule.d.ts +18 -0
- package/dist/models/FlowModule.js +5 -0
- package/dist/models/FlowModuleValue.d.ts +8 -0
- package/dist/models/FlowModuleValue.js +5 -0
- package/dist/models/FlowPreview.d.ts +7 -0
- package/dist/models/FlowPreview.js +5 -0
- package/dist/models/FlowStatus.d.ts +12 -0
- package/dist/models/FlowStatus.js +5 -0
- package/dist/models/FlowStatusModule.d.ts +34 -0
- package/dist/models/FlowStatusModule.js +18 -0
- package/dist/models/FlowValue.d.ts +6 -0
- package/dist/models/FlowValue.js +5 -0
- package/dist/models/Folder.d.ts +5 -0
- package/dist/models/Folder.js +5 -0
- package/dist/models/ForloopFlow.d.ts +9 -0
- package/dist/models/ForloopFlow.js +5 -0
- package/dist/models/GlobalUserInfo.d.ts +14 -0
- package/dist/models/GlobalUserInfo.js +14 -0
- package/dist/models/Group.d.ts +6 -0
- package/dist/models/Group.js +5 -0
- package/dist/models/Identity.d.ts +4 -0
- package/dist/models/Identity.js +5 -0
- package/dist/models/Input.d.ts +8 -0
- package/dist/models/Input.js +5 -0
- package/dist/models/InputTransform.d.ts +3 -0
- package/dist/models/InputTransform.js +5 -0
- package/dist/models/JavascriptTransform.d.ts +4 -0
- package/dist/models/JavascriptTransform.js +5 -0
- package/dist/models/Job.d.ts +11 -0
- package/dist/models/Job.js +14 -0
- package/dist/models/ListableApp.d.ts +18 -0
- package/dist/models/ListableApp.js +15 -0
- package/dist/models/ListableResource.d.ts +14 -0
- package/dist/models/ListableResource.js +5 -0
- package/dist/models/ListableVariable.d.ts +14 -0
- package/dist/models/ListableVariable.js +5 -0
- package/dist/models/Login.d.ts +4 -0
- package/dist/models/Login.js +5 -0
- package/dist/models/MainArgSignature.d.ts +33 -0
- package/dist/models/MainArgSignature.js +14 -0
- package/dist/models/NewSchedule.d.ts +10 -0
- package/dist/models/NewSchedule.js +5 -0
- package/dist/models/NewScript.d.ts +29 -0
- package/dist/models/NewScript.js +24 -0
- package/dist/models/NewScriptWithDraft.d.ts +5 -0
- package/dist/models/NewScriptWithDraft.js +5 -0
- package/dist/models/NewToken.d.ts +4 -0
- package/dist/models/NewToken.js +5 -0
- package/dist/models/NewTokenImpersonate.d.ts +5 -0
- package/dist/models/NewTokenImpersonate.js +5 -0
- package/dist/models/NewUser.d.ts +5 -0
- package/dist/models/NewUser.js +5 -0
- package/dist/models/OpenFlow.d.ts +7 -0
- package/dist/models/OpenFlow.js +5 -0
- package/dist/models/OpenFlowWPath.d.ts +4 -0
- package/dist/models/OpenFlowWPath.js +5 -0
- package/dist/models/PathFlow.d.ts +6 -0
- package/dist/models/PathFlow.js +5 -0
- package/dist/models/PathScript.d.ts +7 -0
- package/dist/models/PathScript.js +5 -0
- package/dist/models/Policy.d.ts +13 -0
- package/dist/models/Policy.js +15 -0
- package/dist/models/Preview.d.ts +16 -0
- package/dist/models/Preview.js +16 -0
- package/dist/models/QueuedJob.d.ts +55 -0
- package/dist/models/QueuedJob.js +26 -0
- package/dist/models/RawScript.d.ts +18 -0
- package/dist/models/RawScript.js +16 -0
- package/dist/models/Resource.d.ts +9 -0
- package/dist/models/Resource.js +5 -0
- package/dist/models/ResourceType.d.ts +6 -0
- package/dist/models/ResourceType.js +5 -0
- package/dist/models/Retry.d.ts +11 -0
- package/dist/models/Retry.js +5 -0
- package/dist/models/RunnableType.d.ts +5 -0
- package/dist/models/RunnableType.js +12 -0
- package/dist/models/Schedule.d.ts +15 -0
- package/dist/models/Schedule.js +5 -0
- package/dist/models/Script.d.ts +43 -0
- package/dist/models/Script.js +24 -0
- package/dist/models/ScriptArgs.d.ts +1 -0
- package/dist/models/ScriptArgs.js +5 -0
- package/dist/models/SlackToken.d.ts +8 -0
- package/dist/models/SlackToken.js +5 -0
- package/dist/models/StaticTransform.d.ts +4 -0
- package/dist/models/StaticTransform.js +5 -0
- package/dist/models/TokenResponse.d.ts +6 -0
- package/dist/models/TokenResponse.js +5 -0
- package/dist/models/TruncatedToken.d.ts +7 -0
- package/dist/models/TruncatedToken.js +5 -0
- package/dist/models/UpdateInput.d.ts +5 -0
- package/dist/models/UpdateInput.js +5 -0
- package/dist/models/Usage.d.ts +3 -0
- package/dist/models/Usage.js +5 -0
- package/dist/models/User.d.ts +14 -0
- package/dist/models/User.js +5 -0
- package/dist/models/UserWorkspaceList.d.ts +8 -0
- package/dist/models/UserWorkspaceList.js +5 -0
- package/dist/models/WorkerPing.d.ts +8 -0
- package/dist/models/WorkerPing.js +5 -0
- package/dist/models/Workspace.d.ts +6 -0
- package/dist/models/Workspace.js +5 -0
- package/dist/models/WorkspaceInvite.d.ts +6 -0
- package/dist/models/WorkspaceInvite.js +5 -0
- package/dist/services/AdminService.d.ts +39 -0
- package/dist/services/AdminService.js +56 -0
- package/dist/services/AppService.d.ts +194 -0
- package/dist/services/AppService.js +211 -0
- package/dist/services/AuditService.d.ts +53 -0
- package/dist/services/AuditService.js +47 -0
- package/dist/services/CaptureService.d.ts +30 -0
- package/dist/services/CaptureService.js +56 -0
- package/dist/services/DraftService.d.ts +16 -0
- package/dist/services/DraftService.js +24 -0
- package/dist/services/FavoriteService.d.ts +27 -0
- package/dist/services/FavoriteService.js +40 -0
- package/dist/services/FlowService.d.ts +186 -0
- package/dist/services/FlowService.js +200 -0
- package/dist/services/FolderService.d.ts +128 -0
- package/dist/services/FolderService.js +155 -0
- package/dist/services/GranularAclService.d.ts +46 -0
- package/dist/services/GranularAclService.js +60 -0
- package/dist/services/GroupService.d.ts +110 -0
- package/dist/services/GroupService.js +140 -0
- package/dist/services/InputService.d.ts +78 -0
- package/dist/services/InputService.js +99 -0
- package/dist/services/JobService.d.ts +636 -0
- package/dist/services/JobService.js +564 -0
- package/dist/services/OauthService.d.ts +95 -0
- package/dist/services/OauthService.js +124 -0
- package/dist/services/ResourceService.d.ts +177 -0
- package/dist/services/ResourceService.js +244 -0
- package/dist/services/ScheduleService.d.ts +103 -0
- package/dist/services/ScheduleService.js +134 -0
- package/dist/services/ScriptService.d.ts +303 -0
- package/dist/services/ScriptService.js +339 -0
- package/dist/services/SettingsService.d.ts +15 -0
- package/dist/services/SettingsService.js +30 -0
- package/dist/services/UserService.d.ts +284 -0
- package/dist/services/UserService.js +376 -0
- package/dist/services/VariableService.d.ts +83 -0
- package/dist/services/VariableService.js +123 -0
- package/dist/services/WorkerService.d.ts +25 -0
- package/dist/services/WorkerService.js +34 -0
- package/dist/services/WorkspaceService.d.ts +227 -0
- package/dist/services/WorkspaceService.js +275 -0
- package/package.json +7 -2
- package/src/core/ApiError.d.ts +10 -0
- package/src/core/ApiRequestOptions.d.ts +13 -0
- package/src/core/ApiResult.d.ts +7 -0
- package/src/core/CancelablePromise.d.ts +26 -0
- package/src/core/OpenAPI.d.ts +16 -0
- package/src/core/request.d.ts +13 -0
- package/src/index.d.ts +95 -0
- package/src/models/AppWithLastVersion.d.ts +21 -0
- package/src/models/AppWithLastVersionWDraft.d.ts +5 -0
- package/src/models/AuditLog.d.ts +32 -0
- package/src/models/BranchAll.d.ts +10 -0
- package/src/models/BranchOne.d.ts +10 -0
- package/src/models/CompletedJob.d.ts +57 -0
- package/src/models/ContextualVariable.d.ts +5 -0
- package/src/models/CreateInput.d.ts +4 -0
- package/src/models/CreateResource.d.ts +6 -0
- package/src/models/CreateVariable.d.ts +8 -0
- package/src/models/CreateWorkspace.d.ts +5 -0
- package/src/models/EditResource.d.ts +5 -0
- package/src/models/EditResourceType.d.ts +4 -0
- package/src/models/EditSchedule.d.ts +6 -0
- package/src/models/EditVariable.d.ts +6 -0
- package/src/models/EditWorkspaceUser.d.ts +5 -0
- package/src/models/Flow.d.ts +3 -0
- package/src/models/FlowMetadata.d.ts +11 -0
- package/src/models/FlowModule.d.ts +18 -0
- package/src/models/FlowModuleValue.d.ts +8 -0
- package/src/models/FlowPreview.d.ts +7 -0
- package/src/models/FlowStatus.d.ts +12 -0
- package/src/models/FlowStatusModule.d.ts +34 -0
- package/src/models/FlowValue.d.ts +6 -0
- package/src/models/Folder.d.ts +5 -0
- package/src/models/ForloopFlow.d.ts +9 -0
- package/src/models/GlobalUserInfo.d.ts +14 -0
- package/src/models/Group.d.ts +6 -0
- package/src/models/Identity.d.ts +4 -0
- package/src/models/Input.d.ts +8 -0
- package/src/models/InputTransform.d.ts +3 -0
- package/src/models/JavascriptTransform.d.ts +4 -0
- package/src/models/Job.d.ts +11 -0
- package/src/models/ListableApp.d.ts +18 -0
- package/src/models/ListableResource.d.ts +14 -0
- package/src/models/ListableVariable.d.ts +14 -0
- package/src/models/Login.d.ts +4 -0
- package/src/models/MainArgSignature.d.ts +33 -0
- package/src/models/NewSchedule.d.ts +10 -0
- package/src/models/NewScript.d.ts +29 -0
- package/src/models/NewScriptWithDraft.d.ts +5 -0
- package/src/models/NewToken.d.ts +4 -0
- package/src/models/NewTokenImpersonate.d.ts +5 -0
- package/src/models/NewUser.d.ts +5 -0
- package/src/models/OpenFlow.d.ts +7 -0
- package/src/models/OpenFlowWPath.d.ts +4 -0
- package/src/models/PathFlow.d.ts +6 -0
- package/src/models/PathScript.d.ts +7 -0
- package/src/models/Policy.d.ts +13 -0
- package/src/models/Preview.d.ts +16 -0
- package/src/models/QueuedJob.d.ts +55 -0
- package/src/models/RawScript.d.ts +18 -0
- package/src/models/Resource.d.ts +9 -0
- package/src/models/ResourceType.d.ts +6 -0
- package/src/models/Retry.d.ts +11 -0
- package/src/models/RunnableType.d.ts +5 -0
- package/src/models/Schedule.d.ts +15 -0
- package/src/models/Script.d.ts +43 -0
- package/src/models/ScriptArgs.d.ts +1 -0
- package/src/models/SlackToken.d.ts +8 -0
- package/src/models/StaticTransform.d.ts +4 -0
- package/src/models/TokenResponse.d.ts +6 -0
- package/src/models/TruncatedToken.d.ts +7 -0
- package/src/models/UpdateInput.d.ts +5 -0
- package/src/models/Usage.d.ts +3 -0
- package/src/models/User.d.ts +14 -0
- package/src/models/UserWorkspaceList.d.ts +8 -0
- package/src/models/WorkerPing.d.ts +8 -0
- package/src/models/Workspace.d.ts +6 -0
- package/src/models/WorkspaceInvite.d.ts +6 -0
- package/src/services/AdminService.d.ts +39 -0
- package/src/services/AppService.d.ts +194 -0
- package/src/services/AuditService.d.ts +53 -0
- package/src/services/CaptureService.d.ts +30 -0
- package/src/services/DraftService.d.ts +16 -0
- package/src/services/FavoriteService.d.ts +27 -0
- package/src/services/FlowService.d.ts +186 -0
- package/src/services/FolderService.d.ts +128 -0
- package/src/services/GranularAclService.d.ts +46 -0
- package/src/services/GroupService.d.ts +110 -0
- package/src/services/InputService.d.ts +78 -0
- package/src/services/JobService.d.ts +636 -0
- package/src/services/OauthService.d.ts +95 -0
- package/src/services/ResourceService.d.ts +177 -0
- package/src/services/ScheduleService.d.ts +103 -0
- package/src/services/ScriptService.d.ts +303 -0
- package/src/services/SettingsService.d.ts +15 -0
- package/src/services/UserService.d.ts +284 -0
- package/src/services/VariableService.d.ts +83 -0
- package/src/services/WorkerService.d.ts +25 -0
- package/src/services/WorkspaceService.d.ts +227 -0
- package/tsconfig.json +111 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import type { EditWorkspaceUser } from '../models/EditWorkspaceUser';
|
|
2
|
+
import type { GlobalUserInfo } from '../models/GlobalUserInfo';
|
|
3
|
+
import type { Login } from '../models/Login';
|
|
4
|
+
import type { NewToken } from '../models/NewToken';
|
|
5
|
+
import type { NewTokenImpersonate } from '../models/NewTokenImpersonate';
|
|
6
|
+
import type { NewUser } from '../models/NewUser';
|
|
7
|
+
import type { TruncatedToken } from '../models/TruncatedToken';
|
|
8
|
+
import type { User } from '../models/User';
|
|
9
|
+
import type { WorkspaceInvite } from '../models/WorkspaceInvite';
|
|
10
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
|
+
export declare class UserService {
|
|
12
|
+
/**
|
|
13
|
+
* login with password
|
|
14
|
+
* @returns string Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.
|
|
15
|
+
*
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static login({ requestBody, }: {
|
|
19
|
+
/**
|
|
20
|
+
* credentials
|
|
21
|
+
*/
|
|
22
|
+
requestBody: Login;
|
|
23
|
+
}): CancelablePromise<string>;
|
|
24
|
+
/**
|
|
25
|
+
* logout
|
|
26
|
+
* @returns string clear cookies and clear token (if applicable)
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static logout(): CancelablePromise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* create user (require admin privilege)
|
|
32
|
+
* @returns string user created
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static createUser({ workspace, requestBody, }: {
|
|
36
|
+
workspace: string;
|
|
37
|
+
/**
|
|
38
|
+
* new user
|
|
39
|
+
*/
|
|
40
|
+
requestBody: NewUser;
|
|
41
|
+
}): CancelablePromise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* update user (require admin privilege)
|
|
44
|
+
* @returns string edited user
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static updateUser({ workspace, username, requestBody, }: {
|
|
48
|
+
workspace: string;
|
|
49
|
+
username: string;
|
|
50
|
+
/**
|
|
51
|
+
* new user
|
|
52
|
+
*/
|
|
53
|
+
requestBody: EditWorkspaceUser;
|
|
54
|
+
}): CancelablePromise<string>;
|
|
55
|
+
/**
|
|
56
|
+
* is owner of path
|
|
57
|
+
* @returns boolean is owner
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static isOwnerOfPath({ workspace, path, }: {
|
|
61
|
+
workspace: string;
|
|
62
|
+
path: string;
|
|
63
|
+
}): CancelablePromise<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* set password
|
|
66
|
+
* @returns string password set
|
|
67
|
+
* @throws ApiError
|
|
68
|
+
*/
|
|
69
|
+
static setPassword({ requestBody, }: {
|
|
70
|
+
/**
|
|
71
|
+
* set password
|
|
72
|
+
*/
|
|
73
|
+
requestBody: {
|
|
74
|
+
password: string;
|
|
75
|
+
};
|
|
76
|
+
}): CancelablePromise<string>;
|
|
77
|
+
/**
|
|
78
|
+
* create user
|
|
79
|
+
* @returns string user created
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static createUserGlobally({ requestBody, }: {
|
|
83
|
+
/**
|
|
84
|
+
* user info
|
|
85
|
+
*/
|
|
86
|
+
requestBody: {
|
|
87
|
+
email: string;
|
|
88
|
+
password: string;
|
|
89
|
+
super_admin: boolean;
|
|
90
|
+
name?: string;
|
|
91
|
+
company?: string;
|
|
92
|
+
};
|
|
93
|
+
}): CancelablePromise<string>;
|
|
94
|
+
/**
|
|
95
|
+
* global update user (require super admin)
|
|
96
|
+
* @returns string user updated
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static globalUserUpdate({ email, requestBody, }: {
|
|
100
|
+
email: string;
|
|
101
|
+
/**
|
|
102
|
+
* new user info
|
|
103
|
+
*/
|
|
104
|
+
requestBody: {
|
|
105
|
+
is_super_admin?: boolean;
|
|
106
|
+
};
|
|
107
|
+
}): CancelablePromise<string>;
|
|
108
|
+
/**
|
|
109
|
+
* global delete user (require super admin)
|
|
110
|
+
* @returns string user deleted
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static globalUserDelete({ email, }: {
|
|
114
|
+
email: string;
|
|
115
|
+
}): CancelablePromise<string>;
|
|
116
|
+
/**
|
|
117
|
+
* delete user (require admin privilege)
|
|
118
|
+
* @returns string delete user
|
|
119
|
+
* @throws ApiError
|
|
120
|
+
*/
|
|
121
|
+
static deleteUser({ workspace, username, }: {
|
|
122
|
+
workspace: string;
|
|
123
|
+
username: string;
|
|
124
|
+
}): CancelablePromise<string>;
|
|
125
|
+
/**
|
|
126
|
+
* get current user email (if logged in)
|
|
127
|
+
* @returns string user email
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
static getCurrentEmail(): CancelablePromise<string>;
|
|
131
|
+
/**
|
|
132
|
+
* get current usage outside of premium workspaces
|
|
133
|
+
* @returns number free usage
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
static getUsage(): CancelablePromise<number>;
|
|
137
|
+
/**
|
|
138
|
+
* get current global whoami (if logged in)
|
|
139
|
+
* @returns GlobalUserInfo user email
|
|
140
|
+
* @throws ApiError
|
|
141
|
+
*/
|
|
142
|
+
static globalWhoami(): CancelablePromise<GlobalUserInfo>;
|
|
143
|
+
/**
|
|
144
|
+
* list all workspace invites
|
|
145
|
+
* @returns WorkspaceInvite list all workspace invites
|
|
146
|
+
* @throws ApiError
|
|
147
|
+
*/
|
|
148
|
+
static listWorkspaceInvites(): CancelablePromise<Array<WorkspaceInvite>>;
|
|
149
|
+
/**
|
|
150
|
+
* whoami
|
|
151
|
+
* @returns User user
|
|
152
|
+
* @throws ApiError
|
|
153
|
+
*/
|
|
154
|
+
static whoami({ workspace, }: {
|
|
155
|
+
workspace: string;
|
|
156
|
+
}): CancelablePromise<User>;
|
|
157
|
+
/**
|
|
158
|
+
* leave workspace
|
|
159
|
+
* @returns string status
|
|
160
|
+
* @throws ApiError
|
|
161
|
+
*/
|
|
162
|
+
static leaveWorkspace({ workspace, }: {
|
|
163
|
+
workspace: string;
|
|
164
|
+
}): CancelablePromise<string>;
|
|
165
|
+
/**
|
|
166
|
+
* accept invite to workspace
|
|
167
|
+
* @returns string status
|
|
168
|
+
* @throws ApiError
|
|
169
|
+
*/
|
|
170
|
+
static acceptInvite({ requestBody, }: {
|
|
171
|
+
/**
|
|
172
|
+
* accept invite
|
|
173
|
+
*/
|
|
174
|
+
requestBody: {
|
|
175
|
+
workspace_id: string;
|
|
176
|
+
username: string;
|
|
177
|
+
};
|
|
178
|
+
}): CancelablePromise<string>;
|
|
179
|
+
/**
|
|
180
|
+
* decline invite to workspace
|
|
181
|
+
* @returns string status
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
static declineInvite({ requestBody, }: {
|
|
185
|
+
/**
|
|
186
|
+
* decline invite
|
|
187
|
+
*/
|
|
188
|
+
requestBody: {
|
|
189
|
+
workspace_id: string;
|
|
190
|
+
};
|
|
191
|
+
}): CancelablePromise<string>;
|
|
192
|
+
/**
|
|
193
|
+
* whois
|
|
194
|
+
* @returns User user
|
|
195
|
+
* @throws ApiError
|
|
196
|
+
*/
|
|
197
|
+
static whois({ workspace, username, }: {
|
|
198
|
+
workspace: string;
|
|
199
|
+
username: string;
|
|
200
|
+
}): CancelablePromise<User>;
|
|
201
|
+
/**
|
|
202
|
+
* list all users as super admin (require to be super amdin)
|
|
203
|
+
* @returns GlobalUserInfo user
|
|
204
|
+
* @throws ApiError
|
|
205
|
+
*/
|
|
206
|
+
static listUsersAsSuperAdmin({ page, perPage, }: {
|
|
207
|
+
/**
|
|
208
|
+
* which page to return (start at 1, default 1)
|
|
209
|
+
*/
|
|
210
|
+
page?: number;
|
|
211
|
+
/**
|
|
212
|
+
* number of items to return for a given page (default 30, max 100)
|
|
213
|
+
*/
|
|
214
|
+
perPage?: number;
|
|
215
|
+
}): CancelablePromise<Array<GlobalUserInfo>>;
|
|
216
|
+
/**
|
|
217
|
+
* list users
|
|
218
|
+
* @returns User user
|
|
219
|
+
* @throws ApiError
|
|
220
|
+
*/
|
|
221
|
+
static listUsers({ workspace, }: {
|
|
222
|
+
workspace: string;
|
|
223
|
+
}): CancelablePromise<Array<User>>;
|
|
224
|
+
/**
|
|
225
|
+
* list usernames
|
|
226
|
+
* @returns string user
|
|
227
|
+
* @throws ApiError
|
|
228
|
+
*/
|
|
229
|
+
static listUsernames({ workspace, }: {
|
|
230
|
+
workspace: string;
|
|
231
|
+
}): CancelablePromise<Array<string>>;
|
|
232
|
+
/**
|
|
233
|
+
* create token
|
|
234
|
+
* @returns string token created
|
|
235
|
+
* @throws ApiError
|
|
236
|
+
*/
|
|
237
|
+
static createToken({ requestBody, }: {
|
|
238
|
+
/**
|
|
239
|
+
* new token
|
|
240
|
+
*/
|
|
241
|
+
requestBody: NewToken;
|
|
242
|
+
}): CancelablePromise<string>;
|
|
243
|
+
/**
|
|
244
|
+
* create token to impersonate a user (require superadmin)
|
|
245
|
+
* @returns string token created
|
|
246
|
+
* @throws ApiError
|
|
247
|
+
*/
|
|
248
|
+
static createTokenImpersonate({ requestBody, }: {
|
|
249
|
+
/**
|
|
250
|
+
* new token
|
|
251
|
+
*/
|
|
252
|
+
requestBody: NewTokenImpersonate;
|
|
253
|
+
}): CancelablePromise<string>;
|
|
254
|
+
/**
|
|
255
|
+
* delete token
|
|
256
|
+
* @returns string delete token
|
|
257
|
+
* @throws ApiError
|
|
258
|
+
*/
|
|
259
|
+
static deleteToken({ tokenPrefix, }: {
|
|
260
|
+
tokenPrefix: string;
|
|
261
|
+
}): CancelablePromise<string>;
|
|
262
|
+
/**
|
|
263
|
+
* list token
|
|
264
|
+
* @returns TruncatedToken truncated token
|
|
265
|
+
* @throws ApiError
|
|
266
|
+
*/
|
|
267
|
+
static listTokens(): CancelablePromise<Array<TruncatedToken>>;
|
|
268
|
+
/**
|
|
269
|
+
* login with oauth authorization flow
|
|
270
|
+
* @returns string Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.
|
|
271
|
+
*
|
|
272
|
+
* @throws ApiError
|
|
273
|
+
*/
|
|
274
|
+
static loginWithOauth({ clientName, requestBody, }: {
|
|
275
|
+
clientName: string;
|
|
276
|
+
/**
|
|
277
|
+
* Partially filled script
|
|
278
|
+
*/
|
|
279
|
+
requestBody: {
|
|
280
|
+
code?: string;
|
|
281
|
+
state?: string;
|
|
282
|
+
};
|
|
283
|
+
}): CancelablePromise<string>;
|
|
284
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { ContextualVariable } from '../models/ContextualVariable';
|
|
2
|
+
import type { CreateVariable } from '../models/CreateVariable';
|
|
3
|
+
import type { EditVariable } from '../models/EditVariable';
|
|
4
|
+
import type { ListableVariable } from '../models/ListableVariable';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class VariableService {
|
|
7
|
+
/**
|
|
8
|
+
* create variable
|
|
9
|
+
* @returns string variable created
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static createVariable({ workspace, requestBody, alreadyEncrypted, }: {
|
|
13
|
+
workspace: string;
|
|
14
|
+
/**
|
|
15
|
+
* new variable
|
|
16
|
+
*/
|
|
17
|
+
requestBody: CreateVariable;
|
|
18
|
+
alreadyEncrypted?: boolean;
|
|
19
|
+
}): CancelablePromise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* delete variable
|
|
22
|
+
* @returns string variable deleted
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static deleteVariable({ workspace, path, }: {
|
|
26
|
+
workspace: string;
|
|
27
|
+
path: string;
|
|
28
|
+
}): CancelablePromise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* update variable
|
|
31
|
+
* @returns string variable updated
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static updateVariable({ workspace, path, requestBody, alreadyEncrypted, }: {
|
|
35
|
+
workspace: string;
|
|
36
|
+
path: string;
|
|
37
|
+
/**
|
|
38
|
+
* updated variable
|
|
39
|
+
*/
|
|
40
|
+
requestBody: EditVariable;
|
|
41
|
+
alreadyEncrypted?: boolean;
|
|
42
|
+
}): CancelablePromise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* get variable
|
|
45
|
+
* @returns ListableVariable variable
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static getVariable({ workspace, path, decryptSecret, }: {
|
|
49
|
+
workspace: string;
|
|
50
|
+
path: string;
|
|
51
|
+
/**
|
|
52
|
+
* ask to decrypt secret if this variable is secret
|
|
53
|
+
* (if not secret no effect, default: true)
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
decryptSecret?: boolean;
|
|
57
|
+
}): CancelablePromise<ListableVariable>;
|
|
58
|
+
/**
|
|
59
|
+
* does variable exists at path
|
|
60
|
+
* @returns boolean variable
|
|
61
|
+
* @throws ApiError
|
|
62
|
+
*/
|
|
63
|
+
static existsVariable({ workspace, path, }: {
|
|
64
|
+
workspace: string;
|
|
65
|
+
path: string;
|
|
66
|
+
}): CancelablePromise<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* list variables
|
|
69
|
+
* @returns ListableVariable variable list
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static listVariable({ workspace, }: {
|
|
73
|
+
workspace: string;
|
|
74
|
+
}): CancelablePromise<Array<ListableVariable>>;
|
|
75
|
+
/**
|
|
76
|
+
* list contextual variables
|
|
77
|
+
* @returns ContextualVariable contextual variable list
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static listContextualVariables({ workspace, }: {
|
|
81
|
+
workspace: string;
|
|
82
|
+
}): CancelablePromise<Array<ContextualVariable>>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WorkerPing } from '../models/WorkerPing';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class WorkerService {
|
|
4
|
+
/**
|
|
5
|
+
* get all instance custom tags (tags are used to dispatch jobs to different worker groups)
|
|
6
|
+
* @returns string list of custom tags
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static getCustomTags(): CancelablePromise<Array<string>>;
|
|
10
|
+
/**
|
|
11
|
+
* list workers
|
|
12
|
+
* @returns WorkerPing a list of workers
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static listWorkers({ page, perPage, }: {
|
|
16
|
+
/**
|
|
17
|
+
* which page to return (start at 1, default 1)
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
/**
|
|
21
|
+
* number of items to return for a given page (default 30, max 100)
|
|
22
|
+
*/
|
|
23
|
+
perPage?: number;
|
|
24
|
+
}): CancelablePromise<Array<WorkerPing>>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import type { CreateWorkspace } from '../models/CreateWorkspace';
|
|
2
|
+
import type { UserWorkspaceList } from '../models/UserWorkspaceList';
|
|
3
|
+
import type { Workspace } from '../models/Workspace';
|
|
4
|
+
import type { WorkspaceInvite } from '../models/WorkspaceInvite';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class WorkspaceService {
|
|
7
|
+
/**
|
|
8
|
+
* list all workspaces visible to me
|
|
9
|
+
* @returns Workspace all workspaces
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listWorkspaces(): CancelablePromise<Array<Workspace>>;
|
|
13
|
+
/**
|
|
14
|
+
* is domain allowed for auto invi
|
|
15
|
+
* @returns boolean domain allowed or not
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static isDomainAllowed(): CancelablePromise<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* list all workspaces visible to me with user info
|
|
21
|
+
* @returns UserWorkspaceList workspace with associated username
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static listUserWorkspaces(): CancelablePromise<UserWorkspaceList>;
|
|
25
|
+
/**
|
|
26
|
+
* list all workspaces as super admin (require to be super admin)
|
|
27
|
+
* @returns Workspace workspaces
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static listWorkspacesAsSuperAdmin({ page, perPage, }: {
|
|
31
|
+
/**
|
|
32
|
+
* which page to return (start at 1, default 1)
|
|
33
|
+
*/
|
|
34
|
+
page?: number;
|
|
35
|
+
/**
|
|
36
|
+
* number of items to return for a given page (default 30, max 100)
|
|
37
|
+
*/
|
|
38
|
+
perPage?: number;
|
|
39
|
+
}): CancelablePromise<Array<Workspace>>;
|
|
40
|
+
/**
|
|
41
|
+
* create workspace
|
|
42
|
+
* @returns string token created
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static createWorkspace({ requestBody, }: {
|
|
46
|
+
/**
|
|
47
|
+
* new token
|
|
48
|
+
*/
|
|
49
|
+
requestBody: CreateWorkspace;
|
|
50
|
+
}): CancelablePromise<string>;
|
|
51
|
+
/**
|
|
52
|
+
* exists workspace
|
|
53
|
+
* @returns boolean status
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static existsWorkspace({ requestBody, }: {
|
|
57
|
+
/**
|
|
58
|
+
* id of workspace
|
|
59
|
+
*/
|
|
60
|
+
requestBody: {
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
63
|
+
}): CancelablePromise<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* exists username
|
|
66
|
+
* @returns boolean status
|
|
67
|
+
* @throws ApiError
|
|
68
|
+
*/
|
|
69
|
+
static existsUsername({ requestBody, }: {
|
|
70
|
+
requestBody: {
|
|
71
|
+
id: string;
|
|
72
|
+
username: string;
|
|
73
|
+
};
|
|
74
|
+
}): CancelablePromise<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* invite user to workspace
|
|
77
|
+
* @returns string status
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static inviteUser({ workspace, requestBody, }: {
|
|
81
|
+
workspace: string;
|
|
82
|
+
/**
|
|
83
|
+
* WorkspaceInvite
|
|
84
|
+
*/
|
|
85
|
+
requestBody: {
|
|
86
|
+
email: string;
|
|
87
|
+
is_admin: boolean;
|
|
88
|
+
operator: boolean;
|
|
89
|
+
};
|
|
90
|
+
}): CancelablePromise<string>;
|
|
91
|
+
/**
|
|
92
|
+
* add user to workspace
|
|
93
|
+
* @returns string status
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static addUser({ workspace, requestBody, }: {
|
|
97
|
+
workspace: string;
|
|
98
|
+
/**
|
|
99
|
+
* WorkspaceInvite
|
|
100
|
+
*/
|
|
101
|
+
requestBody: {
|
|
102
|
+
email: string;
|
|
103
|
+
is_admin: boolean;
|
|
104
|
+
username: string;
|
|
105
|
+
operator: boolean;
|
|
106
|
+
};
|
|
107
|
+
}): CancelablePromise<string>;
|
|
108
|
+
/**
|
|
109
|
+
* delete user invite
|
|
110
|
+
* @returns string status
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static deleteInvite({ workspace, requestBody, }: {
|
|
114
|
+
workspace: string;
|
|
115
|
+
/**
|
|
116
|
+
* WorkspaceInvite
|
|
117
|
+
*/
|
|
118
|
+
requestBody: {
|
|
119
|
+
email: string;
|
|
120
|
+
is_admin: boolean;
|
|
121
|
+
operator: boolean;
|
|
122
|
+
};
|
|
123
|
+
}): CancelablePromise<string>;
|
|
124
|
+
/**
|
|
125
|
+
* archive workspace
|
|
126
|
+
* @returns string status
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
static archiveWorkspace({ workspace, }: {
|
|
130
|
+
workspace: string;
|
|
131
|
+
}): CancelablePromise<string>;
|
|
132
|
+
/**
|
|
133
|
+
* unarchive workspace
|
|
134
|
+
* @returns string status
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static unarchiveWorkspace({ workspace, }: {
|
|
138
|
+
workspace: string;
|
|
139
|
+
}): CancelablePromise<string>;
|
|
140
|
+
/**
|
|
141
|
+
* delete workspace (require super admin)
|
|
142
|
+
* @returns string status
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
static deleteWorkspace({ workspace, }: {
|
|
146
|
+
workspace: string;
|
|
147
|
+
}): CancelablePromise<string>;
|
|
148
|
+
/**
|
|
149
|
+
* list pending invites for a workspace
|
|
150
|
+
* @returns WorkspaceInvite user
|
|
151
|
+
* @throws ApiError
|
|
152
|
+
*/
|
|
153
|
+
static listPendingInvites({ workspace, }: {
|
|
154
|
+
workspace: string;
|
|
155
|
+
}): CancelablePromise<Array<WorkspaceInvite>>;
|
|
156
|
+
/**
|
|
157
|
+
* get settings
|
|
158
|
+
* @returns any status
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static getSettings({ workspace, }: {
|
|
162
|
+
workspace: string;
|
|
163
|
+
}): CancelablePromise<{
|
|
164
|
+
workspace_id?: string;
|
|
165
|
+
slack_name?: string;
|
|
166
|
+
slack_team_id?: string;
|
|
167
|
+
slack_command_script?: string;
|
|
168
|
+
auto_invite_domain?: string;
|
|
169
|
+
auto_invite_operator?: boolean;
|
|
170
|
+
plan?: string;
|
|
171
|
+
customer_id?: string;
|
|
172
|
+
webhook?: string;
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* get premium info
|
|
176
|
+
* @returns any status
|
|
177
|
+
* @throws ApiError
|
|
178
|
+
*/
|
|
179
|
+
static getPremiumInfo({ workspace, }: {
|
|
180
|
+
workspace: string;
|
|
181
|
+
}): CancelablePromise<{
|
|
182
|
+
premium: boolean;
|
|
183
|
+
usage?: number;
|
|
184
|
+
}>;
|
|
185
|
+
/**
|
|
186
|
+
* edit slack command
|
|
187
|
+
* @returns string status
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
static editSlackCommand({ workspace, requestBody, }: {
|
|
191
|
+
workspace: string;
|
|
192
|
+
/**
|
|
193
|
+
* WorkspaceInvite
|
|
194
|
+
*/
|
|
195
|
+
requestBody: {
|
|
196
|
+
slack_command_script?: string;
|
|
197
|
+
};
|
|
198
|
+
}): CancelablePromise<string>;
|
|
199
|
+
/**
|
|
200
|
+
* edit auto invite
|
|
201
|
+
* @returns string status
|
|
202
|
+
* @throws ApiError
|
|
203
|
+
*/
|
|
204
|
+
static editAutoInvite({ workspace, requestBody, }: {
|
|
205
|
+
workspace: string;
|
|
206
|
+
/**
|
|
207
|
+
* WorkspaceInvite
|
|
208
|
+
*/
|
|
209
|
+
requestBody: {
|
|
210
|
+
operator?: boolean;
|
|
211
|
+
};
|
|
212
|
+
}): CancelablePromise<string>;
|
|
213
|
+
/**
|
|
214
|
+
* edit webhook
|
|
215
|
+
* @returns string status
|
|
216
|
+
* @throws ApiError
|
|
217
|
+
*/
|
|
218
|
+
static editWebhook({ workspace, requestBody, }: {
|
|
219
|
+
workspace: string;
|
|
220
|
+
/**
|
|
221
|
+
* WorkspaceWebhook
|
|
222
|
+
*/
|
|
223
|
+
requestBody: {
|
|
224
|
+
webhook?: string;
|
|
225
|
+
};
|
|
226
|
+
}): CancelablePromise<string>;
|
|
227
|
+
}
|