@loopstack/hub-client 0.8.1 → 0.9.0
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/CHANGELOG.md +7 -0
- package/LICENSE +19 -0
- package/api.ts +1019 -449
- package/dist/api.d.ts +817 -308
- package/dist/api.js +520 -352
- package/dist/esm/api.d.ts +817 -308
- package/dist/esm/api.js +510 -346
- package/package.json +5 -6
package/api.ts
CHANGED
|
@@ -23,6 +23,105 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AuthorizationCodeResponseDto
|
|
30
|
+
*/
|
|
31
|
+
export interface AuthorizationCodeResponseDto {
|
|
32
|
+
/**
|
|
33
|
+
* The authorization code
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AuthorizationCodeResponseDto
|
|
36
|
+
*/
|
|
37
|
+
'authCode': string;
|
|
38
|
+
/**
|
|
39
|
+
* The exact date and time when the authorization code expires
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AuthorizationCodeResponseDto
|
|
42
|
+
*/
|
|
43
|
+
'expiresAt': string;
|
|
44
|
+
/**
|
|
45
|
+
* The number of seconds until the authorization code expires
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof AuthorizationCodeResponseDto
|
|
48
|
+
*/
|
|
49
|
+
'expiresIn': number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface ErrorResponseDto
|
|
55
|
+
*/
|
|
56
|
+
export interface ErrorResponseDto {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof ErrorResponseDto
|
|
61
|
+
*/
|
|
62
|
+
'statusCode': number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ErrorResponseDto
|
|
67
|
+
*/
|
|
68
|
+
'message': string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ErrorResponseDto
|
|
73
|
+
*/
|
|
74
|
+
'error': string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ErrorResponseDto
|
|
79
|
+
*/
|
|
80
|
+
'timestamp': string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof ErrorResponseDto
|
|
85
|
+
*/
|
|
86
|
+
'correlationId'?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @export
|
|
91
|
+
* @interface GenerateCodeResponseDto
|
|
92
|
+
*/
|
|
93
|
+
export interface GenerateCodeResponseDto {
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof GenerateCodeResponseDto
|
|
98
|
+
*/
|
|
99
|
+
'success': boolean;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {object}
|
|
103
|
+
* @memberof GenerateCodeResponseDto
|
|
104
|
+
*/
|
|
105
|
+
'data': object;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof GenerateCodeResponseDto
|
|
110
|
+
*/
|
|
111
|
+
'message': string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof GenerateCodeResponseDto
|
|
116
|
+
*/
|
|
117
|
+
'timestamp': string;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof GenerateCodeResponseDto
|
|
122
|
+
*/
|
|
123
|
+
'correlationId'?: string;
|
|
124
|
+
}
|
|
26
125
|
/**
|
|
27
126
|
*
|
|
28
127
|
* @export
|
|
@@ -54,6 +153,242 @@ export interface PaginatedDto {
|
|
|
54
153
|
*/
|
|
55
154
|
'limit': number;
|
|
56
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @export
|
|
159
|
+
* @interface UIPreferencesDto
|
|
160
|
+
*/
|
|
161
|
+
export interface UIPreferencesDto {
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof UIPreferencesDto
|
|
166
|
+
*/
|
|
167
|
+
'theme'?: UIPreferencesDtoThemeEnum;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof UIPreferencesDto
|
|
172
|
+
*/
|
|
173
|
+
'language'?: string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof UIPreferencesDto
|
|
178
|
+
*/
|
|
179
|
+
'timezone'?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const UIPreferencesDtoThemeEnum = {
|
|
183
|
+
Light: 'light',
|
|
184
|
+
Dark: 'dark'
|
|
185
|
+
} as const;
|
|
186
|
+
|
|
187
|
+
export type UIPreferencesDtoThemeEnum = typeof UIPreferencesDtoThemeEnum[keyof typeof UIPreferencesDtoThemeEnum];
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @export
|
|
192
|
+
* @interface UserDto
|
|
193
|
+
*/
|
|
194
|
+
export interface UserDto {
|
|
195
|
+
/**
|
|
196
|
+
* Unique identifier for the user
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof UserDto
|
|
199
|
+
*/
|
|
200
|
+
'id': string;
|
|
201
|
+
/**
|
|
202
|
+
* User email address
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof UserDto
|
|
205
|
+
*/
|
|
206
|
+
'email': string;
|
|
207
|
+
/**
|
|
208
|
+
* User first name
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof UserDto
|
|
211
|
+
*/
|
|
212
|
+
'firstName': string;
|
|
213
|
+
/**
|
|
214
|
+
* User last name
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof UserDto
|
|
217
|
+
*/
|
|
218
|
+
'lastName': string;
|
|
219
|
+
/**
|
|
220
|
+
* Whether the user account is active
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
* @memberof UserDto
|
|
223
|
+
*/
|
|
224
|
+
'isActive': boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Array of role names assigned to the user
|
|
227
|
+
* @type {Array<string>}
|
|
228
|
+
* @memberof UserDto
|
|
229
|
+
*/
|
|
230
|
+
'roles': Array<string>;
|
|
231
|
+
/**
|
|
232
|
+
* User settings and preferences
|
|
233
|
+
* @type {UserSettingsDto}
|
|
234
|
+
* @memberof UserDto
|
|
235
|
+
*/
|
|
236
|
+
'settings'?: UserSettingsDto | null;
|
|
237
|
+
/**
|
|
238
|
+
* Date when the user was created
|
|
239
|
+
* @type {string}
|
|
240
|
+
* @memberof UserDto
|
|
241
|
+
*/
|
|
242
|
+
'createdAt': string;
|
|
243
|
+
/**
|
|
244
|
+
* Date when the user was last updated
|
|
245
|
+
* @type {string}
|
|
246
|
+
* @memberof UserDto
|
|
247
|
+
*/
|
|
248
|
+
'updatedAt': string;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {Array<Array<object>>}
|
|
252
|
+
* @memberof UserDto
|
|
253
|
+
*/
|
|
254
|
+
'workers': Array<Array<object>>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @export
|
|
259
|
+
* @interface UserSettingsDto
|
|
260
|
+
*/
|
|
261
|
+
export interface UserSettingsDto {
|
|
262
|
+
/**
|
|
263
|
+
* Settings ID
|
|
264
|
+
* @type {string}
|
|
265
|
+
* @memberof UserSettingsDto
|
|
266
|
+
*/
|
|
267
|
+
'id': string;
|
|
268
|
+
/**
|
|
269
|
+
* User ID
|
|
270
|
+
* @type {string}
|
|
271
|
+
* @memberof UserSettingsDto
|
|
272
|
+
*/
|
|
273
|
+
'userId': string;
|
|
274
|
+
/**
|
|
275
|
+
* Default worker for the user
|
|
276
|
+
* @type {WorkerItemDto}
|
|
277
|
+
* @memberof UserSettingsDto
|
|
278
|
+
*/
|
|
279
|
+
'defaultWorker'?: WorkerItemDto;
|
|
280
|
+
/**
|
|
281
|
+
* Default worker ID
|
|
282
|
+
* @type {string}
|
|
283
|
+
* @memberof UserSettingsDto
|
|
284
|
+
*/
|
|
285
|
+
'defaultWorkerId'?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Last selected worker by the user
|
|
288
|
+
* @type {WorkerItemDto}
|
|
289
|
+
* @memberof UserSettingsDto
|
|
290
|
+
*/
|
|
291
|
+
'lastSelectedWorker'?: WorkerItemDto;
|
|
292
|
+
/**
|
|
293
|
+
* Last selected worker ID
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof UserSettingsDto
|
|
296
|
+
*/
|
|
297
|
+
'lastSelectedWorkerId'?: string;
|
|
298
|
+
/**
|
|
299
|
+
* UI preferences
|
|
300
|
+
* @type {UIPreferencesDto}
|
|
301
|
+
* @memberof UserSettingsDto
|
|
302
|
+
*/
|
|
303
|
+
'uiPreferences'?: UIPreferencesDto;
|
|
304
|
+
/**
|
|
305
|
+
* Creation timestamp
|
|
306
|
+
* @type {string}
|
|
307
|
+
* @memberof UserSettingsDto
|
|
308
|
+
*/
|
|
309
|
+
'createdAt': string;
|
|
310
|
+
/**
|
|
311
|
+
* Last update timestamp
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof UserSettingsDto
|
|
314
|
+
*/
|
|
315
|
+
'updatedAt': string;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @export
|
|
320
|
+
* @interface UserSettingsUpdateDto
|
|
321
|
+
*/
|
|
322
|
+
export interface UserSettingsUpdateDto {
|
|
323
|
+
/**
|
|
324
|
+
* Default worker for the user
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof UserSettingsUpdateDto
|
|
327
|
+
*/
|
|
328
|
+
'defaultWorkerId'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Last selected worker by the user
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof UserSettingsUpdateDto
|
|
333
|
+
*/
|
|
334
|
+
'lastSelectedWorkerId'?: string;
|
|
335
|
+
/**
|
|
336
|
+
* UI preferences
|
|
337
|
+
* @type {UIPreferencesDto}
|
|
338
|
+
* @memberof UserSettingsUpdateDto
|
|
339
|
+
*/
|
|
340
|
+
'uiPreferences'?: UIPreferencesDto;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @export
|
|
345
|
+
* @interface ValidateCodeResponseDto
|
|
346
|
+
*/
|
|
347
|
+
export interface ValidateCodeResponseDto {
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {boolean}
|
|
351
|
+
* @memberof ValidateCodeResponseDto
|
|
352
|
+
*/
|
|
353
|
+
'success': boolean;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {object}
|
|
357
|
+
* @memberof ValidateCodeResponseDto
|
|
358
|
+
*/
|
|
359
|
+
'data': object;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof ValidateCodeResponseDto
|
|
364
|
+
*/
|
|
365
|
+
'message': string;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof ValidateCodeResponseDto
|
|
370
|
+
*/
|
|
371
|
+
'timestamp': string;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof ValidateCodeResponseDto
|
|
376
|
+
*/
|
|
377
|
+
'correlationId'?: string;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @export
|
|
382
|
+
* @interface WorkerClientSecretDto
|
|
383
|
+
*/
|
|
384
|
+
export interface WorkerClientSecretDto {
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof WorkerClientSecretDto
|
|
389
|
+
*/
|
|
390
|
+
'clientSecret': string;
|
|
391
|
+
}
|
|
57
392
|
/**
|
|
58
393
|
*
|
|
59
394
|
* @export
|
|
@@ -148,6 +483,12 @@ export interface WorkerCreateDto {
|
|
|
148
483
|
* @memberof WorkerCreateDto
|
|
149
484
|
*/
|
|
150
485
|
'url': string;
|
|
486
|
+
/**
|
|
487
|
+
* URL of the worker websocket server
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof WorkerCreateDto
|
|
490
|
+
*/
|
|
491
|
+
'websocketUrl': string;
|
|
151
492
|
/**
|
|
152
493
|
* Name of the worker
|
|
153
494
|
* @type {string}
|
|
@@ -174,23 +515,23 @@ export interface WorkerDto {
|
|
|
174
515
|
*/
|
|
175
516
|
'url': string;
|
|
176
517
|
/**
|
|
177
|
-
*
|
|
518
|
+
* URL of the worker websocket server
|
|
178
519
|
* @type {string}
|
|
179
520
|
* @memberof WorkerDto
|
|
180
521
|
*/
|
|
181
|
-
'
|
|
522
|
+
'websocketUrl': string;
|
|
182
523
|
/**
|
|
183
|
-
*
|
|
524
|
+
* Name of the worker
|
|
184
525
|
* @type {string}
|
|
185
526
|
* @memberof WorkerDto
|
|
186
527
|
*/
|
|
187
|
-
'
|
|
528
|
+
'name': string;
|
|
188
529
|
/**
|
|
189
|
-
*
|
|
530
|
+
* Is client secret generated
|
|
190
531
|
* @type {boolean}
|
|
191
532
|
* @memberof WorkerDto
|
|
192
533
|
*/
|
|
193
|
-
'
|
|
534
|
+
'hasClientSecret': boolean;
|
|
194
535
|
/**
|
|
195
536
|
* Timestamp when the worker was created
|
|
196
537
|
* @type {string}
|
|
@@ -241,6 +582,12 @@ export interface WorkerItemDto {
|
|
|
241
582
|
* @memberof WorkerItemDto
|
|
242
583
|
*/
|
|
243
584
|
'url': string;
|
|
585
|
+
/**
|
|
586
|
+
* URL of the worker websocket server
|
|
587
|
+
* @type {string}
|
|
588
|
+
* @memberof WorkerItemDto
|
|
589
|
+
*/
|
|
590
|
+
'websocketUrl': string;
|
|
244
591
|
/**
|
|
245
592
|
* Name of the worker
|
|
246
593
|
* @type {string}
|
|
@@ -248,11 +595,11 @@ export interface WorkerItemDto {
|
|
|
248
595
|
*/
|
|
249
596
|
'name': string;
|
|
250
597
|
/**
|
|
251
|
-
*
|
|
598
|
+
* Is client secret generated
|
|
252
599
|
* @type {boolean}
|
|
253
600
|
* @memberof WorkerItemDto
|
|
254
601
|
*/
|
|
255
|
-
'
|
|
602
|
+
'hasClientSecret': boolean;
|
|
256
603
|
/**
|
|
257
604
|
* Timestamp when the worker was created
|
|
258
605
|
* @type {string}
|
|
@@ -289,9 +636,9 @@ export interface WorkerSortByDto {
|
|
|
289
636
|
export const WorkerSortByDtoFieldEnum = {
|
|
290
637
|
Id: 'id',
|
|
291
638
|
Url: 'url',
|
|
639
|
+
WebsocketUrl: 'websocketUrl',
|
|
292
640
|
Name: 'name',
|
|
293
|
-
|
|
294
|
-
IsSetupComplete: 'isSetupComplete',
|
|
641
|
+
ClientSecret: 'clientSecret',
|
|
295
642
|
CreatedAt: 'createdAt',
|
|
296
643
|
UpdatedAt: 'updatedAt',
|
|
297
644
|
UserId: 'userId'
|
|
@@ -311,12 +658,6 @@ export type WorkerSortByDtoOrderEnum = typeof WorkerSortByDtoOrderEnum[keyof typ
|
|
|
311
658
|
* @interface WorkerUpdateDto
|
|
312
659
|
*/
|
|
313
660
|
export interface WorkerUpdateDto {
|
|
314
|
-
/**
|
|
315
|
-
* URL of the worker
|
|
316
|
-
* @type {string}
|
|
317
|
-
* @memberof WorkerUpdateDto
|
|
318
|
-
*/
|
|
319
|
-
'url'?: string;
|
|
320
661
|
/**
|
|
321
662
|
* Name of the worker
|
|
322
663
|
* @type {string}
|
|
@@ -333,11 +674,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
333
674
|
return {
|
|
334
675
|
/**
|
|
335
676
|
*
|
|
677
|
+
* @summary Get linked OAuth providers for current user
|
|
336
678
|
* @param {*} [options] Override http request option.
|
|
337
679
|
* @throws {RequiredError}
|
|
338
680
|
*/
|
|
339
|
-
|
|
340
|
-
const localVarPath = `/api/v1/auth/
|
|
681
|
+
authControllerGetProviders: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
682
|
+
const localVarPath = `/api/v1/auth/providers`;
|
|
341
683
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
342
684
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
343
685
|
let baseOptions;
|
|
@@ -345,7 +687,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
345
687
|
baseOptions = configuration.baseOptions;
|
|
346
688
|
}
|
|
347
689
|
|
|
348
|
-
const localVarRequestOptions = { method: '
|
|
690
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
349
691
|
const localVarHeaderParameter = {} as any;
|
|
350
692
|
const localVarQueryParameter = {} as any;
|
|
351
693
|
|
|
@@ -362,11 +704,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
362
704
|
},
|
|
363
705
|
/**
|
|
364
706
|
*
|
|
707
|
+
* @summary Initiate Google OAuth flow
|
|
365
708
|
* @param {*} [options] Override http request option.
|
|
366
709
|
* @throws {RequiredError}
|
|
367
710
|
*/
|
|
368
|
-
|
|
369
|
-
const localVarPath = `/api/v1/auth/
|
|
711
|
+
authControllerGoogleAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
712
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
370
713
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
371
714
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
372
715
|
let baseOptions;
|
|
@@ -391,11 +734,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
391
734
|
},
|
|
392
735
|
/**
|
|
393
736
|
*
|
|
737
|
+
* @summary Handle Google OAuth callback
|
|
394
738
|
* @param {*} [options] Override http request option.
|
|
395
739
|
* @throws {RequiredError}
|
|
396
740
|
*/
|
|
397
|
-
|
|
398
|
-
const localVarPath = `/api/v1/auth/
|
|
741
|
+
authControllerGoogleCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
742
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
399
743
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
400
744
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
401
745
|
let baseOptions;
|
|
@@ -420,11 +764,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
420
764
|
},
|
|
421
765
|
/**
|
|
422
766
|
*
|
|
767
|
+
* @summary Auth service health check
|
|
423
768
|
* @param {*} [options] Override http request option.
|
|
424
769
|
* @throws {RequiredError}
|
|
425
770
|
*/
|
|
426
|
-
|
|
427
|
-
const localVarPath = `/api/v1/auth/
|
|
771
|
+
authControllerHealthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
772
|
+
const localVarPath = `/api/v1/auth/health`;
|
|
428
773
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
429
774
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
430
775
|
let baseOptions;
|
|
@@ -449,11 +794,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
449
794
|
},
|
|
450
795
|
/**
|
|
451
796
|
*
|
|
797
|
+
* @summary Link OAuth provider to existing account
|
|
798
|
+
* @param {object} body
|
|
452
799
|
* @param {*} [options] Override http request option.
|
|
453
800
|
* @throws {RequiredError}
|
|
454
801
|
*/
|
|
455
|
-
|
|
456
|
-
|
|
802
|
+
authControllerLinkProvider: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
803
|
+
// verify required parameter 'body' is not null or undefined
|
|
804
|
+
assertParamExists('authControllerLinkProvider', 'body', body)
|
|
805
|
+
const localVarPath = `/api/v1/auth/link-provider`;
|
|
457
806
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
807
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
459
808
|
let baseOptions;
|
|
@@ -461,15 +810,18 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
461
810
|
baseOptions = configuration.baseOptions;
|
|
462
811
|
}
|
|
463
812
|
|
|
464
|
-
const localVarRequestOptions = { method: '
|
|
813
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
465
814
|
const localVarHeaderParameter = {} as any;
|
|
466
815
|
const localVarQueryParameter = {} as any;
|
|
467
816
|
|
|
468
817
|
|
|
469
818
|
|
|
819
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
820
|
+
|
|
470
821
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
471
822
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
472
823
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
824
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
473
825
|
|
|
474
826
|
return {
|
|
475
827
|
url: toPathString(localVarUrlObj),
|
|
@@ -478,14 +830,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
478
830
|
},
|
|
479
831
|
/**
|
|
480
832
|
*
|
|
833
|
+
* @summary User login with email and password
|
|
481
834
|
* @param {object} body
|
|
482
835
|
* @param {*} [options] Override http request option.
|
|
483
836
|
* @throws {RequiredError}
|
|
484
837
|
*/
|
|
485
|
-
|
|
838
|
+
authControllerLogin: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
486
839
|
// verify required parameter 'body' is not null or undefined
|
|
487
|
-
assertParamExists('
|
|
488
|
-
const localVarPath = `/api/v1/auth/
|
|
840
|
+
assertParamExists('authControllerLogin', 'body', body)
|
|
841
|
+
const localVarPath = `/api/v1/auth/login`;
|
|
489
842
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
490
843
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
491
844
|
let baseOptions;
|
|
@@ -513,14 +866,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
513
866
|
},
|
|
514
867
|
/**
|
|
515
868
|
*
|
|
516
|
-
* @
|
|
869
|
+
* @summary Logout user and clear session
|
|
517
870
|
* @param {*} [options] Override http request option.
|
|
518
871
|
* @throws {RequiredError}
|
|
519
872
|
*/
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
assertParamExists('authControllerLogin', 'body', body)
|
|
523
|
-
const localVarPath = `/api/v1/auth/login`;
|
|
873
|
+
authControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
874
|
+
const localVarPath = `/api/v1/auth/logout`;
|
|
524
875
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
525
876
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
526
877
|
let baseOptions;
|
|
@@ -534,67 +885,6 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
534
885
|
|
|
535
886
|
|
|
536
887
|
|
|
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
888
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
599
889
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
600
890
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -606,6 +896,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
606
896
|
},
|
|
607
897
|
/**
|
|
608
898
|
*
|
|
899
|
+
* @summary Refresh access token using refresh token
|
|
609
900
|
* @param {*} [options] Override http request option.
|
|
610
901
|
* @throws {RequiredError}
|
|
611
902
|
*/
|
|
@@ -635,6 +926,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
635
926
|
},
|
|
636
927
|
/**
|
|
637
928
|
*
|
|
929
|
+
* @summary Register a new user account
|
|
638
930
|
* @param {object} body
|
|
639
931
|
* @param {*} [options] Override http request option.
|
|
640
932
|
* @throws {RequiredError}
|
|
@@ -680,32 +972,11 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
680
972
|
return {
|
|
681
973
|
/**
|
|
682
974
|
*
|
|
975
|
+
* @summary Get linked OAuth providers for current user
|
|
683
976
|
* @param {*} [options] Override http request option.
|
|
684
977
|
* @throws {RequiredError}
|
|
685
978
|
*/
|
|
686
|
-
async
|
|
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>> {
|
|
979
|
+
async authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
709
980
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetProviders(options);
|
|
710
981
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
711
982
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGetProviders']?.[localVarOperationServerIndex]?.url;
|
|
@@ -713,6 +984,7 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
713
984
|
},
|
|
714
985
|
/**
|
|
715
986
|
*
|
|
987
|
+
* @summary Initiate Google OAuth flow
|
|
716
988
|
* @param {*} [options] Override http request option.
|
|
717
989
|
* @throws {RequiredError}
|
|
718
990
|
*/
|
|
@@ -724,10 +996,11 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
724
996
|
},
|
|
725
997
|
/**
|
|
726
998
|
*
|
|
999
|
+
* @summary Handle Google OAuth callback
|
|
727
1000
|
* @param {*} [options] Override http request option.
|
|
728
1001
|
* @throws {RequiredError}
|
|
729
1002
|
*/
|
|
730
|
-
async authControllerGoogleCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1003
|
+
async authControllerGoogleCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
731
1004
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleCallback(options);
|
|
732
1005
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
1006
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']?.[localVarOperationServerIndex]?.url;
|
|
@@ -735,56 +1008,61 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
735
1008
|
},
|
|
736
1009
|
/**
|
|
737
1010
|
*
|
|
738
|
-
* @
|
|
1011
|
+
* @summary Auth service health check
|
|
739
1012
|
* @param {*} [options] Override http request option.
|
|
740
1013
|
* @throws {RequiredError}
|
|
741
1014
|
*/
|
|
742
|
-
async
|
|
743
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1015
|
+
async authControllerHealthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerHealthCheck(options);
|
|
744
1017
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
745
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1018
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerHealthCheck']?.[localVarOperationServerIndex]?.url;
|
|
746
1019
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
747
1020
|
},
|
|
748
1021
|
/**
|
|
749
1022
|
*
|
|
1023
|
+
* @summary Link OAuth provider to existing account
|
|
750
1024
|
* @param {object} body
|
|
751
1025
|
* @param {*} [options] Override http request option.
|
|
752
1026
|
* @throws {RequiredError}
|
|
753
1027
|
*/
|
|
754
|
-
async
|
|
755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1028
|
+
async authControllerLinkProvider(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLinkProvider(body, options);
|
|
756
1030
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1031
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLinkProvider']?.[localVarOperationServerIndex]?.url;
|
|
758
1032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
759
1033
|
},
|
|
760
1034
|
/**
|
|
761
1035
|
*
|
|
1036
|
+
* @summary User login with email and password
|
|
1037
|
+
* @param {object} body
|
|
762
1038
|
* @param {*} [options] Override http request option.
|
|
763
1039
|
* @throws {RequiredError}
|
|
764
1040
|
*/
|
|
765
|
-
async
|
|
766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1041
|
+
async authControllerLogin(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(body, options);
|
|
767
1043
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
768
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1044
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
|
|
769
1045
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
770
1046
|
},
|
|
771
1047
|
/**
|
|
772
1048
|
*
|
|
1049
|
+
* @summary Logout user and clear session
|
|
773
1050
|
* @param {*} [options] Override http request option.
|
|
774
1051
|
* @throws {RequiredError}
|
|
775
1052
|
*/
|
|
776
|
-
async
|
|
777
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1053
|
+
async authControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1054
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(options);
|
|
778
1055
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
779
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1056
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
|
|
780
1057
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
781
1058
|
},
|
|
782
1059
|
/**
|
|
783
1060
|
*
|
|
1061
|
+
* @summary Refresh access token using refresh token
|
|
784
1062
|
* @param {*} [options] Override http request option.
|
|
785
1063
|
* @throws {RequiredError}
|
|
786
1064
|
*/
|
|
787
|
-
async authControllerRefresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1065
|
+
async authControllerRefresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
788
1066
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRefresh(options);
|
|
789
1067
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
790
1068
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRefresh']?.[localVarOperationServerIndex]?.url;
|
|
@@ -792,11 +1070,12 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
792
1070
|
},
|
|
793
1071
|
/**
|
|
794
1072
|
*
|
|
1073
|
+
* @summary Register a new user account
|
|
795
1074
|
* @param {object} body
|
|
796
1075
|
* @param {*} [options] Override http request option.
|
|
797
1076
|
* @throws {RequiredError}
|
|
798
1077
|
*/
|
|
799
|
-
async authControllerRegister(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1078
|
+
async authControllerRegister(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
800
1079
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRegister(body, options);
|
|
801
1080
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
802
1081
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRegister']?.[localVarOperationServerIndex]?.url;
|
|
@@ -814,93 +1093,86 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
814
1093
|
return {
|
|
815
1094
|
/**
|
|
816
1095
|
*
|
|
1096
|
+
* @summary Get linked OAuth providers for current user
|
|
817
1097
|
* @param {*} [options] Override http request option.
|
|
818
1098
|
* @throws {RequiredError}
|
|
819
1099
|
*/
|
|
820
|
-
|
|
821
|
-
return localVarFp.
|
|
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));
|
|
1100
|
+
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1101
|
+
return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
|
|
830
1102
|
},
|
|
831
1103
|
/**
|
|
832
1104
|
*
|
|
1105
|
+
* @summary Initiate Google OAuth flow
|
|
833
1106
|
* @param {*} [options] Override http request option.
|
|
834
1107
|
* @throws {RequiredError}
|
|
835
1108
|
*/
|
|
836
|
-
|
|
837
|
-
return localVarFp.
|
|
1109
|
+
authControllerGoogleAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1110
|
+
return localVarFp.authControllerGoogleAuth(options).then((request) => request(axios, basePath));
|
|
838
1111
|
},
|
|
839
1112
|
/**
|
|
840
1113
|
*
|
|
1114
|
+
* @summary Handle Google OAuth callback
|
|
841
1115
|
* @param {*} [options] Override http request option.
|
|
842
1116
|
* @throws {RequiredError}
|
|
843
1117
|
*/
|
|
844
|
-
|
|
845
|
-
return localVarFp.
|
|
1118
|
+
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1119
|
+
return localVarFp.authControllerGoogleCallback(options).then((request) => request(axios, basePath));
|
|
846
1120
|
},
|
|
847
1121
|
/**
|
|
848
1122
|
*
|
|
1123
|
+
* @summary Auth service health check
|
|
849
1124
|
* @param {*} [options] Override http request option.
|
|
850
1125
|
* @throws {RequiredError}
|
|
851
1126
|
*/
|
|
852
|
-
|
|
853
|
-
return localVarFp.
|
|
1127
|
+
authControllerHealthCheck(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1128
|
+
return localVarFp.authControllerHealthCheck(options).then((request) => request(axios, basePath));
|
|
854
1129
|
},
|
|
855
1130
|
/**
|
|
856
1131
|
*
|
|
1132
|
+
* @summary Link OAuth provider to existing account
|
|
857
1133
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
858
1134
|
* @param {*} [options] Override http request option.
|
|
859
1135
|
* @throws {RequiredError}
|
|
860
1136
|
*/
|
|
861
|
-
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1137
|
+
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
862
1138
|
return localVarFp.authControllerLinkProvider(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
863
1139
|
},
|
|
864
1140
|
/**
|
|
865
1141
|
*
|
|
1142
|
+
* @summary User login with email and password
|
|
866
1143
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
867
1144
|
* @param {*} [options] Override http request option.
|
|
868
1145
|
* @throws {RequiredError}
|
|
869
1146
|
*/
|
|
870
|
-
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1147
|
+
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
871
1148
|
return localVarFp.authControllerLogin(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
872
1149
|
},
|
|
873
1150
|
/**
|
|
874
1151
|
*
|
|
1152
|
+
* @summary Logout user and clear session
|
|
875
1153
|
* @param {*} [options] Override http request option.
|
|
876
1154
|
* @throws {RequiredError}
|
|
877
1155
|
*/
|
|
878
|
-
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1156
|
+
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
879
1157
|
return localVarFp.authControllerLogout(options).then((request) => request(axios, basePath));
|
|
880
1158
|
},
|
|
881
1159
|
/**
|
|
882
1160
|
*
|
|
1161
|
+
* @summary Refresh access token using refresh token
|
|
883
1162
|
* @param {*} [options] Override http request option.
|
|
884
1163
|
* @throws {RequiredError}
|
|
885
1164
|
*/
|
|
886
|
-
|
|
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> {
|
|
1165
|
+
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
895
1166
|
return localVarFp.authControllerRefresh(options).then((request) => request(axios, basePath));
|
|
896
1167
|
},
|
|
897
1168
|
/**
|
|
898
1169
|
*
|
|
1170
|
+
* @summary Register a new user account
|
|
899
1171
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
900
1172
|
* @param {*} [options] Override http request option.
|
|
901
1173
|
* @throws {RequiredError}
|
|
902
1174
|
*/
|
|
903
|
-
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1175
|
+
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
904
1176
|
return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
905
1177
|
},
|
|
906
1178
|
};
|
|
@@ -914,94 +1186,87 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
914
1186
|
export interface ApiV1AuthApiInterface {
|
|
915
1187
|
/**
|
|
916
1188
|
*
|
|
1189
|
+
* @summary Get linked OAuth providers for current user
|
|
917
1190
|
* @param {*} [options] Override http request option.
|
|
918
1191
|
* @throws {RequiredError}
|
|
919
1192
|
* @memberof ApiV1AuthApiInterface
|
|
920
1193
|
*/
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
*
|
|
925
|
-
* @param {*} [options] Override http request option.
|
|
926
|
-
* @throws {RequiredError}
|
|
927
|
-
* @memberof ApiV1AuthApiInterface
|
|
928
|
-
*/
|
|
929
|
-
authControllerGetAuthStrategies(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1194
|
+
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
930
1195
|
|
|
931
1196
|
/**
|
|
932
1197
|
*
|
|
1198
|
+
* @summary Initiate Google OAuth flow
|
|
933
1199
|
* @param {*} [options] Override http request option.
|
|
934
1200
|
* @throws {RequiredError}
|
|
935
1201
|
* @memberof ApiV1AuthApiInterface
|
|
936
1202
|
*/
|
|
937
|
-
|
|
1203
|
+
authControllerGoogleAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
938
1204
|
|
|
939
1205
|
/**
|
|
940
1206
|
*
|
|
1207
|
+
* @summary Handle Google OAuth callback
|
|
941
1208
|
* @param {*} [options] Override http request option.
|
|
942
1209
|
* @throws {RequiredError}
|
|
943
1210
|
* @memberof ApiV1AuthApiInterface
|
|
944
1211
|
*/
|
|
945
|
-
|
|
1212
|
+
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
946
1213
|
|
|
947
1214
|
/**
|
|
948
1215
|
*
|
|
1216
|
+
* @summary Auth service health check
|
|
949
1217
|
* @param {*} [options] Override http request option.
|
|
950
1218
|
* @throws {RequiredError}
|
|
951
1219
|
* @memberof ApiV1AuthApiInterface
|
|
952
1220
|
*/
|
|
953
|
-
|
|
1221
|
+
authControllerHealthCheck(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
954
1222
|
|
|
955
1223
|
/**
|
|
956
1224
|
*
|
|
1225
|
+
* @summary Link OAuth provider to existing account
|
|
957
1226
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
958
1227
|
* @param {*} [options] Override http request option.
|
|
959
1228
|
* @throws {RequiredError}
|
|
960
1229
|
* @memberof ApiV1AuthApiInterface
|
|
961
1230
|
*/
|
|
962
|
-
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1231
|
+
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
963
1232
|
|
|
964
1233
|
/**
|
|
965
1234
|
*
|
|
1235
|
+
* @summary User login with email and password
|
|
966
1236
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
967
1237
|
* @param {*} [options] Override http request option.
|
|
968
1238
|
* @throws {RequiredError}
|
|
969
1239
|
* @memberof ApiV1AuthApiInterface
|
|
970
1240
|
*/
|
|
971
|
-
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1241
|
+
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
972
1242
|
|
|
973
1243
|
/**
|
|
974
1244
|
*
|
|
1245
|
+
* @summary Logout user and clear session
|
|
975
1246
|
* @param {*} [options] Override http request option.
|
|
976
1247
|
* @throws {RequiredError}
|
|
977
1248
|
* @memberof ApiV1AuthApiInterface
|
|
978
1249
|
*/
|
|
979
|
-
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1250
|
+
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
980
1251
|
|
|
981
1252
|
/**
|
|
982
1253
|
*
|
|
1254
|
+
* @summary Refresh access token using refresh token
|
|
983
1255
|
* @param {*} [options] Override http request option.
|
|
984
1256
|
* @throws {RequiredError}
|
|
985
1257
|
* @memberof ApiV1AuthApiInterface
|
|
986
1258
|
*/
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
*
|
|
991
|
-
* @param {*} [options] Override http request option.
|
|
992
|
-
* @throws {RequiredError}
|
|
993
|
-
* @memberof ApiV1AuthApiInterface
|
|
994
|
-
*/
|
|
995
|
-
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1259
|
+
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
996
1260
|
|
|
997
1261
|
/**
|
|
998
1262
|
*
|
|
1263
|
+
* @summary Register a new user account
|
|
999
1264
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
1000
1265
|
* @param {*} [options] Override http request option.
|
|
1001
1266
|
* @throws {RequiredError}
|
|
1002
1267
|
* @memberof ApiV1AuthApiInterface
|
|
1003
1268
|
*/
|
|
1004
|
-
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1269
|
+
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1005
1270
|
|
|
1006
1271
|
}
|
|
1007
1272
|
|
|
@@ -1056,56 +1321,51 @@ export interface ApiV1AuthApiAuthControllerRegisterRequest {
|
|
|
1056
1321
|
export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
1057
1322
|
/**
|
|
1058
1323
|
*
|
|
1324
|
+
* @summary Get linked OAuth providers for current user
|
|
1059
1325
|
* @param {*} [options] Override http request option.
|
|
1060
1326
|
* @throws {RequiredError}
|
|
1061
1327
|
* @memberof ApiV1AuthApi
|
|
1062
1328
|
*/
|
|
1063
|
-
public
|
|
1064
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
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));
|
|
1329
|
+
public authControllerGetProviders(options?: RawAxiosRequestConfig) {
|
|
1330
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
1075
1331
|
}
|
|
1076
1332
|
|
|
1077
1333
|
/**
|
|
1078
1334
|
*
|
|
1335
|
+
* @summary Initiate Google OAuth flow
|
|
1079
1336
|
* @param {*} [options] Override http request option.
|
|
1080
1337
|
* @throws {RequiredError}
|
|
1081
1338
|
* @memberof ApiV1AuthApi
|
|
1082
1339
|
*/
|
|
1083
|
-
public
|
|
1084
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1340
|
+
public authControllerGoogleAuth(options?: RawAxiosRequestConfig) {
|
|
1341
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
|
|
1085
1342
|
}
|
|
1086
1343
|
|
|
1087
1344
|
/**
|
|
1088
1345
|
*
|
|
1346
|
+
* @summary Handle Google OAuth callback
|
|
1089
1347
|
* @param {*} [options] Override http request option.
|
|
1090
1348
|
* @throws {RequiredError}
|
|
1091
1349
|
* @memberof ApiV1AuthApi
|
|
1092
1350
|
*/
|
|
1093
|
-
public
|
|
1094
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1351
|
+
public authControllerGoogleCallback(options?: RawAxiosRequestConfig) {
|
|
1352
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
|
|
1095
1353
|
}
|
|
1096
1354
|
|
|
1097
1355
|
/**
|
|
1098
1356
|
*
|
|
1357
|
+
* @summary Auth service health check
|
|
1099
1358
|
* @param {*} [options] Override http request option.
|
|
1100
1359
|
* @throws {RequiredError}
|
|
1101
1360
|
* @memberof ApiV1AuthApi
|
|
1102
1361
|
*/
|
|
1103
|
-
public
|
|
1104
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1362
|
+
public authControllerHealthCheck(options?: RawAxiosRequestConfig) {
|
|
1363
|
+
return ApiV1AuthApiFp(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
1105
1364
|
}
|
|
1106
1365
|
|
|
1107
1366
|
/**
|
|
1108
1367
|
*
|
|
1368
|
+
* @summary Link OAuth provider to existing account
|
|
1109
1369
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
1110
1370
|
* @param {*} [options] Override http request option.
|
|
1111
1371
|
* @throws {RequiredError}
|
|
@@ -1117,6 +1377,7 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1117
1377
|
|
|
1118
1378
|
/**
|
|
1119
1379
|
*
|
|
1380
|
+
* @summary User login with email and password
|
|
1120
1381
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
1121
1382
|
* @param {*} [options] Override http request option.
|
|
1122
1383
|
* @throws {RequiredError}
|
|
@@ -1128,6 +1389,7 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1128
1389
|
|
|
1129
1390
|
/**
|
|
1130
1391
|
*
|
|
1392
|
+
* @summary Logout user and clear session
|
|
1131
1393
|
* @param {*} [options] Override http request option.
|
|
1132
1394
|
* @throws {RequiredError}
|
|
1133
1395
|
* @memberof ApiV1AuthApi
|
|
@@ -1138,33 +1400,262 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1138
1400
|
|
|
1139
1401
|
/**
|
|
1140
1402
|
*
|
|
1403
|
+
* @summary Refresh access token using refresh token
|
|
1141
1404
|
* @param {*} [options] Override http request option.
|
|
1142
1405
|
* @throws {RequiredError}
|
|
1143
1406
|
* @memberof ApiV1AuthApi
|
|
1144
1407
|
*/
|
|
1145
|
-
public
|
|
1146
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1408
|
+
public authControllerRefresh(options?: RawAxiosRequestConfig) {
|
|
1409
|
+
return ApiV1AuthApiFp(this.configuration).authControllerRefresh(options).then((request) => request(this.axios, this.basePath));
|
|
1147
1410
|
}
|
|
1148
1411
|
|
|
1149
1412
|
/**
|
|
1150
1413
|
*
|
|
1414
|
+
* @summary Register a new user account
|
|
1415
|
+
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
1151
1416
|
* @param {*} [options] Override http request option.
|
|
1152
1417
|
* @throws {RequiredError}
|
|
1153
1418
|
* @memberof ApiV1AuthApi
|
|
1154
1419
|
*/
|
|
1155
|
-
public
|
|
1156
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1420
|
+
public authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig) {
|
|
1421
|
+
return ApiV1AuthApiFp(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* ApiV1SsoApi - axios parameter creator
|
|
1429
|
+
* @export
|
|
1430
|
+
*/
|
|
1431
|
+
export const ApiV1SsoApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1432
|
+
return {
|
|
1433
|
+
/**
|
|
1434
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1435
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1436
|
+
* @param {object} body
|
|
1437
|
+
* @param {*} [options] Override http request option.
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
*/
|
|
1440
|
+
ssoControllerGenerateLocalCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1441
|
+
// verify required parameter 'body' is not null or undefined
|
|
1442
|
+
assertParamExists('ssoControllerGenerateLocalCode', 'body', body)
|
|
1443
|
+
const localVarPath = `/api/v1/sso/generate-code`;
|
|
1444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1445
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1446
|
+
let baseOptions;
|
|
1447
|
+
if (configuration) {
|
|
1448
|
+
baseOptions = configuration.baseOptions;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1452
|
+
const localVarHeaderParameter = {} as any;
|
|
1453
|
+
const localVarQueryParameter = {} as any;
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1458
|
+
|
|
1459
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1460
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1461
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1462
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1463
|
+
|
|
1464
|
+
return {
|
|
1465
|
+
url: toPathString(localVarUrlObj),
|
|
1466
|
+
options: localVarRequestOptions,
|
|
1467
|
+
};
|
|
1468
|
+
},
|
|
1469
|
+
/**
|
|
1470
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1471
|
+
* @summary Validate and consume an authorization code
|
|
1472
|
+
* @param {object} body
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
ssoControllerValidateCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1477
|
+
// verify required parameter 'body' is not null or undefined
|
|
1478
|
+
assertParamExists('ssoControllerValidateCode', 'body', body)
|
|
1479
|
+
const localVarPath = `/api/v1/sso/validate`;
|
|
1480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1482
|
+
let baseOptions;
|
|
1483
|
+
if (configuration) {
|
|
1484
|
+
baseOptions = configuration.baseOptions;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1488
|
+
const localVarHeaderParameter = {} as any;
|
|
1489
|
+
const localVarQueryParameter = {} as any;
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1494
|
+
|
|
1495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1497
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1499
|
+
|
|
1500
|
+
return {
|
|
1501
|
+
url: toPathString(localVarUrlObj),
|
|
1502
|
+
options: localVarRequestOptions,
|
|
1503
|
+
};
|
|
1504
|
+
},
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* ApiV1SsoApi - functional programming interface
|
|
1510
|
+
* @export
|
|
1511
|
+
*/
|
|
1512
|
+
export const ApiV1SsoApiFp = function(configuration?: Configuration) {
|
|
1513
|
+
const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration)
|
|
1514
|
+
return {
|
|
1515
|
+
/**
|
|
1516
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1517
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1518
|
+
* @param {object} body
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
*/
|
|
1522
|
+
async ssoControllerGenerateLocalCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateCodeResponseDto>> {
|
|
1523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1524
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1525
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']?.[localVarOperationServerIndex]?.url;
|
|
1526
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1527
|
+
},
|
|
1528
|
+
/**
|
|
1529
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1530
|
+
* @summary Validate and consume an authorization code
|
|
1531
|
+
* @param {object} body
|
|
1532
|
+
* @param {*} [options] Override http request option.
|
|
1533
|
+
* @throws {RequiredError}
|
|
1534
|
+
*/
|
|
1535
|
+
async ssoControllerValidateCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateCodeResponseDto>> {
|
|
1536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
1537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1538
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1SsoApi.ssoControllerValidateCode']?.[localVarOperationServerIndex]?.url;
|
|
1539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1540
|
+
},
|
|
1157
1541
|
}
|
|
1542
|
+
};
|
|
1158
1543
|
|
|
1544
|
+
/**
|
|
1545
|
+
* ApiV1SsoApi - factory interface
|
|
1546
|
+
* @export
|
|
1547
|
+
*/
|
|
1548
|
+
export const ApiV1SsoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1549
|
+
const localVarFp = ApiV1SsoApiFp(configuration)
|
|
1550
|
+
return {
|
|
1551
|
+
/**
|
|
1552
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1553
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1554
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1555
|
+
* @param {*} [options] Override http request option.
|
|
1556
|
+
* @throws {RequiredError}
|
|
1557
|
+
*/
|
|
1558
|
+
ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateCodeResponseDto> {
|
|
1559
|
+
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1560
|
+
},
|
|
1561
|
+
/**
|
|
1562
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1563
|
+
* @summary Validate and consume an authorization code
|
|
1564
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValidateCodeResponseDto> {
|
|
1569
|
+
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1570
|
+
},
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
/**
|
|
1575
|
+
* ApiV1SsoApi - interface
|
|
1576
|
+
* @export
|
|
1577
|
+
* @interface ApiV1SsoApi
|
|
1578
|
+
*/
|
|
1579
|
+
export interface ApiV1SsoApiInterface {
|
|
1580
|
+
/**
|
|
1581
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1582
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1583
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1584
|
+
* @param {*} [options] Override http request option.
|
|
1585
|
+
* @throws {RequiredError}
|
|
1586
|
+
* @memberof ApiV1SsoApiInterface
|
|
1587
|
+
*/
|
|
1588
|
+
ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateCodeResponseDto>;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1592
|
+
* @summary Validate and consume an authorization code
|
|
1593
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1594
|
+
* @param {*} [options] Override http request option.
|
|
1595
|
+
* @throws {RequiredError}
|
|
1596
|
+
* @memberof ApiV1SsoApiInterface
|
|
1597
|
+
*/
|
|
1598
|
+
ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValidateCodeResponseDto>;
|
|
1599
|
+
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Request parameters for ssoControllerGenerateLocalCode operation in ApiV1SsoApi.
|
|
1604
|
+
* @export
|
|
1605
|
+
* @interface ApiV1SsoApiSsoControllerGenerateLocalCodeRequest
|
|
1606
|
+
*/
|
|
1607
|
+
export interface ApiV1SsoApiSsoControllerGenerateLocalCodeRequest {
|
|
1159
1608
|
/**
|
|
1160
1609
|
*
|
|
1161
|
-
* @
|
|
1610
|
+
* @type {object}
|
|
1611
|
+
* @memberof ApiV1SsoApiSsoControllerGenerateLocalCode
|
|
1612
|
+
*/
|
|
1613
|
+
readonly body: object
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Request parameters for ssoControllerValidateCode operation in ApiV1SsoApi.
|
|
1618
|
+
* @export
|
|
1619
|
+
* @interface ApiV1SsoApiSsoControllerValidateCodeRequest
|
|
1620
|
+
*/
|
|
1621
|
+
export interface ApiV1SsoApiSsoControllerValidateCodeRequest {
|
|
1622
|
+
/**
|
|
1623
|
+
*
|
|
1624
|
+
* @type {object}
|
|
1625
|
+
* @memberof ApiV1SsoApiSsoControllerValidateCode
|
|
1626
|
+
*/
|
|
1627
|
+
readonly body: object
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* ApiV1SsoApi - object-oriented interface
|
|
1632
|
+
* @export
|
|
1633
|
+
* @class ApiV1SsoApi
|
|
1634
|
+
* @extends {BaseAPI}
|
|
1635
|
+
*/
|
|
1636
|
+
export class ApiV1SsoApi extends BaseAPI implements ApiV1SsoApiInterface {
|
|
1637
|
+
/**
|
|
1638
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1639
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1640
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1162
1641
|
* @param {*} [options] Override http request option.
|
|
1163
1642
|
* @throws {RequiredError}
|
|
1164
|
-
* @memberof
|
|
1643
|
+
* @memberof ApiV1SsoApi
|
|
1165
1644
|
*/
|
|
1166
|
-
public
|
|
1167
|
-
return
|
|
1645
|
+
public ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig) {
|
|
1646
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1651
|
+
* @summary Validate and consume an authorization code
|
|
1652
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
* @memberof ApiV1SsoApi
|
|
1656
|
+
*/
|
|
1657
|
+
public ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig) {
|
|
1658
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1168
1659
|
}
|
|
1169
1660
|
}
|
|
1170
1661
|
|
|
@@ -1178,6 +1669,7 @@ export const ApiV1UserApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1178
1669
|
return {
|
|
1179
1670
|
/**
|
|
1180
1671
|
*
|
|
1672
|
+
* @summary Get current user
|
|
1181
1673
|
* @param {*} [options] Override http request option.
|
|
1182
1674
|
* @throws {RequiredError}
|
|
1183
1675
|
*/
|
|
@@ -1217,10 +1709,11 @@ export const ApiV1UserApiFp = function(configuration?: Configuration) {
|
|
|
1217
1709
|
return {
|
|
1218
1710
|
/**
|
|
1219
1711
|
*
|
|
1712
|
+
* @summary Get current user
|
|
1220
1713
|
* @param {*} [options] Override http request option.
|
|
1221
1714
|
* @throws {RequiredError}
|
|
1222
1715
|
*/
|
|
1223
|
-
async userControllerInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1716
|
+
async userControllerInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>> {
|
|
1224
1717
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerInfo(options);
|
|
1225
1718
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1226
1719
|
const localVarOperationServerBasePath = operationServerMap['ApiV1UserApi.userControllerInfo']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1238,10 +1731,11 @@ export const ApiV1UserApiFactory = function (configuration?: Configuration, base
|
|
|
1238
1731
|
return {
|
|
1239
1732
|
/**
|
|
1240
1733
|
*
|
|
1734
|
+
* @summary Get current user
|
|
1241
1735
|
* @param {*} [options] Override http request option.
|
|
1242
1736
|
* @throws {RequiredError}
|
|
1243
1737
|
*/
|
|
1244
|
-
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1738
|
+
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserDto> {
|
|
1245
1739
|
return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
|
|
1246
1740
|
},
|
|
1247
1741
|
};
|
|
@@ -1255,11 +1749,12 @@ export const ApiV1UserApiFactory = function (configuration?: Configuration, base
|
|
|
1255
1749
|
export interface ApiV1UserApiInterface {
|
|
1256
1750
|
/**
|
|
1257
1751
|
*
|
|
1752
|
+
* @summary Get current user
|
|
1258
1753
|
* @param {*} [options] Override http request option.
|
|
1259
1754
|
* @throws {RequiredError}
|
|
1260
1755
|
* @memberof ApiV1UserApiInterface
|
|
1261
1756
|
*/
|
|
1262
|
-
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1757
|
+
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserDto>;
|
|
1263
1758
|
|
|
1264
1759
|
}
|
|
1265
1760
|
|
|
@@ -1272,12 +1767,221 @@ export interface ApiV1UserApiInterface {
|
|
|
1272
1767
|
export class ApiV1UserApi extends BaseAPI implements ApiV1UserApiInterface {
|
|
1273
1768
|
/**
|
|
1274
1769
|
*
|
|
1770
|
+
* @summary Get current user
|
|
1771
|
+
* @param {*} [options] Override http request option.
|
|
1772
|
+
* @throws {RequiredError}
|
|
1773
|
+
* @memberof ApiV1UserApi
|
|
1774
|
+
*/
|
|
1775
|
+
public userControllerInfo(options?: RawAxiosRequestConfig) {
|
|
1776
|
+
return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* ApiV1UserSettingsApi - axios parameter creator
|
|
1784
|
+
* @export
|
|
1785
|
+
*/
|
|
1786
|
+
export const ApiV1UserSettingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1787
|
+
return {
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
userSettingsControllerGetSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1794
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
1795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1796
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1797
|
+
let baseOptions;
|
|
1798
|
+
if (configuration) {
|
|
1799
|
+
baseOptions = configuration.baseOptions;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1803
|
+
const localVarHeaderParameter = {} as any;
|
|
1804
|
+
const localVarQueryParameter = {} as any;
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1809
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1810
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1811
|
+
|
|
1812
|
+
return {
|
|
1813
|
+
url: toPathString(localVarUrlObj),
|
|
1814
|
+
options: localVarRequestOptions,
|
|
1815
|
+
};
|
|
1816
|
+
},
|
|
1817
|
+
/**
|
|
1818
|
+
*
|
|
1819
|
+
* @summary Update settings for user
|
|
1820
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
*/
|
|
1824
|
+
userSettingsControllerUpdateSettings: async (userSettingsUpdateDto: UserSettingsUpdateDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1825
|
+
// verify required parameter 'userSettingsUpdateDto' is not null or undefined
|
|
1826
|
+
assertParamExists('userSettingsControllerUpdateSettings', 'userSettingsUpdateDto', userSettingsUpdateDto)
|
|
1827
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
1828
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1829
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1830
|
+
let baseOptions;
|
|
1831
|
+
if (configuration) {
|
|
1832
|
+
baseOptions = configuration.baseOptions;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1836
|
+
const localVarHeaderParameter = {} as any;
|
|
1837
|
+
const localVarQueryParameter = {} as any;
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1842
|
+
|
|
1843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1846
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userSettingsUpdateDto, localVarRequestOptions, configuration)
|
|
1847
|
+
|
|
1848
|
+
return {
|
|
1849
|
+
url: toPathString(localVarUrlObj),
|
|
1850
|
+
options: localVarRequestOptions,
|
|
1851
|
+
};
|
|
1852
|
+
},
|
|
1853
|
+
}
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* ApiV1UserSettingsApi - functional programming interface
|
|
1858
|
+
* @export
|
|
1859
|
+
*/
|
|
1860
|
+
export const ApiV1UserSettingsApiFp = function(configuration?: Configuration) {
|
|
1861
|
+
const localVarAxiosParamCreator = ApiV1UserSettingsApiAxiosParamCreator(configuration)
|
|
1862
|
+
return {
|
|
1863
|
+
/**
|
|
1864
|
+
*
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
*/
|
|
1868
|
+
async userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userSettingsControllerGetSettings(options);
|
|
1870
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1871
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerGetSettings']?.[localVarOperationServerIndex]?.url;
|
|
1872
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1873
|
+
},
|
|
1874
|
+
/**
|
|
1875
|
+
*
|
|
1876
|
+
* @summary Update settings for user
|
|
1877
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
*/
|
|
1881
|
+
async userSettingsControllerUpdateSettings(userSettingsUpdateDto: UserSettingsUpdateDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserSettingsDto>> {
|
|
1882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userSettingsControllerUpdateSettings(userSettingsUpdateDto, options);
|
|
1883
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1884
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerUpdateSettings']?.[localVarOperationServerIndex]?.url;
|
|
1885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1886
|
+
},
|
|
1887
|
+
}
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* ApiV1UserSettingsApi - factory interface
|
|
1892
|
+
* @export
|
|
1893
|
+
*/
|
|
1894
|
+
export const ApiV1UserSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1895
|
+
const localVarFp = ApiV1UserSettingsApiFp(configuration)
|
|
1896
|
+
return {
|
|
1897
|
+
/**
|
|
1898
|
+
*
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
*/
|
|
1902
|
+
userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1903
|
+
return localVarFp.userSettingsControllerGetSettings(options).then((request) => request(axios, basePath));
|
|
1904
|
+
},
|
|
1905
|
+
/**
|
|
1906
|
+
*
|
|
1907
|
+
* @summary Update settings for user
|
|
1908
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1909
|
+
* @param {*} [options] Override http request option.
|
|
1910
|
+
* @throws {RequiredError}
|
|
1911
|
+
*/
|
|
1912
|
+
userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsDto> {
|
|
1913
|
+
return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
|
|
1914
|
+
},
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* ApiV1UserSettingsApi - interface
|
|
1920
|
+
* @export
|
|
1921
|
+
* @interface ApiV1UserSettingsApi
|
|
1922
|
+
*/
|
|
1923
|
+
export interface ApiV1UserSettingsApiInterface {
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
* @memberof ApiV1UserSettingsApiInterface
|
|
1929
|
+
*/
|
|
1930
|
+
userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
*
|
|
1934
|
+
* @summary Update settings for user
|
|
1935
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1936
|
+
* @param {*} [options] Override http request option.
|
|
1937
|
+
* @throws {RequiredError}
|
|
1938
|
+
* @memberof ApiV1UserSettingsApiInterface
|
|
1939
|
+
*/
|
|
1940
|
+
userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsDto>;
|
|
1941
|
+
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Request parameters for userSettingsControllerUpdateSettings operation in ApiV1UserSettingsApi.
|
|
1946
|
+
* @export
|
|
1947
|
+
* @interface ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest
|
|
1948
|
+
*/
|
|
1949
|
+
export interface ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest {
|
|
1950
|
+
/**
|
|
1951
|
+
*
|
|
1952
|
+
* @type {UserSettingsUpdateDto}
|
|
1953
|
+
* @memberof ApiV1UserSettingsApiUserSettingsControllerUpdateSettings
|
|
1954
|
+
*/
|
|
1955
|
+
readonly userSettingsUpdateDto: UserSettingsUpdateDto
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* ApiV1UserSettingsApi - object-oriented interface
|
|
1960
|
+
* @export
|
|
1961
|
+
* @class ApiV1UserSettingsApi
|
|
1962
|
+
* @extends {BaseAPI}
|
|
1963
|
+
*/
|
|
1964
|
+
export class ApiV1UserSettingsApi extends BaseAPI implements ApiV1UserSettingsApiInterface {
|
|
1965
|
+
/**
|
|
1966
|
+
*
|
|
1967
|
+
* @param {*} [options] Override http request option.
|
|
1968
|
+
* @throws {RequiredError}
|
|
1969
|
+
* @memberof ApiV1UserSettingsApi
|
|
1970
|
+
*/
|
|
1971
|
+
public userSettingsControllerGetSettings(options?: RawAxiosRequestConfig) {
|
|
1972
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
*
|
|
1977
|
+
* @summary Update settings for user
|
|
1978
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1275
1979
|
* @param {*} [options] Override http request option.
|
|
1276
1980
|
* @throws {RequiredError}
|
|
1277
|
-
* @memberof
|
|
1981
|
+
* @memberof ApiV1UserSettingsApi
|
|
1278
1982
|
*/
|
|
1279
|
-
public
|
|
1280
|
-
return
|
|
1983
|
+
public userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
1984
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1281
1985
|
}
|
|
1282
1986
|
}
|
|
1283
1987
|
|
|
@@ -1386,6 +2090,40 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration?: Config
|
|
|
1386
2090
|
|
|
1387
2091
|
|
|
1388
2092
|
|
|
2093
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2095
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2096
|
+
|
|
2097
|
+
return {
|
|
2098
|
+
url: toPathString(localVarUrlObj),
|
|
2099
|
+
options: localVarRequestOptions,
|
|
2100
|
+
};
|
|
2101
|
+
},
|
|
2102
|
+
/**
|
|
2103
|
+
*
|
|
2104
|
+
* @summary Create a worker secret
|
|
2105
|
+
* @param {string} id The ID of the worker
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
workerControllerGenerateWorkerSecret: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2110
|
+
// verify required parameter 'id' is not null or undefined
|
|
2111
|
+
assertParamExists('workerControllerGenerateWorkerSecret', 'id', id)
|
|
2112
|
+
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
2113
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2116
|
+
let baseOptions;
|
|
2117
|
+
if (configuration) {
|
|
2118
|
+
baseOptions = configuration.baseOptions;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2122
|
+
const localVarHeaderParameter = {} as any;
|
|
2123
|
+
const localVarQueryParameter = {} as any;
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
|
|
1389
2127
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1390
2128
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1391
2129
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1578,6 +2316,19 @@ export const ApiV1WorkersApiFp = function(configuration?: Configuration) {
|
|
|
1578
2316
|
const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerDeleteWorker']?.[localVarOperationServerIndex]?.url;
|
|
1579
2317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1580
2318
|
},
|
|
2319
|
+
/**
|
|
2320
|
+
*
|
|
2321
|
+
* @summary Create a worker secret
|
|
2322
|
+
* @param {string} id The ID of the worker
|
|
2323
|
+
* @param {*} [options] Override http request option.
|
|
2324
|
+
* @throws {RequiredError}
|
|
2325
|
+
*/
|
|
2326
|
+
async workerControllerGenerateWorkerSecret(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerClientSecretDto>> {
|
|
2327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
2328
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2329
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']?.[localVarOperationServerIndex]?.url;
|
|
2330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2331
|
+
},
|
|
1581
2332
|
/**
|
|
1582
2333
|
*
|
|
1583
2334
|
* @summary Get a worker by ID
|
|
@@ -1663,6 +2414,16 @@ export const ApiV1WorkersApiFactory = function (configuration?: Configuration, b
|
|
|
1663
2414
|
workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1664
2415
|
return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1665
2416
|
},
|
|
2417
|
+
/**
|
|
2418
|
+
*
|
|
2419
|
+
* @summary Create a worker secret
|
|
2420
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
*/
|
|
2424
|
+
workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerClientSecretDto> {
|
|
2425
|
+
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2426
|
+
},
|
|
1666
2427
|
/**
|
|
1667
2428
|
*
|
|
1668
2429
|
* @summary Get a worker by ID
|
|
@@ -1732,6 +2493,16 @@ export interface ApiV1WorkersApiInterface {
|
|
|
1732
2493
|
*/
|
|
1733
2494
|
workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1734
2495
|
|
|
2496
|
+
/**
|
|
2497
|
+
*
|
|
2498
|
+
* @summary Create a worker secret
|
|
2499
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2500
|
+
* @param {*} [options] Override http request option.
|
|
2501
|
+
* @throws {RequiredError}
|
|
2502
|
+
* @memberof ApiV1WorkersApiInterface
|
|
2503
|
+
*/
|
|
2504
|
+
workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerClientSecretDto>;
|
|
2505
|
+
|
|
1735
2506
|
/**
|
|
1736
2507
|
*
|
|
1737
2508
|
* @summary Get a worker by ID
|
|
@@ -1806,6 +2577,20 @@ export interface ApiV1WorkersApiWorkerControllerDeleteWorkerRequest {
|
|
|
1806
2577
|
readonly id: string
|
|
1807
2578
|
}
|
|
1808
2579
|
|
|
2580
|
+
/**
|
|
2581
|
+
* Request parameters for workerControllerGenerateWorkerSecret operation in ApiV1WorkersApi.
|
|
2582
|
+
* @export
|
|
2583
|
+
* @interface ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest
|
|
2584
|
+
*/
|
|
2585
|
+
export interface ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest {
|
|
2586
|
+
/**
|
|
2587
|
+
* The ID of the worker
|
|
2588
|
+
* @type {string}
|
|
2589
|
+
* @memberof ApiV1WorkersApiWorkerControllerGenerateWorkerSecret
|
|
2590
|
+
*/
|
|
2591
|
+
readonly id: string
|
|
2592
|
+
}
|
|
2593
|
+
|
|
1809
2594
|
/**
|
|
1810
2595
|
* Request parameters for workerControllerGetWorkerById operation in ApiV1WorkersApi.
|
|
1811
2596
|
* @export
|
|
@@ -1933,6 +2718,18 @@ export class ApiV1WorkersApi extends BaseAPI implements ApiV1WorkersApiInterface
|
|
|
1933
2718
|
return ApiV1WorkersApiFp(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1934
2719
|
}
|
|
1935
2720
|
|
|
2721
|
+
/**
|
|
2722
|
+
*
|
|
2723
|
+
* @summary Create a worker secret
|
|
2724
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2725
|
+
* @param {*} [options] Override http request option.
|
|
2726
|
+
* @throws {RequiredError}
|
|
2727
|
+
* @memberof ApiV1WorkersApi
|
|
2728
|
+
*/
|
|
2729
|
+
public workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig) {
|
|
2730
|
+
return ApiV1WorkersApiFp(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2731
|
+
}
|
|
2732
|
+
|
|
1936
2733
|
/**
|
|
1937
2734
|
*
|
|
1938
2735
|
* @summary Get a worker by ID
|
|
@@ -1972,230 +2769,3 @@ export class ApiV1WorkersApi extends BaseAPI implements ApiV1WorkersApiInterface
|
|
|
1972
2769
|
|
|
1973
2770
|
|
|
1974
2771
|
|
|
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
|
-
|