@emilgroup/auth-sdk 1.20.1-beta.2 → 1.20.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/default-api.ts +4 -4
- package/api/workspaces-api.ts +269 -0
- package/api.ts +2 -0
- package/dist/api/default-api.d.ts +4 -4
- package/dist/api/default-api.js +4 -4
- package/dist/api/workspaces-api.d.ts +153 -0
- package/dist/api/workspaces-api.js +334 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-workspaces-repsonse-class.d.ts +25 -0
- package/dist/models/list-workspaces-repsonse-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 +36 -0
- package/dist/models/workspace-class.js +15 -0
- package/models/index.ts +4 -0
- package/models/list-workspaces-repsonse-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 +42 -0
- package/package.json +1 -1
|
@@ -0,0 +1,334 @@
|
|
|
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["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 __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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = void 0;
|
|
91
|
+
var axios_1 = __importDefault(require("axios"));
|
|
92
|
+
// Some imports not used depending on template conditions
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
var common_1 = require("../common");
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
var base_1 = require("../base");
|
|
97
|
+
/**
|
|
98
|
+
* WorkspacesApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var WorkspacesApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
106
|
+
* @summary List workspaces
|
|
107
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
listWorkspaces: function (authorization_1) {
|
|
112
|
+
var args_1 = [];
|
|
113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
|
+
args_1[_i - 1] = arguments[_i];
|
|
115
|
+
}
|
|
116
|
+
return __awaiter(_this, __spreadArray([authorization_1], args_1, true), void 0, function (authorization, options) {
|
|
117
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
118
|
+
if (options === void 0) { options = {}; }
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0:
|
|
122
|
+
localVarPath = "/authservice/v1/workspaces";
|
|
123
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
baseAccessToken = configuration.accessToken;
|
|
127
|
+
}
|
|
128
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
129
|
+
localVarHeaderParameter = {};
|
|
130
|
+
localVarQueryParameter = {};
|
|
131
|
+
// authentication bearer required
|
|
132
|
+
// http bearer authentication required
|
|
133
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
134
|
+
case 1:
|
|
135
|
+
// authentication bearer required
|
|
136
|
+
// http bearer authentication required
|
|
137
|
+
_a.sent();
|
|
138
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
139
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
|
+
}
|
|
141
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
144
|
+
return [2 /*return*/, {
|
|
145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
}];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
154
|
+
* @summary Switch workspace
|
|
155
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto_1, authorization_1, cookie_1) {
|
|
162
|
+
var args_1 = [];
|
|
163
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
164
|
+
args_1[_i - 3] = arguments[_i];
|
|
165
|
+
}
|
|
166
|
+
return __awaiter(_this, __spreadArray([switchWorkspaceRequestWithoutRefreshTokenDto_1, authorization_1, cookie_1], args_1, true), void 0, function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
167
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
168
|
+
if (options === void 0) { options = {}; }
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0:
|
|
172
|
+
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto);
|
|
174
|
+
localVarPath = "/authservice/v1/workspaces/switch";
|
|
175
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
baseAccessToken = configuration.accessToken;
|
|
179
|
+
}
|
|
180
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
181
|
+
localVarHeaderParameter = {};
|
|
182
|
+
localVarQueryParameter = {};
|
|
183
|
+
// authentication bearer required
|
|
184
|
+
// http bearer authentication required
|
|
185
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
186
|
+
case 1:
|
|
187
|
+
// authentication bearer required
|
|
188
|
+
// http bearer authentication required
|
|
189
|
+
_a.sent();
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
|
+
}
|
|
193
|
+
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
194
|
+
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
195
|
+
}
|
|
196
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
197
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
200
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration);
|
|
201
|
+
return [2 /*return*/, {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
}];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
exports.WorkspacesApiAxiosParamCreator = WorkspacesApiAxiosParamCreator;
|
|
212
|
+
/**
|
|
213
|
+
* WorkspacesApi - functional programming interface
|
|
214
|
+
* @export
|
|
215
|
+
*/
|
|
216
|
+
var WorkspacesApiFp = function (configuration) {
|
|
217
|
+
var localVarAxiosParamCreator = (0, exports.WorkspacesApiAxiosParamCreator)(configuration);
|
|
218
|
+
return {
|
|
219
|
+
/**
|
|
220
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
221
|
+
* @summary List workspaces
|
|
222
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
listWorkspaces: function (authorization, options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var localVarAxiosArgs;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(authorization, options)];
|
|
232
|
+
case 1:
|
|
233
|
+
localVarAxiosArgs = _a.sent();
|
|
234
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
241
|
+
* @summary Switch workspace
|
|
242
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
243
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
250
|
+
var localVarAxiosArgs;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
switch (_a.label) {
|
|
253
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options)];
|
|
254
|
+
case 1:
|
|
255
|
+
localVarAxiosArgs = _a.sent();
|
|
256
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
exports.WorkspacesApiFp = WorkspacesApiFp;
|
|
264
|
+
/**
|
|
265
|
+
* WorkspacesApi - factory interface
|
|
266
|
+
* @export
|
|
267
|
+
*/
|
|
268
|
+
var WorkspacesApiFactory = function (configuration, basePath, axios) {
|
|
269
|
+
var localVarFp = (0, exports.WorkspacesApiFp)(configuration);
|
|
270
|
+
return {
|
|
271
|
+
/**
|
|
272
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
273
|
+
* @summary List workspaces
|
|
274
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
listWorkspaces: function (authorization, options) {
|
|
279
|
+
return localVarFp.listWorkspaces(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
283
|
+
* @summary Switch workspace
|
|
284
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
285
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
286
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
291
|
+
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then(function (request) { return request(axios, basePath); });
|
|
292
|
+
},
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
exports.WorkspacesApiFactory = WorkspacesApiFactory;
|
|
296
|
+
/**
|
|
297
|
+
* WorkspacesApi - object-oriented interface
|
|
298
|
+
* @export
|
|
299
|
+
* @class WorkspacesApi
|
|
300
|
+
* @extends {BaseAPI}
|
|
301
|
+
*/
|
|
302
|
+
var WorkspacesApi = /** @class */ (function (_super) {
|
|
303
|
+
__extends(WorkspacesApi, _super);
|
|
304
|
+
function WorkspacesApi() {
|
|
305
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
309
|
+
* @summary List workspaces
|
|
310
|
+
* @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
* @memberof WorkspacesApi
|
|
314
|
+
*/
|
|
315
|
+
WorkspacesApi.prototype.listWorkspaces = function (requestParameters, options) {
|
|
316
|
+
var _this = this;
|
|
317
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
318
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).listWorkspaces(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
322
|
+
* @summary Switch workspace
|
|
323
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof WorkspacesApi
|
|
327
|
+
*/
|
|
328
|
+
WorkspacesApi.prototype.switchWorkspace = function (requestParameters, options) {
|
|
329
|
+
var _this = this;
|
|
330
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
331
|
+
};
|
|
332
|
+
return WorkspacesApi;
|
|
333
|
+
}(base_1.BaseAPI));
|
|
334
|
+
exports.WorkspacesApi = WorkspacesApi;
|
package/dist/api.d.ts
CHANGED
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);
|
package/dist/models/index.d.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';
|
package/dist/models/index.js
CHANGED
|
@@ -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 });
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Whether the workspace is the default workspace
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WorkspaceClass
|
|
34
|
+
*/
|
|
35
|
+
'isDefault': boolean;
|
|
36
|
+
}
|
|
@@ -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
|
+
|