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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ README.md
5
5
  api.ts
6
6
  api/authservice-api.ts
7
7
  api/default-api.ts
8
+ api/workspaces-api.ts
8
9
  base.ts
9
10
  common.ts
10
11
  configuration.ts
@@ -20,6 +21,7 @@ models/get-saml-login-link-request-dto.ts
20
21
  models/index.ts
21
22
  models/inline-response200.ts
22
23
  models/inline-response503.ts
24
+ models/list-workspaces-repsonse-class.ts
23
25
  models/login-by-saml-request-dto.ts
24
26
  models/login-class.ts
25
27
  models/login-request-dto.ts
@@ -29,8 +31,11 @@ models/organization-class.ts
29
31
  models/refresh-token-dto.ts
30
32
  models/reset-password-request-dto.ts
31
33
  models/role-class.ts
34
+ models/switch-workspace-request-without-refresh-token-dto.ts
35
+ models/switch-workspace-response-class.ts
32
36
  models/user-class.ts
33
37
  models/verify-org-invitation-request-dto.ts
34
38
  models/verify-org-invitation-response-class.ts
39
+ models/workspace-class.ts
35
40
  package.json
36
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.6 --save
20
+ npm install @emilgroup/auth-sdk@1.20.1-beta.7 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.20.1-beta.6
24
+ yarn add @emilgroup/auth-sdk@1.20.1-beta.7
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -31,7 +31,7 @@ import { InlineResponse503 } from '../models';
31
31
  export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
34
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
35
  * @summary Health Check
36
36
  * @param {*} [options] Override http request option.
37
37
  * @throws {RequiredError}
@@ -73,7 +73,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
73
73
  const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
74
74
  return {
75
75
  /**
76
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
76
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
77
77
  * @summary Health Check
78
78
  * @param {*} [options] Override http request option.
79
79
  * @throws {RequiredError}
@@ -93,7 +93,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
93
93
  const localVarFp = DefaultApiFp(configuration)
94
94
  return {
95
95
  /**
96
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
96
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
97
  * @summary Health Check
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
@@ -112,7 +112,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
112
112
  */
113
113
  export class DefaultApi extends BaseAPI {
114
114
  /**
115
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
115
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
116
  * @summary Health Check
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
@@ -0,0 +1,269 @@
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { ListWorkspacesRepsonseClass } from '../models';
25
+ // @ts-ignore
26
+ import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
27
+ // @ts-ignore
28
+ import { SwitchWorkspaceResponseClass } from '../models';
29
+ /**
30
+ * WorkspacesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const WorkspacesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
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.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ listWorkspaces: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ const localVarPath = `/authservice/v1/workspaces`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ let baseAccessToken;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ baseAccessToken = configuration.accessToken;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
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
+
65
+
66
+
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ /**
77
+ * Switch to a different workspace and get new access and refresh tokens.
78
+ * @summary Switch workspace
79
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
80
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
81
+ * @param {string} [cookie] HTTP only cookie that was sent during login
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ // verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
87
+ assertParamExists('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto)
88
+ const localVarPath = `/authservice/v1/workspaces/switch`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ let baseAccessToken;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ baseAccessToken = configuration.accessToken;
96
+ }
97
+
98
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
99
+ const localVarHeaderParameter = {} as any;
100
+ const localVarQueryParameter = {} as any;
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
+
110
+ if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
111
+ localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
112
+ }
113
+
114
+
115
+
116
+ localVarHeaderParameter['Content-Type'] = 'application/json';
117
+
118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
121
+ localVarRequestOptions.data = serializeDataIfNeeded(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration)
122
+
123
+ return {
124
+ url: toPathString(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ },
128
+ }
129
+ };
130
+
131
+ /**
132
+ * WorkspacesApi - functional programming interface
133
+ * @export
134
+ */
135
+ export const WorkspacesApiFp = function(configuration?: Configuration) {
136
+ const localVarAxiosParamCreator = WorkspacesApiAxiosParamCreator(configuration)
137
+ return {
138
+ /**
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.
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ async listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesRepsonseClass>> {
146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(authorization, options);
147
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
148
+ },
149
+ /**
150
+ * Switch to a different workspace and get new access and refresh tokens.
151
+ * @summary Switch workspace
152
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {string} [cookie] HTTP only cookie that was sent during login
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
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);
160
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
161
+ },
162
+ }
163
+ };
164
+
165
+ /**
166
+ * WorkspacesApi - factory interface
167
+ * @export
168
+ */
169
+ export const WorkspacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
170
+ const localVarFp = WorkspacesApiFp(configuration)
171
+ return {
172
+ /**
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.
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesRepsonseClass> {
180
+ return localVarFp.listWorkspaces(authorization, options).then((request) => request(axios, basePath));
181
+ },
182
+ /**
183
+ * Switch to a different workspace and get new access and refresh tokens.
184
+ * @summary Switch workspace
185
+ * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {string} [cookie] HTTP only cookie that was sent during login
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
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));
193
+ },
194
+ };
195
+ };
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
+
211
+ /**
212
+ * Request parameters for switchWorkspace operation in WorkspacesApi.
213
+ * @export
214
+ * @interface WorkspacesApiSwitchWorkspaceRequest
215
+ */
216
+ export interface WorkspacesApiSwitchWorkspaceRequest {
217
+ /**
218
+ *
219
+ * @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
220
+ * @memberof WorkspacesApiSwitchWorkspace
221
+ */
222
+ readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto
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
+
231
+ /**
232
+ * HTTP only cookie that was sent during login
233
+ * @type {string}
234
+ * @memberof WorkspacesApiSwitchWorkspace
235
+ */
236
+ readonly cookie?: string
237
+ }
238
+
239
+ /**
240
+ * WorkspacesApi - object-oriented interface
241
+ * @export
242
+ * @class WorkspacesApi
243
+ * @extends {BaseAPI}
244
+ */
245
+ export class WorkspacesApi extends BaseAPI {
246
+ /**
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.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ * @memberof WorkspacesApi
253
+ */
254
+ public listWorkspaces(requestParameters: WorkspacesApiListWorkspacesRequest = {}, options?: AxiosRequestConfig) {
255
+ return WorkspacesApiFp(this.configuration).listWorkspaces(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
256
+ }
257
+
258
+ /**
259
+ * Switch to a different workspace and get new access and refresh tokens.
260
+ * @summary Switch workspace
261
+ * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ * @memberof WorkspacesApi
265
+ */
266
+ public switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig) {
267
+ return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
268
+ }
269
+ }
package/api.ts CHANGED
@@ -22,8 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { AuthserviceApi } from './api';
24
24
  import { DefaultApi } from './api';
25
+ import { WorkspacesApi } from './api';
25
26
 
26
27
 
27
28
  export * from './api/authservice-api';
28
29
  export * from './api/default-api';
30
+ export * from './api/workspaces-api';
29
31
 
@@ -19,7 +19,7 @@ import { InlineResponse200 } from '../models';
19
19
  */
20
20
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
22
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
23
  * @summary Health Check
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
@@ -32,7 +32,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
32
32
  */
33
33
  export declare const DefaultApiFp: (configuration?: Configuration) => {
34
34
  /**
35
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
36
  * @summary Health Check
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
@@ -45,7 +45,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
45
45
  */
46
46
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
47
  /**
48
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
48
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
49
  * @summary Health Check
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
@@ -60,7 +60,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
60
60
  */
61
61
  export declare class DefaultApi extends BaseAPI {
62
62
  /**
63
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
63
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
64
  * @summary Health Check
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
@@ -93,7 +93,7 @@ var DefaultApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
96
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
97
  * @summary Health Check
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
@@ -133,7 +133,7 @@ var DefaultApiFp = function (configuration) {
133
133
  var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
134
134
  return {
135
135
  /**
136
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
136
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
137
137
  * @summary Health Check
138
138
  * @param {*} [options] Override http request option.
139
139
  * @throws {RequiredError}
@@ -162,7 +162,7 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
162
162
  var localVarFp = (0, exports.DefaultApiFp)(configuration);
163
163
  return {
164
164
  /**
165
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
165
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
166
166
  * @summary Health Check
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
@@ -185,7 +185,7 @@ var DefaultApi = /** @class */ (function (_super) {
185
185
  return _super !== null && _super.apply(this, arguments) || this;
186
186
  }
187
187
  /**
188
- * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
188
+ * Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
189
189
  * @summary Health Check
190
190
  * @param {*} [options] Override http request option.
191
191
  * @throws {RequiredError}
@@ -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 { ListWorkspacesRepsonseClass } 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<ListWorkspacesRepsonseClass>>;
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<ListWorkspacesRepsonseClass>;
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<ListWorkspacesRepsonseClass, 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
+ }