@loopstack/hub-client 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +19 -0
- package/api.ts +1019 -449
- package/dist/api.d.ts +817 -308
- package/dist/api.js +520 -352
- package/dist/esm/api.d.ts +817 -308
- package/dist/esm/api.js +510 -346
- package/package.json +5 -6
package/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,35 +55,12 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
51
55
|
return {
|
|
52
56
|
/**
|
|
53
57
|
*
|
|
58
|
+
* @summary Get linked OAuth providers for current user
|
|
54
59
|
* @param {*} [options] Override http request option.
|
|
55
60
|
* @throws {RequiredError}
|
|
56
61
|
*/
|
|
57
|
-
|
|
58
|
-
const localVarPath = `/api/v1/auth/
|
|
59
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
61
|
-
let baseOptions;
|
|
62
|
-
if (configuration) {
|
|
63
|
-
baseOptions = configuration.baseOptions;
|
|
64
|
-
}
|
|
65
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
66
|
-
const localVarHeaderParameter = {};
|
|
67
|
-
const localVarQueryParameter = {};
|
|
68
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
-
return {
|
|
72
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
-
options: localVarRequestOptions,
|
|
74
|
-
};
|
|
75
|
-
}),
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @param {*} [options] Override http request option.
|
|
79
|
-
* @throws {RequiredError}
|
|
80
|
-
*/
|
|
81
|
-
authControllerGetAuthStrategies: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
82
|
-
const localVarPath = `/api/v1/auth/auth-strategies`;
|
|
62
|
+
authControllerGetProviders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
63
|
+
const localVarPath = `/api/v1/auth/providers`;
|
|
83
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
65
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
66
|
let baseOptions;
|
|
@@ -99,11 +80,12 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
99
80
|
}),
|
|
100
81
|
/**
|
|
101
82
|
*
|
|
83
|
+
* @summary Initiate Google OAuth flow
|
|
102
84
|
* @param {*} [options] Override http request option.
|
|
103
85
|
* @throws {RequiredError}
|
|
104
86
|
*/
|
|
105
|
-
|
|
106
|
-
const localVarPath = `/api/v1/auth/
|
|
87
|
+
authControllerGoogleAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
88
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
107
89
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
90
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
109
91
|
let baseOptions;
|
|
@@ -123,11 +105,12 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
123
105
|
}),
|
|
124
106
|
/**
|
|
125
107
|
*
|
|
108
|
+
* @summary Handle Google OAuth callback
|
|
126
109
|
* @param {*} [options] Override http request option.
|
|
127
110
|
* @throws {RequiredError}
|
|
128
111
|
*/
|
|
129
|
-
|
|
130
|
-
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
112
|
+
authControllerGoogleCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
113
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
131
114
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
132
115
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
133
116
|
let baseOptions;
|
|
@@ -147,11 +130,12 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
147
130
|
}),
|
|
148
131
|
/**
|
|
149
132
|
*
|
|
133
|
+
* @summary Auth service health check
|
|
150
134
|
* @param {*} [options] Override http request option.
|
|
151
135
|
* @throws {RequiredError}
|
|
152
136
|
*/
|
|
153
|
-
|
|
154
|
-
const localVarPath = `/api/v1/auth/
|
|
137
|
+
authControllerHealthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
138
|
+
const localVarPath = `/api/v1/auth/health`;
|
|
155
139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
140
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
141
|
let baseOptions;
|
|
@@ -171,6 +155,7 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
171
155
|
}),
|
|
172
156
|
/**
|
|
173
157
|
*
|
|
158
|
+
* @summary Link OAuth provider to existing account
|
|
174
159
|
* @param {object} body
|
|
175
160
|
* @param {*} [options] Override http request option.
|
|
176
161
|
* @throws {RequiredError}
|
|
@@ -200,6 +185,7 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
200
185
|
}),
|
|
201
186
|
/**
|
|
202
187
|
*
|
|
188
|
+
* @summary User login with email and password
|
|
203
189
|
* @param {object} body
|
|
204
190
|
* @param {*} [options] Override http request option.
|
|
205
191
|
* @throws {RequiredError}
|
|
@@ -229,6 +215,7 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
229
215
|
}),
|
|
230
216
|
/**
|
|
231
217
|
*
|
|
218
|
+
* @summary Logout user and clear session
|
|
232
219
|
* @param {*} [options] Override http request option.
|
|
233
220
|
* @throws {RequiredError}
|
|
234
221
|
*/
|
|
@@ -253,30 +240,7 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
253
240
|
}),
|
|
254
241
|
/**
|
|
255
242
|
*
|
|
256
|
-
* @
|
|
257
|
-
* @throws {RequiredError}
|
|
258
|
-
*/
|
|
259
|
-
authControllerMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
260
|
-
const localVarPath = `/api/v1/auth/me`;
|
|
261
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
|
-
let baseOptions;
|
|
264
|
-
if (configuration) {
|
|
265
|
-
baseOptions = configuration.baseOptions;
|
|
266
|
-
}
|
|
267
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
268
|
-
const localVarHeaderParameter = {};
|
|
269
|
-
const localVarQueryParameter = {};
|
|
270
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
271
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
273
|
-
return {
|
|
274
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
275
|
-
options: localVarRequestOptions,
|
|
276
|
-
};
|
|
277
|
-
}),
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
243
|
+
* @summary Refresh access token using refresh token
|
|
280
244
|
* @param {*} [options] Override http request option.
|
|
281
245
|
* @throws {RequiredError}
|
|
282
246
|
*/
|
|
@@ -301,6 +265,7 @@ const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
301
265
|
}),
|
|
302
266
|
/**
|
|
303
267
|
*
|
|
268
|
+
* @summary Register a new user account
|
|
304
269
|
* @param {object} body
|
|
305
270
|
* @param {*} [options] Override http request option.
|
|
306
271
|
* @throws {RequiredError}
|
|
@@ -340,76 +305,67 @@ const ApiV1AuthApiFp = function (configuration) {
|
|
|
340
305
|
return {
|
|
341
306
|
/**
|
|
342
307
|
*
|
|
308
|
+
* @summary Get linked OAuth providers for current user
|
|
343
309
|
* @param {*} [options] Override http request option.
|
|
344
310
|
* @throws {RequiredError}
|
|
345
311
|
*/
|
|
346
|
-
|
|
347
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
-
var _a, _b, _c;
|
|
349
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDevLogin(options);
|
|
350
|
-
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.authControllerDevLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
352
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
353
|
-
});
|
|
354
|
-
},
|
|
355
|
-
/**
|
|
356
|
-
*
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
*/
|
|
360
|
-
authControllerGetAuthStrategies(options) {
|
|
312
|
+
authControllerGetProviders(options) {
|
|
361
313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
362
314
|
var _a, _b, _c;
|
|
363
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGetProviders(options);
|
|
364
316
|
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.
|
|
317
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGetProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
366
318
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
319
|
});
|
|
368
320
|
},
|
|
369
321
|
/**
|
|
370
322
|
*
|
|
323
|
+
* @summary Initiate Google OAuth flow
|
|
371
324
|
* @param {*} [options] Override http request option.
|
|
372
325
|
* @throws {RequiredError}
|
|
373
326
|
*/
|
|
374
|
-
|
|
327
|
+
authControllerGoogleAuth(options) {
|
|
375
328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
376
329
|
var _a, _b, _c;
|
|
377
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleAuth(options);
|
|
378
331
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
379
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.
|
|
332
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGoogleAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
380
333
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
381
334
|
});
|
|
382
335
|
},
|
|
383
336
|
/**
|
|
384
337
|
*
|
|
338
|
+
* @summary Handle Google OAuth callback
|
|
385
339
|
* @param {*} [options] Override http request option.
|
|
386
340
|
* @throws {RequiredError}
|
|
387
341
|
*/
|
|
388
|
-
|
|
342
|
+
authControllerGoogleCallback(options) {
|
|
389
343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
390
344
|
var _a, _b, _c;
|
|
391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
345
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleCallback(options);
|
|
392
346
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
393
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.
|
|
347
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
394
348
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
395
349
|
});
|
|
396
350
|
},
|
|
397
351
|
/**
|
|
398
352
|
*
|
|
353
|
+
* @summary Auth service health check
|
|
399
354
|
* @param {*} [options] Override http request option.
|
|
400
355
|
* @throws {RequiredError}
|
|
401
356
|
*/
|
|
402
|
-
|
|
357
|
+
authControllerHealthCheck(options) {
|
|
403
358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
404
359
|
var _a, _b, _c;
|
|
405
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerHealthCheck(options);
|
|
406
361
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
407
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1AuthApi.
|
|
362
|
+
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;
|
|
408
363
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
409
364
|
});
|
|
410
365
|
},
|
|
411
366
|
/**
|
|
412
367
|
*
|
|
368
|
+
* @summary Link OAuth provider to existing account
|
|
413
369
|
* @param {object} body
|
|
414
370
|
* @param {*} [options] Override http request option.
|
|
415
371
|
* @throws {RequiredError}
|
|
@@ -425,6 +381,7 @@ const ApiV1AuthApiFp = function (configuration) {
|
|
|
425
381
|
},
|
|
426
382
|
/**
|
|
427
383
|
*
|
|
384
|
+
* @summary User login with email and password
|
|
428
385
|
* @param {object} body
|
|
429
386
|
* @param {*} [options] Override http request option.
|
|
430
387
|
* @throws {RequiredError}
|
|
@@ -440,6 +397,7 @@ const ApiV1AuthApiFp = function (configuration) {
|
|
|
440
397
|
},
|
|
441
398
|
/**
|
|
442
399
|
*
|
|
400
|
+
* @summary Logout user and clear session
|
|
443
401
|
* @param {*} [options] Override http request option.
|
|
444
402
|
* @throws {RequiredError}
|
|
445
403
|
*/
|
|
@@ -454,20 +412,7 @@ const ApiV1AuthApiFp = function (configuration) {
|
|
|
454
412
|
},
|
|
455
413
|
/**
|
|
456
414
|
*
|
|
457
|
-
* @
|
|
458
|
-
* @throws {RequiredError}
|
|
459
|
-
*/
|
|
460
|
-
authControllerMe(options) {
|
|
461
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
462
|
-
var _a, _b, _c;
|
|
463
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerMe(options);
|
|
464
|
-
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.authControllerMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
466
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
467
|
-
});
|
|
468
|
-
},
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
415
|
+
* @summary Refresh access token using refresh token
|
|
471
416
|
* @param {*} [options] Override http request option.
|
|
472
417
|
* @throws {RequiredError}
|
|
473
418
|
*/
|
|
@@ -482,6 +427,7 @@ const ApiV1AuthApiFp = function (configuration) {
|
|
|
482
427
|
},
|
|
483
428
|
/**
|
|
484
429
|
*
|
|
430
|
+
* @summary Register a new user account
|
|
485
431
|
* @param {object} body
|
|
486
432
|
* @param {*} [options] Override http request option.
|
|
487
433
|
* @throws {RequiredError}
|
|
@@ -507,22 +453,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
507
453
|
return {
|
|
508
454
|
/**
|
|
509
455
|
*
|
|
510
|
-
* @
|
|
511
|
-
* @throws {RequiredError}
|
|
512
|
-
*/
|
|
513
|
-
authControllerDevLogin(options) {
|
|
514
|
-
return localVarFp.authControllerDevLogin(options).then((request) => request(axios, basePath));
|
|
515
|
-
},
|
|
516
|
-
/**
|
|
517
|
-
*
|
|
518
|
-
* @param {*} [options] Override http request option.
|
|
519
|
-
* @throws {RequiredError}
|
|
520
|
-
*/
|
|
521
|
-
authControllerGetAuthStrategies(options) {
|
|
522
|
-
return localVarFp.authControllerGetAuthStrategies(options).then((request) => request(axios, basePath));
|
|
523
|
-
},
|
|
524
|
-
/**
|
|
525
|
-
*
|
|
456
|
+
* @summary Get linked OAuth providers for current user
|
|
526
457
|
* @param {*} [options] Override http request option.
|
|
527
458
|
* @throws {RequiredError}
|
|
528
459
|
*/
|
|
@@ -531,6 +462,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
531
462
|
},
|
|
532
463
|
/**
|
|
533
464
|
*
|
|
465
|
+
* @summary Initiate Google OAuth flow
|
|
534
466
|
* @param {*} [options] Override http request option.
|
|
535
467
|
* @throws {RequiredError}
|
|
536
468
|
*/
|
|
@@ -539,6 +471,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
539
471
|
},
|
|
540
472
|
/**
|
|
541
473
|
*
|
|
474
|
+
* @summary Handle Google OAuth callback
|
|
542
475
|
* @param {*} [options] Override http request option.
|
|
543
476
|
* @throws {RequiredError}
|
|
544
477
|
*/
|
|
@@ -547,6 +480,16 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
547
480
|
},
|
|
548
481
|
/**
|
|
549
482
|
*
|
|
483
|
+
* @summary Auth service health check
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
authControllerHealthCheck(options) {
|
|
488
|
+
return localVarFp.authControllerHealthCheck(options).then((request) => request(axios, basePath));
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @summary Link OAuth provider to existing account
|
|
550
493
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
551
494
|
* @param {*} [options] Override http request option.
|
|
552
495
|
* @throws {RequiredError}
|
|
@@ -556,6 +499,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
556
499
|
},
|
|
557
500
|
/**
|
|
558
501
|
*
|
|
502
|
+
* @summary User login with email and password
|
|
559
503
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
560
504
|
* @param {*} [options] Override http request option.
|
|
561
505
|
* @throws {RequiredError}
|
|
@@ -565,6 +509,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
565
509
|
},
|
|
566
510
|
/**
|
|
567
511
|
*
|
|
512
|
+
* @summary Logout user and clear session
|
|
568
513
|
* @param {*} [options] Override http request option.
|
|
569
514
|
* @throws {RequiredError}
|
|
570
515
|
*/
|
|
@@ -573,14 +518,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
573
518
|
},
|
|
574
519
|
/**
|
|
575
520
|
*
|
|
576
|
-
* @
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
authControllerMe(options) {
|
|
580
|
-
return localVarFp.authControllerMe(options).then((request) => request(axios, basePath));
|
|
581
|
-
},
|
|
582
|
-
/**
|
|
583
|
-
*
|
|
521
|
+
* @summary Refresh access token using refresh token
|
|
584
522
|
* @param {*} [options] Override http request option.
|
|
585
523
|
* @throws {RequiredError}
|
|
586
524
|
*/
|
|
@@ -589,6 +527,7 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
589
527
|
},
|
|
590
528
|
/**
|
|
591
529
|
*
|
|
530
|
+
* @summary Register a new user account
|
|
592
531
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
593
532
|
* @param {*} [options] Override http request option.
|
|
594
533
|
* @throws {RequiredError}
|
|
@@ -608,51 +547,47 @@ exports.ApiV1AuthApiFactory = ApiV1AuthApiFactory;
|
|
|
608
547
|
class ApiV1AuthApi extends base_1.BaseAPI {
|
|
609
548
|
/**
|
|
610
549
|
*
|
|
550
|
+
* @summary Get linked OAuth providers for current user
|
|
611
551
|
* @param {*} [options] Override http request option.
|
|
612
552
|
* @throws {RequiredError}
|
|
613
553
|
* @memberof ApiV1AuthApi
|
|
614
554
|
*/
|
|
615
|
-
|
|
616
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration).
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
*
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
* @memberof ApiV1AuthApi
|
|
623
|
-
*/
|
|
624
|
-
authControllerGetAuthStrategies(options) {
|
|
625
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetAuthStrategies(options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
authControllerGetProviders(options) {
|
|
556
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
626
557
|
}
|
|
627
558
|
/**
|
|
628
559
|
*
|
|
560
|
+
* @summary Initiate Google OAuth flow
|
|
629
561
|
* @param {*} [options] Override http request option.
|
|
630
562
|
* @throws {RequiredError}
|
|
631
563
|
* @memberof ApiV1AuthApi
|
|
632
564
|
*/
|
|
633
|
-
|
|
634
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration).
|
|
565
|
+
authControllerGoogleAuth(options) {
|
|
566
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
|
|
635
567
|
}
|
|
636
568
|
/**
|
|
637
569
|
*
|
|
570
|
+
* @summary Handle Google OAuth callback
|
|
638
571
|
* @param {*} [options] Override http request option.
|
|
639
572
|
* @throws {RequiredError}
|
|
640
573
|
* @memberof ApiV1AuthApi
|
|
641
574
|
*/
|
|
642
|
-
|
|
643
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration).
|
|
575
|
+
authControllerGoogleCallback(options) {
|
|
576
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
|
|
644
577
|
}
|
|
645
578
|
/**
|
|
646
579
|
*
|
|
580
|
+
* @summary Auth service health check
|
|
647
581
|
* @param {*} [options] Override http request option.
|
|
648
582
|
* @throws {RequiredError}
|
|
649
583
|
* @memberof ApiV1AuthApi
|
|
650
584
|
*/
|
|
651
|
-
|
|
652
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration).
|
|
585
|
+
authControllerHealthCheck(options) {
|
|
586
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
653
587
|
}
|
|
654
588
|
/**
|
|
655
589
|
*
|
|
590
|
+
* @summary Link OAuth provider to existing account
|
|
656
591
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
657
592
|
* @param {*} [options] Override http request option.
|
|
658
593
|
* @throws {RequiredError}
|
|
@@ -663,6 +598,7 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
663
598
|
}
|
|
664
599
|
/**
|
|
665
600
|
*
|
|
601
|
+
* @summary User login with email and password
|
|
666
602
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
667
603
|
* @param {*} [options] Override http request option.
|
|
668
604
|
* @throws {RequiredError}
|
|
@@ -673,6 +609,7 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
673
609
|
}
|
|
674
610
|
/**
|
|
675
611
|
*
|
|
612
|
+
* @summary Logout user and clear session
|
|
676
613
|
* @param {*} [options] Override http request option.
|
|
677
614
|
* @throws {RequiredError}
|
|
678
615
|
* @memberof ApiV1AuthApi
|
|
@@ -682,15 +619,7 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
682
619
|
}
|
|
683
620
|
/**
|
|
684
621
|
*
|
|
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
|
-
*
|
|
622
|
+
* @summary Refresh access token using refresh token
|
|
694
623
|
* @param {*} [options] Override http request option.
|
|
695
624
|
* @throws {RequiredError}
|
|
696
625
|
* @memberof ApiV1AuthApi
|
|
@@ -700,6 +629,7 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
700
629
|
}
|
|
701
630
|
/**
|
|
702
631
|
*
|
|
632
|
+
* @summary Register a new user account
|
|
703
633
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
704
634
|
* @param {*} [options] Override http request option.
|
|
705
635
|
* @throws {RequiredError}
|
|
@@ -711,30 +641,66 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
711
641
|
}
|
|
712
642
|
exports.ApiV1AuthApi = ApiV1AuthApi;
|
|
713
643
|
/**
|
|
714
|
-
*
|
|
644
|
+
* ApiV1SsoApi - axios parameter creator
|
|
715
645
|
* @export
|
|
716
646
|
*/
|
|
717
|
-
const
|
|
647
|
+
const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
718
648
|
return {
|
|
719
649
|
/**
|
|
720
|
-
*
|
|
650
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
651
|
+
* @summary Generate an authorization code for SSO authentication
|
|
652
|
+
* @param {object} body
|
|
721
653
|
* @param {*} [options] Override http request option.
|
|
722
654
|
* @throws {RequiredError}
|
|
723
655
|
*/
|
|
724
|
-
|
|
725
|
-
|
|
656
|
+
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
657
|
+
// verify required parameter 'body' is not null or undefined
|
|
658
|
+
(0, common_1.assertParamExists)('ssoControllerGenerateLocalCode', 'body', body);
|
|
659
|
+
const localVarPath = `/api/v1/sso/generate-code`;
|
|
726
660
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
727
661
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
728
662
|
let baseOptions;
|
|
729
663
|
if (configuration) {
|
|
730
664
|
baseOptions = configuration.baseOptions;
|
|
731
665
|
}
|
|
732
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
667
|
+
const localVarHeaderParameter = {};
|
|
668
|
+
const localVarQueryParameter = {};
|
|
669
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
670
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
671
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
672
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
673
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
674
|
+
return {
|
|
675
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
676
|
+
options: localVarRequestOptions,
|
|
677
|
+
};
|
|
678
|
+
}),
|
|
679
|
+
/**
|
|
680
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
681
|
+
* @summary Validate and consume an authorization code
|
|
682
|
+
* @param {object} body
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
687
|
+
// verify required parameter 'body' is not null or undefined
|
|
688
|
+
(0, common_1.assertParamExists)('ssoControllerValidateCode', 'body', body);
|
|
689
|
+
const localVarPath = `/api/v1/sso/validate`;
|
|
690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
691
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
692
|
+
let baseOptions;
|
|
693
|
+
if (configuration) {
|
|
694
|
+
baseOptions = configuration.baseOptions;
|
|
695
|
+
}
|
|
696
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
733
697
|
const localVarHeaderParameter = {};
|
|
734
698
|
const localVarQueryParameter = {};
|
|
699
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
735
700
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
736
701
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
737
702
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
703
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
738
704
|
return {
|
|
739
705
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
740
706
|
options: localVarRequestOptions,
|
|
@@ -742,91 +708,391 @@ const ApiV1UserApiAxiosParamCreator = function (configuration) {
|
|
|
742
708
|
}),
|
|
743
709
|
};
|
|
744
710
|
};
|
|
745
|
-
exports.
|
|
711
|
+
exports.ApiV1SsoApiAxiosParamCreator = ApiV1SsoApiAxiosParamCreator;
|
|
746
712
|
/**
|
|
747
|
-
*
|
|
713
|
+
* ApiV1SsoApi - functional programming interface
|
|
748
714
|
* @export
|
|
749
715
|
*/
|
|
750
|
-
const
|
|
751
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
716
|
+
const ApiV1SsoApiFp = function (configuration) {
|
|
717
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1SsoApiAxiosParamCreator)(configuration);
|
|
752
718
|
return {
|
|
753
719
|
/**
|
|
754
|
-
*
|
|
720
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
721
|
+
* @summary Generate an authorization code for SSO authentication
|
|
722
|
+
* @param {object} body
|
|
755
723
|
* @param {*} [options] Override http request option.
|
|
756
724
|
* @throws {RequiredError}
|
|
757
725
|
*/
|
|
758
|
-
|
|
726
|
+
ssoControllerGenerateLocalCode(body, options) {
|
|
759
727
|
return __awaiter(this, void 0, void 0, function* () {
|
|
760
728
|
var _a, _b, _c;
|
|
761
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
729
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
762
730
|
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['
|
|
731
|
+
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;
|
|
732
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
733
|
+
});
|
|
734
|
+
},
|
|
735
|
+
/**
|
|
736
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
737
|
+
* @summary Validate and consume an authorization code
|
|
738
|
+
* @param {object} body
|
|
739
|
+
* @param {*} [options] Override http request option.
|
|
740
|
+
* @throws {RequiredError}
|
|
741
|
+
*/
|
|
742
|
+
ssoControllerValidateCode(body, options) {
|
|
743
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
744
|
+
var _a, _b, _c;
|
|
745
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
746
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
747
|
+
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
748
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
765
749
|
});
|
|
766
750
|
},
|
|
767
751
|
};
|
|
768
752
|
};
|
|
769
|
-
exports.
|
|
753
|
+
exports.ApiV1SsoApiFp = ApiV1SsoApiFp;
|
|
770
754
|
/**
|
|
771
|
-
*
|
|
755
|
+
* ApiV1SsoApi - factory interface
|
|
772
756
|
* @export
|
|
773
757
|
*/
|
|
774
|
-
const
|
|
775
|
-
const localVarFp = (0, exports.
|
|
758
|
+
const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
759
|
+
const localVarFp = (0, exports.ApiV1SsoApiFp)(configuration);
|
|
776
760
|
return {
|
|
777
761
|
/**
|
|
778
|
-
*
|
|
762
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
763
|
+
* @summary Generate an authorization code for SSO authentication
|
|
764
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
779
765
|
* @param {*} [options] Override http request option.
|
|
780
766
|
* @throws {RequiredError}
|
|
781
767
|
*/
|
|
782
|
-
|
|
783
|
-
return localVarFp.
|
|
768
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
769
|
+
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
770
|
+
},
|
|
771
|
+
/**
|
|
772
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
773
|
+
* @summary Validate and consume an authorization code
|
|
774
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
779
|
+
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
784
780
|
},
|
|
785
781
|
};
|
|
786
782
|
};
|
|
787
|
-
exports.
|
|
783
|
+
exports.ApiV1SsoApiFactory = ApiV1SsoApiFactory;
|
|
788
784
|
/**
|
|
789
|
-
*
|
|
785
|
+
* ApiV1SsoApi - object-oriented interface
|
|
790
786
|
* @export
|
|
791
|
-
* @class
|
|
787
|
+
* @class ApiV1SsoApi
|
|
792
788
|
* @extends {BaseAPI}
|
|
793
789
|
*/
|
|
794
|
-
class
|
|
790
|
+
class ApiV1SsoApi extends base_1.BaseAPI {
|
|
795
791
|
/**
|
|
796
|
-
*
|
|
792
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
793
|
+
* @summary Generate an authorization code for SSO authentication
|
|
794
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
797
795
|
* @param {*} [options] Override http request option.
|
|
798
796
|
* @throws {RequiredError}
|
|
799
|
-
* @memberof
|
|
797
|
+
* @memberof ApiV1SsoApi
|
|
800
798
|
*/
|
|
801
|
-
|
|
802
|
-
return (0, exports.
|
|
799
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
800
|
+
return (0, exports.ApiV1SsoApiFp)(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
804
|
+
* @summary Validate and consume an authorization code
|
|
805
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof ApiV1SsoApi
|
|
809
|
+
*/
|
|
810
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
811
|
+
return (0, exports.ApiV1SsoApiFp)(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
803
812
|
}
|
|
804
813
|
}
|
|
805
|
-
exports.
|
|
814
|
+
exports.ApiV1SsoApi = ApiV1SsoApi;
|
|
806
815
|
/**
|
|
807
|
-
*
|
|
816
|
+
* ApiV1UserApi - axios parameter creator
|
|
808
817
|
* @export
|
|
809
818
|
*/
|
|
810
|
-
const
|
|
819
|
+
const ApiV1UserApiAxiosParamCreator = function (configuration) {
|
|
811
820
|
return {
|
|
812
821
|
/**
|
|
813
822
|
*
|
|
814
|
-
* @summary
|
|
815
|
-
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
823
|
+
* @summary Get current user
|
|
816
824
|
* @param {*} [options] Override http request option.
|
|
817
825
|
* @throws {RequiredError}
|
|
818
826
|
*/
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
(0, common_1.assertParamExists)('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest);
|
|
822
|
-
const localVarPath = `/api/v1/workers/batch`;
|
|
827
|
+
userControllerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
828
|
+
const localVarPath = `/api/v1/user/info`;
|
|
823
829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
824
830
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
825
831
|
let baseOptions;
|
|
826
832
|
if (configuration) {
|
|
827
833
|
baseOptions = configuration.baseOptions;
|
|
828
834
|
}
|
|
829
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
835
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
836
|
+
const localVarHeaderParameter = {};
|
|
837
|
+
const localVarQueryParameter = {};
|
|
838
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
839
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
840
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
841
|
+
return {
|
|
842
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
843
|
+
options: localVarRequestOptions,
|
|
844
|
+
};
|
|
845
|
+
}),
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
exports.ApiV1UserApiAxiosParamCreator = ApiV1UserApiAxiosParamCreator;
|
|
849
|
+
/**
|
|
850
|
+
* ApiV1UserApi - functional programming interface
|
|
851
|
+
* @export
|
|
852
|
+
*/
|
|
853
|
+
const ApiV1UserApiFp = function (configuration) {
|
|
854
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1UserApiAxiosParamCreator)(configuration);
|
|
855
|
+
return {
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary Get current user
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
*/
|
|
862
|
+
userControllerInfo(options) {
|
|
863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
864
|
+
var _a, _b, _c;
|
|
865
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerInfo(options);
|
|
866
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
867
|
+
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;
|
|
868
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
869
|
+
});
|
|
870
|
+
},
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
exports.ApiV1UserApiFp = ApiV1UserApiFp;
|
|
874
|
+
/**
|
|
875
|
+
* ApiV1UserApi - factory interface
|
|
876
|
+
* @export
|
|
877
|
+
*/
|
|
878
|
+
const ApiV1UserApiFactory = function (configuration, basePath, axios) {
|
|
879
|
+
const localVarFp = (0, exports.ApiV1UserApiFp)(configuration);
|
|
880
|
+
return {
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @summary Get current user
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
userControllerInfo(options) {
|
|
888
|
+
return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
|
|
889
|
+
},
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
exports.ApiV1UserApiFactory = ApiV1UserApiFactory;
|
|
893
|
+
/**
|
|
894
|
+
* ApiV1UserApi - object-oriented interface
|
|
895
|
+
* @export
|
|
896
|
+
* @class ApiV1UserApi
|
|
897
|
+
* @extends {BaseAPI}
|
|
898
|
+
*/
|
|
899
|
+
class ApiV1UserApi extends base_1.BaseAPI {
|
|
900
|
+
/**
|
|
901
|
+
*
|
|
902
|
+
* @summary Get current user
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
* @memberof ApiV1UserApi
|
|
906
|
+
*/
|
|
907
|
+
userControllerInfo(options) {
|
|
908
|
+
return (0, exports.ApiV1UserApiFp)(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
exports.ApiV1UserApi = ApiV1UserApi;
|
|
912
|
+
/**
|
|
913
|
+
* ApiV1UserSettingsApi - axios parameter creator
|
|
914
|
+
* @export
|
|
915
|
+
*/
|
|
916
|
+
const ApiV1UserSettingsApiAxiosParamCreator = function (configuration) {
|
|
917
|
+
return {
|
|
918
|
+
/**
|
|
919
|
+
*
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
userSettingsControllerGetSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
924
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
925
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
926
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
927
|
+
let baseOptions;
|
|
928
|
+
if (configuration) {
|
|
929
|
+
baseOptions = configuration.baseOptions;
|
|
930
|
+
}
|
|
931
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
932
|
+
const localVarHeaderParameter = {};
|
|
933
|
+
const localVarQueryParameter = {};
|
|
934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
937
|
+
return {
|
|
938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
939
|
+
options: localVarRequestOptions,
|
|
940
|
+
};
|
|
941
|
+
}),
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @summary Update settings for user
|
|
945
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
userSettingsControllerUpdateSettings: (userSettingsUpdateDto_1, ...args_1) => __awaiter(this, [userSettingsUpdateDto_1, ...args_1], void 0, function* (userSettingsUpdateDto, options = {}) {
|
|
950
|
+
// verify required parameter 'userSettingsUpdateDto' is not null or undefined
|
|
951
|
+
(0, common_1.assertParamExists)('userSettingsControllerUpdateSettings', 'userSettingsUpdateDto', userSettingsUpdateDto);
|
|
952
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
954
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
955
|
+
let baseOptions;
|
|
956
|
+
if (configuration) {
|
|
957
|
+
baseOptions = configuration.baseOptions;
|
|
958
|
+
}
|
|
959
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
960
|
+
const localVarHeaderParameter = {};
|
|
961
|
+
const localVarQueryParameter = {};
|
|
962
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
963
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
965
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
966
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userSettingsUpdateDto, localVarRequestOptions, configuration);
|
|
967
|
+
return {
|
|
968
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
969
|
+
options: localVarRequestOptions,
|
|
970
|
+
};
|
|
971
|
+
}),
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
exports.ApiV1UserSettingsApiAxiosParamCreator = ApiV1UserSettingsApiAxiosParamCreator;
|
|
975
|
+
/**
|
|
976
|
+
* ApiV1UserSettingsApi - functional programming interface
|
|
977
|
+
* @export
|
|
978
|
+
*/
|
|
979
|
+
const ApiV1UserSettingsApiFp = function (configuration) {
|
|
980
|
+
const localVarAxiosParamCreator = (0, exports.ApiV1UserSettingsApiAxiosParamCreator)(configuration);
|
|
981
|
+
return {
|
|
982
|
+
/**
|
|
983
|
+
*
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
userSettingsControllerGetSettings(options) {
|
|
988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
989
|
+
var _a, _b, _c;
|
|
990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerGetSettings(options);
|
|
991
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
992
|
+
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;
|
|
993
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
|
+
});
|
|
995
|
+
},
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @summary Update settings for user
|
|
999
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
userSettingsControllerUpdateSettings(userSettingsUpdateDto, options) {
|
|
1004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1005
|
+
var _a, _b, _c;
|
|
1006
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerUpdateSettings(userSettingsUpdateDto, options);
|
|
1007
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1008
|
+
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;
|
|
1009
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1010
|
+
});
|
|
1011
|
+
},
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
exports.ApiV1UserSettingsApiFp = ApiV1UserSettingsApiFp;
|
|
1015
|
+
/**
|
|
1016
|
+
* ApiV1UserSettingsApi - factory interface
|
|
1017
|
+
* @export
|
|
1018
|
+
*/
|
|
1019
|
+
const ApiV1UserSettingsApiFactory = function (configuration, basePath, axios) {
|
|
1020
|
+
const localVarFp = (0, exports.ApiV1UserSettingsApiFp)(configuration);
|
|
1021
|
+
return {
|
|
1022
|
+
/**
|
|
1023
|
+
*
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
*/
|
|
1027
|
+
userSettingsControllerGetSettings(options) {
|
|
1028
|
+
return localVarFp.userSettingsControllerGetSettings(options).then((request) => request(axios, basePath));
|
|
1029
|
+
},
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @summary Update settings for user
|
|
1033
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
*/
|
|
1037
|
+
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
1038
|
+
return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
|
|
1039
|
+
},
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
exports.ApiV1UserSettingsApiFactory = ApiV1UserSettingsApiFactory;
|
|
1043
|
+
/**
|
|
1044
|
+
* ApiV1UserSettingsApi - object-oriented interface
|
|
1045
|
+
* @export
|
|
1046
|
+
* @class ApiV1UserSettingsApi
|
|
1047
|
+
* @extends {BaseAPI}
|
|
1048
|
+
*/
|
|
1049
|
+
class ApiV1UserSettingsApi extends base_1.BaseAPI {
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @param {*} [options] Override http request option.
|
|
1053
|
+
* @throws {RequiredError}
|
|
1054
|
+
* @memberof ApiV1UserSettingsApi
|
|
1055
|
+
*/
|
|
1056
|
+
userSettingsControllerGetSettings(options) {
|
|
1057
|
+
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
*
|
|
1061
|
+
* @summary Update settings for user
|
|
1062
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
* @memberof ApiV1UserSettingsApi
|
|
1066
|
+
*/
|
|
1067
|
+
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
1068
|
+
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
exports.ApiV1UserSettingsApi = ApiV1UserSettingsApi;
|
|
1072
|
+
/**
|
|
1073
|
+
* ApiV1WorkersApi - axios parameter creator
|
|
1074
|
+
* @export
|
|
1075
|
+
*/
|
|
1076
|
+
const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
1077
|
+
return {
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
* @summary Delete multiple workers by IDs
|
|
1081
|
+
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
*/
|
|
1085
|
+
workerControllerBatchDeleteWorkers: (workerControllerBatchDeleteWorkersRequest_1, ...args_1) => __awaiter(this, [workerControllerBatchDeleteWorkersRequest_1, ...args_1], void 0, function* (workerControllerBatchDeleteWorkersRequest, options = {}) {
|
|
1086
|
+
// verify required parameter 'workerControllerBatchDeleteWorkersRequest' is not null or undefined
|
|
1087
|
+
(0, common_1.assertParamExists)('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest);
|
|
1088
|
+
const localVarPath = `/api/v1/workers/batch`;
|
|
1089
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1090
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1091
|
+
let baseOptions;
|
|
1092
|
+
if (configuration) {
|
|
1093
|
+
baseOptions = configuration.baseOptions;
|
|
1094
|
+
}
|
|
1095
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
830
1096
|
const localVarHeaderParameter = {};
|
|
831
1097
|
const localVarQueryParameter = {};
|
|
832
1098
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -898,6 +1164,35 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
898
1164
|
options: localVarRequestOptions,
|
|
899
1165
|
};
|
|
900
1166
|
}),
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @summary Create a worker secret
|
|
1170
|
+
* @param {string} id The ID of the worker
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
*/
|
|
1174
|
+
workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1175
|
+
// verify required parameter 'id' is not null or undefined
|
|
1176
|
+
(0, common_1.assertParamExists)('workerControllerGenerateWorkerSecret', 'id', id);
|
|
1177
|
+
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
1178
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1180
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1181
|
+
let baseOptions;
|
|
1182
|
+
if (configuration) {
|
|
1183
|
+
baseOptions = configuration.baseOptions;
|
|
1184
|
+
}
|
|
1185
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1186
|
+
const localVarHeaderParameter = {};
|
|
1187
|
+
const localVarQueryParameter = {};
|
|
1188
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1190
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1191
|
+
return {
|
|
1192
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1193
|
+
options: localVarRequestOptions,
|
|
1194
|
+
};
|
|
1195
|
+
}),
|
|
901
1196
|
/**
|
|
902
1197
|
*
|
|
903
1198
|
* @summary Get a worker by ID
|
|
@@ -1068,6 +1363,22 @@ const ApiV1WorkersApiFp = function (configuration) {
|
|
|
1068
1363
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1069
1364
|
});
|
|
1070
1365
|
},
|
|
1366
|
+
/**
|
|
1367
|
+
*
|
|
1368
|
+
* @summary Create a worker secret
|
|
1369
|
+
* @param {string} id The ID of the worker
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
*/
|
|
1373
|
+
workerControllerGenerateWorkerSecret(id, options) {
|
|
1374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1375
|
+
var _a, _b, _c;
|
|
1376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
1377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1378
|
+
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;
|
|
1379
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1380
|
+
});
|
|
1381
|
+
},
|
|
1071
1382
|
/**
|
|
1072
1383
|
*
|
|
1073
1384
|
* @summary Get a worker by ID
|
|
@@ -1162,6 +1473,16 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
1162
1473
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
1163
1474
|
return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1164
1475
|
},
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @summary Create a worker secret
|
|
1479
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
1480
|
+
* @param {*} [options] Override http request option.
|
|
1481
|
+
* @throws {RequiredError}
|
|
1482
|
+
*/
|
|
1483
|
+
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
1484
|
+
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1485
|
+
},
|
|
1165
1486
|
/**
|
|
1166
1487
|
*
|
|
1167
1488
|
* @summary Get a worker by ID
|
|
@@ -1235,6 +1556,17 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
1235
1556
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
1236
1557
|
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1237
1558
|
}
|
|
1559
|
+
/**
|
|
1560
|
+
*
|
|
1561
|
+
* @summary Create a worker secret
|
|
1562
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
1563
|
+
* @param {*} [options] Override http request option.
|
|
1564
|
+
* @throws {RequiredError}
|
|
1565
|
+
* @memberof ApiV1WorkersApi
|
|
1566
|
+
*/
|
|
1567
|
+
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
1568
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1569
|
+
}
|
|
1238
1570
|
/**
|
|
1239
1571
|
*
|
|
1240
1572
|
* @summary Get a worker by ID
|
|
@@ -1270,167 +1602,3 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
1270
1602
|
}
|
|
1271
1603
|
}
|
|
1272
1604
|
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;
|