windmill-client 0.2.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.
Files changed (198) hide show
  1. package/dist/core/ApiError.d.ts +10 -0
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.d.ts +13 -0
  4. package/dist/core/ApiRequestOptions.js +2 -0
  5. package/dist/core/ApiResult.d.ts +7 -0
  6. package/dist/core/ApiResult.js +2 -0
  7. package/dist/core/CancelablePromise.d.ts +26 -0
  8. package/dist/core/CancelablePromise.js +94 -0
  9. package/dist/core/OpenAPI.d.ts +16 -0
  10. package/dist/core/OpenAPI.js +14 -0
  11. package/dist/core/request.d.ts +13 -0
  12. package/dist/core/request.js +269 -0
  13. package/dist/index.d.ts +95 -0
  14. package/dist/index.js +85 -0
  15. package/dist/models/AppWithLastVersion.d.ts +21 -0
  16. package/dist/models/AppWithLastVersion.js +15 -0
  17. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  18. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  19. package/dist/models/AuditLog.d.ts +32 -0
  20. package/dist/models/AuditLog.js +32 -0
  21. package/dist/models/BranchAll.d.ts +10 -0
  22. package/dist/models/BranchAll.js +5 -0
  23. package/dist/models/BranchOne.d.ts +10 -0
  24. package/dist/models/BranchOne.js +5 -0
  25. package/dist/models/CompletedJob.d.ts +57 -0
  26. package/dist/models/CompletedJob.js +26 -0
  27. package/dist/models/ContextualVariable.d.ts +5 -0
  28. package/dist/models/ContextualVariable.js +5 -0
  29. package/dist/models/CreateInput.d.ts +4 -0
  30. package/dist/models/CreateInput.js +5 -0
  31. package/dist/models/CreateResource.d.ts +6 -0
  32. package/dist/models/CreateResource.js +5 -0
  33. package/dist/models/CreateVariable.d.ts +8 -0
  34. package/dist/models/CreateVariable.js +5 -0
  35. package/dist/models/CreateWorkspace.d.ts +5 -0
  36. package/dist/models/CreateWorkspace.js +5 -0
  37. package/dist/models/EditResource.d.ts +5 -0
  38. package/dist/models/EditResource.js +5 -0
  39. package/dist/models/EditResourceType.d.ts +4 -0
  40. package/dist/models/EditResourceType.js +5 -0
  41. package/dist/models/EditSchedule.d.ts +6 -0
  42. package/dist/models/EditSchedule.js +5 -0
  43. package/dist/models/EditVariable.d.ts +6 -0
  44. package/dist/models/EditVariable.js +5 -0
  45. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  46. package/dist/models/EditWorkspaceUser.js +5 -0
  47. package/dist/models/Flow.d.ts +3 -0
  48. package/dist/models/Flow.js +5 -0
  49. package/dist/models/FlowMetadata.d.ts +11 -0
  50. package/dist/models/FlowMetadata.js +5 -0
  51. package/dist/models/FlowModule.d.ts +18 -0
  52. package/dist/models/FlowModule.js +5 -0
  53. package/dist/models/FlowModuleValue.d.ts +8 -0
  54. package/dist/models/FlowModuleValue.js +5 -0
  55. package/dist/models/FlowPreview.d.ts +7 -0
  56. package/dist/models/FlowPreview.js +5 -0
  57. package/dist/models/FlowStatus.d.ts +12 -0
  58. package/dist/models/FlowStatus.js +5 -0
  59. package/dist/models/FlowStatusModule.d.ts +34 -0
  60. package/dist/models/FlowStatusModule.js +18 -0
  61. package/dist/models/FlowValue.d.ts +6 -0
  62. package/dist/models/FlowValue.js +5 -0
  63. package/dist/models/Folder.d.ts +5 -0
  64. package/dist/models/Folder.js +5 -0
  65. package/dist/models/ForloopFlow.d.ts +9 -0
  66. package/dist/models/ForloopFlow.js +5 -0
  67. package/dist/models/GlobalUserInfo.d.ts +14 -0
  68. package/dist/models/GlobalUserInfo.js +14 -0
  69. package/dist/models/Group.d.ts +6 -0
  70. package/dist/models/Group.js +5 -0
  71. package/dist/models/Identity.d.ts +4 -0
  72. package/dist/models/Identity.js +5 -0
  73. package/dist/models/Input.d.ts +8 -0
  74. package/dist/models/Input.js +5 -0
  75. package/dist/models/InputTransform.d.ts +3 -0
  76. package/dist/models/InputTransform.js +5 -0
  77. package/dist/models/JavascriptTransform.d.ts +4 -0
  78. package/dist/models/JavascriptTransform.js +5 -0
  79. package/dist/models/Job.d.ts +11 -0
  80. package/dist/models/Job.js +14 -0
  81. package/dist/models/ListableApp.d.ts +18 -0
  82. package/dist/models/ListableApp.js +15 -0
  83. package/dist/models/ListableResource.d.ts +14 -0
  84. package/dist/models/ListableResource.js +5 -0
  85. package/dist/models/ListableVariable.d.ts +14 -0
  86. package/dist/models/ListableVariable.js +5 -0
  87. package/dist/models/Login.d.ts +4 -0
  88. package/dist/models/Login.js +5 -0
  89. package/dist/models/MainArgSignature.d.ts +33 -0
  90. package/dist/models/MainArgSignature.js +14 -0
  91. package/dist/models/NewSchedule.d.ts +10 -0
  92. package/dist/models/NewSchedule.js +5 -0
  93. package/dist/models/NewScript.d.ts +29 -0
  94. package/dist/models/NewScript.js +24 -0
  95. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  96. package/dist/models/NewScriptWithDraft.js +5 -0
  97. package/dist/models/NewToken.d.ts +4 -0
  98. package/dist/models/NewToken.js +5 -0
  99. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  100. package/dist/models/NewTokenImpersonate.js +5 -0
  101. package/dist/models/NewUser.d.ts +5 -0
  102. package/dist/models/NewUser.js +5 -0
  103. package/dist/models/OpenFlow.d.ts +7 -0
  104. package/dist/models/OpenFlow.js +5 -0
  105. package/dist/models/OpenFlowWPath.d.ts +4 -0
  106. package/dist/models/OpenFlowWPath.js +5 -0
  107. package/dist/models/PathFlow.d.ts +6 -0
  108. package/dist/models/PathFlow.js +5 -0
  109. package/dist/models/PathScript.d.ts +7 -0
  110. package/dist/models/PathScript.js +5 -0
  111. package/dist/models/Policy.d.ts +13 -0
  112. package/dist/models/Policy.js +15 -0
  113. package/dist/models/Preview.d.ts +16 -0
  114. package/dist/models/Preview.js +16 -0
  115. package/dist/models/QueuedJob.d.ts +55 -0
  116. package/dist/models/QueuedJob.js +26 -0
  117. package/dist/models/RawScript.d.ts +18 -0
  118. package/dist/models/RawScript.js +16 -0
  119. package/dist/models/Resource.d.ts +9 -0
  120. package/dist/models/Resource.js +5 -0
  121. package/dist/models/ResourceType.d.ts +6 -0
  122. package/dist/models/ResourceType.js +5 -0
  123. package/dist/models/Retry.d.ts +11 -0
  124. package/dist/models/Retry.js +5 -0
  125. package/dist/models/RunnableType.d.ts +5 -0
  126. package/dist/models/RunnableType.js +12 -0
  127. package/dist/models/Schedule.d.ts +15 -0
  128. package/dist/models/Schedule.js +5 -0
  129. package/dist/models/Script.d.ts +43 -0
  130. package/dist/models/Script.js +24 -0
  131. package/dist/models/ScriptArgs.d.ts +1 -0
  132. package/dist/models/ScriptArgs.js +5 -0
  133. package/dist/models/SlackToken.d.ts +8 -0
  134. package/dist/models/SlackToken.js +5 -0
  135. package/dist/models/StaticTransform.d.ts +4 -0
  136. package/dist/models/StaticTransform.js +5 -0
  137. package/dist/models/TokenResponse.d.ts +6 -0
  138. package/dist/models/TokenResponse.js +5 -0
  139. package/dist/models/TruncatedToken.d.ts +7 -0
  140. package/dist/models/TruncatedToken.js +5 -0
  141. package/dist/models/UpdateInput.d.ts +5 -0
  142. package/dist/models/UpdateInput.js +5 -0
  143. package/dist/models/Usage.d.ts +3 -0
  144. package/dist/models/Usage.js +5 -0
  145. package/dist/models/User.d.ts +14 -0
  146. package/dist/models/User.js +5 -0
  147. package/dist/models/UserWorkspaceList.d.ts +8 -0
  148. package/dist/models/UserWorkspaceList.js +5 -0
  149. package/dist/models/WorkerPing.d.ts +8 -0
  150. package/dist/models/WorkerPing.js +5 -0
  151. package/dist/models/Workspace.d.ts +6 -0
  152. package/dist/models/Workspace.js +5 -0
  153. package/dist/models/WorkspaceInvite.d.ts +6 -0
  154. package/dist/models/WorkspaceInvite.js +5 -0
  155. package/dist/services/AdminService.d.ts +39 -0
  156. package/dist/services/AdminService.js +56 -0
  157. package/dist/services/AppService.d.ts +194 -0
  158. package/dist/services/AppService.js +211 -0
  159. package/dist/services/AuditService.d.ts +53 -0
  160. package/dist/services/AuditService.js +47 -0
  161. package/dist/services/CaptureService.d.ts +30 -0
  162. package/dist/services/CaptureService.js +56 -0
  163. package/dist/services/DraftService.d.ts +16 -0
  164. package/dist/services/DraftService.js +24 -0
  165. package/dist/services/FavoriteService.d.ts +27 -0
  166. package/dist/services/FavoriteService.js +40 -0
  167. package/dist/services/FlowService.d.ts +186 -0
  168. package/dist/services/FlowService.js +200 -0
  169. package/dist/services/FolderService.d.ts +128 -0
  170. package/dist/services/FolderService.js +155 -0
  171. package/dist/services/GranularAclService.d.ts +46 -0
  172. package/dist/services/GranularAclService.js +60 -0
  173. package/dist/services/GroupService.d.ts +110 -0
  174. package/dist/services/GroupService.js +140 -0
  175. package/dist/services/InputService.d.ts +78 -0
  176. package/dist/services/InputService.js +99 -0
  177. package/dist/services/JobService.d.ts +636 -0
  178. package/dist/services/JobService.js +564 -0
  179. package/dist/services/OauthService.d.ts +95 -0
  180. package/dist/services/OauthService.js +124 -0
  181. package/dist/services/ResourceService.d.ts +177 -0
  182. package/dist/services/ResourceService.js +244 -0
  183. package/dist/services/ScheduleService.d.ts +103 -0
  184. package/dist/services/ScheduleService.js +134 -0
  185. package/dist/services/ScriptService.d.ts +303 -0
  186. package/dist/services/ScriptService.js +339 -0
  187. package/dist/services/SettingsService.d.ts +15 -0
  188. package/dist/services/SettingsService.js +30 -0
  189. package/dist/services/UserService.d.ts +284 -0
  190. package/dist/services/UserService.js +376 -0
  191. package/dist/services/VariableService.d.ts +83 -0
  192. package/dist/services/VariableService.js +123 -0
  193. package/dist/services/WorkerService.d.ts +25 -0
  194. package/dist/services/WorkerService.js +34 -0
  195. package/dist/services/WorkspaceService.d.ts +227 -0
  196. package/dist/services/WorkspaceService.js +275 -0
  197. package/package.json +1 -1
  198. package/tsconfig.json +1 -1
@@ -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
+ }
@@ -0,0 +1,275 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class WorkspaceService {
7
+ /**
8
+ * list all workspaces visible to me
9
+ * @returns Workspace all workspaces
10
+ * @throws ApiError
11
+ */
12
+ static listWorkspaces() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/workspaces/list',
16
+ });
17
+ }
18
+ /**
19
+ * is domain allowed for auto invi
20
+ * @returns boolean domain allowed or not
21
+ * @throws ApiError
22
+ */
23
+ static isDomainAllowed() {
24
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
+ method: 'GET',
26
+ url: '/workspaces/allowed_domain_auto_invite',
27
+ });
28
+ }
29
+ /**
30
+ * list all workspaces visible to me with user info
31
+ * @returns UserWorkspaceList workspace with associated username
32
+ * @throws ApiError
33
+ */
34
+ static listUserWorkspaces() {
35
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
36
+ method: 'GET',
37
+ url: '/workspaces/users',
38
+ });
39
+ }
40
+ /**
41
+ * list all workspaces as super admin (require to be super admin)
42
+ * @returns Workspace workspaces
43
+ * @throws ApiError
44
+ */
45
+ static listWorkspacesAsSuperAdmin({ page, perPage, }) {
46
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
47
+ method: 'GET',
48
+ url: '/workspaces/list_as_superadmin',
49
+ query: {
50
+ 'page': page,
51
+ 'per_page': perPage,
52
+ },
53
+ });
54
+ }
55
+ /**
56
+ * create workspace
57
+ * @returns string token created
58
+ * @throws ApiError
59
+ */
60
+ static createWorkspace({ requestBody, }) {
61
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
+ method: 'POST',
63
+ url: '/workspaces/create',
64
+ body: requestBody,
65
+ mediaType: 'application/json',
66
+ });
67
+ }
68
+ /**
69
+ * exists workspace
70
+ * @returns boolean status
71
+ * @throws ApiError
72
+ */
73
+ static existsWorkspace({ requestBody, }) {
74
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
75
+ method: 'POST',
76
+ url: '/workspaces/exists',
77
+ body: requestBody,
78
+ mediaType: 'application/json',
79
+ });
80
+ }
81
+ /**
82
+ * exists username
83
+ * @returns boolean status
84
+ * @throws ApiError
85
+ */
86
+ static existsUsername({ requestBody, }) {
87
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
88
+ method: 'POST',
89
+ url: '/workspaces/exists_username',
90
+ body: requestBody,
91
+ mediaType: 'application/json',
92
+ });
93
+ }
94
+ /**
95
+ * invite user to workspace
96
+ * @returns string status
97
+ * @throws ApiError
98
+ */
99
+ static inviteUser({ workspace, requestBody, }) {
100
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
101
+ method: 'POST',
102
+ url: '/w/{workspace}/workspaces/invite_user',
103
+ path: {
104
+ 'workspace': workspace,
105
+ },
106
+ body: requestBody,
107
+ mediaType: 'application/json',
108
+ });
109
+ }
110
+ /**
111
+ * add user to workspace
112
+ * @returns string status
113
+ * @throws ApiError
114
+ */
115
+ static addUser({ workspace, requestBody, }) {
116
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
117
+ method: 'POST',
118
+ url: '/w/{workspace}/workspaces/add_user',
119
+ path: {
120
+ 'workspace': workspace,
121
+ },
122
+ body: requestBody,
123
+ mediaType: 'application/json',
124
+ });
125
+ }
126
+ /**
127
+ * delete user invite
128
+ * @returns string status
129
+ * @throws ApiError
130
+ */
131
+ static deleteInvite({ workspace, requestBody, }) {
132
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
133
+ method: 'POST',
134
+ url: '/w/{workspace}/workspaces/delete_invite',
135
+ path: {
136
+ 'workspace': workspace,
137
+ },
138
+ body: requestBody,
139
+ mediaType: 'application/json',
140
+ });
141
+ }
142
+ /**
143
+ * archive workspace
144
+ * @returns string status
145
+ * @throws ApiError
146
+ */
147
+ static archiveWorkspace({ workspace, }) {
148
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
149
+ method: 'POST',
150
+ url: '/w/{workspace}/workspaces/archive',
151
+ path: {
152
+ 'workspace': workspace,
153
+ },
154
+ });
155
+ }
156
+ /**
157
+ * unarchive workspace
158
+ * @returns string status
159
+ * @throws ApiError
160
+ */
161
+ static unarchiveWorkspace({ workspace, }) {
162
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
163
+ method: 'POST',
164
+ url: '/workspaces/unarchive/{workspace}',
165
+ path: {
166
+ 'workspace': workspace,
167
+ },
168
+ });
169
+ }
170
+ /**
171
+ * delete workspace (require super admin)
172
+ * @returns string status
173
+ * @throws ApiError
174
+ */
175
+ static deleteWorkspace({ workspace, }) {
176
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
177
+ method: 'DELETE',
178
+ url: '/workspaces/delete/{workspace}',
179
+ path: {
180
+ 'workspace': workspace,
181
+ },
182
+ });
183
+ }
184
+ /**
185
+ * list pending invites for a workspace
186
+ * @returns WorkspaceInvite user
187
+ * @throws ApiError
188
+ */
189
+ static listPendingInvites({ workspace, }) {
190
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
191
+ method: 'GET',
192
+ url: '/w/{workspace}/workspaces/list_pending_invites',
193
+ path: {
194
+ 'workspace': workspace,
195
+ },
196
+ });
197
+ }
198
+ /**
199
+ * get settings
200
+ * @returns any status
201
+ * @throws ApiError
202
+ */
203
+ static getSettings({ workspace, }) {
204
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
205
+ method: 'GET',
206
+ url: '/w/{workspace}/workspaces/get_settings',
207
+ path: {
208
+ 'workspace': workspace,
209
+ },
210
+ });
211
+ }
212
+ /**
213
+ * get premium info
214
+ * @returns any status
215
+ * @throws ApiError
216
+ */
217
+ static getPremiumInfo({ workspace, }) {
218
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
219
+ method: 'GET',
220
+ url: '/w/{workspace}/workspaces/premium_info',
221
+ path: {
222
+ 'workspace': workspace,
223
+ },
224
+ });
225
+ }
226
+ /**
227
+ * edit slack command
228
+ * @returns string status
229
+ * @throws ApiError
230
+ */
231
+ static editSlackCommand({ workspace, requestBody, }) {
232
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
233
+ method: 'POST',
234
+ url: '/w/{workspace}/workspaces/edit_slack_command',
235
+ path: {
236
+ 'workspace': workspace,
237
+ },
238
+ body: requestBody,
239
+ mediaType: 'application/json',
240
+ });
241
+ }
242
+ /**
243
+ * edit auto invite
244
+ * @returns string status
245
+ * @throws ApiError
246
+ */
247
+ static editAutoInvite({ workspace, requestBody, }) {
248
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
249
+ method: 'POST',
250
+ url: '/w/{workspace}/workspaces/edit_auto_invite',
251
+ path: {
252
+ 'workspace': workspace,
253
+ },
254
+ body: requestBody,
255
+ mediaType: 'application/json',
256
+ });
257
+ }
258
+ /**
259
+ * edit webhook
260
+ * @returns string status
261
+ * @throws ApiError
262
+ */
263
+ static editWebhook({ workspace, requestBody, }) {
264
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
265
+ method: 'POST',
266
+ url: '/w/{workspace}/workspaces/edit_webhook',
267
+ path: {
268
+ 'workspace': workspace,
269
+ },
270
+ body: requestBody,
271
+ mediaType: 'application/json',
272
+ });
273
+ }
274
+ }
275
+ exports.WorkspaceService = WorkspaceService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "dependencies": {},
package/tsconfig.json CHANGED
@@ -13,7 +13,7 @@
13
13
  // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
14
14
 
15
15
  /* Language and Environment */
16
- "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
16
+ "target": "es2018" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
17
17
  // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
18
18
  // "jsx": "preserve", /* Specify what JSX code is generated. */
19
19
  // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */