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,517 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { NewScript } from '../models/NewScript';
6
- import type { NewScriptWithDraft } from '../models/NewScriptWithDraft';
7
- import type { Script } from '../models/Script';
8
-
9
- import type { CancelablePromise } from '../core/CancelablePromise';
10
- import { OpenAPI } from '../core/OpenAPI';
11
- import { request as __request } from '../core/request';
12
-
13
- export class ScriptService {
14
-
15
- /**
16
- * list all available hub scripts
17
- * @returns any hub scripts list
18
- * @throws ApiError
19
- */
20
- public static listHubScripts(): CancelablePromise<{
21
- asks?: Array<{
22
- id: number;
23
- ask_id: number;
24
- summary: string;
25
- app: string;
26
- approved: boolean;
27
- kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
28
- votes: number;
29
- views: number;
30
- }>;
31
- }> {
32
- return __request(OpenAPI, {
33
- method: 'GET',
34
- url: '/scripts/hub/list',
35
- });
36
- }
37
-
38
- /**
39
- * get hub script content by path
40
- * @returns string script details
41
- * @throws ApiError
42
- */
43
- public static getHubScriptContentByPath({
44
- path,
45
- }: {
46
- path: string,
47
- }): CancelablePromise<string> {
48
- return __request(OpenAPI, {
49
- method: 'GET',
50
- url: '/scripts/hub/get/{path}',
51
- path: {
52
- 'path': path,
53
- },
54
- });
55
- }
56
-
57
- /**
58
- * get full hub script by path
59
- * @returns any script details
60
- * @throws ApiError
61
- */
62
- public static getHubScriptByPath({
63
- path,
64
- }: {
65
- path: string,
66
- }): CancelablePromise<{
67
- content: string;
68
- lockfile?: string;
69
- schema?: any;
70
- language: string;
71
- summary?: string;
72
- }> {
73
- return __request(OpenAPI, {
74
- method: 'GET',
75
- url: '/scripts/hub/get_full/{path}',
76
- path: {
77
- 'path': path,
78
- },
79
- });
80
- }
81
-
82
- /**
83
- * list all available scripts
84
- * @returns Script All available scripts
85
- * @throws ApiError
86
- */
87
- public static listScripts({
88
- workspace,
89
- page,
90
- perPage,
91
- orderDesc,
92
- createdBy,
93
- pathStart,
94
- pathExact,
95
- firstParentHash,
96
- lastParentHash,
97
- parentHash,
98
- showArchived,
99
- isTemplate,
100
- kind,
101
- starredOnly,
102
- }: {
103
- workspace: string,
104
- /**
105
- * which page to return (start at 1, default 1)
106
- */
107
- page?: number,
108
- /**
109
- * number of items to return for a given page (default 30, max 100)
110
- */
111
- perPage?: number,
112
- /**
113
- * order by desc order (default true)
114
- */
115
- orderDesc?: boolean,
116
- /**
117
- * mask to filter exact matching user creator
118
- */
119
- createdBy?: string,
120
- /**
121
- * mask to filter matching starting path
122
- */
123
- pathStart?: string,
124
- /**
125
- * mask to filter exact matching path
126
- */
127
- pathExact?: string,
128
- /**
129
- * mask to filter scripts whom first direct parent has exact hash
130
- */
131
- firstParentHash?: string,
132
- /**
133
- * mask to filter scripts whom last parent in the chain has exact hash.
134
- * Beware that each script stores only a limited number of parents. Hence
135
- * the last parent hash for a script is not necessarily its top-most parent.
136
- * To find the top-most parent you will have to jump from last to last hash
137
- * until finding the parent
138
- *
139
- */
140
- lastParentHash?: string,
141
- /**
142
- * is the hash present in the array of stored parent hashes for this script.
143
- * The same warning applies than for last_parent_hash. A script only store a
144
- * limited number of direct parent
145
- *
146
- */
147
- parentHash?: string,
148
- /**
149
- * (default false)
150
- * show also the archived files.
151
- * when multiple archived hash share the same path, only the ones with the latest create_at
152
- * are
153
- * ed.
154
- *
155
- */
156
- showArchived?: boolean,
157
- /**
158
- * (default regardless)
159
- * if true show only the templates
160
- * if false show only the non templates
161
- * if not defined, show all regardless of if the script is a template
162
- *
163
- */
164
- isTemplate?: boolean,
165
- /**
166
- * (default regardless)
167
- * script kind
168
- *
169
- */
170
- kind?: string,
171
- /**
172
- * (default false)
173
- * show only the starred items
174
- *
175
- */
176
- starredOnly?: boolean,
177
- }): CancelablePromise<Array<Script>> {
178
- return __request(OpenAPI, {
179
- method: 'GET',
180
- url: '/w/{workspace}/scripts/list',
181
- path: {
182
- 'workspace': workspace,
183
- },
184
- query: {
185
- 'page': page,
186
- 'per_page': perPage,
187
- 'order_desc': orderDesc,
188
- 'created_by': createdBy,
189
- 'path_start': pathStart,
190
- 'path_exact': pathExact,
191
- 'first_parent_hash': firstParentHash,
192
- 'last_parent_hash': lastParentHash,
193
- 'parent_hash': parentHash,
194
- 'show_archived': showArchived,
195
- 'is_template': isTemplate,
196
- 'kind': kind,
197
- 'starred_only': starredOnly,
198
- },
199
- });
200
- }
201
-
202
- /**
203
- * list all available scripts paths
204
- * @returns string list of script paths
205
- * @throws ApiError
206
- */
207
- public static listScriptPaths({
208
- workspace,
209
- }: {
210
- workspace: string,
211
- }): CancelablePromise<Array<string>> {
212
- return __request(OpenAPI, {
213
- method: 'GET',
214
- url: '/w/{workspace}/scripts/list_paths',
215
- path: {
216
- 'workspace': workspace,
217
- },
218
- });
219
- }
220
-
221
- /**
222
- * create script
223
- * @returns string script created
224
- * @throws ApiError
225
- */
226
- public static createScript({
227
- workspace,
228
- requestBody,
229
- }: {
230
- workspace: string,
231
- /**
232
- * Partially filled script
233
- */
234
- requestBody: NewScript,
235
- }): CancelablePromise<string> {
236
- return __request(OpenAPI, {
237
- method: 'POST',
238
- url: '/w/{workspace}/scripts/create',
239
- path: {
240
- 'workspace': workspace,
241
- },
242
- body: requestBody,
243
- mediaType: 'application/json',
244
- });
245
- }
246
-
247
- /**
248
- * archive script by path
249
- * @returns string script archived
250
- * @throws ApiError
251
- */
252
- public static archiveScriptByPath({
253
- workspace,
254
- path,
255
- }: {
256
- workspace: string,
257
- path: string,
258
- }): CancelablePromise<string> {
259
- return __request(OpenAPI, {
260
- method: 'POST',
261
- url: '/w/{workspace}/scripts/archive/p/{path}',
262
- path: {
263
- 'workspace': workspace,
264
- 'path': path,
265
- },
266
- });
267
- }
268
-
269
- /**
270
- * archive script by hash
271
- * @returns Script script details
272
- * @throws ApiError
273
- */
274
- public static archiveScriptByHash({
275
- workspace,
276
- hash,
277
- }: {
278
- workspace: string,
279
- hash: string,
280
- }): CancelablePromise<Script> {
281
- return __request(OpenAPI, {
282
- method: 'POST',
283
- url: '/w/{workspace}/scripts/archive/h/{hash}',
284
- path: {
285
- 'workspace': workspace,
286
- 'hash': hash,
287
- },
288
- });
289
- }
290
-
291
- /**
292
- * delete script by hash (erase content but keep hash, require admin)
293
- * @returns Script script details
294
- * @throws ApiError
295
- */
296
- public static deleteScriptByHash({
297
- workspace,
298
- hash,
299
- }: {
300
- workspace: string,
301
- hash: string,
302
- }): CancelablePromise<Script> {
303
- return __request(OpenAPI, {
304
- method: 'POST',
305
- url: '/w/{workspace}/scripts/delete/h/{hash}',
306
- path: {
307
- 'workspace': workspace,
308
- 'hash': hash,
309
- },
310
- });
311
- }
312
-
313
- /**
314
- * delete all scripts at a given path (require admin)
315
- * @returns string script path
316
- * @throws ApiError
317
- */
318
- public static deleteScriptByPath({
319
- workspace,
320
- path,
321
- }: {
322
- workspace: string,
323
- path: string,
324
- }): CancelablePromise<string> {
325
- return __request(OpenAPI, {
326
- method: 'POST',
327
- url: '/w/{workspace}/scripts/delete/p/{path}',
328
- path: {
329
- 'workspace': workspace,
330
- 'path': path,
331
- },
332
- });
333
- }
334
-
335
- /**
336
- * get script by path
337
- * @returns Script script details
338
- * @throws ApiError
339
- */
340
- public static getScriptByPath({
341
- workspace,
342
- path,
343
- }: {
344
- workspace: string,
345
- path: string,
346
- }): CancelablePromise<Script> {
347
- return __request(OpenAPI, {
348
- method: 'GET',
349
- url: '/w/{workspace}/scripts/get/p/{path}',
350
- path: {
351
- 'workspace': workspace,
352
- 'path': path,
353
- },
354
- });
355
- }
356
-
357
- /**
358
- * get script by path with draft
359
- * @returns NewScriptWithDraft script details
360
- * @throws ApiError
361
- */
362
- public static getScriptByPathWithDraft({
363
- workspace,
364
- path,
365
- }: {
366
- workspace: string,
367
- path: string,
368
- }): CancelablePromise<NewScriptWithDraft> {
369
- return __request(OpenAPI, {
370
- method: 'GET',
371
- url: '/w/{workspace}/scripts/get/draft/{path}',
372
- path: {
373
- 'workspace': workspace,
374
- 'path': path,
375
- },
376
- });
377
- }
378
-
379
- /**
380
- * raw script by path
381
- * @returns string script content
382
- * @throws ApiError
383
- */
384
- public static rawScriptByPath({
385
- workspace,
386
- path,
387
- }: {
388
- workspace: string,
389
- path: string,
390
- }): CancelablePromise<string> {
391
- return __request(OpenAPI, {
392
- method: 'GET',
393
- url: '/w/{workspace}/scripts/raw/p/{path}',
394
- path: {
395
- 'workspace': workspace,
396
- 'path': path,
397
- },
398
- });
399
- }
400
-
401
- /**
402
- * raw script by path with a token (mostly used by lsp to be used with import maps to resolve scripts)
403
- * @returns string script content
404
- * @throws ApiError
405
- */
406
- public static rawScriptByPathTokened({
407
- workspace,
408
- token,
409
- path,
410
- }: {
411
- workspace: string,
412
- token: string,
413
- path: string,
414
- }): CancelablePromise<string> {
415
- return __request(OpenAPI, {
416
- method: 'GET',
417
- url: '/scripts_u/tokened_raw/{workspace}/{token}/{path}',
418
- path: {
419
- 'workspace': workspace,
420
- 'token': token,
421
- 'path': path,
422
- },
423
- });
424
- }
425
-
426
- /**
427
- * exists script by path
428
- * @returns boolean does it exists
429
- * @throws ApiError
430
- */
431
- public static existsScriptByPath({
432
- workspace,
433
- path,
434
- }: {
435
- workspace: string,
436
- path: string,
437
- }): CancelablePromise<boolean> {
438
- return __request(OpenAPI, {
439
- method: 'GET',
440
- url: '/w/{workspace}/scripts/exists/p/{path}',
441
- path: {
442
- 'workspace': workspace,
443
- 'path': path,
444
- },
445
- });
446
- }
447
-
448
- /**
449
- * get script by hash
450
- * @returns Script script details
451
- * @throws ApiError
452
- */
453
- public static getScriptByHash({
454
- workspace,
455
- hash,
456
- }: {
457
- workspace: string,
458
- hash: string,
459
- }): CancelablePromise<Script> {
460
- return __request(OpenAPI, {
461
- method: 'GET',
462
- url: '/w/{workspace}/scripts/get/h/{hash}',
463
- path: {
464
- 'workspace': workspace,
465
- 'hash': hash,
466
- },
467
- });
468
- }
469
-
470
- /**
471
- * raw script by hash
472
- * @returns string script content
473
- * @throws ApiError
474
- */
475
- public static rawScriptByHash({
476
- workspace,
477
- path,
478
- }: {
479
- workspace: string,
480
- path: string,
481
- }): CancelablePromise<string> {
482
- return __request(OpenAPI, {
483
- method: 'GET',
484
- url: '/w/{workspace}/scripts/raw/h/{path}',
485
- path: {
486
- 'workspace': workspace,
487
- 'path': path,
488
- },
489
- });
490
- }
491
-
492
- /**
493
- * get script deployment status
494
- * @returns any script details
495
- * @throws ApiError
496
- */
497
- public static getScriptDeploymentStatus({
498
- workspace,
499
- hash,
500
- }: {
501
- workspace: string,
502
- hash: string,
503
- }): CancelablePromise<{
504
- lock?: string;
505
- lock_error_logs?: string;
506
- }> {
507
- return __request(OpenAPI, {
508
- method: 'GET',
509
- url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
510
- path: {
511
- 'workspace': workspace,
512
- 'hash': hash,
513
- },
514
- });
515
- }
516
-
517
- }
@@ -1,59 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- import { OpenAPI } from '../core/OpenAPI';
7
- import { request as __request } from '../core/request';
8
-
9
- export class SettingsService {
10
-
11
- /**
12
- * get backend version
13
- * @returns string git version of backend
14
- * @throws ApiError
15
- */
16
- public static backendVersion(): CancelablePromise<string> {
17
- return __request(OpenAPI, {
18
- method: 'GET',
19
- url: '/version',
20
- });
21
- }
22
-
23
- /**
24
- * is backend up to date
25
- * @returns string is backend up to date
26
- * @throws ApiError
27
- */
28
- public static backendUptodate(): CancelablePromise<string> {
29
- return __request(OpenAPI, {
30
- method: 'GET',
31
- url: '/uptodate',
32
- });
33
- }
34
-
35
- /**
36
- * get license id
37
- * @returns string get license id (empty if not ee)
38
- * @throws ApiError
39
- */
40
- public static getLicenseId(): CancelablePromise<string> {
41
- return __request(OpenAPI, {
42
- method: 'GET',
43
- url: '/ee_license',
44
- });
45
- }
46
-
47
- /**
48
- * get openapi yaml spec
49
- * @returns string openapi yaml file content
50
- * @throws ApiError
51
- */
52
- public static getOpenApiYaml(): CancelablePromise<string> {
53
- return __request(OpenAPI, {
54
- method: 'GET',
55
- url: '/openapi.yaml',
56
- });
57
- }
58
-
59
- }