@emilgroup/auth-sdk 1.1.0 → 1.3.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 +7 -0
- package/README.md +2 -2
- package/api/authservice-api.ts +88 -0
- package/api/default-api.ts +120 -0
- package/api.ts +2 -0
- package/base.ts +3 -0
- package/dist/api/authservice-api.d.ts +47 -0
- package/dist/api/authservice-api.js +78 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +4 -0
- package/dist/models/create-org-and-user-request-dto.d.ts +17 -11
- package/dist/models/custom-schema-class.d.ts +66 -0
- package/dist/models/custom-schema-class.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/org-invitation-class.d.ts +109 -0
- package/dist/models/org-invitation-class.js +15 -0
- package/dist/models/organization-class.d.ts +7 -1
- package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
- package/dist/models/verify-org-invitation-request-dto.js +15 -0
- package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
- package/dist/models/verify-org-invitation-response-class.js +15 -0
- package/models/create-org-and-user-request-dto.ts +17 -11
- package/models/custom-schema-class.ts +72 -0
- package/models/index.ts +6 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/org-invitation-class.ts +115 -0
- package/models/organization-class.ts +7 -1
- package/models/verify-org-invitation-request-dto.ts +30 -0
- package/models/verify-org-invitation-response-class.ts +38 -0
- package/package.json +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/authservice-api.ts
|
|
7
|
+
api/default-api.ts
|
|
7
8
|
base.ts
|
|
8
9
|
common.ts
|
|
9
10
|
configuration.ts
|
|
@@ -13,17 +14,23 @@ models/create-org-and-user-request-dto.ts
|
|
|
13
14
|
models/create-org-and-user-response-class.ts
|
|
14
15
|
models/create-user-request-dto.ts
|
|
15
16
|
models/create-user-response-class.ts
|
|
17
|
+
models/custom-schema-class.ts
|
|
16
18
|
models/forgot-password-request-dto.ts
|
|
17
19
|
models/get-samllogin-link-request-dto.ts
|
|
18
20
|
models/index.ts
|
|
21
|
+
models/inline-response200.ts
|
|
22
|
+
models/inline-response503.ts
|
|
19
23
|
models/login-by-samlrequest-dto.ts
|
|
20
24
|
models/login-class.ts
|
|
21
25
|
models/login-request-dto.ts
|
|
22
26
|
models/logout-request-dto.ts
|
|
27
|
+
models/org-invitation-class.ts
|
|
23
28
|
models/organization-class.ts
|
|
24
29
|
models/refresh-token-dto.ts
|
|
25
30
|
models/reset-password-request-dto.ts
|
|
26
31
|
models/role-class.ts
|
|
27
32
|
models/user-class.ts
|
|
33
|
+
models/verify-org-invitation-request-dto.ts
|
|
34
|
+
models/verify-org-invitation-response-class.ts
|
|
28
35
|
package.json
|
|
29
36
|
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.3.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.3.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/authservice-api.ts
CHANGED
|
@@ -42,6 +42,8 @@ import { LogoutRequestDto } from '../models';
|
|
|
42
42
|
import { RefreshTokenDto } from '../models';
|
|
43
43
|
// @ts-ignore
|
|
44
44
|
import { ResetPasswordRequestDto } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { VerifyOrgInvitationResponseClass } from '../models';
|
|
45
47
|
/**
|
|
46
48
|
* AuthserviceApi - axios parameter creator
|
|
47
49
|
* @export
|
|
@@ -426,6 +428,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
426
428
|
|
|
427
429
|
|
|
428
430
|
|
|
431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
434
|
+
|
|
435
|
+
return {
|
|
436
|
+
url: toPathString(localVarUrlObj),
|
|
437
|
+
options: localVarRequestOptions,
|
|
438
|
+
};
|
|
439
|
+
},
|
|
440
|
+
/**
|
|
441
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
442
|
+
* @summary Verify a organization\'s invitation token
|
|
443
|
+
* @param {string} invitationToken
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
verifyOrgInvitation: async (invitationToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
448
|
+
// verify required parameter 'invitationToken' is not null or undefined
|
|
449
|
+
assertParamExists('verifyOrgInvitation', 'invitationToken', invitationToken)
|
|
450
|
+
const localVarPath = `/authservice/v1/verify-org-invitation`;
|
|
451
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
452
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
453
|
+
let baseOptions;
|
|
454
|
+
let baseAccessToken;
|
|
455
|
+
if (configuration) {
|
|
456
|
+
baseOptions = configuration.baseOptions;
|
|
457
|
+
baseAccessToken = configuration.accessToken;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
461
|
+
const localVarHeaderParameter = {} as any;
|
|
462
|
+
const localVarQueryParameter = {} as any;
|
|
463
|
+
|
|
464
|
+
if (invitationToken !== undefined) {
|
|
465
|
+
localVarQueryParameter['invitationToken'] = invitationToken;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
429
470
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
430
471
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
431
472
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -595,6 +636,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
595
636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(token, options);
|
|
596
637
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
597
638
|
},
|
|
639
|
+
/**
|
|
640
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
641
|
+
* @summary Verify a organization\'s invitation token
|
|
642
|
+
* @param {string} invitationToken
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
async verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>> {
|
|
647
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options);
|
|
648
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
649
|
+
},
|
|
598
650
|
/**
|
|
599
651
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
600
652
|
* @summary Verify tenant reset password token
|
|
@@ -717,6 +769,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
717
769
|
verifyInvite(token: string, options?: any): AxiosPromise<void> {
|
|
718
770
|
return localVarFp.verifyInvite(token, options).then((request) => request(axios, basePath));
|
|
719
771
|
},
|
|
772
|
+
/**
|
|
773
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
774
|
+
* @summary Verify a organization\'s invitation token
|
|
775
|
+
* @param {string} invitationToken
|
|
776
|
+
* @param {*} [options] Override http request option.
|
|
777
|
+
* @throws {RequiredError}
|
|
778
|
+
*/
|
|
779
|
+
verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass> {
|
|
780
|
+
return localVarFp.verifyOrgInvitation(invitationToken, options).then((request) => request(axios, basePath));
|
|
781
|
+
},
|
|
720
782
|
/**
|
|
721
783
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
722
784
|
* @summary Verify tenant reset password token
|
|
@@ -877,6 +939,20 @@ export interface AuthserviceApiVerifyInviteRequest {
|
|
|
877
939
|
readonly token: string
|
|
878
940
|
}
|
|
879
941
|
|
|
942
|
+
/**
|
|
943
|
+
* Request parameters for verifyOrgInvitation operation in AuthserviceApi.
|
|
944
|
+
* @export
|
|
945
|
+
* @interface AuthserviceApiVerifyOrgInvitationRequest
|
|
946
|
+
*/
|
|
947
|
+
export interface AuthserviceApiVerifyOrgInvitationRequest {
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @type {string}
|
|
951
|
+
* @memberof AuthserviceApiVerifyOrgInvitation
|
|
952
|
+
*/
|
|
953
|
+
readonly invitationToken: string
|
|
954
|
+
}
|
|
955
|
+
|
|
880
956
|
/**
|
|
881
957
|
* Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
|
|
882
958
|
* @export
|
|
@@ -1018,6 +1094,18 @@ export class AuthserviceApi extends BaseAPI {
|
|
|
1018
1094
|
return AuthserviceApiFp(this.configuration).verifyInvite(requestParameters.token, options).then((request) => request(this.axios, this.basePath));
|
|
1019
1095
|
}
|
|
1020
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
1099
|
+
* @summary Verify a organization\'s invitation token
|
|
1100
|
+
* @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
* @memberof AuthserviceApi
|
|
1104
|
+
*/
|
|
1105
|
+
public verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig) {
|
|
1106
|
+
return AuthserviceApiFp(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1021
1109
|
/**
|
|
1022
1110
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
1023
1111
|
* @summary Verify tenant reset password token
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { InlineResponse200 } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { InlineResponse503 } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* DefaultApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
const localVarPath = `/authservice/health`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
let baseAccessToken;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
baseAccessToken = configuration.accessToken;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50
|
+
const localVarHeaderParameter = {} as any;
|
|
51
|
+
const localVarQueryParameter = {} as any;
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
url: toPathString(localVarUrlObj),
|
|
61
|
+
options: localVarRequestOptions,
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* DefaultApi - functional programming interface
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
80
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
81
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* DefaultApi - factory interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
91
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
92
|
+
return {
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
99
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* DefaultApi - object-oriented interface
|
|
106
|
+
* @export
|
|
107
|
+
* @class DefaultApi
|
|
108
|
+
* @extends {BaseAPI}
|
|
109
|
+
*/
|
|
110
|
+
export class DefaultApi extends BaseAPI {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
* @memberof DefaultApi
|
|
116
|
+
*/
|
|
117
|
+
public check(options?: AxiosRequestConfig) {
|
|
118
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
119
|
+
}
|
|
120
|
+
}
|
package/api.ts
CHANGED
|
@@ -21,7 +21,9 @@ 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 { DefaultApi } from './api';
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
export * from './api/authservice-api';
|
|
28
|
+
export * from './api/default-api';
|
|
27
29
|
|
package/base.ts
CHANGED
|
@@ -41,6 +41,7 @@ export enum Environment {
|
|
|
41
41
|
Production = 'https://apiv2.emil.de',
|
|
42
42
|
Test = 'https://apiv2-test.emil.de',
|
|
43
43
|
Development = 'https://apiv2-dev.emil.de',
|
|
44
|
+
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
let _retry_count = 0
|
|
@@ -160,6 +161,8 @@ export class BaseAPI {
|
|
|
160
161
|
public loadTokenData() {
|
|
161
162
|
if (typeof window !== 'undefined') {
|
|
162
163
|
this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
|
|
164
|
+
} else {
|
|
165
|
+
this.tokenData = {};
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
|
|
@@ -23,6 +23,7 @@ import { LoginRequestDto } from '../models';
|
|
|
23
23
|
import { LogoutRequestDto } from '../models';
|
|
24
24
|
import { RefreshTokenDto } from '../models';
|
|
25
25
|
import { ResetPasswordRequestDto } from '../models';
|
|
26
|
+
import { VerifyOrgInvitationResponseClass } from '../models';
|
|
26
27
|
/**
|
|
27
28
|
* AuthserviceApi - axios parameter creator
|
|
28
29
|
* @export
|
|
@@ -109,6 +110,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
109
110
|
* @throws {RequiredError}
|
|
110
111
|
*/
|
|
111
112
|
verifyInvite: (token: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
113
|
+
/**
|
|
114
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
115
|
+
* @summary Verify a organization\'s invitation token
|
|
116
|
+
* @param {string} invitationToken
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
verifyOrgInvitation: (invitationToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
112
121
|
/**
|
|
113
122
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
114
123
|
* @summary Verify tenant reset password token
|
|
@@ -204,6 +213,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
204
213
|
* @throws {RequiredError}
|
|
205
214
|
*/
|
|
206
215
|
verifyInvite(token: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
216
|
+
/**
|
|
217
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
218
|
+
* @summary Verify a organization\'s invitation token
|
|
219
|
+
* @param {string} invitationToken
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>>;
|
|
207
224
|
/**
|
|
208
225
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
209
226
|
* @summary Verify tenant reset password token
|
|
@@ -299,6 +316,14 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
299
316
|
* @throws {RequiredError}
|
|
300
317
|
*/
|
|
301
318
|
verifyInvite(token: string, options?: any): AxiosPromise<void>;
|
|
319
|
+
/**
|
|
320
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
321
|
+
* @summary Verify a organization\'s invitation token
|
|
322
|
+
* @param {string} invitationToken
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass>;
|
|
302
327
|
/**
|
|
303
328
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
304
329
|
* @summary Verify tenant reset password token
|
|
@@ -444,6 +469,19 @@ export interface AuthserviceApiVerifyInviteRequest {
|
|
|
444
469
|
*/
|
|
445
470
|
readonly token: string;
|
|
446
471
|
}
|
|
472
|
+
/**
|
|
473
|
+
* Request parameters for verifyOrgInvitation operation in AuthserviceApi.
|
|
474
|
+
* @export
|
|
475
|
+
* @interface AuthserviceApiVerifyOrgInvitationRequest
|
|
476
|
+
*/
|
|
477
|
+
export interface AuthserviceApiVerifyOrgInvitationRequest {
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @type {string}
|
|
481
|
+
* @memberof AuthserviceApiVerifyOrgInvitation
|
|
482
|
+
*/
|
|
483
|
+
readonly invitationToken: string;
|
|
484
|
+
}
|
|
447
485
|
/**
|
|
448
486
|
* Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
|
|
449
487
|
* @export
|
|
@@ -554,6 +592,15 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
554
592
|
* @memberof AuthserviceApi
|
|
555
593
|
*/
|
|
556
594
|
verifyInvite(requestParameters: AuthserviceApiVerifyInviteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
595
|
+
/**
|
|
596
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
597
|
+
* @summary Verify a organization\'s invitation token
|
|
598
|
+
* @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
* @memberof AuthserviceApi
|
|
602
|
+
*/
|
|
603
|
+
verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyOrgInvitationResponseClass, any>>;
|
|
557
604
|
/**
|
|
558
605
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
559
606
|
* @summary Verify tenant reset password token
|
|
@@ -448,6 +448,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
|
|
|
448
448
|
});
|
|
449
449
|
});
|
|
450
450
|
},
|
|
451
|
+
/**
|
|
452
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
453
|
+
* @summary Verify a organization\'s invitation token
|
|
454
|
+
* @param {string} invitationToken
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
verifyOrgInvitation: function (invitationToken, options) {
|
|
459
|
+
if (options === void 0) { options = {}; }
|
|
460
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
461
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
462
|
+
return __generator(this, function (_a) {
|
|
463
|
+
// verify required parameter 'invitationToken' is not null or undefined
|
|
464
|
+
(0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
|
|
465
|
+
localVarPath = "/authservice/v1/verify-org-invitation";
|
|
466
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
467
|
+
if (configuration) {
|
|
468
|
+
baseOptions = configuration.baseOptions;
|
|
469
|
+
baseAccessToken = configuration.accessToken;
|
|
470
|
+
}
|
|
471
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
472
|
+
localVarHeaderParameter = {};
|
|
473
|
+
localVarQueryParameter = {};
|
|
474
|
+
if (invitationToken !== undefined) {
|
|
475
|
+
localVarQueryParameter['invitationToken'] = invitationToken;
|
|
476
|
+
}
|
|
477
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
478
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
480
|
+
return [2 /*return*/, {
|
|
481
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
482
|
+
options: localVarRequestOptions,
|
|
483
|
+
}];
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
},
|
|
451
487
|
/**
|
|
452
488
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
453
489
|
* @summary Verify tenant reset password token
|
|
@@ -695,6 +731,26 @@ var AuthserviceApiFp = function (configuration) {
|
|
|
695
731
|
});
|
|
696
732
|
});
|
|
697
733
|
},
|
|
734
|
+
/**
|
|
735
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
736
|
+
* @summary Verify a organization\'s invitation token
|
|
737
|
+
* @param {string} invitationToken
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
verifyOrgInvitation: function (invitationToken, options) {
|
|
742
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
743
|
+
var localVarAxiosArgs;
|
|
744
|
+
return __generator(this, function (_a) {
|
|
745
|
+
switch (_a.label) {
|
|
746
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options)];
|
|
747
|
+
case 1:
|
|
748
|
+
localVarAxiosArgs = _a.sent();
|
|
749
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
},
|
|
698
754
|
/**
|
|
699
755
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
700
756
|
* @summary Verify tenant reset password token
|
|
@@ -826,6 +882,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
|
|
|
826
882
|
verifyInvite: function (token, options) {
|
|
827
883
|
return localVarFp.verifyInvite(token, options).then(function (request) { return request(axios, basePath); });
|
|
828
884
|
},
|
|
885
|
+
/**
|
|
886
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
887
|
+
* @summary Verify a organization\'s invitation token
|
|
888
|
+
* @param {string} invitationToken
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
*/
|
|
892
|
+
verifyOrgInvitation: function (invitationToken, options) {
|
|
893
|
+
return localVarFp.verifyOrgInvitation(invitationToken, options).then(function (request) { return request(axios, basePath); });
|
|
894
|
+
},
|
|
829
895
|
/**
|
|
830
896
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
831
897
|
* @summary Verify tenant reset password token
|
|
@@ -970,6 +1036,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
|
|
|
970
1036
|
var _this = this;
|
|
971
1037
|
return (0, exports.AuthserviceApiFp)(this.configuration).verifyInvite(requestParameters.token, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
972
1038
|
};
|
|
1039
|
+
/**
|
|
1040
|
+
* Verifies token and returns necessary data for signing up as an organization.
|
|
1041
|
+
* @summary Verify a organization\'s invitation token
|
|
1042
|
+
* @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
|
|
1043
|
+
* @param {*} [options] Override http request option.
|
|
1044
|
+
* @throws {RequiredError}
|
|
1045
|
+
* @memberof AuthserviceApi
|
|
1046
|
+
*/
|
|
1047
|
+
AuthserviceApi.prototype.verifyOrgInvitation = function (requestParameters, options) {
|
|
1048
|
+
var _this = this;
|
|
1049
|
+
return (0, exports.AuthserviceApiFp)(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1050
|
+
};
|
|
973
1051
|
/**
|
|
974
1052
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
975
1053
|
* @summary Verify tenant reset password token
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* DefaultApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class DefaultApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof DefaultApi
|
|
64
|
+
*/
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
|
+
}
|