@emilgroup/auth-sdk-node 1.0.0-beta.1 → 1.1.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 (81) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +89 -1
  4. package/api.ts +1 -1
  5. package/base.ts +5 -5
  6. package/common.ts +2 -2
  7. package/configuration.ts +1 -1
  8. package/dist/api/authservice-api.d.ts +48 -1
  9. package/dist/api/authservice-api.js +79 -1
  10. package/dist/api.d.ts +1 -1
  11. package/dist/api.js +1 -1
  12. package/dist/base.d.ts +2 -2
  13. package/dist/base.js +5 -5
  14. package/dist/common.d.ts +2 -2
  15. package/dist/common.js +1 -1
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/models/create-org-and-user-request-dto.d.ts +18 -12
  21. package/dist/models/create-org-and-user-request-dto.js +1 -1
  22. package/dist/models/create-org-and-user-response-class.d.ts +1 -1
  23. package/dist/models/create-org-and-user-response-class.js +1 -1
  24. package/dist/models/create-user-request-dto.d.ts +1 -1
  25. package/dist/models/create-user-request-dto.js +1 -1
  26. package/dist/models/create-user-response-class.d.ts +1 -1
  27. package/dist/models/create-user-response-class.js +1 -1
  28. package/dist/models/custom-schema-class.d.ts +66 -0
  29. package/dist/models/custom-schema-class.js +15 -0
  30. package/dist/models/forgot-password-request-dto.d.ts +1 -1
  31. package/dist/models/forgot-password-request-dto.js +1 -1
  32. package/dist/models/get-samllogin-link-request-dto.d.ts +1 -1
  33. package/dist/models/get-samllogin-link-request-dto.js +1 -1
  34. package/dist/models/index.d.ts +4 -0
  35. package/dist/models/index.js +4 -0
  36. package/dist/models/login-by-samlrequest-dto.d.ts +1 -1
  37. package/dist/models/login-by-samlrequest-dto.js +1 -1
  38. package/dist/models/login-class.d.ts +1 -1
  39. package/dist/models/login-class.js +1 -1
  40. package/dist/models/login-request-dto.d.ts +1 -1
  41. package/dist/models/login-request-dto.js +1 -1
  42. package/dist/models/logout-request-dto.d.ts +1 -1
  43. package/dist/models/logout-request-dto.js +1 -1
  44. package/dist/models/org-invitation-class.d.ts +109 -0
  45. package/dist/models/org-invitation-class.js +15 -0
  46. package/dist/models/organization-class.d.ts +17 -5
  47. package/dist/models/organization-class.js +1 -1
  48. package/dist/models/refresh-token-dto.d.ts +1 -1
  49. package/dist/models/refresh-token-dto.js +1 -1
  50. package/dist/models/reset-password-request-dto.d.ts +1 -1
  51. package/dist/models/reset-password-request-dto.js +1 -1
  52. package/dist/models/role-class.d.ts +1 -1
  53. package/dist/models/role-class.js +1 -1
  54. package/dist/models/user-class.d.ts +1 -1
  55. package/dist/models/user-class.js +1 -1
  56. package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
  57. package/dist/models/verify-org-invitation-request-dto.js +15 -0
  58. package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
  59. package/dist/models/verify-org-invitation-response-class.js +15 -0
  60. package/index.ts +1 -1
  61. package/models/create-org-and-user-request-dto.ts +18 -12
  62. package/models/create-org-and-user-response-class.ts +1 -1
  63. package/models/create-user-request-dto.ts +1 -1
  64. package/models/create-user-response-class.ts +1 -1
  65. package/models/custom-schema-class.ts +72 -0
  66. package/models/forgot-password-request-dto.ts +1 -1
  67. package/models/get-samllogin-link-request-dto.ts +1 -1
  68. package/models/index.ts +4 -0
  69. package/models/login-by-samlrequest-dto.ts +1 -1
  70. package/models/login-class.ts +1 -1
  71. package/models/login-request-dto.ts +1 -1
  72. package/models/logout-request-dto.ts +1 -1
  73. package/models/org-invitation-class.ts +115 -0
  74. package/models/organization-class.ts +17 -5
  75. package/models/refresh-token-dto.ts +1 -1
  76. package/models/reset-password-request-dto.ts +1 -1
  77. package/models/role-class.ts +1 -1
  78. package/models/user-class.ts +1 -1
  79. package/models/verify-org-invitation-request-dto.ts +30 -0
  80. package/models/verify-org-invitation-response-class.ts +38 -0
  81. package/package.json +1 -1
@@ -13,6 +13,7 @@ models/create-org-and-user-request-dto.ts
13
13
  models/create-org-and-user-response-class.ts
14
14
  models/create-user-request-dto.ts
15
15
  models/create-user-response-class.ts
16
+ models/custom-schema-class.ts
16
17
  models/forgot-password-request-dto.ts
17
18
  models/get-samllogin-link-request-dto.ts
18
19
  models/index.ts
@@ -20,10 +21,13 @@ models/login-by-samlrequest-dto.ts
20
21
  models/login-class.ts
21
22
  models/login-request-dto.ts
22
23
  models/logout-request-dto.ts
24
+ models/org-invitation-class.ts
23
25
  models/organization-class.ts
24
26
  models/refresh-token-dto.ts
25
27
  models/reset-password-request-dto.ts
26
28
  models/role-class.ts
27
29
  models/user-class.ts
30
+ models/verify-org-invitation-request-dto.ts
31
+ models/verify-org-invitation-response-class.ts
28
32
  package.json
29
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-node@1.0.0-beta.1 --save
20
+ npm install @emilgroup/auth-sdk-node@1.1.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk-node@1.0.0-beta.1
24
+ yarn add @emilgroup/auth-sdk-node@1.1.0
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -5,7 +5,7 @@
5
5
  * The EMIL AuthService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -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
package/api.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AuthService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/base.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AuthService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -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';
@@ -170,7 +170,7 @@ export class BaseAPI {
170
170
  this.configuration.refreshToken = refreshToken;
171
171
  }
172
172
 
173
- async refreshTokenIntenal(): Promise<string> {
173
+ async refreshTokenInternal(): Promise<string> {
174
174
  const { username, refreshToken } = this.configuration;
175
175
 
176
176
 
@@ -220,7 +220,7 @@ export class BaseAPI {
220
220
  if (err.response.status === 401 && !originalConfig._retry) {
221
221
  originalConfig._retry = true;
222
222
  try {
223
- const tokenString = await this.refreshTokenIntenal();
223
+ const tokenString = await this.refreshTokenInternal();
224
224
  const accessToken = `Bearer ${tokenString}`;
225
225
 
226
226
  originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
@@ -245,7 +245,7 @@ export class BaseAPI {
245
245
  ){
246
246
  _retry_count++;
247
247
  try {
248
- const tokenString = await this.refreshTokenIntenal();
248
+ const tokenString = await this.refreshTokenInternal();
249
249
  const accessToken = `Bearer ${tokenString}`;
250
250
 
251
251
  _retry = true;
package/common.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AuthService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -144,7 +144,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
144
144
  * The EMIL AuthService API description
145
145
  *
146
146
  * The version of the OpenAPI document: 1.0
147
- *
147
+ * Contact: kontakt@emil.de
148
148
  *
149
149
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
150
150
  * https://openapi-generator.tech
package/configuration.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL AuthService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -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
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -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
package/dist/api.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/api.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/dist/base.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -59,7 +59,7 @@ export declare class BaseAPI {
59
59
  private readEnvVariables;
60
60
  selectEnvironment(env: Environment): void;
61
61
  authorize(username: string, password: string): Promise<void>;
62
- refreshTokenIntenal(): Promise<string>;
62
+ refreshTokenInternal(): Promise<string>;
63
63
  private extractRefreshToken;
64
64
  getConfiguration(): Configuration;
65
65
  private attachInterceptor;
package/dist/base.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -270,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
270
270
  });
271
271
  });
272
272
  };
273
- BaseAPI.prototype.refreshTokenIntenal = function () {
273
+ BaseAPI.prototype.refreshTokenInternal = function () {
274
274
  return __awaiter(this, void 0, void 0, function () {
275
275
  var _a, username, refreshToken, options, accessToken;
276
276
  return __generator(this, function (_b) {
@@ -324,7 +324,7 @@ var BaseAPI = /** @class */ (function () {
324
324
  _a.label = 1;
325
325
  case 1:
326
326
  _a.trys.push([1, 3, , 4]);
327
- return [4 /*yield*/, this.refreshTokenIntenal()];
327
+ return [4 /*yield*/, this.refreshTokenInternal()];
328
328
  case 2:
329
329
  tokenString = _a.sent();
330
330
  accessToken = "Bearer ".concat(tokenString);
@@ -351,7 +351,7 @@ var BaseAPI = /** @class */ (function () {
351
351
  _a.label = 6;
352
352
  case 6:
353
353
  _a.trys.push([6, 8, , 9]);
354
- return [4 /*yield*/, this.refreshTokenIntenal()];
354
+ return [4 /*yield*/, this.refreshTokenInternal()];
355
355
  case 7:
356
356
  tokenString = _a.sent();
357
357
  accessToken = "Bearer ".concat(tokenString);
package/dist/common.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -69,7 +69,7 @@ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios
69
69
  * The EMIL AuthService API description
70
70
  *
71
71
  * The version of the OpenAPI document: 1.0
72
- *
72
+ * Contact: kontakt@emil.de
73
73
  *
74
74
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
75
75
  * https://openapi-generator.tech
package/dist/common.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * The EMIL AuthService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * The EMIL AuthService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech