@emilgroup/auth-sdk-node 1.17.2-beta.1 → 1.18.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/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/{default-api.ts → health-api.ts} +17 -17
- package/api/workspaces-api.ts +273 -0
- package/api.ts +4 -2
- package/dist/api/authservice-api.js +38 -95
- package/dist/api/health-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-api.js} +31 -44
- package/dist/api/workspaces-api.d.ts +153 -0
- package/dist/api/workspaces-api.js +321 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.js +15 -25
- 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
- package/dist/api/default-api.d.ts +0 -70
|
@@ -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);
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* HealthApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
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
|
+
* @summary Health Check
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* HealthApi - functional programming interface
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
34
|
+
/**
|
|
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
|
+
* @summary Health Check
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* HealthApi - factory interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
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
|
+
* @summary Health Check
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* HealthApi - object-oriented interface
|
|
57
|
+
* @export
|
|
58
|
+
* @class HealthApi
|
|
59
|
+
* @extends {BaseAPI}
|
|
60
|
+
*/
|
|
61
|
+
export declare class HealthApi extends BaseAPI {
|
|
62
|
+
/**
|
|
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
|
+
* @summary Health Check
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof HealthApi
|
|
68
|
+
*/
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
70
|
+
}
|
|
@@ -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,20 +74,11 @@ 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
|
};
|
|
89
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
exports.
|
|
81
|
+
exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
91
82
|
var axios_1 = __importDefault(require("axios"));
|
|
92
83
|
// Some imports not used depending on template conditions
|
|
93
84
|
// @ts-ignore
|
|
@@ -99,26 +90,22 @@ var base_1 = require("../base");
|
|
|
99
90
|
var url_1 = require("url");
|
|
100
91
|
var FormData = require('form-data');
|
|
101
92
|
/**
|
|
102
|
-
*
|
|
93
|
+
* HealthApi - axios parameter creator
|
|
103
94
|
* @export
|
|
104
95
|
*/
|
|
105
|
-
var
|
|
96
|
+
var HealthApiAxiosParamCreator = 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);
|
|
@@ -141,16 +128,16 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
141
128
|
},
|
|
142
129
|
};
|
|
143
130
|
};
|
|
144
|
-
exports.
|
|
131
|
+
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
145
132
|
/**
|
|
146
|
-
*
|
|
133
|
+
* HealthApi - functional programming interface
|
|
147
134
|
* @export
|
|
148
135
|
*/
|
|
149
|
-
var
|
|
150
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
136
|
+
var HealthApiFp = function (configuration) {
|
|
137
|
+
var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(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}
|
|
@@ -170,16 +157,16 @@ var DefaultApiFp = function (configuration) {
|
|
|
170
157
|
},
|
|
171
158
|
};
|
|
172
159
|
};
|
|
173
|
-
exports.
|
|
160
|
+
exports.HealthApiFp = HealthApiFp;
|
|
174
161
|
/**
|
|
175
|
-
*
|
|
162
|
+
* HealthApi - factory interface
|
|
176
163
|
* @export
|
|
177
164
|
*/
|
|
178
|
-
var
|
|
179
|
-
var localVarFp = (0, exports.
|
|
165
|
+
var HealthApiFactory = function (configuration, basePath, axios) {
|
|
166
|
+
var localVarFp = (0, exports.HealthApiFp)(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}
|
|
@@ -189,29 +176,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
189
176
|
},
|
|
190
177
|
};
|
|
191
178
|
};
|
|
192
|
-
exports.
|
|
179
|
+
exports.HealthApiFactory = HealthApiFactory;
|
|
193
180
|
/**
|
|
194
|
-
*
|
|
181
|
+
* HealthApi - object-oriented interface
|
|
195
182
|
* @export
|
|
196
|
-
* @class
|
|
183
|
+
* @class HealthApi
|
|
197
184
|
* @extends {BaseAPI}
|
|
198
185
|
*/
|
|
199
|
-
var
|
|
200
|
-
__extends(
|
|
201
|
-
function
|
|
186
|
+
var HealthApi = /** @class */ (function (_super) {
|
|
187
|
+
__extends(HealthApi, _super);
|
|
188
|
+
function HealthApi() {
|
|
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}
|
|
209
|
-
* @memberof
|
|
196
|
+
* @memberof HealthApi
|
|
210
197
|
*/
|
|
211
|
-
|
|
198
|
+
HealthApi.prototype.check = function (options) {
|
|
212
199
|
var _this = this;
|
|
213
|
-
return (0, exports.
|
|
200
|
+
return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
214
201
|
};
|
|
215
|
-
return
|
|
202
|
+
return HealthApi;
|
|
216
203
|
}(base_1.BaseAPI));
|
|
217
|
-
exports.
|
|
204
|
+
exports.HealthApi = HealthApi;
|
|
@@ -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
|
+
}
|