@emilgroup/auth-sdk 1.20.0 → 1.20.1-beta.1
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 +2 -0
- package/README.md +2 -2
- package/api/default-api.ts +4 -4
- package/api/workspaces-api.ts +213 -0
- package/api.ts +2 -0
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/authservice-api.js +95 -38
- package/dist/api/default-api.d.ts +4 -4
- package/dist/api/default-api.js +22 -9
- package/dist/api/workspaces-api.d.ts +117 -0
- package/dist/api/workspaces-api.js +292 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +5 -5
- package/dist/common.d.ts +1 -1
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -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/user-class.d.ts +6 -0
- package/models/index.ts +1 -0
- package/models/switch-workspace-request-without-refresh-token-dto.ts +36 -0
- package/models/user-class.ts +6 -0
- package/package.json +3 -3
- package/tsconfig.json +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -29,6 +30,7 @@ models/organization-class.ts
|
|
|
29
30
|
models/refresh-token-dto.ts
|
|
30
31
|
models/reset-password-request-dto.ts
|
|
31
32
|
models/role-class.ts
|
|
33
|
+
models/switch-workspace-request-without-refresh-token-dto.ts
|
|
32
34
|
models/user-class.ts
|
|
33
35
|
models/verify-org-invitation-request-dto.ts
|
|
34
36
|
models/verify-org-invitation-response-class.ts
|
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.
|
|
20
|
+
npm install @emilgroup/auth-sdk@1.20.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.20.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.20.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/default-api.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,213 @@
|
|
|
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 { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* WorkspacesApi - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const WorkspacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
listWorkspaces: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37
|
+
const localVarPath = `/authservice/v1/workspaces`;
|
|
38
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40
|
+
let baseOptions;
|
|
41
|
+
let baseAccessToken;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
baseAccessToken = configuration.accessToken;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48
|
+
const localVarHeaderParameter = {} as any;
|
|
49
|
+
const localVarQueryParameter = {} as any;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
url: toPathString(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
65
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
70
|
+
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
71
|
+
assertParamExists('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto)
|
|
72
|
+
const localVarPath = `/authservice/v1/workspaces/switch`;
|
|
73
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
|
+
let baseOptions;
|
|
76
|
+
let baseAccessToken;
|
|
77
|
+
if (configuration) {
|
|
78
|
+
baseOptions = configuration.baseOptions;
|
|
79
|
+
baseAccessToken = configuration.accessToken;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
83
|
+
const localVarHeaderParameter = {} as any;
|
|
84
|
+
const localVarQueryParameter = {} as any;
|
|
85
|
+
|
|
86
|
+
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
87
|
+
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
93
|
+
|
|
94
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
|
+
localVarRequestOptions.data = serializeDataIfNeeded(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration)
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
url: toPathString(localVarUrlObj),
|
|
101
|
+
options: localVarRequestOptions,
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* WorkspacesApi - functional programming interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const WorkspacesApiFp = function(configuration?: Configuration) {
|
|
112
|
+
const localVarAxiosParamCreator = WorkspacesApiAxiosParamCreator(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
async listWorkspaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(options);
|
|
121
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
126
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
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);
|
|
132
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* WorkspacesApi - factory interface
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const WorkspacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
142
|
+
const localVarFp = WorkspacesApiFp(configuration)
|
|
143
|
+
return {
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
listWorkspaces(options?: any): AxiosPromise<void> {
|
|
150
|
+
return localVarFp.listWorkspaces(options).then((request) => request(axios, basePath));
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
155
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: any): AxiosPromise<object> {
|
|
160
|
+
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options).then((request) => request(axios, basePath));
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
167
|
+
* @export
|
|
168
|
+
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
169
|
+
*/
|
|
170
|
+
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
174
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
175
|
+
*/
|
|
176
|
+
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* HTTP only cookie that was sent during login
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
182
|
+
*/
|
|
183
|
+
readonly cookie?: string
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* WorkspacesApi - object-oriented interface
|
|
188
|
+
* @export
|
|
189
|
+
* @class WorkspacesApi
|
|
190
|
+
* @extends {BaseAPI}
|
|
191
|
+
*/
|
|
192
|
+
export class WorkspacesApi extends BaseAPI {
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
* @memberof WorkspacesApi
|
|
198
|
+
*/
|
|
199
|
+
public listWorkspaces(options?: AxiosRequestConfig) {
|
|
200
|
+
return WorkspacesApiFp(this.configuration).listWorkspaces(options).then((request) => request(this.axios, this.basePath));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
* @memberof WorkspacesApi
|
|
209
|
+
*/
|
|
210
|
+
public switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig) {
|
|
211
|
+
return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
212
|
+
}
|
|
213
|
+
}
|
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
|
|
package/base.ts
CHANGED
|
@@ -270,7 +270,7 @@ export class BaseAPI {
|
|
|
270
270
|
* @extends {Error}
|
|
271
271
|
*/
|
|
272
272
|
export class RequiredError extends Error {
|
|
273
|
-
name: "RequiredError" = "RequiredError";
|
|
273
|
+
override name: "RequiredError" = "RequiredError";
|
|
274
274
|
constructor(public field: string, msg?: string) {
|
|
275
275
|
super(msg);
|
|
276
276
|
}
|
package/common.ts
CHANGED
|
@@ -65,7 +65,7 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
65
65
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
66
66
|
? await configuration.accessToken()
|
|
67
67
|
: await configuration.accessToken;
|
|
68
|
-
object["Authorization"] =
|
|
68
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -78,7 +78,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
78
78
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
79
79
|
? await configuration.accessToken(name, scopes)
|
|
80
80
|
: await configuration.accessToken;
|
|
81
|
-
object["Authorization"] =
|
|
81
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
package/configuration.ts
CHANGED
|
@@ -98,4 +98,13 @@ export class Configuration {
|
|
|
98
98
|
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
99
99
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns "Bearer" token.
|
|
104
|
+
* @param token - access token.
|
|
105
|
+
* @return Bearer token.
|
|
106
|
+
*/
|
|
107
|
+
public getBearerToken(token?: string): string {
|
|
108
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
109
|
+
}
|
|
101
110
|
}
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g =
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
77
86
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
87
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
88
|
};
|
|
@@ -99,10 +108,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
99
108
|
* @param {*} [options] Override http request option.
|
|
100
109
|
* @throws {RequiredError}
|
|
101
110
|
*/
|
|
102
|
-
createOrgAndUser: function (
|
|
103
|
-
|
|
104
|
-
|
|
111
|
+
createOrgAndUser: function (createOrgAndUserRequestDto_1) {
|
|
112
|
+
var args_1 = [];
|
|
113
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
114
|
+
args_1[_i - 1] = arguments[_i];
|
|
115
|
+
}
|
|
116
|
+
return __awaiter(_this, __spreadArray([createOrgAndUserRequestDto_1], args_1, true), void 0, function (createOrgAndUserRequestDto, options) {
|
|
105
117
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
118
|
+
if (options === void 0) { options = {}; }
|
|
106
119
|
return __generator(this, function (_a) {
|
|
107
120
|
// verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
|
|
108
121
|
(0, common_1.assertParamExists)('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto);
|
|
@@ -134,10 +147,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
134
147
|
* @param {*} [options] Override http request option.
|
|
135
148
|
* @throws {RequiredError}
|
|
136
149
|
*/
|
|
137
|
-
createUser: function (
|
|
138
|
-
|
|
139
|
-
|
|
150
|
+
createUser: function (createUserRequestDto_1) {
|
|
151
|
+
var args_1 = [];
|
|
152
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
153
|
+
args_1[_i - 1] = arguments[_i];
|
|
154
|
+
}
|
|
155
|
+
return __awaiter(_this, __spreadArray([createUserRequestDto_1], args_1, true), void 0, function (createUserRequestDto, options) {
|
|
140
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
141
158
|
return __generator(this, function (_a) {
|
|
142
159
|
// verify required parameter 'createUserRequestDto' is not null or undefined
|
|
143
160
|
(0, common_1.assertParamExists)('createUser', 'createUserRequestDto', createUserRequestDto);
|
|
@@ -169,10 +186,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
169
186
|
* @param {*} [options] Override http request option.
|
|
170
187
|
* @throws {RequiredError}
|
|
171
188
|
*/
|
|
172
|
-
forgotPassword: function (
|
|
173
|
-
|
|
174
|
-
|
|
189
|
+
forgotPassword: function (forgotPasswordRequestDto_1) {
|
|
190
|
+
var args_1 = [];
|
|
191
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
192
|
+
args_1[_i - 1] = arguments[_i];
|
|
193
|
+
}
|
|
194
|
+
return __awaiter(_this, __spreadArray([forgotPasswordRequestDto_1], args_1, true), void 0, function (forgotPasswordRequestDto, options) {
|
|
175
195
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
196
|
+
if (options === void 0) { options = {}; }
|
|
176
197
|
return __generator(this, function (_a) {
|
|
177
198
|
// verify required parameter 'forgotPasswordRequestDto' is not null or undefined
|
|
178
199
|
(0, common_1.assertParamExists)('forgotPassword', 'forgotPasswordRequestDto', forgotPasswordRequestDto);
|
|
@@ -204,10 +225,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
204
225
|
* @param {*} [options] Override http request option.
|
|
205
226
|
* @throws {RequiredError}
|
|
206
227
|
*/
|
|
207
|
-
getSamlLoginLink: function (
|
|
208
|
-
|
|
209
|
-
|
|
228
|
+
getSamlLoginLink: function (tenantSlug_1) {
|
|
229
|
+
var args_1 = [];
|
|
230
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
231
|
+
args_1[_i - 1] = arguments[_i];
|
|
232
|
+
}
|
|
233
|
+
return __awaiter(_this, __spreadArray([tenantSlug_1], args_1, true), void 0, function (tenantSlug, options) {
|
|
210
234
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
235
|
+
if (options === void 0) { options = {}; }
|
|
211
236
|
return __generator(this, function (_a) {
|
|
212
237
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
213
238
|
(0, common_1.assertParamExists)('getSamlLoginLink', 'tenantSlug', tenantSlug);
|
|
@@ -240,10 +265,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
240
265
|
* @param {*} [options] Override http request option.
|
|
241
266
|
* @throws {RequiredError}
|
|
242
267
|
*/
|
|
243
|
-
login: function (
|
|
244
|
-
|
|
245
|
-
|
|
268
|
+
login: function (loginRequestDto_1) {
|
|
269
|
+
var args_1 = [];
|
|
270
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
271
|
+
args_1[_i - 1] = arguments[_i];
|
|
272
|
+
}
|
|
273
|
+
return __awaiter(_this, __spreadArray([loginRequestDto_1], args_1, true), void 0, function (loginRequestDto, options) {
|
|
246
274
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
275
|
+
if (options === void 0) { options = {}; }
|
|
247
276
|
return __generator(this, function (_a) {
|
|
248
277
|
// verify required parameter 'loginRequestDto' is not null or undefined
|
|
249
278
|
(0, common_1.assertParamExists)('login', 'loginRequestDto', loginRequestDto);
|
|
@@ -275,10 +304,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
275
304
|
* @param {*} [options] Override http request option.
|
|
276
305
|
* @throws {RequiredError}
|
|
277
306
|
*/
|
|
278
|
-
loginBySaml: function (
|
|
279
|
-
|
|
280
|
-
|
|
307
|
+
loginBySaml: function (loginBySamlRequestDto_1) {
|
|
308
|
+
var args_1 = [];
|
|
309
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
310
|
+
args_1[_i - 1] = arguments[_i];
|
|
311
|
+
}
|
|
312
|
+
return __awaiter(_this, __spreadArray([loginBySamlRequestDto_1], args_1, true), void 0, function (loginBySamlRequestDto, options) {
|
|
281
313
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
314
|
+
if (options === void 0) { options = {}; }
|
|
282
315
|
return __generator(this, function (_a) {
|
|
283
316
|
// verify required parameter 'loginBySamlRequestDto' is not null or undefined
|
|
284
317
|
(0, common_1.assertParamExists)('loginBySaml', 'loginBySamlRequestDto', loginBySamlRequestDto);
|
|
@@ -310,10 +343,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
310
343
|
* @param {*} [options] Override http request option.
|
|
311
344
|
* @throws {RequiredError}
|
|
312
345
|
*/
|
|
313
|
-
logout: function (
|
|
314
|
-
|
|
315
|
-
|
|
346
|
+
logout: function (logoutRequestDto_1) {
|
|
347
|
+
var args_1 = [];
|
|
348
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
349
|
+
args_1[_i - 1] = arguments[_i];
|
|
350
|
+
}
|
|
351
|
+
return __awaiter(_this, __spreadArray([logoutRequestDto_1], args_1, true), void 0, function (logoutRequestDto, options) {
|
|
316
352
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
353
|
+
if (options === void 0) { options = {}; }
|
|
317
354
|
return __generator(this, function (_a) {
|
|
318
355
|
// verify required parameter 'logoutRequestDto' is not null or undefined
|
|
319
356
|
(0, common_1.assertParamExists)('logout', 'logoutRequestDto', logoutRequestDto);
|
|
@@ -346,10 +383,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
346
383
|
* @param {*} [options] Override http request option.
|
|
347
384
|
* @throws {RequiredError}
|
|
348
385
|
*/
|
|
349
|
-
refreshToken: function (
|
|
350
|
-
|
|
351
|
-
|
|
386
|
+
refreshToken: function (refreshTokenDto_1, cookie_1) {
|
|
387
|
+
var args_1 = [];
|
|
388
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
389
|
+
args_1[_i - 2] = arguments[_i];
|
|
390
|
+
}
|
|
391
|
+
return __awaiter(_this, __spreadArray([refreshTokenDto_1, cookie_1], args_1, true), void 0, function (refreshTokenDto, cookie, options) {
|
|
352
392
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
393
|
+
if (options === void 0) { options = {}; }
|
|
353
394
|
return __generator(this, function (_a) {
|
|
354
395
|
// verify required parameter 'refreshTokenDto' is not null or undefined
|
|
355
396
|
(0, common_1.assertParamExists)('refreshToken', 'refreshTokenDto', refreshTokenDto);
|
|
@@ -384,10 +425,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
384
425
|
* @param {*} [options] Override http request option.
|
|
385
426
|
* @throws {RequiredError}
|
|
386
427
|
*/
|
|
387
|
-
resetPassword: function (
|
|
388
|
-
|
|
389
|
-
|
|
428
|
+
resetPassword: function (resetPasswordRequestDto_1) {
|
|
429
|
+
var args_1 = [];
|
|
430
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
431
|
+
args_1[_i - 1] = arguments[_i];
|
|
432
|
+
}
|
|
433
|
+
return __awaiter(_this, __spreadArray([resetPasswordRequestDto_1], args_1, true), void 0, function (resetPasswordRequestDto, options) {
|
|
390
434
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
435
|
+
if (options === void 0) { options = {}; }
|
|
391
436
|
return __generator(this, function (_a) {
|
|
392
437
|
// verify required parameter 'resetPasswordRequestDto' is not null or undefined
|
|
393
438
|
(0, common_1.assertParamExists)('resetPassword', 'resetPasswordRequestDto', resetPasswordRequestDto);
|
|
@@ -419,10 +464,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
419
464
|
* @param {*} [options] Override http request option.
|
|
420
465
|
* @throws {RequiredError}
|
|
421
466
|
*/
|
|
422
|
-
verifyInvite: function (
|
|
423
|
-
|
|
424
|
-
|
|
467
|
+
verifyInvite: function (token_1) {
|
|
468
|
+
var args_1 = [];
|
|
469
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
470
|
+
args_1[_i - 1] = arguments[_i];
|
|
471
|
+
}
|
|
472
|
+
return __awaiter(_this, __spreadArray([token_1], args_1, true), void 0, function (token, options) {
|
|
425
473
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
474
|
+
if (options === void 0) { options = {}; }
|
|
426
475
|
return __generator(this, function (_a) {
|
|
427
476
|
// verify required parameter 'token' is not null or undefined
|
|
428
477
|
(0, common_1.assertParamExists)('verifyInvite', 'token', token);
|
|
@@ -455,10 +504,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
455
504
|
* @param {*} [options] Override http request option.
|
|
456
505
|
* @throws {RequiredError}
|
|
457
506
|
*/
|
|
458
|
-
verifyOrgInvitation: function (
|
|
459
|
-
|
|
460
|
-
|
|
507
|
+
verifyOrgInvitation: function (invitationToken_1) {
|
|
508
|
+
var args_1 = [];
|
|
509
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
510
|
+
args_1[_i - 1] = arguments[_i];
|
|
511
|
+
}
|
|
512
|
+
return __awaiter(_this, __spreadArray([invitationToken_1], args_1, true), void 0, function (invitationToken, options) {
|
|
461
513
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
514
|
+
if (options === void 0) { options = {}; }
|
|
462
515
|
return __generator(this, function (_a) {
|
|
463
516
|
// verify required parameter 'invitationToken' is not null or undefined
|
|
464
517
|
(0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
|
|
@@ -491,10 +544,14 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
491
544
|
* @param {*} [options] Override http request option.
|
|
492
545
|
* @throws {RequiredError}
|
|
493
546
|
*/
|
|
494
|
-
verifyResetPasswordToken: function (
|
|
495
|
-
|
|
496
|
-
|
|
547
|
+
verifyResetPasswordToken: function (resetToken_1) {
|
|
548
|
+
var args_1 = [];
|
|
549
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
550
|
+
args_1[_i - 1] = arguments[_i];
|
|
551
|
+
}
|
|
552
|
+
return __awaiter(_this, __spreadArray([resetToken_1], args_1, true), void 0, function (resetToken, options) {
|
|
497
553
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
554
|
+
if (options === void 0) { options = {}; }
|
|
498
555
|
return __generator(this, function (_a) {
|
|
499
556
|
// verify required parameter 'resetToken' is not null or undefined
|
|
500
557
|
(0, common_1.assertParamExists)('verifyResetPasswordToken', 'resetToken', resetToken);
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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}
|