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,385 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AppWithLastVersion } from '../models/AppWithLastVersion';
6
- import type { AppWithLastVersionWDraft } from '../models/AppWithLastVersionWDraft';
7
- import type { ListableApp } from '../models/ListableApp';
8
- import type { Policy } from '../models/Policy';
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 AppService {
15
-
16
- /**
17
- * list all available hub apps
18
- * @returns any hub apps list
19
- * @throws ApiError
20
- */
21
- public static listHubApps(): CancelablePromise<{
22
- apps?: Array<{
23
- id: number;
24
- app_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: '/apps/hub/list',
34
- });
35
- }
36
-
37
- /**
38
- * get hub app by id
39
- * @returns any app
40
- * @throws ApiError
41
- */
42
- public static getHubAppById({
43
- id,
44
- }: {
45
- id: number,
46
- }): CancelablePromise<{
47
- app: {
48
- summary: string;
49
- value: any;
50
- };
51
- }> {
52
- return __request(OpenAPI, {
53
- method: 'GET',
54
- url: '/apps/hub/get/{id}',
55
- path: {
56
- 'id': id,
57
- },
58
- });
59
- }
60
-
61
- /**
62
- * list all available apps
63
- * @returns ListableApp All available apps
64
- * @throws ApiError
65
- */
66
- public static listApps({
67
- workspace,
68
- page,
69
- perPage,
70
- orderDesc,
71
- createdBy,
72
- pathStart,
73
- pathExact,
74
- starredOnly,
75
- }: {
76
- workspace: string,
77
- /**
78
- * which page to return (start at 1, default 1)
79
- */
80
- page?: number,
81
- /**
82
- * number of items to return for a given page (default 30, max 100)
83
- */
84
- perPage?: number,
85
- /**
86
- * order by desc order (default true)
87
- */
88
- orderDesc?: boolean,
89
- /**
90
- * mask to filter exact matching user creator
91
- */
92
- createdBy?: string,
93
- /**
94
- * mask to filter matching starting path
95
- */
96
- pathStart?: string,
97
- /**
98
- * mask to filter exact matching path
99
- */
100
- pathExact?: string,
101
- /**
102
- * (default false)
103
- * show only the starred items
104
- *
105
- */
106
- starredOnly?: boolean,
107
- }): CancelablePromise<Array<ListableApp>> {
108
- return __request(OpenAPI, {
109
- method: 'GET',
110
- url: '/w/{workspace}/apps/list',
111
- path: {
112
- 'workspace': workspace,
113
- },
114
- query: {
115
- 'page': page,
116
- 'per_page': perPage,
117
- 'order_desc': orderDesc,
118
- 'created_by': createdBy,
119
- 'path_start': pathStart,
120
- 'path_exact': pathExact,
121
- 'starred_only': starredOnly,
122
- },
123
- });
124
- }
125
-
126
- /**
127
- * create app
128
- * @returns string app created
129
- * @throws ApiError
130
- */
131
- public static createApp({
132
- workspace,
133
- requestBody,
134
- }: {
135
- workspace: string,
136
- /**
137
- * new app
138
- */
139
- requestBody: {
140
- path: string;
141
- value: any;
142
- summary: string;
143
- policy: Policy;
144
- draft_only?: boolean;
145
- },
146
- }): CancelablePromise<string> {
147
- return __request(OpenAPI, {
148
- method: 'POST',
149
- url: '/w/{workspace}/apps/create',
150
- path: {
151
- 'workspace': workspace,
152
- },
153
- body: requestBody,
154
- mediaType: 'application/json',
155
- });
156
- }
157
-
158
- /**
159
- * does an app exisst at path
160
- * @returns boolean app exists
161
- * @throws ApiError
162
- */
163
- public static existsApp({
164
- workspace,
165
- path,
166
- }: {
167
- workspace: string,
168
- path: string,
169
- }): CancelablePromise<boolean> {
170
- return __request(OpenAPI, {
171
- method: 'GET',
172
- url: '/w/{workspace}/apps/exists/{path}',
173
- path: {
174
- 'workspace': workspace,
175
- 'path': path,
176
- },
177
- });
178
- }
179
-
180
- /**
181
- * get app by path
182
- * @returns AppWithLastVersion app details
183
- * @throws ApiError
184
- */
185
- public static getAppByPath({
186
- workspace,
187
- path,
188
- }: {
189
- workspace: string,
190
- path: string,
191
- }): CancelablePromise<AppWithLastVersion> {
192
- return __request(OpenAPI, {
193
- method: 'GET',
194
- url: '/w/{workspace}/apps/get/p/{path}',
195
- path: {
196
- 'workspace': workspace,
197
- 'path': path,
198
- },
199
- });
200
- }
201
-
202
- /**
203
- * get app by path with draft
204
- * @returns AppWithLastVersionWDraft app details with draft
205
- * @throws ApiError
206
- */
207
- public static getAppByPathWithDraft({
208
- workspace,
209
- path,
210
- }: {
211
- workspace: string,
212
- path: string,
213
- }): CancelablePromise<AppWithLastVersionWDraft> {
214
- return __request(OpenAPI, {
215
- method: 'GET',
216
- url: '/w/{workspace}/apps/get/draft/{path}',
217
- path: {
218
- 'workspace': workspace,
219
- 'path': path,
220
- },
221
- });
222
- }
223
-
224
- /**
225
- * get public app by secret
226
- * @returns AppWithLastVersion app details
227
- * @throws ApiError
228
- */
229
- public static getPublicAppBySecret({
230
- workspace,
231
- path,
232
- }: {
233
- workspace: string,
234
- path: string,
235
- }): CancelablePromise<AppWithLastVersion> {
236
- return __request(OpenAPI, {
237
- method: 'GET',
238
- url: '/w/{workspace}/apps_u/public_app/{path}',
239
- path: {
240
- 'workspace': workspace,
241
- 'path': path,
242
- },
243
- });
244
- }
245
-
246
- /**
247
- * get public secret of app
248
- * @returns string app secret
249
- * @throws ApiError
250
- */
251
- public static getPublicSecretOfApp({
252
- workspace,
253
- path,
254
- }: {
255
- workspace: string,
256
- path: string,
257
- }): CancelablePromise<string> {
258
- return __request(OpenAPI, {
259
- method: 'GET',
260
- url: '/w/{workspace}/apps/secret_of/{path}',
261
- path: {
262
- 'workspace': workspace,
263
- 'path': path,
264
- },
265
- });
266
- }
267
-
268
- /**
269
- * get app by version
270
- * @returns AppWithLastVersion app details
271
- * @throws ApiError
272
- */
273
- public static getAppByVersion({
274
- workspace,
275
- id,
276
- }: {
277
- workspace: string,
278
- id: number,
279
- }): CancelablePromise<AppWithLastVersion> {
280
- return __request(OpenAPI, {
281
- method: 'GET',
282
- url: '/w/{workspace}/apps/get/v/{id}',
283
- path: {
284
- 'workspace': workspace,
285
- 'id': id,
286
- },
287
- });
288
- }
289
-
290
- /**
291
- * delete app
292
- * @returns string app deleted
293
- * @throws ApiError
294
- */
295
- public static deleteApp({
296
- workspace,
297
- path,
298
- }: {
299
- workspace: string,
300
- path: string,
301
- }): CancelablePromise<string> {
302
- return __request(OpenAPI, {
303
- method: 'DELETE',
304
- url: '/w/{workspace}/apps/delete/{path}',
305
- path: {
306
- 'workspace': workspace,
307
- 'path': path,
308
- },
309
- });
310
- }
311
-
312
- /**
313
- * update app
314
- * @returns string app updated
315
- * @throws ApiError
316
- */
317
- public static updateApp({
318
- workspace,
319
- path,
320
- requestBody,
321
- }: {
322
- workspace: string,
323
- path: string,
324
- /**
325
- * update app
326
- */
327
- requestBody: {
328
- path?: string;
329
- summary?: string;
330
- value?: any;
331
- policy?: Policy;
332
- },
333
- }): CancelablePromise<string> {
334
- return __request(OpenAPI, {
335
- method: 'POST',
336
- url: '/w/{workspace}/apps/update/{path}',
337
- path: {
338
- 'workspace': workspace,
339
- 'path': path,
340
- },
341
- body: requestBody,
342
- mediaType: 'application/json',
343
- });
344
- }
345
-
346
- /**
347
- * executeComponent
348
- * @returns string job uuid
349
- * @throws ApiError
350
- */
351
- public static executeComponent({
352
- workspace,
353
- path,
354
- requestBody,
355
- }: {
356
- workspace: string,
357
- path: string,
358
- /**
359
- * update app
360
- */
361
- requestBody: {
362
- component: string;
363
- path?: string;
364
- args: any;
365
- raw_code?: {
366
- content: string;
367
- language: string;
368
- path?: string;
369
- };
370
- force_viewer_static_fields?: Record<string, any>;
371
- },
372
- }): CancelablePromise<string> {
373
- return __request(OpenAPI, {
374
- method: 'POST',
375
- url: '/w/{workspace}/apps_u/execute_component/{path}',
376
- path: {
377
- 'workspace': workspace,
378
- 'path': path,
379
- },
380
- body: requestBody,
381
- mediaType: 'application/json',
382
- });
383
- }
384
-
385
- }
@@ -1,104 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { AuditLog } from '../models/AuditLog';
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 AuditService {
12
-
13
- /**
14
- * get audit log (requires admin privilege)
15
- * @returns AuditLog an audit log
16
- * @throws ApiError
17
- */
18
- public static getAuditLog({
19
- workspace,
20
- id,
21
- }: {
22
- workspace: string,
23
- id: number,
24
- }): CancelablePromise<AuditLog> {
25
- return __request(OpenAPI, {
26
- method: 'GET',
27
- url: '/w/{workspace}/audit/get/{id}',
28
- path: {
29
- 'workspace': workspace,
30
- 'id': id,
31
- },
32
- });
33
- }
34
-
35
- /**
36
- * list audit logs (requires admin privilege)
37
- * @returns AuditLog a list of audit logs
38
- * @throws ApiError
39
- */
40
- public static listAuditLogs({
41
- workspace,
42
- page,
43
- perPage,
44
- before,
45
- after,
46
- username,
47
- operation,
48
- resource,
49
- actionKind,
50
- }: {
51
- workspace: string,
52
- /**
53
- * which page to return (start at 1, default 1)
54
- */
55
- page?: number,
56
- /**
57
- * number of items to return for a given page (default 30, max 100)
58
- */
59
- perPage?: number,
60
- /**
61
- * filter on created before (exclusive) timestamp
62
- */
63
- before?: string,
64
- /**
65
- * filter on created after (exclusive) timestamp
66
- */
67
- after?: string,
68
- /**
69
- * filter on exact username of user
70
- */
71
- username?: string,
72
- /**
73
- * filter on exact or prefix name of operation
74
- */
75
- operation?: string,
76
- /**
77
- * filter on exact or prefix name of resource
78
- */
79
- resource?: string,
80
- /**
81
- * filter on type of operation
82
- */
83
- actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute',
84
- }): CancelablePromise<Array<AuditLog>> {
85
- return __request(OpenAPI, {
86
- method: 'GET',
87
- url: '/w/{workspace}/audit/list',
88
- path: {
89
- 'workspace': workspace,
90
- },
91
- query: {
92
- 'page': page,
93
- 'per_page': perPage,
94
- 'before': before,
95
- 'after': after,
96
- 'username': username,
97
- 'operation': operation,
98
- 'resource': resource,
99
- 'action_kind': actionKind,
100
- },
101
- });
102
- }
103
-
104
- }
@@ -1,80 +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 CaptureService {
10
-
11
- /**
12
- * update flow preview capture
13
- * @returns void
14
- * @throws ApiError
15
- */
16
- public static updateCapture({
17
- workspace,
18
- path,
19
- }: {
20
- workspace: string,
21
- path: string,
22
- }): CancelablePromise<void> {
23
- return __request(OpenAPI, {
24
- method: 'POST',
25
- url: '/w/{workspace}/capture_u/{path}',
26
- path: {
27
- 'workspace': workspace,
28
- 'path': path,
29
- },
30
- });
31
- }
32
-
33
- /**
34
- * create flow preview capture
35
- * @returns any flow preview capture created
36
- * @throws ApiError
37
- */
38
- public static createCapture({
39
- workspace,
40
- path,
41
- }: {
42
- workspace: string,
43
- path: string,
44
- }): CancelablePromise<any> {
45
- return __request(OpenAPI, {
46
- method: 'PUT',
47
- url: '/w/{workspace}/capture/{path}',
48
- path: {
49
- 'workspace': workspace,
50
- 'path': path,
51
- },
52
- });
53
- }
54
-
55
- /**
56
- * get flow preview capture
57
- * @returns any captured flow preview
58
- * @throws ApiError
59
- */
60
- public static getCapture({
61
- workspace,
62
- path,
63
- }: {
64
- workspace: string,
65
- path: string,
66
- }): CancelablePromise<any> {
67
- return __request(OpenAPI, {
68
- method: 'GET',
69
- url: '/w/{workspace}/capture/{path}',
70
- path: {
71
- 'workspace': workspace,
72
- 'path': path,
73
- },
74
- errors: {
75
- 404: `capture does not exist for this flow`,
76
- },
77
- });
78
- }
79
-
80
- }
@@ -1,63 +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 DraftService {
10
-
11
- /**
12
- * create draft
13
- * @returns string draft created
14
- * @throws ApiError
15
- */
16
- public static createDraft({
17
- workspace,
18
- requestBody,
19
- }: {
20
- workspace: string,
21
- requestBody: {
22
- path: string;
23
- typ: 'flow' | 'script' | 'app';
24
- value?: any;
25
- },
26
- }): CancelablePromise<string> {
27
- return __request(OpenAPI, {
28
- method: 'POST',
29
- url: '/w/{workspace}/drafts/create',
30
- path: {
31
- 'workspace': workspace,
32
- },
33
- body: requestBody,
34
- mediaType: 'application/json',
35
- });
36
- }
37
-
38
- /**
39
- * delete draft
40
- * @returns string draft deleted
41
- * @throws ApiError
42
- */
43
- public static deleteDraft({
44
- workspace,
45
- kind,
46
- path,
47
- }: {
48
- workspace: string,
49
- kind: 'script' | 'flow' | 'app',
50
- path: string,
51
- }): CancelablePromise<string> {
52
- return __request(OpenAPI, {
53
- method: 'DELETE',
54
- url: '/w/{workspace}/drafts/delete/{kind}/{path}',
55
- path: {
56
- 'workspace': workspace,
57
- 'kind': kind,
58
- 'path': path,
59
- },
60
- });
61
- }
62
-
63
- }
@@ -1,63 +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 FavoriteService {
10
-
11
- /**
12
- * star item
13
- * @returns any star item
14
- * @throws ApiError
15
- */
16
- public static star({
17
- workspace,
18
- requestBody,
19
- }: {
20
- workspace: string,
21
- requestBody?: {
22
- path?: string;
23
- favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
24
- },
25
- }): CancelablePromise<any> {
26
- return __request(OpenAPI, {
27
- method: 'POST',
28
- url: '/w/{workspace}/favorites/star',
29
- path: {
30
- 'workspace': workspace,
31
- },
32
- body: requestBody,
33
- mediaType: 'application/json',
34
- });
35
- }
36
-
37
- /**
38
- * unstar item
39
- * @returns any unstar item
40
- * @throws ApiError
41
- */
42
- public static unstar({
43
- workspace,
44
- requestBody,
45
- }: {
46
- workspace: string,
47
- requestBody?: {
48
- path?: string;
49
- favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
50
- },
51
- }): CancelablePromise<any> {
52
- return __request(OpenAPI, {
53
- method: 'POST',
54
- url: '/w/{workspace}/favorites/unstar',
55
- path: {
56
- 'workspace': workspace,
57
- },
58
- body: requestBody,
59
- mediaType: 'application/json',
60
- });
61
- }
62
-
63
- }