@emilgroup/auth-sdk-node 1.17.2-beta.1 → 1.18.1-beta.19
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/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/default-api.ts +4 -4
- package/api/workspaces-api.ts +273 -0
- package/api.ts +2 -0
- package/base.ts +5 -3
- package/dist/api/authservice-api.d.ts +12 -12
- package/dist/api/authservice-api.js +38 -95
- package/dist/api/default-api.d.ts +5 -5
- package/dist/api/default-api.js +9 -22
- package/dist/api/workspaces-api.d.ts +153 -0
- package/dist/api/workspaces-api.js +321 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +2 -2
- package/dist/base.js +17 -27
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-workspaces-response-class.d.ts +25 -0
- package/dist/models/list-workspaces-response-class.js +15 -0
- package/dist/models/switch-workspace-request-without-refresh-token-dto.d.ts +30 -0
- package/dist/models/switch-workspace-request-without-refresh-token-dto.js +15 -0
- package/dist/models/switch-workspace-response-class.d.ts +24 -0
- package/dist/models/switch-workspace-response-class.js +15 -0
- package/dist/models/user-class.d.ts +6 -0
- package/dist/models/workspace-class.d.ts +48 -0
- package/dist/models/workspace-class.js +15 -0
- package/models/index.ts +4 -0
- package/models/list-workspaces-response-class.ts +31 -0
- package/models/switch-workspace-request-without-refresh-token-dto.ts +36 -0
- package/models/switch-workspace-response-class.ts +30 -0
- package/models/user-class.ts +6 -0
- package/models/workspace-class.ts +54 -0
- package/package.json +4 -4
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -112,14 +103,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
112
103
|
* @param {*} [options] Override http request option.
|
|
113
104
|
* @throws {RequiredError}
|
|
114
105
|
*/
|
|
115
|
-
createOrgAndUser: function (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
args_1[_i - 1] = arguments[_i];
|
|
119
|
-
}
|
|
120
|
-
return __awaiter(_this, __spreadArray([createOrgAndUserRequestDto_1], args_1, true), void 0, function (createOrgAndUserRequestDto, options) {
|
|
106
|
+
createOrgAndUser: function (createOrgAndUserRequestDto, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
121
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
122
|
-
if (options === void 0) { options = {}; }
|
|
123
110
|
return __generator(this, function (_a) {
|
|
124
111
|
// verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
|
|
125
112
|
(0, common_1.assertParamExists)('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto);
|
|
@@ -151,14 +138,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
151
138
|
* @param {*} [options] Override http request option.
|
|
152
139
|
* @throws {RequiredError}
|
|
153
140
|
*/
|
|
154
|
-
createUser: function (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
args_1[_i - 1] = arguments[_i];
|
|
158
|
-
}
|
|
159
|
-
return __awaiter(_this, __spreadArray([createUserRequestDto_1], args_1, true), void 0, function (createUserRequestDto, options) {
|
|
141
|
+
createUser: function (createUserRequestDto, options) {
|
|
142
|
+
if (options === void 0) { options = {}; }
|
|
143
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
160
144
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
|
-
if (options === void 0) { options = {}; }
|
|
162
145
|
return __generator(this, function (_a) {
|
|
163
146
|
// verify required parameter 'createUserRequestDto' is not null or undefined
|
|
164
147
|
(0, common_1.assertParamExists)('createUser', 'createUserRequestDto', createUserRequestDto);
|
|
@@ -190,14 +173,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
190
173
|
* @param {*} [options] Override http request option.
|
|
191
174
|
* @throws {RequiredError}
|
|
192
175
|
*/
|
|
193
|
-
forgotPassword: function (
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
args_1[_i - 1] = arguments[_i];
|
|
197
|
-
}
|
|
198
|
-
return __awaiter(_this, __spreadArray([forgotPasswordRequestDto_1], args_1, true), void 0, function (forgotPasswordRequestDto, options) {
|
|
176
|
+
forgotPassword: function (forgotPasswordRequestDto, options) {
|
|
177
|
+
if (options === void 0) { options = {}; }
|
|
178
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
199
179
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
200
|
-
if (options === void 0) { options = {}; }
|
|
201
180
|
return __generator(this, function (_a) {
|
|
202
181
|
// verify required parameter 'forgotPasswordRequestDto' is not null or undefined
|
|
203
182
|
(0, common_1.assertParamExists)('forgotPassword', 'forgotPasswordRequestDto', forgotPasswordRequestDto);
|
|
@@ -229,14 +208,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
229
208
|
* @param {*} [options] Override http request option.
|
|
230
209
|
* @throws {RequiredError}
|
|
231
210
|
*/
|
|
232
|
-
getSamlLoginLink: function (
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
args_1[_i - 1] = arguments[_i];
|
|
236
|
-
}
|
|
237
|
-
return __awaiter(_this, __spreadArray([tenantSlug_1], args_1, true), void 0, function (tenantSlug, options) {
|
|
211
|
+
getSamlLoginLink: function (tenantSlug, options) {
|
|
212
|
+
if (options === void 0) { options = {}; }
|
|
213
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
238
214
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
239
|
-
if (options === void 0) { options = {}; }
|
|
240
215
|
return __generator(this, function (_a) {
|
|
241
216
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
242
217
|
(0, common_1.assertParamExists)('getSamlLoginLink', 'tenantSlug', tenantSlug);
|
|
@@ -269,14 +244,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
269
244
|
* @param {*} [options] Override http request option.
|
|
270
245
|
* @throws {RequiredError}
|
|
271
246
|
*/
|
|
272
|
-
login: function (
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
args_1[_i - 1] = arguments[_i];
|
|
276
|
-
}
|
|
277
|
-
return __awaiter(_this, __spreadArray([loginRequestDto_1], args_1, true), void 0, function (loginRequestDto, options) {
|
|
247
|
+
login: function (loginRequestDto, options) {
|
|
248
|
+
if (options === void 0) { options = {}; }
|
|
249
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
278
250
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
279
|
-
if (options === void 0) { options = {}; }
|
|
280
251
|
return __generator(this, function (_a) {
|
|
281
252
|
// verify required parameter 'loginRequestDto' is not null or undefined
|
|
282
253
|
(0, common_1.assertParamExists)('login', 'loginRequestDto', loginRequestDto);
|
|
@@ -308,14 +279,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
308
279
|
* @param {*} [options] Override http request option.
|
|
309
280
|
* @throws {RequiredError}
|
|
310
281
|
*/
|
|
311
|
-
loginBySaml: function (
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
args_1[_i - 1] = arguments[_i];
|
|
315
|
-
}
|
|
316
|
-
return __awaiter(_this, __spreadArray([loginBySamlRequestDto_1], args_1, true), void 0, function (loginBySamlRequestDto, options) {
|
|
282
|
+
loginBySaml: function (loginBySamlRequestDto, options) {
|
|
283
|
+
if (options === void 0) { options = {}; }
|
|
284
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
317
285
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
|
-
if (options === void 0) { options = {}; }
|
|
319
286
|
return __generator(this, function (_a) {
|
|
320
287
|
// verify required parameter 'loginBySamlRequestDto' is not null or undefined
|
|
321
288
|
(0, common_1.assertParamExists)('loginBySaml', 'loginBySamlRequestDto', loginBySamlRequestDto);
|
|
@@ -347,14 +314,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
347
314
|
* @param {*} [options] Override http request option.
|
|
348
315
|
* @throws {RequiredError}
|
|
349
316
|
*/
|
|
350
|
-
logout: function (
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
args_1[_i - 1] = arguments[_i];
|
|
354
|
-
}
|
|
355
|
-
return __awaiter(_this, __spreadArray([logoutRequestDto_1], args_1, true), void 0, function (logoutRequestDto, options) {
|
|
317
|
+
logout: function (logoutRequestDto, options) {
|
|
318
|
+
if (options === void 0) { options = {}; }
|
|
319
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
356
320
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
357
|
-
if (options === void 0) { options = {}; }
|
|
358
321
|
return __generator(this, function (_a) {
|
|
359
322
|
// verify required parameter 'logoutRequestDto' is not null or undefined
|
|
360
323
|
(0, common_1.assertParamExists)('logout', 'logoutRequestDto', logoutRequestDto);
|
|
@@ -387,14 +350,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
387
350
|
* @param {*} [options] Override http request option.
|
|
388
351
|
* @throws {RequiredError}
|
|
389
352
|
*/
|
|
390
|
-
refreshToken: function (
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
args_1[_i - 2] = arguments[_i];
|
|
394
|
-
}
|
|
395
|
-
return __awaiter(_this, __spreadArray([refreshTokenDto_1, cookie_1], args_1, true), void 0, function (refreshTokenDto, cookie, options) {
|
|
353
|
+
refreshToken: function (refreshTokenDto, cookie, options) {
|
|
354
|
+
if (options === void 0) { options = {}; }
|
|
355
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
396
356
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
397
|
-
if (options === void 0) { options = {}; }
|
|
398
357
|
return __generator(this, function (_a) {
|
|
399
358
|
// verify required parameter 'refreshTokenDto' is not null or undefined
|
|
400
359
|
(0, common_1.assertParamExists)('refreshToken', 'refreshTokenDto', refreshTokenDto);
|
|
@@ -429,14 +388,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
429
388
|
* @param {*} [options] Override http request option.
|
|
430
389
|
* @throws {RequiredError}
|
|
431
390
|
*/
|
|
432
|
-
resetPassword: function (
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
args_1[_i - 1] = arguments[_i];
|
|
436
|
-
}
|
|
437
|
-
return __awaiter(_this, __spreadArray([resetPasswordRequestDto_1], args_1, true), void 0, function (resetPasswordRequestDto, options) {
|
|
391
|
+
resetPassword: function (resetPasswordRequestDto, options) {
|
|
392
|
+
if (options === void 0) { options = {}; }
|
|
393
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
438
394
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
439
|
-
if (options === void 0) { options = {}; }
|
|
440
395
|
return __generator(this, function (_a) {
|
|
441
396
|
// verify required parameter 'resetPasswordRequestDto' is not null or undefined
|
|
442
397
|
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordRequestDto', resetPasswordRequestDto);
|
|
@@ -468,14 +423,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
468
423
|
* @param {*} [options] Override http request option.
|
|
469
424
|
* @throws {RequiredError}
|
|
470
425
|
*/
|
|
471
|
-
verifyInvite: function (
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
args_1[_i - 1] = arguments[_i];
|
|
475
|
-
}
|
|
476
|
-
return __awaiter(_this, __spreadArray([token_1], args_1, true), void 0, function (token, options) {
|
|
426
|
+
verifyInvite: function (token, options) {
|
|
427
|
+
if (options === void 0) { options = {}; }
|
|
428
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
477
429
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
478
|
-
if (options === void 0) { options = {}; }
|
|
479
430
|
return __generator(this, function (_a) {
|
|
480
431
|
// verify required parameter 'token' is not null or undefined
|
|
481
432
|
(0, common_1.assertParamExists)('verifyInvite', 'token', token);
|
|
@@ -508,14 +459,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
508
459
|
* @param {*} [options] Override http request option.
|
|
509
460
|
* @throws {RequiredError}
|
|
510
461
|
*/
|
|
511
|
-
verifyOrgInvitation: function (
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
args_1[_i - 1] = arguments[_i];
|
|
515
|
-
}
|
|
516
|
-
return __awaiter(_this, __spreadArray([invitationToken_1], args_1, true), void 0, function (invitationToken, options) {
|
|
462
|
+
verifyOrgInvitation: function (invitationToken, options) {
|
|
463
|
+
if (options === void 0) { options = {}; }
|
|
464
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
517
465
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
518
|
-
if (options === void 0) { options = {}; }
|
|
519
466
|
return __generator(this, function (_a) {
|
|
520
467
|
// verify required parameter 'invitationToken' is not null or undefined
|
|
521
468
|
(0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
|
|
@@ -548,14 +495,10 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
548
495
|
* @param {*} [options] Override http request option.
|
|
549
496
|
* @throws {RequiredError}
|
|
550
497
|
*/
|
|
551
|
-
verifyResetPasswordToken: function (
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
args_1[_i - 1] = arguments[_i];
|
|
555
|
-
}
|
|
556
|
-
return __awaiter(_this, __spreadArray([resetToken_1], args_1, true), void 0, function (resetToken, options) {
|
|
498
|
+
verifyResetPasswordToken: function (resetToken, options) {
|
|
499
|
+
if (options === void 0) { options = {}; }
|
|
500
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
557
501
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
558
|
-
if (options === void 0) { options = {}; }
|
|
559
502
|
return __generator(this, function (_a) {
|
|
560
503
|
// verify required parameter 'resetToken' is not null or undefined
|
|
561
504
|
(0, common_1.assertParamExists)('verifyResetPasswordToken', 'resetToken', resetToken);
|
|
@@ -19,7 +19,7 @@ import { InlineResponse200 } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
* Returns the health status of the auth service.
|
|
22
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
23
|
* @summary Health Check
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
@@ -32,7 +32,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
34
34
|
/**
|
|
35
|
-
* Returns the health status of the auth service.
|
|
35
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
36
|
* @summary Health Check
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
38
38
|
* @throws {RequiredError}
|
|
@@ -45,7 +45,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
47
|
/**
|
|
48
|
-
* Returns the health status of the auth service.
|
|
48
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
49
|
* @summary Health Check
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
@@ -60,11 +60,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
60
60
|
*/
|
|
61
61
|
export declare class DefaultApi extends BaseAPI {
|
|
62
62
|
/**
|
|
63
|
-
* Returns the health status of the auth service.
|
|
63
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
64
|
* @summary Health Check
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof DefaultApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
package/dist/api/default-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -106,19 +97,15 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
106
97
|
var _this = this;
|
|
107
98
|
return {
|
|
108
99
|
/**
|
|
109
|
-
* Returns the health status of the auth service.
|
|
100
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
110
101
|
* @summary Health Check
|
|
111
102
|
* @param {*} [options] Override http request option.
|
|
112
103
|
* @throws {RequiredError}
|
|
113
104
|
*/
|
|
114
|
-
check: function () {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
args_1[_i] = arguments[_i];
|
|
118
|
-
}
|
|
119
|
-
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
105
|
+
check: function (options) {
|
|
106
|
+
if (options === void 0) { options = {}; }
|
|
107
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
120
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
121
|
-
if (options === void 0) { options = {}; }
|
|
122
109
|
return __generator(this, function (_a) {
|
|
123
110
|
localVarPath = "/authservice/health";
|
|
124
111
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -150,7 +137,7 @@ var DefaultApiFp = function (configuration) {
|
|
|
150
137
|
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
151
138
|
return {
|
|
152
139
|
/**
|
|
153
|
-
* Returns the health status of the auth service.
|
|
140
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
154
141
|
* @summary Health Check
|
|
155
142
|
* @param {*} [options] Override http request option.
|
|
156
143
|
* @throws {RequiredError}
|
|
@@ -179,7 +166,7 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
179
166
|
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
180
167
|
return {
|
|
181
168
|
/**
|
|
182
|
-
* Returns the health status of the auth service.
|
|
169
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
183
170
|
* @summary Health Check
|
|
184
171
|
* @param {*} [options] Override http request option.
|
|
185
172
|
* @throws {RequiredError}
|
|
@@ -202,7 +189,7 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
202
189
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
203
190
|
}
|
|
204
191
|
/**
|
|
205
|
-
* Returns the health status of the auth service.
|
|
192
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
206
193
|
* @summary Health Check
|
|
207
194
|
* @param {*} [options] Override http request option.
|
|
208
195
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListWorkspacesResponseClass } from '../models';
|
|
16
|
+
import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
17
|
+
import { SwitchWorkspaceResponseClass } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* WorkspacesApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
25
|
+
* @summary List workspaces
|
|
26
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
listWorkspaces: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
33
|
+
* @summary Switch workspace
|
|
34
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
35
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
36
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* WorkspacesApi - functional programming interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const WorkspacesApiFp: (configuration?: Configuration) => {
|
|
47
|
+
/**
|
|
48
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
49
|
+
* @summary List workspaces
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesResponseClass>>;
|
|
55
|
+
/**
|
|
56
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
57
|
+
* @summary Switch workspace
|
|
58
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
59
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
60
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwitchWorkspaceResponseClass>>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* WorkspacesApi - factory interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const WorkspacesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
71
|
+
/**
|
|
72
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
73
|
+
* @summary List workspaces
|
|
74
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesResponseClass>;
|
|
79
|
+
/**
|
|
80
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
81
|
+
* @summary Switch workspace
|
|
82
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
83
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
84
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise<SwitchWorkspaceResponseClass>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Request parameters for listWorkspaces operation in WorkspacesApi.
|
|
92
|
+
* @export
|
|
93
|
+
* @interface WorkspacesApiListWorkspacesRequest
|
|
94
|
+
*/
|
|
95
|
+
export interface WorkspacesApiListWorkspacesRequest {
|
|
96
|
+
/**
|
|
97
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof WorkspacesApiListWorkspaces
|
|
100
|
+
*/
|
|
101
|
+
readonly authorization?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
105
|
+
* @export
|
|
106
|
+
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
107
|
+
*/
|
|
108
|
+
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
112
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
113
|
+
*/
|
|
114
|
+
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto;
|
|
115
|
+
/**
|
|
116
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
119
|
+
*/
|
|
120
|
+
readonly authorization?: string;
|
|
121
|
+
/**
|
|
122
|
+
* HTTP only cookie that was sent during login
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
125
|
+
*/
|
|
126
|
+
readonly cookie?: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* WorkspacesApi - object-oriented interface
|
|
130
|
+
* @export
|
|
131
|
+
* @class WorkspacesApi
|
|
132
|
+
* @extends {BaseAPI}
|
|
133
|
+
*/
|
|
134
|
+
export declare class WorkspacesApi extends BaseAPI {
|
|
135
|
+
/**
|
|
136
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
137
|
+
* @summary List workspaces
|
|
138
|
+
* @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
* @memberof WorkspacesApi
|
|
142
|
+
*/
|
|
143
|
+
listWorkspaces(requestParameters?: WorkspacesApiListWorkspacesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspacesResponseClass, any, {}>>;
|
|
144
|
+
/**
|
|
145
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
146
|
+
* @summary Switch workspace
|
|
147
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
* @memberof WorkspacesApi
|
|
151
|
+
*/
|
|
152
|
+
switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwitchWorkspaceResponseClass, any, {}>>;
|
|
153
|
+
}
|