@emilgroup/auth-sdk 1.20.1-beta.6 → 1.21.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.
@@ -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
+ }
@@ -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
@@ -10,4 +10,5 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/authservice-api';
13
- export * from './api/default-api';
13
+ export * from './api/health-api';
14
+ export * from './api/workspaces-api';
package/dist/api.js CHANGED
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/authservice-api"), exports);
31
- __exportStar(require("./api/default-api"), exports);
31
+ __exportStar(require("./api/health-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-response-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-response-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 ListWorkspacesResponseClass
17
+ */
18
+ export interface ListWorkspacesResponseClass {
19
+ /**
20
+ * The list of workspaces.
21
+ * @type {Array<WorkspaceClass>}
22
+ * @memberof ListWorkspacesResponseClass
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
  }