@loopstack/hub-client 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +19 -0
- package/api.ts +1197 -343
- package/dist/api.d.ts +930 -273
- package/dist/api.js +664 -260
- package/dist/esm/api.d.ts +930 -273
- package/dist/esm/api.js +654 -254
- 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,230 @@ 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<WorkerItemDto>>}
|
|
252
|
+
* @memberof UserDto
|
|
253
|
+
*/
|
|
254
|
+
'workers': Array<Array<WorkerItemDto>>;
|
|
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 ID
|
|
276
|
+
* @type {string}
|
|
277
|
+
* @memberof UserSettingsDto
|
|
278
|
+
*/
|
|
279
|
+
'defaultWorkerId'?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Last selected worker ID
|
|
282
|
+
* @type {string}
|
|
283
|
+
* @memberof UserSettingsDto
|
|
284
|
+
*/
|
|
285
|
+
'lastSelectedWorkerId'?: string;
|
|
286
|
+
/**
|
|
287
|
+
* UI preferences
|
|
288
|
+
* @type {UIPreferencesDto}
|
|
289
|
+
* @memberof UserSettingsDto
|
|
290
|
+
*/
|
|
291
|
+
'uiPreferences'?: UIPreferencesDto;
|
|
292
|
+
/**
|
|
293
|
+
* Creation timestamp
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof UserSettingsDto
|
|
296
|
+
*/
|
|
297
|
+
'createdAt': string;
|
|
298
|
+
/**
|
|
299
|
+
* Last update timestamp
|
|
300
|
+
* @type {string}
|
|
301
|
+
* @memberof UserSettingsDto
|
|
302
|
+
*/
|
|
303
|
+
'updatedAt': string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @export
|
|
308
|
+
* @interface UserSettingsUpdateDto
|
|
309
|
+
*/
|
|
310
|
+
export interface UserSettingsUpdateDto {
|
|
311
|
+
/**
|
|
312
|
+
* Default worker for the user
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof UserSettingsUpdateDto
|
|
315
|
+
*/
|
|
316
|
+
'defaultWorkerId'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Last selected worker by the user
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof UserSettingsUpdateDto
|
|
321
|
+
*/
|
|
322
|
+
'lastSelectedWorkerId'?: string;
|
|
323
|
+
/**
|
|
324
|
+
* UI preferences
|
|
325
|
+
* @type {UIPreferencesDto}
|
|
326
|
+
* @memberof UserSettingsUpdateDto
|
|
327
|
+
*/
|
|
328
|
+
'uiPreferences'?: UIPreferencesDto;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @export
|
|
333
|
+
* @interface ValidateCodeResponseDto
|
|
334
|
+
*/
|
|
335
|
+
export interface ValidateCodeResponseDto {
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {boolean}
|
|
339
|
+
* @memberof ValidateCodeResponseDto
|
|
340
|
+
*/
|
|
341
|
+
'success': boolean;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {object}
|
|
345
|
+
* @memberof ValidateCodeResponseDto
|
|
346
|
+
*/
|
|
347
|
+
'data': object;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof ValidateCodeResponseDto
|
|
352
|
+
*/
|
|
353
|
+
'message': string;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof ValidateCodeResponseDto
|
|
358
|
+
*/
|
|
359
|
+
'timestamp': string;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof ValidateCodeResponseDto
|
|
364
|
+
*/
|
|
365
|
+
'correlationId'?: string;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @export
|
|
370
|
+
* @interface WorkerClientSecretDto
|
|
371
|
+
*/
|
|
372
|
+
export interface WorkerClientSecretDto {
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @type {string}
|
|
376
|
+
* @memberof WorkerClientSecretDto
|
|
377
|
+
*/
|
|
378
|
+
'clientSecret': string;
|
|
379
|
+
}
|
|
57
380
|
/**
|
|
58
381
|
*
|
|
59
382
|
* @export
|
|
@@ -148,6 +471,12 @@ export interface WorkerCreateDto {
|
|
|
148
471
|
* @memberof WorkerCreateDto
|
|
149
472
|
*/
|
|
150
473
|
'url': string;
|
|
474
|
+
/**
|
|
475
|
+
* URL of the worker websocket server
|
|
476
|
+
* @type {string}
|
|
477
|
+
* @memberof WorkerCreateDto
|
|
478
|
+
*/
|
|
479
|
+
'websocketUrl': string;
|
|
151
480
|
/**
|
|
152
481
|
* Name of the worker
|
|
153
482
|
* @type {string}
|
|
@@ -174,23 +503,23 @@ export interface WorkerDto {
|
|
|
174
503
|
*/
|
|
175
504
|
'url': string;
|
|
176
505
|
/**
|
|
177
|
-
*
|
|
506
|
+
* URL of the worker websocket server
|
|
178
507
|
* @type {string}
|
|
179
508
|
* @memberof WorkerDto
|
|
180
509
|
*/
|
|
181
|
-
'
|
|
510
|
+
'websocketUrl': string;
|
|
182
511
|
/**
|
|
183
|
-
*
|
|
512
|
+
* Name of the worker
|
|
184
513
|
* @type {string}
|
|
185
514
|
* @memberof WorkerDto
|
|
186
515
|
*/
|
|
187
|
-
'
|
|
516
|
+
'name': string;
|
|
188
517
|
/**
|
|
189
|
-
*
|
|
518
|
+
* Is client secret generated
|
|
190
519
|
* @type {boolean}
|
|
191
520
|
* @memberof WorkerDto
|
|
192
521
|
*/
|
|
193
|
-
'
|
|
522
|
+
'hasClientSecret': boolean;
|
|
194
523
|
/**
|
|
195
524
|
* Timestamp when the worker was created
|
|
196
525
|
* @type {string}
|
|
@@ -241,6 +570,12 @@ export interface WorkerItemDto {
|
|
|
241
570
|
* @memberof WorkerItemDto
|
|
242
571
|
*/
|
|
243
572
|
'url': string;
|
|
573
|
+
/**
|
|
574
|
+
* URL of the worker websocket server
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof WorkerItemDto
|
|
577
|
+
*/
|
|
578
|
+
'websocketUrl': string;
|
|
244
579
|
/**
|
|
245
580
|
* Name of the worker
|
|
246
581
|
* @type {string}
|
|
@@ -248,11 +583,11 @@ export interface WorkerItemDto {
|
|
|
248
583
|
*/
|
|
249
584
|
'name': string;
|
|
250
585
|
/**
|
|
251
|
-
*
|
|
586
|
+
* Is client secret generated
|
|
252
587
|
* @type {boolean}
|
|
253
588
|
* @memberof WorkerItemDto
|
|
254
589
|
*/
|
|
255
|
-
'
|
|
590
|
+
'hasClientSecret': boolean;
|
|
256
591
|
/**
|
|
257
592
|
* Timestamp when the worker was created
|
|
258
593
|
* @type {string}
|
|
@@ -289,9 +624,9 @@ export interface WorkerSortByDto {
|
|
|
289
624
|
export const WorkerSortByDtoFieldEnum = {
|
|
290
625
|
Id: 'id',
|
|
291
626
|
Url: 'url',
|
|
627
|
+
WebsocketUrl: 'websocketUrl',
|
|
292
628
|
Name: 'name',
|
|
293
|
-
|
|
294
|
-
IsSetupComplete: 'isSetupComplete',
|
|
629
|
+
ClientSecret: 'clientSecret',
|
|
295
630
|
CreatedAt: 'createdAt',
|
|
296
631
|
UpdatedAt: 'updatedAt',
|
|
297
632
|
UserId: 'userId'
|
|
@@ -311,6 +646,12 @@ export type WorkerSortByDtoOrderEnum = typeof WorkerSortByDtoOrderEnum[keyof typ
|
|
|
311
646
|
* @interface WorkerUpdateDto
|
|
312
647
|
*/
|
|
313
648
|
export interface WorkerUpdateDto {
|
|
649
|
+
/**
|
|
650
|
+
* Name of the worker
|
|
651
|
+
* @type {string}
|
|
652
|
+
* @memberof WorkerUpdateDto
|
|
653
|
+
*/
|
|
654
|
+
'name'?: string;
|
|
314
655
|
/**
|
|
315
656
|
* URL of the worker
|
|
316
657
|
* @type {string}
|
|
@@ -318,11 +659,11 @@ export interface WorkerUpdateDto {
|
|
|
318
659
|
*/
|
|
319
660
|
'url'?: string;
|
|
320
661
|
/**
|
|
321
|
-
*
|
|
662
|
+
* URL of the worker websocket server
|
|
322
663
|
* @type {string}
|
|
323
664
|
* @memberof WorkerUpdateDto
|
|
324
665
|
*/
|
|
325
|
-
'
|
|
666
|
+
'websocketUrl'?: string;
|
|
326
667
|
}
|
|
327
668
|
|
|
328
669
|
/**
|
|
@@ -333,11 +674,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
333
674
|
return {
|
|
334
675
|
/**
|
|
335
676
|
*
|
|
677
|
+
* @summary Initiate Discord OAuth flow
|
|
336
678
|
* @param {*} [options] Override http request option.
|
|
337
679
|
* @throws {RequiredError}
|
|
338
680
|
*/
|
|
339
|
-
|
|
340
|
-
const localVarPath = `/api/v1/auth/
|
|
681
|
+
authControllerDiscordAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
682
|
+
const localVarPath = `/api/v1/auth/oauth/discord`;
|
|
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 Handle Discord OAuth callback
|
|
365
708
|
* @param {*} [options] Override http request option.
|
|
366
709
|
* @throws {RequiredError}
|
|
367
710
|
*/
|
|
368
|
-
|
|
369
|
-
const localVarPath = `/api/v1/auth/
|
|
711
|
+
authControllerDiscordCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
712
|
+
const localVarPath = `/api/v1/auth/oauth/discord/callback`;
|
|
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,6 +734,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
391
734
|
},
|
|
392
735
|
/**
|
|
393
736
|
*
|
|
737
|
+
* @summary Get linked OAuth providers for current user
|
|
394
738
|
* @param {*} [options] Override http request option.
|
|
395
739
|
* @throws {RequiredError}
|
|
396
740
|
*/
|
|
@@ -420,11 +764,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
420
764
|
},
|
|
421
765
|
/**
|
|
422
766
|
*
|
|
767
|
+
* @summary Initiate GitHub OAuth flow
|
|
423
768
|
* @param {*} [options] Override http request option.
|
|
424
769
|
* @throws {RequiredError}
|
|
425
770
|
*/
|
|
426
|
-
|
|
427
|
-
const localVarPath = `/api/v1/auth/oauth/
|
|
771
|
+
authControllerGithubAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
772
|
+
const localVarPath = `/api/v1/auth/oauth/github`;
|
|
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,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
449
794
|
},
|
|
450
795
|
/**
|
|
451
796
|
*
|
|
797
|
+
* @summary Handle GitHub OAuth callback
|
|
452
798
|
* @param {*} [options] Override http request option.
|
|
453
799
|
* @throws {RequiredError}
|
|
454
800
|
*/
|
|
455
|
-
|
|
456
|
-
const localVarPath = `/api/v1/auth/oauth/
|
|
801
|
+
authControllerGithubCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
802
|
+
const localVarPath = `/api/v1/auth/oauth/github/callback`;
|
|
457
803
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
804
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
459
805
|
let baseOptions;
|
|
@@ -478,14 +824,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
478
824
|
},
|
|
479
825
|
/**
|
|
480
826
|
*
|
|
481
|
-
* @
|
|
827
|
+
* @summary Initiate Google OAuth flow
|
|
482
828
|
* @param {*} [options] Override http request option.
|
|
483
829
|
* @throws {RequiredError}
|
|
484
830
|
*/
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
assertParamExists('authControllerLinkProvider', 'body', body)
|
|
488
|
-
const localVarPath = `/api/v1/auth/link-provider`;
|
|
831
|
+
authControllerGoogleAuth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
832
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
489
833
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
490
834
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
491
835
|
let baseOptions;
|
|
@@ -493,18 +837,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
493
837
|
baseOptions = configuration.baseOptions;
|
|
494
838
|
}
|
|
495
839
|
|
|
496
|
-
const localVarRequestOptions = { method: '
|
|
840
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
497
841
|
const localVarHeaderParameter = {} as any;
|
|
498
842
|
const localVarQueryParameter = {} as any;
|
|
499
843
|
|
|
500
844
|
|
|
501
845
|
|
|
502
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
503
|
-
|
|
504
846
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
505
847
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
506
848
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
507
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
508
849
|
|
|
509
850
|
return {
|
|
510
851
|
url: toPathString(localVarUrlObj),
|
|
@@ -513,14 +854,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
513
854
|
},
|
|
514
855
|
/**
|
|
515
856
|
*
|
|
516
|
-
* @
|
|
857
|
+
* @summary Handle Google OAuth callback
|
|
517
858
|
* @param {*} [options] Override http request option.
|
|
518
859
|
* @throws {RequiredError}
|
|
519
860
|
*/
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
assertParamExists('authControllerLogin', 'body', body)
|
|
523
|
-
const localVarPath = `/api/v1/auth/login`;
|
|
861
|
+
authControllerGoogleCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
862
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
524
863
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
525
864
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
526
865
|
let baseOptions;
|
|
@@ -528,18 +867,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
528
867
|
baseOptions = configuration.baseOptions;
|
|
529
868
|
}
|
|
530
869
|
|
|
531
|
-
const localVarRequestOptions = { method: '
|
|
870
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
532
871
|
const localVarHeaderParameter = {} as any;
|
|
533
872
|
const localVarQueryParameter = {} as any;
|
|
534
873
|
|
|
535
874
|
|
|
536
875
|
|
|
537
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
538
|
-
|
|
539
876
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
540
877
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
878
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
542
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
543
879
|
|
|
544
880
|
return {
|
|
545
881
|
url: toPathString(localVarUrlObj),
|
|
@@ -548,11 +884,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
548
884
|
},
|
|
549
885
|
/**
|
|
550
886
|
*
|
|
887
|
+
* @summary Auth service health check
|
|
551
888
|
* @param {*} [options] Override http request option.
|
|
552
889
|
* @throws {RequiredError}
|
|
553
890
|
*/
|
|
554
|
-
|
|
555
|
-
const localVarPath = `/api/v1/auth/
|
|
891
|
+
authControllerHealthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
892
|
+
const localVarPath = `/api/v1/auth/health`;
|
|
556
893
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
894
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
558
895
|
let baseOptions;
|
|
@@ -560,7 +897,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
560
897
|
baseOptions = configuration.baseOptions;
|
|
561
898
|
}
|
|
562
899
|
|
|
563
|
-
const localVarRequestOptions = { method: '
|
|
900
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
564
901
|
const localVarHeaderParameter = {} as any;
|
|
565
902
|
const localVarQueryParameter = {} as any;
|
|
566
903
|
|
|
@@ -577,11 +914,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
577
914
|
},
|
|
578
915
|
/**
|
|
579
916
|
*
|
|
917
|
+
* @summary Link OAuth provider to existing account
|
|
918
|
+
* @param {object} body
|
|
580
919
|
* @param {*} [options] Override http request option.
|
|
581
920
|
* @throws {RequiredError}
|
|
582
921
|
*/
|
|
583
|
-
|
|
584
|
-
|
|
922
|
+
authControllerLinkProvider: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
923
|
+
// verify required parameter 'body' is not null or undefined
|
|
924
|
+
assertParamExists('authControllerLinkProvider', 'body', body)
|
|
925
|
+
const localVarPath = `/api/v1/auth/link-provider`;
|
|
585
926
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
586
927
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
587
928
|
let baseOptions;
|
|
@@ -589,15 +930,54 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
589
930
|
baseOptions = configuration.baseOptions;
|
|
590
931
|
}
|
|
591
932
|
|
|
592
|
-
const localVarRequestOptions = { method: '
|
|
933
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
934
|
+
const localVarHeaderParameter = {} as any;
|
|
935
|
+
const localVarQueryParameter = {} as any;
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
940
|
+
|
|
941
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
943
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
944
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
945
|
+
|
|
946
|
+
return {
|
|
947
|
+
url: toPathString(localVarUrlObj),
|
|
948
|
+
options: localVarRequestOptions,
|
|
949
|
+
};
|
|
950
|
+
},
|
|
951
|
+
/**
|
|
952
|
+
*
|
|
953
|
+
* @summary User login with email and password
|
|
954
|
+
* @param {object} body
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
authControllerLogin: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
959
|
+
// verify required parameter 'body' is not null or undefined
|
|
960
|
+
assertParamExists('authControllerLogin', 'body', body)
|
|
961
|
+
const localVarPath = `/api/v1/auth/login`;
|
|
962
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
963
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
964
|
+
let baseOptions;
|
|
965
|
+
if (configuration) {
|
|
966
|
+
baseOptions = configuration.baseOptions;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
593
970
|
const localVarHeaderParameter = {} as any;
|
|
594
971
|
const localVarQueryParameter = {} as any;
|
|
595
972
|
|
|
596
973
|
|
|
597
974
|
|
|
975
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
976
|
+
|
|
598
977
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
599
978
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
600
979
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
980
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
601
981
|
|
|
602
982
|
return {
|
|
603
983
|
url: toPathString(localVarUrlObj),
|
|
@@ -606,6 +986,37 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
606
986
|
},
|
|
607
987
|
/**
|
|
608
988
|
*
|
|
989
|
+
* @summary Logout user and clear session
|
|
990
|
+
* @param {*} [options] Override http request option.
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
authControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
994
|
+
const localVarPath = `/api/v1/auth/logout`;
|
|
995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
997
|
+
let baseOptions;
|
|
998
|
+
if (configuration) {
|
|
999
|
+
baseOptions = configuration.baseOptions;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1003
|
+
const localVarHeaderParameter = {} as any;
|
|
1004
|
+
const localVarQueryParameter = {} as any;
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1009
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1010
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1011
|
+
|
|
1012
|
+
return {
|
|
1013
|
+
url: toPathString(localVarUrlObj),
|
|
1014
|
+
options: localVarRequestOptions,
|
|
1015
|
+
};
|
|
1016
|
+
},
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @summary Refresh access token using refresh token
|
|
609
1020
|
* @param {*} [options] Override http request option.
|
|
610
1021
|
* @throws {RequiredError}
|
|
611
1022
|
*/
|
|
@@ -635,6 +1046,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration?: Configura
|
|
|
635
1046
|
},
|
|
636
1047
|
/**
|
|
637
1048
|
*
|
|
1049
|
+
* @summary Register a new user account
|
|
638
1050
|
* @param {object} body
|
|
639
1051
|
* @param {*} [options] Override http request option.
|
|
640
1052
|
* @throws {RequiredError}
|
|
@@ -680,32 +1092,35 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
680
1092
|
return {
|
|
681
1093
|
/**
|
|
682
1094
|
*
|
|
1095
|
+
* @summary Initiate Discord OAuth flow
|
|
683
1096
|
* @param {*} [options] Override http request option.
|
|
684
1097
|
* @throws {RequiredError}
|
|
685
1098
|
*/
|
|
686
|
-
async
|
|
687
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1099
|
+
async authControllerDiscordAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerDiscordAuth(options);
|
|
688
1101
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
689
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1102
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerDiscordAuth']?.[localVarOperationServerIndex]?.url;
|
|
690
1103
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
691
1104
|
},
|
|
692
1105
|
/**
|
|
693
1106
|
*
|
|
1107
|
+
* @summary Handle Discord OAuth callback
|
|
694
1108
|
* @param {*} [options] Override http request option.
|
|
695
1109
|
* @throws {RequiredError}
|
|
696
1110
|
*/
|
|
697
|
-
async
|
|
698
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1111
|
+
async authControllerDiscordCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerDiscordCallback(options);
|
|
699
1113
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
700
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1114
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerDiscordCallback']?.[localVarOperationServerIndex]?.url;
|
|
701
1115
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
702
1116
|
},
|
|
703
1117
|
/**
|
|
704
1118
|
*
|
|
1119
|
+
* @summary Get linked OAuth providers for current user
|
|
705
1120
|
* @param {*} [options] Override http request option.
|
|
706
1121
|
* @throws {RequiredError}
|
|
707
1122
|
*/
|
|
708
|
-
async authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1123
|
+
async authControllerGetProviders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
709
1124
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGetProviders(options);
|
|
710
1125
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
711
1126
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGetProviders']?.[localVarOperationServerIndex]?.url;
|
|
@@ -713,6 +1128,31 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
713
1128
|
},
|
|
714
1129
|
/**
|
|
715
1130
|
*
|
|
1131
|
+
* @summary Initiate GitHub OAuth flow
|
|
1132
|
+
* @param {*} [options] Override http request option.
|
|
1133
|
+
* @throws {RequiredError}
|
|
1134
|
+
*/
|
|
1135
|
+
async authControllerGithubAuth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGithubAuth(options);
|
|
1137
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1138
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGithubAuth']?.[localVarOperationServerIndex]?.url;
|
|
1139
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1140
|
+
},
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
* @summary Handle GitHub OAuth callback
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
*/
|
|
1147
|
+
async authControllerGithubCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGithubCallback(options);
|
|
1149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1150
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGithubCallback']?.[localVarOperationServerIndex]?.url;
|
|
1151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1152
|
+
},
|
|
1153
|
+
/**
|
|
1154
|
+
*
|
|
1155
|
+
* @summary Initiate Google OAuth flow
|
|
716
1156
|
* @param {*} [options] Override http request option.
|
|
717
1157
|
* @throws {RequiredError}
|
|
718
1158
|
*/
|
|
@@ -724,10 +1164,11 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
724
1164
|
},
|
|
725
1165
|
/**
|
|
726
1166
|
*
|
|
1167
|
+
* @summary Handle Google OAuth callback
|
|
727
1168
|
* @param {*} [options] Override http request option.
|
|
728
1169
|
* @throws {RequiredError}
|
|
729
1170
|
*/
|
|
730
|
-
async authControllerGoogleCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1171
|
+
async authControllerGoogleCallback(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
731
1172
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerGoogleCallback(options);
|
|
732
1173
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
1174
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']?.[localVarOperationServerIndex]?.url;
|
|
@@ -735,56 +1176,61 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
735
1176
|
},
|
|
736
1177
|
/**
|
|
737
1178
|
*
|
|
738
|
-
* @
|
|
1179
|
+
* @summary Auth service health check
|
|
739
1180
|
* @param {*} [options] Override http request option.
|
|
740
1181
|
* @throws {RequiredError}
|
|
741
1182
|
*/
|
|
742
|
-
async
|
|
743
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1183
|
+
async authControllerHealthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1184
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerHealthCheck(options);
|
|
744
1185
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
745
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1186
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerHealthCheck']?.[localVarOperationServerIndex]?.url;
|
|
746
1187
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
747
1188
|
},
|
|
748
1189
|
/**
|
|
749
1190
|
*
|
|
1191
|
+
* @summary Link OAuth provider to existing account
|
|
750
1192
|
* @param {object} body
|
|
751
1193
|
* @param {*} [options] Override http request option.
|
|
752
1194
|
* @throws {RequiredError}
|
|
753
1195
|
*/
|
|
754
|
-
async
|
|
755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1196
|
+
async authControllerLinkProvider(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLinkProvider(body, options);
|
|
756
1198
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1199
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLinkProvider']?.[localVarOperationServerIndex]?.url;
|
|
758
1200
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
759
1201
|
},
|
|
760
1202
|
/**
|
|
761
1203
|
*
|
|
1204
|
+
* @summary User login with email and password
|
|
1205
|
+
* @param {object} body
|
|
762
1206
|
* @param {*} [options] Override http request option.
|
|
763
1207
|
* @throws {RequiredError}
|
|
764
1208
|
*/
|
|
765
|
-
async
|
|
766
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1209
|
+
async authControllerLogin(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(body, options);
|
|
767
1211
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
768
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1212
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
|
|
769
1213
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
770
1214
|
},
|
|
771
1215
|
/**
|
|
772
1216
|
*
|
|
1217
|
+
* @summary Logout user and clear session
|
|
773
1218
|
* @param {*} [options] Override http request option.
|
|
774
1219
|
* @throws {RequiredError}
|
|
775
1220
|
*/
|
|
776
|
-
async
|
|
777
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1221
|
+
async authControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(options);
|
|
778
1223
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
779
|
-
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.
|
|
1224
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
|
|
780
1225
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
781
1226
|
},
|
|
782
1227
|
/**
|
|
783
1228
|
*
|
|
1229
|
+
* @summary Refresh access token using refresh token
|
|
784
1230
|
* @param {*} [options] Override http request option.
|
|
785
1231
|
* @throws {RequiredError}
|
|
786
1232
|
*/
|
|
787
|
-
async authControllerRefresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1233
|
+
async authControllerRefresh(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
788
1234
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRefresh(options);
|
|
789
1235
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
790
1236
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRefresh']?.[localVarOperationServerIndex]?.url;
|
|
@@ -792,11 +1238,12 @@ export const ApiV1AuthApiFp = function(configuration?: Configuration) {
|
|
|
792
1238
|
},
|
|
793
1239
|
/**
|
|
794
1240
|
*
|
|
1241
|
+
* @summary Register a new user account
|
|
795
1242
|
* @param {object} body
|
|
796
1243
|
* @param {*} [options] Override http request option.
|
|
797
1244
|
* @throws {RequiredError}
|
|
798
1245
|
*/
|
|
799
|
-
async authControllerRegister(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1246
|
+
async authControllerRegister(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
800
1247
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerRegister(body, options);
|
|
801
1248
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
802
1249
|
const localVarOperationServerBasePath = operationServerMap['ApiV1AuthApi.authControllerRegister']?.[localVarOperationServerIndex]?.url;
|
|
@@ -814,30 +1261,52 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
814
1261
|
return {
|
|
815
1262
|
/**
|
|
816
1263
|
*
|
|
1264
|
+
* @summary Initiate Discord OAuth flow
|
|
817
1265
|
* @param {*} [options] Override http request option.
|
|
818
1266
|
* @throws {RequiredError}
|
|
819
1267
|
*/
|
|
820
|
-
|
|
821
|
-
return localVarFp.
|
|
1268
|
+
authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1269
|
+
return localVarFp.authControllerDiscordAuth(options).then((request) => request(axios, basePath));
|
|
822
1270
|
},
|
|
823
1271
|
/**
|
|
824
1272
|
*
|
|
1273
|
+
* @summary Handle Discord OAuth callback
|
|
825
1274
|
* @param {*} [options] Override http request option.
|
|
826
1275
|
* @throws {RequiredError}
|
|
827
1276
|
*/
|
|
828
|
-
|
|
829
|
-
return localVarFp.
|
|
1277
|
+
authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1278
|
+
return localVarFp.authControllerDiscordCallback(options).then((request) => request(axios, basePath));
|
|
830
1279
|
},
|
|
831
1280
|
/**
|
|
832
1281
|
*
|
|
1282
|
+
* @summary Get linked OAuth providers for current user
|
|
833
1283
|
* @param {*} [options] Override http request option.
|
|
834
1284
|
* @throws {RequiredError}
|
|
835
1285
|
*/
|
|
836
|
-
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1286
|
+
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
837
1287
|
return localVarFp.authControllerGetProviders(options).then((request) => request(axios, basePath));
|
|
838
1288
|
},
|
|
839
1289
|
/**
|
|
840
1290
|
*
|
|
1291
|
+
* @summary Initiate GitHub OAuth flow
|
|
1292
|
+
* @param {*} [options] Override http request option.
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
*/
|
|
1295
|
+
authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1296
|
+
return localVarFp.authControllerGithubAuth(options).then((request) => request(axios, basePath));
|
|
1297
|
+
},
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @summary Handle GitHub OAuth callback
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
*/
|
|
1304
|
+
authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1305
|
+
return localVarFp.authControllerGithubCallback(options).then((request) => request(axios, basePath));
|
|
1306
|
+
},
|
|
1307
|
+
/**
|
|
1308
|
+
*
|
|
1309
|
+
* @summary Initiate Google OAuth flow
|
|
841
1310
|
* @param {*} [options] Override http request option.
|
|
842
1311
|
* @throws {RequiredError}
|
|
843
1312
|
*/
|
|
@@ -846,61 +1315,68 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
846
1315
|
},
|
|
847
1316
|
/**
|
|
848
1317
|
*
|
|
1318
|
+
* @summary Handle Google OAuth callback
|
|
849
1319
|
* @param {*} [options] Override http request option.
|
|
850
1320
|
* @throws {RequiredError}
|
|
851
1321
|
*/
|
|
852
|
-
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1322
|
+
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
853
1323
|
return localVarFp.authControllerGoogleCallback(options).then((request) => request(axios, basePath));
|
|
854
1324
|
},
|
|
855
1325
|
/**
|
|
856
1326
|
*
|
|
857
|
-
* @
|
|
1327
|
+
* @summary Auth service health check
|
|
858
1328
|
* @param {*} [options] Override http request option.
|
|
859
1329
|
* @throws {RequiredError}
|
|
860
1330
|
*/
|
|
861
|
-
|
|
862
|
-
return localVarFp.
|
|
1331
|
+
authControllerHealthCheck(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1332
|
+
return localVarFp.authControllerHealthCheck(options).then((request) => request(axios, basePath));
|
|
863
1333
|
},
|
|
864
1334
|
/**
|
|
865
1335
|
*
|
|
866
|
-
* @
|
|
1336
|
+
* @summary Link OAuth provider to existing account
|
|
1337
|
+
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
867
1338
|
* @param {*} [options] Override http request option.
|
|
868
1339
|
* @throws {RequiredError}
|
|
869
1340
|
*/
|
|
870
|
-
|
|
871
|
-
return localVarFp.
|
|
1341
|
+
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1342
|
+
return localVarFp.authControllerLinkProvider(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
872
1343
|
},
|
|
873
1344
|
/**
|
|
874
1345
|
*
|
|
1346
|
+
* @summary User login with email and password
|
|
1347
|
+
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
875
1348
|
* @param {*} [options] Override http request option.
|
|
876
1349
|
* @throws {RequiredError}
|
|
877
1350
|
*/
|
|
878
|
-
|
|
879
|
-
return localVarFp.
|
|
1351
|
+
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1352
|
+
return localVarFp.authControllerLogin(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
880
1353
|
},
|
|
881
1354
|
/**
|
|
882
1355
|
*
|
|
1356
|
+
* @summary Logout user and clear session
|
|
883
1357
|
* @param {*} [options] Override http request option.
|
|
884
1358
|
* @throws {RequiredError}
|
|
885
1359
|
*/
|
|
886
|
-
|
|
887
|
-
return localVarFp.
|
|
1360
|
+
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
1361
|
+
return localVarFp.authControllerLogout(options).then((request) => request(axios, basePath));
|
|
888
1362
|
},
|
|
889
1363
|
/**
|
|
890
1364
|
*
|
|
1365
|
+
* @summary Refresh access token using refresh token
|
|
891
1366
|
* @param {*} [options] Override http request option.
|
|
892
1367
|
* @throws {RequiredError}
|
|
893
1368
|
*/
|
|
894
|
-
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1369
|
+
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
895
1370
|
return localVarFp.authControllerRefresh(options).then((request) => request(axios, basePath));
|
|
896
1371
|
},
|
|
897
1372
|
/**
|
|
898
1373
|
*
|
|
1374
|
+
* @summary Register a new user account
|
|
899
1375
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
900
1376
|
* @param {*} [options] Override http request option.
|
|
901
1377
|
* @throws {RequiredError}
|
|
902
1378
|
*/
|
|
903
|
-
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1379
|
+
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
|
|
904
1380
|
return localVarFp.authControllerRegister(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
905
1381
|
},
|
|
906
1382
|
};
|
|
@@ -914,30 +1390,52 @@ export const ApiV1AuthApiFactory = function (configuration?: Configuration, base
|
|
|
914
1390
|
export interface ApiV1AuthApiInterface {
|
|
915
1391
|
/**
|
|
916
1392
|
*
|
|
1393
|
+
* @summary Initiate Discord OAuth flow
|
|
917
1394
|
* @param {*} [options] Override http request option.
|
|
918
1395
|
* @throws {RequiredError}
|
|
919
1396
|
* @memberof ApiV1AuthApiInterface
|
|
920
1397
|
*/
|
|
921
|
-
|
|
1398
|
+
authControllerDiscordAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
922
1399
|
|
|
923
1400
|
/**
|
|
924
1401
|
*
|
|
1402
|
+
* @summary Handle Discord OAuth callback
|
|
925
1403
|
* @param {*} [options] Override http request option.
|
|
926
1404
|
* @throws {RequiredError}
|
|
927
1405
|
* @memberof ApiV1AuthApiInterface
|
|
928
1406
|
*/
|
|
929
|
-
|
|
1407
|
+
authControllerDiscordCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
930
1408
|
|
|
931
1409
|
/**
|
|
932
1410
|
*
|
|
1411
|
+
* @summary Get linked OAuth providers for current user
|
|
933
1412
|
* @param {*} [options] Override http request option.
|
|
934
1413
|
* @throws {RequiredError}
|
|
935
1414
|
* @memberof ApiV1AuthApiInterface
|
|
936
1415
|
*/
|
|
937
|
-
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1416
|
+
authControllerGetProviders(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
938
1417
|
|
|
939
1418
|
/**
|
|
940
1419
|
*
|
|
1420
|
+
* @summary Initiate GitHub OAuth flow
|
|
1421
|
+
* @param {*} [options] Override http request option.
|
|
1422
|
+
* @throws {RequiredError}
|
|
1423
|
+
* @memberof ApiV1AuthApiInterface
|
|
1424
|
+
*/
|
|
1425
|
+
authControllerGithubAuth(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Handle GitHub OAuth callback
|
|
1430
|
+
* @param {*} [options] Override http request option.
|
|
1431
|
+
* @throws {RequiredError}
|
|
1432
|
+
* @memberof ApiV1AuthApiInterface
|
|
1433
|
+
*/
|
|
1434
|
+
authControllerGithubCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
*
|
|
1438
|
+
* @summary Initiate Google OAuth flow
|
|
941
1439
|
* @param {*} [options] Override http request option.
|
|
942
1440
|
* @throws {RequiredError}
|
|
943
1441
|
* @memberof ApiV1AuthApiInterface
|
|
@@ -946,62 +1444,69 @@ export interface ApiV1AuthApiInterface {
|
|
|
946
1444
|
|
|
947
1445
|
/**
|
|
948
1446
|
*
|
|
1447
|
+
* @summary Handle Google OAuth callback
|
|
949
1448
|
* @param {*} [options] Override http request option.
|
|
950
1449
|
* @throws {RequiredError}
|
|
951
1450
|
* @memberof ApiV1AuthApiInterface
|
|
952
1451
|
*/
|
|
953
|
-
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1452
|
+
authControllerGoogleCallback(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
954
1453
|
|
|
955
1454
|
/**
|
|
956
1455
|
*
|
|
957
|
-
* @
|
|
1456
|
+
* @summary Auth service health check
|
|
958
1457
|
* @param {*} [options] Override http request option.
|
|
959
1458
|
* @throws {RequiredError}
|
|
960
1459
|
* @memberof ApiV1AuthApiInterface
|
|
961
1460
|
*/
|
|
962
|
-
|
|
1461
|
+
authControllerHealthCheck(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
963
1462
|
|
|
964
1463
|
/**
|
|
965
1464
|
*
|
|
966
|
-
* @
|
|
1465
|
+
* @summary Link OAuth provider to existing account
|
|
1466
|
+
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
967
1467
|
* @param {*} [options] Override http request option.
|
|
968
1468
|
* @throws {RequiredError}
|
|
969
1469
|
* @memberof ApiV1AuthApiInterface
|
|
970
1470
|
*/
|
|
971
|
-
|
|
1471
|
+
authControllerLinkProvider(requestParameters: ApiV1AuthApiAuthControllerLinkProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
972
1472
|
|
|
973
1473
|
/**
|
|
974
1474
|
*
|
|
1475
|
+
* @summary User login with email and password
|
|
1476
|
+
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
975
1477
|
* @param {*} [options] Override http request option.
|
|
976
1478
|
* @throws {RequiredError}
|
|
977
1479
|
* @memberof ApiV1AuthApiInterface
|
|
978
1480
|
*/
|
|
979
|
-
|
|
1481
|
+
authControllerLogin(requestParameters: ApiV1AuthApiAuthControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
980
1482
|
|
|
981
1483
|
/**
|
|
982
1484
|
*
|
|
1485
|
+
* @summary Logout user and clear session
|
|
983
1486
|
* @param {*} [options] Override http request option.
|
|
984
1487
|
* @throws {RequiredError}
|
|
985
1488
|
* @memberof ApiV1AuthApiInterface
|
|
986
1489
|
*/
|
|
987
|
-
|
|
1490
|
+
authControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
988
1491
|
|
|
989
1492
|
/**
|
|
990
1493
|
*
|
|
1494
|
+
* @summary Refresh access token using refresh token
|
|
991
1495
|
* @param {*} [options] Override http request option.
|
|
992
1496
|
* @throws {RequiredError}
|
|
993
1497
|
* @memberof ApiV1AuthApiInterface
|
|
994
1498
|
*/
|
|
995
|
-
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1499
|
+
authControllerRefresh(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
996
1500
|
|
|
997
1501
|
/**
|
|
998
1502
|
*
|
|
1503
|
+
* @summary Register a new user account
|
|
999
1504
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
1000
1505
|
* @param {*} [options] Override http request option.
|
|
1001
1506
|
* @throws {RequiredError}
|
|
1002
1507
|
* @memberof ApiV1AuthApiInterface
|
|
1003
1508
|
*/
|
|
1004
|
-
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1509
|
+
authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1005
1510
|
|
|
1006
1511
|
}
|
|
1007
1512
|
|
|
@@ -1056,26 +1561,29 @@ export interface ApiV1AuthApiAuthControllerRegisterRequest {
|
|
|
1056
1561
|
export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
1057
1562
|
/**
|
|
1058
1563
|
*
|
|
1564
|
+
* @summary Initiate Discord OAuth flow
|
|
1059
1565
|
* @param {*} [options] Override http request option.
|
|
1060
1566
|
* @throws {RequiredError}
|
|
1061
1567
|
* @memberof ApiV1AuthApi
|
|
1062
1568
|
*/
|
|
1063
|
-
public
|
|
1064
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1569
|
+
public authControllerDiscordAuth(options?: RawAxiosRequestConfig) {
|
|
1570
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
|
|
1065
1571
|
}
|
|
1066
1572
|
|
|
1067
1573
|
/**
|
|
1068
1574
|
*
|
|
1575
|
+
* @summary Handle Discord OAuth callback
|
|
1069
1576
|
* @param {*} [options] Override http request option.
|
|
1070
1577
|
* @throws {RequiredError}
|
|
1071
1578
|
* @memberof ApiV1AuthApi
|
|
1072
1579
|
*/
|
|
1073
|
-
public
|
|
1074
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1580
|
+
public authControllerDiscordCallback(options?: RawAxiosRequestConfig) {
|
|
1581
|
+
return ApiV1AuthApiFp(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
|
|
1075
1582
|
}
|
|
1076
1583
|
|
|
1077
1584
|
/**
|
|
1078
1585
|
*
|
|
1586
|
+
* @summary Get linked OAuth providers for current user
|
|
1079
1587
|
* @param {*} [options] Override http request option.
|
|
1080
1588
|
* @throws {RequiredError}
|
|
1081
1589
|
* @memberof ApiV1AuthApi
|
|
@@ -1086,6 +1594,29 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1086
1594
|
|
|
1087
1595
|
/**
|
|
1088
1596
|
*
|
|
1597
|
+
* @summary Initiate GitHub OAuth flow
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
* @memberof ApiV1AuthApi
|
|
1601
|
+
*/
|
|
1602
|
+
public authControllerGithubAuth(options?: RawAxiosRequestConfig) {
|
|
1603
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @summary Handle GitHub OAuth callback
|
|
1609
|
+
* @param {*} [options] Override http request option.
|
|
1610
|
+
* @throws {RequiredError}
|
|
1611
|
+
* @memberof ApiV1AuthApi
|
|
1612
|
+
*/
|
|
1613
|
+
public authControllerGithubCallback(options?: RawAxiosRequestConfig) {
|
|
1614
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @summary Initiate Google OAuth flow
|
|
1089
1620
|
* @param {*} [options] Override http request option.
|
|
1090
1621
|
* @throws {RequiredError}
|
|
1091
1622
|
* @memberof ApiV1AuthApi
|
|
@@ -1096,6 +1627,7 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1096
1627
|
|
|
1097
1628
|
/**
|
|
1098
1629
|
*
|
|
1630
|
+
* @summary Handle Google OAuth callback
|
|
1099
1631
|
* @param {*} [options] Override http request option.
|
|
1100
1632
|
* @throws {RequiredError}
|
|
1101
1633
|
* @memberof ApiV1AuthApi
|
|
@@ -1106,6 +1638,18 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1106
1638
|
|
|
1107
1639
|
/**
|
|
1108
1640
|
*
|
|
1641
|
+
* @summary Auth service health check
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
* @memberof ApiV1AuthApi
|
|
1645
|
+
*/
|
|
1646
|
+
public authControllerHealthCheck(options?: RawAxiosRequestConfig) {
|
|
1647
|
+
return ApiV1AuthApiFp(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
*
|
|
1652
|
+
* @summary Link OAuth provider to existing account
|
|
1109
1653
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
1110
1654
|
* @param {*} [options] Override http request option.
|
|
1111
1655
|
* @throws {RequiredError}
|
|
@@ -1117,6 +1661,7 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1117
1661
|
|
|
1118
1662
|
/**
|
|
1119
1663
|
*
|
|
1664
|
+
* @summary User login with email and password
|
|
1120
1665
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
1121
1666
|
* @param {*} [options] Override http request option.
|
|
1122
1667
|
* @throws {RequiredError}
|
|
@@ -1128,6 +1673,7 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1128
1673
|
|
|
1129
1674
|
/**
|
|
1130
1675
|
*
|
|
1676
|
+
* @summary Logout user and clear session
|
|
1131
1677
|
* @param {*} [options] Override http request option.
|
|
1132
1678
|
* @throws {RequiredError}
|
|
1133
1679
|
* @memberof ApiV1AuthApi
|
|
@@ -1138,33 +1684,262 @@ export class ApiV1AuthApi extends BaseAPI implements ApiV1AuthApiInterface {
|
|
|
1138
1684
|
|
|
1139
1685
|
/**
|
|
1140
1686
|
*
|
|
1687
|
+
* @summary Refresh access token using refresh token
|
|
1141
1688
|
* @param {*} [options] Override http request option.
|
|
1142
1689
|
* @throws {RequiredError}
|
|
1143
1690
|
* @memberof ApiV1AuthApi
|
|
1144
1691
|
*/
|
|
1145
|
-
public
|
|
1146
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1692
|
+
public authControllerRefresh(options?: RawAxiosRequestConfig) {
|
|
1693
|
+
return ApiV1AuthApiFp(this.configuration).authControllerRefresh(options).then((request) => request(this.axios, this.basePath));
|
|
1147
1694
|
}
|
|
1148
1695
|
|
|
1149
1696
|
/**
|
|
1150
1697
|
*
|
|
1698
|
+
* @summary Register a new user account
|
|
1699
|
+
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
1151
1700
|
* @param {*} [options] Override http request option.
|
|
1152
1701
|
* @throws {RequiredError}
|
|
1153
1702
|
* @memberof ApiV1AuthApi
|
|
1154
1703
|
*/
|
|
1155
|
-
public
|
|
1156
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
1704
|
+
public authControllerRegister(requestParameters: ApiV1AuthApiAuthControllerRegisterRequest, options?: RawAxiosRequestConfig) {
|
|
1705
|
+
return ApiV1AuthApiFp(this.configuration).authControllerRegister(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
/**
|
|
1712
|
+
* ApiV1SsoApi - axios parameter creator
|
|
1713
|
+
* @export
|
|
1714
|
+
*/
|
|
1715
|
+
export const ApiV1SsoApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1716
|
+
return {
|
|
1717
|
+
/**
|
|
1718
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1719
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1720
|
+
* @param {object} body
|
|
1721
|
+
* @param {*} [options] Override http request option.
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
*/
|
|
1724
|
+
ssoControllerGenerateLocalCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1725
|
+
// verify required parameter 'body' is not null or undefined
|
|
1726
|
+
assertParamExists('ssoControllerGenerateLocalCode', 'body', body)
|
|
1727
|
+
const localVarPath = `/api/v1/sso/generate-code`;
|
|
1728
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1729
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1730
|
+
let baseOptions;
|
|
1731
|
+
if (configuration) {
|
|
1732
|
+
baseOptions = configuration.baseOptions;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1736
|
+
const localVarHeaderParameter = {} as any;
|
|
1737
|
+
const localVarQueryParameter = {} as any;
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1742
|
+
|
|
1743
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1744
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1745
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1746
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1747
|
+
|
|
1748
|
+
return {
|
|
1749
|
+
url: toPathString(localVarUrlObj),
|
|
1750
|
+
options: localVarRequestOptions,
|
|
1751
|
+
};
|
|
1752
|
+
},
|
|
1753
|
+
/**
|
|
1754
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1755
|
+
* @summary Validate and consume an authorization code
|
|
1756
|
+
* @param {object} body
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
*/
|
|
1760
|
+
ssoControllerValidateCode: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1761
|
+
// verify required parameter 'body' is not null or undefined
|
|
1762
|
+
assertParamExists('ssoControllerValidateCode', 'body', body)
|
|
1763
|
+
const localVarPath = `/api/v1/sso/validate`;
|
|
1764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1765
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1766
|
+
let baseOptions;
|
|
1767
|
+
if (configuration) {
|
|
1768
|
+
baseOptions = configuration.baseOptions;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1772
|
+
const localVarHeaderParameter = {} as any;
|
|
1773
|
+
const localVarQueryParameter = {} as any;
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1778
|
+
|
|
1779
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1780
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1781
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1782
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1783
|
+
|
|
1784
|
+
return {
|
|
1785
|
+
url: toPathString(localVarUrlObj),
|
|
1786
|
+
options: localVarRequestOptions,
|
|
1787
|
+
};
|
|
1788
|
+
},
|
|
1157
1789
|
}
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* ApiV1SsoApi - functional programming interface
|
|
1794
|
+
* @export
|
|
1795
|
+
*/
|
|
1796
|
+
export const ApiV1SsoApiFp = function(configuration?: Configuration) {
|
|
1797
|
+
const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration)
|
|
1798
|
+
return {
|
|
1799
|
+
/**
|
|
1800
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1801
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1802
|
+
* @param {object} body
|
|
1803
|
+
* @param {*} [options] Override http request option.
|
|
1804
|
+
* @throws {RequiredError}
|
|
1805
|
+
*/
|
|
1806
|
+
async ssoControllerGenerateLocalCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateCodeResponseDto>> {
|
|
1807
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1808
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1809
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']?.[localVarOperationServerIndex]?.url;
|
|
1810
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1811
|
+
},
|
|
1812
|
+
/**
|
|
1813
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1814
|
+
* @summary Validate and consume an authorization code
|
|
1815
|
+
* @param {object} body
|
|
1816
|
+
* @param {*} [options] Override http request option.
|
|
1817
|
+
* @throws {RequiredError}
|
|
1818
|
+
*/
|
|
1819
|
+
async ssoControllerValidateCode(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateCodeResponseDto>> {
|
|
1820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
1821
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1822
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1SsoApi.ssoControllerValidateCode']?.[localVarOperationServerIndex]?.url;
|
|
1823
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1824
|
+
},
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* ApiV1SsoApi - factory interface
|
|
1830
|
+
* @export
|
|
1831
|
+
*/
|
|
1832
|
+
export const ApiV1SsoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1833
|
+
const localVarFp = ApiV1SsoApiFp(configuration)
|
|
1834
|
+
return {
|
|
1835
|
+
/**
|
|
1836
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1837
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1838
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateCodeResponseDto> {
|
|
1843
|
+
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1847
|
+
* @summary Validate and consume an authorization code
|
|
1848
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1849
|
+
* @param {*} [options] Override http request option.
|
|
1850
|
+
* @throws {RequiredError}
|
|
1851
|
+
*/
|
|
1852
|
+
ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValidateCodeResponseDto> {
|
|
1853
|
+
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1854
|
+
},
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* ApiV1SsoApi - interface
|
|
1860
|
+
* @export
|
|
1861
|
+
* @interface ApiV1SsoApi
|
|
1862
|
+
*/
|
|
1863
|
+
export interface ApiV1SsoApiInterface {
|
|
1864
|
+
/**
|
|
1865
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1866
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1867
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1868
|
+
* @param {*} [options] Override http request option.
|
|
1869
|
+
* @throws {RequiredError}
|
|
1870
|
+
* @memberof ApiV1SsoApiInterface
|
|
1871
|
+
*/
|
|
1872
|
+
ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GenerateCodeResponseDto>;
|
|
1158
1873
|
|
|
1874
|
+
/**
|
|
1875
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1876
|
+
* @summary Validate and consume an authorization code
|
|
1877
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
* @memberof ApiV1SsoApiInterface
|
|
1881
|
+
*/
|
|
1882
|
+
ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValidateCodeResponseDto>;
|
|
1883
|
+
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* Request parameters for ssoControllerGenerateLocalCode operation in ApiV1SsoApi.
|
|
1888
|
+
* @export
|
|
1889
|
+
* @interface ApiV1SsoApiSsoControllerGenerateLocalCodeRequest
|
|
1890
|
+
*/
|
|
1891
|
+
export interface ApiV1SsoApiSsoControllerGenerateLocalCodeRequest {
|
|
1159
1892
|
/**
|
|
1160
1893
|
*
|
|
1161
|
-
* @
|
|
1894
|
+
* @type {object}
|
|
1895
|
+
* @memberof ApiV1SsoApiSsoControllerGenerateLocalCode
|
|
1896
|
+
*/
|
|
1897
|
+
readonly body: object
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* Request parameters for ssoControllerValidateCode operation in ApiV1SsoApi.
|
|
1902
|
+
* @export
|
|
1903
|
+
* @interface ApiV1SsoApiSsoControllerValidateCodeRequest
|
|
1904
|
+
*/
|
|
1905
|
+
export interface ApiV1SsoApiSsoControllerValidateCodeRequest {
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {object}
|
|
1909
|
+
* @memberof ApiV1SsoApiSsoControllerValidateCode
|
|
1910
|
+
*/
|
|
1911
|
+
readonly body: object
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* ApiV1SsoApi - object-oriented interface
|
|
1916
|
+
* @export
|
|
1917
|
+
* @class ApiV1SsoApi
|
|
1918
|
+
* @extends {BaseAPI}
|
|
1919
|
+
*/
|
|
1920
|
+
export class ApiV1SsoApi extends BaseAPI implements ApiV1SsoApiInterface {
|
|
1921
|
+
/**
|
|
1922
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
1923
|
+
* @summary Generate an authorization code for SSO authentication
|
|
1924
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1162
1925
|
* @param {*} [options] Override http request option.
|
|
1163
1926
|
* @throws {RequiredError}
|
|
1164
|
-
* @memberof
|
|
1927
|
+
* @memberof ApiV1SsoApi
|
|
1165
1928
|
*/
|
|
1166
|
-
public
|
|
1167
|
-
return
|
|
1929
|
+
public ssoControllerGenerateLocalCode(requestParameters: ApiV1SsoApiSsoControllerGenerateLocalCodeRequest, options?: RawAxiosRequestConfig) {
|
|
1930
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1935
|
+
* @summary Validate and consume an authorization code
|
|
1936
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
* @memberof ApiV1SsoApi
|
|
1940
|
+
*/
|
|
1941
|
+
public ssoControllerValidateCode(requestParameters: ApiV1SsoApiSsoControllerValidateCodeRequest, options?: RawAxiosRequestConfig) {
|
|
1942
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1168
1943
|
}
|
|
1169
1944
|
}
|
|
1170
1945
|
|
|
@@ -1178,6 +1953,7 @@ export const ApiV1UserApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1178
1953
|
return {
|
|
1179
1954
|
/**
|
|
1180
1955
|
*
|
|
1956
|
+
* @summary Get current user
|
|
1181
1957
|
* @param {*} [options] Override http request option.
|
|
1182
1958
|
* @throws {RequiredError}
|
|
1183
1959
|
*/
|
|
@@ -1217,10 +1993,11 @@ export const ApiV1UserApiFp = function(configuration?: Configuration) {
|
|
|
1217
1993
|
return {
|
|
1218
1994
|
/**
|
|
1219
1995
|
*
|
|
1996
|
+
* @summary Get current user
|
|
1220
1997
|
* @param {*} [options] Override http request option.
|
|
1221
1998
|
* @throws {RequiredError}
|
|
1222
1999
|
*/
|
|
1223
|
-
async userControllerInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2000
|
+
async userControllerInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserDto>> {
|
|
1224
2001
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerInfo(options);
|
|
1225
2002
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1226
2003
|
const localVarOperationServerBasePath = operationServerMap['ApiV1UserApi.userControllerInfo']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1238,10 +2015,11 @@ export const ApiV1UserApiFactory = function (configuration?: Configuration, base
|
|
|
1238
2015
|
return {
|
|
1239
2016
|
/**
|
|
1240
2017
|
*
|
|
2018
|
+
* @summary Get current user
|
|
1241
2019
|
* @param {*} [options] Override http request option.
|
|
1242
2020
|
* @throws {RequiredError}
|
|
1243
2021
|
*/
|
|
1244
|
-
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2022
|
+
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserDto> {
|
|
1245
2023
|
return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
|
|
1246
2024
|
},
|
|
1247
2025
|
};
|
|
@@ -1255,11 +2033,12 @@ export const ApiV1UserApiFactory = function (configuration?: Configuration, base
|
|
|
1255
2033
|
export interface ApiV1UserApiInterface {
|
|
1256
2034
|
/**
|
|
1257
2035
|
*
|
|
2036
|
+
* @summary Get current user
|
|
1258
2037
|
* @param {*} [options] Override http request option.
|
|
1259
2038
|
* @throws {RequiredError}
|
|
1260
2039
|
* @memberof ApiV1UserApiInterface
|
|
1261
2040
|
*/
|
|
1262
|
-
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2041
|
+
userControllerInfo(options?: RawAxiosRequestConfig): AxiosPromise<UserDto>;
|
|
1263
2042
|
|
|
1264
2043
|
}
|
|
1265
2044
|
|
|
@@ -1272,12 +2051,221 @@ export interface ApiV1UserApiInterface {
|
|
|
1272
2051
|
export class ApiV1UserApi extends BaseAPI implements ApiV1UserApiInterface {
|
|
1273
2052
|
/**
|
|
1274
2053
|
*
|
|
2054
|
+
* @summary Get current user
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
* @memberof ApiV1UserApi
|
|
2058
|
+
*/
|
|
2059
|
+
public userControllerInfo(options?: RawAxiosRequestConfig) {
|
|
2060
|
+
return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* ApiV1UserSettingsApi - axios parameter creator
|
|
2068
|
+
* @export
|
|
2069
|
+
*/
|
|
2070
|
+
export const ApiV1UserSettingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2071
|
+
return {
|
|
2072
|
+
/**
|
|
2073
|
+
*
|
|
2074
|
+
* @param {*} [options] Override http request option.
|
|
2075
|
+
* @throws {RequiredError}
|
|
2076
|
+
*/
|
|
2077
|
+
userSettingsControllerGetSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2078
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
2079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2080
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2081
|
+
let baseOptions;
|
|
2082
|
+
if (configuration) {
|
|
2083
|
+
baseOptions = configuration.baseOptions;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2087
|
+
const localVarHeaderParameter = {} as any;
|
|
2088
|
+
const localVarQueryParameter = {} as any;
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2094
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2095
|
+
|
|
2096
|
+
return {
|
|
2097
|
+
url: toPathString(localVarUrlObj),
|
|
2098
|
+
options: localVarRequestOptions,
|
|
2099
|
+
};
|
|
2100
|
+
},
|
|
2101
|
+
/**
|
|
2102
|
+
*
|
|
2103
|
+
* @summary Update settings for user
|
|
2104
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
2105
|
+
* @param {*} [options] Override http request option.
|
|
2106
|
+
* @throws {RequiredError}
|
|
2107
|
+
*/
|
|
2108
|
+
userSettingsControllerUpdateSettings: async (userSettingsUpdateDto: UserSettingsUpdateDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2109
|
+
// verify required parameter 'userSettingsUpdateDto' is not null or undefined
|
|
2110
|
+
assertParamExists('userSettingsControllerUpdateSettings', 'userSettingsUpdateDto', userSettingsUpdateDto)
|
|
2111
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
2112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2114
|
+
let baseOptions;
|
|
2115
|
+
if (configuration) {
|
|
2116
|
+
baseOptions = configuration.baseOptions;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
2120
|
+
const localVarHeaderParameter = {} as any;
|
|
2121
|
+
const localVarQueryParameter = {} as any;
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2126
|
+
|
|
2127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2129
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userSettingsUpdateDto, localVarRequestOptions, configuration)
|
|
2131
|
+
|
|
2132
|
+
return {
|
|
2133
|
+
url: toPathString(localVarUrlObj),
|
|
2134
|
+
options: localVarRequestOptions,
|
|
2135
|
+
};
|
|
2136
|
+
},
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* ApiV1UserSettingsApi - functional programming interface
|
|
2142
|
+
* @export
|
|
2143
|
+
*/
|
|
2144
|
+
export const ApiV1UserSettingsApiFp = function(configuration?: Configuration) {
|
|
2145
|
+
const localVarAxiosParamCreator = ApiV1UserSettingsApiAxiosParamCreator(configuration)
|
|
2146
|
+
return {
|
|
2147
|
+
/**
|
|
2148
|
+
*
|
|
2149
|
+
* @param {*} [options] Override http request option.
|
|
2150
|
+
* @throws {RequiredError}
|
|
2151
|
+
*/
|
|
2152
|
+
async userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userSettingsControllerGetSettings(options);
|
|
2154
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2155
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerGetSettings']?.[localVarOperationServerIndex]?.url;
|
|
2156
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2157
|
+
},
|
|
2158
|
+
/**
|
|
2159
|
+
*
|
|
2160
|
+
* @summary Update settings for user
|
|
2161
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
2162
|
+
* @param {*} [options] Override http request option.
|
|
2163
|
+
* @throws {RequiredError}
|
|
2164
|
+
*/
|
|
2165
|
+
async userSettingsControllerUpdateSettings(userSettingsUpdateDto: UserSettingsUpdateDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserSettingsDto>> {
|
|
2166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userSettingsControllerUpdateSettings(userSettingsUpdateDto, options);
|
|
2167
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2168
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerUpdateSettings']?.[localVarOperationServerIndex]?.url;
|
|
2169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2170
|
+
},
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* ApiV1UserSettingsApi - factory interface
|
|
2176
|
+
* @export
|
|
2177
|
+
*/
|
|
2178
|
+
export const ApiV1UserSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2179
|
+
const localVarFp = ApiV1UserSettingsApiFp(configuration)
|
|
2180
|
+
return {
|
|
2181
|
+
/**
|
|
2182
|
+
*
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
*/
|
|
2186
|
+
userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2187
|
+
return localVarFp.userSettingsControllerGetSettings(options).then((request) => request(axios, basePath));
|
|
2188
|
+
},
|
|
2189
|
+
/**
|
|
2190
|
+
*
|
|
2191
|
+
* @summary Update settings for user
|
|
2192
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
2193
|
+
* @param {*} [options] Override http request option.
|
|
2194
|
+
* @throws {RequiredError}
|
|
2195
|
+
*/
|
|
2196
|
+
userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsDto> {
|
|
2197
|
+
return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
|
|
2198
|
+
},
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* ApiV1UserSettingsApi - interface
|
|
2204
|
+
* @export
|
|
2205
|
+
* @interface ApiV1UserSettingsApi
|
|
2206
|
+
*/
|
|
2207
|
+
export interface ApiV1UserSettingsApiInterface {
|
|
2208
|
+
/**
|
|
2209
|
+
*
|
|
2210
|
+
* @param {*} [options] Override http request option.
|
|
2211
|
+
* @throws {RequiredError}
|
|
2212
|
+
* @memberof ApiV1UserSettingsApiInterface
|
|
2213
|
+
*/
|
|
2214
|
+
userSettingsControllerGetSettings(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
*
|
|
2218
|
+
* @summary Update settings for user
|
|
2219
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
* @memberof ApiV1UserSettingsApiInterface
|
|
2223
|
+
*/
|
|
2224
|
+
userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserSettingsDto>;
|
|
2225
|
+
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Request parameters for userSettingsControllerUpdateSettings operation in ApiV1UserSettingsApi.
|
|
2230
|
+
* @export
|
|
2231
|
+
* @interface ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest
|
|
2232
|
+
*/
|
|
2233
|
+
export interface ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest {
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @type {UserSettingsUpdateDto}
|
|
2237
|
+
* @memberof ApiV1UserSettingsApiUserSettingsControllerUpdateSettings
|
|
2238
|
+
*/
|
|
2239
|
+
readonly userSettingsUpdateDto: UserSettingsUpdateDto
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* ApiV1UserSettingsApi - object-oriented interface
|
|
2244
|
+
* @export
|
|
2245
|
+
* @class ApiV1UserSettingsApi
|
|
2246
|
+
* @extends {BaseAPI}
|
|
2247
|
+
*/
|
|
2248
|
+
export class ApiV1UserSettingsApi extends BaseAPI implements ApiV1UserSettingsApiInterface {
|
|
2249
|
+
/**
|
|
2250
|
+
*
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
* @memberof ApiV1UserSettingsApi
|
|
2254
|
+
*/
|
|
2255
|
+
public userSettingsControllerGetSettings(options?: RawAxiosRequestConfig) {
|
|
2256
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @summary Update settings for user
|
|
2262
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1275
2263
|
* @param {*} [options] Override http request option.
|
|
1276
2264
|
* @throws {RequiredError}
|
|
1277
|
-
* @memberof
|
|
2265
|
+
* @memberof ApiV1UserSettingsApi
|
|
1278
2266
|
*/
|
|
1279
|
-
public
|
|
1280
|
-
return
|
|
2267
|
+
public userSettingsControllerUpdateSettings(requestParameters: ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
2268
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1281
2269
|
}
|
|
1282
2270
|
}
|
|
1283
2271
|
|
|
@@ -1386,6 +2374,40 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration?: Config
|
|
|
1386
2374
|
|
|
1387
2375
|
|
|
1388
2376
|
|
|
2377
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2379
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2380
|
+
|
|
2381
|
+
return {
|
|
2382
|
+
url: toPathString(localVarUrlObj),
|
|
2383
|
+
options: localVarRequestOptions,
|
|
2384
|
+
};
|
|
2385
|
+
},
|
|
2386
|
+
/**
|
|
2387
|
+
*
|
|
2388
|
+
* @summary Create a worker secret
|
|
2389
|
+
* @param {string} id The ID of the worker
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
*/
|
|
2393
|
+
workerControllerGenerateWorkerSecret: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2394
|
+
// verify required parameter 'id' is not null or undefined
|
|
2395
|
+
assertParamExists('workerControllerGenerateWorkerSecret', 'id', id)
|
|
2396
|
+
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
2397
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2398
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2399
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2400
|
+
let baseOptions;
|
|
2401
|
+
if (configuration) {
|
|
2402
|
+
baseOptions = configuration.baseOptions;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2406
|
+
const localVarHeaderParameter = {} as any;
|
|
2407
|
+
const localVarQueryParameter = {} as any;
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
|
|
1389
2411
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1390
2412
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1391
2413
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1578,6 +2600,19 @@ export const ApiV1WorkersApiFp = function(configuration?: Configuration) {
|
|
|
1578
2600
|
const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerDeleteWorker']?.[localVarOperationServerIndex]?.url;
|
|
1579
2601
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1580
2602
|
},
|
|
2603
|
+
/**
|
|
2604
|
+
*
|
|
2605
|
+
* @summary Create a worker secret
|
|
2606
|
+
* @param {string} id The ID of the worker
|
|
2607
|
+
* @param {*} [options] Override http request option.
|
|
2608
|
+
* @throws {RequiredError}
|
|
2609
|
+
*/
|
|
2610
|
+
async workerControllerGenerateWorkerSecret(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkerClientSecretDto>> {
|
|
2611
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
2612
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2613
|
+
const localVarOperationServerBasePath = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']?.[localVarOperationServerIndex]?.url;
|
|
2614
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2615
|
+
},
|
|
1581
2616
|
/**
|
|
1582
2617
|
*
|
|
1583
2618
|
* @summary Get a worker by ID
|
|
@@ -1663,6 +2698,16 @@ export const ApiV1WorkersApiFactory = function (configuration?: Configuration, b
|
|
|
1663
2698
|
workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1664
2699
|
return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1665
2700
|
},
|
|
2701
|
+
/**
|
|
2702
|
+
*
|
|
2703
|
+
* @summary Create a worker secret
|
|
2704
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerClientSecretDto> {
|
|
2709
|
+
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2710
|
+
},
|
|
1666
2711
|
/**
|
|
1667
2712
|
*
|
|
1668
2713
|
* @summary Get a worker by ID
|
|
@@ -1732,6 +2777,16 @@ export interface ApiV1WorkersApiInterface {
|
|
|
1732
2777
|
*/
|
|
1733
2778
|
workerControllerDeleteWorker(requestParameters: ApiV1WorkersApiWorkerControllerDeleteWorkerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1734
2779
|
|
|
2780
|
+
/**
|
|
2781
|
+
*
|
|
2782
|
+
* @summary Create a worker secret
|
|
2783
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2784
|
+
* @param {*} [options] Override http request option.
|
|
2785
|
+
* @throws {RequiredError}
|
|
2786
|
+
* @memberof ApiV1WorkersApiInterface
|
|
2787
|
+
*/
|
|
2788
|
+
workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkerClientSecretDto>;
|
|
2789
|
+
|
|
1735
2790
|
/**
|
|
1736
2791
|
*
|
|
1737
2792
|
* @summary Get a worker by ID
|
|
@@ -1806,6 +2861,20 @@ export interface ApiV1WorkersApiWorkerControllerDeleteWorkerRequest {
|
|
|
1806
2861
|
readonly id: string
|
|
1807
2862
|
}
|
|
1808
2863
|
|
|
2864
|
+
/**
|
|
2865
|
+
* Request parameters for workerControllerGenerateWorkerSecret operation in ApiV1WorkersApi.
|
|
2866
|
+
* @export
|
|
2867
|
+
* @interface ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest
|
|
2868
|
+
*/
|
|
2869
|
+
export interface ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest {
|
|
2870
|
+
/**
|
|
2871
|
+
* The ID of the worker
|
|
2872
|
+
* @type {string}
|
|
2873
|
+
* @memberof ApiV1WorkersApiWorkerControllerGenerateWorkerSecret
|
|
2874
|
+
*/
|
|
2875
|
+
readonly id: string
|
|
2876
|
+
}
|
|
2877
|
+
|
|
1809
2878
|
/**
|
|
1810
2879
|
* Request parameters for workerControllerGetWorkerById operation in ApiV1WorkersApi.
|
|
1811
2880
|
* @export
|
|
@@ -1933,6 +3002,18 @@ export class ApiV1WorkersApi extends BaseAPI implements ApiV1WorkersApiInterface
|
|
|
1933
3002
|
return ApiV1WorkersApiFp(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1934
3003
|
}
|
|
1935
3004
|
|
|
3005
|
+
/**
|
|
3006
|
+
*
|
|
3007
|
+
* @summary Create a worker secret
|
|
3008
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
3009
|
+
* @param {*} [options] Override http request option.
|
|
3010
|
+
* @throws {RequiredError}
|
|
3011
|
+
* @memberof ApiV1WorkersApi
|
|
3012
|
+
*/
|
|
3013
|
+
public workerControllerGenerateWorkerSecret(requestParameters: ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest, options?: RawAxiosRequestConfig) {
|
|
3014
|
+
return ApiV1WorkersApiFp(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3015
|
+
}
|
|
3016
|
+
|
|
1936
3017
|
/**
|
|
1937
3018
|
*
|
|
1938
3019
|
* @summary Get a worker by ID
|
|
@@ -1972,230 +3053,3 @@ export class ApiV1WorkersApi extends BaseAPI implements ApiV1WorkersApiInterface
|
|
|
1972
3053
|
|
|
1973
3054
|
|
|
1974
3055
|
|
|
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
|
-
|