@emilgroup/auth-sdk 1.0.0 → 1.2.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 +10 -0
- package/README.md +2 -2
- package/api/authservice-api.ts +183 -4
- package/base.ts +2 -0
- package/dist/api/authservice-api.d.ts +102 -6
- package/dist/api/authservice-api.js +155 -0
- package/dist/base.js +3 -0
- package/dist/models/create-org-and-user-request-dto.d.ts +84 -0
- package/dist/models/create-org-and-user-request-dto.js +15 -0
- package/dist/models/create-org-and-user-response-class.d.ts +32 -0
- package/dist/models/create-org-and-user-response-class.js +15 -0
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/create-user-response-class.js +15 -0
- 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 +10 -0
- package/dist/models/index.js +10 -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 +114 -0
- package/dist/models/organization-class.js +15 -0
- package/dist/models/role-class.d.ts +54 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/user-class.d.ts +85 -0
- package/dist/models/user-class.js +15 -0
- 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 +90 -0
- package/models/create-org-and-user-response-class.ts +38 -0
- package/models/create-user-response-class.ts +31 -0
- package/models/custom-schema-class.ts +72 -0
- package/models/index.ts +10 -0
- package/models/org-invitation-class.ts +115 -0
- package/models/organization-class.ts +120 -0
- package/models/role-class.ts +60 -0
- package/models/user-class.ts +91 -0
- package/models/verify-org-invitation-request-dto.ts +30 -0
- package/models/verify-org-invitation-response-class.ts +38 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,7 +9,11 @@ common.ts
|
|
|
9
9
|
configuration.ts
|
|
10
10
|
git_push.sh
|
|
11
11
|
index.ts
|
|
12
|
+
models/create-org-and-user-request-dto.ts
|
|
13
|
+
models/create-org-and-user-response-class.ts
|
|
12
14
|
models/create-user-request-dto.ts
|
|
15
|
+
models/create-user-response-class.ts
|
|
16
|
+
models/custom-schema-class.ts
|
|
13
17
|
models/forgot-password-request-dto.ts
|
|
14
18
|
models/get-samllogin-link-request-dto.ts
|
|
15
19
|
models/index.ts
|
|
@@ -17,7 +21,13 @@ models/login-by-samlrequest-dto.ts
|
|
|
17
21
|
models/login-class.ts
|
|
18
22
|
models/login-request-dto.ts
|
|
19
23
|
models/logout-request-dto.ts
|
|
24
|
+
models/org-invitation-class.ts
|
|
25
|
+
models/organization-class.ts
|
|
20
26
|
models/refresh-token-dto.ts
|
|
21
27
|
models/reset-password-request-dto.ts
|
|
28
|
+
models/role-class.ts
|
|
29
|
+
models/user-class.ts
|
|
30
|
+
models/verify-org-invitation-request-dto.ts
|
|
31
|
+
models/verify-org-invitation-response-class.ts
|
|
22
32
|
package.json
|
|
23
33
|
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.2.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.2.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/authservice-api.ts
CHANGED
|
@@ -21,8 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateOrgAndUserRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateOrgAndUserResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { CreateUserRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
30
|
+
import { CreateUserResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
26
32
|
import { ForgotPasswordRequestDto } from '../models';
|
|
27
33
|
// @ts-ignore
|
|
28
34
|
import { LoginBySAMLRequestDto } from '../models';
|
|
@@ -36,12 +42,52 @@ import { LogoutRequestDto } from '../models';
|
|
|
36
42
|
import { RefreshTokenDto } from '../models';
|
|
37
43
|
// @ts-ignore
|
|
38
44
|
import { ResetPasswordRequestDto } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { VerifyOrgInvitationResponseClass } from '../models';
|
|
39
47
|
/**
|
|
40
48
|
* AuthserviceApi - axios parameter creator
|
|
41
49
|
* @export
|
|
42
50
|
*/
|
|
43
51
|
export const AuthserviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
52
|
return {
|
|
53
|
+
/**
|
|
54
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
55
|
+
* @summary Register Organization and User using invitation token
|
|
56
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
createOrgAndUser: async (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
|
+
// verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
|
|
62
|
+
assertParamExists('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto)
|
|
63
|
+
const localVarPath = `/authservice/v1/create-org-and-user`;
|
|
64
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
66
|
+
let baseOptions;
|
|
67
|
+
let baseAccessToken;
|
|
68
|
+
if (configuration) {
|
|
69
|
+
baseOptions = configuration.baseOptions;
|
|
70
|
+
baseAccessToken = configuration.accessToken;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
74
|
+
const localVarHeaderParameter = {} as any;
|
|
75
|
+
const localVarQueryParameter = {} as any;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrgAndUserRequestDto, localVarRequestOptions, configuration)
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
45
91
|
/**
|
|
46
92
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
47
93
|
* @summary Register tenant user after invite
|
|
@@ -382,6 +428,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
382
428
|
|
|
383
429
|
|
|
384
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
|
+
|
|
385
470
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
386
471
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
387
472
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -440,6 +525,17 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
|
|
|
440
525
|
export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
441
526
|
const localVarAxiosParamCreator = AuthserviceApiAxiosParamCreator(configuration)
|
|
442
527
|
return {
|
|
528
|
+
/**
|
|
529
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
530
|
+
* @summary Register Organization and User using invitation token
|
|
531
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
async createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>> {
|
|
536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrgAndUser(createOrgAndUserRequestDto, options);
|
|
537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
538
|
+
},
|
|
443
539
|
/**
|
|
444
540
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
445
541
|
* @summary Register tenant user after invite
|
|
@@ -447,7 +543,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
447
543
|
* @param {*} [options] Override http request option.
|
|
448
544
|
* @throws {RequiredError}
|
|
449
545
|
*/
|
|
450
|
-
async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
546
|
+
async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>> {
|
|
451
547
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserRequestDto, options);
|
|
452
548
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
453
549
|
},
|
|
@@ -502,7 +598,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
502
598
|
* @param {*} [options] Override http request option.
|
|
503
599
|
* @throws {RequiredError}
|
|
504
600
|
*/
|
|
505
|
-
async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
601
|
+
async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
506
602
|
const localVarAxiosArgs = await localVarAxiosParamCreator.logout(logoutRequestDto, options);
|
|
507
603
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
508
604
|
},
|
|
@@ -540,6 +636,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
540
636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(token, options);
|
|
541
637
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
542
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
|
+
},
|
|
543
650
|
/**
|
|
544
651
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
545
652
|
* @summary Verify tenant reset password token
|
|
@@ -561,6 +668,16 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
|
|
|
561
668
|
export const AuthserviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
562
669
|
const localVarFp = AuthserviceApiFp(configuration)
|
|
563
670
|
return {
|
|
671
|
+
/**
|
|
672
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
673
|
+
* @summary Register Organization and User using invitation token
|
|
674
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass> {
|
|
679
|
+
return localVarFp.createOrgAndUser(createOrgAndUserRequestDto, options).then((request) => request(axios, basePath));
|
|
680
|
+
},
|
|
564
681
|
/**
|
|
565
682
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
566
683
|
* @summary Register tenant user after invite
|
|
@@ -568,7 +685,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
568
685
|
* @param {*} [options] Override http request option.
|
|
569
686
|
* @throws {RequiredError}
|
|
570
687
|
*/
|
|
571
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<
|
|
688
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass> {
|
|
572
689
|
return localVarFp.createUser(createUserRequestDto, options).then((request) => request(axios, basePath));
|
|
573
690
|
},
|
|
574
691
|
/**
|
|
@@ -618,7 +735,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
618
735
|
* @param {*} [options] Override http request option.
|
|
619
736
|
* @throws {RequiredError}
|
|
620
737
|
*/
|
|
621
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<
|
|
738
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void> {
|
|
622
739
|
return localVarFp.logout(logoutRequestDto, options).then((request) => request(axios, basePath));
|
|
623
740
|
},
|
|
624
741
|
/**
|
|
@@ -652,6 +769,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
652
769
|
verifyInvite(token: string, options?: any): AxiosPromise<void> {
|
|
653
770
|
return localVarFp.verifyInvite(token, options).then((request) => request(axios, basePath));
|
|
654
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
|
+
},
|
|
655
782
|
/**
|
|
656
783
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
657
784
|
* @summary Verify tenant reset password token
|
|
@@ -665,6 +792,20 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
|
|
|
665
792
|
};
|
|
666
793
|
};
|
|
667
794
|
|
|
795
|
+
/**
|
|
796
|
+
* Request parameters for createOrgAndUser operation in AuthserviceApi.
|
|
797
|
+
* @export
|
|
798
|
+
* @interface AuthserviceApiCreateOrgAndUserRequest
|
|
799
|
+
*/
|
|
800
|
+
export interface AuthserviceApiCreateOrgAndUserRequest {
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @type {CreateOrgAndUserRequestDto}
|
|
804
|
+
* @memberof AuthserviceApiCreateOrgAndUser
|
|
805
|
+
*/
|
|
806
|
+
readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto
|
|
807
|
+
}
|
|
808
|
+
|
|
668
809
|
/**
|
|
669
810
|
* Request parameters for createUser operation in AuthserviceApi.
|
|
670
811
|
* @export
|
|
@@ -798,6 +939,20 @@ export interface AuthserviceApiVerifyInviteRequest {
|
|
|
798
939
|
readonly token: string
|
|
799
940
|
}
|
|
800
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
|
+
|
|
801
956
|
/**
|
|
802
957
|
* Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
|
|
803
958
|
* @export
|
|
@@ -819,6 +974,18 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
|
|
|
819
974
|
* @extends {BaseAPI}
|
|
820
975
|
*/
|
|
821
976
|
export class AuthserviceApi extends BaseAPI {
|
|
977
|
+
/**
|
|
978
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
979
|
+
* @summary Register Organization and User using invitation token
|
|
980
|
+
* @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
* @memberof AuthserviceApi
|
|
984
|
+
*/
|
|
985
|
+
public createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig) {
|
|
986
|
+
return AuthserviceApiFp(this.configuration).createOrgAndUser(requestParameters.createOrgAndUserRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
987
|
+
}
|
|
988
|
+
|
|
822
989
|
/**
|
|
823
990
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
824
991
|
* @summary Register tenant user after invite
|
|
@@ -927,6 +1094,18 @@ export class AuthserviceApi extends BaseAPI {
|
|
|
927
1094
|
return AuthserviceApiFp(this.configuration).verifyInvite(requestParameters.token, options).then((request) => request(this.axios, this.basePath));
|
|
928
1095
|
}
|
|
929
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
|
+
|
|
930
1109
|
/**
|
|
931
1110
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
932
1111
|
* @summary Verify tenant reset password token
|
package/base.ts
CHANGED
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateOrgAndUserRequestDto } from '../models';
|
|
16
|
+
import { CreateOrgAndUserResponseClass } from '../models';
|
|
15
17
|
import { CreateUserRequestDto } from '../models';
|
|
18
|
+
import { CreateUserResponseClass } from '../models';
|
|
16
19
|
import { ForgotPasswordRequestDto } from '../models';
|
|
17
20
|
import { LoginBySAMLRequestDto } from '../models';
|
|
18
21
|
import { LoginClass } from '../models';
|
|
@@ -20,11 +23,20 @@ import { LoginRequestDto } from '../models';
|
|
|
20
23
|
import { LogoutRequestDto } from '../models';
|
|
21
24
|
import { RefreshTokenDto } from '../models';
|
|
22
25
|
import { ResetPasswordRequestDto } from '../models';
|
|
26
|
+
import { VerifyOrgInvitationResponseClass } from '../models';
|
|
23
27
|
/**
|
|
24
28
|
* AuthserviceApi - axios parameter creator
|
|
25
29
|
* @export
|
|
26
30
|
*/
|
|
27
31
|
export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
32
|
+
/**
|
|
33
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
34
|
+
* @summary Register Organization and User using invitation token
|
|
35
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
createOrgAndUser: (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
40
|
/**
|
|
29
41
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
30
42
|
* @summary Register tenant user after invite
|
|
@@ -98,6 +110,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
98
110
|
* @throws {RequiredError}
|
|
99
111
|
*/
|
|
100
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>;
|
|
101
121
|
/**
|
|
102
122
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
103
123
|
* @summary Verify tenant reset password token
|
|
@@ -112,6 +132,14 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
|
|
|
112
132
|
* @export
|
|
113
133
|
*/
|
|
114
134
|
export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
135
|
+
/**
|
|
136
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
137
|
+
* @summary Register Organization and User using invitation token
|
|
138
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>>;
|
|
115
143
|
/**
|
|
116
144
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
117
145
|
* @summary Register tenant user after invite
|
|
@@ -119,7 +147,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
119
147
|
* @param {*} [options] Override http request option.
|
|
120
148
|
* @throws {RequiredError}
|
|
121
149
|
*/
|
|
122
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
150
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>>;
|
|
123
151
|
/**
|
|
124
152
|
* Send a tenant user a reset-password token via email.
|
|
125
153
|
* @summary Forgot password by tenant
|
|
@@ -159,7 +187,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
159
187
|
* @param {*} [options] Override http request option.
|
|
160
188
|
* @throws {RequiredError}
|
|
161
189
|
*/
|
|
162
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
190
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
163
191
|
/**
|
|
164
192
|
* Get new access token, new refresh token.
|
|
165
193
|
* @summary Refresh token by tenant
|
|
@@ -185,6 +213,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
185
213
|
* @throws {RequiredError}
|
|
186
214
|
*/
|
|
187
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>>;
|
|
188
224
|
/**
|
|
189
225
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
190
226
|
* @summary Verify tenant reset password token
|
|
@@ -199,6 +235,14 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
|
|
|
199
235
|
* @export
|
|
200
236
|
*/
|
|
201
237
|
export declare const AuthserviceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
238
|
+
/**
|
|
239
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
240
|
+
* @summary Register Organization and User using invitation token
|
|
241
|
+
* @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass>;
|
|
202
246
|
/**
|
|
203
247
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
204
248
|
* @summary Register tenant user after invite
|
|
@@ -206,7 +250,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
206
250
|
* @param {*} [options] Override http request option.
|
|
207
251
|
* @throws {RequiredError}
|
|
208
252
|
*/
|
|
209
|
-
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<
|
|
253
|
+
createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass>;
|
|
210
254
|
/**
|
|
211
255
|
* Send a tenant user a reset-password token via email.
|
|
212
256
|
* @summary Forgot password by tenant
|
|
@@ -246,7 +290,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
246
290
|
* @param {*} [options] Override http request option.
|
|
247
291
|
* @throws {RequiredError}
|
|
248
292
|
*/
|
|
249
|
-
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<
|
|
293
|
+
logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void>;
|
|
250
294
|
/**
|
|
251
295
|
* Get new access token, new refresh token.
|
|
252
296
|
* @summary Refresh token by tenant
|
|
@@ -272,6 +316,14 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
272
316
|
* @throws {RequiredError}
|
|
273
317
|
*/
|
|
274
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>;
|
|
275
327
|
/**
|
|
276
328
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
277
329
|
* @summary Verify tenant reset password token
|
|
@@ -281,6 +333,19 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
|
|
|
281
333
|
*/
|
|
282
334
|
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
|
|
283
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* Request parameters for createOrgAndUser operation in AuthserviceApi.
|
|
338
|
+
* @export
|
|
339
|
+
* @interface AuthserviceApiCreateOrgAndUserRequest
|
|
340
|
+
*/
|
|
341
|
+
export interface AuthserviceApiCreateOrgAndUserRequest {
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {CreateOrgAndUserRequestDto}
|
|
345
|
+
* @memberof AuthserviceApiCreateOrgAndUser
|
|
346
|
+
*/
|
|
347
|
+
readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto;
|
|
348
|
+
}
|
|
284
349
|
/**
|
|
285
350
|
* Request parameters for createUser operation in AuthserviceApi.
|
|
286
351
|
* @export
|
|
@@ -404,6 +469,19 @@ export interface AuthserviceApiVerifyInviteRequest {
|
|
|
404
469
|
*/
|
|
405
470
|
readonly token: string;
|
|
406
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
|
+
}
|
|
407
485
|
/**
|
|
408
486
|
* Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
|
|
409
487
|
* @export
|
|
@@ -424,6 +502,15 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
|
|
|
424
502
|
* @extends {BaseAPI}
|
|
425
503
|
*/
|
|
426
504
|
export declare class AuthserviceApi extends BaseAPI {
|
|
505
|
+
/**
|
|
506
|
+
* Register a new organization with appropriate hierarchy and create a user for that organization.
|
|
507
|
+
* @summary Register Organization and User using invitation token
|
|
508
|
+
* @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
* @memberof AuthserviceApi
|
|
512
|
+
*/
|
|
513
|
+
createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrgAndUserResponseClass, any>>;
|
|
427
514
|
/**
|
|
428
515
|
* Register a tenant user using the invite token sent to the tenant user\'s email address.
|
|
429
516
|
* @summary Register tenant user after invite
|
|
@@ -432,7 +519,7 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
432
519
|
* @throws {RequiredError}
|
|
433
520
|
* @memberof AuthserviceApi
|
|
434
521
|
*/
|
|
435
|
-
createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
522
|
+
createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserResponseClass, any>>;
|
|
436
523
|
/**
|
|
437
524
|
* Send a tenant user a reset-password token via email.
|
|
438
525
|
* @summary Forgot password by tenant
|
|
@@ -477,7 +564,7 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
477
564
|
* @throws {RequiredError}
|
|
478
565
|
* @memberof AuthserviceApi
|
|
479
566
|
*/
|
|
480
|
-
logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
567
|
+
logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
481
568
|
/**
|
|
482
569
|
* Get new access token, new refresh token.
|
|
483
570
|
* @summary Refresh token by tenant
|
|
@@ -505,6 +592,15 @@ export declare class AuthserviceApi extends BaseAPI {
|
|
|
505
592
|
* @memberof AuthserviceApi
|
|
506
593
|
*/
|
|
507
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>>;
|
|
508
604
|
/**
|
|
509
605
|
* Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
|
|
510
606
|
* @summary Verify tenant reset password token
|