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