@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/esm/api.js
CHANGED
|
@@ -26,12 +26,16 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const UIPreferencesDtoThemeEnum = {
|
|
30
|
+
Light: 'light',
|
|
31
|
+
Dark: 'dark'
|
|
32
|
+
};
|
|
29
33
|
export const WorkerSortByDtoFieldEnum = {
|
|
30
34
|
Id: 'id',
|
|
31
35
|
Url: 'url',
|
|
36
|
+
WebsocketUrl: 'websocketUrl',
|
|
32
37
|
Name: 'name',
|
|
33
|
-
|
|
34
|
-
IsSetupComplete: 'isSetupComplete',
|
|
38
|
+
ClientSecret: 'clientSecret',
|
|
35
39
|
CreatedAt: 'createdAt',
|
|
36
40
|
UpdatedAt: 'updatedAt',
|
|
37
41
|
UserId: 'userId'
|
|
@@ -48,35 +52,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
48
52
|
return {
|
|
49
53
|
/**
|
|
50
54
|
*
|
|
55
|
+
* @summary Get linked OAuth providers for current user
|
|
51
56
|
* @param {*} [options] Override http request option.
|
|
52
57
|
* @throws {RequiredError}
|
|
53
58
|
*/
|
|
54
|
-
|
|
55
|
-
const localVarPath = `/api/v1/auth/
|
|
56
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
-
let baseOptions;
|
|
59
|
-
if (configuration) {
|
|
60
|
-
baseOptions = configuration.baseOptions;
|
|
61
|
-
}
|
|
62
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
63
|
-
const localVarHeaderParameter = {};
|
|
64
|
-
const localVarQueryParameter = {};
|
|
65
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
68
|
-
return {
|
|
69
|
-
url: toPathString(localVarUrlObj),
|
|
70
|
-
options: localVarRequestOptions,
|
|
71
|
-
};
|
|
72
|
-
}),
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
*/
|
|
78
|
-
authControllerGetAuthStrategies: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
79
|
-
const localVarPath = `/api/v1/auth/auth-strategies`;
|
|
59
|
+
authControllerGetProviders: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
60
|
+
const localVarPath = `/api/v1/auth/providers`;
|
|
80
61
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
62
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82
63
|
let baseOptions;
|
|
@@ -96,11 +77,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
96
77
|
}),
|
|
97
78
|
/**
|
|
98
79
|
*
|
|
80
|
+
* @summary Initiate Google OAuth flow
|
|
99
81
|
* @param {*} [options] Override http request option.
|
|
100
82
|
* @throws {RequiredError}
|
|
101
83
|
*/
|
|
102
|
-
|
|
103
|
-
const localVarPath = `/api/v1/auth/
|
|
84
|
+
authControllerGoogleAuth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
85
|
+
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
104
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
87
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
88
|
let baseOptions;
|
|
@@ -120,11 +102,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
120
102
|
}),
|
|
121
103
|
/**
|
|
122
104
|
*
|
|
105
|
+
* @summary Handle Google OAuth callback
|
|
123
106
|
* @param {*} [options] Override http request option.
|
|
124
107
|
* @throws {RequiredError}
|
|
125
108
|
*/
|
|
126
|
-
|
|
127
|
-
const localVarPath = `/api/v1/auth/oauth/google`;
|
|
109
|
+
authControllerGoogleCallback: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
110
|
+
const localVarPath = `/api/v1/auth/oauth/google/callback`;
|
|
128
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
130
113
|
let baseOptions;
|
|
@@ -144,11 +127,12 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
144
127
|
}),
|
|
145
128
|
/**
|
|
146
129
|
*
|
|
130
|
+
* @summary Auth service health check
|
|
147
131
|
* @param {*} [options] Override http request option.
|
|
148
132
|
* @throws {RequiredError}
|
|
149
133
|
*/
|
|
150
|
-
|
|
151
|
-
const localVarPath = `/api/v1/auth/
|
|
134
|
+
authControllerHealthCheck: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
135
|
+
const localVarPath = `/api/v1/auth/health`;
|
|
152
136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
137
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
138
|
let baseOptions;
|
|
@@ -168,6 +152,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
168
152
|
}),
|
|
169
153
|
/**
|
|
170
154
|
*
|
|
155
|
+
* @summary Link OAuth provider to existing account
|
|
171
156
|
* @param {object} body
|
|
172
157
|
* @param {*} [options] Override http request option.
|
|
173
158
|
* @throws {RequiredError}
|
|
@@ -197,6 +182,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
197
182
|
}),
|
|
198
183
|
/**
|
|
199
184
|
*
|
|
185
|
+
* @summary User login with email and password
|
|
200
186
|
* @param {object} body
|
|
201
187
|
* @param {*} [options] Override http request option.
|
|
202
188
|
* @throws {RequiredError}
|
|
@@ -226,6 +212,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
226
212
|
}),
|
|
227
213
|
/**
|
|
228
214
|
*
|
|
215
|
+
* @summary Logout user and clear session
|
|
229
216
|
* @param {*} [options] Override http request option.
|
|
230
217
|
* @throws {RequiredError}
|
|
231
218
|
*/
|
|
@@ -250,30 +237,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
250
237
|
}),
|
|
251
238
|
/**
|
|
252
239
|
*
|
|
253
|
-
* @
|
|
254
|
-
* @throws {RequiredError}
|
|
255
|
-
*/
|
|
256
|
-
authControllerMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
257
|
-
const localVarPath = `/api/v1/auth/me`;
|
|
258
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
260
|
-
let baseOptions;
|
|
261
|
-
if (configuration) {
|
|
262
|
-
baseOptions = configuration.baseOptions;
|
|
263
|
-
}
|
|
264
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
-
const localVarHeaderParameter = {};
|
|
266
|
-
const localVarQueryParameter = {};
|
|
267
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
return {
|
|
271
|
-
url: toPathString(localVarUrlObj),
|
|
272
|
-
options: localVarRequestOptions,
|
|
273
|
-
};
|
|
274
|
-
}),
|
|
275
|
-
/**
|
|
276
|
-
*
|
|
240
|
+
* @summary Refresh access token using refresh token
|
|
277
241
|
* @param {*} [options] Override http request option.
|
|
278
242
|
* @throws {RequiredError}
|
|
279
243
|
*/
|
|
@@ -298,6 +262,7 @@ export const ApiV1AuthApiAxiosParamCreator = function (configuration) {
|
|
|
298
262
|
}),
|
|
299
263
|
/**
|
|
300
264
|
*
|
|
265
|
+
* @summary Register a new user account
|
|
301
266
|
* @param {object} body
|
|
302
267
|
* @param {*} [options] Override http request option.
|
|
303
268
|
* @throws {RequiredError}
|
|
@@ -336,76 +301,67 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
336
301
|
return {
|
|
337
302
|
/**
|
|
338
303
|
*
|
|
304
|
+
* @summary Get linked OAuth providers for current user
|
|
339
305
|
* @param {*} [options] Override http request option.
|
|
340
306
|
* @throws {RequiredError}
|
|
341
307
|
*/
|
|
342
|
-
|
|
343
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
-
var _a, _b, _c;
|
|
345
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerDevLogin(options);
|
|
346
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
347
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerDevLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
348
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
349
|
-
});
|
|
350
|
-
},
|
|
351
|
-
/**
|
|
352
|
-
*
|
|
353
|
-
* @param {*} [options] Override http request option.
|
|
354
|
-
* @throws {RequiredError}
|
|
355
|
-
*/
|
|
356
|
-
authControllerGetAuthStrategies(options) {
|
|
308
|
+
authControllerGetProviders(options) {
|
|
357
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
358
310
|
var _a, _b, _c;
|
|
359
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGetProviders(options);
|
|
360
312
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
361
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.
|
|
313
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGetProviders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
362
314
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
363
315
|
});
|
|
364
316
|
},
|
|
365
317
|
/**
|
|
366
318
|
*
|
|
319
|
+
* @summary Initiate Google OAuth flow
|
|
367
320
|
* @param {*} [options] Override http request option.
|
|
368
321
|
* @throws {RequiredError}
|
|
369
322
|
*/
|
|
370
|
-
|
|
323
|
+
authControllerGoogleAuth(options) {
|
|
371
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
325
|
var _a, _b, _c;
|
|
373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
326
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleAuth(options);
|
|
374
327
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
375
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.
|
|
328
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGoogleAuth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
376
329
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
377
330
|
});
|
|
378
331
|
},
|
|
379
332
|
/**
|
|
380
333
|
*
|
|
334
|
+
* @summary Handle Google OAuth callback
|
|
381
335
|
* @param {*} [options] Override http request option.
|
|
382
336
|
* @throws {RequiredError}
|
|
383
337
|
*/
|
|
384
|
-
|
|
338
|
+
authControllerGoogleCallback(options) {
|
|
385
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
386
340
|
var _a, _b, _c;
|
|
387
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerGoogleCallback(options);
|
|
388
342
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
389
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.
|
|
343
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerGoogleCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
390
344
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
391
345
|
});
|
|
392
346
|
},
|
|
393
347
|
/**
|
|
394
348
|
*
|
|
349
|
+
* @summary Auth service health check
|
|
395
350
|
* @param {*} [options] Override http request option.
|
|
396
351
|
* @throws {RequiredError}
|
|
397
352
|
*/
|
|
398
|
-
|
|
353
|
+
authControllerHealthCheck(options) {
|
|
399
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
400
355
|
var _a, _b, _c;
|
|
401
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerHealthCheck(options);
|
|
402
357
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
403
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.
|
|
358
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerHealthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
404
359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
405
360
|
});
|
|
406
361
|
},
|
|
407
362
|
/**
|
|
408
363
|
*
|
|
364
|
+
* @summary Link OAuth provider to existing account
|
|
409
365
|
* @param {object} body
|
|
410
366
|
* @param {*} [options] Override http request option.
|
|
411
367
|
* @throws {RequiredError}
|
|
@@ -421,6 +377,7 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
421
377
|
},
|
|
422
378
|
/**
|
|
423
379
|
*
|
|
380
|
+
* @summary User login with email and password
|
|
424
381
|
* @param {object} body
|
|
425
382
|
* @param {*} [options] Override http request option.
|
|
426
383
|
* @throws {RequiredError}
|
|
@@ -436,6 +393,7 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
436
393
|
},
|
|
437
394
|
/**
|
|
438
395
|
*
|
|
396
|
+
* @summary Logout user and clear session
|
|
439
397
|
* @param {*} [options] Override http request option.
|
|
440
398
|
* @throws {RequiredError}
|
|
441
399
|
*/
|
|
@@ -450,20 +408,7 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
450
408
|
},
|
|
451
409
|
/**
|
|
452
410
|
*
|
|
453
|
-
* @
|
|
454
|
-
* @throws {RequiredError}
|
|
455
|
-
*/
|
|
456
|
-
authControllerMe(options) {
|
|
457
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
var _a, _b, _c;
|
|
459
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authControllerMe(options);
|
|
460
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
461
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1AuthApi.authControllerMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
462
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
463
|
-
});
|
|
464
|
-
},
|
|
465
|
-
/**
|
|
466
|
-
*
|
|
411
|
+
* @summary Refresh access token using refresh token
|
|
467
412
|
* @param {*} [options] Override http request option.
|
|
468
413
|
* @throws {RequiredError}
|
|
469
414
|
*/
|
|
@@ -478,6 +423,7 @@ export const ApiV1AuthApiFp = function (configuration) {
|
|
|
478
423
|
},
|
|
479
424
|
/**
|
|
480
425
|
*
|
|
426
|
+
* @summary Register a new user account
|
|
481
427
|
* @param {object} body
|
|
482
428
|
* @param {*} [options] Override http request option.
|
|
483
429
|
* @throws {RequiredError}
|
|
@@ -502,22 +448,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
502
448
|
return {
|
|
503
449
|
/**
|
|
504
450
|
*
|
|
505
|
-
* @
|
|
506
|
-
* @throws {RequiredError}
|
|
507
|
-
*/
|
|
508
|
-
authControllerDevLogin(options) {
|
|
509
|
-
return localVarFp.authControllerDevLogin(options).then((request) => request(axios, basePath));
|
|
510
|
-
},
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* @param {*} [options] Override http request option.
|
|
514
|
-
* @throws {RequiredError}
|
|
515
|
-
*/
|
|
516
|
-
authControllerGetAuthStrategies(options) {
|
|
517
|
-
return localVarFp.authControllerGetAuthStrategies(options).then((request) => request(axios, basePath));
|
|
518
|
-
},
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
451
|
+
* @summary Get linked OAuth providers for current user
|
|
521
452
|
* @param {*} [options] Override http request option.
|
|
522
453
|
* @throws {RequiredError}
|
|
523
454
|
*/
|
|
@@ -526,6 +457,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
526
457
|
},
|
|
527
458
|
/**
|
|
528
459
|
*
|
|
460
|
+
* @summary Initiate Google OAuth flow
|
|
529
461
|
* @param {*} [options] Override http request option.
|
|
530
462
|
* @throws {RequiredError}
|
|
531
463
|
*/
|
|
@@ -534,6 +466,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
534
466
|
},
|
|
535
467
|
/**
|
|
536
468
|
*
|
|
469
|
+
* @summary Handle Google OAuth callback
|
|
537
470
|
* @param {*} [options] Override http request option.
|
|
538
471
|
* @throws {RequiredError}
|
|
539
472
|
*/
|
|
@@ -542,6 +475,16 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
542
475
|
},
|
|
543
476
|
/**
|
|
544
477
|
*
|
|
478
|
+
* @summary Auth service health check
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
authControllerHealthCheck(options) {
|
|
483
|
+
return localVarFp.authControllerHealthCheck(options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Link OAuth provider to existing account
|
|
545
488
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
546
489
|
* @param {*} [options] Override http request option.
|
|
547
490
|
* @throws {RequiredError}
|
|
@@ -551,6 +494,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
551
494
|
},
|
|
552
495
|
/**
|
|
553
496
|
*
|
|
497
|
+
* @summary User login with email and password
|
|
554
498
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
555
499
|
* @param {*} [options] Override http request option.
|
|
556
500
|
* @throws {RequiredError}
|
|
@@ -560,6 +504,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
560
504
|
},
|
|
561
505
|
/**
|
|
562
506
|
*
|
|
507
|
+
* @summary Logout user and clear session
|
|
563
508
|
* @param {*} [options] Override http request option.
|
|
564
509
|
* @throws {RequiredError}
|
|
565
510
|
*/
|
|
@@ -568,14 +513,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
568
513
|
},
|
|
569
514
|
/**
|
|
570
515
|
*
|
|
571
|
-
* @
|
|
572
|
-
* @throws {RequiredError}
|
|
573
|
-
*/
|
|
574
|
-
authControllerMe(options) {
|
|
575
|
-
return localVarFp.authControllerMe(options).then((request) => request(axios, basePath));
|
|
576
|
-
},
|
|
577
|
-
/**
|
|
578
|
-
*
|
|
516
|
+
* @summary Refresh access token using refresh token
|
|
579
517
|
* @param {*} [options] Override http request option.
|
|
580
518
|
* @throws {RequiredError}
|
|
581
519
|
*/
|
|
@@ -584,6 +522,7 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
584
522
|
},
|
|
585
523
|
/**
|
|
586
524
|
*
|
|
525
|
+
* @summary Register a new user account
|
|
587
526
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
588
527
|
* @param {*} [options] Override http request option.
|
|
589
528
|
* @throws {RequiredError}
|
|
@@ -602,51 +541,47 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
602
541
|
export class ApiV1AuthApi extends BaseAPI {
|
|
603
542
|
/**
|
|
604
543
|
*
|
|
544
|
+
* @summary Get linked OAuth providers for current user
|
|
605
545
|
* @param {*} [options] Override http request option.
|
|
606
546
|
* @throws {RequiredError}
|
|
607
547
|
* @memberof ApiV1AuthApi
|
|
608
548
|
*/
|
|
609
|
-
|
|
610
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
* @param {*} [options] Override http request option.
|
|
615
|
-
* @throws {RequiredError}
|
|
616
|
-
* @memberof ApiV1AuthApi
|
|
617
|
-
*/
|
|
618
|
-
authControllerGetAuthStrategies(options) {
|
|
619
|
-
return ApiV1AuthApiFp(this.configuration).authControllerGetAuthStrategies(options).then((request) => request(this.axios, this.basePath));
|
|
549
|
+
authControllerGetProviders(options) {
|
|
550
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGetProviders(options).then((request) => request(this.axios, this.basePath));
|
|
620
551
|
}
|
|
621
552
|
/**
|
|
622
553
|
*
|
|
554
|
+
* @summary Initiate Google OAuth flow
|
|
623
555
|
* @param {*} [options] Override http request option.
|
|
624
556
|
* @throws {RequiredError}
|
|
625
557
|
* @memberof ApiV1AuthApi
|
|
626
558
|
*/
|
|
627
|
-
|
|
628
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
559
|
+
authControllerGoogleAuth(options) {
|
|
560
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGoogleAuth(options).then((request) => request(this.axios, this.basePath));
|
|
629
561
|
}
|
|
630
562
|
/**
|
|
631
563
|
*
|
|
564
|
+
* @summary Handle Google OAuth callback
|
|
632
565
|
* @param {*} [options] Override http request option.
|
|
633
566
|
* @throws {RequiredError}
|
|
634
567
|
* @memberof ApiV1AuthApi
|
|
635
568
|
*/
|
|
636
|
-
|
|
637
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
569
|
+
authControllerGoogleCallback(options) {
|
|
570
|
+
return ApiV1AuthApiFp(this.configuration).authControllerGoogleCallback(options).then((request) => request(this.axios, this.basePath));
|
|
638
571
|
}
|
|
639
572
|
/**
|
|
640
573
|
*
|
|
574
|
+
* @summary Auth service health check
|
|
641
575
|
* @param {*} [options] Override http request option.
|
|
642
576
|
* @throws {RequiredError}
|
|
643
577
|
* @memberof ApiV1AuthApi
|
|
644
578
|
*/
|
|
645
|
-
|
|
646
|
-
return ApiV1AuthApiFp(this.configuration).
|
|
579
|
+
authControllerHealthCheck(options) {
|
|
580
|
+
return ApiV1AuthApiFp(this.configuration).authControllerHealthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
647
581
|
}
|
|
648
582
|
/**
|
|
649
583
|
*
|
|
584
|
+
* @summary Link OAuth provider to existing account
|
|
650
585
|
* @param {ApiV1AuthApiAuthControllerLinkProviderRequest} requestParameters Request parameters.
|
|
651
586
|
* @param {*} [options] Override http request option.
|
|
652
587
|
* @throws {RequiredError}
|
|
@@ -657,6 +592,7 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
657
592
|
}
|
|
658
593
|
/**
|
|
659
594
|
*
|
|
595
|
+
* @summary User login with email and password
|
|
660
596
|
* @param {ApiV1AuthApiAuthControllerLoginRequest} requestParameters Request parameters.
|
|
661
597
|
* @param {*} [options] Override http request option.
|
|
662
598
|
* @throws {RequiredError}
|
|
@@ -667,6 +603,7 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
667
603
|
}
|
|
668
604
|
/**
|
|
669
605
|
*
|
|
606
|
+
* @summary Logout user and clear session
|
|
670
607
|
* @param {*} [options] Override http request option.
|
|
671
608
|
* @throws {RequiredError}
|
|
672
609
|
* @memberof ApiV1AuthApi
|
|
@@ -676,15 +613,7 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
676
613
|
}
|
|
677
614
|
/**
|
|
678
615
|
*
|
|
679
|
-
* @
|
|
680
|
-
* @throws {RequiredError}
|
|
681
|
-
* @memberof ApiV1AuthApi
|
|
682
|
-
*/
|
|
683
|
-
authControllerMe(options) {
|
|
684
|
-
return ApiV1AuthApiFp(this.configuration).authControllerMe(options).then((request) => request(this.axios, this.basePath));
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
*
|
|
616
|
+
* @summary Refresh access token using refresh token
|
|
688
617
|
* @param {*} [options] Override http request option.
|
|
689
618
|
* @throws {RequiredError}
|
|
690
619
|
* @memberof ApiV1AuthApi
|
|
@@ -694,6 +623,7 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
694
623
|
}
|
|
695
624
|
/**
|
|
696
625
|
*
|
|
626
|
+
* @summary Register a new user account
|
|
697
627
|
* @param {ApiV1AuthApiAuthControllerRegisterRequest} requestParameters Request parameters.
|
|
698
628
|
* @param {*} [options] Override http request option.
|
|
699
629
|
* @throws {RequiredError}
|
|
@@ -704,30 +634,66 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
704
634
|
}
|
|
705
635
|
}
|
|
706
636
|
/**
|
|
707
|
-
*
|
|
637
|
+
* ApiV1SsoApi - axios parameter creator
|
|
708
638
|
* @export
|
|
709
639
|
*/
|
|
710
|
-
export const
|
|
640
|
+
export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
711
641
|
return {
|
|
712
642
|
/**
|
|
713
|
-
*
|
|
643
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
644
|
+
* @summary Generate an authorization code for SSO authentication
|
|
645
|
+
* @param {object} body
|
|
714
646
|
* @param {*} [options] Override http request option.
|
|
715
647
|
* @throws {RequiredError}
|
|
716
648
|
*/
|
|
717
|
-
|
|
718
|
-
|
|
649
|
+
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
650
|
+
// verify required parameter 'body' is not null or undefined
|
|
651
|
+
assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
|
|
652
|
+
const localVarPath = `/api/v1/sso/generate-code`;
|
|
719
653
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
720
654
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
721
655
|
let baseOptions;
|
|
722
656
|
if (configuration) {
|
|
723
657
|
baseOptions = configuration.baseOptions;
|
|
724
658
|
}
|
|
725
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
659
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
660
|
+
const localVarHeaderParameter = {};
|
|
661
|
+
const localVarQueryParameter = {};
|
|
662
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
666
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
667
|
+
return {
|
|
668
|
+
url: toPathString(localVarUrlObj),
|
|
669
|
+
options: localVarRequestOptions,
|
|
670
|
+
};
|
|
671
|
+
}),
|
|
672
|
+
/**
|
|
673
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
674
|
+
* @summary Validate and consume an authorization code
|
|
675
|
+
* @param {object} body
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
680
|
+
// verify required parameter 'body' is not null or undefined
|
|
681
|
+
assertParamExists('ssoControllerValidateCode', 'body', body);
|
|
682
|
+
const localVarPath = `/api/v1/sso/validate`;
|
|
683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
685
|
+
let baseOptions;
|
|
686
|
+
if (configuration) {
|
|
687
|
+
baseOptions = configuration.baseOptions;
|
|
688
|
+
}
|
|
689
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
726
690
|
const localVarHeaderParameter = {};
|
|
727
691
|
const localVarQueryParameter = {};
|
|
692
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
728
693
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
729
694
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
730
695
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
696
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
731
697
|
return {
|
|
732
698
|
url: toPathString(localVarUrlObj),
|
|
733
699
|
options: localVarRequestOptions,
|
|
@@ -736,99 +702,391 @@ export const ApiV1UserApiAxiosParamCreator = function (configuration) {
|
|
|
736
702
|
};
|
|
737
703
|
};
|
|
738
704
|
/**
|
|
739
|
-
*
|
|
705
|
+
* ApiV1SsoApi - functional programming interface
|
|
740
706
|
* @export
|
|
741
707
|
*/
|
|
742
|
-
export const
|
|
743
|
-
const localVarAxiosParamCreator =
|
|
708
|
+
export const ApiV1SsoApiFp = function (configuration) {
|
|
709
|
+
const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration);
|
|
744
710
|
return {
|
|
745
711
|
/**
|
|
746
|
-
*
|
|
712
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
713
|
+
* @summary Generate an authorization code for SSO authentication
|
|
714
|
+
* @param {object} body
|
|
747
715
|
* @param {*} [options] Override http request option.
|
|
748
716
|
* @throws {RequiredError}
|
|
749
717
|
*/
|
|
750
|
-
|
|
718
|
+
ssoControllerGenerateLocalCode(body, options) {
|
|
751
719
|
return __awaiter(this, void 0, void 0, function* () {
|
|
752
720
|
var _a, _b, _c;
|
|
753
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
754
722
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
755
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
723
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
724
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
|
+
});
|
|
726
|
+
},
|
|
727
|
+
/**
|
|
728
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
729
|
+
* @summary Validate and consume an authorization code
|
|
730
|
+
* @param {object} body
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
ssoControllerValidateCode(body, options) {
|
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
var _a, _b, _c;
|
|
737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
738
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
739
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
756
740
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
741
|
});
|
|
758
742
|
},
|
|
759
743
|
};
|
|
760
744
|
};
|
|
761
745
|
/**
|
|
762
|
-
*
|
|
746
|
+
* ApiV1SsoApi - factory interface
|
|
763
747
|
* @export
|
|
764
748
|
*/
|
|
765
|
-
export const
|
|
766
|
-
const localVarFp =
|
|
749
|
+
export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
750
|
+
const localVarFp = ApiV1SsoApiFp(configuration);
|
|
767
751
|
return {
|
|
768
752
|
/**
|
|
769
|
-
*
|
|
753
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
754
|
+
* @summary Generate an authorization code for SSO authentication
|
|
755
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
770
756
|
* @param {*} [options] Override http request option.
|
|
771
757
|
* @throws {RequiredError}
|
|
772
758
|
*/
|
|
773
|
-
|
|
774
|
-
return localVarFp.
|
|
759
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
760
|
+
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
761
|
+
},
|
|
762
|
+
/**
|
|
763
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
764
|
+
* @summary Validate and consume an authorization code
|
|
765
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
770
|
+
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
775
771
|
},
|
|
776
772
|
};
|
|
777
773
|
};
|
|
778
774
|
/**
|
|
779
|
-
*
|
|
775
|
+
* ApiV1SsoApi - object-oriented interface
|
|
780
776
|
* @export
|
|
781
|
-
* @class
|
|
777
|
+
* @class ApiV1SsoApi
|
|
782
778
|
* @extends {BaseAPI}
|
|
783
779
|
*/
|
|
784
|
-
export class
|
|
780
|
+
export class ApiV1SsoApi extends BaseAPI {
|
|
785
781
|
/**
|
|
786
|
-
*
|
|
782
|
+
* Generates a secure authorization code that can be used by worker services to authenticate users in a trusted server-to-server environment.
|
|
783
|
+
* @summary Generate an authorization code for SSO authentication
|
|
784
|
+
* @param {ApiV1SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
787
785
|
* @param {*} [options] Override http request option.
|
|
788
786
|
* @throws {RequiredError}
|
|
789
|
-
* @memberof
|
|
787
|
+
* @memberof ApiV1SsoApi
|
|
790
788
|
*/
|
|
791
|
-
|
|
792
|
-
return
|
|
789
|
+
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
790
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
794
|
+
* @summary Validate and consume an authorization code
|
|
795
|
+
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
* @memberof ApiV1SsoApi
|
|
799
|
+
*/
|
|
800
|
+
ssoControllerValidateCode(requestParameters, options) {
|
|
801
|
+
return ApiV1SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
793
802
|
}
|
|
794
803
|
}
|
|
795
804
|
/**
|
|
796
|
-
*
|
|
805
|
+
* ApiV1UserApi - axios parameter creator
|
|
797
806
|
* @export
|
|
798
807
|
*/
|
|
799
|
-
export const
|
|
808
|
+
export const ApiV1UserApiAxiosParamCreator = function (configuration) {
|
|
800
809
|
return {
|
|
801
810
|
/**
|
|
802
811
|
*
|
|
803
|
-
* @summary
|
|
804
|
-
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
812
|
+
* @summary Get current user
|
|
805
813
|
* @param {*} [options] Override http request option.
|
|
806
814
|
* @throws {RequiredError}
|
|
807
815
|
*/
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
assertParamExists('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest);
|
|
811
|
-
const localVarPath = `/api/v1/workers/batch`;
|
|
816
|
+
userControllerInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
817
|
+
const localVarPath = `/api/v1/user/info`;
|
|
812
818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
819
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
814
820
|
let baseOptions;
|
|
815
821
|
if (configuration) {
|
|
816
822
|
baseOptions = configuration.baseOptions;
|
|
817
823
|
}
|
|
818
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
824
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
819
825
|
const localVarHeaderParameter = {};
|
|
820
826
|
const localVarQueryParameter = {};
|
|
821
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
822
827
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
823
828
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
829
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
825
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workerControllerBatchDeleteWorkersRequest, localVarRequestOptions, configuration);
|
|
826
830
|
return {
|
|
827
831
|
url: toPathString(localVarUrlObj),
|
|
828
832
|
options: localVarRequestOptions,
|
|
829
833
|
};
|
|
830
834
|
}),
|
|
831
|
-
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
/**
|
|
838
|
+
* ApiV1UserApi - functional programming interface
|
|
839
|
+
* @export
|
|
840
|
+
*/
|
|
841
|
+
export const ApiV1UserApiFp = function (configuration) {
|
|
842
|
+
const localVarAxiosParamCreator = ApiV1UserApiAxiosParamCreator(configuration);
|
|
843
|
+
return {
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @summary Get current user
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
userControllerInfo(options) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
+
var _a, _b, _c;
|
|
853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userControllerInfo(options);
|
|
854
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
855
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserApi.userControllerInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
856
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
|
+
});
|
|
858
|
+
},
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* ApiV1UserApi - factory interface
|
|
863
|
+
* @export
|
|
864
|
+
*/
|
|
865
|
+
export const ApiV1UserApiFactory = function (configuration, basePath, axios) {
|
|
866
|
+
const localVarFp = ApiV1UserApiFp(configuration);
|
|
867
|
+
return {
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @summary Get current user
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
userControllerInfo(options) {
|
|
875
|
+
return localVarFp.userControllerInfo(options).then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* ApiV1UserApi - object-oriented interface
|
|
881
|
+
* @export
|
|
882
|
+
* @class ApiV1UserApi
|
|
883
|
+
* @extends {BaseAPI}
|
|
884
|
+
*/
|
|
885
|
+
export class ApiV1UserApi extends BaseAPI {
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @summary Get current user
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
* @memberof ApiV1UserApi
|
|
892
|
+
*/
|
|
893
|
+
userControllerInfo(options) {
|
|
894
|
+
return ApiV1UserApiFp(this.configuration).userControllerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* ApiV1UserSettingsApi - axios parameter creator
|
|
899
|
+
* @export
|
|
900
|
+
*/
|
|
901
|
+
export const ApiV1UserSettingsApiAxiosParamCreator = function (configuration) {
|
|
902
|
+
return {
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
userSettingsControllerGetSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
909
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
910
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
911
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
912
|
+
let baseOptions;
|
|
913
|
+
if (configuration) {
|
|
914
|
+
baseOptions = configuration.baseOptions;
|
|
915
|
+
}
|
|
916
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
917
|
+
const localVarHeaderParameter = {};
|
|
918
|
+
const localVarQueryParameter = {};
|
|
919
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
920
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
921
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
922
|
+
return {
|
|
923
|
+
url: toPathString(localVarUrlObj),
|
|
924
|
+
options: localVarRequestOptions,
|
|
925
|
+
};
|
|
926
|
+
}),
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @summary Update settings for user
|
|
930
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
userSettingsControllerUpdateSettings: (userSettingsUpdateDto_1, ...args_1) => __awaiter(this, [userSettingsUpdateDto_1, ...args_1], void 0, function* (userSettingsUpdateDto, options = {}) {
|
|
935
|
+
// verify required parameter 'userSettingsUpdateDto' is not null or undefined
|
|
936
|
+
assertParamExists('userSettingsControllerUpdateSettings', 'userSettingsUpdateDto', userSettingsUpdateDto);
|
|
937
|
+
const localVarPath = `/api/v1/user/settings`;
|
|
938
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
939
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
940
|
+
let baseOptions;
|
|
941
|
+
if (configuration) {
|
|
942
|
+
baseOptions = configuration.baseOptions;
|
|
943
|
+
}
|
|
944
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
945
|
+
const localVarHeaderParameter = {};
|
|
946
|
+
const localVarQueryParameter = {};
|
|
947
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
948
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
950
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
951
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userSettingsUpdateDto, localVarRequestOptions, configuration);
|
|
952
|
+
return {
|
|
953
|
+
url: toPathString(localVarUrlObj),
|
|
954
|
+
options: localVarRequestOptions,
|
|
955
|
+
};
|
|
956
|
+
}),
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* ApiV1UserSettingsApi - functional programming interface
|
|
961
|
+
* @export
|
|
962
|
+
*/
|
|
963
|
+
export const ApiV1UserSettingsApiFp = function (configuration) {
|
|
964
|
+
const localVarAxiosParamCreator = ApiV1UserSettingsApiAxiosParamCreator(configuration);
|
|
965
|
+
return {
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @param {*} [options] Override http request option.
|
|
969
|
+
* @throws {RequiredError}
|
|
970
|
+
*/
|
|
971
|
+
userSettingsControllerGetSettings(options) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
973
|
+
var _a, _b, _c;
|
|
974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerGetSettings(options);
|
|
975
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
976
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerGetSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
977
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
978
|
+
});
|
|
979
|
+
},
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @summary Update settings for user
|
|
983
|
+
* @param {UserSettingsUpdateDto} userSettingsUpdateDto
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
userSettingsControllerUpdateSettings(userSettingsUpdateDto, options) {
|
|
988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
989
|
+
var _a, _b, _c;
|
|
990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userSettingsControllerUpdateSettings(userSettingsUpdateDto, 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 = operationServerMap['ApiV1UserSettingsApi.userSettingsControllerUpdateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
993
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
|
+
});
|
|
995
|
+
},
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
* ApiV1UserSettingsApi - factory interface
|
|
1000
|
+
* @export
|
|
1001
|
+
*/
|
|
1002
|
+
export const ApiV1UserSettingsApiFactory = function (configuration, basePath, axios) {
|
|
1003
|
+
const localVarFp = ApiV1UserSettingsApiFp(configuration);
|
|
1004
|
+
return {
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
userSettingsControllerGetSettings(options) {
|
|
1011
|
+
return localVarFp.userSettingsControllerGetSettings(options).then((request) => request(axios, basePath));
|
|
1012
|
+
},
|
|
1013
|
+
/**
|
|
1014
|
+
*
|
|
1015
|
+
* @summary Update settings for user
|
|
1016
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
1021
|
+
return localVarFp.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(axios, basePath));
|
|
1022
|
+
},
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
/**
|
|
1026
|
+
* ApiV1UserSettingsApi - object-oriented interface
|
|
1027
|
+
* @export
|
|
1028
|
+
* @class ApiV1UserSettingsApi
|
|
1029
|
+
* @extends {BaseAPI}
|
|
1030
|
+
*/
|
|
1031
|
+
export class ApiV1UserSettingsApi extends BaseAPI {
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
* @memberof ApiV1UserSettingsApi
|
|
1037
|
+
*/
|
|
1038
|
+
userSettingsControllerGetSettings(options) {
|
|
1039
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerGetSettings(options).then((request) => request(this.axios, this.basePath));
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @summary Update settings for user
|
|
1044
|
+
* @param {ApiV1UserSettingsApiUserSettingsControllerUpdateSettingsRequest} requestParameters Request parameters.
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
* @memberof ApiV1UserSettingsApi
|
|
1048
|
+
*/
|
|
1049
|
+
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
1050
|
+
return ApiV1UserSettingsApiFp(this.configuration).userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* ApiV1WorkersApi - axios parameter creator
|
|
1055
|
+
* @export
|
|
1056
|
+
*/
|
|
1057
|
+
export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
1058
|
+
return {
|
|
1059
|
+
/**
|
|
1060
|
+
*
|
|
1061
|
+
* @summary Delete multiple workers by IDs
|
|
1062
|
+
* @param {WorkerControllerBatchDeleteWorkersRequest} workerControllerBatchDeleteWorkersRequest Array of worker IDs to delete
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
workerControllerBatchDeleteWorkers: (workerControllerBatchDeleteWorkersRequest_1, ...args_1) => __awaiter(this, [workerControllerBatchDeleteWorkersRequest_1, ...args_1], void 0, function* (workerControllerBatchDeleteWorkersRequest, options = {}) {
|
|
1067
|
+
// verify required parameter 'workerControllerBatchDeleteWorkersRequest' is not null or undefined
|
|
1068
|
+
assertParamExists('workerControllerBatchDeleteWorkers', 'workerControllerBatchDeleteWorkersRequest', workerControllerBatchDeleteWorkersRequest);
|
|
1069
|
+
const localVarPath = `/api/v1/workers/batch`;
|
|
1070
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1071
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1072
|
+
let baseOptions;
|
|
1073
|
+
if (configuration) {
|
|
1074
|
+
baseOptions = configuration.baseOptions;
|
|
1075
|
+
}
|
|
1076
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1077
|
+
const localVarHeaderParameter = {};
|
|
1078
|
+
const localVarQueryParameter = {};
|
|
1079
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1080
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1081
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1082
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1083
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workerControllerBatchDeleteWorkersRequest, localVarRequestOptions, configuration);
|
|
1084
|
+
return {
|
|
1085
|
+
url: toPathString(localVarUrlObj),
|
|
1086
|
+
options: localVarRequestOptions,
|
|
1087
|
+
};
|
|
1088
|
+
}),
|
|
1089
|
+
/**
|
|
832
1090
|
*
|
|
833
1091
|
* @summary Create a new worker
|
|
834
1092
|
* @param {WorkerCreateDto} workerCreateDto Worker data
|
|
@@ -887,6 +1145,35 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
887
1145
|
options: localVarRequestOptions,
|
|
888
1146
|
};
|
|
889
1147
|
}),
|
|
1148
|
+
/**
|
|
1149
|
+
*
|
|
1150
|
+
* @summary Create a worker secret
|
|
1151
|
+
* @param {string} id The ID of the worker
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1156
|
+
// verify required parameter 'id' is not null or undefined
|
|
1157
|
+
assertParamExists('workerControllerGenerateWorkerSecret', 'id', id);
|
|
1158
|
+
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
1159
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1161
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1162
|
+
let baseOptions;
|
|
1163
|
+
if (configuration) {
|
|
1164
|
+
baseOptions = configuration.baseOptions;
|
|
1165
|
+
}
|
|
1166
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1167
|
+
const localVarHeaderParameter = {};
|
|
1168
|
+
const localVarQueryParameter = {};
|
|
1169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1171
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1172
|
+
return {
|
|
1173
|
+
url: toPathString(localVarUrlObj),
|
|
1174
|
+
options: localVarRequestOptions,
|
|
1175
|
+
};
|
|
1176
|
+
}),
|
|
890
1177
|
/**
|
|
891
1178
|
*
|
|
892
1179
|
* @summary Get a worker by ID
|
|
@@ -1056,6 +1343,22 @@ export const ApiV1WorkersApiFp = function (configuration) {
|
|
|
1056
1343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1057
1344
|
});
|
|
1058
1345
|
},
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @summary Create a worker secret
|
|
1349
|
+
* @param {string} id The ID of the worker
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
workerControllerGenerateWorkerSecret(id, options) {
|
|
1354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
|
+
var _a, _b, _c;
|
|
1356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, 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 = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1359
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1360
|
+
});
|
|
1361
|
+
},
|
|
1059
1362
|
/**
|
|
1060
1363
|
*
|
|
1061
1364
|
* @summary Get a worker by ID
|
|
@@ -1149,6 +1452,16 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
1149
1452
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
1150
1453
|
return localVarFp.workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1151
1454
|
},
|
|
1455
|
+
/**
|
|
1456
|
+
*
|
|
1457
|
+
* @summary Create a worker secret
|
|
1458
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
1459
|
+
* @param {*} [options] Override http request option.
|
|
1460
|
+
* @throws {RequiredError}
|
|
1461
|
+
*/
|
|
1462
|
+
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
1463
|
+
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1464
|
+
},
|
|
1152
1465
|
/**
|
|
1153
1466
|
*
|
|
1154
1467
|
* @summary Get a worker by ID
|
|
@@ -1221,6 +1534,17 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
1221
1534
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
1222
1535
|
return ApiV1WorkersApiFp(this.configuration).workerControllerDeleteWorker(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1223
1536
|
}
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @summary Create a worker secret
|
|
1540
|
+
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
1541
|
+
* @param {*} [options] Override http request option.
|
|
1542
|
+
* @throws {RequiredError}
|
|
1543
|
+
* @memberof ApiV1WorkersApi
|
|
1544
|
+
*/
|
|
1545
|
+
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
1546
|
+
return ApiV1WorkersApiFp(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1547
|
+
}
|
|
1224
1548
|
/**
|
|
1225
1549
|
*
|
|
1226
1550
|
* @summary Get a worker by ID
|
|
@@ -1255,163 +1579,3 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
1255
1579
|
return ApiV1WorkersApiFp(this.configuration).workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options).then((request) => request(this.axios, this.basePath));
|
|
1256
1580
|
}
|
|
1257
1581
|
}
|
|
1258
|
-
/**
|
|
1259
|
-
* SsoApi - axios parameter creator
|
|
1260
|
-
* @export
|
|
1261
|
-
*/
|
|
1262
|
-
export const SsoApiAxiosParamCreator = function (configuration) {
|
|
1263
|
-
return {
|
|
1264
|
-
/**
|
|
1265
|
-
*
|
|
1266
|
-
* @param {object} body
|
|
1267
|
-
* @param {*} [options] Override http request option.
|
|
1268
|
-
* @throws {RequiredError}
|
|
1269
|
-
*/
|
|
1270
|
-
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1271
|
-
// verify required parameter 'body' is not null or undefined
|
|
1272
|
-
assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
|
|
1273
|
-
const localVarPath = `/sso/generate-code`;
|
|
1274
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1275
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1276
|
-
let baseOptions;
|
|
1277
|
-
if (configuration) {
|
|
1278
|
-
baseOptions = configuration.baseOptions;
|
|
1279
|
-
}
|
|
1280
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1281
|
-
const localVarHeaderParameter = {};
|
|
1282
|
-
const localVarQueryParameter = {};
|
|
1283
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1284
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1285
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1286
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1287
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1288
|
-
return {
|
|
1289
|
-
url: toPathString(localVarUrlObj),
|
|
1290
|
-
options: localVarRequestOptions,
|
|
1291
|
-
};
|
|
1292
|
-
}),
|
|
1293
|
-
/**
|
|
1294
|
-
*
|
|
1295
|
-
* @param {object} body
|
|
1296
|
-
* @param {*} [options] Override http request option.
|
|
1297
|
-
* @throws {RequiredError}
|
|
1298
|
-
*/
|
|
1299
|
-
ssoControllerValidateCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1300
|
-
// verify required parameter 'body' is not null or undefined
|
|
1301
|
-
assertParamExists('ssoControllerValidateCode', 'body', body);
|
|
1302
|
-
const localVarPath = `/sso/validate-code`;
|
|
1303
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1304
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1305
|
-
let baseOptions;
|
|
1306
|
-
if (configuration) {
|
|
1307
|
-
baseOptions = configuration.baseOptions;
|
|
1308
|
-
}
|
|
1309
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1310
|
-
const localVarHeaderParameter = {};
|
|
1311
|
-
const localVarQueryParameter = {};
|
|
1312
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1313
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1314
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1315
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1316
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1317
|
-
return {
|
|
1318
|
-
url: toPathString(localVarUrlObj),
|
|
1319
|
-
options: localVarRequestOptions,
|
|
1320
|
-
};
|
|
1321
|
-
}),
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
/**
|
|
1325
|
-
* SsoApi - functional programming interface
|
|
1326
|
-
* @export
|
|
1327
|
-
*/
|
|
1328
|
-
export const SsoApiFp = function (configuration) {
|
|
1329
|
-
const localVarAxiosParamCreator = SsoApiAxiosParamCreator(configuration);
|
|
1330
|
-
return {
|
|
1331
|
-
/**
|
|
1332
|
-
*
|
|
1333
|
-
* @param {object} body
|
|
1334
|
-
* @param {*} [options] Override http request option.
|
|
1335
|
-
* @throws {RequiredError}
|
|
1336
|
-
*/
|
|
1337
|
-
ssoControllerGenerateLocalCode(body, options) {
|
|
1338
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
|
-
var _a, _b, _c;
|
|
1340
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1341
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1342
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1343
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1344
|
-
});
|
|
1345
|
-
},
|
|
1346
|
-
/**
|
|
1347
|
-
*
|
|
1348
|
-
* @param {object} body
|
|
1349
|
-
* @param {*} [options] Override http request option.
|
|
1350
|
-
* @throws {RequiredError}
|
|
1351
|
-
*/
|
|
1352
|
-
ssoControllerValidateCode(body, options) {
|
|
1353
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
-
var _a, _b, _c;
|
|
1355
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerValidateCode(body, options);
|
|
1356
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1357
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SsoApi.ssoControllerValidateCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1358
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1359
|
-
});
|
|
1360
|
-
},
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
|
-
/**
|
|
1364
|
-
* SsoApi - factory interface
|
|
1365
|
-
* @export
|
|
1366
|
-
*/
|
|
1367
|
-
export const SsoApiFactory = function (configuration, basePath, axios) {
|
|
1368
|
-
const localVarFp = SsoApiFp(configuration);
|
|
1369
|
-
return {
|
|
1370
|
-
/**
|
|
1371
|
-
*
|
|
1372
|
-
* @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1373
|
-
* @param {*} [options] Override http request option.
|
|
1374
|
-
* @throws {RequiredError}
|
|
1375
|
-
*/
|
|
1376
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1377
|
-
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1378
|
-
},
|
|
1379
|
-
/**
|
|
1380
|
-
*
|
|
1381
|
-
* @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1382
|
-
* @param {*} [options] Override http request option.
|
|
1383
|
-
* @throws {RequiredError}
|
|
1384
|
-
*/
|
|
1385
|
-
ssoControllerValidateCode(requestParameters, options) {
|
|
1386
|
-
return localVarFp.ssoControllerValidateCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1387
|
-
},
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
/**
|
|
1391
|
-
* SsoApi - object-oriented interface
|
|
1392
|
-
* @export
|
|
1393
|
-
* @class SsoApi
|
|
1394
|
-
* @extends {BaseAPI}
|
|
1395
|
-
*/
|
|
1396
|
-
export class SsoApi extends BaseAPI {
|
|
1397
|
-
/**
|
|
1398
|
-
*
|
|
1399
|
-
* @param {SsoApiSsoControllerGenerateLocalCodeRequest} requestParameters Request parameters.
|
|
1400
|
-
* @param {*} [options] Override http request option.
|
|
1401
|
-
* @throws {RequiredError}
|
|
1402
|
-
* @memberof SsoApi
|
|
1403
|
-
*/
|
|
1404
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1405
|
-
return SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1406
|
-
}
|
|
1407
|
-
/**
|
|
1408
|
-
*
|
|
1409
|
-
* @param {SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
1410
|
-
* @param {*} [options] Override http request option.
|
|
1411
|
-
* @throws {RequiredError}
|
|
1412
|
-
* @memberof SsoApi
|
|
1413
|
-
*/
|
|
1414
|
-
ssoControllerValidateCode(requestParameters, options) {
|
|
1415
|
-
return SsoApiFp(this.configuration).ssoControllerValidateCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1416
|
-
}
|
|
1417
|
-
}
|