@3sixty/api-auth-entity-storage-models 0.20.0-next.0 → 0.20.0-next.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 (86) hide show
  1. package/README.md +1 -1
  2. package/dist/es/index.js +2 -12
  3. package/dist/es/index.js.map +1 -1
  4. package/dist/es/models/IAuthenticationAdminComponent.js.map +1 -1
  5. package/dist/es/models/IAuthenticationComponent.js.map +1 -1
  6. package/dist/es/models/IAuthenticationUser.js.map +1 -1
  7. package/dist/es/models/IAuthenticationUserSecure.js.map +1 -1
  8. package/dist/es/models/{api/IAuditGetRequest.js → IPasswordOptions.js} +1 -1
  9. package/dist/es/models/IPasswordOptions.js.map +1 -0
  10. package/dist/es/models/api/IAdminUserCreateRequest.js.map +1 -1
  11. package/dist/es/models/api/IAdminUserGetByIdentityRequest.js.map +1 -1
  12. package/dist/es/models/api/IAdminUserGetRequest.js.map +1 -1
  13. package/dist/es/models/api/IAdminUserGetResponse.js.map +1 -1
  14. package/dist/es/models/api/IAdminUserRemoveRequest.js.map +1 -1
  15. package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js.map +1 -1
  16. package/dist/es/models/api/IAdminUserUpdateRequest.js.map +1 -1
  17. package/dist/es/models/api/ILoginRequest.js.map +1 -1
  18. package/dist/es/models/api/ILoginResponse.js.map +1 -1
  19. package/dist/es/models/api/ILogoutRequest.js.map +1 -1
  20. package/dist/es/models/api/IPasswordPolicyResponse.js +2 -0
  21. package/dist/es/models/api/IPasswordPolicyResponse.js.map +1 -0
  22. package/dist/es/models/api/IRefreshTokenRequest.js.map +1 -1
  23. package/dist/es/models/api/IRefreshTokenResponse.js.map +1 -1
  24. package/dist/es/models/api/IUpdatePasswordRequest.js.map +1 -1
  25. package/dist/types/index.d.ts +2 -12
  26. package/dist/types/models/IAuthenticationComponent.d.ts +6 -0
  27. package/dist/types/models/IAuthenticationUser.d.ts +0 -4
  28. package/dist/types/models/IPasswordOptions.d.ts +13 -0
  29. package/dist/types/models/api/IPasswordPolicyResponse.d.ts +10 -0
  30. package/docs/changelog.md +11 -0
  31. package/docs/examples.md +15 -6
  32. package/docs/reference/index.md +2 -19
  33. package/docs/reference/interfaces/IAuthenticationComponent.md +14 -0
  34. package/docs/reference/interfaces/IAuthenticationUser.md +0 -8
  35. package/docs/reference/interfaces/IAuthenticationUserSecure.md +0 -12
  36. package/docs/reference/interfaces/IPasswordOptions.md +19 -0
  37. package/docs/reference/interfaces/IPasswordPolicyResponse.md +11 -0
  38. package/package.json +3 -3
  39. package/dist/es/models/IAuthenticationAuditComponent.js +0 -2
  40. package/dist/es/models/IAuthenticationAuditComponent.js.map +0 -1
  41. package/dist/es/models/IAuthenticationAuditEntry.js +0 -2
  42. package/dist/es/models/IAuthenticationAuditEntry.js.map +0 -1
  43. package/dist/es/models/IAuthenticationRateActionConfig.js +0 -4
  44. package/dist/es/models/IAuthenticationRateActionConfig.js.map +0 -1
  45. package/dist/es/models/IAuthenticationRateComponent.js +0 -2
  46. package/dist/es/models/IAuthenticationRateComponent.js.map +0 -1
  47. package/dist/es/models/api/IAuditCreateRequest.js +0 -2
  48. package/dist/es/models/api/IAuditCreateRequest.js.map +0 -1
  49. package/dist/es/models/api/IAuditGetRequest.js.map +0 -1
  50. package/dist/es/models/api/IAuditGetResponse.js +0 -2
  51. package/dist/es/models/api/IAuditGetResponse.js.map +0 -1
  52. package/dist/es/models/api/IAuditQueryRequest.js +0 -2
  53. package/dist/es/models/api/IAuditQueryRequest.js.map +0 -1
  54. package/dist/es/models/api/IAuditQueryResponse.js +0 -2
  55. package/dist/es/models/api/IAuditQueryResponse.js.map +0 -1
  56. package/dist/es/models/api/IAuditRemoveRequest.js +0 -4
  57. package/dist/es/models/api/IAuditRemoveRequest.js.map +0 -1
  58. package/dist/es/models/api/IAuditUpdateRequest.js +0 -2
  59. package/dist/es/models/api/IAuditUpdateRequest.js.map +0 -1
  60. package/dist/es/models/authAuditEvent.js +0 -49
  61. package/dist/es/models/authAuditEvent.js.map +0 -1
  62. package/dist/types/models/IAuthenticationAuditComponent.d.ts +0 -59
  63. package/dist/types/models/IAuthenticationAuditEntry.d.ts +0 -50
  64. package/dist/types/models/IAuthenticationRateActionConfig.d.ts +0 -13
  65. package/dist/types/models/IAuthenticationRateComponent.d.ts +0 -46
  66. package/dist/types/models/api/IAuditCreateRequest.d.ts +0 -10
  67. package/dist/types/models/api/IAuditGetRequest.d.ts +0 -14
  68. package/dist/types/models/api/IAuditGetResponse.d.ts +0 -10
  69. package/dist/types/models/api/IAuditQueryRequest.d.ts +0 -47
  70. package/dist/types/models/api/IAuditQueryResponse.d.ts +0 -19
  71. package/dist/types/models/api/IAuditRemoveRequest.d.ts +0 -14
  72. package/dist/types/models/api/IAuditUpdateRequest.d.ts +0 -19
  73. package/dist/types/models/authAuditEvent.d.ts +0 -49
  74. package/docs/reference/interfaces/IAuditCreateRequest.md +0 -11
  75. package/docs/reference/interfaces/IAuditGetRequest.md +0 -17
  76. package/docs/reference/interfaces/IAuditGetResponse.md +0 -11
  77. package/docs/reference/interfaces/IAuditQueryRequest.md +0 -65
  78. package/docs/reference/interfaces/IAuditQueryResponse.md +0 -23
  79. package/docs/reference/interfaces/IAuditRemoveRequest.md +0 -17
  80. package/docs/reference/interfaces/IAuditUpdateRequest.md +0 -25
  81. package/docs/reference/interfaces/IAuthenticationAuditComponent.md +0 -175
  82. package/docs/reference/interfaces/IAuthenticationAuditEntry.md +0 -91
  83. package/docs/reference/interfaces/IAuthenticationRateActionConfig.md +0 -19
  84. package/docs/reference/interfaces/IAuthenticationRateComponent.md +0 -165
  85. package/docs/reference/type-aliases/AuthAuditEvent.md +0 -5
  86. package/docs/reference/variables/AuthAuditEvent.md +0 -67
@@ -1,175 +0,0 @@
1
- # Interface: IAuthenticationAuditComponent
2
-
3
- Contract definition for authentication audit component.
4
-
5
- ## Extends
6
-
7
- - `IComponent`
8
-
9
- ## Methods
10
-
11
- ### create() {#create}
12
-
13
- > **create**(`entry`): `Promise`\<`string`\>
14
-
15
- Create a new audit entry.
16
-
17
- #### Parameters
18
-
19
- ##### entry
20
-
21
- `Omit`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md), `"id"` \| `"dateCreated"`\>
22
-
23
- The audit entry to be logged.
24
-
25
- #### Returns
26
-
27
- `Promise`\<`string`\>
28
-
29
- The unique identifier of the created audit entry.
30
-
31
- ***
32
-
33
- ### get() {#get}
34
-
35
- > **get**(`id`): `Promise`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)\>
36
-
37
- Get an audit entry by id.
38
-
39
- #### Parameters
40
-
41
- ##### id
42
-
43
- `string`
44
-
45
- The unique identifier of the audit entry.
46
-
47
- #### Returns
48
-
49
- `Promise`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)\>
50
-
51
- The audit entry.
52
-
53
- ***
54
-
55
- ### update() {#update}
56
-
57
- > **update**(`id`, `entry`): `Promise`\<`void`\>
58
-
59
- Update an audit entry.
60
-
61
- #### Parameters
62
-
63
- ##### id
64
-
65
- `string`
66
-
67
- The unique identifier of the audit entry to update.
68
-
69
- ##### entry
70
-
71
- `Partial`\<`Omit`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md), `"id"` \| `"dateCreated"`\>\>
72
-
73
- The fields to update on the audit entry.
74
-
75
- #### Returns
76
-
77
- `Promise`\<`void`\>
78
-
79
- A promise that resolves when the audit entry has been updated.
80
-
81
- ***
82
-
83
- ### remove() {#remove}
84
-
85
- > **remove**(`id`): `Promise`\<`void`\>
86
-
87
- Remove an audit entry.
88
-
89
- #### Parameters
90
-
91
- ##### id
92
-
93
- `string`
94
-
95
- The unique identifier of the audit entry to remove.
96
-
97
- #### Returns
98
-
99
- `Promise`\<`void`\>
100
-
101
- A promise that resolves when the audit entry has been removed.
102
-
103
- ***
104
-
105
- ### query() {#query}
106
-
107
- > **query**(`options?`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: [`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)[]; `cursor?`: `string`; \}\>
108
-
109
- Query the audit entries.
110
-
111
- #### Parameters
112
-
113
- ##### options?
114
-
115
- The query options.
116
-
117
- ###### actorId?
118
-
119
- `string`
120
-
121
- The actor identifier to filter the audit entries, optional.
122
-
123
- ###### organizationId?
124
-
125
- `string`
126
-
127
- The organization identifier to filter the audit entries, optional.
128
-
129
- ###### tenantId?
130
-
131
- `string`
132
-
133
- The tenant identifier to filter the audit entries, optional.
134
-
135
- ###### nodeId?
136
-
137
- `string`
138
-
139
- The node identifier to filter the audit entries, optional.
140
-
141
- ###### event?
142
-
143
- `string`
144
-
145
- The audit event to filter the audit entries, optional.
146
-
147
- ###### startDate?
148
-
149
- `string`
150
-
151
- The start date to filter the audit entries, optional.
152
-
153
- ###### endDate?
154
-
155
- `string`
156
-
157
- The end date to filter the audit entries, optional.
158
-
159
- ##### cursor?
160
-
161
- `string`
162
-
163
- The cursor for pagination.
164
-
165
- ##### limit?
166
-
167
- `number`
168
-
169
- The maximum number of entries to return.
170
-
171
- #### Returns
172
-
173
- `Promise`\<\{ `entries`: [`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)[]; `cursor?`: `string`; \}\>
174
-
175
- The audit entries.
@@ -1,91 +0,0 @@
1
- # Interface: IAuthenticationAuditEntry
2
-
3
- Contract definition for authentication audit entry.
4
-
5
- ## Properties
6
-
7
- ### id {#id}
8
-
9
- > **id**: `string`
10
-
11
- The unique identifier for the audit entry.
12
-
13
- ***
14
-
15
- ### event {#event}
16
-
17
- > **event**: `string`
18
-
19
- The audit event that occurred.
20
-
21
- ***
22
-
23
- ### dateCreated {#datecreated}
24
-
25
- > **dateCreated**: `string`
26
-
27
- The timestamp of the audit entry in ISO 8601 format.
28
-
29
- ***
30
-
31
- ### actorId? {#actorid}
32
-
33
- > `optional` **actorId?**: `string`
34
-
35
- The actor identifier, could be e-mail, username, or other unique identifier.
36
-
37
- ***
38
-
39
- ### nodeId? {#nodeid}
40
-
41
- > `optional` **nodeId?**: `string`
42
-
43
- The node identifier associated with the audit entry, if applicable.
44
-
45
- ***
46
-
47
- ### organizationId? {#organizationid}
48
-
49
- > `optional` **organizationId?**: `string`
50
-
51
- The organization identifier associated with the audit entry, if applicable.
52
-
53
- ***
54
-
55
- ### tenantId? {#tenantid}
56
-
57
- > `optional` **tenantId?**: `string`
58
-
59
- The tenant identifier associated with the audit entry, if applicable.
60
-
61
- ***
62
-
63
- ### ipAddressHashes? {#ipaddresshashes}
64
-
65
- > `optional` **ipAddressHashes?**: `string`[]
66
-
67
- The hashed IP addresses of the client.
68
-
69
- ***
70
-
71
- ### userAgent? {#useragent}
72
-
73
- > `optional` **userAgent?**: `string`
74
-
75
- The user agent string of the client.
76
-
77
- ***
78
-
79
- ### correlationId? {#correlationid}
80
-
81
- > `optional` **correlationId?**: `string`
82
-
83
- The correlation ID for request tracing.
84
-
85
- ***
86
-
87
- ### data? {#data}
88
-
89
- > `optional` **data?**: `unknown`
90
-
91
- Additional data related to the audit entry, such as IP address, user agent, etc.
@@ -1,19 +0,0 @@
1
- # Interface: IAuthenticationRateActionConfig
2
-
3
- Configuration for an authentication rate limited action.
4
-
5
- ## Properties
6
-
7
- ### maxAttempts {#maxattempts}
8
-
9
- > **maxAttempts**: `number`
10
-
11
- Maximum number of failed attempts allowed per window.
12
-
13
- ***
14
-
15
- ### windowMinutes {#windowminutes}
16
-
17
- > **windowMinutes**: `number`
18
-
19
- Rate limit window duration in minutes.
@@ -1,165 +0,0 @@
1
- # Interface: IAuthenticationRateComponent
2
-
3
- Contract definition for authentication rate component.
4
-
5
- ## Extends
6
-
7
- - `IComponent`
8
-
9
- ## Methods
10
-
11
- ### start() {#start}
12
-
13
- > **start**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
14
-
15
- The service needs to be started when the application is initialized.
16
-
17
- #### Parameters
18
-
19
- ##### nodeLoggingComponentType?
20
-
21
- `string`
22
-
23
- The node logging component type.
24
-
25
- #### Returns
26
-
27
- `Promise`\<`void`\>
28
-
29
- A promise that resolves when the service has been started.
30
-
31
- #### Overrides
32
-
33
- `IComponent.start`
34
-
35
- ***
36
-
37
- ### stop() {#stop}
38
-
39
- > **stop**(`nodeLoggingComponentType?`): `Promise`\<`void`\>
40
-
41
- The component needs to be stopped when the node is closed.
42
-
43
- #### Parameters
44
-
45
- ##### nodeLoggingComponentType?
46
-
47
- `string`
48
-
49
- The node logging component type.
50
-
51
- #### Returns
52
-
53
- `Promise`\<`void`\>
54
-
55
- A promise that resolves when the service has been stopped.
56
-
57
- #### Overrides
58
-
59
- `IComponent.stop`
60
-
61
- ***
62
-
63
- ### registerAction() {#registeraction}
64
-
65
- > **registerAction**(`action`, `config`): `Promise`\<`void`\>
66
-
67
- Register or update rate-limit configuration for an action.
68
-
69
- #### Parameters
70
-
71
- ##### action
72
-
73
- `string`
74
-
75
- The action name.
76
-
77
- ##### config
78
-
79
- [`IAuthenticationRateActionConfig`](IAuthenticationRateActionConfig.md)
80
-
81
- The action configuration.
82
-
83
- #### Returns
84
-
85
- `Promise`\<`void`\>
86
-
87
- A promise that resolves when the action configuration has been stored.
88
-
89
- ***
90
-
91
- ### unregisterAction() {#unregisteraction}
92
-
93
- > **unregisterAction**(`action`): `Promise`\<`void`\>
94
-
95
- Unregister rate-limit configuration for an action.
96
-
97
- #### Parameters
98
-
99
- ##### action
100
-
101
- `string`
102
-
103
- The action name.
104
-
105
- #### Returns
106
-
107
- `Promise`\<`void`\>
108
-
109
- A promise that resolves when the action configuration has been removed.
110
-
111
- ***
112
-
113
- ### check() {#check}
114
-
115
- > **check**(`action`, `identifier`): `Promise`\<`string`\>
116
-
117
- Check the authentication rate for a given action and identifier.
118
-
119
- #### Parameters
120
-
121
- ##### action
122
-
123
- `string`
124
-
125
- The action to be checked.
126
-
127
- ##### identifier
128
-
129
- `string`
130
-
131
- The identifier to be checked.
132
-
133
- #### Returns
134
-
135
- `Promise`\<`string`\>
136
-
137
- The result of the rate check.
138
-
139
- ***
140
-
141
- ### clear() {#clear}
142
-
143
- > **clear**(`action`, `identifier`): `Promise`\<`void`\>
144
-
145
- Clear the authentication rate entry for the given action and identifier.
146
-
147
- #### Parameters
148
-
149
- ##### action
150
-
151
- `string`
152
-
153
- The action to clear.
154
-
155
- ##### identifier
156
-
157
- `string`
158
-
159
- The identifier to clear.
160
-
161
- #### Returns
162
-
163
- `Promise`\<`void`\>
164
-
165
- A promise that resolves when the rate entry has been removed.
@@ -1,5 +0,0 @@
1
- # Type Alias: AuthAuditEvent
2
-
3
- > **AuthAuditEvent** = *typeof* [`AuthAuditEvent`](../variables/AuthAuditEvent.md)\[keyof *typeof* [`AuthAuditEvent`](../variables/AuthAuditEvent.md)\]
4
-
5
- Supported authentication audit event values.
@@ -1,67 +0,0 @@
1
- # Variable: AuthAuditEvent
2
-
3
- > `const` **AuthAuditEvent**: `object`
4
-
5
- Supported authentication audit events.
6
-
7
- ## Type Declaration
8
-
9
- ### LoginSuccess {#loginsuccess}
10
-
11
- > `readonly` **LoginSuccess**: `"login-success"` = `"login-success"`
12
-
13
- Login success.
14
-
15
- ### LoginFailure {#loginfailure}
16
-
17
- > `readonly` **LoginFailure**: `"login-failure"` = `"login-failure"`
18
-
19
- Login failure.
20
-
21
- ### Logout {#logout}
22
-
23
- > `readonly` **Logout**: `"logout"` = `"logout"`
24
-
25
- Logout.
26
-
27
- ### TokenRefreshed {#tokenrefreshed}
28
-
29
- > `readonly` **TokenRefreshed**: `"token-refreshed"` = `"token-refreshed"`
30
-
31
- Token refreshed.
32
-
33
- ### AccountCreated {#accountcreated}
34
-
35
- > `readonly` **AccountCreated**: `"account-created"` = `"account-created"`
36
-
37
- Account created.
38
-
39
- ### AccountDeleted {#accountdeleted}
40
-
41
- > `readonly` **AccountDeleted**: `"account-deleted"` = `"account-deleted"`
42
-
43
- Account deleted.
44
-
45
- ### AccountUpdated {#accountupdated}
46
-
47
- > `readonly` **AccountUpdated**: `"account-updated"` = `"account-updated"`
48
-
49
- Account updated.
50
-
51
- ### AccountLocked {#accountlocked}
52
-
53
- > `readonly` **AccountLocked**: `"account-locked"` = `"account-locked"`
54
-
55
- Account locked.
56
-
57
- ### AccountUnlocked {#accountunlocked}
58
-
59
- > `readonly` **AccountUnlocked**: `"account-unlocked"` = `"account-unlocked"`
60
-
61
- Account unlocked.
62
-
63
- ### PasswordChanged {#passwordchanged}
64
-
65
- > `readonly` **PasswordChanged**: `"password-changed"` = `"password-changed"`
66
-
67
- Password changed.