@hautechai/sdk 0.0.1

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 (51) hide show
  1. package/.env.example +5 -0
  2. package/.github/workflows/main.yml +43 -0
  3. package/LICENSE +19 -0
  4. package/README.md +62 -0
  5. package/dist/autogenerated/api.d.ts +3347 -0
  6. package/dist/autogenerated/api.js +4118 -0
  7. package/dist/autogenerated/base.d.ts +66 -0
  8. package/dist/autogenerated/base.js +59 -0
  9. package/dist/autogenerated/common.d.ts +65 -0
  10. package/dist/autogenerated/common.js +133 -0
  11. package/dist/autogenerated/configuration.d.ts +91 -0
  12. package/dist/autogenerated/configuration.js +39 -0
  13. package/dist/autogenerated/index.d.ts +13 -0
  14. package/dist/autogenerated/index.js +15 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.js +3 -0
  17. package/dist/sdk/accounts/index.d.ts +13 -0
  18. package/dist/sdk/accounts/index.js +17 -0
  19. package/dist/sdk/api.d.ts +23 -0
  20. package/dist/sdk/api.js +48 -0
  21. package/dist/sdk/balances/index.d.ts +12 -0
  22. package/dist/sdk/balances/index.js +19 -0
  23. package/dist/sdk/collections/index.d.ts +28 -0
  24. package/dist/sdk/collections/index.js +31 -0
  25. package/dist/sdk/groups/index.d.ts +24 -0
  26. package/dist/sdk/groups/index.js +31 -0
  27. package/dist/sdk/images/index.d.ts +16 -0
  28. package/dist/sdk/images/index.js +36 -0
  29. package/dist/sdk/index.d.ts +167 -0
  30. package/dist/sdk/index.js +35 -0
  31. package/dist/sdk/operations/index.d.ts +42 -0
  32. package/dist/sdk/operations/index.js +64 -0
  33. package/dist/sdk/operations/updater.d.ts +11 -0
  34. package/dist/sdk/operations/updater.js +23 -0
  35. package/dist/sdk/stacks/index.d.ts +25 -0
  36. package/dist/sdk/stacks/index.js +30 -0
  37. package/dist/sdk/storage/index.d.ts +18 -0
  38. package/dist/sdk/storage/index.js +27 -0
  39. package/dist/sdk/utils/index.d.ts +5 -0
  40. package/dist/sdk/utils/index.js +6 -0
  41. package/dist/token/index.d.ts +15 -0
  42. package/dist/token/index.js +38 -0
  43. package/dist/token/permissions.d.ts +3 -0
  44. package/dist/token/permissions.js +40 -0
  45. package/dist/types.d.ts +54 -0
  46. package/dist/types.js +4 -0
  47. package/jest.setup.js +5 -0
  48. package/openapitools.json +7 -0
  49. package/package.json +37 -0
  50. package/scripts/generate.sh +3 -0
  51. package/tsconfig.json +14 -0
@@ -0,0 +1,4118 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hautech API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
20
+ export const AccountEntityTypeEnum = {
21
+ Root: 'root',
22
+ User: 'user'
23
+ };
24
+ export const AddAccountToGroupControllerParamsDtoRoleEnum = {
25
+ Maintainer: 'maintainer',
26
+ Member: 'member',
27
+ Owner: 'owner'
28
+ };
29
+ export const ConstructPromptV1InputAgeEnum = {
30
+ Adult: 'adult',
31
+ Infant: 'infant',
32
+ PreTeen: 'pre-teen',
33
+ Senior: 'senior',
34
+ Teen: 'teen',
35
+ Toddler: 'toddler'
36
+ };
37
+ export const ConstructPromptV1InputAngleEnum = {
38
+ Back: 'back',
39
+ Front: 'front',
40
+ Side: 'side'
41
+ };
42
+ export const ConstructPromptV1InputBackgroundEnum = {
43
+ Beach: 'beach',
44
+ City: 'city',
45
+ Desert: 'desert',
46
+ Hotel: 'hotel',
47
+ Lounge: 'lounge',
48
+ Paris: 'paris',
49
+ Park: 'park',
50
+ Street: 'street',
51
+ Studio: 'studio'
52
+ };
53
+ export const ConstructPromptV1InputEthnicityEnum = {
54
+ African: 'african',
55
+ AfricanAmerican: 'african-american',
56
+ Asian: 'asian',
57
+ Australian: 'australian',
58
+ CentralAsian: 'central-asian',
59
+ European: 'european',
60
+ Indian: 'indian',
61
+ MiddleEastern: 'middle-eastern',
62
+ NativeAmerican: 'native-american'
63
+ };
64
+ export const ConstructPromptV1InputGenderEnum = {
65
+ Male: 'male',
66
+ Female: 'female'
67
+ };
68
+ export const ConstructPromptV1InputPhotoTypeEnum = {
69
+ Closeup: 'closeup',
70
+ Fullbody: 'fullbody',
71
+ Headshot: 'headshot'
72
+ };
73
+ export const ImageEntityKindEnum = {
74
+ Collection: 'collection',
75
+ Operation: 'operation',
76
+ Stack: 'stack',
77
+ Image: 'image',
78
+ Pose: 'pose',
79
+ Storage: 'storage'
80
+ };
81
+ export const OperationEntityKindEnum = {
82
+ Collection: 'collection',
83
+ Operation: 'operation',
84
+ Stack: 'stack',
85
+ Image: 'image',
86
+ Pose: 'pose',
87
+ Storage: 'storage'
88
+ };
89
+ export const OperationEntityStatusEnum = {
90
+ Pending: 'pending',
91
+ Finished: 'finished',
92
+ Failed: 'failed'
93
+ };
94
+ export const PipelineEntityKindEnum = {
95
+ Collection: 'collection',
96
+ Operation: 'operation',
97
+ Stack: 'stack',
98
+ Image: 'image',
99
+ Pose: 'pose',
100
+ Storage: 'storage'
101
+ };
102
+ export const PipelineEntityStatusEnum = {
103
+ Pending: 'pending',
104
+ Running: 'running',
105
+ Success: 'success',
106
+ Failed: 'failed'
107
+ };
108
+ export const RemoveAccountFromGroupControllerParamsDtoRoleEnum = {
109
+ Maintainer: 'maintainer',
110
+ Member: 'member',
111
+ Owner: 'owner'
112
+ };
113
+ export const ResourceEntityKindEnum = {
114
+ Collection: 'collection',
115
+ Operation: 'operation',
116
+ Stack: 'stack',
117
+ Image: 'image',
118
+ Pose: 'pose',
119
+ Storage: 'storage'
120
+ };
121
+ export const StackEntityKindEnum = {
122
+ Collection: 'collection',
123
+ Operation: 'operation',
124
+ Stack: 'stack',
125
+ Image: 'image',
126
+ Pose: 'pose',
127
+ Storage: 'storage'
128
+ };
129
+ export const StorageEntityKindEnum = {
130
+ Collection: 'collection',
131
+ Operation: 'operation',
132
+ Stack: 'stack',
133
+ Image: 'image',
134
+ Pose: 'pose',
135
+ Storage: 'storage'
136
+ };
137
+ /**
138
+ * AccessApi - axios parameter creator
139
+ * @export
140
+ */
141
+ export const AccessApiAxiosParamCreator = function (configuration) {
142
+ return {
143
+ /**
144
+ *
145
+ * @param {AddAccessParamsDto} addAccessParamsDto
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ accessControllerAddAccessV1: async (addAccessParamsDto, options = {}) => {
150
+ // verify required parameter 'addAccessParamsDto' is not null or undefined
151
+ assertParamExists('accessControllerAddAccessV1', 'addAccessParamsDto', addAccessParamsDto);
152
+ const localVarPath = `/v1/access`;
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ }
159
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
160
+ const localVarHeaderParameter = {};
161
+ const localVarQueryParameter = {};
162
+ // authentication bearer required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
165
+ localVarHeaderParameter['Content-Type'] = 'application/json';
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
169
+ localVarRequestOptions.data = serializeDataIfNeeded(addAccessParamsDto, localVarRequestOptions, configuration);
170
+ return {
171
+ url: toPathString(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ };
174
+ },
175
+ /**
176
+ *
177
+ * @param {string} resource
178
+ * @param {string} resourceId
179
+ * @param {string} action
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ accessControllerCheckAccessV1: async (resource, resourceId, action, options = {}) => {
184
+ // verify required parameter 'resource' is not null or undefined
185
+ assertParamExists('accessControllerCheckAccessV1', 'resource', resource);
186
+ // verify required parameter 'resourceId' is not null or undefined
187
+ assertParamExists('accessControllerCheckAccessV1', 'resourceId', resourceId);
188
+ // verify required parameter 'action' is not null or undefined
189
+ assertParamExists('accessControllerCheckAccessV1', 'action', action);
190
+ const localVarPath = `/v1/access/check/{resource}/{resourceId}/{action}`
191
+ .replace(`{${"resource"}}`, encodeURIComponent(String(resource)))
192
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
193
+ .replace(`{${"action"}}`, encodeURIComponent(String(action)));
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ }
200
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
201
+ const localVarHeaderParameter = {};
202
+ const localVarQueryParameter = {};
203
+ // authentication bearer required
204
+ // http bearer authentication required
205
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
209
+ return {
210
+ url: toPathString(localVarUrlObj),
211
+ options: localVarRequestOptions,
212
+ };
213
+ },
214
+ /**
215
+ *
216
+ * @param {RemoveAccessParamsDto} removeAccessParamsDto
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ accessControllerRemoveAccessV1: async (removeAccessParamsDto, options = {}) => {
221
+ // verify required parameter 'removeAccessParamsDto' is not null or undefined
222
+ assertParamExists('accessControllerRemoveAccessV1', 'removeAccessParamsDto', removeAccessParamsDto);
223
+ const localVarPath = `/v1/access`;
224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
226
+ let baseOptions;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ }
230
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
231
+ const localVarHeaderParameter = {};
232
+ const localVarQueryParameter = {};
233
+ // authentication bearer required
234
+ // http bearer authentication required
235
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
236
+ localVarHeaderParameter['Content-Type'] = 'application/json';
237
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
240
+ localVarRequestOptions.data = serializeDataIfNeeded(removeAccessParamsDto, localVarRequestOptions, configuration);
241
+ return {
242
+ url: toPathString(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ },
246
+ };
247
+ };
248
+ /**
249
+ * AccessApi - functional programming interface
250
+ * @export
251
+ */
252
+ export const AccessApiFp = function (configuration) {
253
+ const localVarAxiosParamCreator = AccessApiAxiosParamCreator(configuration);
254
+ return {
255
+ /**
256
+ *
257
+ * @param {AddAccessParamsDto} addAccessParamsDto
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ async accessControllerAddAccessV1(addAccessParamsDto, options) {
262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accessControllerAddAccessV1(addAccessParamsDto, options);
263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
264
+ const localVarOperationServerBasePath = operationServerMap['AccessApi.accessControllerAddAccessV1']?.[localVarOperationServerIndex]?.url;
265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
266
+ },
267
+ /**
268
+ *
269
+ * @param {string} resource
270
+ * @param {string} resourceId
271
+ * @param {string} action
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ async accessControllerCheckAccessV1(resource, resourceId, action, options) {
276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accessControllerCheckAccessV1(resource, resourceId, action, options);
277
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
278
+ const localVarOperationServerBasePath = operationServerMap['AccessApi.accessControllerCheckAccessV1']?.[localVarOperationServerIndex]?.url;
279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ },
281
+ /**
282
+ *
283
+ * @param {RemoveAccessParamsDto} removeAccessParamsDto
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ async accessControllerRemoveAccessV1(removeAccessParamsDto, options) {
288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accessControllerRemoveAccessV1(removeAccessParamsDto, options);
289
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
290
+ const localVarOperationServerBasePath = operationServerMap['AccessApi.accessControllerRemoveAccessV1']?.[localVarOperationServerIndex]?.url;
291
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
292
+ },
293
+ };
294
+ };
295
+ /**
296
+ * AccessApi - factory interface
297
+ * @export
298
+ */
299
+ export const AccessApiFactory = function (configuration, basePath, axios) {
300
+ const localVarFp = AccessApiFp(configuration);
301
+ return {
302
+ /**
303
+ *
304
+ * @param {AddAccessParamsDto} addAccessParamsDto
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ accessControllerAddAccessV1(addAccessParamsDto, options) {
309
+ return localVarFp.accessControllerAddAccessV1(addAccessParamsDto, options).then((request) => request(axios, basePath));
310
+ },
311
+ /**
312
+ *
313
+ * @param {string} resource
314
+ * @param {string} resourceId
315
+ * @param {string} action
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ accessControllerCheckAccessV1(resource, resourceId, action, options) {
320
+ return localVarFp.accessControllerCheckAccessV1(resource, resourceId, action, options).then((request) => request(axios, basePath));
321
+ },
322
+ /**
323
+ *
324
+ * @param {RemoveAccessParamsDto} removeAccessParamsDto
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ accessControllerRemoveAccessV1(removeAccessParamsDto, options) {
329
+ return localVarFp.accessControllerRemoveAccessV1(removeAccessParamsDto, options).then((request) => request(axios, basePath));
330
+ },
331
+ };
332
+ };
333
+ /**
334
+ * AccessApi - object-oriented interface
335
+ * @export
336
+ * @class AccessApi
337
+ * @extends {BaseAPI}
338
+ */
339
+ export class AccessApi extends BaseAPI {
340
+ /**
341
+ *
342
+ * @param {AddAccessParamsDto} addAccessParamsDto
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ * @memberof AccessApi
346
+ */
347
+ accessControllerAddAccessV1(addAccessParamsDto, options) {
348
+ return AccessApiFp(this.configuration).accessControllerAddAccessV1(addAccessParamsDto, options).then((request) => request(this.axios, this.basePath));
349
+ }
350
+ /**
351
+ *
352
+ * @param {string} resource
353
+ * @param {string} resourceId
354
+ * @param {string} action
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ * @memberof AccessApi
358
+ */
359
+ accessControllerCheckAccessV1(resource, resourceId, action, options) {
360
+ return AccessApiFp(this.configuration).accessControllerCheckAccessV1(resource, resourceId, action, options).then((request) => request(this.axios, this.basePath));
361
+ }
362
+ /**
363
+ *
364
+ * @param {RemoveAccessParamsDto} removeAccessParamsDto
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ * @memberof AccessApi
368
+ */
369
+ accessControllerRemoveAccessV1(removeAccessParamsDto, options) {
370
+ return AccessApiFp(this.configuration).accessControllerRemoveAccessV1(removeAccessParamsDto, options).then((request) => request(this.axios, this.basePath));
371
+ }
372
+ }
373
+ /**
374
+ * AccountsApi - axios parameter creator
375
+ * @export
376
+ */
377
+ export const AccountsApiAxiosParamCreator = function (configuration) {
378
+ return {
379
+ /**
380
+ *
381
+ * @param {CreateAccountParamsDto} createAccountParamsDto
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ accountsControllerCreateAccountV1: async (createAccountParamsDto, options = {}) => {
386
+ // verify required parameter 'createAccountParamsDto' is not null or undefined
387
+ assertParamExists('accountsControllerCreateAccountV1', 'createAccountParamsDto', createAccountParamsDto);
388
+ const localVarPath = `/v1/accounts`;
389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
391
+ let baseOptions;
392
+ if (configuration) {
393
+ baseOptions = configuration.baseOptions;
394
+ }
395
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
396
+ const localVarHeaderParameter = {};
397
+ const localVarQueryParameter = {};
398
+ // authentication bearer required
399
+ // http bearer authentication required
400
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
401
+ localVarHeaderParameter['Content-Type'] = 'application/json';
402
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
404
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
405
+ localVarRequestOptions.data = serializeDataIfNeeded(createAccountParamsDto, localVarRequestOptions, configuration);
406
+ return {
407
+ url: toPathString(localVarUrlObj),
408
+ options: localVarRequestOptions,
409
+ };
410
+ },
411
+ /**
412
+ *
413
+ * @param {string} id
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ */
417
+ accountsControllerGetAccountByAliasV1: async (id, options = {}) => {
418
+ // verify required parameter 'id' is not null or undefined
419
+ assertParamExists('accountsControllerGetAccountByAliasV1', 'id', id);
420
+ const localVarPath = `/v1/accounts/alias/{id}`
421
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
422
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
423
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
424
+ let baseOptions;
425
+ if (configuration) {
426
+ baseOptions = configuration.baseOptions;
427
+ }
428
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
429
+ const localVarHeaderParameter = {};
430
+ const localVarQueryParameter = {};
431
+ // authentication bearer required
432
+ // http bearer authentication required
433
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
434
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
435
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
437
+ return {
438
+ url: toPathString(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ };
441
+ },
442
+ /**
443
+ *
444
+ * @param {string} id
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ accountsControllerGetAccountV1: async (id, options = {}) => {
449
+ // verify required parameter 'id' is not null or undefined
450
+ assertParamExists('accountsControllerGetAccountV1', 'id', id);
451
+ const localVarPath = `/v1/accounts/{id}`
452
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
453
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
454
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
455
+ let baseOptions;
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ }
459
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
460
+ const localVarHeaderParameter = {};
461
+ const localVarQueryParameter = {};
462
+ // authentication bearer required
463
+ // http bearer authentication required
464
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
465
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
466
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
467
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
468
+ return {
469
+ url: toPathString(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ },
473
+ /**
474
+ *
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ accountsControllerGetSelfV1: async (options = {}) => {
479
+ const localVarPath = `/v1/accounts/self`;
480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
482
+ let baseOptions;
483
+ if (configuration) {
484
+ baseOptions = configuration.baseOptions;
485
+ }
486
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
487
+ const localVarHeaderParameter = {};
488
+ const localVarQueryParameter = {};
489
+ // authentication bearer required
490
+ // http bearer authentication required
491
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
495
+ return {
496
+ url: toPathString(localVarUrlObj),
497
+ options: localVarRequestOptions,
498
+ };
499
+ },
500
+ };
501
+ };
502
+ /**
503
+ * AccountsApi - functional programming interface
504
+ * @export
505
+ */
506
+ export const AccountsApiFp = function (configuration) {
507
+ const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
508
+ return {
509
+ /**
510
+ *
511
+ * @param {CreateAccountParamsDto} createAccountParamsDto
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ async accountsControllerCreateAccountV1(createAccountParamsDto, options) {
516
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerCreateAccountV1(createAccountParamsDto, options);
517
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
518
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerCreateAccountV1']?.[localVarOperationServerIndex]?.url;
519
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
520
+ },
521
+ /**
522
+ *
523
+ * @param {string} id
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ async accountsControllerGetAccountByAliasV1(id, options) {
528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerGetAccountByAliasV1(id, options);
529
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
530
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerGetAccountByAliasV1']?.[localVarOperationServerIndex]?.url;
531
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
532
+ },
533
+ /**
534
+ *
535
+ * @param {string} id
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ async accountsControllerGetAccountV1(id, options) {
540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerGetAccountV1(id, options);
541
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
542
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerGetAccountV1']?.[localVarOperationServerIndex]?.url;
543
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
544
+ },
545
+ /**
546
+ *
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ async accountsControllerGetSelfV1(options) {
551
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerGetSelfV1(options);
552
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
553
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerGetSelfV1']?.[localVarOperationServerIndex]?.url;
554
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
555
+ },
556
+ };
557
+ };
558
+ /**
559
+ * AccountsApi - factory interface
560
+ * @export
561
+ */
562
+ export const AccountsApiFactory = function (configuration, basePath, axios) {
563
+ const localVarFp = AccountsApiFp(configuration);
564
+ return {
565
+ /**
566
+ *
567
+ * @param {CreateAccountParamsDto} createAccountParamsDto
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ accountsControllerCreateAccountV1(createAccountParamsDto, options) {
572
+ return localVarFp.accountsControllerCreateAccountV1(createAccountParamsDto, options).then((request) => request(axios, basePath));
573
+ },
574
+ /**
575
+ *
576
+ * @param {string} id
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ accountsControllerGetAccountByAliasV1(id, options) {
581
+ return localVarFp.accountsControllerGetAccountByAliasV1(id, options).then((request) => request(axios, basePath));
582
+ },
583
+ /**
584
+ *
585
+ * @param {string} id
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ accountsControllerGetAccountV1(id, options) {
590
+ return localVarFp.accountsControllerGetAccountV1(id, options).then((request) => request(axios, basePath));
591
+ },
592
+ /**
593
+ *
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ accountsControllerGetSelfV1(options) {
598
+ return localVarFp.accountsControllerGetSelfV1(options).then((request) => request(axios, basePath));
599
+ },
600
+ };
601
+ };
602
+ /**
603
+ * AccountsApi - object-oriented interface
604
+ * @export
605
+ * @class AccountsApi
606
+ * @extends {BaseAPI}
607
+ */
608
+ export class AccountsApi extends BaseAPI {
609
+ /**
610
+ *
611
+ * @param {CreateAccountParamsDto} createAccountParamsDto
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof AccountsApi
615
+ */
616
+ accountsControllerCreateAccountV1(createAccountParamsDto, options) {
617
+ return AccountsApiFp(this.configuration).accountsControllerCreateAccountV1(createAccountParamsDto, options).then((request) => request(this.axios, this.basePath));
618
+ }
619
+ /**
620
+ *
621
+ * @param {string} id
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ * @memberof AccountsApi
625
+ */
626
+ accountsControllerGetAccountByAliasV1(id, options) {
627
+ return AccountsApiFp(this.configuration).accountsControllerGetAccountByAliasV1(id, options).then((request) => request(this.axios, this.basePath));
628
+ }
629
+ /**
630
+ *
631
+ * @param {string} id
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof AccountsApi
635
+ */
636
+ accountsControllerGetAccountV1(id, options) {
637
+ return AccountsApiFp(this.configuration).accountsControllerGetAccountV1(id, options).then((request) => request(this.axios, this.basePath));
638
+ }
639
+ /**
640
+ *
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ * @memberof AccountsApi
644
+ */
645
+ accountsControllerGetSelfV1(options) {
646
+ return AccountsApiFp(this.configuration).accountsControllerGetSelfV1(options).then((request) => request(this.axios, this.basePath));
647
+ }
648
+ }
649
+ /**
650
+ * BalancesApi - axios parameter creator
651
+ * @export
652
+ */
653
+ export const BalancesApiAxiosParamCreator = function (configuration) {
654
+ return {
655
+ /**
656
+ *
657
+ * @param {string} id
658
+ * @param {AddBalanceControllerParamsDto} addBalanceControllerParamsDto
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ balancesControllerAddBalanceV1: async (id, addBalanceControllerParamsDto, options = {}) => {
663
+ // verify required parameter 'id' is not null or undefined
664
+ assertParamExists('balancesControllerAddBalanceV1', 'id', id);
665
+ // verify required parameter 'addBalanceControllerParamsDto' is not null or undefined
666
+ assertParamExists('balancesControllerAddBalanceV1', 'addBalanceControllerParamsDto', addBalanceControllerParamsDto);
667
+ const localVarPath = `/v1/accounts/{id}/balance`
668
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
671
+ let baseOptions;
672
+ if (configuration) {
673
+ baseOptions = configuration.baseOptions;
674
+ }
675
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
676
+ const localVarHeaderParameter = {};
677
+ const localVarQueryParameter = {};
678
+ // authentication bearer required
679
+ // http bearer authentication required
680
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
682
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
685
+ localVarRequestOptions.data = serializeDataIfNeeded(addBalanceControllerParamsDto, localVarRequestOptions, configuration);
686
+ return {
687
+ url: toPathString(localVarUrlObj),
688
+ options: localVarRequestOptions,
689
+ };
690
+ },
691
+ /**
692
+ *
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ */
696
+ balancesControllerGetBalanceForSelfV1: async (options = {}) => {
697
+ const localVarPath = `/v1/accounts/self/balance`;
698
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
699
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
700
+ let baseOptions;
701
+ if (configuration) {
702
+ baseOptions = configuration.baseOptions;
703
+ }
704
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
705
+ const localVarHeaderParameter = {};
706
+ const localVarQueryParameter = {};
707
+ // authentication bearer required
708
+ // http bearer authentication required
709
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
710
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
711
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
712
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
713
+ return {
714
+ url: toPathString(localVarUrlObj),
715
+ options: localVarRequestOptions,
716
+ };
717
+ },
718
+ /**
719
+ *
720
+ * @param {string} id
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ balancesControllerGetBalanceV1: async (id, options = {}) => {
725
+ // verify required parameter 'id' is not null or undefined
726
+ assertParamExists('balancesControllerGetBalanceV1', 'id', id);
727
+ const localVarPath = `/v1/accounts/{id}/balance`
728
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
731
+ let baseOptions;
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
736
+ const localVarHeaderParameter = {};
737
+ const localVarQueryParameter = {};
738
+ // authentication bearer required
739
+ // http bearer authentication required
740
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
741
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
742
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
743
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
744
+ return {
745
+ url: toPathString(localVarUrlObj),
746
+ options: localVarRequestOptions,
747
+ };
748
+ },
749
+ };
750
+ };
751
+ /**
752
+ * BalancesApi - functional programming interface
753
+ * @export
754
+ */
755
+ export const BalancesApiFp = function (configuration) {
756
+ const localVarAxiosParamCreator = BalancesApiAxiosParamCreator(configuration);
757
+ return {
758
+ /**
759
+ *
760
+ * @param {string} id
761
+ * @param {AddBalanceControllerParamsDto} addBalanceControllerParamsDto
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ async balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options) {
766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options);
767
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
768
+ const localVarOperationServerBasePath = operationServerMap['BalancesApi.balancesControllerAddBalanceV1']?.[localVarOperationServerIndex]?.url;
769
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
770
+ },
771
+ /**
772
+ *
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ async balancesControllerGetBalanceForSelfV1(options) {
777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.balancesControllerGetBalanceForSelfV1(options);
778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
779
+ const localVarOperationServerBasePath = operationServerMap['BalancesApi.balancesControllerGetBalanceForSelfV1']?.[localVarOperationServerIndex]?.url;
780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
781
+ },
782
+ /**
783
+ *
784
+ * @param {string} id
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ */
788
+ async balancesControllerGetBalanceV1(id, options) {
789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.balancesControllerGetBalanceV1(id, options);
790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
791
+ const localVarOperationServerBasePath = operationServerMap['BalancesApi.balancesControllerGetBalanceV1']?.[localVarOperationServerIndex]?.url;
792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
793
+ },
794
+ };
795
+ };
796
+ /**
797
+ * BalancesApi - factory interface
798
+ * @export
799
+ */
800
+ export const BalancesApiFactory = function (configuration, basePath, axios) {
801
+ const localVarFp = BalancesApiFp(configuration);
802
+ return {
803
+ /**
804
+ *
805
+ * @param {string} id
806
+ * @param {AddBalanceControllerParamsDto} addBalanceControllerParamsDto
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options) {
811
+ return localVarFp.balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options).then((request) => request(axios, basePath));
812
+ },
813
+ /**
814
+ *
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ */
818
+ balancesControllerGetBalanceForSelfV1(options) {
819
+ return localVarFp.balancesControllerGetBalanceForSelfV1(options).then((request) => request(axios, basePath));
820
+ },
821
+ /**
822
+ *
823
+ * @param {string} id
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ */
827
+ balancesControllerGetBalanceV1(id, options) {
828
+ return localVarFp.balancesControllerGetBalanceV1(id, options).then((request) => request(axios, basePath));
829
+ },
830
+ };
831
+ };
832
+ /**
833
+ * BalancesApi - object-oriented interface
834
+ * @export
835
+ * @class BalancesApi
836
+ * @extends {BaseAPI}
837
+ */
838
+ export class BalancesApi extends BaseAPI {
839
+ /**
840
+ *
841
+ * @param {string} id
842
+ * @param {AddBalanceControllerParamsDto} addBalanceControllerParamsDto
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ * @memberof BalancesApi
846
+ */
847
+ balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options) {
848
+ return BalancesApiFp(this.configuration).balancesControllerAddBalanceV1(id, addBalanceControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
849
+ }
850
+ /**
851
+ *
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ * @memberof BalancesApi
855
+ */
856
+ balancesControllerGetBalanceForSelfV1(options) {
857
+ return BalancesApiFp(this.configuration).balancesControllerGetBalanceForSelfV1(options).then((request) => request(this.axios, this.basePath));
858
+ }
859
+ /**
860
+ *
861
+ * @param {string} id
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ * @memberof BalancesApi
865
+ */
866
+ balancesControllerGetBalanceV1(id, options) {
867
+ return BalancesApiFp(this.configuration).balancesControllerGetBalanceV1(id, options).then((request) => request(this.axios, this.basePath));
868
+ }
869
+ }
870
+ /**
871
+ * CallApi - axios parameter creator
872
+ * @export
873
+ */
874
+ export const CallApiAxiosParamCreator = function (configuration) {
875
+ return {
876
+ /**
877
+ *
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ callControllerCallMethodV1: async (options = {}) => {
882
+ const localVarPath = `/v1/call`;
883
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
884
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
885
+ let baseOptions;
886
+ if (configuration) {
887
+ baseOptions = configuration.baseOptions;
888
+ }
889
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
890
+ const localVarHeaderParameter = {};
891
+ const localVarQueryParameter = {};
892
+ // authentication bearer required
893
+ // http bearer authentication required
894
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
897
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
898
+ return {
899
+ url: toPathString(localVarUrlObj),
900
+ options: localVarRequestOptions,
901
+ };
902
+ },
903
+ };
904
+ };
905
+ /**
906
+ * CallApi - functional programming interface
907
+ * @export
908
+ */
909
+ export const CallApiFp = function (configuration) {
910
+ const localVarAxiosParamCreator = CallApiAxiosParamCreator(configuration);
911
+ return {
912
+ /**
913
+ *
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ async callControllerCallMethodV1(options) {
918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.callControllerCallMethodV1(options);
919
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
920
+ const localVarOperationServerBasePath = operationServerMap['CallApi.callControllerCallMethodV1']?.[localVarOperationServerIndex]?.url;
921
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
922
+ },
923
+ };
924
+ };
925
+ /**
926
+ * CallApi - factory interface
927
+ * @export
928
+ */
929
+ export const CallApiFactory = function (configuration, basePath, axios) {
930
+ const localVarFp = CallApiFp(configuration);
931
+ return {
932
+ /**
933
+ *
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ callControllerCallMethodV1(options) {
938
+ return localVarFp.callControllerCallMethodV1(options).then((request) => request(axios, basePath));
939
+ },
940
+ };
941
+ };
942
+ /**
943
+ * CallApi - object-oriented interface
944
+ * @export
945
+ * @class CallApi
946
+ * @extends {BaseAPI}
947
+ */
948
+ export class CallApi extends BaseAPI {
949
+ /**
950
+ *
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ * @memberof CallApi
954
+ */
955
+ callControllerCallMethodV1(options) {
956
+ return CallApiFp(this.configuration).callControllerCallMethodV1(options).then((request) => request(this.axios, this.basePath));
957
+ }
958
+ }
959
+ /**
960
+ * CollectionsApi - axios parameter creator
961
+ * @export
962
+ */
963
+ export const CollectionsApiAxiosParamCreator = function (configuration) {
964
+ return {
965
+ /**
966
+ *
967
+ * @param {string} id
968
+ * @param {AddItemsToCollectionControllerParamsDto} addItemsToCollectionControllerParamsDto
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ collectionsControllerAddItemsV1: async (id, addItemsToCollectionControllerParamsDto, options = {}) => {
973
+ // verify required parameter 'id' is not null or undefined
974
+ assertParamExists('collectionsControllerAddItemsV1', 'id', id);
975
+ // verify required parameter 'addItemsToCollectionControllerParamsDto' is not null or undefined
976
+ assertParamExists('collectionsControllerAddItemsV1', 'addItemsToCollectionControllerParamsDto', addItemsToCollectionControllerParamsDto);
977
+ const localVarPath = `/v1/collections/{id}/items`
978
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
980
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
981
+ let baseOptions;
982
+ if (configuration) {
983
+ baseOptions = configuration.baseOptions;
984
+ }
985
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
986
+ const localVarHeaderParameter = {};
987
+ const localVarQueryParameter = {};
988
+ // authentication bearer required
989
+ // http bearer authentication required
990
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
991
+ localVarHeaderParameter['Content-Type'] = 'application/json';
992
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
993
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
994
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
995
+ localVarRequestOptions.data = serializeDataIfNeeded(addItemsToCollectionControllerParamsDto, localVarRequestOptions, configuration);
996
+ return {
997
+ url: toPathString(localVarUrlObj),
998
+ options: localVarRequestOptions,
999
+ };
1000
+ },
1001
+ /**
1002
+ *
1003
+ * @param {CreateCollectionParamsDto} createCollectionParamsDto
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ */
1007
+ collectionsControllerCreateCollectionV1: async (createCollectionParamsDto, options = {}) => {
1008
+ // verify required parameter 'createCollectionParamsDto' is not null or undefined
1009
+ assertParamExists('collectionsControllerCreateCollectionV1', 'createCollectionParamsDto', createCollectionParamsDto);
1010
+ const localVarPath = `/v1/collections`;
1011
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1012
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1013
+ let baseOptions;
1014
+ if (configuration) {
1015
+ baseOptions = configuration.baseOptions;
1016
+ }
1017
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1018
+ const localVarHeaderParameter = {};
1019
+ const localVarQueryParameter = {};
1020
+ // authentication bearer required
1021
+ // http bearer authentication required
1022
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1023
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1024
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1026
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1027
+ localVarRequestOptions.data = serializeDataIfNeeded(createCollectionParamsDto, localVarRequestOptions, configuration);
1028
+ return {
1029
+ url: toPathString(localVarUrlObj),
1030
+ options: localVarRequestOptions,
1031
+ };
1032
+ },
1033
+ /**
1034
+ *
1035
+ * @param {string} id
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ collectionsControllerGetCollectionV1: async (id, options = {}) => {
1040
+ // verify required parameter 'id' is not null or undefined
1041
+ assertParamExists('collectionsControllerGetCollectionV1', 'id', id);
1042
+ const localVarPath = `/v1/collections/{id}`
1043
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1044
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1045
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1046
+ let baseOptions;
1047
+ if (configuration) {
1048
+ baseOptions = configuration.baseOptions;
1049
+ }
1050
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1051
+ const localVarHeaderParameter = {};
1052
+ const localVarQueryParameter = {};
1053
+ // authentication bearer required
1054
+ // http bearer authentication required
1055
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1056
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1057
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1058
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1059
+ return {
1060
+ url: toPathString(localVarUrlObj),
1061
+ options: localVarRequestOptions,
1062
+ };
1063
+ },
1064
+ /**
1065
+ *
1066
+ * @param {CollectionsControllerListCollectionsV1OrderByEnum} [orderBy]
1067
+ * @param {number} [limit]
1068
+ * @param {string} [cursor]
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ collectionsControllerListCollectionsV1: async (orderBy, limit, cursor, options = {}) => {
1073
+ const localVarPath = `/v1/collections`;
1074
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1075
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1076
+ let baseOptions;
1077
+ if (configuration) {
1078
+ baseOptions = configuration.baseOptions;
1079
+ }
1080
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1081
+ const localVarHeaderParameter = {};
1082
+ const localVarQueryParameter = {};
1083
+ // authentication bearer required
1084
+ // http bearer authentication required
1085
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1086
+ if (orderBy !== undefined) {
1087
+ localVarQueryParameter['orderBy'] = orderBy;
1088
+ }
1089
+ if (limit !== undefined) {
1090
+ localVarQueryParameter['limit'] = limit;
1091
+ }
1092
+ if (cursor !== undefined) {
1093
+ localVarQueryParameter['cursor'] = cursor;
1094
+ }
1095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1097
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1098
+ return {
1099
+ url: toPathString(localVarUrlObj),
1100
+ options: localVarRequestOptions,
1101
+ };
1102
+ },
1103
+ /**
1104
+ *
1105
+ * @param {string} id
1106
+ * @param {string} [cursor]
1107
+ * @param {CollectionsControllerListItemsV1OrderByEnum} [orderBy]
1108
+ * @param {number} [limit]
1109
+ * @param {CollectionsControllerListItemsV1KindEnum} [kind]
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ collectionsControllerListItemsV1: async (id, cursor, orderBy, limit, kind, options = {}) => {
1114
+ // verify required parameter 'id' is not null or undefined
1115
+ assertParamExists('collectionsControllerListItemsV1', 'id', id);
1116
+ const localVarPath = `/v1/collections/{id}/items`
1117
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1119
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1120
+ let baseOptions;
1121
+ if (configuration) {
1122
+ baseOptions = configuration.baseOptions;
1123
+ }
1124
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1125
+ const localVarHeaderParameter = {};
1126
+ const localVarQueryParameter = {};
1127
+ // authentication bearer required
1128
+ // http bearer authentication required
1129
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1130
+ if (cursor !== undefined) {
1131
+ localVarQueryParameter['cursor'] = cursor;
1132
+ }
1133
+ if (orderBy !== undefined) {
1134
+ localVarQueryParameter['orderBy'] = orderBy;
1135
+ }
1136
+ if (limit !== undefined) {
1137
+ localVarQueryParameter['limit'] = limit;
1138
+ }
1139
+ if (kind !== undefined) {
1140
+ localVarQueryParameter['kind'] = kind;
1141
+ }
1142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1144
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1145
+ return {
1146
+ url: toPathString(localVarUrlObj),
1147
+ options: localVarRequestOptions,
1148
+ };
1149
+ },
1150
+ /**
1151
+ *
1152
+ * @param {string} id
1153
+ * @param {RemoveItemsFromCollectionControllerParamsDto} removeItemsFromCollectionControllerParamsDto
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ collectionsControllerRemoveItemsV1: async (id, removeItemsFromCollectionControllerParamsDto, options = {}) => {
1158
+ // verify required parameter 'id' is not null or undefined
1159
+ assertParamExists('collectionsControllerRemoveItemsV1', 'id', id);
1160
+ // verify required parameter 'removeItemsFromCollectionControllerParamsDto' is not null or undefined
1161
+ assertParamExists('collectionsControllerRemoveItemsV1', 'removeItemsFromCollectionControllerParamsDto', removeItemsFromCollectionControllerParamsDto);
1162
+ const localVarPath = `/v1/collections/{id}/items/remove`
1163
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1165
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1166
+ let baseOptions;
1167
+ if (configuration) {
1168
+ baseOptions = configuration.baseOptions;
1169
+ }
1170
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1171
+ const localVarHeaderParameter = {};
1172
+ const localVarQueryParameter = {};
1173
+ // authentication bearer required
1174
+ // http bearer authentication required
1175
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1179
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1180
+ localVarRequestOptions.data = serializeDataIfNeeded(removeItemsFromCollectionControllerParamsDto, localVarRequestOptions, configuration);
1181
+ return {
1182
+ url: toPathString(localVarUrlObj),
1183
+ options: localVarRequestOptions,
1184
+ };
1185
+ },
1186
+ /**
1187
+ *
1188
+ * @param {string} id
1189
+ * @param {UpdateMetadataDto} updateMetadataDto
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ collectionsControllerUpdateMetadataV1: async (id, updateMetadataDto, options = {}) => {
1194
+ // verify required parameter 'id' is not null or undefined
1195
+ assertParamExists('collectionsControllerUpdateMetadataV1', 'id', id);
1196
+ // verify required parameter 'updateMetadataDto' is not null or undefined
1197
+ assertParamExists('collectionsControllerUpdateMetadataV1', 'updateMetadataDto', updateMetadataDto);
1198
+ const localVarPath = `/v1/collections/{id}/metadata`
1199
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1202
+ let baseOptions;
1203
+ if (configuration) {
1204
+ baseOptions = configuration.baseOptions;
1205
+ }
1206
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1207
+ const localVarHeaderParameter = {};
1208
+ const localVarQueryParameter = {};
1209
+ // authentication bearer required
1210
+ // http bearer authentication required
1211
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1212
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1215
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1216
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMetadataDto, localVarRequestOptions, configuration);
1217
+ return {
1218
+ url: toPathString(localVarUrlObj),
1219
+ options: localVarRequestOptions,
1220
+ };
1221
+ },
1222
+ };
1223
+ };
1224
+ /**
1225
+ * CollectionsApi - functional programming interface
1226
+ * @export
1227
+ */
1228
+ export const CollectionsApiFp = function (configuration) {
1229
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
1230
+ return {
1231
+ /**
1232
+ *
1233
+ * @param {string} id
1234
+ * @param {AddItemsToCollectionControllerParamsDto} addItemsToCollectionControllerParamsDto
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ */
1238
+ async collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options) {
1239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options);
1240
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1241
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerAddItemsV1']?.[localVarOperationServerIndex]?.url;
1242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1243
+ },
1244
+ /**
1245
+ *
1246
+ * @param {CreateCollectionParamsDto} createCollectionParamsDto
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ */
1250
+ async collectionsControllerCreateCollectionV1(createCollectionParamsDto, options) {
1251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerCreateCollectionV1(createCollectionParamsDto, options);
1252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1253
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerCreateCollectionV1']?.[localVarOperationServerIndex]?.url;
1254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1255
+ },
1256
+ /**
1257
+ *
1258
+ * @param {string} id
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ async collectionsControllerGetCollectionV1(id, options) {
1263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerGetCollectionV1(id, options);
1264
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1265
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerGetCollectionV1']?.[localVarOperationServerIndex]?.url;
1266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1267
+ },
1268
+ /**
1269
+ *
1270
+ * @param {CollectionsControllerListCollectionsV1OrderByEnum} [orderBy]
1271
+ * @param {number} [limit]
1272
+ * @param {string} [cursor]
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ */
1276
+ async collectionsControllerListCollectionsV1(orderBy, limit, cursor, options) {
1277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerListCollectionsV1(orderBy, limit, cursor, options);
1278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1279
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerListCollectionsV1']?.[localVarOperationServerIndex]?.url;
1280
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1281
+ },
1282
+ /**
1283
+ *
1284
+ * @param {string} id
1285
+ * @param {string} [cursor]
1286
+ * @param {CollectionsControllerListItemsV1OrderByEnum} [orderBy]
1287
+ * @param {number} [limit]
1288
+ * @param {CollectionsControllerListItemsV1KindEnum} [kind]
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ */
1292
+ async collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options) {
1293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options);
1294
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1295
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerListItemsV1']?.[localVarOperationServerIndex]?.url;
1296
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1297
+ },
1298
+ /**
1299
+ *
1300
+ * @param {string} id
1301
+ * @param {RemoveItemsFromCollectionControllerParamsDto} removeItemsFromCollectionControllerParamsDto
1302
+ * @param {*} [options] Override http request option.
1303
+ * @throws {RequiredError}
1304
+ */
1305
+ async collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options) {
1306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options);
1307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1308
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerRemoveItemsV1']?.[localVarOperationServerIndex]?.url;
1309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1310
+ },
1311
+ /**
1312
+ *
1313
+ * @param {string} id
1314
+ * @param {UpdateMetadataDto} updateMetadataDto
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ async collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
1319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options);
1320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1321
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.collectionsControllerUpdateMetadataV1']?.[localVarOperationServerIndex]?.url;
1322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1323
+ },
1324
+ };
1325
+ };
1326
+ /**
1327
+ * CollectionsApi - factory interface
1328
+ * @export
1329
+ */
1330
+ export const CollectionsApiFactory = function (configuration, basePath, axios) {
1331
+ const localVarFp = CollectionsApiFp(configuration);
1332
+ return {
1333
+ /**
1334
+ *
1335
+ * @param {string} id
1336
+ * @param {AddItemsToCollectionControllerParamsDto} addItemsToCollectionControllerParamsDto
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options) {
1341
+ return localVarFp.collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options).then((request) => request(axios, basePath));
1342
+ },
1343
+ /**
1344
+ *
1345
+ * @param {CreateCollectionParamsDto} createCollectionParamsDto
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ collectionsControllerCreateCollectionV1(createCollectionParamsDto, options) {
1350
+ return localVarFp.collectionsControllerCreateCollectionV1(createCollectionParamsDto, options).then((request) => request(axios, basePath));
1351
+ },
1352
+ /**
1353
+ *
1354
+ * @param {string} id
1355
+ * @param {*} [options] Override http request option.
1356
+ * @throws {RequiredError}
1357
+ */
1358
+ collectionsControllerGetCollectionV1(id, options) {
1359
+ return localVarFp.collectionsControllerGetCollectionV1(id, options).then((request) => request(axios, basePath));
1360
+ },
1361
+ /**
1362
+ *
1363
+ * @param {CollectionsControllerListCollectionsV1OrderByEnum} [orderBy]
1364
+ * @param {number} [limit]
1365
+ * @param {string} [cursor]
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ */
1369
+ collectionsControllerListCollectionsV1(orderBy, limit, cursor, options) {
1370
+ return localVarFp.collectionsControllerListCollectionsV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
1371
+ },
1372
+ /**
1373
+ *
1374
+ * @param {string} id
1375
+ * @param {string} [cursor]
1376
+ * @param {CollectionsControllerListItemsV1OrderByEnum} [orderBy]
1377
+ * @param {number} [limit]
1378
+ * @param {CollectionsControllerListItemsV1KindEnum} [kind]
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options) {
1383
+ return localVarFp.collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options).then((request) => request(axios, basePath));
1384
+ },
1385
+ /**
1386
+ *
1387
+ * @param {string} id
1388
+ * @param {RemoveItemsFromCollectionControllerParamsDto} removeItemsFromCollectionControllerParamsDto
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ */
1392
+ collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options) {
1393
+ return localVarFp.collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options).then((request) => request(axios, basePath));
1394
+ },
1395
+ /**
1396
+ *
1397
+ * @param {string} id
1398
+ * @param {UpdateMetadataDto} updateMetadataDto
1399
+ * @param {*} [options] Override http request option.
1400
+ * @throws {RequiredError}
1401
+ */
1402
+ collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
1403
+ return localVarFp.collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(axios, basePath));
1404
+ },
1405
+ };
1406
+ };
1407
+ /**
1408
+ * CollectionsApi - object-oriented interface
1409
+ * @export
1410
+ * @class CollectionsApi
1411
+ * @extends {BaseAPI}
1412
+ */
1413
+ export class CollectionsApi extends BaseAPI {
1414
+ /**
1415
+ *
1416
+ * @param {string} id
1417
+ * @param {AddItemsToCollectionControllerParamsDto} addItemsToCollectionControllerParamsDto
1418
+ * @param {*} [options] Override http request option.
1419
+ * @throws {RequiredError}
1420
+ * @memberof CollectionsApi
1421
+ */
1422
+ collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options) {
1423
+ return CollectionsApiFp(this.configuration).collectionsControllerAddItemsV1(id, addItemsToCollectionControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
1424
+ }
1425
+ /**
1426
+ *
1427
+ * @param {CreateCollectionParamsDto} createCollectionParamsDto
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ * @memberof CollectionsApi
1431
+ */
1432
+ collectionsControllerCreateCollectionV1(createCollectionParamsDto, options) {
1433
+ return CollectionsApiFp(this.configuration).collectionsControllerCreateCollectionV1(createCollectionParamsDto, options).then((request) => request(this.axios, this.basePath));
1434
+ }
1435
+ /**
1436
+ *
1437
+ * @param {string} id
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ * @memberof CollectionsApi
1441
+ */
1442
+ collectionsControllerGetCollectionV1(id, options) {
1443
+ return CollectionsApiFp(this.configuration).collectionsControllerGetCollectionV1(id, options).then((request) => request(this.axios, this.basePath));
1444
+ }
1445
+ /**
1446
+ *
1447
+ * @param {CollectionsControllerListCollectionsV1OrderByEnum} [orderBy]
1448
+ * @param {number} [limit]
1449
+ * @param {string} [cursor]
1450
+ * @param {*} [options] Override http request option.
1451
+ * @throws {RequiredError}
1452
+ * @memberof CollectionsApi
1453
+ */
1454
+ collectionsControllerListCollectionsV1(orderBy, limit, cursor, options) {
1455
+ return CollectionsApiFp(this.configuration).collectionsControllerListCollectionsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1456
+ }
1457
+ /**
1458
+ *
1459
+ * @param {string} id
1460
+ * @param {string} [cursor]
1461
+ * @param {CollectionsControllerListItemsV1OrderByEnum} [orderBy]
1462
+ * @param {number} [limit]
1463
+ * @param {CollectionsControllerListItemsV1KindEnum} [kind]
1464
+ * @param {*} [options] Override http request option.
1465
+ * @throws {RequiredError}
1466
+ * @memberof CollectionsApi
1467
+ */
1468
+ collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options) {
1469
+ return CollectionsApiFp(this.configuration).collectionsControllerListItemsV1(id, cursor, orderBy, limit, kind, options).then((request) => request(this.axios, this.basePath));
1470
+ }
1471
+ /**
1472
+ *
1473
+ * @param {string} id
1474
+ * @param {RemoveItemsFromCollectionControllerParamsDto} removeItemsFromCollectionControllerParamsDto
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ * @memberof CollectionsApi
1478
+ */
1479
+ collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options) {
1480
+ return CollectionsApiFp(this.configuration).collectionsControllerRemoveItemsV1(id, removeItemsFromCollectionControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
1481
+ }
1482
+ /**
1483
+ *
1484
+ * @param {string} id
1485
+ * @param {UpdateMetadataDto} updateMetadataDto
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ * @memberof CollectionsApi
1489
+ */
1490
+ collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
1491
+ return CollectionsApiFp(this.configuration).collectionsControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(this.axios, this.basePath));
1492
+ }
1493
+ }
1494
+ /**
1495
+ * @export
1496
+ */
1497
+ export const CollectionsControllerListCollectionsV1OrderByEnum = {
1498
+ CreatedAtAsc: 'createdAt_ASC',
1499
+ CreatedAtDesc: 'createdAt_DESC',
1500
+ UpdatedAtAsc: 'updatedAt_ASC',
1501
+ UpdatedAtDesc: 'updatedAt_DESC'
1502
+ };
1503
+ /**
1504
+ * @export
1505
+ */
1506
+ export const CollectionsControllerListItemsV1OrderByEnum = {
1507
+ CreatedAtAsc: 'createdAt_ASC',
1508
+ CreatedAtDesc: 'createdAt_DESC',
1509
+ UpdatedAtAsc: 'updatedAt_ASC',
1510
+ UpdatedAtDesc: 'updatedAt_DESC'
1511
+ };
1512
+ /**
1513
+ * @export
1514
+ */
1515
+ export const CollectionsControllerListItemsV1KindEnum = {
1516
+ Collection: 'collection',
1517
+ Operation: 'operation',
1518
+ Stack: 'stack',
1519
+ Image: 'image',
1520
+ Pose: 'pose',
1521
+ Storage: 'storage'
1522
+ };
1523
+ /**
1524
+ * GroupsApi - axios parameter creator
1525
+ * @export
1526
+ */
1527
+ export const GroupsApiAxiosParamCreator = function (configuration) {
1528
+ return {
1529
+ /**
1530
+ *
1531
+ * @param {string} id
1532
+ * @param {AddAccountToGroupControllerParamsDto} addAccountToGroupControllerParamsDto
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ groupsControllerAddAccountV1: async (id, addAccountToGroupControllerParamsDto, options = {}) => {
1537
+ // verify required parameter 'id' is not null or undefined
1538
+ assertParamExists('groupsControllerAddAccountV1', 'id', id);
1539
+ // verify required parameter 'addAccountToGroupControllerParamsDto' is not null or undefined
1540
+ assertParamExists('groupsControllerAddAccountV1', 'addAccountToGroupControllerParamsDto', addAccountToGroupControllerParamsDto);
1541
+ const localVarPath = `/v1/groups/{id}/accounts/add`
1542
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1543
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1544
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1545
+ let baseOptions;
1546
+ if (configuration) {
1547
+ baseOptions = configuration.baseOptions;
1548
+ }
1549
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1550
+ const localVarHeaderParameter = {};
1551
+ const localVarQueryParameter = {};
1552
+ // authentication bearer required
1553
+ // http bearer authentication required
1554
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1555
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1556
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1558
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1559
+ localVarRequestOptions.data = serializeDataIfNeeded(addAccountToGroupControllerParamsDto, localVarRequestOptions, configuration);
1560
+ return {
1561
+ url: toPathString(localVarUrlObj),
1562
+ options: localVarRequestOptions,
1563
+ };
1564
+ },
1565
+ /**
1566
+ *
1567
+ * @param {*} [options] Override http request option.
1568
+ * @throws {RequiredError}
1569
+ */
1570
+ groupsControllerCreateGroupV1: async (options = {}) => {
1571
+ const localVarPath = `/v1/groups`;
1572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1574
+ let baseOptions;
1575
+ if (configuration) {
1576
+ baseOptions = configuration.baseOptions;
1577
+ }
1578
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1579
+ const localVarHeaderParameter = {};
1580
+ const localVarQueryParameter = {};
1581
+ // authentication bearer required
1582
+ // http bearer authentication required
1583
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1584
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1586
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1587
+ return {
1588
+ url: toPathString(localVarUrlObj),
1589
+ options: localVarRequestOptions,
1590
+ };
1591
+ },
1592
+ /**
1593
+ *
1594
+ * @param {string} id
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ groupsControllerDeleteGroupV1: async (id, options = {}) => {
1599
+ // verify required parameter 'id' is not null or undefined
1600
+ assertParamExists('groupsControllerDeleteGroupV1', 'id', id);
1601
+ const localVarPath = `/v1/groups/{id}`
1602
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1605
+ let baseOptions;
1606
+ if (configuration) {
1607
+ baseOptions = configuration.baseOptions;
1608
+ }
1609
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1610
+ const localVarHeaderParameter = {};
1611
+ const localVarQueryParameter = {};
1612
+ // authentication bearer required
1613
+ // http bearer authentication required
1614
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1615
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1617
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1618
+ return {
1619
+ url: toPathString(localVarUrlObj),
1620
+ options: localVarRequestOptions,
1621
+ };
1622
+ },
1623
+ /**
1624
+ *
1625
+ * @param {string} id
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ groupsControllerGetGroupV1: async (id, options = {}) => {
1630
+ // verify required parameter 'id' is not null or undefined
1631
+ assertParamExists('groupsControllerGetGroupV1', 'id', id);
1632
+ const localVarPath = `/v1/groups/{id}`
1633
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1635
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1636
+ let baseOptions;
1637
+ if (configuration) {
1638
+ baseOptions = configuration.baseOptions;
1639
+ }
1640
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1641
+ const localVarHeaderParameter = {};
1642
+ const localVarQueryParameter = {};
1643
+ // authentication bearer required
1644
+ // http bearer authentication required
1645
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1646
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1648
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1649
+ return {
1650
+ url: toPathString(localVarUrlObj),
1651
+ options: localVarRequestOptions,
1652
+ };
1653
+ },
1654
+ /**
1655
+ *
1656
+ * @param {string} id
1657
+ * @param {RemoveAccountFromGroupControllerParamsDto} removeAccountFromGroupControllerParamsDto
1658
+ * @param {*} [options] Override http request option.
1659
+ * @throws {RequiredError}
1660
+ */
1661
+ groupsControllerRemoveAccountV1: async (id, removeAccountFromGroupControllerParamsDto, options = {}) => {
1662
+ // verify required parameter 'id' is not null or undefined
1663
+ assertParamExists('groupsControllerRemoveAccountV1', 'id', id);
1664
+ // verify required parameter 'removeAccountFromGroupControllerParamsDto' is not null or undefined
1665
+ assertParamExists('groupsControllerRemoveAccountV1', 'removeAccountFromGroupControllerParamsDto', removeAccountFromGroupControllerParamsDto);
1666
+ const localVarPath = `/v1/groups/{id}/accounts/remove`
1667
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1670
+ let baseOptions;
1671
+ if (configuration) {
1672
+ baseOptions = configuration.baseOptions;
1673
+ }
1674
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1675
+ const localVarHeaderParameter = {};
1676
+ const localVarQueryParameter = {};
1677
+ // authentication bearer required
1678
+ // http bearer authentication required
1679
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1680
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1681
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1682
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1683
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1684
+ localVarRequestOptions.data = serializeDataIfNeeded(removeAccountFromGroupControllerParamsDto, localVarRequestOptions, configuration);
1685
+ return {
1686
+ url: toPathString(localVarUrlObj),
1687
+ options: localVarRequestOptions,
1688
+ };
1689
+ },
1690
+ };
1691
+ };
1692
+ /**
1693
+ * GroupsApi - functional programming interface
1694
+ * @export
1695
+ */
1696
+ export const GroupsApiFp = function (configuration) {
1697
+ const localVarAxiosParamCreator = GroupsApiAxiosParamCreator(configuration);
1698
+ return {
1699
+ /**
1700
+ *
1701
+ * @param {string} id
1702
+ * @param {AddAccountToGroupControllerParamsDto} addAccountToGroupControllerParamsDto
1703
+ * @param {*} [options] Override http request option.
1704
+ * @throws {RequiredError}
1705
+ */
1706
+ async groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
1707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options);
1708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1709
+ const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerAddAccountV1']?.[localVarOperationServerIndex]?.url;
1710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1711
+ },
1712
+ /**
1713
+ *
1714
+ * @param {*} [options] Override http request option.
1715
+ * @throws {RequiredError}
1716
+ */
1717
+ async groupsControllerCreateGroupV1(options) {
1718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerCreateGroupV1(options);
1719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1720
+ const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerCreateGroupV1']?.[localVarOperationServerIndex]?.url;
1721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1722
+ },
1723
+ /**
1724
+ *
1725
+ * @param {string} id
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ */
1729
+ async groupsControllerDeleteGroupV1(id, options) {
1730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerDeleteGroupV1(id, options);
1731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1732
+ const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerDeleteGroupV1']?.[localVarOperationServerIndex]?.url;
1733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1734
+ },
1735
+ /**
1736
+ *
1737
+ * @param {string} id
1738
+ * @param {*} [options] Override http request option.
1739
+ * @throws {RequiredError}
1740
+ */
1741
+ async groupsControllerGetGroupV1(id, options) {
1742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerGetGroupV1(id, options);
1743
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1744
+ const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerGetGroupV1']?.[localVarOperationServerIndex]?.url;
1745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1746
+ },
1747
+ /**
1748
+ *
1749
+ * @param {string} id
1750
+ * @param {RemoveAccountFromGroupControllerParamsDto} removeAccountFromGroupControllerParamsDto
1751
+ * @param {*} [options] Override http request option.
1752
+ * @throws {RequiredError}
1753
+ */
1754
+ async groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
1755
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options);
1756
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1757
+ const localVarOperationServerBasePath = operationServerMap['GroupsApi.groupsControllerRemoveAccountV1']?.[localVarOperationServerIndex]?.url;
1758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1759
+ },
1760
+ };
1761
+ };
1762
+ /**
1763
+ * GroupsApi - factory interface
1764
+ * @export
1765
+ */
1766
+ export const GroupsApiFactory = function (configuration, basePath, axios) {
1767
+ const localVarFp = GroupsApiFp(configuration);
1768
+ return {
1769
+ /**
1770
+ *
1771
+ * @param {string} id
1772
+ * @param {AddAccountToGroupControllerParamsDto} addAccountToGroupControllerParamsDto
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ */
1776
+ groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
1777
+ return localVarFp.groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options).then((request) => request(axios, basePath));
1778
+ },
1779
+ /**
1780
+ *
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ groupsControllerCreateGroupV1(options) {
1785
+ return localVarFp.groupsControllerCreateGroupV1(options).then((request) => request(axios, basePath));
1786
+ },
1787
+ /**
1788
+ *
1789
+ * @param {string} id
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ groupsControllerDeleteGroupV1(id, options) {
1794
+ return localVarFp.groupsControllerDeleteGroupV1(id, options).then((request) => request(axios, basePath));
1795
+ },
1796
+ /**
1797
+ *
1798
+ * @param {string} id
1799
+ * @param {*} [options] Override http request option.
1800
+ * @throws {RequiredError}
1801
+ */
1802
+ groupsControllerGetGroupV1(id, options) {
1803
+ return localVarFp.groupsControllerGetGroupV1(id, options).then((request) => request(axios, basePath));
1804
+ },
1805
+ /**
1806
+ *
1807
+ * @param {string} id
1808
+ * @param {RemoveAccountFromGroupControllerParamsDto} removeAccountFromGroupControllerParamsDto
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ */
1812
+ groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
1813
+ return localVarFp.groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options).then((request) => request(axios, basePath));
1814
+ },
1815
+ };
1816
+ };
1817
+ /**
1818
+ * GroupsApi - object-oriented interface
1819
+ * @export
1820
+ * @class GroupsApi
1821
+ * @extends {BaseAPI}
1822
+ */
1823
+ export class GroupsApi extends BaseAPI {
1824
+ /**
1825
+ *
1826
+ * @param {string} id
1827
+ * @param {AddAccountToGroupControllerParamsDto} addAccountToGroupControllerParamsDto
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ * @memberof GroupsApi
1831
+ */
1832
+ groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options) {
1833
+ return GroupsApiFp(this.configuration).groupsControllerAddAccountV1(id, addAccountToGroupControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
1834
+ }
1835
+ /**
1836
+ *
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ * @memberof GroupsApi
1840
+ */
1841
+ groupsControllerCreateGroupV1(options) {
1842
+ return GroupsApiFp(this.configuration).groupsControllerCreateGroupV1(options).then((request) => request(this.axios, this.basePath));
1843
+ }
1844
+ /**
1845
+ *
1846
+ * @param {string} id
1847
+ * @param {*} [options] Override http request option.
1848
+ * @throws {RequiredError}
1849
+ * @memberof GroupsApi
1850
+ */
1851
+ groupsControllerDeleteGroupV1(id, options) {
1852
+ return GroupsApiFp(this.configuration).groupsControllerDeleteGroupV1(id, options).then((request) => request(this.axios, this.basePath));
1853
+ }
1854
+ /**
1855
+ *
1856
+ * @param {string} id
1857
+ * @param {*} [options] Override http request option.
1858
+ * @throws {RequiredError}
1859
+ * @memberof GroupsApi
1860
+ */
1861
+ groupsControllerGetGroupV1(id, options) {
1862
+ return GroupsApiFp(this.configuration).groupsControllerGetGroupV1(id, options).then((request) => request(this.axios, this.basePath));
1863
+ }
1864
+ /**
1865
+ *
1866
+ * @param {string} id
1867
+ * @param {RemoveAccountFromGroupControllerParamsDto} removeAccountFromGroupControllerParamsDto
1868
+ * @param {*} [options] Override http request option.
1869
+ * @throws {RequiredError}
1870
+ * @memberof GroupsApi
1871
+ */
1872
+ groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options) {
1873
+ return GroupsApiFp(this.configuration).groupsControllerRemoveAccountV1(id, removeAccountFromGroupControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
1874
+ }
1875
+ }
1876
+ /**
1877
+ * ImagesApi - axios parameter creator
1878
+ * @export
1879
+ */
1880
+ export const ImagesApiAxiosParamCreator = function (configuration) {
1881
+ return {
1882
+ /**
1883
+ *
1884
+ * @param {CreateImageParamsDto} createImageParamsDto
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ imagesControllerFinalizeUploadV1: async (createImageParamsDto, options = {}) => {
1889
+ // verify required parameter 'createImageParamsDto' is not null or undefined
1890
+ assertParamExists('imagesControllerFinalizeUploadV1', 'createImageParamsDto', createImageParamsDto);
1891
+ const localVarPath = `/v1/images/upload/finalize`;
1892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1893
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1894
+ let baseOptions;
1895
+ if (configuration) {
1896
+ baseOptions = configuration.baseOptions;
1897
+ }
1898
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1899
+ const localVarHeaderParameter = {};
1900
+ const localVarQueryParameter = {};
1901
+ // authentication bearer required
1902
+ // http bearer authentication required
1903
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1907
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1908
+ localVarRequestOptions.data = serializeDataIfNeeded(createImageParamsDto, localVarRequestOptions, configuration);
1909
+ return {
1910
+ url: toPathString(localVarUrlObj),
1911
+ options: localVarRequestOptions,
1912
+ };
1913
+ },
1914
+ /**
1915
+ *
1916
+ * @param {string} id
1917
+ * @param {*} [options] Override http request option.
1918
+ * @throws {RequiredError}
1919
+ */
1920
+ imagesControllerGetImageV1: async (id, options = {}) => {
1921
+ // verify required parameter 'id' is not null or undefined
1922
+ assertParamExists('imagesControllerGetImageV1', 'id', id);
1923
+ const localVarPath = `/v1/images/{id}`
1924
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1925
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1926
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1927
+ let baseOptions;
1928
+ if (configuration) {
1929
+ baseOptions = configuration.baseOptions;
1930
+ }
1931
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1932
+ const localVarHeaderParameter = {};
1933
+ const localVarQueryParameter = {};
1934
+ // authentication bearer required
1935
+ // http bearer authentication required
1936
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1937
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1938
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1939
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1940
+ return {
1941
+ url: toPathString(localVarUrlObj),
1942
+ options: localVarRequestOptions,
1943
+ };
1944
+ },
1945
+ /**
1946
+ *
1947
+ * @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
1948
+ * @param {*} [options] Override http request option.
1949
+ * @throws {RequiredError}
1950
+ */
1951
+ imagesControllerGetUrlsV1: async (getUrlsForImagesParamsDto, options = {}) => {
1952
+ // verify required parameter 'getUrlsForImagesParamsDto' is not null or undefined
1953
+ assertParamExists('imagesControllerGetUrlsV1', 'getUrlsForImagesParamsDto', getUrlsForImagesParamsDto);
1954
+ const localVarPath = `/v1/images/urls`;
1955
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1956
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1957
+ let baseOptions;
1958
+ if (configuration) {
1959
+ baseOptions = configuration.baseOptions;
1960
+ }
1961
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1962
+ const localVarHeaderParameter = {};
1963
+ const localVarQueryParameter = {};
1964
+ // authentication bearer required
1965
+ // http bearer authentication required
1966
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1967
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1968
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1969
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1970
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1971
+ localVarRequestOptions.data = serializeDataIfNeeded(getUrlsForImagesParamsDto, localVarRequestOptions, configuration);
1972
+ return {
1973
+ url: toPathString(localVarUrlObj),
1974
+ options: localVarRequestOptions,
1975
+ };
1976
+ },
1977
+ /**
1978
+ *
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ imagesControllerStartUploadV1: async (options = {}) => {
1983
+ const localVarPath = `/v1/images/upload/initialize`;
1984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1986
+ let baseOptions;
1987
+ if (configuration) {
1988
+ baseOptions = configuration.baseOptions;
1989
+ }
1990
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1991
+ const localVarHeaderParameter = {};
1992
+ const localVarQueryParameter = {};
1993
+ // authentication bearer required
1994
+ // http bearer authentication required
1995
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1996
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1997
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1998
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1999
+ return {
2000
+ url: toPathString(localVarUrlObj),
2001
+ options: localVarRequestOptions,
2002
+ };
2003
+ },
2004
+ };
2005
+ };
2006
+ /**
2007
+ * ImagesApi - functional programming interface
2008
+ * @export
2009
+ */
2010
+ export const ImagesApiFp = function (configuration) {
2011
+ const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration);
2012
+ return {
2013
+ /**
2014
+ *
2015
+ * @param {CreateImageParamsDto} createImageParamsDto
2016
+ * @param {*} [options] Override http request option.
2017
+ * @throws {RequiredError}
2018
+ */
2019
+ async imagesControllerFinalizeUploadV1(createImageParamsDto, options) {
2020
+ const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerFinalizeUploadV1(createImageParamsDto, options);
2021
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2022
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerFinalizeUploadV1']?.[localVarOperationServerIndex]?.url;
2023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2024
+ },
2025
+ /**
2026
+ *
2027
+ * @param {string} id
2028
+ * @param {*} [options] Override http request option.
2029
+ * @throws {RequiredError}
2030
+ */
2031
+ async imagesControllerGetImageV1(id, options) {
2032
+ const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerGetImageV1(id, options);
2033
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2034
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerGetImageV1']?.[localVarOperationServerIndex]?.url;
2035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2036
+ },
2037
+ /**
2038
+ *
2039
+ * @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ */
2043
+ async imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options) {
2044
+ const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options);
2045
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2046
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerGetUrlsV1']?.[localVarOperationServerIndex]?.url;
2047
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2048
+ },
2049
+ /**
2050
+ *
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ */
2054
+ async imagesControllerStartUploadV1(options) {
2055
+ const localVarAxiosArgs = await localVarAxiosParamCreator.imagesControllerStartUploadV1(options);
2056
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2057
+ const localVarOperationServerBasePath = operationServerMap['ImagesApi.imagesControllerStartUploadV1']?.[localVarOperationServerIndex]?.url;
2058
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2059
+ },
2060
+ };
2061
+ };
2062
+ /**
2063
+ * ImagesApi - factory interface
2064
+ * @export
2065
+ */
2066
+ export const ImagesApiFactory = function (configuration, basePath, axios) {
2067
+ const localVarFp = ImagesApiFp(configuration);
2068
+ return {
2069
+ /**
2070
+ *
2071
+ * @param {CreateImageParamsDto} createImageParamsDto
2072
+ * @param {*} [options] Override http request option.
2073
+ * @throws {RequiredError}
2074
+ */
2075
+ imagesControllerFinalizeUploadV1(createImageParamsDto, options) {
2076
+ return localVarFp.imagesControllerFinalizeUploadV1(createImageParamsDto, options).then((request) => request(axios, basePath));
2077
+ },
2078
+ /**
2079
+ *
2080
+ * @param {string} id
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ imagesControllerGetImageV1(id, options) {
2085
+ return localVarFp.imagesControllerGetImageV1(id, options).then((request) => request(axios, basePath));
2086
+ },
2087
+ /**
2088
+ *
2089
+ * @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ */
2093
+ imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options) {
2094
+ return localVarFp.imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options).then((request) => request(axios, basePath));
2095
+ },
2096
+ /**
2097
+ *
2098
+ * @param {*} [options] Override http request option.
2099
+ * @throws {RequiredError}
2100
+ */
2101
+ imagesControllerStartUploadV1(options) {
2102
+ return localVarFp.imagesControllerStartUploadV1(options).then((request) => request(axios, basePath));
2103
+ },
2104
+ };
2105
+ };
2106
+ /**
2107
+ * ImagesApi - object-oriented interface
2108
+ * @export
2109
+ * @class ImagesApi
2110
+ * @extends {BaseAPI}
2111
+ */
2112
+ export class ImagesApi extends BaseAPI {
2113
+ /**
2114
+ *
2115
+ * @param {CreateImageParamsDto} createImageParamsDto
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ * @memberof ImagesApi
2119
+ */
2120
+ imagesControllerFinalizeUploadV1(createImageParamsDto, options) {
2121
+ return ImagesApiFp(this.configuration).imagesControllerFinalizeUploadV1(createImageParamsDto, options).then((request) => request(this.axios, this.basePath));
2122
+ }
2123
+ /**
2124
+ *
2125
+ * @param {string} id
2126
+ * @param {*} [options] Override http request option.
2127
+ * @throws {RequiredError}
2128
+ * @memberof ImagesApi
2129
+ */
2130
+ imagesControllerGetImageV1(id, options) {
2131
+ return ImagesApiFp(this.configuration).imagesControllerGetImageV1(id, options).then((request) => request(this.axios, this.basePath));
2132
+ }
2133
+ /**
2134
+ *
2135
+ * @param {GetUrlsForImagesParamsDto} getUrlsForImagesParamsDto
2136
+ * @param {*} [options] Override http request option.
2137
+ * @throws {RequiredError}
2138
+ * @memberof ImagesApi
2139
+ */
2140
+ imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options) {
2141
+ return ImagesApiFp(this.configuration).imagesControllerGetUrlsV1(getUrlsForImagesParamsDto, options).then((request) => request(this.axios, this.basePath));
2142
+ }
2143
+ /**
2144
+ *
2145
+ * @param {*} [options] Override http request option.
2146
+ * @throws {RequiredError}
2147
+ * @memberof ImagesApi
2148
+ */
2149
+ imagesControllerStartUploadV1(options) {
2150
+ return ImagesApiFp(this.configuration).imagesControllerStartUploadV1(options).then((request) => request(this.axios, this.basePath));
2151
+ }
2152
+ }
2153
+ /**
2154
+ * OperationsApi - axios parameter creator
2155
+ * @export
2156
+ */
2157
+ export const OperationsApiAxiosParamCreator = function (configuration) {
2158
+ return {
2159
+ /**
2160
+ *
2161
+ * @param {string} id
2162
+ * @param {*} [options] Override http request option.
2163
+ * @throws {RequiredError}
2164
+ */
2165
+ operationsControllerGetOperationV1: async (id, options = {}) => {
2166
+ // verify required parameter 'id' is not null or undefined
2167
+ assertParamExists('operationsControllerGetOperationV1', 'id', id);
2168
+ const localVarPath = `/v1/operations/{id}`
2169
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2172
+ let baseOptions;
2173
+ if (configuration) {
2174
+ baseOptions = configuration.baseOptions;
2175
+ }
2176
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2177
+ const localVarHeaderParameter = {};
2178
+ const localVarQueryParameter = {};
2179
+ // authentication bearer required
2180
+ // http bearer authentication required
2181
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2184
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2185
+ return {
2186
+ url: toPathString(localVarUrlObj),
2187
+ options: localVarRequestOptions,
2188
+ };
2189
+ },
2190
+ /**
2191
+ *
2192
+ * @param {GetOperationsParamsDto} getOperationsParamsDto
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ operationsControllerGetOperationsV1: async (getOperationsParamsDto, options = {}) => {
2197
+ // verify required parameter 'getOperationsParamsDto' is not null or undefined
2198
+ assertParamExists('operationsControllerGetOperationsV1', 'getOperationsParamsDto', getOperationsParamsDto);
2199
+ const localVarPath = `/v1/operations/batch`;
2200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2202
+ let baseOptions;
2203
+ if (configuration) {
2204
+ baseOptions = configuration.baseOptions;
2205
+ }
2206
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2207
+ const localVarHeaderParameter = {};
2208
+ const localVarQueryParameter = {};
2209
+ // authentication bearer required
2210
+ // http bearer authentication required
2211
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2212
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2215
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2216
+ localVarRequestOptions.data = serializeDataIfNeeded(getOperationsParamsDto, localVarRequestOptions, configuration);
2217
+ return {
2218
+ url: toPathString(localVarUrlObj),
2219
+ options: localVarRequestOptions,
2220
+ };
2221
+ },
2222
+ /**
2223
+ *
2224
+ * @param {OperationsControllerListOperationsV1OrderByEnum} [orderBy]
2225
+ * @param {number} [limit]
2226
+ * @param {string} [cursor]
2227
+ * @param {*} [options] Override http request option.
2228
+ * @throws {RequiredError}
2229
+ */
2230
+ operationsControllerListOperationsV1: async (orderBy, limit, cursor, options = {}) => {
2231
+ const localVarPath = `/v1/operations`;
2232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2234
+ let baseOptions;
2235
+ if (configuration) {
2236
+ baseOptions = configuration.baseOptions;
2237
+ }
2238
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2239
+ const localVarHeaderParameter = {};
2240
+ const localVarQueryParameter = {};
2241
+ // authentication bearer required
2242
+ // http bearer authentication required
2243
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2244
+ if (orderBy !== undefined) {
2245
+ localVarQueryParameter['orderBy'] = orderBy;
2246
+ }
2247
+ if (limit !== undefined) {
2248
+ localVarQueryParameter['limit'] = limit;
2249
+ }
2250
+ if (cursor !== undefined) {
2251
+ localVarQueryParameter['cursor'] = cursor;
2252
+ }
2253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2255
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2256
+ return {
2257
+ url: toPathString(localVarUrlObj),
2258
+ options: localVarRequestOptions,
2259
+ };
2260
+ },
2261
+ /**
2262
+ *
2263
+ * @param {ConstructPromptV1ControllerInput} constructPromptV1ControllerInput
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ operationsControllerRunConstructPromptV1V1: async (constructPromptV1ControllerInput, options = {}) => {
2268
+ // verify required parameter 'constructPromptV1ControllerInput' is not null or undefined
2269
+ assertParamExists('operationsControllerRunConstructPromptV1V1', 'constructPromptV1ControllerInput', constructPromptV1ControllerInput);
2270
+ const localVarPath = `/v1/operations/run/constructPrompt.v1`;
2271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2273
+ let baseOptions;
2274
+ if (configuration) {
2275
+ baseOptions = configuration.baseOptions;
2276
+ }
2277
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2278
+ const localVarHeaderParameter = {};
2279
+ const localVarQueryParameter = {};
2280
+ // authentication bearer required
2281
+ // http bearer authentication required
2282
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2283
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2284
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2286
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2287
+ localVarRequestOptions.data = serializeDataIfNeeded(constructPromptV1ControllerInput, localVarRequestOptions, configuration);
2288
+ return {
2289
+ url: toPathString(localVarUrlObj),
2290
+ options: localVarRequestOptions,
2291
+ };
2292
+ },
2293
+ /**
2294
+ *
2295
+ * @param {GenerateV3ControllerInput} generateV3ControllerInput
2296
+ * @param {*} [options] Override http request option.
2297
+ * @throws {RequiredError}
2298
+ */
2299
+ operationsControllerRunGenerateV3V1: async (generateV3ControllerInput, options = {}) => {
2300
+ // verify required parameter 'generateV3ControllerInput' is not null or undefined
2301
+ assertParamExists('operationsControllerRunGenerateV3V1', 'generateV3ControllerInput', generateV3ControllerInput);
2302
+ const localVarPath = `/v1/operations/run/generate.v3`;
2303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2304
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2305
+ let baseOptions;
2306
+ if (configuration) {
2307
+ baseOptions = configuration.baseOptions;
2308
+ }
2309
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2310
+ const localVarHeaderParameter = {};
2311
+ const localVarQueryParameter = {};
2312
+ // authentication bearer required
2313
+ // http bearer authentication required
2314
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2315
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2316
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2318
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2319
+ localVarRequestOptions.data = serializeDataIfNeeded(generateV3ControllerInput, localVarRequestOptions, configuration);
2320
+ return {
2321
+ url: toPathString(localVarUrlObj),
2322
+ options: localVarRequestOptions,
2323
+ };
2324
+ },
2325
+ /**
2326
+ *
2327
+ * @param {InpaintV1ControllerInput} inpaintV1ControllerInput
2328
+ * @param {*} [options] Override http request option.
2329
+ * @throws {RequiredError}
2330
+ */
2331
+ operationsControllerRunInpaintV1V1: async (inpaintV1ControllerInput, options = {}) => {
2332
+ // verify required parameter 'inpaintV1ControllerInput' is not null or undefined
2333
+ assertParamExists('operationsControllerRunInpaintV1V1', 'inpaintV1ControllerInput', inpaintV1ControllerInput);
2334
+ const localVarPath = `/v1/operations/run/inpaint.v1`;
2335
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2336
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2337
+ let baseOptions;
2338
+ if (configuration) {
2339
+ baseOptions = configuration.baseOptions;
2340
+ }
2341
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2342
+ const localVarHeaderParameter = {};
2343
+ const localVarQueryParameter = {};
2344
+ // authentication bearer required
2345
+ // http bearer authentication required
2346
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2347
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2348
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2349
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2350
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2351
+ localVarRequestOptions.data = serializeDataIfNeeded(inpaintV1ControllerInput, localVarRequestOptions, configuration);
2352
+ return {
2353
+ url: toPathString(localVarUrlObj),
2354
+ options: localVarRequestOptions,
2355
+ };
2356
+ },
2357
+ /**
2358
+ *
2359
+ * @param {string} id
2360
+ * @param {UpdateMetadataDto} updateMetadataDto
2361
+ * @param {*} [options] Override http request option.
2362
+ * @throws {RequiredError}
2363
+ */
2364
+ operationsControllerUpdateMetadataV1: async (id, updateMetadataDto, options = {}) => {
2365
+ // verify required parameter 'id' is not null or undefined
2366
+ assertParamExists('operationsControllerUpdateMetadataV1', 'id', id);
2367
+ // verify required parameter 'updateMetadataDto' is not null or undefined
2368
+ assertParamExists('operationsControllerUpdateMetadataV1', 'updateMetadataDto', updateMetadataDto);
2369
+ const localVarPath = `/v1/operations/{id}/metadata`
2370
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2371
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2372
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2373
+ let baseOptions;
2374
+ if (configuration) {
2375
+ baseOptions = configuration.baseOptions;
2376
+ }
2377
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2378
+ const localVarHeaderParameter = {};
2379
+ const localVarQueryParameter = {};
2380
+ // authentication bearer required
2381
+ // http bearer authentication required
2382
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2383
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2386
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2387
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMetadataDto, localVarRequestOptions, configuration);
2388
+ return {
2389
+ url: toPathString(localVarUrlObj),
2390
+ options: localVarRequestOptions,
2391
+ };
2392
+ },
2393
+ };
2394
+ };
2395
+ /**
2396
+ * OperationsApi - functional programming interface
2397
+ * @export
2398
+ */
2399
+ export const OperationsApiFp = function (configuration) {
2400
+ const localVarAxiosParamCreator = OperationsApiAxiosParamCreator(configuration);
2401
+ return {
2402
+ /**
2403
+ *
2404
+ * @param {string} id
2405
+ * @param {*} [options] Override http request option.
2406
+ * @throws {RequiredError}
2407
+ */
2408
+ async operationsControllerGetOperationV1(id, options) {
2409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerGetOperationV1(id, options);
2410
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2411
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerGetOperationV1']?.[localVarOperationServerIndex]?.url;
2412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2413
+ },
2414
+ /**
2415
+ *
2416
+ * @param {GetOperationsParamsDto} getOperationsParamsDto
2417
+ * @param {*} [options] Override http request option.
2418
+ * @throws {RequiredError}
2419
+ */
2420
+ async operationsControllerGetOperationsV1(getOperationsParamsDto, options) {
2421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerGetOperationsV1(getOperationsParamsDto, options);
2422
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2423
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerGetOperationsV1']?.[localVarOperationServerIndex]?.url;
2424
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2425
+ },
2426
+ /**
2427
+ *
2428
+ * @param {OperationsControllerListOperationsV1OrderByEnum} [orderBy]
2429
+ * @param {number} [limit]
2430
+ * @param {string} [cursor]
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ */
2434
+ async operationsControllerListOperationsV1(orderBy, limit, cursor, options) {
2435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerListOperationsV1(orderBy, limit, cursor, options);
2436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2437
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerListOperationsV1']?.[localVarOperationServerIndex]?.url;
2438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2439
+ },
2440
+ /**
2441
+ *
2442
+ * @param {ConstructPromptV1ControllerInput} constructPromptV1ControllerInput
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ */
2446
+ async operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options) {
2447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options);
2448
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2449
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunConstructPromptV1V1']?.[localVarOperationServerIndex]?.url;
2450
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2451
+ },
2452
+ /**
2453
+ *
2454
+ * @param {GenerateV3ControllerInput} generateV3ControllerInput
2455
+ * @param {*} [options] Override http request option.
2456
+ * @throws {RequiredError}
2457
+ */
2458
+ async operationsControllerRunGenerateV3V1(generateV3ControllerInput, options) {
2459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunGenerateV3V1(generateV3ControllerInput, options);
2460
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2461
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunGenerateV3V1']?.[localVarOperationServerIndex]?.url;
2462
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2463
+ },
2464
+ /**
2465
+ *
2466
+ * @param {InpaintV1ControllerInput} inpaintV1ControllerInput
2467
+ * @param {*} [options] Override http request option.
2468
+ * @throws {RequiredError}
2469
+ */
2470
+ async operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options) {
2471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options);
2472
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2473
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerRunInpaintV1V1']?.[localVarOperationServerIndex]?.url;
2474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2475
+ },
2476
+ /**
2477
+ *
2478
+ * @param {string} id
2479
+ * @param {UpdateMetadataDto} updateMetadataDto
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ async operationsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
2484
+ const localVarAxiosArgs = await localVarAxiosParamCreator.operationsControllerUpdateMetadataV1(id, updateMetadataDto, options);
2485
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2486
+ const localVarOperationServerBasePath = operationServerMap['OperationsApi.operationsControllerUpdateMetadataV1']?.[localVarOperationServerIndex]?.url;
2487
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2488
+ },
2489
+ };
2490
+ };
2491
+ /**
2492
+ * OperationsApi - factory interface
2493
+ * @export
2494
+ */
2495
+ export const OperationsApiFactory = function (configuration, basePath, axios) {
2496
+ const localVarFp = OperationsApiFp(configuration);
2497
+ return {
2498
+ /**
2499
+ *
2500
+ * @param {string} id
2501
+ * @param {*} [options] Override http request option.
2502
+ * @throws {RequiredError}
2503
+ */
2504
+ operationsControllerGetOperationV1(id, options) {
2505
+ return localVarFp.operationsControllerGetOperationV1(id, options).then((request) => request(axios, basePath));
2506
+ },
2507
+ /**
2508
+ *
2509
+ * @param {GetOperationsParamsDto} getOperationsParamsDto
2510
+ * @param {*} [options] Override http request option.
2511
+ * @throws {RequiredError}
2512
+ */
2513
+ operationsControllerGetOperationsV1(getOperationsParamsDto, options) {
2514
+ return localVarFp.operationsControllerGetOperationsV1(getOperationsParamsDto, options).then((request) => request(axios, basePath));
2515
+ },
2516
+ /**
2517
+ *
2518
+ * @param {OperationsControllerListOperationsV1OrderByEnum} [orderBy]
2519
+ * @param {number} [limit]
2520
+ * @param {string} [cursor]
2521
+ * @param {*} [options] Override http request option.
2522
+ * @throws {RequiredError}
2523
+ */
2524
+ operationsControllerListOperationsV1(orderBy, limit, cursor, options) {
2525
+ return localVarFp.operationsControllerListOperationsV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
2526
+ },
2527
+ /**
2528
+ *
2529
+ * @param {ConstructPromptV1ControllerInput} constructPromptV1ControllerInput
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ */
2533
+ operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options) {
2534
+ return localVarFp.operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options).then((request) => request(axios, basePath));
2535
+ },
2536
+ /**
2537
+ *
2538
+ * @param {GenerateV3ControllerInput} generateV3ControllerInput
2539
+ * @param {*} [options] Override http request option.
2540
+ * @throws {RequiredError}
2541
+ */
2542
+ operationsControllerRunGenerateV3V1(generateV3ControllerInput, options) {
2543
+ return localVarFp.operationsControllerRunGenerateV3V1(generateV3ControllerInput, options).then((request) => request(axios, basePath));
2544
+ },
2545
+ /**
2546
+ *
2547
+ * @param {InpaintV1ControllerInput} inpaintV1ControllerInput
2548
+ * @param {*} [options] Override http request option.
2549
+ * @throws {RequiredError}
2550
+ */
2551
+ operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options) {
2552
+ return localVarFp.operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options).then((request) => request(axios, basePath));
2553
+ },
2554
+ /**
2555
+ *
2556
+ * @param {string} id
2557
+ * @param {UpdateMetadataDto} updateMetadataDto
2558
+ * @param {*} [options] Override http request option.
2559
+ * @throws {RequiredError}
2560
+ */
2561
+ operationsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
2562
+ return localVarFp.operationsControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(axios, basePath));
2563
+ },
2564
+ };
2565
+ };
2566
+ /**
2567
+ * OperationsApi - object-oriented interface
2568
+ * @export
2569
+ * @class OperationsApi
2570
+ * @extends {BaseAPI}
2571
+ */
2572
+ export class OperationsApi extends BaseAPI {
2573
+ /**
2574
+ *
2575
+ * @param {string} id
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ * @memberof OperationsApi
2579
+ */
2580
+ operationsControllerGetOperationV1(id, options) {
2581
+ return OperationsApiFp(this.configuration).operationsControllerGetOperationV1(id, options).then((request) => request(this.axios, this.basePath));
2582
+ }
2583
+ /**
2584
+ *
2585
+ * @param {GetOperationsParamsDto} getOperationsParamsDto
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ * @memberof OperationsApi
2589
+ */
2590
+ operationsControllerGetOperationsV1(getOperationsParamsDto, options) {
2591
+ return OperationsApiFp(this.configuration).operationsControllerGetOperationsV1(getOperationsParamsDto, options).then((request) => request(this.axios, this.basePath));
2592
+ }
2593
+ /**
2594
+ *
2595
+ * @param {OperationsControllerListOperationsV1OrderByEnum} [orderBy]
2596
+ * @param {number} [limit]
2597
+ * @param {string} [cursor]
2598
+ * @param {*} [options] Override http request option.
2599
+ * @throws {RequiredError}
2600
+ * @memberof OperationsApi
2601
+ */
2602
+ operationsControllerListOperationsV1(orderBy, limit, cursor, options) {
2603
+ return OperationsApiFp(this.configuration).operationsControllerListOperationsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
2604
+ }
2605
+ /**
2606
+ *
2607
+ * @param {ConstructPromptV1ControllerInput} constructPromptV1ControllerInput
2608
+ * @param {*} [options] Override http request option.
2609
+ * @throws {RequiredError}
2610
+ * @memberof OperationsApi
2611
+ */
2612
+ operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options) {
2613
+ return OperationsApiFp(this.configuration).operationsControllerRunConstructPromptV1V1(constructPromptV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
2614
+ }
2615
+ /**
2616
+ *
2617
+ * @param {GenerateV3ControllerInput} generateV3ControllerInput
2618
+ * @param {*} [options] Override http request option.
2619
+ * @throws {RequiredError}
2620
+ * @memberof OperationsApi
2621
+ */
2622
+ operationsControllerRunGenerateV3V1(generateV3ControllerInput, options) {
2623
+ return OperationsApiFp(this.configuration).operationsControllerRunGenerateV3V1(generateV3ControllerInput, options).then((request) => request(this.axios, this.basePath));
2624
+ }
2625
+ /**
2626
+ *
2627
+ * @param {InpaintV1ControllerInput} inpaintV1ControllerInput
2628
+ * @param {*} [options] Override http request option.
2629
+ * @throws {RequiredError}
2630
+ * @memberof OperationsApi
2631
+ */
2632
+ operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options) {
2633
+ return OperationsApiFp(this.configuration).operationsControllerRunInpaintV1V1(inpaintV1ControllerInput, options).then((request) => request(this.axios, this.basePath));
2634
+ }
2635
+ /**
2636
+ *
2637
+ * @param {string} id
2638
+ * @param {UpdateMetadataDto} updateMetadataDto
2639
+ * @param {*} [options] Override http request option.
2640
+ * @throws {RequiredError}
2641
+ * @memberof OperationsApi
2642
+ */
2643
+ operationsControllerUpdateMetadataV1(id, updateMetadataDto, options) {
2644
+ return OperationsApiFp(this.configuration).operationsControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(this.axios, this.basePath));
2645
+ }
2646
+ }
2647
+ /**
2648
+ * @export
2649
+ */
2650
+ export const OperationsControllerListOperationsV1OrderByEnum = {
2651
+ CreatedAtAsc: 'createdAt_ASC',
2652
+ CreatedAtDesc: 'createdAt_DESC',
2653
+ UpdatedAtAsc: 'updatedAt_ASC',
2654
+ UpdatedAtDesc: 'updatedAt_DESC'
2655
+ };
2656
+ /**
2657
+ * PipelinesApi - axios parameter creator
2658
+ * @export
2659
+ */
2660
+ export const PipelinesApiAxiosParamCreator = function (configuration) {
2661
+ return {
2662
+ /**
2663
+ *
2664
+ * @param {CreatePipelineParamsDto} createPipelineParamsDto
2665
+ * @param {*} [options] Override http request option.
2666
+ * @throws {RequiredError}
2667
+ */
2668
+ pipelinesControllerCreatePipelineV1: async (createPipelineParamsDto, options = {}) => {
2669
+ // verify required parameter 'createPipelineParamsDto' is not null or undefined
2670
+ assertParamExists('pipelinesControllerCreatePipelineV1', 'createPipelineParamsDto', createPipelineParamsDto);
2671
+ const localVarPath = `/v1/pipelines`;
2672
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2673
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2674
+ let baseOptions;
2675
+ if (configuration) {
2676
+ baseOptions = configuration.baseOptions;
2677
+ }
2678
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2679
+ const localVarHeaderParameter = {};
2680
+ const localVarQueryParameter = {};
2681
+ // authentication bearer required
2682
+ // http bearer authentication required
2683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2684
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2687
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2688
+ localVarRequestOptions.data = serializeDataIfNeeded(createPipelineParamsDto, localVarRequestOptions, configuration);
2689
+ return {
2690
+ url: toPathString(localVarUrlObj),
2691
+ options: localVarRequestOptions,
2692
+ };
2693
+ },
2694
+ /**
2695
+ *
2696
+ * @param {string} id
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ pipelinesControllerGetPipelineV1: async (id, options = {}) => {
2701
+ // verify required parameter 'id' is not null or undefined
2702
+ assertParamExists('pipelinesControllerGetPipelineV1', 'id', id);
2703
+ const localVarPath = `/v1/pipelines/{id}`
2704
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2706
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2707
+ let baseOptions;
2708
+ if (configuration) {
2709
+ baseOptions = configuration.baseOptions;
2710
+ }
2711
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2712
+ const localVarHeaderParameter = {};
2713
+ const localVarQueryParameter = {};
2714
+ // authentication bearer required
2715
+ // http bearer authentication required
2716
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2717
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2719
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2720
+ return {
2721
+ url: toPathString(localVarUrlObj),
2722
+ options: localVarRequestOptions,
2723
+ };
2724
+ },
2725
+ /**
2726
+ *
2727
+ * @param {*} [options] Override http request option.
2728
+ * @throws {RequiredError}
2729
+ */
2730
+ pipelinesControllerListPipelinesV1: async (options = {}) => {
2731
+ const localVarPath = `/v1/pipelines`;
2732
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2733
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2734
+ let baseOptions;
2735
+ if (configuration) {
2736
+ baseOptions = configuration.baseOptions;
2737
+ }
2738
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2739
+ const localVarHeaderParameter = {};
2740
+ const localVarQueryParameter = {};
2741
+ // authentication bearer required
2742
+ // http bearer authentication required
2743
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2744
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2745
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2746
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2747
+ return {
2748
+ url: toPathString(localVarUrlObj),
2749
+ options: localVarRequestOptions,
2750
+ };
2751
+ },
2752
+ /**
2753
+ *
2754
+ * @param {string} id
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ pipelinesControllerUpdatePipelineV1: async (id, options = {}) => {
2759
+ // verify required parameter 'id' is not null or undefined
2760
+ assertParamExists('pipelinesControllerUpdatePipelineV1', 'id', id);
2761
+ const localVarPath = `/v1/pipelines/{id}`
2762
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2763
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2764
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2765
+ let baseOptions;
2766
+ if (configuration) {
2767
+ baseOptions = configuration.baseOptions;
2768
+ }
2769
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2770
+ const localVarHeaderParameter = {};
2771
+ const localVarQueryParameter = {};
2772
+ // authentication bearer required
2773
+ // http bearer authentication required
2774
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2775
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2776
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2777
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2778
+ return {
2779
+ url: toPathString(localVarUrlObj),
2780
+ options: localVarRequestOptions,
2781
+ };
2782
+ },
2783
+ };
2784
+ };
2785
+ /**
2786
+ * PipelinesApi - functional programming interface
2787
+ * @export
2788
+ */
2789
+ export const PipelinesApiFp = function (configuration) {
2790
+ const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration);
2791
+ return {
2792
+ /**
2793
+ *
2794
+ * @param {CreatePipelineParamsDto} createPipelineParamsDto
2795
+ * @param {*} [options] Override http request option.
2796
+ * @throws {RequiredError}
2797
+ */
2798
+ async pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options) {
2799
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options);
2800
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2801
+ const localVarOperationServerBasePath = operationServerMap['PipelinesApi.pipelinesControllerCreatePipelineV1']?.[localVarOperationServerIndex]?.url;
2802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2803
+ },
2804
+ /**
2805
+ *
2806
+ * @param {string} id
2807
+ * @param {*} [options] Override http request option.
2808
+ * @throws {RequiredError}
2809
+ */
2810
+ async pipelinesControllerGetPipelineV1(id, options) {
2811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerGetPipelineV1(id, options);
2812
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2813
+ const localVarOperationServerBasePath = operationServerMap['PipelinesApi.pipelinesControllerGetPipelineV1']?.[localVarOperationServerIndex]?.url;
2814
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2815
+ },
2816
+ /**
2817
+ *
2818
+ * @param {*} [options] Override http request option.
2819
+ * @throws {RequiredError}
2820
+ */
2821
+ async pipelinesControllerListPipelinesV1(options) {
2822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerListPipelinesV1(options);
2823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2824
+ const localVarOperationServerBasePath = operationServerMap['PipelinesApi.pipelinesControllerListPipelinesV1']?.[localVarOperationServerIndex]?.url;
2825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2826
+ },
2827
+ /**
2828
+ *
2829
+ * @param {string} id
2830
+ * @param {*} [options] Override http request option.
2831
+ * @throws {RequiredError}
2832
+ */
2833
+ async pipelinesControllerUpdatePipelineV1(id, options) {
2834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pipelinesControllerUpdatePipelineV1(id, options);
2835
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2836
+ const localVarOperationServerBasePath = operationServerMap['PipelinesApi.pipelinesControllerUpdatePipelineV1']?.[localVarOperationServerIndex]?.url;
2837
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2838
+ },
2839
+ };
2840
+ };
2841
+ /**
2842
+ * PipelinesApi - factory interface
2843
+ * @export
2844
+ */
2845
+ export const PipelinesApiFactory = function (configuration, basePath, axios) {
2846
+ const localVarFp = PipelinesApiFp(configuration);
2847
+ return {
2848
+ /**
2849
+ *
2850
+ * @param {CreatePipelineParamsDto} createPipelineParamsDto
2851
+ * @param {*} [options] Override http request option.
2852
+ * @throws {RequiredError}
2853
+ */
2854
+ pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options) {
2855
+ return localVarFp.pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options).then((request) => request(axios, basePath));
2856
+ },
2857
+ /**
2858
+ *
2859
+ * @param {string} id
2860
+ * @param {*} [options] Override http request option.
2861
+ * @throws {RequiredError}
2862
+ */
2863
+ pipelinesControllerGetPipelineV1(id, options) {
2864
+ return localVarFp.pipelinesControllerGetPipelineV1(id, options).then((request) => request(axios, basePath));
2865
+ },
2866
+ /**
2867
+ *
2868
+ * @param {*} [options] Override http request option.
2869
+ * @throws {RequiredError}
2870
+ */
2871
+ pipelinesControllerListPipelinesV1(options) {
2872
+ return localVarFp.pipelinesControllerListPipelinesV1(options).then((request) => request(axios, basePath));
2873
+ },
2874
+ /**
2875
+ *
2876
+ * @param {string} id
2877
+ * @param {*} [options] Override http request option.
2878
+ * @throws {RequiredError}
2879
+ */
2880
+ pipelinesControllerUpdatePipelineV1(id, options) {
2881
+ return localVarFp.pipelinesControllerUpdatePipelineV1(id, options).then((request) => request(axios, basePath));
2882
+ },
2883
+ };
2884
+ };
2885
+ /**
2886
+ * PipelinesApi - object-oriented interface
2887
+ * @export
2888
+ * @class PipelinesApi
2889
+ * @extends {BaseAPI}
2890
+ */
2891
+ export class PipelinesApi extends BaseAPI {
2892
+ /**
2893
+ *
2894
+ * @param {CreatePipelineParamsDto} createPipelineParamsDto
2895
+ * @param {*} [options] Override http request option.
2896
+ * @throws {RequiredError}
2897
+ * @memberof PipelinesApi
2898
+ */
2899
+ pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options) {
2900
+ return PipelinesApiFp(this.configuration).pipelinesControllerCreatePipelineV1(createPipelineParamsDto, options).then((request) => request(this.axios, this.basePath));
2901
+ }
2902
+ /**
2903
+ *
2904
+ * @param {string} id
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ * @memberof PipelinesApi
2908
+ */
2909
+ pipelinesControllerGetPipelineV1(id, options) {
2910
+ return PipelinesApiFp(this.configuration).pipelinesControllerGetPipelineV1(id, options).then((request) => request(this.axios, this.basePath));
2911
+ }
2912
+ /**
2913
+ *
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ * @memberof PipelinesApi
2917
+ */
2918
+ pipelinesControllerListPipelinesV1(options) {
2919
+ return PipelinesApiFp(this.configuration).pipelinesControllerListPipelinesV1(options).then((request) => request(this.axios, this.basePath));
2920
+ }
2921
+ /**
2922
+ *
2923
+ * @param {string} id
2924
+ * @param {*} [options] Override http request option.
2925
+ * @throws {RequiredError}
2926
+ * @memberof PipelinesApi
2927
+ */
2928
+ pipelinesControllerUpdatePipelineV1(id, options) {
2929
+ return PipelinesApiFp(this.configuration).pipelinesControllerUpdatePipelineV1(id, options).then((request) => request(this.axios, this.basePath));
2930
+ }
2931
+ }
2932
+ /**
2933
+ * PosesApi - axios parameter creator
2934
+ * @export
2935
+ */
2936
+ export const PosesApiAxiosParamCreator = function (configuration) {
2937
+ return {
2938
+ /**
2939
+ *
2940
+ * @param {CreatePoseParamsDto} createPoseParamsDto
2941
+ * @param {*} [options] Override http request option.
2942
+ * @throws {RequiredError}
2943
+ */
2944
+ posesControllerCreatePoseV1: async (createPoseParamsDto, options = {}) => {
2945
+ // verify required parameter 'createPoseParamsDto' is not null or undefined
2946
+ assertParamExists('posesControllerCreatePoseV1', 'createPoseParamsDto', createPoseParamsDto);
2947
+ const localVarPath = `/v1/poses`;
2948
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2949
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2950
+ let baseOptions;
2951
+ if (configuration) {
2952
+ baseOptions = configuration.baseOptions;
2953
+ }
2954
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2955
+ const localVarHeaderParameter = {};
2956
+ const localVarQueryParameter = {};
2957
+ // authentication bearer required
2958
+ // http bearer authentication required
2959
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2960
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2961
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2962
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2963
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2964
+ localVarRequestOptions.data = serializeDataIfNeeded(createPoseParamsDto, localVarRequestOptions, configuration);
2965
+ return {
2966
+ url: toPathString(localVarUrlObj),
2967
+ options: localVarRequestOptions,
2968
+ };
2969
+ },
2970
+ /**
2971
+ *
2972
+ * @param {string} id
2973
+ * @param {*} [options] Override http request option.
2974
+ * @throws {RequiredError}
2975
+ */
2976
+ posesControllerGetPoseV1: async (id, options = {}) => {
2977
+ // verify required parameter 'id' is not null or undefined
2978
+ assertParamExists('posesControllerGetPoseV1', 'id', id);
2979
+ const localVarPath = `/v1/poses/{id}`
2980
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2983
+ let baseOptions;
2984
+ if (configuration) {
2985
+ baseOptions = configuration.baseOptions;
2986
+ }
2987
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2988
+ const localVarHeaderParameter = {};
2989
+ const localVarQueryParameter = {};
2990
+ // authentication bearer required
2991
+ // http bearer authentication required
2992
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2993
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2994
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2995
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2996
+ return {
2997
+ url: toPathString(localVarUrlObj),
2998
+ options: localVarRequestOptions,
2999
+ };
3000
+ },
3001
+ /**
3002
+ *
3003
+ * @param {*} [options] Override http request option.
3004
+ * @throws {RequiredError}
3005
+ */
3006
+ posesControllerListStacksV1: async (options = {}) => {
3007
+ const localVarPath = `/v1/poses`;
3008
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3009
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3010
+ let baseOptions;
3011
+ if (configuration) {
3012
+ baseOptions = configuration.baseOptions;
3013
+ }
3014
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3015
+ const localVarHeaderParameter = {};
3016
+ const localVarQueryParameter = {};
3017
+ // authentication bearer required
3018
+ // http bearer authentication required
3019
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3020
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3021
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3022
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3023
+ return {
3024
+ url: toPathString(localVarUrlObj),
3025
+ options: localVarRequestOptions,
3026
+ };
3027
+ },
3028
+ };
3029
+ };
3030
+ /**
3031
+ * PosesApi - functional programming interface
3032
+ * @export
3033
+ */
3034
+ export const PosesApiFp = function (configuration) {
3035
+ const localVarAxiosParamCreator = PosesApiAxiosParamCreator(configuration);
3036
+ return {
3037
+ /**
3038
+ *
3039
+ * @param {CreatePoseParamsDto} createPoseParamsDto
3040
+ * @param {*} [options] Override http request option.
3041
+ * @throws {RequiredError}
3042
+ */
3043
+ async posesControllerCreatePoseV1(createPoseParamsDto, options) {
3044
+ const localVarAxiosArgs = await localVarAxiosParamCreator.posesControllerCreatePoseV1(createPoseParamsDto, options);
3045
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3046
+ const localVarOperationServerBasePath = operationServerMap['PosesApi.posesControllerCreatePoseV1']?.[localVarOperationServerIndex]?.url;
3047
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3048
+ },
3049
+ /**
3050
+ *
3051
+ * @param {string} id
3052
+ * @param {*} [options] Override http request option.
3053
+ * @throws {RequiredError}
3054
+ */
3055
+ async posesControllerGetPoseV1(id, options) {
3056
+ const localVarAxiosArgs = await localVarAxiosParamCreator.posesControllerGetPoseV1(id, options);
3057
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3058
+ const localVarOperationServerBasePath = operationServerMap['PosesApi.posesControllerGetPoseV1']?.[localVarOperationServerIndex]?.url;
3059
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3060
+ },
3061
+ /**
3062
+ *
3063
+ * @param {*} [options] Override http request option.
3064
+ * @throws {RequiredError}
3065
+ */
3066
+ async posesControllerListStacksV1(options) {
3067
+ const localVarAxiosArgs = await localVarAxiosParamCreator.posesControllerListStacksV1(options);
3068
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3069
+ const localVarOperationServerBasePath = operationServerMap['PosesApi.posesControllerListStacksV1']?.[localVarOperationServerIndex]?.url;
3070
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3071
+ },
3072
+ };
3073
+ };
3074
+ /**
3075
+ * PosesApi - factory interface
3076
+ * @export
3077
+ */
3078
+ export const PosesApiFactory = function (configuration, basePath, axios) {
3079
+ const localVarFp = PosesApiFp(configuration);
3080
+ return {
3081
+ /**
3082
+ *
3083
+ * @param {CreatePoseParamsDto} createPoseParamsDto
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ */
3087
+ posesControllerCreatePoseV1(createPoseParamsDto, options) {
3088
+ return localVarFp.posesControllerCreatePoseV1(createPoseParamsDto, options).then((request) => request(axios, basePath));
3089
+ },
3090
+ /**
3091
+ *
3092
+ * @param {string} id
3093
+ * @param {*} [options] Override http request option.
3094
+ * @throws {RequiredError}
3095
+ */
3096
+ posesControllerGetPoseV1(id, options) {
3097
+ return localVarFp.posesControllerGetPoseV1(id, options).then((request) => request(axios, basePath));
3098
+ },
3099
+ /**
3100
+ *
3101
+ * @param {*} [options] Override http request option.
3102
+ * @throws {RequiredError}
3103
+ */
3104
+ posesControllerListStacksV1(options) {
3105
+ return localVarFp.posesControllerListStacksV1(options).then((request) => request(axios, basePath));
3106
+ },
3107
+ };
3108
+ };
3109
+ /**
3110
+ * PosesApi - object-oriented interface
3111
+ * @export
3112
+ * @class PosesApi
3113
+ * @extends {BaseAPI}
3114
+ */
3115
+ export class PosesApi extends BaseAPI {
3116
+ /**
3117
+ *
3118
+ * @param {CreatePoseParamsDto} createPoseParamsDto
3119
+ * @param {*} [options] Override http request option.
3120
+ * @throws {RequiredError}
3121
+ * @memberof PosesApi
3122
+ */
3123
+ posesControllerCreatePoseV1(createPoseParamsDto, options) {
3124
+ return PosesApiFp(this.configuration).posesControllerCreatePoseV1(createPoseParamsDto, options).then((request) => request(this.axios, this.basePath));
3125
+ }
3126
+ /**
3127
+ *
3128
+ * @param {string} id
3129
+ * @param {*} [options] Override http request option.
3130
+ * @throws {RequiredError}
3131
+ * @memberof PosesApi
3132
+ */
3133
+ posesControllerGetPoseV1(id, options) {
3134
+ return PosesApiFp(this.configuration).posesControllerGetPoseV1(id, options).then((request) => request(this.axios, this.basePath));
3135
+ }
3136
+ /**
3137
+ *
3138
+ * @param {*} [options] Override http request option.
3139
+ * @throws {RequiredError}
3140
+ * @memberof PosesApi
3141
+ */
3142
+ posesControllerListStacksV1(options) {
3143
+ return PosesApiFp(this.configuration).posesControllerListStacksV1(options).then((request) => request(this.axios, this.basePath));
3144
+ }
3145
+ }
3146
+ /**
3147
+ * StacksApi - axios parameter creator
3148
+ * @export
3149
+ */
3150
+ export const StacksApiAxiosParamCreator = function (configuration) {
3151
+ return {
3152
+ /**
3153
+ *
3154
+ * @param {string} id
3155
+ * @param {AddOperationsToStackControllerParamsDto} addOperationsToStackControllerParamsDto
3156
+ * @param {*} [options] Override http request option.
3157
+ * @throws {RequiredError}
3158
+ */
3159
+ stacksControllerAddOperationsV1: async (id, addOperationsToStackControllerParamsDto, options = {}) => {
3160
+ // verify required parameter 'id' is not null or undefined
3161
+ assertParamExists('stacksControllerAddOperationsV1', 'id', id);
3162
+ // verify required parameter 'addOperationsToStackControllerParamsDto' is not null or undefined
3163
+ assertParamExists('stacksControllerAddOperationsV1', 'addOperationsToStackControllerParamsDto', addOperationsToStackControllerParamsDto);
3164
+ const localVarPath = `/v1/stacks/{id}/operations/add`
3165
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3168
+ let baseOptions;
3169
+ if (configuration) {
3170
+ baseOptions = configuration.baseOptions;
3171
+ }
3172
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3173
+ const localVarHeaderParameter = {};
3174
+ const localVarQueryParameter = {};
3175
+ // authentication bearer required
3176
+ // http bearer authentication required
3177
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3178
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3181
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3182
+ localVarRequestOptions.data = serializeDataIfNeeded(addOperationsToStackControllerParamsDto, localVarRequestOptions, configuration);
3183
+ return {
3184
+ url: toPathString(localVarUrlObj),
3185
+ options: localVarRequestOptions,
3186
+ };
3187
+ },
3188
+ /**
3189
+ *
3190
+ * @param {CreateStackParamsDto} createStackParamsDto
3191
+ * @param {*} [options] Override http request option.
3192
+ * @throws {RequiredError}
3193
+ */
3194
+ stacksControllerCreateStackV1: async (createStackParamsDto, options = {}) => {
3195
+ // verify required parameter 'createStackParamsDto' is not null or undefined
3196
+ assertParamExists('stacksControllerCreateStackV1', 'createStackParamsDto', createStackParamsDto);
3197
+ const localVarPath = `/v1/stacks`;
3198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3199
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3200
+ let baseOptions;
3201
+ if (configuration) {
3202
+ baseOptions = configuration.baseOptions;
3203
+ }
3204
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3205
+ const localVarHeaderParameter = {};
3206
+ const localVarQueryParameter = {};
3207
+ // authentication bearer required
3208
+ // http bearer authentication required
3209
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3210
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3211
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3213
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3214
+ localVarRequestOptions.data = serializeDataIfNeeded(createStackParamsDto, localVarRequestOptions, configuration);
3215
+ return {
3216
+ url: toPathString(localVarUrlObj),
3217
+ options: localVarRequestOptions,
3218
+ };
3219
+ },
3220
+ /**
3221
+ *
3222
+ * @param {string} id
3223
+ * @param {*} [options] Override http request option.
3224
+ * @throws {RequiredError}
3225
+ */
3226
+ stacksControllerGetStackV1: async (id, options = {}) => {
3227
+ // verify required parameter 'id' is not null or undefined
3228
+ assertParamExists('stacksControllerGetStackV1', 'id', id);
3229
+ const localVarPath = `/v1/stacks/{id}`
3230
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3233
+ let baseOptions;
3234
+ if (configuration) {
3235
+ baseOptions = configuration.baseOptions;
3236
+ }
3237
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3238
+ const localVarHeaderParameter = {};
3239
+ const localVarQueryParameter = {};
3240
+ // authentication bearer required
3241
+ // http bearer authentication required
3242
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3245
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3246
+ return {
3247
+ url: toPathString(localVarUrlObj),
3248
+ options: localVarRequestOptions,
3249
+ };
3250
+ },
3251
+ /**
3252
+ *
3253
+ * @param {StacksControllerListStacksV1OrderByEnum} [orderBy]
3254
+ * @param {number} [limit]
3255
+ * @param {string} [cursor]
3256
+ * @param {*} [options] Override http request option.
3257
+ * @throws {RequiredError}
3258
+ */
3259
+ stacksControllerListStacksV1: async (orderBy, limit, cursor, options = {}) => {
3260
+ const localVarPath = `/v1/stacks`;
3261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3262
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3263
+ let baseOptions;
3264
+ if (configuration) {
3265
+ baseOptions = configuration.baseOptions;
3266
+ }
3267
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3268
+ const localVarHeaderParameter = {};
3269
+ const localVarQueryParameter = {};
3270
+ // authentication bearer required
3271
+ // http bearer authentication required
3272
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3273
+ if (orderBy !== undefined) {
3274
+ localVarQueryParameter['orderBy'] = orderBy;
3275
+ }
3276
+ if (limit !== undefined) {
3277
+ localVarQueryParameter['limit'] = limit;
3278
+ }
3279
+ if (cursor !== undefined) {
3280
+ localVarQueryParameter['cursor'] = cursor;
3281
+ }
3282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3284
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3285
+ return {
3286
+ url: toPathString(localVarUrlObj),
3287
+ options: localVarRequestOptions,
3288
+ };
3289
+ },
3290
+ /**
3291
+ *
3292
+ * @param {string} id
3293
+ * @param {RemoveOperationsFromStackControllerParamsDto} removeOperationsFromStackControllerParamsDto
3294
+ * @param {*} [options] Override http request option.
3295
+ * @throws {RequiredError}
3296
+ */
3297
+ stacksControllerRemoveOperationV1: async (id, removeOperationsFromStackControllerParamsDto, options = {}) => {
3298
+ // verify required parameter 'id' is not null or undefined
3299
+ assertParamExists('stacksControllerRemoveOperationV1', 'id', id);
3300
+ // verify required parameter 'removeOperationsFromStackControllerParamsDto' is not null or undefined
3301
+ assertParamExists('stacksControllerRemoveOperationV1', 'removeOperationsFromStackControllerParamsDto', removeOperationsFromStackControllerParamsDto);
3302
+ const localVarPath = `/v1/stacks/{id}/operations/remove`
3303
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3306
+ let baseOptions;
3307
+ if (configuration) {
3308
+ baseOptions = configuration.baseOptions;
3309
+ }
3310
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3311
+ const localVarHeaderParameter = {};
3312
+ const localVarQueryParameter = {};
3313
+ // authentication bearer required
3314
+ // http bearer authentication required
3315
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3317
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3318
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3319
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3320
+ localVarRequestOptions.data = serializeDataIfNeeded(removeOperationsFromStackControllerParamsDto, localVarRequestOptions, configuration);
3321
+ return {
3322
+ url: toPathString(localVarUrlObj),
3323
+ options: localVarRequestOptions,
3324
+ };
3325
+ },
3326
+ /**
3327
+ *
3328
+ * @param {string} id
3329
+ * @param {UpdateMetadataDto} updateMetadataDto
3330
+ * @param {*} [options] Override http request option.
3331
+ * @throws {RequiredError}
3332
+ */
3333
+ stacksControllerUpdateMetadataV1: async (id, updateMetadataDto, options = {}) => {
3334
+ // verify required parameter 'id' is not null or undefined
3335
+ assertParamExists('stacksControllerUpdateMetadataV1', 'id', id);
3336
+ // verify required parameter 'updateMetadataDto' is not null or undefined
3337
+ assertParamExists('stacksControllerUpdateMetadataV1', 'updateMetadataDto', updateMetadataDto);
3338
+ const localVarPath = `/v1/stacks/{id}/metadata`
3339
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3341
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3342
+ let baseOptions;
3343
+ if (configuration) {
3344
+ baseOptions = configuration.baseOptions;
3345
+ }
3346
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3347
+ const localVarHeaderParameter = {};
3348
+ const localVarQueryParameter = {};
3349
+ // authentication bearer required
3350
+ // http bearer authentication required
3351
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3355
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3356
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMetadataDto, localVarRequestOptions, configuration);
3357
+ return {
3358
+ url: toPathString(localVarUrlObj),
3359
+ options: localVarRequestOptions,
3360
+ };
3361
+ },
3362
+ };
3363
+ };
3364
+ /**
3365
+ * StacksApi - functional programming interface
3366
+ * @export
3367
+ */
3368
+ export const StacksApiFp = function (configuration) {
3369
+ const localVarAxiosParamCreator = StacksApiAxiosParamCreator(configuration);
3370
+ return {
3371
+ /**
3372
+ *
3373
+ * @param {string} id
3374
+ * @param {AddOperationsToStackControllerParamsDto} addOperationsToStackControllerParamsDto
3375
+ * @param {*} [options] Override http request option.
3376
+ * @throws {RequiredError}
3377
+ */
3378
+ async stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options) {
3379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options);
3380
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3381
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerAddOperationsV1']?.[localVarOperationServerIndex]?.url;
3382
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3383
+ },
3384
+ /**
3385
+ *
3386
+ * @param {CreateStackParamsDto} createStackParamsDto
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ */
3390
+ async stacksControllerCreateStackV1(createStackParamsDto, options) {
3391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerCreateStackV1(createStackParamsDto, options);
3392
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3393
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerCreateStackV1']?.[localVarOperationServerIndex]?.url;
3394
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3395
+ },
3396
+ /**
3397
+ *
3398
+ * @param {string} id
3399
+ * @param {*} [options] Override http request option.
3400
+ * @throws {RequiredError}
3401
+ */
3402
+ async stacksControllerGetStackV1(id, options) {
3403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerGetStackV1(id, options);
3404
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3405
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerGetStackV1']?.[localVarOperationServerIndex]?.url;
3406
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3407
+ },
3408
+ /**
3409
+ *
3410
+ * @param {StacksControllerListStacksV1OrderByEnum} [orderBy]
3411
+ * @param {number} [limit]
3412
+ * @param {string} [cursor]
3413
+ * @param {*} [options] Override http request option.
3414
+ * @throws {RequiredError}
3415
+ */
3416
+ async stacksControllerListStacksV1(orderBy, limit, cursor, options) {
3417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerListStacksV1(orderBy, limit, cursor, options);
3418
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3419
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerListStacksV1']?.[localVarOperationServerIndex]?.url;
3420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3421
+ },
3422
+ /**
3423
+ *
3424
+ * @param {string} id
3425
+ * @param {RemoveOperationsFromStackControllerParamsDto} removeOperationsFromStackControllerParamsDto
3426
+ * @param {*} [options] Override http request option.
3427
+ * @throws {RequiredError}
3428
+ */
3429
+ async stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options) {
3430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options);
3431
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3432
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerRemoveOperationV1']?.[localVarOperationServerIndex]?.url;
3433
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3434
+ },
3435
+ /**
3436
+ *
3437
+ * @param {string} id
3438
+ * @param {UpdateMetadataDto} updateMetadataDto
3439
+ * @param {*} [options] Override http request option.
3440
+ * @throws {RequiredError}
3441
+ */
3442
+ async stacksControllerUpdateMetadataV1(id, updateMetadataDto, options) {
3443
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stacksControllerUpdateMetadataV1(id, updateMetadataDto, options);
3444
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3445
+ const localVarOperationServerBasePath = operationServerMap['StacksApi.stacksControllerUpdateMetadataV1']?.[localVarOperationServerIndex]?.url;
3446
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3447
+ },
3448
+ };
3449
+ };
3450
+ /**
3451
+ * StacksApi - factory interface
3452
+ * @export
3453
+ */
3454
+ export const StacksApiFactory = function (configuration, basePath, axios) {
3455
+ const localVarFp = StacksApiFp(configuration);
3456
+ return {
3457
+ /**
3458
+ *
3459
+ * @param {string} id
3460
+ * @param {AddOperationsToStackControllerParamsDto} addOperationsToStackControllerParamsDto
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ */
3464
+ stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options) {
3465
+ return localVarFp.stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options).then((request) => request(axios, basePath));
3466
+ },
3467
+ /**
3468
+ *
3469
+ * @param {CreateStackParamsDto} createStackParamsDto
3470
+ * @param {*} [options] Override http request option.
3471
+ * @throws {RequiredError}
3472
+ */
3473
+ stacksControllerCreateStackV1(createStackParamsDto, options) {
3474
+ return localVarFp.stacksControllerCreateStackV1(createStackParamsDto, options).then((request) => request(axios, basePath));
3475
+ },
3476
+ /**
3477
+ *
3478
+ * @param {string} id
3479
+ * @param {*} [options] Override http request option.
3480
+ * @throws {RequiredError}
3481
+ */
3482
+ stacksControllerGetStackV1(id, options) {
3483
+ return localVarFp.stacksControllerGetStackV1(id, options).then((request) => request(axios, basePath));
3484
+ },
3485
+ /**
3486
+ *
3487
+ * @param {StacksControllerListStacksV1OrderByEnum} [orderBy]
3488
+ * @param {number} [limit]
3489
+ * @param {string} [cursor]
3490
+ * @param {*} [options] Override http request option.
3491
+ * @throws {RequiredError}
3492
+ */
3493
+ stacksControllerListStacksV1(orderBy, limit, cursor, options) {
3494
+ return localVarFp.stacksControllerListStacksV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
3495
+ },
3496
+ /**
3497
+ *
3498
+ * @param {string} id
3499
+ * @param {RemoveOperationsFromStackControllerParamsDto} removeOperationsFromStackControllerParamsDto
3500
+ * @param {*} [options] Override http request option.
3501
+ * @throws {RequiredError}
3502
+ */
3503
+ stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options) {
3504
+ return localVarFp.stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options).then((request) => request(axios, basePath));
3505
+ },
3506
+ /**
3507
+ *
3508
+ * @param {string} id
3509
+ * @param {UpdateMetadataDto} updateMetadataDto
3510
+ * @param {*} [options] Override http request option.
3511
+ * @throws {RequiredError}
3512
+ */
3513
+ stacksControllerUpdateMetadataV1(id, updateMetadataDto, options) {
3514
+ return localVarFp.stacksControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(axios, basePath));
3515
+ },
3516
+ };
3517
+ };
3518
+ /**
3519
+ * StacksApi - object-oriented interface
3520
+ * @export
3521
+ * @class StacksApi
3522
+ * @extends {BaseAPI}
3523
+ */
3524
+ export class StacksApi extends BaseAPI {
3525
+ /**
3526
+ *
3527
+ * @param {string} id
3528
+ * @param {AddOperationsToStackControllerParamsDto} addOperationsToStackControllerParamsDto
3529
+ * @param {*} [options] Override http request option.
3530
+ * @throws {RequiredError}
3531
+ * @memberof StacksApi
3532
+ */
3533
+ stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options) {
3534
+ return StacksApiFp(this.configuration).stacksControllerAddOperationsV1(id, addOperationsToStackControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
3535
+ }
3536
+ /**
3537
+ *
3538
+ * @param {CreateStackParamsDto} createStackParamsDto
3539
+ * @param {*} [options] Override http request option.
3540
+ * @throws {RequiredError}
3541
+ * @memberof StacksApi
3542
+ */
3543
+ stacksControllerCreateStackV1(createStackParamsDto, options) {
3544
+ return StacksApiFp(this.configuration).stacksControllerCreateStackV1(createStackParamsDto, options).then((request) => request(this.axios, this.basePath));
3545
+ }
3546
+ /**
3547
+ *
3548
+ * @param {string} id
3549
+ * @param {*} [options] Override http request option.
3550
+ * @throws {RequiredError}
3551
+ * @memberof StacksApi
3552
+ */
3553
+ stacksControllerGetStackV1(id, options) {
3554
+ return StacksApiFp(this.configuration).stacksControllerGetStackV1(id, options).then((request) => request(this.axios, this.basePath));
3555
+ }
3556
+ /**
3557
+ *
3558
+ * @param {StacksControllerListStacksV1OrderByEnum} [orderBy]
3559
+ * @param {number} [limit]
3560
+ * @param {string} [cursor]
3561
+ * @param {*} [options] Override http request option.
3562
+ * @throws {RequiredError}
3563
+ * @memberof StacksApi
3564
+ */
3565
+ stacksControllerListStacksV1(orderBy, limit, cursor, options) {
3566
+ return StacksApiFp(this.configuration).stacksControllerListStacksV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
3567
+ }
3568
+ /**
3569
+ *
3570
+ * @param {string} id
3571
+ * @param {RemoveOperationsFromStackControllerParamsDto} removeOperationsFromStackControllerParamsDto
3572
+ * @param {*} [options] Override http request option.
3573
+ * @throws {RequiredError}
3574
+ * @memberof StacksApi
3575
+ */
3576
+ stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options) {
3577
+ return StacksApiFp(this.configuration).stacksControllerRemoveOperationV1(id, removeOperationsFromStackControllerParamsDto, options).then((request) => request(this.axios, this.basePath));
3578
+ }
3579
+ /**
3580
+ *
3581
+ * @param {string} id
3582
+ * @param {UpdateMetadataDto} updateMetadataDto
3583
+ * @param {*} [options] Override http request option.
3584
+ * @throws {RequiredError}
3585
+ * @memberof StacksApi
3586
+ */
3587
+ stacksControllerUpdateMetadataV1(id, updateMetadataDto, options) {
3588
+ return StacksApiFp(this.configuration).stacksControllerUpdateMetadataV1(id, updateMetadataDto, options).then((request) => request(this.axios, this.basePath));
3589
+ }
3590
+ }
3591
+ /**
3592
+ * @export
3593
+ */
3594
+ export const StacksControllerListStacksV1OrderByEnum = {
3595
+ CreatedAtAsc: 'createdAt_ASC',
3596
+ CreatedAtDesc: 'createdAt_DESC',
3597
+ UpdatedAtAsc: 'updatedAt_ASC',
3598
+ UpdatedAtDesc: 'updatedAt_DESC'
3599
+ };
3600
+ /**
3601
+ * StorageApi - axios parameter creator
3602
+ * @export
3603
+ */
3604
+ export const StorageApiAxiosParamCreator = function (configuration) {
3605
+ return {
3606
+ /**
3607
+ *
3608
+ * @param {CreateStorageRecordParamsDto} createStorageRecordParamsDto
3609
+ * @param {*} [options] Override http request option.
3610
+ * @throws {RequiredError}
3611
+ */
3612
+ storageControllerCreateRecordV1: async (createStorageRecordParamsDto, options = {}) => {
3613
+ // verify required parameter 'createStorageRecordParamsDto' is not null or undefined
3614
+ assertParamExists('storageControllerCreateRecordV1', 'createStorageRecordParamsDto', createStorageRecordParamsDto);
3615
+ const localVarPath = `/v1/storage`;
3616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3618
+ let baseOptions;
3619
+ if (configuration) {
3620
+ baseOptions = configuration.baseOptions;
3621
+ }
3622
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3623
+ const localVarHeaderParameter = {};
3624
+ const localVarQueryParameter = {};
3625
+ // authentication bearer required
3626
+ // http bearer authentication required
3627
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3628
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3631
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3632
+ localVarRequestOptions.data = serializeDataIfNeeded(createStorageRecordParamsDto, localVarRequestOptions, configuration);
3633
+ return {
3634
+ url: toPathString(localVarUrlObj),
3635
+ options: localVarRequestOptions,
3636
+ };
3637
+ },
3638
+ /**
3639
+ *
3640
+ * @param {DeleteStorageParamsDto} deleteStorageParamsDto
3641
+ * @param {*} [options] Override http request option.
3642
+ * @throws {RequiredError}
3643
+ */
3644
+ storageControllerDeleteRecordV1: async (deleteStorageParamsDto, options = {}) => {
3645
+ // verify required parameter 'deleteStorageParamsDto' is not null or undefined
3646
+ assertParamExists('storageControllerDeleteRecordV1', 'deleteStorageParamsDto', deleteStorageParamsDto);
3647
+ const localVarPath = `/v1/storage/delete`;
3648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3650
+ let baseOptions;
3651
+ if (configuration) {
3652
+ baseOptions = configuration.baseOptions;
3653
+ }
3654
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3655
+ const localVarHeaderParameter = {};
3656
+ const localVarQueryParameter = {};
3657
+ // authentication bearer required
3658
+ // http bearer authentication required
3659
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3660
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3663
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3664
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteStorageParamsDto, localVarRequestOptions, configuration);
3665
+ return {
3666
+ url: toPathString(localVarUrlObj),
3667
+ options: localVarRequestOptions,
3668
+ };
3669
+ },
3670
+ /**
3671
+ *
3672
+ * @param {GetStorageRecordParamsDto} getStorageRecordParamsDto
3673
+ * @param {*} [options] Override http request option.
3674
+ * @throws {RequiredError}
3675
+ */
3676
+ storageControllerGetRecordsV1: async (getStorageRecordParamsDto, options = {}) => {
3677
+ // verify required parameter 'getStorageRecordParamsDto' is not null or undefined
3678
+ assertParamExists('storageControllerGetRecordsV1', 'getStorageRecordParamsDto', getStorageRecordParamsDto);
3679
+ const localVarPath = `/v1/storage/values`;
3680
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3681
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3682
+ let baseOptions;
3683
+ if (configuration) {
3684
+ baseOptions = configuration.baseOptions;
3685
+ }
3686
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3687
+ const localVarHeaderParameter = {};
3688
+ const localVarQueryParameter = {};
3689
+ // authentication bearer required
3690
+ // http bearer authentication required
3691
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3692
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3693
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3695
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3696
+ localVarRequestOptions.data = serializeDataIfNeeded(getStorageRecordParamsDto, localVarRequestOptions, configuration);
3697
+ return {
3698
+ url: toPathString(localVarUrlObj),
3699
+ options: localVarRequestOptions,
3700
+ };
3701
+ },
3702
+ /**
3703
+ *
3704
+ * @param {UpdateStorageRecordParamsDto} updateStorageRecordParamsDto
3705
+ * @param {*} [options] Override http request option.
3706
+ * @throws {RequiredError}
3707
+ */
3708
+ storageControllerUpdateRecordV1: async (updateStorageRecordParamsDto, options = {}) => {
3709
+ // verify required parameter 'updateStorageRecordParamsDto' is not null or undefined
3710
+ assertParamExists('storageControllerUpdateRecordV1', 'updateStorageRecordParamsDto', updateStorageRecordParamsDto);
3711
+ const localVarPath = `/v1/storage/write`;
3712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3714
+ let baseOptions;
3715
+ if (configuration) {
3716
+ baseOptions = configuration.baseOptions;
3717
+ }
3718
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3719
+ const localVarHeaderParameter = {};
3720
+ const localVarQueryParameter = {};
3721
+ // authentication bearer required
3722
+ // http bearer authentication required
3723
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3725
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3727
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3728
+ localVarRequestOptions.data = serializeDataIfNeeded(updateStorageRecordParamsDto, localVarRequestOptions, configuration);
3729
+ return {
3730
+ url: toPathString(localVarUrlObj),
3731
+ options: localVarRequestOptions,
3732
+ };
3733
+ },
3734
+ };
3735
+ };
3736
+ /**
3737
+ * StorageApi - functional programming interface
3738
+ * @export
3739
+ */
3740
+ export const StorageApiFp = function (configuration) {
3741
+ const localVarAxiosParamCreator = StorageApiAxiosParamCreator(configuration);
3742
+ return {
3743
+ /**
3744
+ *
3745
+ * @param {CreateStorageRecordParamsDto} createStorageRecordParamsDto
3746
+ * @param {*} [options] Override http request option.
3747
+ * @throws {RequiredError}
3748
+ */
3749
+ async storageControllerCreateRecordV1(createStorageRecordParamsDto, options) {
3750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storageControllerCreateRecordV1(createStorageRecordParamsDto, options);
3751
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3752
+ const localVarOperationServerBasePath = operationServerMap['StorageApi.storageControllerCreateRecordV1']?.[localVarOperationServerIndex]?.url;
3753
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3754
+ },
3755
+ /**
3756
+ *
3757
+ * @param {DeleteStorageParamsDto} deleteStorageParamsDto
3758
+ * @param {*} [options] Override http request option.
3759
+ * @throws {RequiredError}
3760
+ */
3761
+ async storageControllerDeleteRecordV1(deleteStorageParamsDto, options) {
3762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storageControllerDeleteRecordV1(deleteStorageParamsDto, options);
3763
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3764
+ const localVarOperationServerBasePath = operationServerMap['StorageApi.storageControllerDeleteRecordV1']?.[localVarOperationServerIndex]?.url;
3765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3766
+ },
3767
+ /**
3768
+ *
3769
+ * @param {GetStorageRecordParamsDto} getStorageRecordParamsDto
3770
+ * @param {*} [options] Override http request option.
3771
+ * @throws {RequiredError}
3772
+ */
3773
+ async storageControllerGetRecordsV1(getStorageRecordParamsDto, options) {
3774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storageControllerGetRecordsV1(getStorageRecordParamsDto, options);
3775
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3776
+ const localVarOperationServerBasePath = operationServerMap['StorageApi.storageControllerGetRecordsV1']?.[localVarOperationServerIndex]?.url;
3777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3778
+ },
3779
+ /**
3780
+ *
3781
+ * @param {UpdateStorageRecordParamsDto} updateStorageRecordParamsDto
3782
+ * @param {*} [options] Override http request option.
3783
+ * @throws {RequiredError}
3784
+ */
3785
+ async storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options) {
3786
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options);
3787
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3788
+ const localVarOperationServerBasePath = operationServerMap['StorageApi.storageControllerUpdateRecordV1']?.[localVarOperationServerIndex]?.url;
3789
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3790
+ },
3791
+ };
3792
+ };
3793
+ /**
3794
+ * StorageApi - factory interface
3795
+ * @export
3796
+ */
3797
+ export const StorageApiFactory = function (configuration, basePath, axios) {
3798
+ const localVarFp = StorageApiFp(configuration);
3799
+ return {
3800
+ /**
3801
+ *
3802
+ * @param {CreateStorageRecordParamsDto} createStorageRecordParamsDto
3803
+ * @param {*} [options] Override http request option.
3804
+ * @throws {RequiredError}
3805
+ */
3806
+ storageControllerCreateRecordV1(createStorageRecordParamsDto, options) {
3807
+ return localVarFp.storageControllerCreateRecordV1(createStorageRecordParamsDto, options).then((request) => request(axios, basePath));
3808
+ },
3809
+ /**
3810
+ *
3811
+ * @param {DeleteStorageParamsDto} deleteStorageParamsDto
3812
+ * @param {*} [options] Override http request option.
3813
+ * @throws {RequiredError}
3814
+ */
3815
+ storageControllerDeleteRecordV1(deleteStorageParamsDto, options) {
3816
+ return localVarFp.storageControllerDeleteRecordV1(deleteStorageParamsDto, options).then((request) => request(axios, basePath));
3817
+ },
3818
+ /**
3819
+ *
3820
+ * @param {GetStorageRecordParamsDto} getStorageRecordParamsDto
3821
+ * @param {*} [options] Override http request option.
3822
+ * @throws {RequiredError}
3823
+ */
3824
+ storageControllerGetRecordsV1(getStorageRecordParamsDto, options) {
3825
+ return localVarFp.storageControllerGetRecordsV1(getStorageRecordParamsDto, options).then((request) => request(axios, basePath));
3826
+ },
3827
+ /**
3828
+ *
3829
+ * @param {UpdateStorageRecordParamsDto} updateStorageRecordParamsDto
3830
+ * @param {*} [options] Override http request option.
3831
+ * @throws {RequiredError}
3832
+ */
3833
+ storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options) {
3834
+ return localVarFp.storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options).then((request) => request(axios, basePath));
3835
+ },
3836
+ };
3837
+ };
3838
+ /**
3839
+ * StorageApi - object-oriented interface
3840
+ * @export
3841
+ * @class StorageApi
3842
+ * @extends {BaseAPI}
3843
+ */
3844
+ export class StorageApi extends BaseAPI {
3845
+ /**
3846
+ *
3847
+ * @param {CreateStorageRecordParamsDto} createStorageRecordParamsDto
3848
+ * @param {*} [options] Override http request option.
3849
+ * @throws {RequiredError}
3850
+ * @memberof StorageApi
3851
+ */
3852
+ storageControllerCreateRecordV1(createStorageRecordParamsDto, options) {
3853
+ return StorageApiFp(this.configuration).storageControllerCreateRecordV1(createStorageRecordParamsDto, options).then((request) => request(this.axios, this.basePath));
3854
+ }
3855
+ /**
3856
+ *
3857
+ * @param {DeleteStorageParamsDto} deleteStorageParamsDto
3858
+ * @param {*} [options] Override http request option.
3859
+ * @throws {RequiredError}
3860
+ * @memberof StorageApi
3861
+ */
3862
+ storageControllerDeleteRecordV1(deleteStorageParamsDto, options) {
3863
+ return StorageApiFp(this.configuration).storageControllerDeleteRecordV1(deleteStorageParamsDto, options).then((request) => request(this.axios, this.basePath));
3864
+ }
3865
+ /**
3866
+ *
3867
+ * @param {GetStorageRecordParamsDto} getStorageRecordParamsDto
3868
+ * @param {*} [options] Override http request option.
3869
+ * @throws {RequiredError}
3870
+ * @memberof StorageApi
3871
+ */
3872
+ storageControllerGetRecordsV1(getStorageRecordParamsDto, options) {
3873
+ return StorageApiFp(this.configuration).storageControllerGetRecordsV1(getStorageRecordParamsDto, options).then((request) => request(this.axios, this.basePath));
3874
+ }
3875
+ /**
3876
+ *
3877
+ * @param {UpdateStorageRecordParamsDto} updateStorageRecordParamsDto
3878
+ * @param {*} [options] Override http request option.
3879
+ * @throws {RequiredError}
3880
+ * @memberof StorageApi
3881
+ */
3882
+ storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options) {
3883
+ return StorageApiFp(this.configuration).storageControllerUpdateRecordV1(updateStorageRecordParamsDto, options).then((request) => request(this.axios, this.basePath));
3884
+ }
3885
+ }
3886
+ /**
3887
+ * UploadApi - axios parameter creator
3888
+ * @export
3889
+ */
3890
+ export const UploadApiAxiosParamCreator = function (configuration) {
3891
+ return {
3892
+ /**
3893
+ *
3894
+ * @param {*} [options] Override http request option.
3895
+ * @throws {RequiredError}
3896
+ */
3897
+ uploadControllerUploadFileV1: async (options = {}) => {
3898
+ const localVarPath = `/v1/upload`;
3899
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3901
+ let baseOptions;
3902
+ if (configuration) {
3903
+ baseOptions = configuration.baseOptions;
3904
+ }
3905
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3906
+ const localVarHeaderParameter = {};
3907
+ const localVarQueryParameter = {};
3908
+ // authentication bearer required
3909
+ // http bearer authentication required
3910
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3911
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3912
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3913
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3914
+ return {
3915
+ url: toPathString(localVarUrlObj),
3916
+ options: localVarRequestOptions,
3917
+ };
3918
+ },
3919
+ };
3920
+ };
3921
+ /**
3922
+ * UploadApi - functional programming interface
3923
+ * @export
3924
+ */
3925
+ export const UploadApiFp = function (configuration) {
3926
+ const localVarAxiosParamCreator = UploadApiAxiosParamCreator(configuration);
3927
+ return {
3928
+ /**
3929
+ *
3930
+ * @param {*} [options] Override http request option.
3931
+ * @throws {RequiredError}
3932
+ */
3933
+ async uploadControllerUploadFileV1(options) {
3934
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadControllerUploadFileV1(options);
3935
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3936
+ const localVarOperationServerBasePath = operationServerMap['UploadApi.uploadControllerUploadFileV1']?.[localVarOperationServerIndex]?.url;
3937
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3938
+ },
3939
+ };
3940
+ };
3941
+ /**
3942
+ * UploadApi - factory interface
3943
+ * @export
3944
+ */
3945
+ export const UploadApiFactory = function (configuration, basePath, axios) {
3946
+ const localVarFp = UploadApiFp(configuration);
3947
+ return {
3948
+ /**
3949
+ *
3950
+ * @param {*} [options] Override http request option.
3951
+ * @throws {RequiredError}
3952
+ */
3953
+ uploadControllerUploadFileV1(options) {
3954
+ return localVarFp.uploadControllerUploadFileV1(options).then((request) => request(axios, basePath));
3955
+ },
3956
+ };
3957
+ };
3958
+ /**
3959
+ * UploadApi - object-oriented interface
3960
+ * @export
3961
+ * @class UploadApi
3962
+ * @extends {BaseAPI}
3963
+ */
3964
+ export class UploadApi extends BaseAPI {
3965
+ /**
3966
+ *
3967
+ * @param {*} [options] Override http request option.
3968
+ * @throws {RequiredError}
3969
+ * @memberof UploadApi
3970
+ */
3971
+ uploadControllerUploadFileV1(options) {
3972
+ return UploadApiFp(this.configuration).uploadControllerUploadFileV1(options).then((request) => request(this.axios, this.basePath));
3973
+ }
3974
+ }
3975
+ /**
3976
+ * WebsocketApi - axios parameter creator
3977
+ * @export
3978
+ */
3979
+ export const WebsocketApiAxiosParamCreator = function (configuration) {
3980
+ return {
3981
+ /**
3982
+ *
3983
+ * @param {*} [options] Override http request option.
3984
+ * @throws {RequiredError}
3985
+ */
3986
+ websocketControllerGetSettingsV1: async (options = {}) => {
3987
+ const localVarPath = `/v1/websocket/settings`;
3988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3990
+ let baseOptions;
3991
+ if (configuration) {
3992
+ baseOptions = configuration.baseOptions;
3993
+ }
3994
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3995
+ const localVarHeaderParameter = {};
3996
+ const localVarQueryParameter = {};
3997
+ // authentication bearer required
3998
+ // http bearer authentication required
3999
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4000
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4002
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4003
+ return {
4004
+ url: toPathString(localVarUrlObj),
4005
+ options: localVarRequestOptions,
4006
+ };
4007
+ },
4008
+ /**
4009
+ *
4010
+ * @param {*} [options] Override http request option.
4011
+ * @throws {RequiredError}
4012
+ */
4013
+ websocketControllerRegisterWebsocketV1: async (options = {}) => {
4014
+ const localVarPath = `/v1/websocket/auth`;
4015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4016
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4017
+ let baseOptions;
4018
+ if (configuration) {
4019
+ baseOptions = configuration.baseOptions;
4020
+ }
4021
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4022
+ const localVarHeaderParameter = {};
4023
+ const localVarQueryParameter = {};
4024
+ // authentication bearer required
4025
+ // http bearer authentication required
4026
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
4027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4029
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4030
+ return {
4031
+ url: toPathString(localVarUrlObj),
4032
+ options: localVarRequestOptions,
4033
+ };
4034
+ },
4035
+ };
4036
+ };
4037
+ /**
4038
+ * WebsocketApi - functional programming interface
4039
+ * @export
4040
+ */
4041
+ export const WebsocketApiFp = function (configuration) {
4042
+ const localVarAxiosParamCreator = WebsocketApiAxiosParamCreator(configuration);
4043
+ return {
4044
+ /**
4045
+ *
4046
+ * @param {*} [options] Override http request option.
4047
+ * @throws {RequiredError}
4048
+ */
4049
+ async websocketControllerGetSettingsV1(options) {
4050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.websocketControllerGetSettingsV1(options);
4051
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4052
+ const localVarOperationServerBasePath = operationServerMap['WebsocketApi.websocketControllerGetSettingsV1']?.[localVarOperationServerIndex]?.url;
4053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4054
+ },
4055
+ /**
4056
+ *
4057
+ * @param {*} [options] Override http request option.
4058
+ * @throws {RequiredError}
4059
+ */
4060
+ async websocketControllerRegisterWebsocketV1(options) {
4061
+ const localVarAxiosArgs = await localVarAxiosParamCreator.websocketControllerRegisterWebsocketV1(options);
4062
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4063
+ const localVarOperationServerBasePath = operationServerMap['WebsocketApi.websocketControllerRegisterWebsocketV1']?.[localVarOperationServerIndex]?.url;
4064
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4065
+ },
4066
+ };
4067
+ };
4068
+ /**
4069
+ * WebsocketApi - factory interface
4070
+ * @export
4071
+ */
4072
+ export const WebsocketApiFactory = function (configuration, basePath, axios) {
4073
+ const localVarFp = WebsocketApiFp(configuration);
4074
+ return {
4075
+ /**
4076
+ *
4077
+ * @param {*} [options] Override http request option.
4078
+ * @throws {RequiredError}
4079
+ */
4080
+ websocketControllerGetSettingsV1(options) {
4081
+ return localVarFp.websocketControllerGetSettingsV1(options).then((request) => request(axios, basePath));
4082
+ },
4083
+ /**
4084
+ *
4085
+ * @param {*} [options] Override http request option.
4086
+ * @throws {RequiredError}
4087
+ */
4088
+ websocketControllerRegisterWebsocketV1(options) {
4089
+ return localVarFp.websocketControllerRegisterWebsocketV1(options).then((request) => request(axios, basePath));
4090
+ },
4091
+ };
4092
+ };
4093
+ /**
4094
+ * WebsocketApi - object-oriented interface
4095
+ * @export
4096
+ * @class WebsocketApi
4097
+ * @extends {BaseAPI}
4098
+ */
4099
+ export class WebsocketApi extends BaseAPI {
4100
+ /**
4101
+ *
4102
+ * @param {*} [options] Override http request option.
4103
+ * @throws {RequiredError}
4104
+ * @memberof WebsocketApi
4105
+ */
4106
+ websocketControllerGetSettingsV1(options) {
4107
+ return WebsocketApiFp(this.configuration).websocketControllerGetSettingsV1(options).then((request) => request(this.axios, this.basePath));
4108
+ }
4109
+ /**
4110
+ *
4111
+ * @param {*} [options] Override http request option.
4112
+ * @throws {RequiredError}
4113
+ * @memberof WebsocketApi
4114
+ */
4115
+ websocketControllerRegisterWebsocketV1(options) {
4116
+ return WebsocketApiFp(this.configuration).websocketControllerRegisterWebsocketV1(options).then((request) => request(this.axios, this.basePath));
4117
+ }
4118
+ }