@emilgroup/auth-sdk 1.20.1-beta.5 → 1.20.1-beta.7

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.
@@ -0,0 +1,317 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
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 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * WorkspacesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var WorkspacesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
97
+ * @summary List workspaces
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listWorkspaces: function (authorization, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ localVarPath = "/authservice/v1/workspaces";
110
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ baseAccessToken = configuration.accessToken;
114
+ }
115
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
116
+ localVarHeaderParameter = {};
117
+ localVarQueryParameter = {};
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
121
+ case 1:
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ _a.sent();
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
+ }
128
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
129
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
+ return [2 /*return*/, {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ }];
135
+ }
136
+ });
137
+ });
138
+ },
139
+ /**
140
+ * Switch to a different workspace and get new access and refresh tokens.
141
+ * @summary Switch workspace
142
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {string} [cookie] HTTP only cookie that was sent during login
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
149
+ if (options === void 0) { options = {}; }
150
+ return __awaiter(_this, void 0, void 0, function () {
151
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
152
+ return __generator(this, function (_a) {
153
+ switch (_a.label) {
154
+ case 0:
155
+ // verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
156
+ (0, common_1.assertParamExists)('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto);
157
+ localVarPath = "/authservice/v1/workspaces/switch";
158
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ baseAccessToken = configuration.accessToken;
162
+ }
163
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
164
+ localVarHeaderParameter = {};
165
+ localVarQueryParameter = {};
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
169
+ case 1:
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ _a.sent();
173
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
+ }
176
+ if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
178
+ }
179
+ localVarHeaderParameter['Content-Type'] = 'application/json';
180
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
181
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
183
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ };
193
+ };
194
+ exports.WorkspacesApiAxiosParamCreator = WorkspacesApiAxiosParamCreator;
195
+ /**
196
+ * WorkspacesApi - functional programming interface
197
+ * @export
198
+ */
199
+ var WorkspacesApiFp = function (configuration) {
200
+ var localVarAxiosParamCreator = (0, exports.WorkspacesApiAxiosParamCreator)(configuration);
201
+ return {
202
+ /**
203
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
204
+ * @summary List workspaces
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ listWorkspaces: function (authorization, options) {
210
+ return __awaiter(this, void 0, void 0, function () {
211
+ var localVarAxiosArgs;
212
+ return __generator(this, function (_a) {
213
+ switch (_a.label) {
214
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(authorization, options)];
215
+ case 1:
216
+ localVarAxiosArgs = _a.sent();
217
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
218
+ }
219
+ });
220
+ });
221
+ },
222
+ /**
223
+ * Switch to a different workspace and get new access and refresh tokens.
224
+ * @summary Switch workspace
225
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
226
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
+ * @param {string} [cookie] HTTP only cookie that was sent during login
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
232
+ return __awaiter(this, void 0, void 0, function () {
233
+ var localVarAxiosArgs;
234
+ return __generator(this, function (_a) {
235
+ switch (_a.label) {
236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options)];
237
+ case 1:
238
+ localVarAxiosArgs = _a.sent();
239
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
240
+ }
241
+ });
242
+ });
243
+ },
244
+ };
245
+ };
246
+ exports.WorkspacesApiFp = WorkspacesApiFp;
247
+ /**
248
+ * WorkspacesApi - factory interface
249
+ * @export
250
+ */
251
+ var WorkspacesApiFactory = function (configuration, basePath, axios) {
252
+ var localVarFp = (0, exports.WorkspacesApiFp)(configuration);
253
+ return {
254
+ /**
255
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
256
+ * @summary List workspaces
257
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ listWorkspaces: function (authorization, options) {
262
+ return localVarFp.listWorkspaces(authorization, options).then(function (request) { return request(axios, basePath); });
263
+ },
264
+ /**
265
+ * Switch to a different workspace and get new access and refresh tokens.
266
+ * @summary Switch workspace
267
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
268
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
269
+ * @param {string} [cookie] HTTP only cookie that was sent during login
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
274
+ return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then(function (request) { return request(axios, basePath); });
275
+ },
276
+ };
277
+ };
278
+ exports.WorkspacesApiFactory = WorkspacesApiFactory;
279
+ /**
280
+ * WorkspacesApi - object-oriented interface
281
+ * @export
282
+ * @class WorkspacesApi
283
+ * @extends {BaseAPI}
284
+ */
285
+ var WorkspacesApi = /** @class */ (function (_super) {
286
+ __extends(WorkspacesApi, _super);
287
+ function WorkspacesApi() {
288
+ return _super !== null && _super.apply(this, arguments) || this;
289
+ }
290
+ /**
291
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
292
+ * @summary List workspaces
293
+ * @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ * @memberof WorkspacesApi
297
+ */
298
+ WorkspacesApi.prototype.listWorkspaces = function (requestParameters, options) {
299
+ var _this = this;
300
+ if (requestParameters === void 0) { requestParameters = {}; }
301
+ return (0, exports.WorkspacesApiFp)(this.configuration).listWorkspaces(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
+ };
303
+ /**
304
+ * Switch to a different workspace and get new access and refresh tokens.
305
+ * @summary Switch workspace
306
+ * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ * @memberof WorkspacesApi
310
+ */
311
+ WorkspacesApi.prototype.switchWorkspace = function (requestParameters, options) {
312
+ var _this = this;
313
+ return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
314
+ };
315
+ return WorkspacesApi;
316
+ }(base_1.BaseAPI));
317
+ exports.WorkspacesApi = WorkspacesApi;
package/dist/api.d.ts CHANGED
@@ -11,3 +11,4 @@
11
11
  */
12
12
  export * from './api/authservice-api';
13
13
  export * from './api/default-api';
14
+ export * from './api/workspaces-api';
package/dist/api.js CHANGED
@@ -29,3 +29,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/authservice-api"), exports);
31
31
  __exportStar(require("./api/default-api"), exports);
32
+ __exportStar(require("./api/workspaces-api"), exports);
@@ -7,6 +7,7 @@ export * from './forgot-password-request-dto';
7
7
  export * from './get-saml-login-link-request-dto';
8
8
  export * from './inline-response200';
9
9
  export * from './inline-response503';
10
+ export * from './list-workspaces-repsonse-class';
10
11
  export * from './login-by-saml-request-dto';
11
12
  export * from './login-class';
12
13
  export * from './login-request-dto';
@@ -16,6 +17,9 @@ export * from './organization-class';
16
17
  export * from './refresh-token-dto';
17
18
  export * from './reset-password-request-dto';
18
19
  export * from './role-class';
20
+ export * from './switch-workspace-request-without-refresh-token-dto';
21
+ export * from './switch-workspace-response-class';
19
22
  export * from './user-class';
20
23
  export * from './verify-org-invitation-request-dto';
21
24
  export * from './verify-org-invitation-response-class';
25
+ export * from './workspace-class';
@@ -23,6 +23,7 @@ __exportStar(require("./forgot-password-request-dto"), exports);
23
23
  __exportStar(require("./get-saml-login-link-request-dto"), exports);
24
24
  __exportStar(require("./inline-response200"), exports);
25
25
  __exportStar(require("./inline-response503"), exports);
26
+ __exportStar(require("./list-workspaces-repsonse-class"), exports);
26
27
  __exportStar(require("./login-by-saml-request-dto"), exports);
27
28
  __exportStar(require("./login-class"), exports);
28
29
  __exportStar(require("./login-request-dto"), exports);
@@ -32,6 +33,9 @@ __exportStar(require("./organization-class"), exports);
32
33
  __exportStar(require("./refresh-token-dto"), exports);
33
34
  __exportStar(require("./reset-password-request-dto"), exports);
34
35
  __exportStar(require("./role-class"), exports);
36
+ __exportStar(require("./switch-workspace-request-without-refresh-token-dto"), exports);
37
+ __exportStar(require("./switch-workspace-response-class"), exports);
35
38
  __exportStar(require("./user-class"), exports);
36
39
  __exportStar(require("./verify-org-invitation-request-dto"), exports);
37
40
  __exportStar(require("./verify-org-invitation-response-class"), exports);
41
+ __exportStar(require("./workspace-class"), exports);
@@ -0,0 +1,25 @@
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 { WorkspaceClass } from './workspace-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListWorkspacesRepsonseClass
17
+ */
18
+ export interface ListWorkspacesRepsonseClass {
19
+ /**
20
+ * The list of workspaces.
21
+ * @type {Array<WorkspaceClass>}
22
+ * @memberof ListWorkspacesRepsonseClass
23
+ */
24
+ 'workspaces': Array<WorkspaceClass>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SwitchWorkspaceRequestWithoutRefreshTokenDto
16
+ */
17
+ export interface SwitchWorkspaceRequestWithoutRefreshTokenDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
22
+ */
23
+ 'username': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
28
+ */
29
+ 'targetWorkspace': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SwitchWorkspaceResponseClass
16
+ */
17
+ export interface SwitchWorkspaceResponseClass {
18
+ /**
19
+ * Access token for API authentication
20
+ * @type {string}
21
+ * @memberof SwitchWorkspaceResponseClass
22
+ */
23
+ 'accessToken': string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -82,4 +82,10 @@ export interface UserClass {
82
82
  * @memberof UserClass
83
83
  */
84
84
  'updatedAt': string;
85
+ /**
86
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
87
+ * @type {string}
88
+ * @memberof UserClass
89
+ */
90
+ 'ern': string;
85
91
  }
@@ -0,0 +1,42 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface WorkspaceClass
16
+ */
17
+ export interface WorkspaceClass {
18
+ /**
19
+ * The name of the workspace
20
+ * @type {string}
21
+ * @memberof WorkspaceClass
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * The slug of the workspace
26
+ * @type {string}
27
+ * @memberof WorkspaceClass
28
+ */
29
+ 'slug': string;
30
+ /**
31
+ * The name of the tenant
32
+ * @type {string}
33
+ * @memberof WorkspaceClass
34
+ */
35
+ 'tenantName': string;
36
+ /**
37
+ * Whether the workspace is the default workspace
38
+ * @type {boolean}
39
+ * @memberof WorkspaceClass
40
+ */
41
+ 'isDefault': boolean;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AuthService
6
+ * The EMIL AuthService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './forgot-password-request-dto';
7
7
  export * from './get-saml-login-link-request-dto';
8
8
  export * from './inline-response200';
9
9
  export * from './inline-response503';
10
+ export * from './list-workspaces-repsonse-class';
10
11
  export * from './login-by-saml-request-dto';
11
12
  export * from './login-class';
12
13
  export * from './login-request-dto';
@@ -16,6 +17,9 @@ export * from './organization-class';
16
17
  export * from './refresh-token-dto';
17
18
  export * from './reset-password-request-dto';
18
19
  export * from './role-class';
20
+ export * from './switch-workspace-request-without-refresh-token-dto';
21
+ export * from './switch-workspace-response-class';
19
22
  export * from './user-class';
20
23
  export * from './verify-org-invitation-request-dto';
21
24
  export * from './verify-org-invitation-response-class';
25
+ export * from './workspace-class';
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { WorkspaceClass } from './workspace-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListWorkspacesRepsonseClass
22
+ */
23
+ export interface ListWorkspacesRepsonseClass {
24
+ /**
25
+ * The list of workspaces.
26
+ * @type {Array<WorkspaceClass>}
27
+ * @memberof ListWorkspacesRepsonseClass
28
+ */
29
+ 'workspaces': Array<WorkspaceClass>;
30
+ }
31
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface SwitchWorkspaceRequestWithoutRefreshTokenDto
21
+ */
22
+ export interface SwitchWorkspaceRequestWithoutRefreshTokenDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
27
+ */
28
+ 'username': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
33
+ */
34
+ 'targetWorkspace': string;
35
+ }
36
+