@emilgroup/auth-sdk-node 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.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +88 -0
  4. package/api/default-api.ts +124 -0
  5. package/api.ts +2 -0
  6. package/base.ts +2 -1
  7. package/dist/api/authservice-api.d.ts +47 -0
  8. package/dist/api/authservice-api.js +78 -0
  9. package/dist/api/default-api.d.ts +66 -0
  10. package/dist/api/default-api.js +200 -0
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +2 -1
  14. package/dist/base.js +2 -1
  15. package/dist/models/create-org-and-user-request-dto.d.ts +17 -11
  16. package/dist/models/custom-schema-class.d.ts +66 -0
  17. package/dist/models/custom-schema-class.js +15 -0
  18. package/dist/models/index.d.ts +6 -0
  19. package/dist/models/index.js +6 -0
  20. package/dist/models/inline-response200.d.ts +54 -0
  21. package/dist/models/inline-response200.js +15 -0
  22. package/dist/models/inline-response503.d.ts +54 -0
  23. package/dist/models/inline-response503.js +15 -0
  24. package/dist/models/org-invitation-class.d.ts +109 -0
  25. package/dist/models/org-invitation-class.js +15 -0
  26. package/dist/models/organization-class.d.ts +7 -1
  27. package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
  28. package/dist/models/verify-org-invitation-request-dto.js +15 -0
  29. package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
  30. package/dist/models/verify-org-invitation-response-class.js +15 -0
  31. package/models/create-org-and-user-request-dto.ts +17 -11
  32. package/models/custom-schema-class.ts +72 -0
  33. package/models/index.ts +6 -0
  34. package/models/inline-response200.ts +48 -0
  35. package/models/inline-response503.ts +48 -0
  36. package/models/org-invitation-class.ts +115 -0
  37. package/models/organization-class.ts +7 -1
  38. package/models/verify-org-invitation-request-dto.ts +30 -0
  39. package/models/verify-org-invitation-response-class.ts +38 -0
  40. package/package.json +2 -2
@@ -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-node@1.0.0 --save
20
+ npm install @emilgroup/auth-sdk-node@1.2.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk-node@1.0.0
24
+ yarn add @emilgroup/auth-sdk-node@1.2.0
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -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
  // URLSearchParams not necessarily used
46
48
  // @ts-ignore
47
49
  import { URL, URLSearchParams } from 'url';
@@ -430,6 +432,45 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
430
432
 
431
433
 
432
434
 
435
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
438
+
439
+ return {
440
+ url: toPathString(localVarUrlObj),
441
+ options: localVarRequestOptions,
442
+ };
443
+ },
444
+ /**
445
+ * Verifies token and returns necessary data for signing up as an organization.
446
+ * @summary Verify a organization\'s invitation token
447
+ * @param {string} invitationToken
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ verifyOrgInvitation: async (invitationToken: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
452
+ // verify required parameter 'invitationToken' is not null or undefined
453
+ assertParamExists('verifyOrgInvitation', 'invitationToken', invitationToken)
454
+ const localVarPath = `/authservice/v1/verify-org-invitation`;
455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
456
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
457
+ let baseOptions;
458
+ let baseAccessToken;
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ baseAccessToken = configuration.accessToken;
462
+ }
463
+
464
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
465
+ const localVarHeaderParameter = {} as any;
466
+ const localVarQueryParameter = {} as any;
467
+
468
+ if (invitationToken !== undefined) {
469
+ localVarQueryParameter['invitationToken'] = invitationToken;
470
+ }
471
+
472
+
473
+
433
474
  setSearchParams(localVarUrlObj, localVarQueryParameter);
434
475
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
476
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -599,6 +640,17 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
599
640
  const localVarAxiosArgs = await localVarAxiosParamCreator.verifyInvite(token, options);
600
641
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
601
642
  },
643
+ /**
644
+ * Verifies token and returns necessary data for signing up as an organization.
645
+ * @summary Verify a organization\'s invitation token
646
+ * @param {string} invitationToken
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ async verifyOrgInvitation(invitationToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrgInvitationResponseClass>> {
651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options);
652
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
653
+ },
602
654
  /**
603
655
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
604
656
  * @summary Verify tenant reset password token
@@ -721,6 +773,16 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
721
773
  verifyInvite(token: string, options?: any): AxiosPromise<void> {
722
774
  return localVarFp.verifyInvite(token, options).then((request) => request(axios, basePath));
723
775
  },
776
+ /**
777
+ * Verifies token and returns necessary data for signing up as an organization.
778
+ * @summary Verify a organization\'s invitation token
779
+ * @param {string} invitationToken
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ verifyOrgInvitation(invitationToken: string, options?: any): AxiosPromise<VerifyOrgInvitationResponseClass> {
784
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then((request) => request(axios, basePath));
785
+ },
724
786
  /**
725
787
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
726
788
  * @summary Verify tenant reset password token
@@ -881,6 +943,20 @@ export interface AuthserviceApiVerifyInviteRequest {
881
943
  readonly token: string
882
944
  }
883
945
 
946
+ /**
947
+ * Request parameters for verifyOrgInvitation operation in AuthserviceApi.
948
+ * @export
949
+ * @interface AuthserviceApiVerifyOrgInvitationRequest
950
+ */
951
+ export interface AuthserviceApiVerifyOrgInvitationRequest {
952
+ /**
953
+ *
954
+ * @type {string}
955
+ * @memberof AuthserviceApiVerifyOrgInvitation
956
+ */
957
+ readonly invitationToken: string
958
+ }
959
+
884
960
  /**
885
961
  * Request parameters for verifyResetPasswordToken operation in AuthserviceApi.
886
962
  * @export
@@ -1022,6 +1098,18 @@ export class AuthserviceApi extends BaseAPI {
1022
1098
  return AuthserviceApiFp(this.configuration).verifyInvite(requestParameters.token, options).then((request) => request(this.axios, this.basePath));
1023
1099
  }
1024
1100
 
1101
+ /**
1102
+ * Verifies token and returns necessary data for signing up as an organization.
1103
+ * @summary Verify a organization\'s invitation token
1104
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ * @memberof AuthserviceApi
1108
+ */
1109
+ public verifyOrgInvitation(requestParameters: AuthserviceApiVerifyOrgInvitationRequest, options?: AxiosRequestConfig) {
1110
+ return AuthserviceApiFp(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then((request) => request(this.axios, this.basePath));
1111
+ }
1112
+
1025
1113
  /**
1026
1114
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
1027
1115
  * @summary Verify tenant reset password token
@@ -0,0 +1,124 @@
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
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * DefaultApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ *
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ const localVarPath = `/authservice/health`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ let baseAccessToken;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ baseAccessToken = configuration.accessToken;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+
58
+
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62
+
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ },
68
+ }
69
+ };
70
+
71
+ /**
72
+ * DefaultApi - functional programming interface
73
+ * @export
74
+ */
75
+ export const DefaultApiFp = function(configuration?: Configuration) {
76
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
77
+ return {
78
+ /**
79
+ *
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
84
+ const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
85
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
86
+ },
87
+ }
88
+ };
89
+
90
+ /**
91
+ * DefaultApi - factory interface
92
+ * @export
93
+ */
94
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
95
+ const localVarFp = DefaultApiFp(configuration)
96
+ return {
97
+ /**
98
+ *
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ check(options?: any): AxiosPromise<InlineResponse200> {
103
+ return localVarFp.check(options).then((request) => request(axios, basePath));
104
+ },
105
+ };
106
+ };
107
+
108
+ /**
109
+ * DefaultApi - object-oriented interface
110
+ * @export
111
+ * @class DefaultApi
112
+ * @extends {BaseAPI}
113
+ */
114
+ export class DefaultApi extends BaseAPI {
115
+ /**
116
+ *
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ * @memberof DefaultApi
120
+ */
121
+ public check(options?: AxiosRequestConfig) {
122
+ return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
+ }
124
+ }
package/api.ts CHANGED
@@ -25,7 +25,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { AuthserviceApi } from './api';
28
+ import { DefaultApi } from './api';
28
29
 
29
30
 
30
31
  export * from './api/authservice-api';
32
+ export * from './api/default-api';
31
33
 
package/base.ts CHANGED
@@ -21,7 +21,7 @@ import * as fs from 'fs';
21
21
  import * as path from 'path';
22
22
  import * as os from 'os';
23
23
 
24
- export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
24
+ export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
25
25
  const CONFIG_DIRECTORY = '.emil';
26
26
  const CONFIG_FILENAME = 'credentials';
27
27
  const KEY_USERNAME = 'emil_username';
@@ -48,6 +48,7 @@ export enum Environment {
48
48
  Production = 'https://apiv2.emil.de',
49
49
  Test = 'https://apiv2-test.emil.de',
50
50
  Development = 'https://apiv2-dev.emil.de',
51
+ ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
51
52
  }
52
53
 
53
54
  let _retry_count = 0
@@ -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
@@ -452,6 +452,42 @@ var AuthserviceApiAxiosParamCreator = function (configuration) {
452
452
  });
453
453
  });
454
454
  },
455
+ /**
456
+ * Verifies token and returns necessary data for signing up as an organization.
457
+ * @summary Verify a organization\'s invitation token
458
+ * @param {string} invitationToken
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ verifyOrgInvitation: function (invitationToken, options) {
463
+ if (options === void 0) { options = {}; }
464
+ return __awaiter(_this, void 0, void 0, function () {
465
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
466
+ return __generator(this, function (_a) {
467
+ // verify required parameter 'invitationToken' is not null or undefined
468
+ (0, common_1.assertParamExists)('verifyOrgInvitation', 'invitationToken', invitationToken);
469
+ localVarPath = "/authservice/v1/verify-org-invitation";
470
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
471
+ if (configuration) {
472
+ baseOptions = configuration.baseOptions;
473
+ baseAccessToken = configuration.accessToken;
474
+ }
475
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
476
+ localVarHeaderParameter = {};
477
+ localVarQueryParameter = {};
478
+ if (invitationToken !== undefined) {
479
+ localVarQueryParameter['invitationToken'] = invitationToken;
480
+ }
481
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
482
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return [2 /*return*/, {
485
+ url: (0, common_1.toPathString)(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ }];
488
+ });
489
+ });
490
+ },
455
491
  /**
456
492
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
457
493
  * @summary Verify tenant reset password token
@@ -699,6 +735,26 @@ var AuthserviceApiFp = function (configuration) {
699
735
  });
700
736
  });
701
737
  },
738
+ /**
739
+ * Verifies token and returns necessary data for signing up as an organization.
740
+ * @summary Verify a organization\'s invitation token
741
+ * @param {string} invitationToken
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ verifyOrgInvitation: function (invitationToken, options) {
746
+ return __awaiter(this, void 0, void 0, function () {
747
+ var localVarAxiosArgs;
748
+ return __generator(this, function (_a) {
749
+ switch (_a.label) {
750
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.verifyOrgInvitation(invitationToken, options)];
751
+ case 1:
752
+ localVarAxiosArgs = _a.sent();
753
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
754
+ }
755
+ });
756
+ });
757
+ },
702
758
  /**
703
759
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
704
760
  * @summary Verify tenant reset password token
@@ -830,6 +886,16 @@ var AuthserviceApiFactory = function (configuration, basePath, axios) {
830
886
  verifyInvite: function (token, options) {
831
887
  return localVarFp.verifyInvite(token, options).then(function (request) { return request(axios, basePath); });
832
888
  },
889
+ /**
890
+ * Verifies token and returns necessary data for signing up as an organization.
891
+ * @summary Verify a organization\'s invitation token
892
+ * @param {string} invitationToken
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ verifyOrgInvitation: function (invitationToken, options) {
897
+ return localVarFp.verifyOrgInvitation(invitationToken, options).then(function (request) { return request(axios, basePath); });
898
+ },
833
899
  /**
834
900
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
835
901
  * @summary Verify tenant reset password token
@@ -974,6 +1040,18 @@ var AuthserviceApi = /** @class */ (function (_super) {
974
1040
  var _this = this;
975
1041
  return (0, exports.AuthserviceApiFp)(this.configuration).verifyInvite(requestParameters.token, options).then(function (request) { return request(_this.axios, _this.basePath); });
976
1042
  };
1043
+ /**
1044
+ * Verifies token and returns necessary data for signing up as an organization.
1045
+ * @summary Verify a organization\'s invitation token
1046
+ * @param {AuthserviceApiVerifyOrgInvitationRequest} requestParameters Request parameters.
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ * @memberof AuthserviceApi
1050
+ */
1051
+ AuthserviceApi.prototype.verifyOrgInvitation = function (requestParameters, options) {
1052
+ var _this = this;
1053
+ return (0, exports.AuthserviceApiFp)(this.configuration).verifyOrgInvitation(requestParameters.invitationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
1054
+ };
977
1055
  /**
978
1056
  * Verify the reset password token that is sent by calling the \'forgot password\' endpoint.
979
1057
  * @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
+ }