@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.
Files changed (73) hide show
  1. package/README.md +0 -0
  2. package/dist/client/CivitaiClient.d.ts +2 -1
  3. package/dist/client/CivitaiClient.js +13 -13
  4. package/dist/generated/client/client.d.ts +2 -0
  5. package/dist/generated/client/client.js +145 -0
  6. package/dist/generated/client/index.d.ts +22 -0
  7. package/dist/generated/client/index.js +4 -0
  8. package/dist/generated/client/types.d.ts +185 -0
  9. package/dist/generated/client/utils.d.ts +72 -0
  10. package/dist/generated/client/utils.js +285 -0
  11. package/dist/generated/client.gen.d.ts +14 -0
  12. package/dist/generated/client.gen.js +3 -0
  13. package/dist/generated/core/auth.d.ts +21 -0
  14. package/dist/generated/core/auth.js +13 -0
  15. package/dist/generated/core/bodySerializer.d.ts +17 -0
  16. package/dist/generated/core/bodySerializer.js +53 -0
  17. package/dist/generated/core/params.d.ts +38 -0
  18. package/dist/generated/core/params.js +88 -0
  19. package/dist/generated/core/pathSerializer.d.ts +49 -0
  20. package/dist/generated/core/pathSerializer.js +105 -0
  21. package/dist/generated/core/types.d.ts +89 -0
  22. package/dist/generated/core/types.js +1 -0
  23. package/dist/generated/index.d.ts +1 -2
  24. package/dist/generated/index.js +2 -6
  25. package/dist/generated/schemas.gen.d.ts +2083 -2028
  26. package/dist/generated/schemas.gen.js +2093 -2031
  27. package/dist/generated/sdk.gen.d.ts +370 -0
  28. package/dist/generated/sdk.gen.js +472 -0
  29. package/dist/generated/services.gen.d.ts +88 -90
  30. package/dist/generated/services.gen.js +100 -147
  31. package/dist/generated/types.gen.d.ts +1545 -1982
  32. package/dist/generated/types.gen.js +70 -134
  33. package/dist/index.js +3 -6
  34. package/dist/utils/Air.js +2 -6
  35. package/dist/utils/TimeSpan.js +24 -28
  36. package/dist/utils/handleError.d.ts +2 -0
  37. package/dist/utils/handleError.js +9 -0
  38. package/dist/utils/index.d.ts +1 -0
  39. package/dist/utils/index.js +4 -6
  40. package/dist/utils/patch-json.js +19 -8
  41. package/dist/utils/types.d.ts +3 -0
  42. package/dist/utils/types.js +1 -0
  43. package/package.json +5 -3
  44. package/dist/client/RequestsClient.d.ts +0 -0
  45. package/dist/client/RequestsClient.js +0 -58
  46. package/dist/generated/GeneratedClient.d.ts +0 -22
  47. package/dist/generated/GeneratedClient.js +0 -40
  48. package/dist/generated/core/ApiError.d.ts +0 -10
  49. package/dist/generated/core/ApiError.js +0 -15
  50. package/dist/generated/core/ApiRequestOptions.d.ts +0 -13
  51. package/dist/generated/core/ApiRequestOptions.js +0 -2
  52. package/dist/generated/core/ApiResult.d.ts +0 -7
  53. package/dist/generated/core/ApiResult.js +0 -2
  54. package/dist/generated/core/AxiosHttpRequest.d.ts +0 -14
  55. package/dist/generated/core/AxiosHttpRequest.js +0 -20
  56. package/dist/generated/core/BaseHttpRequest.d.ts +0 -8
  57. package/dist/generated/core/BaseHttpRequest.js +0 -9
  58. package/dist/generated/core/CancelablePromise.d.ts +0 -37
  59. package/dist/generated/core/CancelablePromise.js +0 -93
  60. package/dist/generated/core/FetchHttpRequest.d.ts +0 -14
  61. package/dist/generated/core/FetchHttpRequest.js +0 -20
  62. package/dist/generated/core/OpenAPI.d.ts +0 -27
  63. package/dist/generated/core/OpenAPI.js +0 -33
  64. package/dist/generated/core/request.d.ts +0 -49
  65. package/dist/generated/core/request.js +0 -325
  66. package/dist/generated/enums.gen.d.ts +0 -97
  67. package/dist/generated/enums.gen.js +0 -101
  68. package/dist/utils/CivitaiClientError.d.ts +0 -0
  69. package/dist/utils/CivitaiClientError.js +0 -4
  70. package/dist/utils/CivitaiError.d.ts +0 -5
  71. package/dist/utils/CivitaiError.js +0 -13
  72. package/dist/utils/createClient.js +0 -119
  73. /package/dist/{utils/createClient.d.ts → generated/client/types.js} +0 -0
@@ -1,309 +1,262 @@
1
- "use strict";
2
1
  // This file is auto-generated by @hey-api/openapi-ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.patchWorkflowStep = exports.updateWorkflowStep = exports.getWorkflowStep = exports.removeWorkflowTag = exports.removeAllWorkflowTags = exports.addWorkflowTag = exports.deleteWorkflow = exports.patchWorkflow = exports.updateWorkflow = exports.getWorkflow = exports.queryWorkflows = exports.submitWorkflow = exports.patchWorkerResources = exports.updateWorkerRegistration = exports.getRegistration = exports.deleteWorker = exports.getWorker = exports.queryWorkers = exports.createWorker = exports.downloadResource = exports.getJobs = exports.invalidateResource = exports.getResource = exports.deleteConfiguration = exports.getConfiguration = exports.queryConfigurations = exports.createConfiguration = exports.getBlob = exports.putV2ProvidersBlobsByBlobKey = void 0;
5
- const client_fetch_1 = require("@hey-api/client-fetch");
6
- const putV2ProvidersBlobsByBlobKey = (options) => {
7
- var _a;
8
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).put({
9
- ...options,
10
- url: '/v2/providers/blobs/{blobKey}',
11
- });
12
- };
13
- exports.putV2ProvidersBlobsByBlobKey = putV2ProvidersBlobsByBlobKey;
2
+ import { client } from '@hey-api/client-fetch';
14
3
  /**
15
- * Get blob by ID.
4
+ * Get blob by ID. This will return the blob as a binary stream.
16
5
  */
17
- const getBlob = (options) => {
6
+ export const getBlob = (options) => {
18
7
  var _a;
19
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
8
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
20
9
  ...options,
21
10
  url: '/v2/consumer/blobs/{blobId}',
22
11
  });
23
12
  };
24
- exports.getBlob = getBlob;
25
13
  /**
26
- * Create a new configuration.
14
+ * Handles HTTP HEAD requests for a specific blob, checking its existence and NSFW level.
27
15
  */
28
- const createConfiguration = (options) => {
16
+ export const headBlob = (options) => {
29
17
  var _a;
30
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).post({
18
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).head({
31
19
  ...options,
32
- url: '/v2/providers/configurations',
20
+ url: '/v2/consumer/blobs/{blobId}',
33
21
  });
34
22
  };
35
- exports.createConfiguration = createConfiguration;
36
23
  /**
37
- * Query for existing configurations.
24
+ * Age classification
25
+ * 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
26
  */
39
- const queryConfigurations = (options) => {
27
+ export const invokeAgeClassificationStepTemplate = (options) => {
40
28
  var _a;
41
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
29
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
42
30
  ...options,
43
- url: '/v2/providers/configurations',
31
+ url: '/v2/consumer/recipes/ageClassification',
44
32
  });
45
33
  };
46
- exports.queryConfigurations = queryConfigurations;
47
34
  /**
48
- * Get options for a configuration.
35
+ * Comfy workflows
36
+ * Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
49
37
  */
50
- const getConfiguration = (options) => {
38
+ export const invokeComfyStepTemplate = (options) => {
51
39
  var _a;
52
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
40
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
53
41
  ...options,
54
- url: '/v2/providers/configurations/{configurationId}/options',
42
+ url: '/v2/consumer/recipes/comfy',
55
43
  });
56
44
  };
57
- exports.getConfiguration = getConfiguration;
58
45
  /**
59
- * Delete a configuration.
46
+ * Echo
47
+ * A workflow step that takes a message string and retuns it.
48
+ * /// This step is intended for testing purposes.
60
49
  */
61
- const deleteConfiguration = (options) => {
50
+ export const invokeEchoStepTemplate = (options) => {
62
51
  var _a;
63
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
52
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
64
53
  ...options,
65
- url: '/v2/providers/configurations/{configurationId}',
54
+ url: '/v2/consumer/recipes/echo',
66
55
  });
67
56
  };
68
- exports.deleteConfiguration = deleteConfiguration;
69
57
  /**
70
- * Get an existing resource.
58
+ * Image Generation
59
+ * Generate images through text/image inputs using any of our supported engines
71
60
  */
72
- const getResource = (options) => {
61
+ export const invokeImageGenStepTemplate = (options) => {
73
62
  var _a;
74
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
63
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
75
64
  ...options,
76
- url: '/v2/resources/{air}',
65
+ url: '/v2/consumer/recipes/imageGen',
77
66
  });
78
67
  };
79
- exports.getResource = getResource;
80
68
  /**
81
- * Invalidates the cache of a specific resource.
69
+ * LORA Training
70
+ * Train LORA's
82
71
  */
83
- const invalidateResource = (options) => {
72
+ export const invokeImageResourceTrainingStepTemplate = (options) => {
84
73
  var _a;
85
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
74
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
86
75
  ...options,
87
- url: '/v2/resources/{air}',
76
+ url: '/v2/consumer/recipes/imageResourceTraining',
88
77
  });
89
78
  };
90
- exports.invalidateResource = invalidateResource;
91
- const getJobs = (options) => {
92
- var _a;
93
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
94
- ...options,
95
- url: '/v2/providers/workers/{workerId}/jobs',
96
- });
97
- };
98
- exports.getJobs = getJobs;
99
- const downloadResource = (options) => {
100
- var _a;
101
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
102
- ...options,
103
- url: '/v2/providers/workers/{workerId}/resources/{air}',
104
- });
105
- };
106
- exports.downloadResource = downloadResource;
107
- /**
108
- * Create a worker with a given registration.
109
- */
110
- const createWorker = (options) => {
111
- var _a;
112
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).post({
113
- ...options,
114
- url: '/v2/providers/workers',
115
- });
116
- };
117
- exports.createWorker = createWorker;
118
79
  /**
119
- * Query existing workers.
80
+ * Image upload
81
+ * Uploads an image to be used in a workflow
120
82
  */
121
- const queryWorkers = (options) => {
83
+ export const invokeImageUploadStepTemplate = (options) => {
122
84
  var _a;
123
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
85
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
124
86
  ...options,
125
- url: '/v2/providers/workers',
87
+ url: '/v2/consumer/recipes/imageUpload',
126
88
  });
127
89
  };
128
- exports.queryWorkers = queryWorkers;
129
90
  /**
130
- * Gets the worker for the provided ID.
91
+ * TextToImage
92
+ * Generate images using text as input
131
93
  */
132
- const getWorker = (options) => {
94
+ export const invokeTextToImageStepTemplate = (options) => {
133
95
  var _a;
134
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
96
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
135
97
  ...options,
136
- url: '/v2/providers/workers/{workerId}',
98
+ url: '/v2/consumer/recipes/textToImage',
137
99
  });
138
100
  };
139
- exports.getWorker = getWorker;
140
101
  /**
141
- * Delete a worker.
102
+ * Upscale videos and/or interpolate frames
142
103
  */
143
- const deleteWorker = (options) => {
104
+ export const invokeVideoEnhancementStepTemplate = (options) => {
144
105
  var _a;
145
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
106
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
146
107
  ...options,
147
- url: '/v2/providers/workers/{workerId}',
108
+ url: '/v2/consumer/recipes/videoEnhancement',
148
109
  });
149
110
  };
150
- exports.deleteWorker = deleteWorker;
151
111
  /**
152
- * Gets the registration details for the specified worker.
112
+ * Video generation
113
+ * Generate videos through text/image inputs using any of our supported engines
153
114
  */
154
- const getRegistration = (options) => {
115
+ export const invokeVideoGenStepTemplate = (options) => {
155
116
  var _a;
156
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
117
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
157
118
  ...options,
158
- url: '/v2/providers/workers/{workerId}/registration',
119
+ url: '/v2/consumer/recipes/videoGen',
159
120
  });
160
121
  };
161
- exports.getRegistration = getRegistration;
162
122
  /**
163
- * Update the registration details of the specified worker.
123
+ * Get an existing resource.
164
124
  */
165
- const updateWorkerRegistration = (options) => {
125
+ export const getResource = (options) => {
166
126
  var _a;
167
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).put({
127
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
168
128
  ...options,
169
- url: '/v2/providers/workers/{workerId}/registration',
129
+ url: '/v2/resources/{air}',
170
130
  });
171
131
  };
172
- exports.updateWorkerRegistration = updateWorkerRegistration;
173
132
  /**
174
- * Patch a worker's registration resources
133
+ * Invalidates the cache of a specific resource.
175
134
  */
176
- const patchWorkerResources = (options) => {
135
+ export const invalidateResource = (options) => {
177
136
  var _a;
178
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).patch({
137
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
179
138
  ...options,
180
- url: '/v2/providers/workers/{workerId}/registration/resources',
139
+ url: '/v2/resources/{air}',
181
140
  });
182
141
  };
183
- exports.patchWorkerResources = patchWorkerResources;
184
142
  /**
185
- * Submit a workflow for processing
143
+ * Submit workflow
186
144
  */
187
- const submitWorkflow = (options) => {
145
+ export const submitWorkflow = (options) => {
188
146
  var _a;
189
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).post({
147
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
190
148
  ...options,
191
149
  url: '/v2/consumer/workflows',
192
150
  });
193
151
  };
194
- exports.submitWorkflow = submitWorkflow;
195
152
  /**
196
- * Query for workflows made by the user.
153
+ * Query workflows
197
154
  */
198
- const queryWorkflows = (options) => {
155
+ export const queryWorkflows = (options) => {
199
156
  var _a;
200
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
157
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
201
158
  ...options,
202
159
  url: '/v2/consumer/workflows',
203
160
  });
204
161
  };
205
- exports.queryWorkflows = queryWorkflows;
206
162
  /**
207
- * Get the status of a workflow
163
+ * Get workflow
208
164
  */
209
- const getWorkflow = (options) => {
165
+ export const getWorkflow = (options) => {
210
166
  var _a;
211
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
167
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
212
168
  ...options,
213
169
  url: '/v2/consumer/workflows/{workflowId}',
214
170
  });
215
171
  };
216
- exports.getWorkflow = getWorkflow;
217
172
  /**
218
- * Updates a worfklow. This can currently be used to cancel a worfklow.
173
+ * Update workflow
174
+ * Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
219
175
  */
220
- const updateWorkflow = (options) => {
176
+ export const updateWorkflow = (options) => {
221
177
  var _a;
222
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).put({
178
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).put({
223
179
  ...options,
224
180
  url: '/v2/consumer/workflows/{workflowId}',
225
181
  });
226
182
  };
227
- exports.updateWorkflow = updateWorkflow;
228
- const patchWorkflow = (options) => {
183
+ /**
184
+ * Patch workflow
185
+ * Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
186
+ */
187
+ export const patchWorkflow = (options) => {
229
188
  var _a;
230
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).patch({
189
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).patch({
231
190
  ...options,
232
191
  url: '/v2/consumer/workflows/{workflowId}',
233
192
  });
234
193
  };
235
- exports.patchWorkflow = patchWorkflow;
236
194
  /**
237
- * Deletes a workflow and all its jobs.
195
+ * Delete workflow
196
+ * This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
238
197
  */
239
- const deleteWorkflow = (options) => {
198
+ export const deleteWorkflow = (options) => {
240
199
  var _a;
241
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
200
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
242
201
  ...options,
243
202
  url: '/v2/consumer/workflows/{workflowId}',
244
203
  });
245
204
  };
246
- exports.deleteWorkflow = deleteWorkflow;
247
205
  /**
248
- * Submit a tag to be added to a workflow.
206
+ * Add workflow tag
207
+ * Adds a tag to a workflow
249
208
  */
250
- const addWorkflowTag = (options) => {
209
+ export const addWorkflowTag = (options) => {
251
210
  var _a;
252
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).post({
211
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
253
212
  ...options,
254
213
  url: '/v2/consumer/workflows/{workflowId}/tags',
255
214
  });
256
215
  };
257
- exports.addWorkflowTag = addWorkflowTag;
258
216
  /**
259
- * Delete all tags for a workflow.
217
+ * Delete all workflow tags
260
218
  */
261
- const removeAllWorkflowTags = (options) => {
219
+ export const removeAllWorkflowTags = (options) => {
262
220
  var _a;
263
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
221
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
264
222
  ...options,
265
223
  url: '/v2/consumer/workflows/{workflowId}/tags',
266
224
  });
267
225
  };
268
- exports.removeAllWorkflowTags = removeAllWorkflowTags;
269
226
  /**
270
- * Submit a tag to be removed from a workflow.
227
+ * Delete workflow tag
271
228
  */
272
- const removeWorkflowTag = (options) => {
229
+ export const removeWorkflowTag = (options) => {
273
230
  var _a;
274
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).delete({
231
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
275
232
  ...options,
276
233
  url: '/v2/consumer/workflows/{workflowId}/tags/{tag}',
277
234
  });
278
235
  };
279
- exports.removeWorkflowTag = removeWorkflowTag;
280
236
  /**
281
237
  * Get the status of a workflow step
282
238
  */
283
- const getWorkflowStep = (options) => {
239
+ export const getWorkflowStep = (options) => {
284
240
  var _a;
285
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
241
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
286
242
  ...options,
287
243
  url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
288
244
  });
289
245
  };
290
- exports.getWorkflowStep = getWorkflowStep;
291
246
  /**
292
247
  * Updates a step within a particular workflow.
293
248
  */
294
- const updateWorkflowStep = (options) => {
249
+ export const updateWorkflowStep = (options) => {
295
250
  var _a;
296
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).put({
251
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).put({
297
252
  ...options,
298
253
  url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
299
254
  });
300
255
  };
301
- exports.updateWorkflowStep = updateWorkflowStep;
302
- const patchWorkflowStep = (options) => {
256
+ export const patchWorkflowStep = (options) => {
303
257
  var _a;
304
- return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).patch({
258
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).patch({
305
259
  ...options,
306
260
  url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
307
261
  });
308
262
  };
309
- exports.patchWorkflowStep = patchWorkflowStep;