@emilgroup/auth-sdk 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/authservice-api.ts +183 -4
  4. package/base.ts +2 -0
  5. package/dist/api/authservice-api.d.ts +102 -6
  6. package/dist/api/authservice-api.js +155 -0
  7. package/dist/base.js +3 -0
  8. package/dist/models/create-org-and-user-request-dto.d.ts +84 -0
  9. package/dist/models/create-org-and-user-request-dto.js +15 -0
  10. package/dist/models/create-org-and-user-response-class.d.ts +32 -0
  11. package/dist/models/create-org-and-user-response-class.js +15 -0
  12. package/dist/models/create-user-response-class.d.ts +25 -0
  13. package/dist/models/create-user-response-class.js +15 -0
  14. package/dist/models/custom-schema-class.d.ts +66 -0
  15. package/dist/models/custom-schema-class.js +15 -0
  16. package/dist/models/index.d.ts +10 -0
  17. package/dist/models/index.js +10 -0
  18. package/dist/models/org-invitation-class.d.ts +109 -0
  19. package/dist/models/org-invitation-class.js +15 -0
  20. package/dist/models/organization-class.d.ts +114 -0
  21. package/dist/models/organization-class.js +15 -0
  22. package/dist/models/role-class.d.ts +54 -0
  23. package/dist/models/role-class.js +15 -0
  24. package/dist/models/user-class.d.ts +85 -0
  25. package/dist/models/user-class.js +15 -0
  26. package/dist/models/verify-org-invitation-request-dto.d.ts +24 -0
  27. package/dist/models/verify-org-invitation-request-dto.js +15 -0
  28. package/dist/models/verify-org-invitation-response-class.d.ts +32 -0
  29. package/dist/models/verify-org-invitation-response-class.js +15 -0
  30. package/models/create-org-and-user-request-dto.ts +90 -0
  31. package/models/create-org-and-user-response-class.ts +38 -0
  32. package/models/create-user-response-class.ts +31 -0
  33. package/models/custom-schema-class.ts +72 -0
  34. package/models/index.ts +10 -0
  35. package/models/org-invitation-class.ts +115 -0
  36. package/models/organization-class.ts +120 -0
  37. package/models/role-class.ts +60 -0
  38. package/models/user-class.ts +91 -0
  39. package/models/verify-org-invitation-request-dto.ts +30 -0
  40. package/models/verify-org-invitation-response-class.ts +38 -0
  41. package/package.json +1 -1
@@ -0,0 +1,115 @@
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 { RoleClass } from './role-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface OrgInvitationClass
22
+ */
23
+ export interface OrgInvitationClass {
24
+ /**
25
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
26
+ * @type {number}
27
+ * @memberof OrgInvitationClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Organization user\'s email address.
32
+ * @type {string}
33
+ * @memberof OrgInvitationClass
34
+ */
35
+ 'email': string;
36
+ /**
37
+ * Permissions associated with the invite.
38
+ * @type {Array<RoleClass>}
39
+ * @memberof OrgInvitationClass
40
+ */
41
+ 'roles'?: Array<RoleClass>;
42
+ /**
43
+ * Name of the invited organization.
44
+ * @type {string}
45
+ * @memberof OrgInvitationClass
46
+ */
47
+ 'name': string;
48
+ /**
49
+ * Identifier for the organization.
50
+ * @type {string}
51
+ * @memberof OrgInvitationClass
52
+ */
53
+ 'slug': string;
54
+ /**
55
+ * Inviting organization.
56
+ * @type {number}
57
+ * @memberof OrgInvitationClass
58
+ */
59
+ 'parentOrganizationId'?: number;
60
+ /**
61
+ * Organization\'s street name.
62
+ * @type {string}
63
+ * @memberof OrgInvitationClass
64
+ */
65
+ 'street': string;
66
+ /**
67
+ * Organization\'s house number.
68
+ * @type {string}
69
+ * @memberof OrgInvitationClass
70
+ */
71
+ 'houseNumber': string;
72
+ /**
73
+ * Zip code of the organization.
74
+ * @type {string}
75
+ * @memberof OrgInvitationClass
76
+ */
77
+ 'zipCode': string;
78
+ /**
79
+ * City of the organization.
80
+ * @type {string}
81
+ * @memberof OrgInvitationClass
82
+ */
83
+ 'city': string;
84
+ /**
85
+ * Country of the organization.
86
+ * @type {string}
87
+ * @memberof OrgInvitationClass
88
+ */
89
+ 'country': string;
90
+ /**
91
+ * Custom fields of the organization.
92
+ * @type {object}
93
+ * @memberof OrgInvitationClass
94
+ */
95
+ 'customFields'?: object;
96
+ /**
97
+ * Expiry date of invitation email.
98
+ * @type {string}
99
+ * @memberof OrgInvitationClass
100
+ */
101
+ 'expiresAt': string;
102
+ /**
103
+ * Time at which the object was created.
104
+ * @type {string}
105
+ * @memberof OrgInvitationClass
106
+ */
107
+ 'createdAt': string;
108
+ /**
109
+ * Time at which the object was updated.
110
+ * @type {string}
111
+ * @memberof OrgInvitationClass
112
+ */
113
+ 'updatedAt': string;
114
+ }
115
+
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AuthService
5
+ * The EMIL AuthService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface OrganizationClass
21
+ */
22
+ export interface OrganizationClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof OrganizationClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof OrganizationClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof OrganizationClass
39
+ */
40
+ 'parentId'?: number;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof OrganizationClass
45
+ */
46
+ 'email': string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof OrganizationClass
51
+ */
52
+ 'ern'?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof OrganizationClass
57
+ */
58
+ 'name': string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof OrganizationClass
63
+ */
64
+ 'type': string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof OrganizationClass
69
+ */
70
+ 'street': string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof OrganizationClass
75
+ */
76
+ 'houseNumber': string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof OrganizationClass
81
+ */
82
+ 'zipCode': string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof OrganizationClass
87
+ */
88
+ 'city': string;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof OrganizationClass
93
+ */
94
+ 'country': string;
95
+ /**
96
+ *
97
+ * @type {object}
98
+ * @memberof OrganizationClass
99
+ */
100
+ 'customFields'?: object;
101
+ /**
102
+ * Time at which the object was created.
103
+ * @type {string}
104
+ * @memberof OrganizationClass
105
+ */
106
+ 'createdAt': string;
107
+ /**
108
+ * Time at which the object was updated.
109
+ * @type {string}
110
+ * @memberof OrganizationClass
111
+ */
112
+ 'updatedAt': string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof OrganizationClass
117
+ */
118
+ 'deletedAt'?: string | null;
119
+ }
120
+
@@ -0,0 +1,60 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface RoleClass
21
+ */
22
+ export interface RoleClass {
23
+ /**
24
+ * unique role code
25
+ * @type {string}
26
+ * @memberof RoleClass
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * role id
31
+ * @type {number}
32
+ * @memberof RoleClass
33
+ */
34
+ 'id': number;
35
+ /**
36
+ * short description of the role
37
+ * @type {string}
38
+ * @memberof RoleClass
39
+ */
40
+ 'description': string;
41
+ /**
42
+ * role label
43
+ * @type {string}
44
+ * @memberof RoleClass
45
+ */
46
+ 'label': string;
47
+ /**
48
+ * Date created
49
+ * @type {string}
50
+ * @memberof RoleClass
51
+ */
52
+ 'createdAt': string;
53
+ /**
54
+ * Date updated
55
+ * @type {string}
56
+ * @memberof RoleClass
57
+ */
58
+ 'updatedAt': string;
59
+ }
60
+
@@ -0,0 +1,91 @@
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 { RoleClass } from './role-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UserClass
22
+ */
23
+ export interface UserClass {
24
+ /**
25
+ * user id
26
+ * @type {number}
27
+ * @memberof UserClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * unique user code
32
+ * @type {string}
33
+ * @memberof UserClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * email address of the user
38
+ * @type {string}
39
+ * @memberof UserClass
40
+ */
41
+ 'email': string;
42
+ /**
43
+ * first name of the user
44
+ * @type {string}
45
+ * @memberof UserClass
46
+ */
47
+ 'firstName': string;
48
+ /**
49
+ * first name of the user
50
+ * @type {string}
51
+ * @memberof UserClass
52
+ */
53
+ 'lastName': string;
54
+ /**
55
+ * status of the of the user
56
+ * @type {string}
57
+ * @memberof UserClass
58
+ */
59
+ 'status': string;
60
+ /**
61
+ * cognito sub of the user
62
+ * @type {string}
63
+ * @memberof UserClass
64
+ */
65
+ 'sub': string;
66
+ /**
67
+ * tenant id
68
+ * @type {number}
69
+ * @memberof UserClass
70
+ */
71
+ 'tenantId': number;
72
+ /**
73
+ * permissions associated with the user
74
+ * @type {Array<RoleClass>}
75
+ * @memberof UserClass
76
+ */
77
+ 'roles': Array<RoleClass>;
78
+ /**
79
+ * Date created
80
+ * @type {string}
81
+ * @memberof UserClass
82
+ */
83
+ 'createdAt': string;
84
+ /**
85
+ * Date updated
86
+ * @type {string}
87
+ * @memberof UserClass
88
+ */
89
+ 'updatedAt': string;
90
+ }
91
+
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface VerifyOrgInvitationRequestDto
21
+ */
22
+ export interface VerifyOrgInvitationRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof VerifyOrgInvitationRequestDto
27
+ */
28
+ 'invitationToken': string;
29
+ }
30
+
@@ -0,0 +1,38 @@
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 { CustomSchemaClass } from './custom-schema-class';
17
+ import { OrgInvitationClass } from './org-invitation-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface VerifyOrgInvitationResponseClass
23
+ */
24
+ export interface VerifyOrgInvitationResponseClass {
25
+ /**
26
+ * Invitation object identified by the token.
27
+ * @type {OrgInvitationClass}
28
+ * @memberof VerifyOrgInvitationResponseClass
29
+ */
30
+ 'invitation': OrgInvitationClass;
31
+ /**
32
+ * Custom schema associated for the invitation process
33
+ * @type {CustomSchemaClass}
34
+ * @memberof VerifyOrgInvitationResponseClass
35
+ */
36
+ 'customSchema': CustomSchemaClass;
37
+ }
38
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/auth-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "OpenAPI client for @emilgroup/auth-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [