windmill-client 0.3.5 → 0.3.7

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 (153) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +3 -1
  3. package/package.json +9 -2
  4. package/build.sh +0 -8
  5. package/client.ts +0 -364
  6. package/publish.sh +0 -5
  7. package/src/client.ts +0 -364
  8. package/src/core/ApiError.ts +0 -25
  9. package/src/core/ApiRequestOptions.ts +0 -17
  10. package/src/core/ApiResult.ts +0 -11
  11. package/src/core/CancelablePromise.ts +0 -131
  12. package/src/core/OpenAPI.ts +0 -32
  13. package/src/core/request.ts +0 -322
  14. package/src/index.ts +0 -148
  15. package/src/models/AccountId.ts +0 -6
  16. package/src/models/ActionKind.ts +0 -14
  17. package/src/models/After.ts +0 -9
  18. package/src/models/AppWithLastVersion.ts +0 -32
  19. package/src/models/AppWithLastVersionWDraft.ts +0 -12
  20. package/src/models/ArgsFilter.ts +0 -9
  21. package/src/models/AuditLog.ts +0 -43
  22. package/src/models/Before.ts +0 -9
  23. package/src/models/BranchAll.ts +0 -17
  24. package/src/models/BranchOne.ts +0 -17
  25. package/src/models/ClientName.ts +0 -6
  26. package/src/models/CompletedJob.ts +0 -73
  27. package/src/models/ContextualVariable.ts +0 -11
  28. package/src/models/CreateInput.ts +0 -10
  29. package/src/models/CreateResource.ts +0 -12
  30. package/src/models/CreateVariable.ts +0 -14
  31. package/src/models/CreateWorkspace.ts +0 -11
  32. package/src/models/CreatedBy.ts +0 -9
  33. package/src/models/EditResource.ts +0 -11
  34. package/src/models/EditResourceType.ts +0 -10
  35. package/src/models/EditSchedule.ts +0 -14
  36. package/src/models/EditVariable.ts +0 -12
  37. package/src/models/EditWorkspaceUser.ts +0 -11
  38. package/src/models/Flow.ts +0 -10
  39. package/src/models/FlowMetadata.ts +0 -17
  40. package/src/models/FlowModule.ts +0 -33
  41. package/src/models/FlowModuleValue.ts +0 -17
  42. package/src/models/FlowPreview.ts +0 -14
  43. package/src/models/FlowStatus.ts +0 -19
  44. package/src/models/FlowStatusModule.ts +0 -44
  45. package/src/models/FlowValue.ts +0 -13
  46. package/src/models/Folder.ts +0 -11
  47. package/src/models/ForloopFlow.ts +0 -16
  48. package/src/models/GlobalUserInfo.ts +0 -24
  49. package/src/models/Graphql.ts +0 -9
  50. package/src/models/Group.ts +0 -12
  51. package/src/models/Http.ts +0 -9
  52. package/src/models/Identity.ts +0 -10
  53. package/src/models/IncludeHeader.ts +0 -11
  54. package/src/models/Input.ts +0 -14
  55. package/src/models/InputId.ts +0 -6
  56. package/src/models/InputTransform.ts +0 -10
  57. package/src/models/JavascriptTransform.ts +0 -10
  58. package/src/models/Job.ts +0 -22
  59. package/src/models/JobId.ts +0 -6
  60. package/src/models/JobKinds.ts +0 -9
  61. package/src/models/ListableApp.ts +0 -28
  62. package/src/models/ListableRawApp.ts +0 -15
  63. package/src/models/ListableResource.ts +0 -20
  64. package/src/models/ListableVariable.ts +0 -20
  65. package/src/models/Login.ts +0 -10
  66. package/src/models/MainArgSignature.ts +0 -43
  67. package/src/models/Name.ts +0 -6
  68. package/src/models/NewJobId.ts +0 -9
  69. package/src/models/NewSchedule.ts +0 -18
  70. package/src/models/NewScript.ts +0 -44
  71. package/src/models/NewScriptWithDraft.ts +0 -12
  72. package/src/models/NewToken.ts +0 -11
  73. package/src/models/NewTokenImpersonate.ts +0 -11
  74. package/src/models/NewUser.ts +0 -11
  75. package/src/models/OpenFlow.ts +0 -14
  76. package/src/models/OpenFlowWPath.ts +0 -11
  77. package/src/models/Operation.ts +0 -9
  78. package/src/models/OrderDesc.ts +0 -9
  79. package/src/models/Page.ts +0 -9
  80. package/src/models/ParentJob.ts +0 -9
  81. package/src/models/Path.ts +0 -6
  82. package/src/models/PathFlow.ts +0 -13
  83. package/src/models/PathId.ts +0 -6
  84. package/src/models/PathScript.ts +0 -14
  85. package/src/models/Payload.ts +0 -11
  86. package/src/models/PerPage.ts +0 -9
  87. package/src/models/Policy.ts +0 -23
  88. package/src/models/Preview.ts +0 -37
  89. package/src/models/QueueLimit.ts +0 -10
  90. package/src/models/QueuedJob.ts +0 -71
  91. package/src/models/RawScript.ts +0 -31
  92. package/src/models/Resource.ts +0 -15
  93. package/src/models/ResourceName.ts +0 -9
  94. package/src/models/ResourceType.ts +0 -12
  95. package/src/models/ResultFilter.ts +0 -9
  96. package/src/models/Retry.ts +0 -17
  97. package/src/models/RunnableId.ts +0 -6
  98. package/src/models/RunnableType.ts +0 -10
  99. package/src/models/RunnableTypeQuery.ts +0 -8
  100. package/src/models/Running.ts +0 -9
  101. package/src/models/Schedule.ts +0 -23
  102. package/src/models/SchedulePath.ts +0 -9
  103. package/src/models/ScheduleWJobs.ts +0 -15
  104. package/src/models/Script.ts +0 -58
  105. package/src/models/ScriptArgs.ts +0 -6
  106. package/src/models/ScriptExactHash.ts +0 -9
  107. package/src/models/ScriptExactPath.ts +0 -9
  108. package/src/models/ScriptHash.ts +0 -6
  109. package/src/models/ScriptPath.ts +0 -6
  110. package/src/models/ScriptStartPath.ts +0 -9
  111. package/src/models/SlackToken.ts +0 -14
  112. package/src/models/StartedAfter.ts +0 -9
  113. package/src/models/StartedBefore.ts +0 -9
  114. package/src/models/StaticTransform.ts +0 -10
  115. package/src/models/Success.ts +0 -9
  116. package/src/models/Suspended.ts +0 -9
  117. package/src/models/Tag.ts +0 -9
  118. package/src/models/Token.ts +0 -6
  119. package/src/models/TokenResponse.ts +0 -12
  120. package/src/models/TruncatedToken.ts +0 -14
  121. package/src/models/UpdateInput.ts +0 -11
  122. package/src/models/Usage.ts +0 -9
  123. package/src/models/User.ts +0 -21
  124. package/src/models/UserWorkspaceList.ts +0 -14
  125. package/src/models/Username.ts +0 -9
  126. package/src/models/VersionId.ts +0 -6
  127. package/src/models/WorkerPing.ts +0 -14
  128. package/src/models/Workspace.ts +0 -12
  129. package/src/models/WorkspaceId.ts +0 -6
  130. package/src/models/WorkspaceInvite.ts +0 -12
  131. package/src/services/AdminService.ts +0 -91
  132. package/src/services/AppService.ts +0 -385
  133. package/src/services/AuditService.ts +0 -104
  134. package/src/services/CaptureService.ts +0 -80
  135. package/src/services/DraftService.ts +0 -63
  136. package/src/services/FavoriteService.ts +0 -63
  137. package/src/services/FlowService.ts +0 -369
  138. package/src/services/FolderService.ts +0 -270
  139. package/src/services/GranularAclService.ts +0 -105
  140. package/src/services/GroupService.ts +0 -239
  141. package/src/services/InputService.ts +0 -176
  142. package/src/services/JobService.ts +0 -1471
  143. package/src/services/OauthService.ts +0 -198
  144. package/src/services/RawAppService.ts +0 -210
  145. package/src/services/ResourceService.ts +0 -401
  146. package/src/services/ScheduleService.ts +0 -258
  147. package/src/services/ScriptService.ts +0 -517
  148. package/src/services/SettingsService.ts +0 -59
  149. package/src/services/UserService.ts +0 -614
  150. package/src/services/VariableService.ts +0 -221
  151. package/src/services/WorkerService.ts +0 -53
  152. package/src/services/WorkspaceService.ts +0 -494
  153. package/tsconfig.json +0 -110
@@ -1,369 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { Flow } from '../models/Flow';
6
- import type { Input } from '../models/Input';
7
- import type { OpenFlow } from '../models/OpenFlow';
8
- import type { OpenFlowWPath } from '../models/OpenFlowWPath';
9
-
10
- import type { CancelablePromise } from '../core/CancelablePromise';
11
- import { OpenAPI } from '../core/OpenAPI';
12
- import { request as __request } from '../core/request';
13
-
14
- export class FlowService {
15
-
16
- /**
17
- * list all available hub flows
18
- * @returns any hub flows list
19
- * @throws ApiError
20
- */
21
- public static listHubFlows(): CancelablePromise<{
22
- flows?: Array<{
23
- id: number;
24
- flow_id: number;
25
- summary: string;
26
- apps: Array<string>;
27
- approved: boolean;
28
- votes: number;
29
- }>;
30
- }> {
31
- return __request(OpenAPI, {
32
- method: 'GET',
33
- url: '/flows/hub/list',
34
- });
35
- }
36
-
37
- /**
38
- * get hub flow by id
39
- * @returns any flow
40
- * @throws ApiError
41
- */
42
- public static getHubFlowById({
43
- id,
44
- }: {
45
- id: number,
46
- }): CancelablePromise<{
47
- flow?: OpenFlow;
48
- }> {
49
- return __request(OpenAPI, {
50
- method: 'GET',
51
- url: '/flows/hub/get/{id}',
52
- path: {
53
- 'id': id,
54
- },
55
- });
56
- }
57
-
58
- /**
59
- * list all available flow paths
60
- * @returns string list of flow paths
61
- * @throws ApiError
62
- */
63
- public static listFlowPaths({
64
- workspace,
65
- }: {
66
- workspace: string,
67
- }): CancelablePromise<Array<string>> {
68
- return __request(OpenAPI, {
69
- method: 'GET',
70
- url: '/w/{workspace}/flows/list_paths',
71
- path: {
72
- 'workspace': workspace,
73
- },
74
- });
75
- }
76
-
77
- /**
78
- * list all available flows
79
- * @returns any All available flow
80
- * @throws ApiError
81
- */
82
- public static listFlows({
83
- workspace,
84
- page,
85
- perPage,
86
- orderDesc,
87
- createdBy,
88
- pathStart,
89
- pathExact,
90
- showArchived,
91
- starredOnly,
92
- }: {
93
- workspace: string,
94
- /**
95
- * which page to return (start at 1, default 1)
96
- */
97
- page?: number,
98
- /**
99
- * number of items to return for a given page (default 30, max 100)
100
- */
101
- perPage?: number,
102
- /**
103
- * order by desc order (default true)
104
- */
105
- orderDesc?: boolean,
106
- /**
107
- * mask to filter exact matching user creator
108
- */
109
- createdBy?: string,
110
- /**
111
- * mask to filter matching starting path
112
- */
113
- pathStart?: string,
114
- /**
115
- * mask to filter exact matching path
116
- */
117
- pathExact?: string,
118
- /**
119
- * (default false)
120
- * show also the archived files.
121
- * when multiple archived hash share the same path, only the ones with the latest create_at
122
- * are displayed.
123
- *
124
- */
125
- showArchived?: boolean,
126
- /**
127
- * (default false)
128
- * show only the starred items
129
- *
130
- */
131
- starredOnly?: boolean,
132
- }): CancelablePromise<Array<(Flow & {
133
- has_draft?: boolean;
134
- draft_only?: boolean;
135
- })>> {
136
- return __request(OpenAPI, {
137
- method: 'GET',
138
- url: '/w/{workspace}/flows/list',
139
- path: {
140
- 'workspace': workspace,
141
- },
142
- query: {
143
- 'page': page,
144
- 'per_page': perPage,
145
- 'order_desc': orderDesc,
146
- 'created_by': createdBy,
147
- 'path_start': pathStart,
148
- 'path_exact': pathExact,
149
- 'show_archived': showArchived,
150
- 'starred_only': starredOnly,
151
- },
152
- });
153
- }
154
-
155
- /**
156
- * get flow by path
157
- * @returns Flow flow details
158
- * @throws ApiError
159
- */
160
- public static getFlowByPath({
161
- workspace,
162
- path,
163
- }: {
164
- workspace: string,
165
- path: string,
166
- }): CancelablePromise<Flow> {
167
- return __request(OpenAPI, {
168
- method: 'GET',
169
- url: '/w/{workspace}/flows/get/{path}',
170
- path: {
171
- 'workspace': workspace,
172
- 'path': path,
173
- },
174
- });
175
- }
176
-
177
- /**
178
- * get flow by path with draft
179
- * @returns any flow details with draft
180
- * @throws ApiError
181
- */
182
- public static getFlowByPathWithDraft({
183
- workspace,
184
- path,
185
- }: {
186
- workspace: string,
187
- path: string,
188
- }): CancelablePromise<(Flow & {
189
- draft?: Flow;
190
- })> {
191
- return __request(OpenAPI, {
192
- method: 'GET',
193
- url: '/w/{workspace}/flows/get/draft/{path}',
194
- path: {
195
- 'workspace': workspace,
196
- 'path': path,
197
- },
198
- });
199
- }
200
-
201
- /**
202
- * exists flow by path
203
- * @returns boolean flow details
204
- * @throws ApiError
205
- */
206
- public static existsFlowByPath({
207
- workspace,
208
- path,
209
- }: {
210
- workspace: string,
211
- path: string,
212
- }): CancelablePromise<boolean> {
213
- return __request(OpenAPI, {
214
- method: 'GET',
215
- url: '/w/{workspace}/flows/exists/{path}',
216
- path: {
217
- 'workspace': workspace,
218
- 'path': path,
219
- },
220
- });
221
- }
222
-
223
- /**
224
- * create flow
225
- * @returns string flow created
226
- * @throws ApiError
227
- */
228
- public static createFlow({
229
- workspace,
230
- requestBody,
231
- }: {
232
- workspace: string,
233
- /**
234
- * Partially filled flow
235
- */
236
- requestBody: (OpenFlowWPath & {
237
- draft_only?: boolean;
238
- }),
239
- }): CancelablePromise<string> {
240
- return __request(OpenAPI, {
241
- method: 'POST',
242
- url: '/w/{workspace}/flows/create',
243
- path: {
244
- 'workspace': workspace,
245
- },
246
- body: requestBody,
247
- mediaType: 'application/json',
248
- });
249
- }
250
-
251
- /**
252
- * update flow
253
- * @returns string flow updated
254
- * @throws ApiError
255
- */
256
- public static updateFlow({
257
- workspace,
258
- path,
259
- requestBody,
260
- }: {
261
- workspace: string,
262
- path: string,
263
- /**
264
- * Partially filled flow
265
- */
266
- requestBody: OpenFlowWPath,
267
- }): CancelablePromise<string> {
268
- return __request(OpenAPI, {
269
- method: 'POST',
270
- url: '/w/{workspace}/flows/update/{path}',
271
- path: {
272
- 'workspace': workspace,
273
- 'path': path,
274
- },
275
- body: requestBody,
276
- mediaType: 'application/json',
277
- });
278
- }
279
-
280
- /**
281
- * archive flow by path
282
- * @returns string flow archived
283
- * @throws ApiError
284
- */
285
- public static archiveFlowByPath({
286
- workspace,
287
- path,
288
- requestBody,
289
- }: {
290
- workspace: string,
291
- path: string,
292
- /**
293
- * archiveFlow
294
- */
295
- requestBody: {
296
- archived?: boolean;
297
- },
298
- }): CancelablePromise<string> {
299
- return __request(OpenAPI, {
300
- method: 'POST',
301
- url: '/w/{workspace}/flows/archive/{path}',
302
- path: {
303
- 'workspace': workspace,
304
- 'path': path,
305
- },
306
- body: requestBody,
307
- mediaType: 'application/json',
308
- });
309
- }
310
-
311
- /**
312
- * delete flow by path
313
- * @returns string flow delete
314
- * @throws ApiError
315
- */
316
- public static deleteFlowByPath({
317
- workspace,
318
- path,
319
- }: {
320
- workspace: string,
321
- path: string,
322
- }): CancelablePromise<string> {
323
- return __request(OpenAPI, {
324
- method: 'DELETE',
325
- url: '/w/{workspace}/flows/delete/{path}',
326
- path: {
327
- 'workspace': workspace,
328
- 'path': path,
329
- },
330
- });
331
- }
332
-
333
- /**
334
- * list inputs for previous completed flow jobs
335
- * @returns Input input history for completed jobs with this flow path
336
- * @throws ApiError
337
- */
338
- public static getFlowInputHistoryByPath({
339
- workspace,
340
- path,
341
- page,
342
- perPage,
343
- }: {
344
- workspace: string,
345
- path: string,
346
- /**
347
- * which page to return (start at 1, default 1)
348
- */
349
- page?: number,
350
- /**
351
- * number of items to return for a given page (default 30, max 100)
352
- */
353
- perPage?: number,
354
- }): CancelablePromise<Array<Input>> {
355
- return __request(OpenAPI, {
356
- method: 'GET',
357
- url: '/w/{workspace}/flows/input_history/p/{path}',
358
- path: {
359
- 'workspace': workspace,
360
- 'path': path,
361
- },
362
- query: {
363
- 'page': page,
364
- 'per_page': perPage,
365
- },
366
- });
367
- }
368
-
369
- }
@@ -1,270 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { Folder } from '../models/Folder';
6
-
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- import { OpenAPI } from '../core/OpenAPI';
9
- import { request as __request } from '../core/request';
10
-
11
- export class FolderService {
12
-
13
- /**
14
- * list folders
15
- * @returns Folder folder list
16
- * @throws ApiError
17
- */
18
- public static listFolders({
19
- workspace,
20
- page,
21
- perPage,
22
- }: {
23
- workspace: string,
24
- /**
25
- * which page to return (start at 1, default 1)
26
- */
27
- page?: number,
28
- /**
29
- * number of items to return for a given page (default 30, max 100)
30
- */
31
- perPage?: number,
32
- }): CancelablePromise<Array<Folder>> {
33
- return __request(OpenAPI, {
34
- method: 'GET',
35
- url: '/w/{workspace}/folders/list',
36
- path: {
37
- 'workspace': workspace,
38
- },
39
- query: {
40
- 'page': page,
41
- 'per_page': perPage,
42
- },
43
- });
44
- }
45
-
46
- /**
47
- * list folder names
48
- * @returns string folder list
49
- * @throws ApiError
50
- */
51
- public static listFolderNames({
52
- workspace,
53
- onlyMemberOf,
54
- }: {
55
- workspace: string,
56
- /**
57
- * only list the folders the user is member of (default false)
58
- */
59
- onlyMemberOf?: boolean,
60
- }): CancelablePromise<Array<string>> {
61
- return __request(OpenAPI, {
62
- method: 'GET',
63
- url: '/w/{workspace}/folders/listnames',
64
- path: {
65
- 'workspace': workspace,
66
- },
67
- query: {
68
- 'only_member_of': onlyMemberOf,
69
- },
70
- });
71
- }
72
-
73
- /**
74
- * create folder
75
- * @returns string folder created
76
- * @throws ApiError
77
- */
78
- public static createFolder({
79
- workspace,
80
- requestBody,
81
- }: {
82
- workspace: string,
83
- /**
84
- * create folder
85
- */
86
- requestBody: {
87
- name: string;
88
- owners?: Array<string>;
89
- extra_perms?: any;
90
- },
91
- }): CancelablePromise<string> {
92
- return __request(OpenAPI, {
93
- method: 'POST',
94
- url: '/w/{workspace}/folders/create',
95
- path: {
96
- 'workspace': workspace,
97
- },
98
- body: requestBody,
99
- mediaType: 'application/json',
100
- });
101
- }
102
-
103
- /**
104
- * update folder
105
- * @returns string folder updated
106
- * @throws ApiError
107
- */
108
- public static updateFolder({
109
- workspace,
110
- name,
111
- requestBody,
112
- }: {
113
- workspace: string,
114
- name: string,
115
- /**
116
- * update folder
117
- */
118
- requestBody: {
119
- owners?: Array<string>;
120
- extra_perms?: any;
121
- },
122
- }): CancelablePromise<string> {
123
- return __request(OpenAPI, {
124
- method: 'POST',
125
- url: '/w/{workspace}/folders/update/{name}',
126
- path: {
127
- 'workspace': workspace,
128
- 'name': name,
129
- },
130
- body: requestBody,
131
- mediaType: 'application/json',
132
- });
133
- }
134
-
135
- /**
136
- * delete folder
137
- * @returns string folder deleted
138
- * @throws ApiError
139
- */
140
- public static deleteFolder({
141
- workspace,
142
- name,
143
- }: {
144
- workspace: string,
145
- name: string,
146
- }): CancelablePromise<string> {
147
- return __request(OpenAPI, {
148
- method: 'DELETE',
149
- url: '/w/{workspace}/folders/delete/{name}',
150
- path: {
151
- 'workspace': workspace,
152
- 'name': name,
153
- },
154
- });
155
- }
156
-
157
- /**
158
- * get folder
159
- * @returns Folder folder
160
- * @throws ApiError
161
- */
162
- public static getFolder({
163
- workspace,
164
- name,
165
- }: {
166
- workspace: string,
167
- name: string,
168
- }): CancelablePromise<Folder> {
169
- return __request(OpenAPI, {
170
- method: 'GET',
171
- url: '/w/{workspace}/folders/get/{name}',
172
- path: {
173
- 'workspace': workspace,
174
- 'name': name,
175
- },
176
- });
177
- }
178
-
179
- /**
180
- * get folder usage
181
- * @returns any folder
182
- * @throws ApiError
183
- */
184
- public static getFolderUsage({
185
- workspace,
186
- name,
187
- }: {
188
- workspace: string,
189
- name: string,
190
- }): CancelablePromise<{
191
- scripts: number;
192
- flows: number;
193
- apps: number;
194
- resources: number;
195
- variables: number;
196
- schedules: number;
197
- }> {
198
- return __request(OpenAPI, {
199
- method: 'GET',
200
- url: '/w/{workspace}/folders/getusage/{name}',
201
- path: {
202
- 'workspace': workspace,
203
- 'name': name,
204
- },
205
- });
206
- }
207
-
208
- /**
209
- * add owner to folder
210
- * @returns string owner added to folder
211
- * @throws ApiError
212
- */
213
- public static addOwnerToFolder({
214
- workspace,
215
- name,
216
- requestBody,
217
- }: {
218
- workspace: string,
219
- name: string,
220
- /**
221
- * owner user to folder
222
- */
223
- requestBody: {
224
- owner?: string;
225
- },
226
- }): CancelablePromise<string> {
227
- return __request(OpenAPI, {
228
- method: 'POST',
229
- url: '/w/{workspace}/folders/addowner/{name}',
230
- path: {
231
- 'workspace': workspace,
232
- 'name': name,
233
- },
234
- body: requestBody,
235
- mediaType: 'application/json',
236
- });
237
- }
238
-
239
- /**
240
- * remove owner to folder
241
- * @returns string owner removed from folder
242
- * @throws ApiError
243
- */
244
- public static removeOwnerToFolder({
245
- workspace,
246
- name,
247
- requestBody,
248
- }: {
249
- workspace: string,
250
- name: string,
251
- /**
252
- * added owner to folder
253
- */
254
- requestBody: {
255
- owner?: string;
256
- },
257
- }): CancelablePromise<string> {
258
- return __request(OpenAPI, {
259
- method: 'POST',
260
- url: '/w/{workspace}/folders/removeowner/{name}',
261
- path: {
262
- 'workspace': workspace,
263
- 'name': name,
264
- },
265
- body: requestBody,
266
- mediaType: 'application/json',
267
- });
268
- }
269
-
270
- }