@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/dist/esm/api.js CHANGED
@@ -26,12 +26,16 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const UIPreferencesDtoThemeEnum = {
30
+ Light: 'light',
31
+ Dark: 'dark'
32
+ };
29
33
  export const WorkerSortByDtoFieldEnum = {
30
34
  Id: 'id',
31
35
  Url: 'url',
36
+ WebsocketUrl: 'websocketUrl',
32
37
  Name: 'name',
33
- ServiceToken: 'serviceToken',
34
- IsSetupComplete: 'isSetupComplete',
38
+ ClientSecret: 'clientSecret',
35
39
  CreatedAt: 'createdAt',
36
40
  UpdatedAt: 'updatedAt',
37
41
  UserId: 'userId'
@@ -48,18 +52,19 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
48
52
  return {
49
53
  /**
50
54
  *
55
+ * @summary Initiate Discord OAuth flow
51
56
  * @param {*} [options] Override http request option.
52
57
  * @throws {RequiredError}
53
58
  */
54
- authControllerDevLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
55
- const localVarPath = `/api/v1/auth/login-dev`;
59
+ authControllerDiscordAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
60
+ const localVarPath = `/api/v1/auth/oauth/discord`;
56
61
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
62
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
63
  let baseOptions;
59
64
  if (configuration) {
60
65
  baseOptions = configuration.baseOptions;
61
66
  }
62
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
67
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
63
68
  const localVarHeaderParameter = {};
64
69
  const localVarQueryParameter = {};
65
70
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -72,11 +77,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
72
77
  }),
73
78
  /**
74
79
  *
80
+ * @summary Handle Discord OAuth callback
75
81
  * @param {*} [options] Override http request option.
76
82
  * @throws {RequiredError}
77
83
  */
78
- authControllerGetAuthStrategies: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
79
- const localVarPath = `/api/v1/auth/auth-strategies`;
84
+ authControllerDiscordCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
85
+ const localVarPath = `/api/v1/auth/oauth/discord/callback`;
80
86
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
87
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
88
  let baseOptions;
@@ -96,6 +102,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
96
102
  }),
97
103
  /**
98
104
  *
105
+ * @summary Get linked OAuth providers for current user
99
106
  * @param {*} [options] Override http request option.
100
107
  * @throws {RequiredError}
101
108
  */
@@ -120,6 +127,57 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
120
127
  }),
121
128
  /**
122
129
  *
130
+ * @summary Initiate GitHub OAuth flow
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ authControllerGithubAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
135
+ const localVarPath = `/api/v1/auth/oauth/github`;
136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
+ let baseOptions;
139
+ if (configuration) {
140
+ baseOptions = configuration.baseOptions;
141
+ }
142
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
143
+ const localVarHeaderParameter = {};
144
+ const localVarQueryParameter = {};
145
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
146
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ }),
153
+ /**
154
+ *
155
+ * @summary Handle GitHub OAuth callback
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ authControllerGithubCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
160
+ const localVarPath = `/api/v1/auth/oauth/github/callback`;
161
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
163
+ let baseOptions;
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ }
167
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
168
+ const localVarHeaderParameter = {};
169
+ const localVarQueryParameter = {};
170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
172
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ }),
178
+ /**
179
+ *
180
+ * @summary Initiate Google OAuth flow
123
181
  * @param {*} [options] Override http request option.
124
182
  * @throws {RequiredError}
125
183
  */
@@ -144,6 +202,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
144
202
  }),
145
203
  /**
146
204
  *
205
+ * @summary Handle Google OAuth callback
147
206
  * @param {*} [options] Override http request option.
148
207
  * @throws {RequiredError}
149
208
  */
@@ -168,28 +227,24 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
168
227
  }),
169
228
  /**
170
229
  *
171
- * @param {object} body
230
+ * @summary Auth service health check
172
231
  * @param {*} [options] Override http request option.
173
232
  * @throws {RequiredError}
174
233
  */
175
- authControllerLinkProvider: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
176
- // verify required parameter 'body' is not null or undefined
177
- assertParamExists('authControllerLinkProvider', 'body', body);
178
- const localVarPath = `/api/v1/auth/link-provider`;
234
+ authControllerHealthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
235
+ const localVarPath = `/api/v1/auth/health`;
179
236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
181
238
  let baseOptions;
182
239
  if (configuration) {
183
240
  baseOptions = configuration.baseOptions;
184
241
  }
185
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
242
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
186
243
  const localVarHeaderParameter = {};
187
244
  const localVarQueryParameter = {};
188
- localVarHeaderParameter['Content-Type'] = 'application/json';
189
245
  setSearchParams(localVarUrlObj, localVarQueryParameter);
190
246
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
247
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
193
248
  return {
194
249
  url: toPathString(localVarUrlObj),
195
250
  options: localVarRequestOptions,
@@ -197,14 +252,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
197
252
  }),
198
253
  /**
199
254
  *
255
+ * @summary Link OAuth provider to existing account
200
256
  * @param {object} body
201
257
  * @param {*} [options] Override http request option.
202
258
  * @throws {RequiredError}
203
259
  */
204
- authControllerLogin: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
260
+ authControllerLinkProvider: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
205
261
  // verify required parameter 'body' is not null or undefined
206
- assertParamExists('authControllerLogin', 'body', body);
207
- const localVarPath = `/api/v1/auth/login`;
262
+ assertParamExists('authControllerLinkProvider', 'body', body);
263
+ const localVarPath = `/api/v1/auth/link-provider`;
208
264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
209
265
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
210
266
  let baseOptions;
@@ -226,11 +282,15 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
226
282
  }),
227
283
  /**
228
284
  *
285
+ * @summary User login with email and password
286
+ * @param {object} body
229
287
  * @param {*} [options] Override http request option.
230
288
  * @throws {RequiredError}
231
289
  */
232
- authControllerLogout: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
233
- const localVarPath = `/api/v1/auth/logout`;
290
+ authControllerLogin: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
291
+ // verify required parameter 'body' is not null or undefined
292
+ assertParamExists('authControllerLogin', 'body', body);
293
+ const localVarPath = `/api/v1/auth/login`;
234
294
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
235
295
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
236
296
  let baseOptions;
@@ -240,9 +300,11 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
240
300
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
241
301
  const localVarHeaderParameter = {};
242
302
  const localVarQueryParameter = {};
303
+ localVarHeaderParameter['Content-Type'] = 'application/json';
243
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
244
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
245
306
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
307
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
246
308
  return {
247
309
  url: toPathString(localVarUrlObj),
248
310
  options: localVarRequestOptions,
@@ -250,18 +312,19 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
250
312
  }),
251
313
  /**
252
314
  *
315
+ * @summary Logout user and clear session
253
316
  * @param {*} [options] Override http request option.
254
317
  * @throws {RequiredError}
255
318
  */
256
- authControllerMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
257
- const localVarPath = `/api/v1/auth/me`;
319
+ authControllerLogout: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
320
+ const localVarPath = `/api/v1/auth/logout`;
258
321
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
322
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
260
323
  let baseOptions;
261
324
  if (configuration) {
262
325
  baseOptions = configuration.baseOptions;
263
326
  }
264
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
265
328
  const localVarHeaderParameter = {};
266
329
  const localVarQueryParameter = {};
267
330
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -274,6 +337,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
274
337
  }),
275
338
  /**
276
339
  *
340
+ * @summary Refresh access token using refresh token
277
341
  * @param {*} [options] Override http request option.
278
342
  * @throws {RequiredError}
279
343
  */
@@ -298,6 +362,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
298
362
  }),
299
363
  /**
300
364
  *
365
+ * @summary Register a new user account
301
366
  * @param {object} body
302
367
  * @param {*} [options] Override http request option.
303
368
  * @throws {RequiredError}
@@ -336,34 +401,37 @@ export const ApiV1AuthApiFp = function (configuration) {
336
401
  return {
337
402
  /**
338
403
  *
404
+ * @summary Initiate Discord OAuth flow
339
405
  * @param {*} [options] Override http request option.
340
406
  * @throws {RequiredError}
341
407
  */
342
- authControllerDevLogin(options) {
408
+ authControllerDiscordAuth(options) {
343
409
  return __awaiter(this, void 0, void 0, function* () {
344
410
  var _a, _b, _c;
345
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDevLogin(options);
411
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordAuth(options);
346
412
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
347
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDevLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
413
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDiscordAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
348
414
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
349
415
  });
350
416
  },
351
417
  /**
352
418
  *
419
+ * @summary Handle Discord OAuth callback
353
420
  * @param {*} [options] Override http request option.
354
421
  * @throws {RequiredError}
355
422
  */
356
- authControllerGetAuthStrategies(options) {
423
+ authControllerDiscordCallback(options) {
357
424
  return __awaiter(this, void 0, void 0, function* () {
358
425
  var _a, _b, _c;
359
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGetAuthStrategies(options);
426
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDiscordCallback(options);
360
427
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
361
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGetAuthStrategies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
428
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDiscordCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
362
429
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
363
430
  });
364
431
  },
365
432
  /**
366
433
  *
434
+ * @summary Get linked OAuth providers for current user
367
435
  * @param {*} [options] Override http request option.
368
436
  * @throws {RequiredError}
369
437
  */
@@ -378,6 +446,37 @@ export const ApiV1AuthApiFp = function (configuration) {
378
446
  },
379
447
  /**
380
448
  *
449
+ * @summary Initiate GitHub OAuth flow
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ authControllerGithubAuth(options) {
454
+ return __awaiter(this, void 0, void 0, function* () {
455
+ var _a, _b, _c;
456
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubAuth(options);
457
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
458
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGithubAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
459
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
460
+ });
461
+ },
462
+ /**
463
+ *
464
+ * @summary Handle GitHub OAuth callback
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ authControllerGithubCallback(options) {
469
+ return __awaiter(this, void 0, void 0, function* () {
470
+ var _a, _b, _c;
471
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGithubCallback(options);
472
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
473
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGithubCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
474
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
475
+ });
476
+ },
477
+ /**
478
+ *
479
+ * @summary Initiate Google OAuth flow
381
480
  * @param {*} [options] Override http request option.
382
481
  * @throws {RequiredError}
383
482
  */
@@ -392,6 +491,7 @@ export const ApiV1AuthApiFp = function (configuration) {
392
491
  },
393
492
  /**
394
493
  *
494
+ * @summary Handle Google OAuth callback
395
495
  * @param {*} [options] Override http request option.
396
496
  * @throws {RequiredError}
397
497
  */
@@ -406,64 +506,69 @@ export const ApiV1AuthApiFp = function (configuration) {
406
506
  },
407
507
  /**
408
508
  *
409
- * @param {object} body
509
+ * @summary Auth service health check
410
510
  * @param {*} [options] Override http request option.
411
511
  * @throws {RequiredError}
412
512
  */
413
- authControllerLinkProvider(body, options) {
513
+ authControllerHealthCheck(options) {
414
514
  return __awaiter(this, void 0, void 0, function* () {
415
515
  var _a, _b, _c;
416
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLinkProvider(body, options);
516
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerHealthCheck(options);
417
517
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
418
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLinkProvider']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
518
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerHealthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
419
519
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
420
520
  });
421
521
  },
422
522
  /**
423
523
  *
524
+ * @summary Link OAuth provider to existing account
424
525
  * @param {object} body
425
526
  * @param {*} [options] Override http request option.
426
527
  * @throws {RequiredError}
427
528
  */
428
- authControllerLogin(body, options) {
529
+ authControllerLinkProvider(body, options) {
429
530
  return __awaiter(this, void 0, void 0, function* () {
430
531
  var _a, _b, _c;
431
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogin(body, options);
532
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLinkProvider(body, options);
432
533
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
433
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
534
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLinkProvider']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
434
535
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
435
536
  });
436
537
  },
437
538
  /**
438
539
  *
540
+ * @summary User login with email and password
541
+ * @param {object} body
439
542
  * @param {*} [options] Override http request option.
440
543
  * @throws {RequiredError}
441
544
  */
442
- authControllerLogout(options) {
545
+ authControllerLogin(body, options) {
443
546
  return __awaiter(this, void 0, void 0, function* () {
444
547
  var _a, _b, _c;
445
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogout(options);
548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogin(body, options);
446
549
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
447
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
550
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
448
551
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
449
552
  });
450
553
  },
451
554
  /**
452
555
  *
556
+ * @summary Logout user and clear session
453
557
  * @param {*} [options] Override http request option.
454
558
  * @throws {RequiredError}
455
559
  */
456
- authControllerMe(options) {
560
+ authControllerLogout(options) {
457
561
  return __awaiter(this, void 0, void 0, function* () {
458
562
  var _a, _b, _c;
459
- const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerMe(options);
563
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerLogout(options);
460
564
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
461
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
565
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
462
566
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
463
567
  });
464
568
  },
465
569
  /**
466
570
  *
571
+ * @summary Refresh access token using refresh token
467
572
  * @param {*} [options] Override http request option.
468
573
  * @throws {RequiredError}
469
574
  */
@@ -478,6 +583,7 @@ export const ApiV1AuthApiFp = function (configuration) {
478
583
  },
479
584
  /**
480
585
  *
586
+ * @summary Register a new user account
481
587
  * @param {object} body
482
588
  * @param {*} [options] Override http request option.
483
589
  * @throws {RequiredError}
@@ -502,22 +608,25 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
502
608
  return {
503
609
  /**
504
610
  *
611
+ * @summary Initiate Discord OAuth flow
505
612
  * @param {*} [options] Override http request option.
506
613
  * @throws {RequiredError}
507
614
  */
508
- authControllerDevLogin(options) {
509
- return localVarFp.authControllerDevLogin(options).then((request) => request(axios, basePath));
615
+ authControllerDiscordAuth(options) {
616
+ return localVarFp.authControllerDiscordAuth(options).then((request) => request(axios, basePath));
510
617
  },
511
618
  /**
512
619
  *
620
+ * @summary Handle Discord OAuth callback
513
621
  * @param {*} [options] Override http request option.
514
622
  * @throws {RequiredError}
515
623
  */
516
- authControllerGetAuthStrategies(options) {
517
- return localVarFp.authControllerGetAuthStrategies(options).then((request) => request(axios, basePath));
624
+ authControllerDiscordCallback(options) {
625
+ return localVarFp.authControllerDiscordCallback(options).then((request) => request(axios, basePath));
518
626
  },
519
627
  /**
520
628
  *
629
+ * @summary Get linked OAuth providers for current user
521
630
  * @param {*} [options] Override http request option.
522
631
  * @throws {RequiredError}
523
632
  */
@@ -526,6 +635,25 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
526
635
  },
527
636
  /**
528
637
  *
638
+ * @summary Initiate GitHub OAuth flow
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ authControllerGithubAuth(options) {
643
+ return localVarFp.authControllerGithubAuth(options).then((request) => request(axios, basePath));
644
+ },
645
+ /**
646
+ *
647
+ * @summary Handle GitHub OAuth callback
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ authControllerGithubCallback(options) {
652
+ return localVarFp.authControllerGithubCallback(options).then((request) => request(axios, basePath));
653
+ },
654
+ /**
655
+ *
656
+ * @summary Initiate Google OAuth flow
529
657
  * @param {*} [options] Override http request option.
530
658
  * @throws {RequiredError}
531
659
  */
@@ -534,6 +662,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
534
662
  },
535
663
  /**
536
664
  *
665
+ * @summary Handle Google OAuth callback
537
666
  * @param {*} [options] Override http request option.
538
667
  * @throws {RequiredError}
539
668
  */
@@ -542,6 +671,16 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
542
671
  },
543
672
  /**
544
673
  *
674
+ * @summary Auth service health check
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ authControllerHealthCheck(options) {
679
+ return localVarFp.authControllerHealthCheck(options).then((request) => request(axios, basePath));
680
+ },
681
+ /**
682
+ *
683
+ * @summary Link OAuth provider to existing account
545
684
  * @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
546
685
  * @param {*} [options] Override http request option.
547
686
  * @throws {RequiredError}
@@ -551,6 +690,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
551
690
  },
552
691
  /**
553
692
  *
693
+ * @summary User login with email and password
554
694
  * @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
555
695
  * @param {*} [options] Override http request option.
556
696
  * @throws {RequiredError}
@@ -560,6 +700,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
560
700
  },
561
701
  /**
562
702
  *
703
+ * @summary Logout user and clear session
563
704
  * @param {*} [options] Override http request option.
564
705
  * @throws {RequiredError}
565
706
  */
@@ -568,14 +709,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
568
709
  },
569
710
  /**
570
711
  *
571
- * @param {*} [options] Override http request option.
572
- * @throws {RequiredError}
573
- */
574
- authControllerMe(options) {
575
- return localVarFp.authControllerMe(options).then((request) => request(axios, basePath));
576
- },
577
- /**
578
- *
712
+ * @summary Refresh access token using refresh token
579
713
  * @param {*} [options] Override http request option.
580
714
  * @throws {RequiredError}
581
715
  */
@@ -584,6 +718,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
584
718
  },
585
719
  /**
586
720
  *
721
+ * @summary Register a new user account
587
722
  * @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
588
723
  * @param {*} [options] Override http request option.
589
724
  * @throws {RequiredError}
@@ -602,24 +737,27 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
602
737
  export class ApiV1AuthApi extends BaseAPI {
603
738
  /**
604
739
  *
740
+ * @summary Initiate Discord OAuth flow
605
741
  * @param {*} [options] Override http request option.
606
742
  * @throws {RequiredError}
607
743
  * @memberof ApiV1AuthApi
608
744
  */
609
- authControllerDevLogin(options) {
610
- return ApiV1AuthApiFp(this.configuration).authControllerDevLogin(options).then((request) => request(this.axios, this.basePath));
745
+ authControllerDiscordAuth(options) {
746
+ return ApiV1AuthApiFp(this.configuration).authControllerDiscordAuth(options).then((request) => request(this.axios, this.basePath));
611
747
  }
612
748
  /**
613
749
  *
750
+ * @summary Handle Discord OAuth callback
614
751
  * @param {*} [options] Override http request option.
615
752
  * @throws {RequiredError}
616
753
  * @memberof ApiV1AuthApi
617
754
  */
618
- authControllerGetAuthStrategies(options) {
619
- return ApiV1AuthApiFp(this.configuration).authControllerGetAuthStrategies(options).then((request) => request(this.axios, this.basePath));
755
+ authControllerDiscordCallback(options) {
756
+ return ApiV1AuthApiFp(this.configuration).authControllerDiscordCallback(options).then((request) => request(this.axios, this.basePath));
620
757
  }
621
758
  /**
622
759
  *
760
+ * @summary Get linked OAuth providers for current user
623
761
  * @param {*} [options] Override http request option.
624
762
  * @throws {RequiredError}
625
763
  * @memberof ApiV1AuthApi
@@ -629,6 +767,27 @@ export class ApiV1AuthApi extends BaseAPI {
629
767
  }
630
768
  /**
631
769
  *
770
+ * @summary Initiate GitHub OAuth flow
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ * @memberof ApiV1AuthApi
774
+ */
775
+ authControllerGithubAuth(options) {
776
+ return ApiV1AuthApiFp(this.configuration).authControllerGithubAuth(options).then((request) => request(this.axios, this.basePath));
777
+ }
778
+ /**
779
+ *
780
+ * @summary Handle GitHub OAuth callback
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ * @memberof ApiV1AuthApi
784
+ */
785
+ authControllerGithubCallback(options) {
786
+ return ApiV1AuthApiFp(this.configuration).authControllerGithubCallback(options).then((request) => request(this.axios, this.basePath));
787
+ }
788
+ /**
789
+ *
790
+ * @summary Initiate Google OAuth flow
632
791
  * @param {*} [options] Override http request option.
633
792
  * @throws {RequiredError}
634
793
  * @memberof ApiV1AuthApi
@@ -638,6 +797,7 @@ export class ApiV1AuthApi extends BaseAPI {
638
797
  }
639
798
  /**
640
799
  *
800
+ * @summary Handle Google OAuth callback
641
801
  * @param {*} [options] Override http request option.
642
802
  * @throws {RequiredError}
643
803
  * @memberof ApiV1AuthApi
@@ -647,6 +807,17 @@ export class ApiV1AuthApi extends BaseAPI {
647
807
  }
648
808
  /**
649
809
  *
810
+ * @summary Auth service health check
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ * @memberof ApiV1AuthApi
814
+ */
815
+ authControllerHealthCheck(options) {
816
+ return ApiV1AuthApiFp(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
817
+ }
818
+ /**
819
+ *
820
+ * @summary Link OAuth provider to existing account
650
821
  * @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
651
822
  * @param {*} [options] Override http request option.
652
823
  * @throws {RequiredError}
@@ -657,6 +828,7 @@ export class ApiV1AuthApi extends BaseAPI {
657
828
  }
658
829
  /**
659
830
  *
831
+ * @summary User login with email and password
660
832
  * @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
661
833
  * @param {*} [options] Override http request option.
662
834
  * @throws {RequiredError}
@@ -667,6 +839,7 @@ export class ApiV1AuthApi extends BaseAPI {
667
839
  }
668
840
  /**
669
841
  *
842
+ * @summary Logout user and clear session
670
843
  * @param {*} [options] Override http request option.
671
844
  * @throws {RequiredError}
672
845
  * @memberof ApiV1AuthApi
@@ -676,15 +849,7 @@ export class ApiV1AuthApi extends BaseAPI {
676
849
  }
677
850
  /**
678
851
  *
679
- * @param {*} [options] Override http request option.
680
- * @throws {RequiredError}
681
- * @memberof ApiV1AuthApi
682
- */
683
- authControllerMe(options) {
684
- return ApiV1AuthApiFp(this.configuration).authControllerMe(options).then((request) => request(this.axios, this.basePath));
685
- }
686
- /**
687
- *
852
+ * @summary Refresh access token using refresh token
688
853
  * @param {*} [options] Override http request option.
689
854
  * @throws {RequiredError}
690
855
  * @memberof ApiV1AuthApi
@@ -694,6 +859,7 @@ export class ApiV1AuthApi extends BaseAPI {
694
859
  }
695
860
  /**
696
861
  *
862
+ * @summary Register a new user account
697
863
  * @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
698
864
  * @param {*} [options] Override http request option.
699
865
  * @throws {RequiredError}
@@ -704,30 +870,66 @@ export class ApiV1AuthApi extends BaseAPI {
704
870
  }
705
871
  }
706
872
  /**
707
- * ApiV1UserApi - axios parameter creator
873
+ * ApiV1SsoApi - axios parameter creator
708
874
  * @export
709
875
  */
710
- export const ApiV1UserApiAxiosParamCreator = function (configuration) {
876
+ export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
711
877
  return {
712
878
  /**
713
- *
879
+ * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
880
+ * @summary Generate an authorization code for SSO authentication
881
+ * @param {object} body
714
882
  * @param {*} [options] Override http request option.
715
883
  * @throws {RequiredError}
716
884
  */
717
- userControllerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
718
- const localVarPath = `/api/v1/user/info`;
885
+ ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
886
+ // verify required parameter 'body' is not null or undefined
887
+ assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
888
+ const localVarPath = `/api/v1/sso/generate-code`;
719
889
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
720
890
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
721
891
  let baseOptions;
722
892
  if (configuration) {
723
893
  baseOptions = configuration.baseOptions;
724
894
  }
725
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
895
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
896
+ const localVarHeaderParameter = {};
897
+ const localVarQueryParameter = {};
898
+ localVarHeaderParameter['Content-Type'] = 'application/json';
899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
901
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
902
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
903
+ return {
904
+ url: toPathString(localVarUrlObj),
905
+ options: localVarRequestOptions,
906
+ };
907
+ }),
908
+ /**
909
+ * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
910
+ * @summary Validate and consume an authorization code
911
+ * @param {object} body
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ */
915
+ ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
916
+ // verify required parameter 'body' is not null or undefined
917
+ assertParamExists('ssoControllerValidateCode', 'body', body);
918
+ const localVarPath = `/api/v1/sso/validate`;
919
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
920
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
921
+ let baseOptions;
922
+ if (configuration) {
923
+ baseOptions = configuration.baseOptions;
924
+ }
925
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
726
926
  const localVarHeaderParameter = {};
727
927
  const localVarQueryParameter = {};
928
+ localVarHeaderParameter['Content-Type'] = 'application/json';
728
929
  setSearchParams(localVarUrlObj, localVarQueryParameter);
729
930
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
730
931
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
932
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
731
933
  return {
732
934
  url: toPathString(localVarUrlObj),
733
935
  options: localVarRequestOptions,
@@ -736,62 +938,354 @@ export const ApiV1UserApiAxiosParamCreator = function (configuration) {
736
938
  };
737
939
  };
738
940
  /**
739
- * ApiV1UserApi - functional programming interface
941
+ * ApiV1SsoApi - functional programming interface
740
942
  * @export
741
943
  */
742
- export const ApiV1UserApiFp = function (configuration) {
743
- const localVarAxiosParamCreator = ApiV1UserApiAxiosParamCreator(configuration);
944
+ export const ApiV1SsoApiFp = function (configuration) {
945
+ const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration);
744
946
  return {
745
947
  /**
746
- *
948
+ * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
949
+ * @summary Generate an authorization code for SSO authentication
950
+ * @param {object} body
747
951
  * @param {*} [options] Override http request option.
748
952
  * @throws {RequiredError}
749
953
  */
750
- userControllerInfo(options) {
954
+ ssoControllerGenerateLocalCode(body, options) {
751
955
  return __awaiter(this, void 0, void 0, function* () {
752
956
  var _a, _b, _c;
753
- const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerInfo(options);
957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
754
958
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
755
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserApi.userControllerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
959
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
961
+ });
962
+ },
963
+ /**
964
+ * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
965
+ * @summary Validate and consume an authorization code
966
+ * @param {object} body
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ ssoControllerValidateCode(body, options) {
971
+ return __awaiter(this, void 0, void 0, function* () {
972
+ var _a, _b, _c;
973
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
974
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
975
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
756
976
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
757
977
  });
758
978
  },
759
979
  };
760
980
  };
761
981
  /**
762
- * ApiV1UserApi - factory interface
982
+ * ApiV1SsoApi - factory interface
763
983
  * @export
764
984
  */
765
- export const ApiV1UserApiFactory = function (configuration, basePath, axios) {
766
- const localVarFp = ApiV1UserApiFp(configuration);
985
+ export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
986
+ const localVarFp = ApiV1SsoApiFp(configuration);
767
987
  return {
768
988
  /**
769
- *
989
+ * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
990
+ * @summary Generate an authorization code for SSO authentication
991
+ * @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
770
992
  * @param {*} [options] Override http request option.
771
993
  * @throws {RequiredError}
772
994
  */
773
- userControllerInfo(options) {
774
- return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
995
+ ssoControllerGenerateLocalCode(requestParameters, options) {
996
+ return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
997
+ },
998
+ /**
999
+ * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1000
+ * @summary Validate and consume an authorization code
1001
+ * @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ ssoControllerValidateCode(requestParameters, options) {
1006
+ return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
775
1007
  },
776
1008
  };
777
1009
  };
778
1010
  /**
779
- * ApiV1UserApi - object-oriented interface
1011
+ * ApiV1SsoApi - object-oriented interface
780
1012
  * @export
781
- * @class ApiV1UserApi
1013
+ * @class ApiV1SsoApi
782
1014
  * @extends {BaseAPI}
783
1015
  */
784
- export class ApiV1UserApi extends BaseAPI {
1016
+ export class ApiV1SsoApi extends BaseAPI {
785
1017
  /**
786
- *
1018
+ * Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
1019
+ * @summary Generate an authorization code for SSO authentication
1020
+ * @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
787
1021
  * @param {*} [options] Override http request option.
788
1022
  * @throws {RequiredError}
789
- * @memberof ApiV1UserApi
1023
+ * @memberof ApiV1SsoApi
790
1024
  */
791
- userControllerInfo(options) {
792
- return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
1025
+ ssoControllerGenerateLocalCode(requestParameters, options) {
1026
+ return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
793
1027
  }
794
- }
1028
+ /**
1029
+ * Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
1030
+ * @summary Validate and consume an authorization code
1031
+ * @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ * @memberof ApiV1SsoApi
1035
+ */
1036
+ ssoControllerValidateCode(requestParameters, options) {
1037
+ return ApiV1SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1038
+ }
1039
+ }
1040
+ /**
1041
+ * ApiV1UserApi - axios parameter creator
1042
+ * @export
1043
+ */
1044
+ export const ApiV1UserApiAxiosParamCreator = function (configuration) {
1045
+ return {
1046
+ /**
1047
+ *
1048
+ * @summary Get current user
1049
+ * @param {*} [options] Override http request option.
1050
+ * @throws {RequiredError}
1051
+ */
1052
+ userControllerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1053
+ const localVarPath = `/api/v1/user/info`;
1054
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1055
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1056
+ let baseOptions;
1057
+ if (configuration) {
1058
+ baseOptions = configuration.baseOptions;
1059
+ }
1060
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1061
+ const localVarHeaderParameter = {};
1062
+ const localVarQueryParameter = {};
1063
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1064
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1065
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1066
+ return {
1067
+ url: toPathString(localVarUrlObj),
1068
+ options: localVarRequestOptions,
1069
+ };
1070
+ }),
1071
+ };
1072
+ };
1073
+ /**
1074
+ * ApiV1UserApi - functional programming interface
1075
+ * @export
1076
+ */
1077
+ export const ApiV1UserApiFp = function (configuration) {
1078
+ const localVarAxiosParamCreator = ApiV1UserApiAxiosParamCreator(configuration);
1079
+ return {
1080
+ /**
1081
+ *
1082
+ * @summary Get current user
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ userControllerInfo(options) {
1087
+ return __awaiter(this, void 0, void 0, function* () {
1088
+ var _a, _b, _c;
1089
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerInfo(options);
1090
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1091
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserApi.userControllerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1092
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1093
+ });
1094
+ },
1095
+ };
1096
+ };
1097
+ /**
1098
+ * ApiV1UserApi - factory interface
1099
+ * @export
1100
+ */
1101
+ export const ApiV1UserApiFactory = function (configuration, basePath, axios) {
1102
+ const localVarFp = ApiV1UserApiFp(configuration);
1103
+ return {
1104
+ /**
1105
+ *
1106
+ * @summary Get current user
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ userControllerInfo(options) {
1111
+ return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
1112
+ },
1113
+ };
1114
+ };
1115
+ /**
1116
+ * ApiV1UserApi - object-oriented interface
1117
+ * @export
1118
+ * @class ApiV1UserApi
1119
+ * @extends {BaseAPI}
1120
+ */
1121
+ export class ApiV1UserApi extends BaseAPI {
1122
+ /**
1123
+ *
1124
+ * @summary Get current user
1125
+ * @param {*} [options] Override http request option.
1126
+ * @throws {RequiredError}
1127
+ * @memberof ApiV1UserApi
1128
+ */
1129
+ userControllerInfo(options) {
1130
+ return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
1131
+ }
1132
+ }
1133
+ /**
1134
+ * ApiV1UserSettingsApi - axios parameter creator
1135
+ * @export
1136
+ */
1137
+ export const ApiV1UserSettingsApiAxiosParamCreator = function (configuration) {
1138
+ return {
1139
+ /**
1140
+ *
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ */
1144
+ userSettingsControllerGetSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1145
+ const localVarPath = `/api/v1/user/settings`;
1146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1148
+ let baseOptions;
1149
+ if (configuration) {
1150
+ baseOptions = configuration.baseOptions;
1151
+ }
1152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1153
+ const localVarHeaderParameter = {};
1154
+ const localVarQueryParameter = {};
1155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1157
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1158
+ return {
1159
+ url: toPathString(localVarUrlObj),
1160
+ options: localVarRequestOptions,
1161
+ };
1162
+ }),
1163
+ /**
1164
+ *
1165
+ * @summary Update settings for user
1166
+ * @param {UserSettingsUpdateDto} userSettingsUpdateDto
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ userSettingsControllerUpdateSettings: (userSettingsUpdateDto_1, ...args_1) => __awaiter(this, [userSettingsUpdateDto_1, ...args_1], void 0, function* (userSettingsUpdateDto, options = {}) {
1171
+ // verify required parameter 'userSettingsUpdateDto' is not null or undefined
1172
+ assertParamExists('userSettingsControllerUpdateSettings', 'userSettingsUpdateDto', userSettingsUpdateDto);
1173
+ const localVarPath = `/api/v1/user/settings`;
1174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1176
+ let baseOptions;
1177
+ if (configuration) {
1178
+ baseOptions = configuration.baseOptions;
1179
+ }
1180
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1181
+ const localVarHeaderParameter = {};
1182
+ const localVarQueryParameter = {};
1183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1187
+ localVarRequestOptions.data = serializeDataIfNeeded(userSettingsUpdateDto, localVarRequestOptions, configuration);
1188
+ return {
1189
+ url: toPathString(localVarUrlObj),
1190
+ options: localVarRequestOptions,
1191
+ };
1192
+ }),
1193
+ };
1194
+ };
1195
+ /**
1196
+ * ApiV1UserSettingsApi - functional programming interface
1197
+ * @export
1198
+ */
1199
+ export const ApiV1UserSettingsApiFp = function (configuration) {
1200
+ const localVarAxiosParamCreator = ApiV1UserSettingsApiAxiosParamCreator(configuration);
1201
+ return {
1202
+ /**
1203
+ *
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ userSettingsControllerGetSettings(options) {
1208
+ return __awaiter(this, void 0, void 0, function* () {
1209
+ var _a, _b, _c;
1210
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerGetSettings(options);
1211
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1212
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerGetSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1214
+ });
1215
+ },
1216
+ /**
1217
+ *
1218
+ * @summary Update settings for user
1219
+ * @param {UserSettingsUpdateDto} userSettingsUpdateDto
1220
+ * @param {*} [options] Override http request option.
1221
+ * @throws {RequiredError}
1222
+ */
1223
+ userSettingsControllerUpdateSettings(userSettingsUpdateDto, options) {
1224
+ return __awaiter(this, void 0, void 0, function* () {
1225
+ var _a, _b, _c;
1226
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerUpdateSettings(userSettingsUpdateDto, options);
1227
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1228
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerUpdateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1229
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1230
+ });
1231
+ },
1232
+ };
1233
+ };
1234
+ /**
1235
+ * ApiV1UserSettingsApi - factory interface
1236
+ * @export
1237
+ */
1238
+ export const ApiV1UserSettingsApiFactory = function (configuration, basePath, axios) {
1239
+ const localVarFp = ApiV1UserSettingsApiFp(configuration);
1240
+ return {
1241
+ /**
1242
+ *
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ */
1246
+ userSettingsControllerGetSettings(options) {
1247
+ return localVarFp.userSettingsControllerGetSettings(options).then((request) => request(axios, basePath));
1248
+ },
1249
+ /**
1250
+ *
1251
+ * @summary Update settings for user
1252
+ * @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ userSettingsControllerUpdateSettings(requestParameters, options) {
1257
+ return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
1258
+ },
1259
+ };
1260
+ };
1261
+ /**
1262
+ * ApiV1UserSettingsApi - object-oriented interface
1263
+ * @export
1264
+ * @class ApiV1UserSettingsApi
1265
+ * @extends {BaseAPI}
1266
+ */
1267
+ export class ApiV1UserSettingsApi extends BaseAPI {
1268
+ /**
1269
+ *
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ * @memberof ApiV1UserSettingsApi
1273
+ */
1274
+ userSettingsControllerGetSettings(options) {
1275
+ return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
1276
+ }
1277
+ /**
1278
+ *
1279
+ * @summary Update settings for user
1280
+ * @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ * @memberof ApiV1UserSettingsApi
1284
+ */
1285
+ userSettingsControllerUpdateSettings(requestParameters, options) {
1286
+ return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
1287
+ }
1288
+ }
795
1289
  /**
796
1290
  * ApiV1WorkersApi - axios parameter creator
797
1291
  * @export
@@ -887,6 +1381,35 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
887
1381
  options: localVarRequestOptions,
888
1382
  };
889
1383
  }),
1384
+ /**
1385
+ *
1386
+ * @summary Create a worker secret
1387
+ * @param {string} id The ID of the worker
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1392
+ // verify required parameter 'id' is not null or undefined
1393
+ assertParamExists('workerControllerGenerateWorkerSecret', 'id', id);
1394
+ const localVarPath = `/api/v1/workers/{id}/generate-secret`
1395
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1398
+ let baseOptions;
1399
+ if (configuration) {
1400
+ baseOptions = configuration.baseOptions;
1401
+ }
1402
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1403
+ const localVarHeaderParameter = {};
1404
+ const localVarQueryParameter = {};
1405
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1408
+ return {
1409
+ url: toPathString(localVarUrlObj),
1410
+ options: localVarRequestOptions,
1411
+ };
1412
+ }),
890
1413
  /**
891
1414
  *
892
1415
  * @summary Get a worker by ID
@@ -1056,6 +1579,22 @@ export const ApiV1WorkersApiFp = function (configuration) {
1056
1579
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1057
1580
  });
1058
1581
  },
1582
+ /**
1583
+ *
1584
+ * @summary Create a worker secret
1585
+ * @param {string} id The ID of the worker
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ workerControllerGenerateWorkerSecret(id, options) {
1590
+ return __awaiter(this, void 0, void 0, function* () {
1591
+ var _a, _b, _c;
1592
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
1593
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1594
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1596
+ });
1597
+ },
1059
1598
  /**
1060
1599
  *
1061
1600
  * @summary Get a worker by ID
@@ -1149,6 +1688,16 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
1149
1688
  workerControllerDeleteWorker(requestParameters, options) {
1150
1689
  return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
1151
1690
  },
1691
+ /**
1692
+ *
1693
+ * @summary Create a worker secret
1694
+ * @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
1695
+ * @param {*} [options] Override http request option.
1696
+ * @throws {RequiredError}
1697
+ */
1698
+ workerControllerGenerateWorkerSecret(requestParameters, options) {
1699
+ return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
1700
+ },
1152
1701
  /**
1153
1702
  *
1154
1703
  * @summary Get a worker by ID
@@ -1221,6 +1770,17 @@ export class ApiV1WorkersApi extends BaseAPI {
1221
1770
  workerControllerDeleteWorker(requestParameters, options) {
1222
1771
  return ApiV1WorkersApiFp(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1223
1772
  }
1773
+ /**
1774
+ *
1775
+ * @summary Create a worker secret
1776
+ * @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
1777
+ * @param {*} [options] Override http request option.
1778
+ * @throws {RequiredError}
1779
+ * @memberof ApiV1WorkersApi
1780
+ */
1781
+ workerControllerGenerateWorkerSecret(requestParameters, options) {
1782
+ return ApiV1WorkersApiFp(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1783
+ }
1224
1784
  /**
1225
1785
  *
1226
1786
  * @summary Get a worker by ID
@@ -1255,163 +1815,3 @@ export class ApiV1WorkersApi extends BaseAPI {
1255
1815
  return ApiV1WorkersApiFp(this.configuration).workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(this.axios, this.basePath));
1256
1816
  }
1257
1817
  }
1258
- /**
1259
- * SsoApi - axios parameter creator
1260
- * @export
1261
- */
1262
- export const SsoApiAxiosParamCreator = function (configuration) {
1263
- return {
1264
- /**
1265
- *
1266
- * @param {object} body
1267
- * @param {*} [options] Override http request option.
1268
- * @throws {RequiredError}
1269
- */
1270
- ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1271
- // verify required parameter 'body' is not null or undefined
1272
- assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
1273
- const localVarPath = `/sso/generate-code`;
1274
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1275
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1276
- let baseOptions;
1277
- if (configuration) {
1278
- baseOptions = configuration.baseOptions;
1279
- }
1280
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1281
- const localVarHeaderParameter = {};
1282
- const localVarQueryParameter = {};
1283
- localVarHeaderParameter['Content-Type'] = 'application/json';
1284
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1285
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1286
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1287
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1288
- return {
1289
- url: toPathString(localVarUrlObj),
1290
- options: localVarRequestOptions,
1291
- };
1292
- }),
1293
- /**
1294
- *
1295
- * @param {object} body
1296
- * @param {*} [options] Override http request option.
1297
- * @throws {RequiredError}
1298
- */
1299
- ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1300
- // verify required parameter 'body' is not null or undefined
1301
- assertParamExists('ssoControllerValidateCode', 'body', body);
1302
- const localVarPath = `/sso/validate-code`;
1303
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1304
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1305
- let baseOptions;
1306
- if (configuration) {
1307
- baseOptions = configuration.baseOptions;
1308
- }
1309
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1310
- const localVarHeaderParameter = {};
1311
- const localVarQueryParameter = {};
1312
- localVarHeaderParameter['Content-Type'] = 'application/json';
1313
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1314
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1315
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1316
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1317
- return {
1318
- url: toPathString(localVarUrlObj),
1319
- options: localVarRequestOptions,
1320
- };
1321
- }),
1322
- };
1323
- };
1324
- /**
1325
- * SsoApi - functional programming interface
1326
- * @export
1327
- */
1328
- export const SsoApiFp = function (configuration) {
1329
- const localVarAxiosParamCreator = SsoApiAxiosParamCreator(configuration);
1330
- return {
1331
- /**
1332
- *
1333
- * @param {object} body
1334
- * @param {*} [options] Override http request option.
1335
- * @throws {RequiredError}
1336
- */
1337
- ssoControllerGenerateLocalCode(body, options) {
1338
- return __awaiter(this, void 0, void 0, function* () {
1339
- var _a, _b, _c;
1340
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
1341
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1342
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1343
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1344
- });
1345
- },
1346
- /**
1347
- *
1348
- * @param {object} body
1349
- * @param {*} [options] Override http request option.
1350
- * @throws {RequiredError}
1351
- */
1352
- ssoControllerValidateCode(body, options) {
1353
- return __awaiter(this, void 0, void 0, function* () {
1354
- var _a, _b, _c;
1355
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
1356
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1357
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1358
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1359
- });
1360
- },
1361
- };
1362
- };
1363
- /**
1364
- * SsoApi - factory interface
1365
- * @export
1366
- */
1367
- export const SsoApiFactory = function (configuration, basePath, axios) {
1368
- const localVarFp = SsoApiFp(configuration);
1369
- return {
1370
- /**
1371
- *
1372
- * @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
1373
- * @param {*} [options] Override http request option.
1374
- * @throws {RequiredError}
1375
- */
1376
- ssoControllerGenerateLocalCode(requestParameters, options) {
1377
- return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
1378
- },
1379
- /**
1380
- *
1381
- * @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
1382
- * @param {*} [options] Override http request option.
1383
- * @throws {RequiredError}
1384
- */
1385
- ssoControllerValidateCode(requestParameters, options) {
1386
- return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
1387
- },
1388
- };
1389
- };
1390
- /**
1391
- * SsoApi - object-oriented interface
1392
- * @export
1393
- * @class SsoApi
1394
- * @extends {BaseAPI}
1395
- */
1396
- export class SsoApi extends BaseAPI {
1397
- /**
1398
- *
1399
- * @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
1400
- * @param {*} [options] Override http request option.
1401
- * @throws {RequiredError}
1402
- * @memberof SsoApi
1403
- */
1404
- ssoControllerGenerateLocalCode(requestParameters, options) {
1405
- return SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1406
- }
1407
- /**
1408
- *
1409
- * @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
1410
- * @param {*} [options] Override http request option.
1411
- * @throws {RequiredError}
1412
- * @memberof SsoApi
1413
- */
1414
- ssoControllerValidateCode(requestParameters, options) {
1415
- return SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1416
- }
1417
- }