@civitai/client 0.1.9-beta.9 → 0.2.0-beta.2
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/README.md +0 -0
- package/dist/client/CivitaiClient.d.ts +2 -1
- package/dist/client/CivitaiClient.js +13 -13
- package/dist/generated/client/client.d.ts +2 -0
- package/dist/generated/client/client.js +145 -0
- package/dist/generated/client/index.d.ts +22 -0
- package/dist/generated/client/index.js +4 -0
- package/dist/generated/client/types.d.ts +185 -0
- package/dist/generated/client/utils.d.ts +72 -0
- package/dist/generated/client/utils.js +285 -0
- package/dist/generated/client.gen.d.ts +14 -0
- package/dist/generated/client.gen.js +3 -0
- package/dist/generated/core/auth.d.ts +21 -0
- package/dist/generated/core/auth.js +13 -0
- package/dist/generated/core/bodySerializer.d.ts +17 -0
- package/dist/generated/core/bodySerializer.js +53 -0
- package/dist/generated/core/params.d.ts +38 -0
- package/dist/generated/core/params.js +88 -0
- package/dist/generated/core/pathSerializer.d.ts +49 -0
- package/dist/generated/core/pathSerializer.js +105 -0
- package/dist/generated/core/types.d.ts +89 -0
- package/dist/generated/core/types.js +1 -0
- package/dist/generated/index.d.ts +1 -2
- package/dist/generated/index.js +2 -6
- package/dist/generated/schemas.gen.d.ts +2083 -2028
- package/dist/generated/schemas.gen.js +2093 -2031
- package/dist/generated/sdk.gen.d.ts +370 -0
- package/dist/generated/sdk.gen.js +472 -0
- package/dist/generated/services.gen.d.ts +88 -90
- package/dist/generated/services.gen.js +100 -147
- package/dist/generated/types.gen.d.ts +1545 -1982
- package/dist/generated/types.gen.js +70 -134
- package/dist/index.js +3 -6
- package/dist/utils/Air.js +2 -6
- package/dist/utils/TimeSpan.js +24 -28
- package/dist/utils/handleError.d.ts +2 -0
- package/dist/utils/handleError.js +9 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -6
- package/dist/utils/patch-json.js +19 -8
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +1 -0
- package/package.json +5 -3
- package/dist/client/RequestsClient.d.ts +0 -0
- package/dist/client/RequestsClient.js +0 -58
- package/dist/generated/GeneratedClient.d.ts +0 -22
- package/dist/generated/GeneratedClient.js +0 -40
- package/dist/generated/core/ApiError.d.ts +0 -10
- package/dist/generated/core/ApiError.js +0 -15
- package/dist/generated/core/ApiRequestOptions.d.ts +0 -13
- package/dist/generated/core/ApiRequestOptions.js +0 -2
- package/dist/generated/core/ApiResult.d.ts +0 -7
- package/dist/generated/core/ApiResult.js +0 -2
- package/dist/generated/core/AxiosHttpRequest.d.ts +0 -14
- package/dist/generated/core/AxiosHttpRequest.js +0 -20
- package/dist/generated/core/BaseHttpRequest.d.ts +0 -8
- package/dist/generated/core/BaseHttpRequest.js +0 -9
- package/dist/generated/core/CancelablePromise.d.ts +0 -37
- package/dist/generated/core/CancelablePromise.js +0 -93
- package/dist/generated/core/FetchHttpRequest.d.ts +0 -14
- package/dist/generated/core/FetchHttpRequest.js +0 -20
- package/dist/generated/core/OpenAPI.d.ts +0 -27
- package/dist/generated/core/OpenAPI.js +0 -33
- package/dist/generated/core/request.d.ts +0 -49
- package/dist/generated/core/request.js +0 -325
- package/dist/generated/enums.gen.d.ts +0 -97
- package/dist/generated/enums.gen.js +0 -101
- package/dist/utils/CivitaiClientError.d.ts +0 -0
- package/dist/utils/CivitaiClientError.js +0 -4
- package/dist/utils/CivitaiError.d.ts +0 -5
- package/dist/utils/CivitaiError.js +0 -13
- package/dist/utils/createClient.js +0 -119
- /package/dist/{utils/createClient.d.ts → generated/client/types.js} +0 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client as _heyApiClient } from './client.gen';
|
|
3
|
+
/**
|
|
4
|
+
* Get blob by ID. This will return the blob as a binary stream.
|
|
5
|
+
*/
|
|
6
|
+
export const getBlob = (options) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
9
|
+
security: [
|
|
10
|
+
{
|
|
11
|
+
scheme: 'bearer',
|
|
12
|
+
type: 'http',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
url: '/v2/consumer/blobs/{blobId}',
|
|
16
|
+
...options,
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Handles HTTP HEAD requests for a specific blob, checking its existence and NSFW level.
|
|
21
|
+
*/
|
|
22
|
+
export const headBlob = (options) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).head({
|
|
25
|
+
security: [
|
|
26
|
+
{
|
|
27
|
+
scheme: 'bearer',
|
|
28
|
+
type: 'http',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
url: '/v2/consumer/blobs/{blobId}',
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Age classification
|
|
37
|
+
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
38
|
+
*/
|
|
39
|
+
export const invokeAgeClassificationStepTemplate = (options) => {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
42
|
+
security: [
|
|
43
|
+
{
|
|
44
|
+
scheme: 'bearer',
|
|
45
|
+
type: 'http',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
url: '/v2/consumer/recipes/ageClassification',
|
|
49
|
+
...options,
|
|
50
|
+
headers: {
|
|
51
|
+
'Content-Type': 'application/json',
|
|
52
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Comfy workflows
|
|
58
|
+
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
59
|
+
*/
|
|
60
|
+
export const invokeComfyStepTemplate = (options) => {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
63
|
+
security: [
|
|
64
|
+
{
|
|
65
|
+
scheme: 'bearer',
|
|
66
|
+
type: 'http',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
url: '/v2/consumer/recipes/comfy',
|
|
70
|
+
...options,
|
|
71
|
+
headers: {
|
|
72
|
+
'Content-Type': 'application/json',
|
|
73
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Echo
|
|
79
|
+
* A workflow step that takes a message string and retuns it.
|
|
80
|
+
* /// This step is intended for testing purposes.
|
|
81
|
+
*/
|
|
82
|
+
export const invokeEchoStepTemplate = (options) => {
|
|
83
|
+
var _a;
|
|
84
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
85
|
+
security: [
|
|
86
|
+
{
|
|
87
|
+
scheme: 'bearer',
|
|
88
|
+
type: 'http',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
url: '/v2/consumer/recipes/echo',
|
|
92
|
+
...options,
|
|
93
|
+
headers: {
|
|
94
|
+
'Content-Type': 'application/json',
|
|
95
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Image Generation
|
|
101
|
+
* Generate images through text/image inputs using any of our supported engines
|
|
102
|
+
*/
|
|
103
|
+
export const invokeImageGenStepTemplate = (options) => {
|
|
104
|
+
var _a;
|
|
105
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
106
|
+
security: [
|
|
107
|
+
{
|
|
108
|
+
scheme: 'bearer',
|
|
109
|
+
type: 'http',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
url: '/v2/consumer/recipes/imageGen',
|
|
113
|
+
...options,
|
|
114
|
+
headers: {
|
|
115
|
+
'Content-Type': 'application/json',
|
|
116
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* LORA Training
|
|
122
|
+
* Train LORA's
|
|
123
|
+
*/
|
|
124
|
+
export const invokeImageResourceTrainingStepTemplate = (options) => {
|
|
125
|
+
var _a;
|
|
126
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
127
|
+
security: [
|
|
128
|
+
{
|
|
129
|
+
scheme: 'bearer',
|
|
130
|
+
type: 'http',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
url: '/v2/consumer/recipes/imageResourceTraining',
|
|
134
|
+
...options,
|
|
135
|
+
headers: {
|
|
136
|
+
'Content-Type': 'application/json',
|
|
137
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Image upload
|
|
143
|
+
* Uploads an image to be used in a workflow
|
|
144
|
+
*/
|
|
145
|
+
export const invokeImageUploadStepTemplate = (options) => {
|
|
146
|
+
var _a;
|
|
147
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
148
|
+
security: [
|
|
149
|
+
{
|
|
150
|
+
scheme: 'bearer',
|
|
151
|
+
type: 'http',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
url: '/v2/consumer/recipes/imageUpload',
|
|
155
|
+
...options,
|
|
156
|
+
headers: {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* TextToImage
|
|
164
|
+
* Generate images using text as input
|
|
165
|
+
*/
|
|
166
|
+
export const invokeTextToImageStepTemplate = (options) => {
|
|
167
|
+
var _a;
|
|
168
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
169
|
+
security: [
|
|
170
|
+
{
|
|
171
|
+
scheme: 'bearer',
|
|
172
|
+
type: 'http',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
url: '/v2/consumer/recipes/textToImage',
|
|
176
|
+
...options,
|
|
177
|
+
headers: {
|
|
178
|
+
'Content-Type': 'application/json',
|
|
179
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Upscale videos and/or interpolate frames
|
|
185
|
+
*/
|
|
186
|
+
export const invokeVideoEnhancementStepTemplate = (options) => {
|
|
187
|
+
var _a;
|
|
188
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
189
|
+
security: [
|
|
190
|
+
{
|
|
191
|
+
scheme: 'bearer',
|
|
192
|
+
type: 'http',
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
url: '/v2/consumer/recipes/videoEnhancement',
|
|
196
|
+
...options,
|
|
197
|
+
headers: {
|
|
198
|
+
'Content-Type': 'application/json',
|
|
199
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Video generation
|
|
205
|
+
* Generate videos through text/image inputs using any of our supported engines
|
|
206
|
+
*/
|
|
207
|
+
export const invokeVideoGenStepTemplate = (options) => {
|
|
208
|
+
var _a;
|
|
209
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
210
|
+
security: [
|
|
211
|
+
{
|
|
212
|
+
scheme: 'bearer',
|
|
213
|
+
type: 'http',
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
url: '/v2/consumer/recipes/videoGen',
|
|
217
|
+
...options,
|
|
218
|
+
headers: {
|
|
219
|
+
'Content-Type': 'application/json',
|
|
220
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Invalidates the cache of a specific resource.
|
|
226
|
+
*/
|
|
227
|
+
export const invalidateResource = (options) => {
|
|
228
|
+
var _a;
|
|
229
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).delete({
|
|
230
|
+
security: [
|
|
231
|
+
{
|
|
232
|
+
scheme: 'bearer',
|
|
233
|
+
type: 'http',
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
url: '/v2/resources/{air}',
|
|
237
|
+
...options,
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Get an existing resource.
|
|
242
|
+
*/
|
|
243
|
+
export const getResource = (options) => {
|
|
244
|
+
var _a;
|
|
245
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
246
|
+
security: [
|
|
247
|
+
{
|
|
248
|
+
scheme: 'bearer',
|
|
249
|
+
type: 'http',
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
url: '/v2/resources/{air}',
|
|
253
|
+
...options,
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Query workflows
|
|
258
|
+
*/
|
|
259
|
+
export const queryWorkflows = (options) => {
|
|
260
|
+
var _a;
|
|
261
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
262
|
+
security: [
|
|
263
|
+
{
|
|
264
|
+
scheme: 'bearer',
|
|
265
|
+
type: 'http',
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
url: '/v2/consumer/workflows',
|
|
269
|
+
...options,
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Submit workflow
|
|
274
|
+
*/
|
|
275
|
+
export const submitWorkflow = (options) => {
|
|
276
|
+
var _a;
|
|
277
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
278
|
+
security: [
|
|
279
|
+
{
|
|
280
|
+
scheme: 'bearer',
|
|
281
|
+
type: 'http',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
url: '/v2/consumer/workflows',
|
|
285
|
+
...options,
|
|
286
|
+
headers: {
|
|
287
|
+
'Content-Type': 'application/json',
|
|
288
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Delete workflow
|
|
294
|
+
* This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
|
|
295
|
+
*/
|
|
296
|
+
export const deleteWorkflow = (options) => {
|
|
297
|
+
var _a;
|
|
298
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).delete({
|
|
299
|
+
security: [
|
|
300
|
+
{
|
|
301
|
+
scheme: 'bearer',
|
|
302
|
+
type: 'http',
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
url: '/v2/consumer/workflows/{workflowId}',
|
|
306
|
+
...options,
|
|
307
|
+
});
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Get workflow
|
|
311
|
+
*/
|
|
312
|
+
export const getWorkflow = (options) => {
|
|
313
|
+
var _a;
|
|
314
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
315
|
+
security: [
|
|
316
|
+
{
|
|
317
|
+
scheme: 'bearer',
|
|
318
|
+
type: 'http',
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
url: '/v2/consumer/workflows/{workflowId}',
|
|
322
|
+
...options,
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Patch workflow
|
|
327
|
+
* Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
|
|
328
|
+
*/
|
|
329
|
+
export const patchWorkflow = (options) => {
|
|
330
|
+
var _a;
|
|
331
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).patch({
|
|
332
|
+
security: [
|
|
333
|
+
{
|
|
334
|
+
scheme: 'bearer',
|
|
335
|
+
type: 'http',
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
url: '/v2/consumer/workflows/{workflowId}',
|
|
339
|
+
...options,
|
|
340
|
+
headers: {
|
|
341
|
+
'Content-Type': 'application/json-patch+json',
|
|
342
|
+
...options.headers,
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Update workflow
|
|
348
|
+
* Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
|
|
349
|
+
*/
|
|
350
|
+
export const updateWorkflow = (options) => {
|
|
351
|
+
var _a;
|
|
352
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).put({
|
|
353
|
+
security: [
|
|
354
|
+
{
|
|
355
|
+
scheme: 'bearer',
|
|
356
|
+
type: 'http',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
url: '/v2/consumer/workflows/{workflowId}',
|
|
360
|
+
...options,
|
|
361
|
+
headers: {
|
|
362
|
+
'Content-Type': 'application/json',
|
|
363
|
+
...options.headers,
|
|
364
|
+
},
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Delete all workflow tags
|
|
369
|
+
*/
|
|
370
|
+
export const removeAllWorkflowTags = (options) => {
|
|
371
|
+
var _a;
|
|
372
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).delete({
|
|
373
|
+
security: [
|
|
374
|
+
{
|
|
375
|
+
scheme: 'bearer',
|
|
376
|
+
type: 'http',
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
380
|
+
...options,
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Add workflow tag
|
|
385
|
+
* Adds a tag to a workflow
|
|
386
|
+
*/
|
|
387
|
+
export const addWorkflowTag = (options) => {
|
|
388
|
+
var _a;
|
|
389
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).post({
|
|
390
|
+
security: [
|
|
391
|
+
{
|
|
392
|
+
scheme: 'bearer',
|
|
393
|
+
type: 'http',
|
|
394
|
+
},
|
|
395
|
+
],
|
|
396
|
+
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
397
|
+
...options,
|
|
398
|
+
headers: {
|
|
399
|
+
'Content-Type': 'application/json',
|
|
400
|
+
...options.headers,
|
|
401
|
+
},
|
|
402
|
+
});
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Delete workflow tag
|
|
406
|
+
*/
|
|
407
|
+
export const removeWorkflowTag = (options) => {
|
|
408
|
+
var _a;
|
|
409
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).delete({
|
|
410
|
+
security: [
|
|
411
|
+
{
|
|
412
|
+
scheme: 'bearer',
|
|
413
|
+
type: 'http',
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
url: '/v2/consumer/workflows/{workflowId}/tags/{tag}',
|
|
417
|
+
...options,
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Get the status of a workflow step
|
|
422
|
+
*/
|
|
423
|
+
export const getWorkflowStep = (options) => {
|
|
424
|
+
var _a;
|
|
425
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
426
|
+
security: [
|
|
427
|
+
{
|
|
428
|
+
scheme: 'bearer',
|
|
429
|
+
type: 'http',
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
433
|
+
...options,
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
export const patchWorkflowStep = (options) => {
|
|
437
|
+
var _a;
|
|
438
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).patch({
|
|
439
|
+
security: [
|
|
440
|
+
{
|
|
441
|
+
scheme: 'bearer',
|
|
442
|
+
type: 'http',
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
446
|
+
...options,
|
|
447
|
+
headers: {
|
|
448
|
+
'Content-Type': 'application/json-patch+json',
|
|
449
|
+
...options.headers,
|
|
450
|
+
},
|
|
451
|
+
});
|
|
452
|
+
};
|
|
453
|
+
/**
|
|
454
|
+
* Updates a step within a particular workflow.
|
|
455
|
+
*/
|
|
456
|
+
export const updateWorkflowStep = (options) => {
|
|
457
|
+
var _a;
|
|
458
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).put({
|
|
459
|
+
security: [
|
|
460
|
+
{
|
|
461
|
+
scheme: 'bearer',
|
|
462
|
+
type: 'http',
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
466
|
+
...options,
|
|
467
|
+
headers: {
|
|
468
|
+
'Content-Type': 'application/json',
|
|
469
|
+
...options.headers,
|
|
470
|
+
},
|
|
471
|
+
});
|
|
472
|
+
};
|