@loopstack/hub-client 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts ADDED
@@ -0,0 +1,2201 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Loopstack Hub
5
+ * Loopstack Hub Documentation
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
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface PaginatedDto
30
+ */
31
+ export interface PaginatedDto {
32
+ /**
33
+ *
34
+ * @type {Array<object>}
35
+ * @memberof PaginatedDto
36
+ */
37
+ 'data': Array<object>;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof PaginatedDto
42
+ */
43
+ 'total': number;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof PaginatedDto
48
+ */
49
+ 'page': number;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof PaginatedDto
54
+ */
55
+ 'limit': number;
56
+ }
57
+ /**
58
+ *
59
+ * @export
60
+ * @interface WorkerControllerBatchDeleteWorkers200Response
61
+ */
62
+ export interface WorkerControllerBatchDeleteWorkers200Response {
63
+ /**
64
+ * Successfully deleted worker IDs
65
+ * @type {Array<string>}
66
+ * @memberof WorkerControllerBatchDeleteWorkers200Response
67
+ */
68
+ 'deleted'?: Array<string>;
69
+ /**
70
+ * Failed deletions with error details
71
+ * @type {Array<WorkerControllerBatchDeleteWorkers200ResponseFailedInner>}
72
+ * @memberof WorkerControllerBatchDeleteWorkers200Response
73
+ */
74
+ 'failed'?: Array<WorkerControllerBatchDeleteWorkers200ResponseFailedInner>;
75
+ }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface WorkerControllerBatchDeleteWorkers200ResponseFailedInner
80
+ */
81
+ export interface WorkerControllerBatchDeleteWorkers200ResponseFailedInner {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof WorkerControllerBatchDeleteWorkers200ResponseFailedInner
86
+ */
87
+ 'id'?: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof WorkerControllerBatchDeleteWorkers200ResponseFailedInner
92
+ */
93
+ 'error'?: string;
94
+ }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface WorkerControllerBatchDeleteWorkersRequest
99
+ */
100
+ export interface WorkerControllerBatchDeleteWorkersRequest {
101
+ /**
102
+ * Array of worker IDs to delete
103
+ * @type {Array<string>}
104
+ * @memberof WorkerControllerBatchDeleteWorkersRequest
105
+ */
106
+ 'ids': Array<string>;
107
+ }
108
+ /**
109
+ *
110
+ * @export
111
+ * @interface WorkerControllerGetWorkers200Response
112
+ */
113
+ export interface WorkerControllerGetWorkers200Response {
114
+ /**
115
+ *
116
+ * @type {Array<WorkerItemDto>}
117
+ * @memberof WorkerControllerGetWorkers200Response
118
+ */
119
+ 'data': Array<WorkerItemDto>;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof WorkerControllerGetWorkers200Response
124
+ */
125
+ 'total': number;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof WorkerControllerGetWorkers200Response
130
+ */
131
+ 'page': number;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof WorkerControllerGetWorkers200Response
136
+ */
137
+ 'limit': number;
138
+ }
139
+ /**
140
+ *
141
+ * @export
142
+ * @interface WorkerCreateDto
143
+ */
144
+ export interface WorkerCreateDto {
145
+ /**
146
+ * URL of the worker
147
+ * @type {string}
148
+ * @memberof WorkerCreateDto
149
+ */
150
+ 'url': string;
151
+ /**
152
+ * Name of the worker
153
+ * @type {string}
154
+ * @memberof WorkerCreateDto
155
+ */
156
+ 'name': string;
157
+ }
158
+ /**
159
+ *
160
+ * @export
161
+ * @interface WorkerDto
162
+ */
163
+ export interface WorkerDto {
164
+ /**
165
+ * Unique identifier of the worker
166
+ * @type {string}
167
+ * @memberof WorkerDto
168
+ */
169
+ 'id': string;
170
+ /**
171
+ * URL of the worker
172
+ * @type {string}
173
+ * @memberof WorkerDto
174
+ */
175
+ 'url': string;
176
+ /**
177
+ * Name of the worker
178
+ * @type {string}
179
+ * @memberof WorkerDto
180
+ */
181
+ 'name': string;
182
+ /**
183
+ * Service Token
184
+ * @type {string}
185
+ * @memberof WorkerDto
186
+ */
187
+ 'serviceToken': string;
188
+ /**
189
+ * Setup Complete Flab
190
+ * @type {boolean}
191
+ * @memberof WorkerDto
192
+ */
193
+ 'isSetupComplete': boolean;
194
+ /**
195
+ * Timestamp when the worker was created
196
+ * @type {string}
197
+ * @memberof WorkerDto
198
+ */
199
+ 'createdAt': string;
200
+ /**
201
+ * Timestamp when the worker was last updated
202
+ * @type {string}
203
+ * @memberof WorkerDto
204
+ */
205
+ 'updatedAt': string;
206
+ }
207
+ /**
208
+ *
209
+ * @export
210
+ * @interface WorkerFilterDto
211
+ */
212
+ export interface WorkerFilterDto {
213
+ /**
214
+ * Filter by worker name
215
+ * @type {string}
216
+ * @memberof WorkerFilterDto
217
+ */
218
+ 'name'?: string;
219
+ /**
220
+ * Filter by worker URL
221
+ * @type {string}
222
+ * @memberof WorkerFilterDto
223
+ */
224
+ 'url'?: string;
225
+ }
226
+ /**
227
+ *
228
+ * @export
229
+ * @interface WorkerItemDto
230
+ */
231
+ export interface WorkerItemDto {
232
+ /**
233
+ * Unique identifier of the worker
234
+ * @type {string}
235
+ * @memberof WorkerItemDto
236
+ */
237
+ 'id': string;
238
+ /**
239
+ * URL of the worker
240
+ * @type {string}
241
+ * @memberof WorkerItemDto
242
+ */
243
+ 'url': string;
244
+ /**
245
+ * Name of the worker
246
+ * @type {string}
247
+ * @memberof WorkerItemDto
248
+ */
249
+ 'name': string;
250
+ /**
251
+ * Setup Complete Flab
252
+ * @type {boolean}
253
+ * @memberof WorkerItemDto
254
+ */
255
+ 'isSetupComplete': boolean;
256
+ /**
257
+ * Timestamp when the worker was created
258
+ * @type {string}
259
+ * @memberof WorkerItemDto
260
+ */
261
+ 'createdAt': string;
262
+ /**
263
+ * Timestamp when the worker was last updated
264
+ * @type {string}
265
+ * @memberof WorkerItemDto
266
+ */
267
+ 'updatedAt': string;
268
+ }
269
+ /**
270
+ *
271
+ * @export
272
+ * @interface WorkerSortByDto
273
+ */
274
+ export interface WorkerSortByDto {
275
+ /**
276
+ *
277
+ * @type {string}
278
+ * @memberof WorkerSortByDto
279
+ */
280
+ 'field': WorkerSortByDtoFieldEnum;
281
+ /**
282
+ *
283
+ * @type {string}
284
+ * @memberof WorkerSortByDto
285
+ */
286
+ 'order': WorkerSortByDtoOrderEnum;
287
+ }
288
+
289
+ export const WorkerSortByDtoFieldEnum = {
290
+ Id: 'id',
291
+ Url: 'url',
292
+ Name: 'name',
293
+ ServiceToken: 'serviceToken',
294
+ IsSetupComplete: 'isSetupComplete',
295
+ CreatedAt: 'createdAt',
296
+ UpdatedAt: 'updatedAt',
297
+ UserId: 'userId'
298
+ } as const;
299
+
300
+ export type WorkerSortByDtoFieldEnum = typeof WorkerSortByDtoFieldEnum[keyof typeof WorkerSortByDtoFieldEnum];
301
+ export const WorkerSortByDtoOrderEnum = {
302
+ Asc: 'ASC',
303
+ Desc: 'DESC'
304
+ } as const;
305
+
306
+ export type WorkerSortByDtoOrderEnum = typeof WorkerSortByDtoOrderEnum[keyof typeof WorkerSortByDtoOrderEnum];
307
+
308
+ /**
309
+ *
310
+ * @export
311
+ * @interface WorkerUpdateDto
312
+ */
313
+ export interface WorkerUpdateDto {
314
+ /**
315
+ * URL of the worker
316
+ * @type {string}
317
+ * @memberof WorkerUpdateDto
318
+ */
319
+ 'url'?: string;
320
+ /**
321
+ * Name of the worker
322
+ * @type {string}
323
+ * @memberof WorkerUpdateDto
324
+ */
325
+ 'name'?: string;
326
+ }
327
+
328
+ /**
329
+ * ApiV1AuthApi - axios parameter creator
330
+ * @export
331
+ */
332
+ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configuration) {
333
+ return {
334
+ /**
335
+ *
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ authControllerDevLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
340
+ const localVarPath = `/api/v1/auth/login-dev`;
341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
343
+ let baseOptions;
344
+ if (configuration) {
345
+ baseOptions = configuration.baseOptions;
346
+ }
347
+
348
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
349
+ const localVarHeaderParameter = {} as any;
350
+ const localVarQueryParameter = {} as any;
351
+
352
+
353
+
354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ /**
364
+ *
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ authControllerGetAuthStrategies: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
369
+ const localVarPath = `/api/v1/auth/auth-strategies`;
370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
372
+ let baseOptions;
373
+ if (configuration) {
374
+ baseOptions = configuration.baseOptions;
375
+ }
376
+
377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
378
+ const localVarHeaderParameter = {} as any;
379
+ const localVarQueryParameter = {} as any;
380
+
381
+
382
+
383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
386
+
387
+ return {
388
+ url: toPathString(localVarUrlObj),
389
+ options: localVarRequestOptions,
390
+ };
391
+ },
392
+ /**
393
+ *
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ authControllerGetProviders: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
398
+ const localVarPath = `/api/v1/auth/providers`;
399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
401
+ let baseOptions;
402
+ if (configuration) {
403
+ baseOptions = configuration.baseOptions;
404
+ }
405
+
406
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
407
+ const localVarHeaderParameter = {} as any;
408
+ const localVarQueryParameter = {} as any;
409
+
410
+
411
+
412
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
413
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
414
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
415
+
416
+ return {
417
+ url: toPathString(localVarUrlObj),
418
+ options: localVarRequestOptions,
419
+ };
420
+ },
421
+ /**
422
+ *
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ authControllerGoogleAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
427
+ const localVarPath = `/api/v1/auth/oauth/google`;
428
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
429
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
430
+ let baseOptions;
431
+ if (configuration) {
432
+ baseOptions = configuration.baseOptions;
433
+ }
434
+
435
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
436
+ const localVarHeaderParameter = {} as any;
437
+ const localVarQueryParameter = {} as any;
438
+
439
+
440
+
441
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
442
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
444
+
445
+ return {
446
+ url: toPathString(localVarUrlObj),
447
+ options: localVarRequestOptions,
448
+ };
449
+ },
450
+ /**
451
+ *
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ authControllerGoogleCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
456
+ const localVarPath = `/api/v1/auth/oauth/google/callback`;
457
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
458
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
459
+ let baseOptions;
460
+ if (configuration) {
461
+ baseOptions = configuration.baseOptions;
462
+ }
463
+
464
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
465
+ const localVarHeaderParameter = {} as any;
466
+ const localVarQueryParameter = {} as any;
467
+
468
+
469
+
470
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
472
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
473
+
474
+ return {
475
+ url: toPathString(localVarUrlObj),
476
+ options: localVarRequestOptions,
477
+ };
478
+ },
479
+ /**
480
+ *
481
+ * @param {object} body
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ authControllerLinkProvider: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
486
+ // verify required parameter 'body' is not null or undefined
487
+ assertParamExists('authControllerLinkProvider', 'body', body)
488
+ const localVarPath = `/api/v1/auth/link-provider`;
489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
491
+ let baseOptions;
492
+ if (configuration) {
493
+ baseOptions = configuration.baseOptions;
494
+ }
495
+
496
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
497
+ const localVarHeaderParameter = {} as any;
498
+ const localVarQueryParameter = {} as any;
499
+
500
+
501
+
502
+ localVarHeaderParameter['Content-Type'] = 'application/json';
503
+
504
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
506
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
507
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
508
+
509
+ return {
510
+ url: toPathString(localVarUrlObj),
511
+ options: localVarRequestOptions,
512
+ };
513
+ },
514
+ /**
515
+ *
516
+ * @param {object} body
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ authControllerLogin: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
521
+ // verify required parameter 'body' is not null or undefined
522
+ assertParamExists('authControllerLogin', 'body', body)
523
+ const localVarPath = `/api/v1/auth/login`;
524
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
525
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
526
+ let baseOptions;
527
+ if (configuration) {
528
+ baseOptions = configuration.baseOptions;
529
+ }
530
+
531
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
532
+ const localVarHeaderParameter = {} as any;
533
+ const localVarQueryParameter = {} as any;
534
+
535
+
536
+
537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
538
+
539
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
541
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
542
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
543
+
544
+ return {
545
+ url: toPathString(localVarUrlObj),
546
+ options: localVarRequestOptions,
547
+ };
548
+ },
549
+ /**
550
+ *
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ authControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
555
+ const localVarPath = `/api/v1/auth/logout`;
556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
558
+ let baseOptions;
559
+ if (configuration) {
560
+ baseOptions = configuration.baseOptions;
561
+ }
562
+
563
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
564
+ const localVarHeaderParameter = {} as any;
565
+ const localVarQueryParameter = {} as any;
566
+
567
+
568
+
569
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
571
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
572
+
573
+ return {
574
+ url: toPathString(localVarUrlObj),
575
+ options: localVarRequestOptions,
576
+ };
577
+ },
578
+ /**
579
+ *
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ authControllerMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
584
+ const localVarPath = `/api/v1/auth/me`;
585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
587
+ let baseOptions;
588
+ if (configuration) {
589
+ baseOptions = configuration.baseOptions;
590
+ }
591
+
592
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
593
+ const localVarHeaderParameter = {} as any;
594
+ const localVarQueryParameter = {} as any;
595
+
596
+
597
+
598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
600
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
601
+
602
+ return {
603
+ url: toPathString(localVarUrlObj),
604
+ options: localVarRequestOptions,
605
+ };
606
+ },
607
+ /**
608
+ *
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ authControllerRefresh: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
613
+ const localVarPath = `/api/v1/auth/refresh`;
614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
616
+ let baseOptions;
617
+ if (configuration) {
618
+ baseOptions = configuration.baseOptions;
619
+ }
620
+
621
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
622
+ const localVarHeaderParameter = {} as any;
623
+ const localVarQueryParameter = {} as any;
624
+
625
+
626
+
627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
630
+
631
+ return {
632
+ url: toPathString(localVarUrlObj),
633
+ options: localVarRequestOptions,
634
+ };
635
+ },
636
+ /**
637
+ *
638
+ * @param {object} body
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ authControllerRegister: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
643
+ // verify required parameter 'body' is not null or undefined
644
+ assertParamExists('authControllerRegister', 'body', body)
645
+ const localVarPath = `/api/v1/auth/register`;
646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
648
+ let baseOptions;
649
+ if (configuration) {
650
+ baseOptions = configuration.baseOptions;
651
+ }
652
+
653
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
654
+ const localVarHeaderParameter = {} as any;
655
+ const localVarQueryParameter = {} as any;
656
+
657
+
658
+
659
+ localVarHeaderParameter['Content-Type'] = 'application/json';
660
+
661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
663
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
664
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
665
+
666
+ return {
667
+ url: toPathString(localVarUrlObj),
668
+ options: localVarRequestOptions,
669
+ };
670
+ },
671
+ }
672
+ };
673
+
674
+ /**
675
+ * ApiV1AuthApi - functional programming interface
676
+ * @export
677
+ */
678
+ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
679
+ const localVarAxiosParamCreator = ApiV1AuthApiAxiosParamCreator(configuration)
680
+ return {
681
+ /**
682
+ *
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ async authControllerDevLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerDevLogin(options);
688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
689
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerDevLogin']?.[localVarOperationServerIndex]?.url;
690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
691
+ },
692
+ /**
693
+ *
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ async authControllerGetAuthStrategies(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetAuthStrategies(options);
699
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
700
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGetAuthStrategies']?.[localVarOperationServerIndex]?.url;
701
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
702
+ },
703
+ /**
704
+ *
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ async authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetProviders(options);
710
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
711
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGetProviders']?.[localVarOperationServerIndex]?.url;
712
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
713
+ },
714
+ /**
715
+ *
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ async authControllerGoogleAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleAuth(options);
721
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
722
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGoogleAuth']?.[localVarOperationServerIndex]?.url;
723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
724
+ },
725
+ /**
726
+ *
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ async authControllerGoogleCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
731
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleCallback(options);
732
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
733
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']?.[localVarOperationServerIndex]?.url;
734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
735
+ },
736
+ /**
737
+ *
738
+ * @param {object} body
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ async authControllerLinkProvider(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLinkProvider(body, options);
744
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
745
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLinkProvider']?.[localVarOperationServerIndex]?.url;
746
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
747
+ },
748
+ /**
749
+ *
750
+ * @param {object} body
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ async authControllerLogin(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
755
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(body, options);
756
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
757
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
759
+ },
760
+ /**
761
+ *
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ async authControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(options);
767
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
768
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogout']?.[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 authControllerMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerMe(options);
778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
779
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerMe']?.[localVarOperationServerIndex]?.url;
780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
781
+ },
782
+ /**
783
+ *
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ async authControllerRefresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRefresh(options);
789
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
790
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRefresh']?.[localVarOperationServerIndex]?.url;
791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
792
+ },
793
+ /**
794
+ *
795
+ * @param {object} body
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ async authControllerRegister(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRegister(body, options);
801
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
802
+ const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRegister']?.[localVarOperationServerIndex]?.url;
803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
804
+ },
805
+ }
806
+ };
807
+
808
+ /**
809
+ * ApiV1AuthApi - factory interface
810
+ * @export
811
+ */
812
+ export const ApiV1AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
813
+ const localVarFp = ApiV1AuthApiFp(configuration)
814
+ return {
815
+ /**
816
+ *
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ */
820
+ authControllerDevLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
821
+ return localVarFp.authControllerDevLogin(options).then((request) => request(axios, basePath));
822
+ },
823
+ /**
824
+ *
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ authControllerGetAuthStrategies(options?: RawAxiosRequestConfig): AxiosPromise<void> {
829
+ return localVarFp.authControllerGetAuthStrategies(options).then((request) => request(axios, basePath));
830
+ },
831
+ /**
832
+ *
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ */
836
+ authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<void> {
837
+ return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
838
+ },
839
+ /**
840
+ *
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ authControllerGoogleAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
845
+ return localVarFp.authControllerGoogleAuth(options).then((request) => request(axios, basePath));
846
+ },
847
+ /**
848
+ *
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<void> {
853
+ return localVarFp.authControllerGoogleCallback(options).then((request) => request(axios, basePath));
854
+ },
855
+ /**
856
+ *
857
+ * @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
862
+ return localVarFp.authControllerLinkProvider(requestParameters.body, options).then((request) => request(axios, basePath));
863
+ },
864
+ /**
865
+ *
866
+ * @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
871
+ return localVarFp.authControllerLogin(requestParameters.body, options).then((request) => request(axios, basePath));
872
+ },
873
+ /**
874
+ *
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<void> {
879
+ return localVarFp.authControllerLogout(options).then((request) => request(axios, basePath));
880
+ },
881
+ /**
882
+ *
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ authControllerMe(options?: RawAxiosRequestConfig): AxiosPromise<void> {
887
+ return localVarFp.authControllerMe(options).then((request) => request(axios, basePath));
888
+ },
889
+ /**
890
+ *
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ */
894
+ authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<void> {
895
+ return localVarFp.authControllerRefresh(options).then((request) => request(axios, basePath));
896
+ },
897
+ /**
898
+ *
899
+ * @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ */
903
+ authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
904
+ return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
905
+ },
906
+ };
907
+ };
908
+
909
+ /**
910
+ * ApiV1AuthApi - interface
911
+ * @export
912
+ * @interface ApiV1AuthApi
913
+ */
914
+ export interface ApiV1AuthApiInterface {
915
+ /**
916
+ *
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ * @memberof ApiV1AuthApiInterface
920
+ */
921
+ authControllerDevLogin(options?: RawAxiosRequestConfig): AxiosPromise<void>;
922
+
923
+ /**
924
+ *
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ * @memberof ApiV1AuthApiInterface
928
+ */
929
+ authControllerGetAuthStrategies(options?: RawAxiosRequestConfig): AxiosPromise<void>;
930
+
931
+ /**
932
+ *
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ * @memberof ApiV1AuthApiInterface
936
+ */
937
+ authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<void>;
938
+
939
+ /**
940
+ *
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ * @memberof ApiV1AuthApiInterface
944
+ */
945
+ authControllerGoogleAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
946
+
947
+ /**
948
+ *
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ * @memberof ApiV1AuthApiInterface
952
+ */
953
+ authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<void>;
954
+
955
+ /**
956
+ *
957
+ * @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ * @memberof ApiV1AuthApiInterface
961
+ */
962
+ authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
963
+
964
+ /**
965
+ *
966
+ * @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ * @memberof ApiV1AuthApiInterface
970
+ */
971
+ authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
972
+
973
+ /**
974
+ *
975
+ * @param {*} [options] Override http request option.
976
+ * @throws {RequiredError}
977
+ * @memberof ApiV1AuthApiInterface
978
+ */
979
+ authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<void>;
980
+
981
+ /**
982
+ *
983
+ * @param {*} [options] Override http request option.
984
+ * @throws {RequiredError}
985
+ * @memberof ApiV1AuthApiInterface
986
+ */
987
+ authControllerMe(options?: RawAxiosRequestConfig): AxiosPromise<void>;
988
+
989
+ /**
990
+ *
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ * @memberof ApiV1AuthApiInterface
994
+ */
995
+ authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<void>;
996
+
997
+ /**
998
+ *
999
+ * @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ * @memberof ApiV1AuthApiInterface
1003
+ */
1004
+ authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1005
+
1006
+ }
1007
+
1008
+ /**
1009
+ * Request parameters for authControllerLinkProvider operation in ApiV1AuthApi.
1010
+ * @export
1011
+ * @interface ApiV1AuthApiAuthControllerLinkProviderRequest
1012
+ */
1013
+ export interface ApiV1AuthApiAuthControllerLinkProviderRequest {
1014
+ /**
1015
+ *
1016
+ * @type {object}
1017
+ * @memberof ApiV1AuthApiAuthControllerLinkProvider
1018
+ */
1019
+ readonly body: object
1020
+ }
1021
+
1022
+ /**
1023
+ * Request parameters for authControllerLogin operation in ApiV1AuthApi.
1024
+ * @export
1025
+ * @interface ApiV1AuthApiAuthControllerLoginRequest
1026
+ */
1027
+ export interface ApiV1AuthApiAuthControllerLoginRequest {
1028
+ /**
1029
+ *
1030
+ * @type {object}
1031
+ * @memberof ApiV1AuthApiAuthControllerLogin
1032
+ */
1033
+ readonly body: object
1034
+ }
1035
+
1036
+ /**
1037
+ * Request parameters for authControllerRegister operation in ApiV1AuthApi.
1038
+ * @export
1039
+ * @interface ApiV1AuthApiAuthControllerRegisterRequest
1040
+ */
1041
+ export interface ApiV1AuthApiAuthControllerRegisterRequest {
1042
+ /**
1043
+ *
1044
+ * @type {object}
1045
+ * @memberof ApiV1AuthApiAuthControllerRegister
1046
+ */
1047
+ readonly body: object
1048
+ }
1049
+
1050
+ /**
1051
+ * ApiV1AuthApi - object-oriented interface
1052
+ * @export
1053
+ * @class ApiV1AuthApi
1054
+ * @extends {BaseAPI}
1055
+ */
1056
+ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
1057
+ /**
1058
+ *
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ * @memberof ApiV1AuthApi
1062
+ */
1063
+ public authControllerDevLogin(options?: RawAxiosRequestConfig) {
1064
+ return ApiV1AuthApiFp(this.configuration).authControllerDevLogin(options).then((request) => request(this.axios, this.basePath));
1065
+ }
1066
+
1067
+ /**
1068
+ *
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ * @memberof ApiV1AuthApi
1072
+ */
1073
+ public authControllerGetAuthStrategies(options?: RawAxiosRequestConfig) {
1074
+ return ApiV1AuthApiFp(this.configuration).authControllerGetAuthStrategies(options).then((request) => request(this.axios, this.basePath));
1075
+ }
1076
+
1077
+ /**
1078
+ *
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ * @memberof ApiV1AuthApi
1082
+ */
1083
+ public authControllerGetProviders(options?: RawAxiosRequestConfig) {
1084
+ return ApiV1AuthApiFp(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
1085
+ }
1086
+
1087
+ /**
1088
+ *
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ * @memberof ApiV1AuthApi
1092
+ */
1093
+ public authControllerGoogleAuth(options?: RawAxiosRequestConfig) {
1094
+ return ApiV1AuthApiFp(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
1095
+ }
1096
+
1097
+ /**
1098
+ *
1099
+ * @param {*} [options] Override http request option.
1100
+ * @throws {RequiredError}
1101
+ * @memberof ApiV1AuthApi
1102
+ */
1103
+ public authControllerGoogleCallback(options?: RawAxiosRequestConfig) {
1104
+ return ApiV1AuthApiFp(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
1105
+ }
1106
+
1107
+ /**
1108
+ *
1109
+ * @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ * @memberof ApiV1AuthApi
1113
+ */
1114
+ public authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig) {
1115
+ return ApiV1AuthApiFp(this.configuration).authControllerLinkProvider(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1116
+ }
1117
+
1118
+ /**
1119
+ *
1120
+ * @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ * @memberof ApiV1AuthApi
1124
+ */
1125
+ public authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig) {
1126
+ return ApiV1AuthApiFp(this.configuration).authControllerLogin(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1127
+ }
1128
+
1129
+ /**
1130
+ *
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ * @memberof ApiV1AuthApi
1134
+ */
1135
+ public authControllerLogout(options?: RawAxiosRequestConfig) {
1136
+ return ApiV1AuthApiFp(this.configuration).authControllerLogout(options).then((request) => request(this.axios, this.basePath));
1137
+ }
1138
+
1139
+ /**
1140
+ *
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ * @memberof ApiV1AuthApi
1144
+ */
1145
+ public authControllerMe(options?: RawAxiosRequestConfig) {
1146
+ return ApiV1AuthApiFp(this.configuration).authControllerMe(options).then((request) => request(this.axios, this.basePath));
1147
+ }
1148
+
1149
+ /**
1150
+ *
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ * @memberof ApiV1AuthApi
1154
+ */
1155
+ public authControllerRefresh(options?: RawAxiosRequestConfig) {
1156
+ return ApiV1AuthApiFp(this.configuration).authControllerRefresh(options).then((request) => request(this.axios, this.basePath));
1157
+ }
1158
+
1159
+ /**
1160
+ *
1161
+ * @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ * @memberof ApiV1AuthApi
1165
+ */
1166
+ public authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig) {
1167
+ return ApiV1AuthApiFp(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1168
+ }
1169
+ }
1170
+
1171
+
1172
+
1173
+ /**
1174
+ * ApiV1UserApi - axios parameter creator
1175
+ * @export
1176
+ */
1177
+ export const ApiV1UserApiAxiosParamCreator = function (configuration?: Configuration) {
1178
+ return {
1179
+ /**
1180
+ *
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ userControllerInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1185
+ const localVarPath = `/api/v1/user/info`;
1186
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1188
+ let baseOptions;
1189
+ if (configuration) {
1190
+ baseOptions = configuration.baseOptions;
1191
+ }
1192
+
1193
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1194
+ const localVarHeaderParameter = {} as any;
1195
+ const localVarQueryParameter = {} as any;
1196
+
1197
+
1198
+
1199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1201
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1202
+
1203
+ return {
1204
+ url: toPathString(localVarUrlObj),
1205
+ options: localVarRequestOptions,
1206
+ };
1207
+ },
1208
+ }
1209
+ };
1210
+
1211
+ /**
1212
+ * ApiV1UserApi - functional programming interface
1213
+ * @export
1214
+ */
1215
+ export const ApiV1UserApiFp = function(configuration?: Configuration) {
1216
+ const localVarAxiosParamCreator = ApiV1UserApiAxiosParamCreator(configuration)
1217
+ return {
1218
+ /**
1219
+ *
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ async userControllerInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerInfo(options);
1225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1226
+ const localVarOperationServerBasePath = operationServerMap['ApiV1UserApi.userControllerInfo']?.[localVarOperationServerIndex]?.url;
1227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1228
+ },
1229
+ }
1230
+ };
1231
+
1232
+ /**
1233
+ * ApiV1UserApi - factory interface
1234
+ * @export
1235
+ */
1236
+ export const ApiV1UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1237
+ const localVarFp = ApiV1UserApiFp(configuration)
1238
+ return {
1239
+ /**
1240
+ *
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ */
1244
+ userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<void> {
1245
+ return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
1246
+ },
1247
+ };
1248
+ };
1249
+
1250
+ /**
1251
+ * ApiV1UserApi - interface
1252
+ * @export
1253
+ * @interface ApiV1UserApi
1254
+ */
1255
+ export interface ApiV1UserApiInterface {
1256
+ /**
1257
+ *
1258
+ * @param {*} [options] Override http request option.
1259
+ * @throws {RequiredError}
1260
+ * @memberof ApiV1UserApiInterface
1261
+ */
1262
+ userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<void>;
1263
+
1264
+ }
1265
+
1266
+ /**
1267
+ * ApiV1UserApi - object-oriented interface
1268
+ * @export
1269
+ * @class ApiV1UserApi
1270
+ * @extends {BaseAPI}
1271
+ */
1272
+ export class ApiV1UserApi extends BaseAPI implements ApiV1UserApiInterface {
1273
+ /**
1274
+ *
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ * @memberof ApiV1UserApi
1278
+ */
1279
+ public userControllerInfo(options?: RawAxiosRequestConfig) {
1280
+ return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
1281
+ }
1282
+ }
1283
+
1284
+
1285
+
1286
+ /**
1287
+ * ApiV1WorkersApi - axios parameter creator
1288
+ * @export
1289
+ */
1290
+ export const ApiV1WorkersApiAxiosParamCreator = function (configuration?: Configuration) {
1291
+ return {
1292
+ /**
1293
+ *
1294
+ * @summary Delete multiple workers by IDs
1295
+ * @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
1296
+ * @param {*} [options] Override http request option.
1297
+ * @throws {RequiredError}
1298
+ */
1299
+ workerControllerBatchDeleteWorkers: async (workerControllerBatchDeleteWorkersRequest: WorkerControllerBatchDeleteWorkersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1300
+ // verify required parameter 'workerControllerBatchDeleteWorkersRequest' is not null or undefined
1301
+ assertParamExists('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest)
1302
+ const localVarPath = `/api/v1/workers/batch`;
1303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1304
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1305
+ let baseOptions;
1306
+ if (configuration) {
1307
+ baseOptions = configuration.baseOptions;
1308
+ }
1309
+
1310
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1311
+ const localVarHeaderParameter = {} as any;
1312
+ const localVarQueryParameter = {} as any;
1313
+
1314
+
1315
+
1316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1317
+
1318
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1320
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1321
+ localVarRequestOptions.data = serializeDataIfNeeded(workerControllerBatchDeleteWorkersRequest, localVarRequestOptions, configuration)
1322
+
1323
+ return {
1324
+ url: toPathString(localVarUrlObj),
1325
+ options: localVarRequestOptions,
1326
+ };
1327
+ },
1328
+ /**
1329
+ *
1330
+ * @summary Create a new worker
1331
+ * @param {WorkerCreateDto} workerCreateDto Worker data
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ workerControllerCreateWorker: async (workerCreateDto: WorkerCreateDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1336
+ // verify required parameter 'workerCreateDto' is not null or undefined
1337
+ assertParamExists('workerControllerCreateWorker', 'workerCreateDto', workerCreateDto)
1338
+ const localVarPath = `/api/v1/workers`;
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+
1346
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1347
+ const localVarHeaderParameter = {} as any;
1348
+ const localVarQueryParameter = {} as any;
1349
+
1350
+
1351
+
1352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1353
+
1354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1357
+ localVarRequestOptions.data = serializeDataIfNeeded(workerCreateDto, localVarRequestOptions, configuration)
1358
+
1359
+ return {
1360
+ url: toPathString(localVarUrlObj),
1361
+ options: localVarRequestOptions,
1362
+ };
1363
+ },
1364
+ /**
1365
+ *
1366
+ * @summary Delete a worker by ID
1367
+ * @param {string} id The ID of the worker
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ */
1371
+ workerControllerDeleteWorker: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1372
+ // verify required parameter 'id' is not null or undefined
1373
+ assertParamExists('workerControllerDeleteWorker', 'id', id)
1374
+ const localVarPath = `/api/v1/workers/id/{id}`
1375
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1378
+ let baseOptions;
1379
+ if (configuration) {
1380
+ baseOptions = configuration.baseOptions;
1381
+ }
1382
+
1383
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1384
+ const localVarHeaderParameter = {} as any;
1385
+ const localVarQueryParameter = {} as any;
1386
+
1387
+
1388
+
1389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1392
+
1393
+ return {
1394
+ url: toPathString(localVarUrlObj),
1395
+ options: localVarRequestOptions,
1396
+ };
1397
+ },
1398
+ /**
1399
+ *
1400
+ * @summary Get a worker by ID
1401
+ * @param {string} id The ID of the worker
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ */
1405
+ workerControllerGetWorkerById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1406
+ // verify required parameter 'id' is not null or undefined
1407
+ assertParamExists('workerControllerGetWorkerById', 'id', id)
1408
+ const localVarPath = `/api/v1/workers/{id}`
1409
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1411
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1412
+ let baseOptions;
1413
+ if (configuration) {
1414
+ baseOptions = configuration.baseOptions;
1415
+ }
1416
+
1417
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1418
+ const localVarHeaderParameter = {} as any;
1419
+ const localVarQueryParameter = {} as any;
1420
+
1421
+
1422
+
1423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1425
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1426
+
1427
+ return {
1428
+ url: toPathString(localVarUrlObj),
1429
+ options: localVarRequestOptions,
1430
+ };
1431
+ },
1432
+ /**
1433
+ *
1434
+ * @summary Retrieve workers with filters, sorting, pagination, and search
1435
+ * @param {number} [page] Page number for pagination (starts at 1)
1436
+ * @param {number} [limit] Number of items per page
1437
+ * @param {string} [filter] JSON string of WorkerFilterDto object
1438
+ * @param {string} [sortBy] JSON string array of WorkerSortByDto objects
1439
+ * @param {string} [search] Search term to filter workers by name, url or other searchable fields
1440
+ * @param {string} [searchColumns] JSON string array of columns to search in (defaults to name and url if not specified)
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ workerControllerGetWorkers: async (page?: number, limit?: number, filter?: string, sortBy?: string, search?: string, searchColumns?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1445
+ const localVarPath = `/api/v1/workers`;
1446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1448
+ let baseOptions;
1449
+ if (configuration) {
1450
+ baseOptions = configuration.baseOptions;
1451
+ }
1452
+
1453
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1454
+ const localVarHeaderParameter = {} as any;
1455
+ const localVarQueryParameter = {} as any;
1456
+
1457
+ if (page !== undefined) {
1458
+ localVarQueryParameter['page'] = page;
1459
+ }
1460
+
1461
+ if (limit !== undefined) {
1462
+ localVarQueryParameter['limit'] = limit;
1463
+ }
1464
+
1465
+ if (filter !== undefined) {
1466
+ localVarQueryParameter['filter'] = filter;
1467
+ }
1468
+
1469
+ if (sortBy !== undefined) {
1470
+ localVarQueryParameter['sortBy'] = sortBy;
1471
+ }
1472
+
1473
+ if (search !== undefined) {
1474
+ localVarQueryParameter['search'] = search;
1475
+ }
1476
+
1477
+ if (searchColumns !== undefined) {
1478
+ localVarQueryParameter['searchColumns'] = searchColumns;
1479
+ }
1480
+
1481
+
1482
+
1483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1485
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1486
+
1487
+ return {
1488
+ url: toPathString(localVarUrlObj),
1489
+ options: localVarRequestOptions,
1490
+ };
1491
+ },
1492
+ /**
1493
+ *
1494
+ * @summary Update a worker by ID
1495
+ * @param {string} id The ID of the worker
1496
+ * @param {WorkerUpdateDto} workerUpdateDto Updated worker data
1497
+ * @param {*} [options] Override http request option.
1498
+ * @throws {RequiredError}
1499
+ */
1500
+ workerControllerUpdateWorker: async (id: string, workerUpdateDto: WorkerUpdateDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1501
+ // verify required parameter 'id' is not null or undefined
1502
+ assertParamExists('workerControllerUpdateWorker', 'id', id)
1503
+ // verify required parameter 'workerUpdateDto' is not null or undefined
1504
+ assertParamExists('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto)
1505
+ const localVarPath = `/api/v1/workers/{id}`
1506
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1509
+ let baseOptions;
1510
+ if (configuration) {
1511
+ baseOptions = configuration.baseOptions;
1512
+ }
1513
+
1514
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1515
+ const localVarHeaderParameter = {} as any;
1516
+ const localVarQueryParameter = {} as any;
1517
+
1518
+
1519
+
1520
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1521
+
1522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1524
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1525
+ localVarRequestOptions.data = serializeDataIfNeeded(workerUpdateDto, localVarRequestOptions, configuration)
1526
+
1527
+ return {
1528
+ url: toPathString(localVarUrlObj),
1529
+ options: localVarRequestOptions,
1530
+ };
1531
+ },
1532
+ }
1533
+ };
1534
+
1535
+ /**
1536
+ * ApiV1WorkersApi - functional programming interface
1537
+ * @export
1538
+ */
1539
+ export const ApiV1WorkersApiFp = function(configuration?: Configuration) {
1540
+ const localVarAxiosParamCreator = ApiV1WorkersApiAxiosParamCreator(configuration)
1541
+ return {
1542
+ /**
1543
+ *
1544
+ * @summary Delete multiple workers by IDs
1545
+ * @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
1546
+ * @param {*} [options] Override http request option.
1547
+ * @throws {RequiredError}
1548
+ */
1549
+ async workerControllerBatchDeleteWorkers(workerControllerBatchDeleteWorkersRequest: WorkerControllerBatchDeleteWorkersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerControllerBatchDeleteWorkers200Response>> {
1550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerBatchDeleteWorkers(workerControllerBatchDeleteWorkersRequest, options);
1551
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1552
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerBatchDeleteWorkers']?.[localVarOperationServerIndex]?.url;
1553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1554
+ },
1555
+ /**
1556
+ *
1557
+ * @summary Create a new worker
1558
+ * @param {WorkerCreateDto} workerCreateDto Worker data
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ async workerControllerCreateWorker(workerCreateDto: WorkerCreateDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerDto>> {
1563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerCreateWorker(workerCreateDto, options);
1564
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1565
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerCreateWorker']?.[localVarOperationServerIndex]?.url;
1566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1567
+ },
1568
+ /**
1569
+ *
1570
+ * @summary Delete a worker by ID
1571
+ * @param {string} id The ID of the worker
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ */
1575
+ async workerControllerDeleteWorker(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerDeleteWorker(id, options);
1577
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1578
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerDeleteWorker']?.[localVarOperationServerIndex]?.url;
1579
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1580
+ },
1581
+ /**
1582
+ *
1583
+ * @summary Get a worker by ID
1584
+ * @param {string} id The ID of the worker
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ */
1588
+ async workerControllerGetWorkerById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerDto>> {
1589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerGetWorkerById(id, options);
1590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1591
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerGetWorkerById']?.[localVarOperationServerIndex]?.url;
1592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1593
+ },
1594
+ /**
1595
+ *
1596
+ * @summary Retrieve workers with filters, sorting, pagination, and search
1597
+ * @param {number} [page] Page number for pagination (starts at 1)
1598
+ * @param {number} [limit] Number of items per page
1599
+ * @param {string} [filter] JSON string of WorkerFilterDto object
1600
+ * @param {string} [sortBy] JSON string array of WorkerSortByDto objects
1601
+ * @param {string} [search] Search term to filter workers by name, url or other searchable fields
1602
+ * @param {string} [searchColumns] JSON string array of columns to search in (defaults to name and url if not specified)
1603
+ * @param {*} [options] Override http request option.
1604
+ * @throws {RequiredError}
1605
+ */
1606
+ async workerControllerGetWorkers(page?: number, limit?: number, filter?: string, sortBy?: string, search?: string, searchColumns?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerControllerGetWorkers200Response>> {
1607
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerGetWorkers(page, limit, filter, sortBy, search, searchColumns, options);
1608
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1609
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerGetWorkers']?.[localVarOperationServerIndex]?.url;
1610
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1611
+ },
1612
+ /**
1613
+ *
1614
+ * @summary Update a worker by ID
1615
+ * @param {string} id The ID of the worker
1616
+ * @param {WorkerUpdateDto} workerUpdateDto Updated worker data
1617
+ * @param {*} [options] Override http request option.
1618
+ * @throws {RequiredError}
1619
+ */
1620
+ async workerControllerUpdateWorker(id: string, workerUpdateDto: WorkerUpdateDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerDto>> {
1621
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerUpdateWorker(id, workerUpdateDto, options);
1622
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1623
+ const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerUpdateWorker']?.[localVarOperationServerIndex]?.url;
1624
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1625
+ },
1626
+ }
1627
+ };
1628
+
1629
+ /**
1630
+ * ApiV1WorkersApi - factory interface
1631
+ * @export
1632
+ */
1633
+ export const ApiV1WorkersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1634
+ const localVarFp = ApiV1WorkersApiFp(configuration)
1635
+ return {
1636
+ /**
1637
+ *
1638
+ * @summary Delete multiple workers by IDs
1639
+ * @param {ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest} requestParameters Request parameters.
1640
+ * @param {*} [options] Override http request option.
1641
+ * @throws {RequiredError}
1642
+ */
1643
+ workerControllerBatchDeleteWorkers(requestParameters: ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerControllerBatchDeleteWorkers200Response> {
1644
+ return localVarFp.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(axios, basePath));
1645
+ },
1646
+ /**
1647
+ *
1648
+ * @summary Create a new worker
1649
+ * @param {ApiV1WorkersApiWorkerControllerCreateWorkerRequest} requestParameters Request parameters.
1650
+ * @param {*} [options] Override http request option.
1651
+ * @throws {RequiredError}
1652
+ */
1653
+ workerControllerCreateWorker(requestParameters: ApiV1WorkersApiWorkerControllerCreateWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto> {
1654
+ return localVarFp.workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(axios, basePath));
1655
+ },
1656
+ /**
1657
+ *
1658
+ * @summary Delete a worker by ID
1659
+ * @param {ApiV1WorkersApiWorkerControllerDeleteWorkerRequest} requestParameters Request parameters.
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ */
1663
+ workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1664
+ return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
1665
+ },
1666
+ /**
1667
+ *
1668
+ * @summary Get a worker by ID
1669
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest} requestParameters Request parameters.
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ workerControllerGetWorkerById(requestParameters: ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto> {
1674
+ return localVarFp.workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(axios, basePath));
1675
+ },
1676
+ /**
1677
+ *
1678
+ * @summary Retrieve workers with filters, sorting, pagination, and search
1679
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkersRequest} requestParameters Request parameters.
1680
+ * @param {*} [options] Override http request option.
1681
+ * @throws {RequiredError}
1682
+ */
1683
+ workerControllerGetWorkers(requestParameters: ApiV1WorkersApiWorkerControllerGetWorkersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<WorkerControllerGetWorkers200Response> {
1684
+ return localVarFp.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(axios, basePath));
1685
+ },
1686
+ /**
1687
+ *
1688
+ * @summary Update a worker by ID
1689
+ * @param {ApiV1WorkersApiWorkerControllerUpdateWorkerRequest} requestParameters Request parameters.
1690
+ * @param {*} [options] Override http request option.
1691
+ * @throws {RequiredError}
1692
+ */
1693
+ workerControllerUpdateWorker(requestParameters: ApiV1WorkersApiWorkerControllerUpdateWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto> {
1694
+ return localVarFp.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(axios, basePath));
1695
+ },
1696
+ };
1697
+ };
1698
+
1699
+ /**
1700
+ * ApiV1WorkersApi - interface
1701
+ * @export
1702
+ * @interface ApiV1WorkersApi
1703
+ */
1704
+ export interface ApiV1WorkersApiInterface {
1705
+ /**
1706
+ *
1707
+ * @summary Delete multiple workers by IDs
1708
+ * @param {ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest} requestParameters Request parameters.
1709
+ * @param {*} [options] Override http request option.
1710
+ * @throws {RequiredError}
1711
+ * @memberof ApiV1WorkersApiInterface
1712
+ */
1713
+ workerControllerBatchDeleteWorkers(requestParameters: ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerControllerBatchDeleteWorkers200Response>;
1714
+
1715
+ /**
1716
+ *
1717
+ * @summary Create a new worker
1718
+ * @param {ApiV1WorkersApiWorkerControllerCreateWorkerRequest} requestParameters Request parameters.
1719
+ * @param {*} [options] Override http request option.
1720
+ * @throws {RequiredError}
1721
+ * @memberof ApiV1WorkersApiInterface
1722
+ */
1723
+ workerControllerCreateWorker(requestParameters: ApiV1WorkersApiWorkerControllerCreateWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto>;
1724
+
1725
+ /**
1726
+ *
1727
+ * @summary Delete a worker by ID
1728
+ * @param {ApiV1WorkersApiWorkerControllerDeleteWorkerRequest} requestParameters Request parameters.
1729
+ * @param {*} [options] Override http request option.
1730
+ * @throws {RequiredError}
1731
+ * @memberof ApiV1WorkersApiInterface
1732
+ */
1733
+ workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1734
+
1735
+ /**
1736
+ *
1737
+ * @summary Get a worker by ID
1738
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest} requestParameters Request parameters.
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ * @memberof ApiV1WorkersApiInterface
1742
+ */
1743
+ workerControllerGetWorkerById(requestParameters: ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto>;
1744
+
1745
+ /**
1746
+ *
1747
+ * @summary Retrieve workers with filters, sorting, pagination, and search
1748
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkersRequest} requestParameters Request parameters.
1749
+ * @param {*} [options] Override http request option.
1750
+ * @throws {RequiredError}
1751
+ * @memberof ApiV1WorkersApiInterface
1752
+ */
1753
+ workerControllerGetWorkers(requestParameters?: ApiV1WorkersApiWorkerControllerGetWorkersRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerControllerGetWorkers200Response>;
1754
+
1755
+ /**
1756
+ *
1757
+ * @summary Update a worker by ID
1758
+ * @param {ApiV1WorkersApiWorkerControllerUpdateWorkerRequest} requestParameters Request parameters.
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ * @memberof ApiV1WorkersApiInterface
1762
+ */
1763
+ workerControllerUpdateWorker(requestParameters: ApiV1WorkersApiWorkerControllerUpdateWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerDto>;
1764
+
1765
+ }
1766
+
1767
+ /**
1768
+ * Request parameters for workerControllerBatchDeleteWorkers operation in ApiV1WorkersApi.
1769
+ * @export
1770
+ * @interface ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest
1771
+ */
1772
+ export interface ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest {
1773
+ /**
1774
+ * Array of worker IDs to delete
1775
+ * @type {WorkerControllerBatchDeleteWorkersRequest}
1776
+ * @memberof ApiV1WorkersApiWorkerControllerBatchDeleteWorkers
1777
+ */
1778
+ readonly workerControllerBatchDeleteWorkersRequest: WorkerControllerBatchDeleteWorkersRequest
1779
+ }
1780
+
1781
+ /**
1782
+ * Request parameters for workerControllerCreateWorker operation in ApiV1WorkersApi.
1783
+ * @export
1784
+ * @interface ApiV1WorkersApiWorkerControllerCreateWorkerRequest
1785
+ */
1786
+ export interface ApiV1WorkersApiWorkerControllerCreateWorkerRequest {
1787
+ /**
1788
+ * Worker data
1789
+ * @type {WorkerCreateDto}
1790
+ * @memberof ApiV1WorkersApiWorkerControllerCreateWorker
1791
+ */
1792
+ readonly workerCreateDto: WorkerCreateDto
1793
+ }
1794
+
1795
+ /**
1796
+ * Request parameters for workerControllerDeleteWorker operation in ApiV1WorkersApi.
1797
+ * @export
1798
+ * @interface ApiV1WorkersApiWorkerControllerDeleteWorkerRequest
1799
+ */
1800
+ export interface ApiV1WorkersApiWorkerControllerDeleteWorkerRequest {
1801
+ /**
1802
+ * The ID of the worker
1803
+ * @type {string}
1804
+ * @memberof ApiV1WorkersApiWorkerControllerDeleteWorker
1805
+ */
1806
+ readonly id: string
1807
+ }
1808
+
1809
+ /**
1810
+ * Request parameters for workerControllerGetWorkerById operation in ApiV1WorkersApi.
1811
+ * @export
1812
+ * @interface ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest
1813
+ */
1814
+ export interface ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest {
1815
+ /**
1816
+ * The ID of the worker
1817
+ * @type {string}
1818
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkerById
1819
+ */
1820
+ readonly id: string
1821
+ }
1822
+
1823
+ /**
1824
+ * Request parameters for workerControllerGetWorkers operation in ApiV1WorkersApi.
1825
+ * @export
1826
+ * @interface ApiV1WorkersApiWorkerControllerGetWorkersRequest
1827
+ */
1828
+ export interface ApiV1WorkersApiWorkerControllerGetWorkersRequest {
1829
+ /**
1830
+ * Page number for pagination (starts at 1)
1831
+ * @type {number}
1832
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1833
+ */
1834
+ readonly page?: number
1835
+
1836
+ /**
1837
+ * Number of items per page
1838
+ * @type {number}
1839
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1840
+ */
1841
+ readonly limit?: number
1842
+
1843
+ /**
1844
+ * JSON string of WorkerFilterDto object
1845
+ * @type {string}
1846
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1847
+ */
1848
+ readonly filter?: string
1849
+
1850
+ /**
1851
+ * JSON string array of WorkerSortByDto objects
1852
+ * @type {string}
1853
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1854
+ */
1855
+ readonly sortBy?: string
1856
+
1857
+ /**
1858
+ * Search term to filter workers by name, url or other searchable fields
1859
+ * @type {string}
1860
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1861
+ */
1862
+ readonly search?: string
1863
+
1864
+ /**
1865
+ * JSON string array of columns to search in (defaults to name and url if not specified)
1866
+ * @type {string}
1867
+ * @memberof ApiV1WorkersApiWorkerControllerGetWorkers
1868
+ */
1869
+ readonly searchColumns?: string
1870
+ }
1871
+
1872
+ /**
1873
+ * Request parameters for workerControllerUpdateWorker operation in ApiV1WorkersApi.
1874
+ * @export
1875
+ * @interface ApiV1WorkersApiWorkerControllerUpdateWorkerRequest
1876
+ */
1877
+ export interface ApiV1WorkersApiWorkerControllerUpdateWorkerRequest {
1878
+ /**
1879
+ * The ID of the worker
1880
+ * @type {string}
1881
+ * @memberof ApiV1WorkersApiWorkerControllerUpdateWorker
1882
+ */
1883
+ readonly id: string
1884
+
1885
+ /**
1886
+ * Updated worker data
1887
+ * @type {WorkerUpdateDto}
1888
+ * @memberof ApiV1WorkersApiWorkerControllerUpdateWorker
1889
+ */
1890
+ readonly workerUpdateDto: WorkerUpdateDto
1891
+ }
1892
+
1893
+ /**
1894
+ * ApiV1WorkersApi - object-oriented interface
1895
+ * @export
1896
+ * @class ApiV1WorkersApi
1897
+ * @extends {BaseAPI}
1898
+ */
1899
+ export class ApiV1WorkersApi extends BaseAPI implements ApiV1WorkersApiInterface {
1900
+ /**
1901
+ *
1902
+ * @summary Delete multiple workers by IDs
1903
+ * @param {ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest} requestParameters Request parameters.
1904
+ * @param {*} [options] Override http request option.
1905
+ * @throws {RequiredError}
1906
+ * @memberof ApiV1WorkersApi
1907
+ */
1908
+ public workerControllerBatchDeleteWorkers(requestParameters: ApiV1WorkersApiWorkerControllerBatchDeleteWorkersRequest, options?: RawAxiosRequestConfig) {
1909
+ return ApiV1WorkersApiFp(this.configuration).workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options).then((request) => request(this.axios, this.basePath));
1910
+ }
1911
+
1912
+ /**
1913
+ *
1914
+ * @summary Create a new worker
1915
+ * @param {ApiV1WorkersApiWorkerControllerCreateWorkerRequest} requestParameters Request parameters.
1916
+ * @param {*} [options] Override http request option.
1917
+ * @throws {RequiredError}
1918
+ * @memberof ApiV1WorkersApi
1919
+ */
1920
+ public workerControllerCreateWorker(requestParameters: ApiV1WorkersApiWorkerControllerCreateWorkerRequest, options?: RawAxiosRequestConfig) {
1921
+ return ApiV1WorkersApiFp(this.configuration).workerControllerCreateWorker(requestParameters.workerCreateDto, options).then((request) => request(this.axios, this.basePath));
1922
+ }
1923
+
1924
+ /**
1925
+ *
1926
+ * @summary Delete a worker by ID
1927
+ * @param {ApiV1WorkersApiWorkerControllerDeleteWorkerRequest} requestParameters Request parameters.
1928
+ * @param {*} [options] Override http request option.
1929
+ * @throws {RequiredError}
1930
+ * @memberof ApiV1WorkersApi
1931
+ */
1932
+ public workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig) {
1933
+ return ApiV1WorkersApiFp(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1934
+ }
1935
+
1936
+ /**
1937
+ *
1938
+ * @summary Get a worker by ID
1939
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest} requestParameters Request parameters.
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ * @memberof ApiV1WorkersApi
1943
+ */
1944
+ public workerControllerGetWorkerById(requestParameters: ApiV1WorkersApiWorkerControllerGetWorkerByIdRequest, options?: RawAxiosRequestConfig) {
1945
+ return ApiV1WorkersApiFp(this.configuration).workerControllerGetWorkerById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1946
+ }
1947
+
1948
+ /**
1949
+ *
1950
+ * @summary Retrieve workers with filters, sorting, pagination, and search
1951
+ * @param {ApiV1WorkersApiWorkerControllerGetWorkersRequest} requestParameters Request parameters.
1952
+ * @param {*} [options] Override http request option.
1953
+ * @throws {RequiredError}
1954
+ * @memberof ApiV1WorkersApi
1955
+ */
1956
+ public workerControllerGetWorkers(requestParameters: ApiV1WorkersApiWorkerControllerGetWorkersRequest = {}, options?: RawAxiosRequestConfig) {
1957
+ return ApiV1WorkersApiFp(this.configuration).workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options).then((request) => request(this.axios, this.basePath));
1958
+ }
1959
+
1960
+ /**
1961
+ *
1962
+ * @summary Update a worker by ID
1963
+ * @param {ApiV1WorkersApiWorkerControllerUpdateWorkerRequest} requestParameters Request parameters.
1964
+ * @param {*} [options] Override http request option.
1965
+ * @throws {RequiredError}
1966
+ * @memberof ApiV1WorkersApi
1967
+ */
1968
+ public workerControllerUpdateWorker(requestParameters: ApiV1WorkersApiWorkerControllerUpdateWorkerRequest, options?: RawAxiosRequestConfig) {
1969
+ return ApiV1WorkersApiFp(this.configuration).workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(this.axios, this.basePath));
1970
+ }
1971
+ }
1972
+
1973
+
1974
+
1975
+ /**
1976
+ * SsoApi - axios parameter creator
1977
+ * @export
1978
+ */
1979
+ export const SsoApiAxiosParamCreator = function (configuration?: Configuration) {
1980
+ return {
1981
+ /**
1982
+ *
1983
+ * @param {object} body
1984
+ * @param {*} [options] Override http request option.
1985
+ * @throws {RequiredError}
1986
+ */
1987
+ ssoControllerGenerateLocalCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1988
+ // verify required parameter 'body' is not null or undefined
1989
+ assertParamExists('ssoControllerGenerateLocalCode', 'body', body)
1990
+ const localVarPath = `/sso/generate-code`;
1991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1992
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1993
+ let baseOptions;
1994
+ if (configuration) {
1995
+ baseOptions = configuration.baseOptions;
1996
+ }
1997
+
1998
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1999
+ const localVarHeaderParameter = {} as any;
2000
+ const localVarQueryParameter = {} as any;
2001
+
2002
+
2003
+
2004
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2005
+
2006
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2008
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2009
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
2010
+
2011
+ return {
2012
+ url: toPathString(localVarUrlObj),
2013
+ options: localVarRequestOptions,
2014
+ };
2015
+ },
2016
+ /**
2017
+ *
2018
+ * @param {object} body
2019
+ * @param {*} [options] Override http request option.
2020
+ * @throws {RequiredError}
2021
+ */
2022
+ ssoControllerValidateCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2023
+ // verify required parameter 'body' is not null or undefined
2024
+ assertParamExists('ssoControllerValidateCode', 'body', body)
2025
+ const localVarPath = `/sso/validate-code`;
2026
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2027
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2028
+ let baseOptions;
2029
+ if (configuration) {
2030
+ baseOptions = configuration.baseOptions;
2031
+ }
2032
+
2033
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2034
+ const localVarHeaderParameter = {} as any;
2035
+ const localVarQueryParameter = {} as any;
2036
+
2037
+
2038
+
2039
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2040
+
2041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2043
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2044
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
2045
+
2046
+ return {
2047
+ url: toPathString(localVarUrlObj),
2048
+ options: localVarRequestOptions,
2049
+ };
2050
+ },
2051
+ }
2052
+ };
2053
+
2054
+ /**
2055
+ * SsoApi - functional programming interface
2056
+ * @export
2057
+ */
2058
+ export const SsoApiFp = function(configuration?: Configuration) {
2059
+ const localVarAxiosParamCreator = SsoApiAxiosParamCreator(configuration)
2060
+ return {
2061
+ /**
2062
+ *
2063
+ * @param {object} body
2064
+ * @param {*} [options] Override http request option.
2065
+ * @throws {RequiredError}
2066
+ */
2067
+ async ssoControllerGenerateLocalCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
2069
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2070
+ const localVarOperationServerBasePath = operationServerMap['SsoApi.ssoControllerGenerateLocalCode']?.[localVarOperationServerIndex]?.url;
2071
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2072
+ },
2073
+ /**
2074
+ *
2075
+ * @param {object} body
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ */
2079
+ async ssoControllerValidateCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2080
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
2081
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2082
+ const localVarOperationServerBasePath = operationServerMap['SsoApi.ssoControllerValidateCode']?.[localVarOperationServerIndex]?.url;
2083
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2084
+ },
2085
+ }
2086
+ };
2087
+
2088
+ /**
2089
+ * SsoApi - factory interface
2090
+ * @export
2091
+ */
2092
+ export const SsoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2093
+ const localVarFp = SsoApiFp(configuration)
2094
+ return {
2095
+ /**
2096
+ *
2097
+ * @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
2098
+ * @param {*} [options] Override http request option.
2099
+ * @throws {RequiredError}
2100
+ */
2101
+ ssoControllerGenerateLocalCode(requestParameters: SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2102
+ return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
2103
+ },
2104
+ /**
2105
+ *
2106
+ * @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
2107
+ * @param {*} [options] Override http request option.
2108
+ * @throws {RequiredError}
2109
+ */
2110
+ ssoControllerValidateCode(requestParameters: SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2111
+ return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
2112
+ },
2113
+ };
2114
+ };
2115
+
2116
+ /**
2117
+ * SsoApi - interface
2118
+ * @export
2119
+ * @interface SsoApi
2120
+ */
2121
+ export interface SsoApiInterface {
2122
+ /**
2123
+ *
2124
+ * @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
2125
+ * @param {*} [options] Override http request option.
2126
+ * @throws {RequiredError}
2127
+ * @memberof SsoApiInterface
2128
+ */
2129
+ ssoControllerGenerateLocalCode(requestParameters: SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2130
+
2131
+ /**
2132
+ *
2133
+ * @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
2134
+ * @param {*} [options] Override http request option.
2135
+ * @throws {RequiredError}
2136
+ * @memberof SsoApiInterface
2137
+ */
2138
+ ssoControllerValidateCode(requestParameters: SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2139
+
2140
+ }
2141
+
2142
+ /**
2143
+ * Request parameters for ssoControllerGenerateLocalCode operation in SsoApi.
2144
+ * @export
2145
+ * @interface SsoApiSsoControllerGenerateLocalCodeRequest
2146
+ */
2147
+ export interface SsoApiSsoControllerGenerateLocalCodeRequest {
2148
+ /**
2149
+ *
2150
+ * @type {object}
2151
+ * @memberof SsoApiSsoControllerGenerateLocalCode
2152
+ */
2153
+ readonly body: object
2154
+ }
2155
+
2156
+ /**
2157
+ * Request parameters for ssoControllerValidateCode operation in SsoApi.
2158
+ * @export
2159
+ * @interface SsoApiSsoControllerValidateCodeRequest
2160
+ */
2161
+ export interface SsoApiSsoControllerValidateCodeRequest {
2162
+ /**
2163
+ *
2164
+ * @type {object}
2165
+ * @memberof SsoApiSsoControllerValidateCode
2166
+ */
2167
+ readonly body: object
2168
+ }
2169
+
2170
+ /**
2171
+ * SsoApi - object-oriented interface
2172
+ * @export
2173
+ * @class SsoApi
2174
+ * @extends {BaseAPI}
2175
+ */
2176
+ export class SsoApi extends BaseAPI implements SsoApiInterface {
2177
+ /**
2178
+ *
2179
+ * @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
2180
+ * @param {*} [options] Override http request option.
2181
+ * @throws {RequiredError}
2182
+ * @memberof SsoApi
2183
+ */
2184
+ public ssoControllerGenerateLocalCode(requestParameters: SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig) {
2185
+ return SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2186
+ }
2187
+
2188
+ /**
2189
+ *
2190
+ * @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
2191
+ * @param {*} [options] Override http request option.
2192
+ * @throws {RequiredError}
2193
+ * @memberof SsoApi
2194
+ */
2195
+ public ssoControllerValidateCode(requestParameters: SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig) {
2196
+ return SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2197
+ }
2198
+ }
2199
+
2200
+
2201
+