@emilgroup/auth-sdk 1.20.1-beta.1 → 1.20.1-beta.3

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.
@@ -21,6 +21,7 @@ models/get-saml-login-link-request-dto.ts
21
21
  models/index.ts
22
22
  models/inline-response200.ts
23
23
  models/inline-response503.ts
24
+ models/list-workspaces-repsonse-class.ts
24
25
  models/login-by-saml-request-dto.ts
25
26
  models/login-class.ts
26
27
  models/login-request-dto.ts
@@ -31,8 +32,10 @@ models/refresh-token-dto.ts
31
32
  models/reset-password-request-dto.ts
32
33
  models/role-class.ts
33
34
  models/switch-workspace-request-without-refresh-token-dto.ts
35
+ models/switch-workspace-response-class.ts
34
36
  models/user-class.ts
35
37
  models/verify-org-invitation-request-dto.ts
36
38
  models/verify-org-invitation-response-class.ts
39
+ models/workspace-class.ts
37
40
  package.json
38
41
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/auth-sdk@1.20.1-beta.1 --save
20
+ npm install @emilgroup/auth-sdk@1.20.1-beta.3 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.20.1-beta.1
24
+ yarn add @emilgroup/auth-sdk@1.20.1-beta.3
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -21,7 +21,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { ListWorkspacesRepsonseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
27
+ // @ts-ignore
28
+ import { SwitchWorkspaceResponseClass } from '../models';
25
29
  /**
26
30
  * WorkspacesApi - axios parameter creator
27
31
  * @export
@@ -29,11 +33,13 @@ import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
29
33
  export const WorkspacesApiAxiosParamCreator = function (configuration?: Configuration) {
30
34
  return {
31
35
  /**
32
- *
36
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
37
+ * @summary List workspaces
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
33
39
  * @param {*} [options] Override http request option.
34
40
  * @throws {RequiredError}
35
41
  */
36
- listWorkspaces: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ listWorkspaces: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
43
  const localVarPath = `/authservice/v1/workspaces`;
38
44
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
39
45
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -48,6 +54,14 @@ export const WorkspacesApiAxiosParamCreator = function (configuration?: Configur
48
54
  const localVarHeaderParameter = {} as any;
49
55
  const localVarQueryParameter = {} as any;
50
56
 
57
+ // authentication bearer required
58
+ // http bearer authentication required
59
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
+
61
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
+ }
64
+
51
65
 
52
66
 
53
67
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -60,13 +74,15 @@ export const WorkspacesApiAxiosParamCreator = function (configuration?: Configur
60
74
  };
61
75
  },
62
76
  /**
63
- *
77
+ * Switch to a different workspace and get new access and refresh tokens.
78
+ * @summary Switch workspace
64
79
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
80
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
81
  * @param {string} [cookie] HTTP only cookie that was sent during login
66
82
  * @param {*} [options] Override http request option.
67
83
  * @throws {RequiredError}
68
84
  */
69
- switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
85
+ switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
70
86
  // verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
71
87
  assertParamExists('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto)
72
88
  const localVarPath = `/authservice/v1/workspaces/switch`;
@@ -83,6 +99,14 @@ export const WorkspacesApiAxiosParamCreator = function (configuration?: Configur
83
99
  const localVarHeaderParameter = {} as any;
84
100
  const localVarQueryParameter = {} as any;
85
101
 
102
+ // authentication bearer required
103
+ // http bearer authentication required
104
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
105
+
106
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
107
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
108
+ }
109
+
86
110
  if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
87
111
  localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
88
112
  }
@@ -112,23 +136,27 @@ export const WorkspacesApiFp = function(configuration?: Configuration) {
112
136
  const localVarAxiosParamCreator = WorkspacesApiAxiosParamCreator(configuration)
113
137
  return {
114
138
  /**
115
- *
139
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
140
+ * @summary List workspaces
141
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
116
142
  * @param {*} [options] Override http request option.
117
143
  * @throws {RequiredError}
118
144
  */
119
- async listWorkspaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
120
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(options);
145
+ async listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesRepsonseClass>> {
146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(authorization, options);
121
147
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
122
148
  },
123
149
  /**
124
- *
150
+ * Switch to a different workspace and get new access and refresh tokens.
151
+ * @summary Switch workspace
125
152
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
126
154
  * @param {string} [cookie] HTTP only cookie that was sent during login
127
155
  * @param {*} [options] Override http request option.
128
156
  * @throws {RequiredError}
129
157
  */
130
- async switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
131
- const localVarAxiosArgs = await localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options);
158
+ async switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwitchWorkspaceResponseClass>> {
159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options);
132
160
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
133
161
  },
134
162
  }
@@ -142,26 +170,44 @@ export const WorkspacesApiFactory = function (configuration?: Configuration, bas
142
170
  const localVarFp = WorkspacesApiFp(configuration)
143
171
  return {
144
172
  /**
145
- *
173
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
174
+ * @summary List workspaces
175
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
176
  * @param {*} [options] Override http request option.
147
177
  * @throws {RequiredError}
148
178
  */
149
- listWorkspaces(options?: any): AxiosPromise<void> {
150
- return localVarFp.listWorkspaces(options).then((request) => request(axios, basePath));
179
+ listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesRepsonseClass> {
180
+ return localVarFp.listWorkspaces(authorization, options).then((request) => request(axios, basePath));
151
181
  },
152
182
  /**
153
- *
183
+ * Switch to a different workspace and get new access and refresh tokens.
184
+ * @summary Switch workspace
154
185
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
187
  * @param {string} [cookie] HTTP only cookie that was sent during login
156
188
  * @param {*} [options] Override http request option.
157
189
  * @throws {RequiredError}
158
190
  */
159
- switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: any): AxiosPromise<object> {
160
- return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options).then((request) => request(axios, basePath));
191
+ switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise<SwitchWorkspaceResponseClass> {
192
+ return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then((request) => request(axios, basePath));
161
193
  },
162
194
  };
163
195
  };
164
196
 
197
+ /**
198
+ * Request parameters for listWorkspaces operation in WorkspacesApi.
199
+ * @export
200
+ * @interface WorkspacesApiListWorkspacesRequest
201
+ */
202
+ export interface WorkspacesApiListWorkspacesRequest {
203
+ /**
204
+ * Bearer Token: provided by the login endpoint under the name accessToken.
205
+ * @type {string}
206
+ * @memberof WorkspacesApiListWorkspaces
207
+ */
208
+ readonly authorization?: string
209
+ }
210
+
165
211
  /**
166
212
  * Request parameters for switchWorkspace operation in WorkspacesApi.
167
213
  * @export
@@ -175,6 +221,13 @@ export interface WorkspacesApiSwitchWorkspaceRequest {
175
221
  */
176
222
  readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto
177
223
 
224
+ /**
225
+ * Bearer Token: provided by the login endpoint under the name accessToken.
226
+ * @type {string}
227
+ * @memberof WorkspacesApiSwitchWorkspace
228
+ */
229
+ readonly authorization?: string
230
+
178
231
  /**
179
232
  * HTTP only cookie that was sent during login
180
233
  * @type {string}
@@ -191,23 +244,26 @@ export interface WorkspacesApiSwitchWorkspaceRequest {
191
244
  */
192
245
  export class WorkspacesApi extends BaseAPI {
193
246
  /**
194
- *
247
+ * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
248
+ * @summary List workspaces
249
+ * @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
195
250
  * @param {*} [options] Override http request option.
196
251
  * @throws {RequiredError}
197
252
  * @memberof WorkspacesApi
198
253
  */
199
- public listWorkspaces(options?: AxiosRequestConfig) {
200
- return WorkspacesApiFp(this.configuration).listWorkspaces(options).then((request) => request(this.axios, this.basePath));
254
+ public listWorkspaces(requestParameters: WorkspacesApiListWorkspacesRequest = {}, options?: AxiosRequestConfig) {
255
+ return WorkspacesApiFp(this.configuration).listWorkspaces(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
201
256
  }
202
257
 
203
258
  /**
204
- *
259
+ * Switch to a different workspace and get new access and refresh tokens.
260
+ * @summary Switch workspace
205
261
  * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
206
262
  * @param {*} [options] Override http request option.
207
263
  * @throws {RequiredError}
208
264
  * @memberof WorkspacesApi
209
265
  */
210
266
  public switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig) {
211
- return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
267
+ return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
212
268
  }
213
269
  }
@@ -12,26 +12,32 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListWorkspacesRepsonseClass } from '../models';
15
16
  import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
17
+ import { SwitchWorkspaceResponseClass } from '../models';
16
18
  /**
17
19
  * WorkspacesApi - axios parameter creator
18
20
  * @export
19
21
  */
20
22
  export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configuration) => {
21
23
  /**
22
- *
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.
23
27
  * @param {*} [options] Override http request option.
24
28
  * @throws {RequiredError}
25
29
  */
26
- listWorkspaces: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ listWorkspaces: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
31
  /**
28
- *
32
+ * Switch to a different workspace and get new access and refresh tokens.
33
+ * @summary Switch workspace
29
34
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
30
36
  * @param {string} [cookie] HTTP only cookie that was sent during login
31
37
  * @param {*} [options] Override http request option.
32
38
  * @throws {RequiredError}
33
39
  */
34
- switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
41
  };
36
42
  /**
37
43
  * WorkspacesApi - functional programming interface
@@ -39,19 +45,23 @@ export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configurat
39
45
  */
40
46
  export declare const WorkspacesApiFp: (configuration?: Configuration) => {
41
47
  /**
42
- *
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.
43
51
  * @param {*} [options] Override http request option.
44
52
  * @throws {RequiredError}
45
53
  */
46
- listWorkspaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
54
+ listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesRepsonseClass>>;
47
55
  /**
48
- *
56
+ * Switch to a different workspace and get new access and refresh tokens.
57
+ * @summary Switch workspace
49
58
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
59
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
60
  * @param {string} [cookie] HTTP only cookie that was sent during login
51
61
  * @param {*} [options] Override http request option.
52
62
  * @throws {RequiredError}
53
63
  */
54
- switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
64
+ switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwitchWorkspaceResponseClass>>;
55
65
  };
56
66
  /**
57
67
  * WorkspacesApi - factory interface
@@ -59,20 +69,37 @@ export declare const WorkspacesApiFp: (configuration?: Configuration) => {
59
69
  */
60
70
  export declare const WorkspacesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
61
71
  /**
62
- *
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.
63
75
  * @param {*} [options] Override http request option.
64
76
  * @throws {RequiredError}
65
77
  */
66
- listWorkspaces(options?: any): AxiosPromise<void>;
78
+ listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesRepsonseClass>;
67
79
  /**
68
- *
80
+ * Switch to a different workspace and get new access and refresh tokens.
81
+ * @summary Switch workspace
69
82
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
83
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
70
84
  * @param {string} [cookie] HTTP only cookie that was sent during login
71
85
  * @param {*} [options] Override http request option.
72
86
  * @throws {RequiredError}
73
87
  */
74
- switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: any): AxiosPromise<object>;
88
+ switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise<SwitchWorkspaceResponseClass>;
75
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
+ }
76
103
  /**
77
104
  * Request parameters for switchWorkspace operation in WorkspacesApi.
78
105
  * @export
@@ -85,6 +112,12 @@ export interface WorkspacesApiSwitchWorkspaceRequest {
85
112
  * @memberof WorkspacesApiSwitchWorkspace
86
113
  */
87
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;
88
121
  /**
89
122
  * HTTP only cookie that was sent during login
90
123
  * @type {string}
@@ -100,18 +133,21 @@ export interface WorkspacesApiSwitchWorkspaceRequest {
100
133
  */
101
134
  export declare class WorkspacesApi extends BaseAPI {
102
135
  /**
103
- *
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.
104
139
  * @param {*} [options] Override http request option.
105
140
  * @throws {RequiredError}
106
141
  * @memberof WorkspacesApi
107
142
  */
108
- listWorkspaces(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
143
+ listWorkspaces(requestParameters?: WorkspacesApiListWorkspacesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspacesRepsonseClass, any>>;
109
144
  /**
110
- *
145
+ * Switch to a different workspace and get new access and refresh tokens.
146
+ * @summary Switch workspace
111
147
  * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
112
148
  * @param {*} [options] Override http request option.
113
149
  * @throws {RequiredError}
114
150
  * @memberof WorkspacesApi
115
151
  */
116
- switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
152
+ switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwitchWorkspaceResponseClass, any>>;
117
153
  }
@@ -102,77 +102,107 @@ var WorkspacesApiAxiosParamCreator = function (configuration) {
102
102
  var _this = this;
103
103
  return {
104
104
  /**
105
- *
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.
106
108
  * @param {*} [options] Override http request option.
107
109
  * @throws {RequiredError}
108
110
  */
109
- listWorkspaces: function () {
111
+ listWorkspaces: function (authorization_1) {
110
112
  var args_1 = [];
111
- for (var _i = 0; _i < arguments.length; _i++) {
112
- args_1[_i] = arguments[_i];
113
+ for (var _i = 1; _i < arguments.length; _i++) {
114
+ args_1[_i - 1] = arguments[_i];
113
115
  }
114
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
116
+ return __awaiter(_this, __spreadArray([authorization_1], args_1, true), void 0, function (authorization, options) {
115
117
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
118
  if (options === void 0) { options = {}; }
117
119
  return __generator(this, function (_a) {
118
- localVarPath = "/authservice/v1/workspaces";
119
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
120
- if (configuration) {
121
- baseOptions = configuration.baseOptions;
122
- baseAccessToken = configuration.accessToken;
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
+ }];
123
148
  }
124
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
- localVarHeaderParameter = {};
126
- localVarQueryParameter = {};
127
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- return [2 /*return*/, {
131
- url: (0, common_1.toPathString)(localVarUrlObj),
132
- options: localVarRequestOptions,
133
- }];
134
149
  });
135
150
  });
136
151
  },
137
152
  /**
138
- *
153
+ * Switch to a different workspace and get new access and refresh tokens.
154
+ * @summary Switch workspace
139
155
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
140
157
  * @param {string} [cookie] HTTP only cookie that was sent during login
141
158
  * @param {*} [options] Override http request option.
142
159
  * @throws {RequiredError}
143
160
  */
144
- switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto_1, cookie_1) {
161
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto_1, authorization_1, cookie_1) {
145
162
  var args_1 = [];
146
- for (var _i = 2; _i < arguments.length; _i++) {
147
- args_1[_i - 2] = arguments[_i];
163
+ for (var _i = 3; _i < arguments.length; _i++) {
164
+ args_1[_i - 3] = arguments[_i];
148
165
  }
149
- return __awaiter(_this, __spreadArray([switchWorkspaceRequestWithoutRefreshTokenDto_1, cookie_1], args_1, true), void 0, function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
166
+ return __awaiter(_this, __spreadArray([switchWorkspaceRequestWithoutRefreshTokenDto_1, authorization_1, cookie_1], args_1, true), void 0, function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
150
167
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
151
168
  if (options === void 0) { options = {}; }
152
169
  return __generator(this, function (_a) {
153
- // verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
154
- (0, common_1.assertParamExists)('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto);
155
- localVarPath = "/authservice/v1/workspaces/switch";
156
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
157
- if (configuration) {
158
- baseOptions = configuration.baseOptions;
159
- baseAccessToken = configuration.accessToken;
160
- }
161
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
162
- localVarHeaderParameter = {};
163
- localVarQueryParameter = {};
164
- if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
165
- localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
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
+ }];
166
205
  }
167
- localVarHeaderParameter['Content-Type'] = 'application/json';
168
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
169
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
171
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration);
172
- return [2 /*return*/, {
173
- url: (0, common_1.toPathString)(localVarUrlObj),
174
- options: localVarRequestOptions,
175
- }];
176
206
  });
177
207
  });
178
208
  },
@@ -187,16 +217,18 @@ var WorkspacesApiFp = function (configuration) {
187
217
  var localVarAxiosParamCreator = (0, exports.WorkspacesApiAxiosParamCreator)(configuration);
188
218
  return {
189
219
  /**
190
- *
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.
191
223
  * @param {*} [options] Override http request option.
192
224
  * @throws {RequiredError}
193
225
  */
194
- listWorkspaces: function (options) {
226
+ listWorkspaces: function (authorization, options) {
195
227
  return __awaiter(this, void 0, void 0, function () {
196
228
  var localVarAxiosArgs;
197
229
  return __generator(this, function (_a) {
198
230
  switch (_a.label) {
199
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(options)];
231
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(authorization, options)];
200
232
  case 1:
201
233
  localVarAxiosArgs = _a.sent();
202
234
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -205,18 +237,20 @@ var WorkspacesApiFp = function (configuration) {
205
237
  });
206
238
  },
207
239
  /**
208
- *
240
+ * Switch to a different workspace and get new access and refresh tokens.
241
+ * @summary Switch workspace
209
242
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
243
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
210
244
  * @param {string} [cookie] HTTP only cookie that was sent during login
211
245
  * @param {*} [options] Override http request option.
212
246
  * @throws {RequiredError}
213
247
  */
214
- switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
248
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
215
249
  return __awaiter(this, void 0, void 0, function () {
216
250
  var localVarAxiosArgs;
217
251
  return __generator(this, function (_a) {
218
252
  switch (_a.label) {
219
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options)];
253
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options)];
220
254
  case 1:
221
255
  localVarAxiosArgs = _a.sent();
222
256
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -235,22 +269,26 @@ var WorkspacesApiFactory = function (configuration, basePath, axios) {
235
269
  var localVarFp = (0, exports.WorkspacesApiFp)(configuration);
236
270
  return {
237
271
  /**
238
- *
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.
239
275
  * @param {*} [options] Override http request option.
240
276
  * @throws {RequiredError}
241
277
  */
242
- listWorkspaces: function (options) {
243
- return localVarFp.listWorkspaces(options).then(function (request) { return request(axios, basePath); });
278
+ listWorkspaces: function (authorization, options) {
279
+ return localVarFp.listWorkspaces(authorization, options).then(function (request) { return request(axios, basePath); });
244
280
  },
245
281
  /**
246
- *
282
+ * Switch to a different workspace and get new access and refresh tokens.
283
+ * @summary Switch workspace
247
284
  * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
285
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
286
  * @param {string} [cookie] HTTP only cookie that was sent during login
249
287
  * @param {*} [options] Override http request option.
250
288
  * @throws {RequiredError}
251
289
  */
252
- switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
253
- return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options).then(function (request) { return request(axios, basePath); });
290
+ switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
291
+ return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then(function (request) { return request(axios, basePath); });
254
292
  },
255
293
  };
256
294
  };
@@ -267,17 +305,21 @@ var WorkspacesApi = /** @class */ (function (_super) {
267
305
  return _super !== null && _super.apply(this, arguments) || this;
268
306
  }
269
307
  /**
270
- *
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.
271
311
  * @param {*} [options] Override http request option.
272
312
  * @throws {RequiredError}
273
313
  * @memberof WorkspacesApi
274
314
  */
275
- WorkspacesApi.prototype.listWorkspaces = function (options) {
315
+ WorkspacesApi.prototype.listWorkspaces = function (requestParameters, options) {
276
316
  var _this = this;
277
- return (0, exports.WorkspacesApiFp)(this.configuration).listWorkspaces(options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
278
319
  };
279
320
  /**
280
- *
321
+ * Switch to a different workspace and get new access and refresh tokens.
322
+ * @summary Switch workspace
281
323
  * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
282
324
  * @param {*} [options] Override http request option.
283
325
  * @throws {RequiredError}
@@ -285,7 +327,7 @@ var WorkspacesApi = /** @class */ (function (_super) {
285
327
  */
286
328
  WorkspacesApi.prototype.switchWorkspace = function (requestParameters, options) {
287
329
  var _this = this;
288
- return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
330
+ return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
289
331
  };
290
332
  return WorkspacesApi;
291
333
  }(base_1.BaseAPI));
@@ -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';
@@ -17,6 +18,8 @@ export * from './refresh-token-dto';
17
18
  export * from './reset-password-request-dto';
18
19
  export * from './role-class';
19
20
  export * from './switch-workspace-request-without-refresh-token-dto';
21
+ export * from './switch-workspace-response-class';
20
22
  export * from './user-class';
21
23
  export * from './verify-org-invitation-request-dto';
22
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);
@@ -33,6 +34,8 @@ __exportStar(require("./refresh-token-dto"), exports);
33
34
  __exportStar(require("./reset-password-request-dto"), exports);
34
35
  __exportStar(require("./role-class"), exports);
35
36
  __exportStar(require("./switch-workspace-request-without-refresh-token-dto"), exports);
37
+ __exportStar(require("./switch-workspace-response-class"), exports);
36
38
  __exportStar(require("./user-class"), exports);
37
39
  __exportStar(require("./verify-org-invitation-request-dto"), exports);
38
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,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,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 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
+ * Whether the workspace is the default workspace
26
+ * @type {boolean}
27
+ * @memberof WorkspaceClass
28
+ */
29
+ 'default': boolean;
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 });
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';
@@ -17,6 +18,8 @@ export * from './refresh-token-dto';
17
18
  export * from './reset-password-request-dto';
18
19
  export * from './role-class';
19
20
  export * from './switch-workspace-request-without-refresh-token-dto';
21
+ export * from './switch-workspace-response-class';
20
22
  export * from './user-class';
21
23
  export * from './verify-org-invitation-request-dto';
22
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,30 @@
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 SwitchWorkspaceResponseClass
21
+ */
22
+ export interface SwitchWorkspaceResponseClass {
23
+ /**
24
+ * Access token for API authentication
25
+ * @type {string}
26
+ * @memberof SwitchWorkspaceResponseClass
27
+ */
28
+ 'accessToken': string;
29
+ }
30
+
@@ -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 WorkspaceClass
21
+ */
22
+ export interface WorkspaceClass {
23
+ /**
24
+ * The name of the workspace
25
+ * @type {string}
26
+ * @memberof WorkspaceClass
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Whether the workspace is the default workspace
31
+ * @type {boolean}
32
+ * @memberof WorkspaceClass
33
+ */
34
+ 'default': boolean;
35
+ }
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk",
3
- "version": "1.20.1-beta.1",
3
+ "version": "1.20.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [