@emilgroup/auth-sdk 1.20.1-beta.6 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/{default-api.ts → health-api.ts} +17 -17
- package/api/workspaces-api.ts +269 -0
- package/api.ts +4 -2
- package/dist/api/health-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-api.js} +26 -26
- package/dist/api/workspaces-api.d.ts +153 -0
- package/dist/api/workspaces-api.js +317 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-workspaces-response-class.d.ts +25 -0
- package/dist/models/list-workspaces-response-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 +48 -0
- package/dist/models/workspace-class.js +15 -0
- package/models/index.ts +4 -0
- package/models/list-workspaces-response-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 +54 -0
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -70
package/.openapi-generator/FILES
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/authservice-api.ts
|
|
7
|
-
api/
|
|
7
|
+
api/health-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-response-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
|
+
npm install @emilgroup/auth-sdk@1.21.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.21.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -25,13 +25,13 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* HealthApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -66,14 +66,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* HealthApi - functional programming interface
|
|
70
70
|
* @export
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
73
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -86,14 +86,14 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HealthApi - factory interface
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
93
|
-
const localVarFp =
|
|
92
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = HealthApiFp(configuration)
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -105,20 +105,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* HealthApi - object-oriented interface
|
|
109
109
|
* @export
|
|
110
|
-
* @class
|
|
110
|
+
* @class HealthApi
|
|
111
111
|
* @extends {BaseAPI}
|
|
112
112
|
*/
|
|
113
|
-
export class
|
|
113
|
+
export class HealthApi extends BaseAPI {
|
|
114
114
|
/**
|
|
115
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -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 { ListWorkspacesResponseClass } 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<ListWorkspacesResponseClass>> {
|
|
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<ListWorkspacesResponseClass> {
|
|
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
|
@@ -21,9 +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
|
import { AuthserviceApi } from './api';
|
|
24
|
-
import {
|
|
24
|
+
import { HealthApi } from './api';
|
|
25
|
+
import { WorkspacesApi } from './api';
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
export * from './api/authservice-api';
|
|
28
|
-
export * from './api/
|
|
29
|
+
export * from './api/health-api';
|
|
30
|
+
export * from './api/workspaces-api';
|
|
29
31
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { InlineResponse200 } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* HealthApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
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.
|
|
23
|
+
* @summary Health Check
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* HealthApi - functional programming interface
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
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.
|
|
36
|
+
* @summary Health Check
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* HealthApi - factory interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
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.
|
|
49
|
+
* @summary Health Check
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* HealthApi - object-oriented interface
|
|
57
|
+
* @export
|
|
58
|
+
* @class HealthApi
|
|
59
|
+
* @extends {BaseAPI}
|
|
60
|
+
*/
|
|
61
|
+
export declare class HealthApi extends BaseAPI {
|
|
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.
|
|
64
|
+
* @summary Health Check
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof HealthApi
|
|
68
|
+
*/
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
70
|
+
}
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,14 +86,14 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* HealthApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var HealthApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -124,16 +124,16 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
},
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
127
|
+
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* HealthApi - functional programming interface
|
|
130
130
|
* @export
|
|
131
131
|
*/
|
|
132
|
-
var
|
|
133
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
132
|
+
var HealthApiFp = function (configuration) {
|
|
133
|
+
var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
134
134
|
return {
|
|
135
135
|
/**
|
|
136
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -153,16 +153,16 @@ var DefaultApiFp = function (configuration) {
|
|
|
153
153
|
},
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
-
exports.
|
|
156
|
+
exports.HealthApiFp = HealthApiFp;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* HealthApi - factory interface
|
|
159
159
|
* @export
|
|
160
160
|
*/
|
|
161
|
-
var
|
|
162
|
-
var localVarFp = (0, exports.
|
|
161
|
+
var HealthApiFactory = function (configuration, basePath, axios) {
|
|
162
|
+
var localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
163
163
|
return {
|
|
164
164
|
/**
|
|
165
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
@@ -172,29 +172,29 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
172
172
|
},
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
|
-
exports.
|
|
175
|
+
exports.HealthApiFactory = HealthApiFactory;
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
177
|
+
* HealthApi - object-oriented interface
|
|
178
178
|
* @export
|
|
179
|
-
* @class
|
|
179
|
+
* @class HealthApi
|
|
180
180
|
* @extends {BaseAPI}
|
|
181
181
|
*/
|
|
182
|
-
var
|
|
183
|
-
__extends(
|
|
184
|
-
function
|
|
182
|
+
var HealthApi = /** @class */ (function (_super) {
|
|
183
|
+
__extends(HealthApi, _super);
|
|
184
|
+
function HealthApi() {
|
|
185
185
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
|
-
* Returns the health status of the auth service.
|
|
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}
|
|
192
|
-
* @memberof
|
|
192
|
+
* @memberof HealthApi
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
HealthApi.prototype.check = function (options) {
|
|
195
195
|
var _this = this;
|
|
196
|
-
return (0, exports.
|
|
196
|
+
return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
197
197
|
};
|
|
198
|
-
return
|
|
198
|
+
return HealthApi;
|
|
199
199
|
}(base_1.BaseAPI));
|
|
200
|
-
exports.
|
|
200
|
+
exports.HealthApi = HealthApi;
|