@emilgroup/auth-sdk 1.0.0-beta.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +5 -96
  4. package/api.ts +1 -1
  5. package/base.ts +1 -1
  6. package/common.ts +2 -2
  7. package/configuration.ts +1 -1
  8. package/dist/api/authservice-api.d.ts +7 -56
  9. package/dist/api/authservice-api.js +1 -78
  10. package/dist/api.d.ts +1 -1
  11. package/dist/api.js +1 -1
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +1 -1
  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-user-request-dto.d.ts +1 -1
  21. package/dist/models/create-user-request-dto.js +1 -1
  22. package/dist/models/forgot-password-request-dto.d.ts +1 -1
  23. package/dist/models/forgot-password-request-dto.js +1 -1
  24. package/dist/models/get-samllogin-link-request-dto.d.ts +1 -1
  25. package/dist/models/get-samllogin-link-request-dto.js +1 -1
  26. package/dist/models/index.d.ts +0 -6
  27. package/dist/models/index.js +0 -6
  28. package/dist/models/login-by-samlrequest-dto.d.ts +1 -1
  29. package/dist/models/login-by-samlrequest-dto.js +1 -1
  30. package/dist/models/login-class.d.ts +1 -1
  31. package/dist/models/login-class.js +1 -1
  32. package/dist/models/login-request-dto.d.ts +1 -1
  33. package/dist/models/login-request-dto.js +1 -1
  34. package/dist/models/logout-request-dto.d.ts +1 -1
  35. package/dist/models/logout-request-dto.js +1 -1
  36. package/dist/models/refresh-token-dto.d.ts +1 -1
  37. package/dist/models/refresh-token-dto.js +1 -1
  38. package/dist/models/reset-password-request-dto.d.ts +1 -1
  39. package/dist/models/reset-password-request-dto.js +1 -1
  40. package/index.ts +1 -1
  41. package/models/create-user-request-dto.ts +1 -1
  42. package/models/forgot-password-request-dto.ts +1 -1
  43. package/models/get-samllogin-link-request-dto.ts +1 -1
  44. package/models/index.ts +0 -6
  45. package/models/login-by-samlrequest-dto.ts +1 -1
  46. package/models/login-class.ts +1 -1
  47. package/models/login-request-dto.ts +1 -1
  48. package/models/logout-request-dto.ts +1 -1
  49. package/models/refresh-token-dto.ts +1 -1
  50. package/models/reset-password-request-dto.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/models/create-org-and-user-request-dto.d.ts +0 -78
  53. package/dist/models/create-org-and-user-request-dto.js +0 -15
  54. package/dist/models/create-org-and-user-response-class.d.ts +0 -32
  55. package/dist/models/create-org-and-user-response-class.js +0 -15
  56. package/dist/models/create-user-response-class.d.ts +0 -25
  57. package/dist/models/create-user-response-class.js +0 -15
  58. package/dist/models/organization-class.d.ts +0 -102
  59. package/dist/models/organization-class.js +0 -15
  60. package/dist/models/role-class.d.ts +0 -54
  61. package/dist/models/role-class.js +0 -15
  62. package/dist/models/user-class.d.ts +0 -85
  63. package/dist/models/user-class.js +0 -15
  64. package/models/create-org-and-user-request-dto.ts +0 -84
  65. package/models/create-org-and-user-response-class.ts +0 -38
  66. package/models/create-user-response-class.ts +0 -31
  67. package/models/organization-class.ts +0 -108
  68. package/models/role-class.ts +0 -60
  69. package/models/user-class.ts +0 -91
@@ -9,10 +9,7 @@ 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
14
12
  models/create-user-request-dto.ts
15
- models/create-user-response-class.ts
16
13
  models/forgot-password-request-dto.ts
17
14
  models/get-samllogin-link-request-dto.ts
18
15
  models/index.ts
@@ -20,10 +17,7 @@ models/login-by-samlrequest-dto.ts
20
17
  models/login-class.ts
21
18
  models/login-request-dto.ts
22
19
  models/logout-request-dto.ts
23
- models/organization-class.ts
24
20
  models/refresh-token-dto.ts
25
21
  models/reset-password-request-dto.ts
26
- models/role-class.ts
27
- models/user-class.ts
28
22
  package.json
29
23
  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.0.0-beta.0 --save
20
+ npm install @emilgroup/auth-sdk@1.0.0-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/auth-sdk@1.0.0-beta.0
24
+ yarn add @emilgroup/auth-sdk@1.0.0-beta.1
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
@@ -21,14 +21,8 @@ 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
28
24
  import { CreateUserRequestDto } from '../models';
29
25
  // @ts-ignore
30
- import { CreateUserResponseClass } from '../models';
31
- // @ts-ignore
32
26
  import { ForgotPasswordRequestDto } from '../models';
33
27
  // @ts-ignore
34
28
  import { LoginBySAMLRequestDto } from '../models';
@@ -48,44 +42,6 @@ import { ResetPasswordRequestDto } from '../models';
48
42
  */
49
43
  export const AuthserviceApiAxiosParamCreator = function (configuration?: Configuration) {
50
44
  return {
51
- /**
52
- * Register a new organization with appropriate hierarchy and create a user for that organization.
53
- * @summary Register Organization and User using invitation token
54
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
55
- * @param {*} [options] Override http request option.
56
- * @throws {RequiredError}
57
- */
58
- createOrgAndUser: async (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
59
- // verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
60
- assertParamExists('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto)
61
- const localVarPath = `/authservice/v1/create-org-and-user`;
62
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
- let baseOptions;
65
- let baseAccessToken;
66
- if (configuration) {
67
- baseOptions = configuration.baseOptions;
68
- baseAccessToken = configuration.accessToken;
69
- }
70
-
71
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72
- const localVarHeaderParameter = {} as any;
73
- const localVarQueryParameter = {} as any;
74
-
75
-
76
-
77
- localVarHeaderParameter['Content-Type'] = 'application/json';
78
-
79
- setSearchParams(localVarUrlObj, localVarQueryParameter);
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
- localVarRequestOptions.data = serializeDataIfNeeded(createOrgAndUserRequestDto, localVarRequestOptions, configuration)
83
-
84
- return {
85
- url: toPathString(localVarUrlObj),
86
- options: localVarRequestOptions,
87
- };
88
- },
89
45
  /**
90
46
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
91
47
  * @summary Register tenant user after invite
@@ -484,17 +440,6 @@ export const AuthserviceApiAxiosParamCreator = function (configuration?: Configu
484
440
  export const AuthserviceApiFp = function(configuration?: Configuration) {
485
441
  const localVarAxiosParamCreator = AuthserviceApiAxiosParamCreator(configuration)
486
442
  return {
487
- /**
488
- * Register a new organization with appropriate hierarchy and create a user for that organization.
489
- * @summary Register Organization and User using invitation token
490
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
491
- * @param {*} [options] Override http request option.
492
- * @throws {RequiredError}
493
- */
494
- async createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>> {
495
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrgAndUser(createOrgAndUserRequestDto, options);
496
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
- },
498
443
  /**
499
444
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
500
445
  * @summary Register tenant user after invite
@@ -502,7 +447,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
502
447
  * @param {*} [options] Override http request option.
503
448
  * @throws {RequiredError}
504
449
  */
505
- async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>> {
450
+ async createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
506
451
  const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserRequestDto, options);
507
452
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
508
453
  },
@@ -557,7 +502,7 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
557
502
  * @param {*} [options] Override http request option.
558
503
  * @throws {RequiredError}
559
504
  */
560
- async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
505
+ async logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
561
506
  const localVarAxiosArgs = await localVarAxiosParamCreator.logout(logoutRequestDto, options);
562
507
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
563
508
  },
@@ -616,16 +561,6 @@ export const AuthserviceApiFp = function(configuration?: Configuration) {
616
561
  export const AuthserviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
617
562
  const localVarFp = AuthserviceApiFp(configuration)
618
563
  return {
619
- /**
620
- * Register a new organization with appropriate hierarchy and create a user for that organization.
621
- * @summary Register Organization and User using invitation token
622
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
623
- * @param {*} [options] Override http request option.
624
- * @throws {RequiredError}
625
- */
626
- createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass> {
627
- return localVarFp.createOrgAndUser(createOrgAndUserRequestDto, options).then((request) => request(axios, basePath));
628
- },
629
564
  /**
630
565
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
631
566
  * @summary Register tenant user after invite
@@ -633,7 +568,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
633
568
  * @param {*} [options] Override http request option.
634
569
  * @throws {RequiredError}
635
570
  */
636
- createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass> {
571
+ createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<void> {
637
572
  return localVarFp.createUser(createUserRequestDto, options).then((request) => request(axios, basePath));
638
573
  },
639
574
  /**
@@ -683,7 +618,7 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
683
618
  * @param {*} [options] Override http request option.
684
619
  * @throws {RequiredError}
685
620
  */
686
- logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void> {
621
+ logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<object> {
687
622
  return localVarFp.logout(logoutRequestDto, options).then((request) => request(axios, basePath));
688
623
  },
689
624
  /**
@@ -730,20 +665,6 @@ export const AuthserviceApiFactory = function (configuration?: Configuration, ba
730
665
  };
731
666
  };
732
667
 
733
- /**
734
- * Request parameters for createOrgAndUser operation in AuthserviceApi.
735
- * @export
736
- * @interface AuthserviceApiCreateOrgAndUserRequest
737
- */
738
- export interface AuthserviceApiCreateOrgAndUserRequest {
739
- /**
740
- *
741
- * @type {CreateOrgAndUserRequestDto}
742
- * @memberof AuthserviceApiCreateOrgAndUser
743
- */
744
- readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto
745
- }
746
-
747
668
  /**
748
669
  * Request parameters for createUser operation in AuthserviceApi.
749
670
  * @export
@@ -898,18 +819,6 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
898
819
  * @extends {BaseAPI}
899
820
  */
900
821
  export class AuthserviceApi extends BaseAPI {
901
- /**
902
- * Register a new organization with appropriate hierarchy and create a user for that organization.
903
- * @summary Register Organization and User using invitation token
904
- * @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
905
- * @param {*} [options] Override http request option.
906
- * @throws {RequiredError}
907
- * @memberof AuthserviceApi
908
- */
909
- public createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig) {
910
- return AuthserviceApiFp(this.configuration).createOrgAndUser(requestParameters.createOrgAndUserRequestDto, options).then((request) => request(this.axios, this.basePath));
911
- }
912
-
913
822
  /**
914
823
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
915
824
  * @summary Register tenant user after invite
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
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
@@ -143,7 +143,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
143
143
  * The EMIL AuthService API description
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
- *
146
+ * Contact: kontakt@emil.de
147
147
  *
148
148
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
149
149
  * 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
@@ -12,10 +12,7 @@
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';
17
15
  import { CreateUserRequestDto } from '../models';
18
- import { CreateUserResponseClass } from '../models';
19
16
  import { ForgotPasswordRequestDto } from '../models';
20
17
  import { LoginBySAMLRequestDto } from '../models';
21
18
  import { LoginClass } from '../models';
@@ -28,14 +25,6 @@ import { ResetPasswordRequestDto } from '../models';
28
25
  * @export
29
26
  */
30
27
  export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configuration) => {
31
- /**
32
- * Register a new organization with appropriate hierarchy and create a user for that organization.
33
- * @summary Register Organization and User using invitation token
34
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- createOrgAndUser: (createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
28
  /**
40
29
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
41
30
  * @summary Register tenant user after invite
@@ -123,14 +112,6 @@ export declare const AuthserviceApiAxiosParamCreator: (configuration?: Configura
123
112
  * @export
124
113
  */
125
114
  export declare const AuthserviceApiFp: (configuration?: Configuration) => {
126
- /**
127
- * Register a new organization with appropriate hierarchy and create a user for that organization.
128
- * @summary Register Organization and User using invitation token
129
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
130
- * @param {*} [options] Override http request option.
131
- * @throws {RequiredError}
132
- */
133
- createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrgAndUserResponseClass>>;
134
115
  /**
135
116
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
136
117
  * @summary Register tenant user after invite
@@ -138,7 +119,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
138
119
  * @param {*} [options] Override http request option.
139
120
  * @throws {RequiredError}
140
121
  */
141
- createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponseClass>>;
122
+ createUser(createUserRequestDto: CreateUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
142
123
  /**
143
124
  * Send a tenant user a reset-password token via email.
144
125
  * @summary Forgot password by tenant
@@ -178,7 +159,7 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
178
159
  * @param {*} [options] Override http request option.
179
160
  * @throws {RequiredError}
180
161
  */
181
- logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
162
+ logout(logoutRequestDto: LogoutRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
182
163
  /**
183
164
  * Get new access token, new refresh token.
184
165
  * @summary Refresh token by tenant
@@ -218,14 +199,6 @@ export declare const AuthserviceApiFp: (configuration?: Configuration) => {
218
199
  * @export
219
200
  */
220
201
  export declare const AuthserviceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
221
- /**
222
- * Register a new organization with appropriate hierarchy and create a user for that organization.
223
- * @summary Register Organization and User using invitation token
224
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
225
- * @param {*} [options] Override http request option.
226
- * @throws {RequiredError}
227
- */
228
- createOrgAndUser(createOrgAndUserRequestDto: CreateOrgAndUserRequestDto, options?: any): AxiosPromise<CreateOrgAndUserResponseClass>;
229
202
  /**
230
203
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
231
204
  * @summary Register tenant user after invite
@@ -233,7 +206,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
233
206
  * @param {*} [options] Override http request option.
234
207
  * @throws {RequiredError}
235
208
  */
236
- createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<CreateUserResponseClass>;
209
+ createUser(createUserRequestDto: CreateUserRequestDto, options?: any): AxiosPromise<void>;
237
210
  /**
238
211
  * Send a tenant user a reset-password token via email.
239
212
  * @summary Forgot password by tenant
@@ -273,7 +246,7 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
273
246
  * @param {*} [options] Override http request option.
274
247
  * @throws {RequiredError}
275
248
  */
276
- logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<void>;
249
+ logout(logoutRequestDto: LogoutRequestDto, options?: any): AxiosPromise<object>;
277
250
  /**
278
251
  * Get new access token, new refresh token.
279
252
  * @summary Refresh token by tenant
@@ -308,19 +281,6 @@ export declare const AuthserviceApiFactory: (configuration?: Configuration, base
308
281
  */
309
282
  verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
310
283
  };
311
- /**
312
- * Request parameters for createOrgAndUser operation in AuthserviceApi.
313
- * @export
314
- * @interface AuthserviceApiCreateOrgAndUserRequest
315
- */
316
- export interface AuthserviceApiCreateOrgAndUserRequest {
317
- /**
318
- *
319
- * @type {CreateOrgAndUserRequestDto}
320
- * @memberof AuthserviceApiCreateOrgAndUser
321
- */
322
- readonly createOrgAndUserRequestDto: CreateOrgAndUserRequestDto;
323
- }
324
284
  /**
325
285
  * Request parameters for createUser operation in AuthserviceApi.
326
286
  * @export
@@ -464,15 +424,6 @@ export interface AuthserviceApiVerifyResetPasswordTokenRequest {
464
424
  * @extends {BaseAPI}
465
425
  */
466
426
  export declare class AuthserviceApi extends BaseAPI {
467
- /**
468
- * Register a new organization with appropriate hierarchy and create a user for that organization.
469
- * @summary Register Organization and User using invitation token
470
- * @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
471
- * @param {*} [options] Override http request option.
472
- * @throws {RequiredError}
473
- * @memberof AuthserviceApi
474
- */
475
- createOrgAndUser(requestParameters: AuthserviceApiCreateOrgAndUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrgAndUserResponseClass, any>>;
476
427
  /**
477
428
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
478
429
  * @summary Register tenant user after invite
@@ -481,7 +432,7 @@ export declare class AuthserviceApi extends BaseAPI {
481
432
  * @throws {RequiredError}
482
433
  * @memberof AuthserviceApi
483
434
  */
484
- createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateUserResponseClass, any>>;
435
+ createUser(requestParameters: AuthserviceApiCreateUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
485
436
  /**
486
437
  * Send a tenant user a reset-password token via email.
487
438
  * @summary Forgot password by tenant
@@ -526,7 +477,7 @@ export declare class AuthserviceApi extends BaseAPI {
526
477
  * @throws {RequiredError}
527
478
  * @memberof AuthserviceApi
528
479
  */
529
- logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
480
+ logout(requestParameters: AuthserviceApiLogoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
530
481
  /**
531
482
  * Get new access token, new refresh token.
532
483
  * @summary Refresh token by tenant
@@ -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
@@ -92,41 +92,6 @@ var base_1 = require("../base");
92
92
  var AuthserviceApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
- /**
96
- * Register a new organization with appropriate hierarchy and create a user for that organization.
97
- * @summary Register Organization and User using invitation token
98
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- createOrgAndUser: function (createOrgAndUserRequestDto, options) {
103
- if (options === void 0) { options = {}; }
104
- return __awaiter(_this, void 0, void 0, function () {
105
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
- return __generator(this, function (_a) {
107
- // verify required parameter 'createOrgAndUserRequestDto' is not null or undefined
108
- (0, common_1.assertParamExists)('createOrgAndUser', 'createOrgAndUserRequestDto', createOrgAndUserRequestDto);
109
- localVarPath = "/authservice/v1/create-org-and-user";
110
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
- if (configuration) {
112
- baseOptions = configuration.baseOptions;
113
- baseAccessToken = configuration.accessToken;
114
- }
115
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
116
- localVarHeaderParameter = {};
117
- localVarQueryParameter = {};
118
- localVarHeaderParameter['Content-Type'] = 'application/json';
119
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
120
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrgAndUserRequestDto, localVarRequestOptions, configuration);
123
- return [2 /*return*/, {
124
- url: (0, common_1.toPathString)(localVarUrlObj),
125
- options: localVarRequestOptions,
126
- }];
127
- });
128
- });
129
- },
130
95
  /**
131
96
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
132
97
  * @summary Register tenant user after invite
@@ -494,26 +459,6 @@ exports.AuthserviceApiAxiosParamCreator = AuthserviceApiAxiosParamCreator;
494
459
  var AuthserviceApiFp = function (configuration) {
495
460
  var localVarAxiosParamCreator = (0, exports.AuthserviceApiAxiosParamCreator)(configuration);
496
461
  return {
497
- /**
498
- * Register a new organization with appropriate hierarchy and create a user for that organization.
499
- * @summary Register Organization and User using invitation token
500
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
501
- * @param {*} [options] Override http request option.
502
- * @throws {RequiredError}
503
- */
504
- createOrgAndUser: function (createOrgAndUserRequestDto, options) {
505
- return __awaiter(this, void 0, void 0, function () {
506
- var localVarAxiosArgs;
507
- return __generator(this, function (_a) {
508
- switch (_a.label) {
509
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrgAndUser(createOrgAndUserRequestDto, options)];
510
- case 1:
511
- localVarAxiosArgs = _a.sent();
512
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
513
- }
514
- });
515
- });
516
- },
517
462
  /**
518
463
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
519
464
  * @summary Register tenant user after invite
@@ -725,16 +670,6 @@ exports.AuthserviceApiFp = AuthserviceApiFp;
725
670
  var AuthserviceApiFactory = function (configuration, basePath, axios) {
726
671
  var localVarFp = (0, exports.AuthserviceApiFp)(configuration);
727
672
  return {
728
- /**
729
- * Register a new organization with appropriate hierarchy and create a user for that organization.
730
- * @summary Register Organization and User using invitation token
731
- * @param {CreateOrgAndUserRequestDto} createOrgAndUserRequestDto
732
- * @param {*} [options] Override http request option.
733
- * @throws {RequiredError}
734
- */
735
- createOrgAndUser: function (createOrgAndUserRequestDto, options) {
736
- return localVarFp.createOrgAndUser(createOrgAndUserRequestDto, options).then(function (request) { return request(axios, basePath); });
737
- },
738
673
  /**
739
674
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
740
675
  * @summary Register tenant user after invite
@@ -850,18 +785,6 @@ var AuthserviceApi = /** @class */ (function (_super) {
850
785
  function AuthserviceApi() {
851
786
  return _super !== null && _super.apply(this, arguments) || this;
852
787
  }
853
- /**
854
- * Register a new organization with appropriate hierarchy and create a user for that organization.
855
- * @summary Register Organization and User using invitation token
856
- * @param {AuthserviceApiCreateOrgAndUserRequest} requestParameters Request parameters.
857
- * @param {*} [options] Override http request option.
858
- * @throws {RequiredError}
859
- * @memberof AuthserviceApi
860
- */
861
- AuthserviceApi.prototype.createOrgAndUser = function (requestParameters, options) {
862
- var _this = this;
863
- return (0, exports.AuthserviceApiFp)(this.configuration).createOrgAndUser(requestParameters.createOrgAndUserRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
864
- };
865
788
  /**
866
789
  * Register a tenant user using the invite token sent to the tenant user\'s email address.
867
790
  * @summary Register tenant user after invite
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
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
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
@@ -68,7 +68,7 @@ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios
68
68
  * The EMIL AuthService API description
69
69
  *
70
70
  * The version of the OpenAPI document: 1.0
71
- *
71
+ * Contact: kontakt@emil.de
72
72
  *
73
73
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
74
74
  * 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
@@ -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