@3sixty/api-auth-entity-storage-service 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 (108) hide show
  1. package/README.md +1 -1
  2. package/dist/es/entities/authenticationUser.js +1 -9
  3. package/dist/es/entities/authenticationUser.js.map +1 -1
  4. package/dist/es/entities/authenticationUserV0.js +69 -0
  5. package/dist/es/entities/authenticationUserV0.js.map +1 -0
  6. package/dist/es/index.js +1 -9
  7. package/dist/es/index.js.map +1 -1
  8. package/dist/es/models/IAuthHeaderProcessorConfig.js.map +1 -1
  9. package/dist/es/models/IAuthHeaderProcessorConstructorOptions.js.map +1 -1
  10. package/dist/es/models/IAuthTokenContext.js.map +1 -1
  11. package/dist/es/models/IEntityStorageAuthenticationAdminServiceConfig.js.map +1 -1
  12. package/dist/es/models/IEntityStorageAuthenticationAdminServiceConstructorOptions.js.map +1 -1
  13. package/dist/es/models/IEntityStorageAuthenticationServiceConfig.js.map +1 -1
  14. package/dist/es/models/IEntityStorageAuthenticationServiceConstructorOptions.js.map +1 -1
  15. package/dist/es/processors/authHeaderProcessor.js +9 -14
  16. package/dist/es/processors/authHeaderProcessor.js.map +1 -1
  17. package/dist/es/restEntryPoints.js +1 -8
  18. package/dist/es/restEntryPoints.js.map +1 -1
  19. package/dist/es/routes/entityStorageAuthenticationAdminRoutes.js +22 -14
  20. package/dist/es/routes/entityStorageAuthenticationAdminRoutes.js.map +1 -1
  21. package/dist/es/routes/entityStorageAuthenticationRoutes.js +45 -1
  22. package/dist/es/routes/entityStorageAuthenticationRoutes.js.map +1 -1
  23. package/dist/es/schema.js +2 -4
  24. package/dist/es/schema.js.map +1 -1
  25. package/dist/es/services/entityStorageAuthenticationAdminService.js +69 -68
  26. package/dist/es/services/entityStorageAuthenticationAdminService.js.map +1 -1
  27. package/dist/es/services/entityStorageAuthenticationService.js +29 -17
  28. package/dist/es/services/entityStorageAuthenticationService.js.map +1 -1
  29. package/dist/es/utils/passwordHelper.js +7 -5
  30. package/dist/es/utils/passwordHelper.js.map +1 -1
  31. package/dist/es/utils/tokenHelper.js +2 -23
  32. package/dist/es/utils/tokenHelper.js.map +1 -1
  33. package/dist/types/entities/authenticationUser.d.ts +0 -4
  34. package/dist/types/entities/authenticationUserV0.d.ts +33 -0
  35. package/dist/types/index.d.ts +1 -9
  36. package/dist/types/models/IAuthHeaderProcessorConfig.d.ts +1 -2
  37. package/dist/types/models/IAuthTokenContext.d.ts +0 -4
  38. package/dist/types/models/IEntityStorageAuthenticationAdminServiceConfig.d.ts +14 -3
  39. package/dist/types/models/IEntityStorageAuthenticationAdminServiceConstructorOptions.d.ts +6 -1
  40. package/dist/types/models/IEntityStorageAuthenticationServiceConfig.d.ts +7 -2
  41. package/dist/types/restEntryPoints.d.ts +1 -1
  42. package/dist/types/routes/entityStorageAuthenticationRoutes.d.ts +10 -2
  43. package/dist/types/services/entityStorageAuthenticationAdminService.d.ts +6 -2
  44. package/dist/types/services/entityStorageAuthenticationService.d.ts +6 -1
  45. package/dist/types/utils/passwordHelper.d.ts +6 -3
  46. package/dist/types/utils/tokenHelper.d.ts +2 -11
  47. package/docs/changelog.md +19 -0
  48. package/docs/examples.md +9 -93
  49. package/docs/open-api/spec.json +178 -956
  50. package/docs/reference/classes/AuthHeaderProcessor.md +4 -0
  51. package/docs/reference/classes/AuthenticationUser.md +0 -8
  52. package/docs/reference/classes/AuthenticationUserV0.md +69 -0
  53. package/docs/reference/classes/EntityStorageAuthenticationAdminService.md +11 -3
  54. package/docs/reference/classes/EntityStorageAuthenticationService.md +18 -0
  55. package/docs/reference/classes/PasswordHelper.md +4 -4
  56. package/docs/reference/classes/TokenHelper.md +2 -44
  57. package/docs/reference/functions/authenticationPasswordPolicy.md +31 -0
  58. package/docs/reference/index.md +2 -15
  59. package/docs/reference/interfaces/IAuthHeaderProcessorConfig.md +1 -2
  60. package/docs/reference/interfaces/IAuthTokenContext.md +0 -8
  61. package/docs/reference/interfaces/IEntityStorageAuthenticationAdminServiceConfig.md +38 -4
  62. package/docs/reference/interfaces/IEntityStorageAuthenticationAdminServiceConstructorOptions.md +15 -1
  63. package/docs/reference/interfaces/IEntityStorageAuthenticationServiceConfig.md +15 -1
  64. package/docs/reference/variables/restEntryPoints.md +1 -1
  65. package/locales/en.json +1 -16
  66. package/package.json +7 -8
  67. package/dist/es/entities/authenticationAuditEntry.js +0 -121
  68. package/dist/es/entities/authenticationAuditEntry.js.map +0 -1
  69. package/dist/es/entities/authenticationRateEntry.js +0 -37
  70. package/dist/es/entities/authenticationRateEntry.js.map +0 -1
  71. package/dist/es/models/IEntityStorageAuthenticationAuditServiceConfig.js +0 -4
  72. package/dist/es/models/IEntityStorageAuthenticationAuditServiceConfig.js.map +0 -1
  73. package/dist/es/models/IEntityStorageAuthenticationAuditServiceConstructorOptions.js +0 -2
  74. package/dist/es/models/IEntityStorageAuthenticationAuditServiceConstructorOptions.js.map +0 -1
  75. package/dist/es/models/IEntityStorageAuthenticationRateServiceConfig.js +0 -2
  76. package/dist/es/models/IEntityStorageAuthenticationRateServiceConfig.js.map +0 -1
  77. package/dist/es/models/IEntityStorageAuthenticationRateServiceConstructorOptions.js +0 -2
  78. package/dist/es/models/IEntityStorageAuthenticationRateServiceConstructorOptions.js.map +0 -1
  79. package/dist/es/routes/entityStorageAuthenticationAuditRoutes.js +0 -343
  80. package/dist/es/routes/entityStorageAuthenticationAuditRoutes.js.map +0 -1
  81. package/dist/es/services/entityStorageAuthenticationAuditService.js +0 -240
  82. package/dist/es/services/entityStorageAuthenticationAuditService.js.map +0 -1
  83. package/dist/es/services/entityStorageAuthenticationRateService.js +0 -213
  84. package/dist/es/services/entityStorageAuthenticationRateService.js.map +0 -1
  85. package/dist/types/entities/authenticationAuditEntry.d.ts +0 -49
  86. package/dist/types/entities/authenticationRateEntry.d.ts +0 -17
  87. package/dist/types/models/IEntityStorageAuthenticationAuditServiceConfig.d.ts +0 -9
  88. package/dist/types/models/IEntityStorageAuthenticationAuditServiceConstructorOptions.d.ts +0 -15
  89. package/dist/types/models/IEntityStorageAuthenticationRateServiceConfig.d.ts +0 -10
  90. package/dist/types/models/IEntityStorageAuthenticationRateServiceConstructorOptions.d.ts +0 -25
  91. package/dist/types/routes/entityStorageAuthenticationAuditRoutes.d.ts +0 -54
  92. package/dist/types/services/entityStorageAuthenticationAuditService.d.ts +0 -72
  93. package/dist/types/services/entityStorageAuthenticationRateService.d.ts +0 -60
  94. package/docs/reference/classes/AuthenticationAuditEntry.md +0 -101
  95. package/docs/reference/classes/AuthenticationRateEntry.md +0 -37
  96. package/docs/reference/classes/EntityStorageAuthenticationAuditService.md +0 -241
  97. package/docs/reference/classes/EntityStorageAuthenticationRateService.md +0 -227
  98. package/docs/reference/functions/authenticationAuditCreate.md +0 -37
  99. package/docs/reference/functions/authenticationAuditGet.md +0 -31
  100. package/docs/reference/functions/authenticationAuditQuery.md +0 -31
  101. package/docs/reference/functions/authenticationAuditRemove.md +0 -31
  102. package/docs/reference/functions/authenticationAuditUpdate.md +0 -31
  103. package/docs/reference/functions/generateRestRoutesAuthenticationAudit.md +0 -25
  104. package/docs/reference/interfaces/IEntityStorageAuthenticationAuditServiceConfig.md +0 -11
  105. package/docs/reference/interfaces/IEntityStorageAuthenticationAuditServiceConstructorOptions.md +0 -25
  106. package/docs/reference/interfaces/IEntityStorageAuthenticationRateServiceConfig.md +0 -17
  107. package/docs/reference/interfaces/IEntityStorageAuthenticationRateServiceConstructorOptions.md +0 -53
  108. package/docs/reference/variables/tagsAuthenticationAudit.md +0 -5
@@ -1,25 +0,0 @@
1
- import type { IEntityStorageAuthenticationRateServiceConfig } from "./IEntityStorageAuthenticationRateServiceConfig.js";
2
- /**
3
- * Options for the EntityStorageAuthenticationRateService constructor.
4
- */
5
- export interface IEntityStorageAuthenticationRateServiceConstructorOptions {
6
- /**
7
- * The entity storage for authentication rate entries.
8
- * @default authentication-rate-entry
9
- */
10
- authenticationRateEntryStorageType?: string;
11
- /**
12
- * The task scheduler component type.
13
- * @default task-scheduler
14
- */
15
- taskSchedulerComponentType?: string;
16
- /**
17
- * The platform component type, used to run the periodic cleanup per tenant.
18
- * @default platform
19
- */
20
- platformComponentType?: string;
21
- /**
22
- * The configuration for the authentication rate service.
23
- */
24
- config?: IEntityStorageAuthenticationRateServiceConfig;
25
- }
@@ -1,54 +0,0 @@
1
- import type { IAuditCreateRequest, IAuditGetRequest, IAuditGetResponse, IAuditQueryRequest, IAuditQueryResponse, IAuditRemoveRequest, IAuditUpdateRequest } from "@3sixty/api-auth-entity-storage-models";
2
- import { type ICreatedResponse, type IHttpRequestContext, type INoContentResponse, type IRestRoute, type ITag } from "@3sixty/api-models";
3
- /**
4
- * The tag to associate with the routes.
5
- */
6
- export declare const tagsAuthenticationAudit: ITag[];
7
- /**
8
- * The REST routes for authentication audit.
9
- * @param baseRouteName Prefix to prepend to the paths.
10
- * @param componentName The name of the component to use in the routes stored in the ComponentFactory.
11
- * @returns The generated routes.
12
- */
13
- export declare function generateRestRoutesAuthenticationAudit(baseRouteName: string, componentName: string): IRestRoute[];
14
- /**
15
- * Create an authentication audit entry.
16
- * @param httpRequestContext The request context for the API.
17
- * @param componentName The name of the component to use in the routes.
18
- * @param request The request.
19
- * @param baseRouteName The base route name to use for the location header.
20
- * @returns The response object with additional http response properties.
21
- */
22
- export declare function authenticationAuditCreate(httpRequestContext: IHttpRequestContext, componentName: string, request: IAuditCreateRequest, baseRouteName: string): Promise<ICreatedResponse>;
23
- /**
24
- * Get an authentication audit entry.
25
- * @param httpRequestContext The request context for the API.
26
- * @param componentName The name of the component to use in the routes.
27
- * @param request The request.
28
- * @returns The response object with additional http response properties.
29
- */
30
- export declare function authenticationAuditGet(httpRequestContext: IHttpRequestContext, componentName: string, request: IAuditGetRequest): Promise<IAuditGetResponse>;
31
- /**
32
- * Update an authentication audit entry.
33
- * @param httpRequestContext The request context for the API.
34
- * @param componentName The name of the component to use in the routes.
35
- * @param request The request.
36
- * @returns The response object with additional http response properties.
37
- */
38
- export declare function authenticationAuditUpdate(httpRequestContext: IHttpRequestContext, componentName: string, request: IAuditUpdateRequest): Promise<INoContentResponse>;
39
- /**
40
- * Remove an authentication audit entry.
41
- * @param httpRequestContext The request context for the API.
42
- * @param componentName The name of the component to use in the routes.
43
- * @param request The request.
44
- * @returns The response object with additional http response properties.
45
- */
46
- export declare function authenticationAuditRemove(httpRequestContext: IHttpRequestContext, componentName: string, request: IAuditRemoveRequest): Promise<INoContentResponse>;
47
- /**
48
- * Query authentication audit entries.
49
- * @param httpRequestContext The request context for the API.
50
- * @param componentName The name of the component to use in the routes.
51
- * @param request The request.
52
- * @returns The response object with additional http response properties.
53
- */
54
- export declare function authenticationAuditQuery(httpRequestContext: IHttpRequestContext, componentName: string, request: IAuditQueryRequest): Promise<IAuditQueryResponse>;
@@ -1,72 +0,0 @@
1
- import type { AuthAuditEvent, IAuthenticationAuditComponent, IAuthenticationAuditEntry } from "@3sixty/api-auth-entity-storage-models";
2
- import type { IEntityStorageAuthenticationAuditServiceConstructorOptions } from "../models/IEntityStorageAuthenticationAuditServiceConstructorOptions.js";
3
- /**
4
- * Implementation of the authentication audit component using entity storage.
5
- */
6
- export declare class EntityStorageAuthenticationAuditService implements IAuthenticationAuditComponent {
7
- /**
8
- * Runtime name for the class.
9
- */
10
- static readonly CLASS_NAME: string;
11
- /**
12
- * Create a new instance of EntityStorageAuthenticationAuditService.
13
- * @param options The dependencies for the identity connector.
14
- */
15
- constructor(options?: IEntityStorageAuthenticationAuditServiceConstructorOptions);
16
- /**
17
- * Returns the class name of the component.
18
- * @returns The class name of the component.
19
- */
20
- className(): string;
21
- /**
22
- * Create a new audit entry.
23
- * @param entry The audit entry to be logged.
24
- * @returns The unique identifier of the created audit entry.
25
- */
26
- create(entry: Omit<IAuthenticationAuditEntry, "id" | "dateCreated">): Promise<string>;
27
- /**
28
- * Get an audit entry by id.
29
- * @param id The unique identifier of the audit entry.
30
- * @returns The audit entry.
31
- */
32
- get(id: string): Promise<IAuthenticationAuditEntry>;
33
- /**
34
- * Update an audit entry.
35
- * @param id The unique identifier of the audit entry to update.
36
- * @param entry The fields to update on the audit entry.
37
- * @returns A promise that resolves when the audit entry has been updated.
38
- */
39
- update(id: string, entry: Partial<Omit<IAuthenticationAuditEntry, "id" | "dateCreated">>): Promise<void>;
40
- /**
41
- * Remove an audit entry.
42
- * @param id The unique identifier of the audit entry to remove.
43
- * @returns A promise that resolves when the audit entry has been removed.
44
- */
45
- remove(id: string): Promise<void>;
46
- /**
47
- * Query the audit entries.
48
- * @param options The query options.
49
- * @param options.actorId The actor identifier to filter the audit entries, optional.
50
- * @param options.organizationId The organization identifier to filter the audit entries, optional.
51
- * @param options.tenantId The tenant identifier to filter the audit entries, optional.
52
- * @param options.nodeId The node identifier to filter the audit entries, optional.
53
- * @param options.event The audit event to filter the audit entries, optional.
54
- * @param options.startDate The start date to filter the audit entries, optional.
55
- * @param options.endDate The end date to filter the audit entries, optional.
56
- * @param cursor The cursor for pagination.
57
- * @param limit The maximum number of entries to return.
58
- * @returns The audit entries.
59
- */
60
- query(options?: {
61
- actorId?: string;
62
- organizationId?: string;
63
- tenantId?: string;
64
- nodeId?: string;
65
- event?: AuthAuditEvent | string;
66
- startDate?: string;
67
- endDate?: string;
68
- }, cursor?: string, limit?: number): Promise<{
69
- entries: IAuthenticationAuditEntry[];
70
- cursor?: string;
71
- }>;
72
- }
@@ -1,60 +0,0 @@
1
- import type { IAuthenticationRateActionConfig, IAuthenticationRateComponent } from "@3sixty/api-auth-entity-storage-models";
2
- import type { IEntityStorageAuthenticationRateServiceConstructorOptions } from "../models/IEntityStorageAuthenticationRateServiceConstructorOptions.js";
3
- /**
4
- * Implementation of the authentication rate component using entity storage.
5
- */
6
- export declare class EntityStorageAuthenticationRateService implements IAuthenticationRateComponent {
7
- /**
8
- * Runtime name for the class.
9
- */
10
- static readonly CLASS_NAME: string;
11
- /**
12
- * Create a new instance of EntityStorageAuthenticationRateService.
13
- * @param options The constructor options.
14
- */
15
- constructor(options?: IEntityStorageAuthenticationRateServiceConstructorOptions);
16
- /**
17
- * Register or update rate-limit configuration for an action.
18
- * @param action The action name.
19
- * @param config The action configuration.
20
- * @returns A promise that resolves when the action configuration has been stored.
21
- */
22
- registerAction(action: string, config: IAuthenticationRateActionConfig): Promise<void>;
23
- /**
24
- * Unregister rate-limit configuration for an action.
25
- * @param action The action name.
26
- * @returns A promise that resolves when the action configuration has been removed.
27
- */
28
- unregisterAction(action: string): Promise<void>;
29
- /**
30
- * Returns the class name of the component.
31
- * @returns The class name of the component.
32
- */
33
- className(): string;
34
- /**
35
- * The service needs to be started when the application is initialized.
36
- * @param nodeLoggingComponentType The node logging component type.
37
- * @returns A promise that resolves when the periodic cleanup task has been registered.
38
- */
39
- start(nodeLoggingComponentType?: string): Promise<void>;
40
- /**
41
- * The component needs to be stopped when the node is closed.
42
- * @param nodeLoggingComponentType The node logging component type.
43
- * @returns A promise that resolves when the periodic cleanup task has been removed.
44
- */
45
- stop(nodeLoggingComponentType?: string): Promise<void>;
46
- /**
47
- * Check the authentication rate for a given action and identifier.
48
- * @param action The action to be checked.
49
- * @param identifier The identifier to be checked.
50
- * @returns The rate entry id.
51
- */
52
- check(action: string, identifier: string): Promise<string>;
53
- /**
54
- * Clear the authentication rate entry for the given action and identifier.
55
- * @param action The action to clear.
56
- * @param identifier The identifier to clear.
57
- * @returns A promise that resolves when the rate entry has been removed.
58
- */
59
- clear(action: string, identifier: string): Promise<void>;
60
- }
@@ -1,101 +0,0 @@
1
- # Class: AuthenticationAuditEntry
2
-
3
- Class defining the storage for authentication audit entries.
4
-
5
- ## Constructors
6
-
7
- ### Constructor
8
-
9
- > **new AuthenticationAuditEntry**(): `AuthenticationAuditEntry`
10
-
11
- #### Returns
12
-
13
- `AuthenticationAuditEntry`
14
-
15
- ## Properties
16
-
17
- ### id {#id}
18
-
19
- > **id**: `string`
20
-
21
- The unique identifier for the audit entry.
22
-
23
- ***
24
-
25
- ### dateCreated {#datecreated}
26
-
27
- > **dateCreated**: `string`
28
-
29
- The timestamp of the audit entry in ISO 8601 format.
30
-
31
- ***
32
-
33
- ### event {#event}
34
-
35
- > **event**: `string`
36
-
37
- The audit event that occurred.
38
-
39
- ***
40
-
41
- ### actorId? {#actorid}
42
-
43
- > `optional` **actorId?**: `string`
44
-
45
- The actor identifier, could be e-mail, username, or other unique identifier.
46
-
47
- ***
48
-
49
- ### nodeId? {#nodeid}
50
-
51
- > `optional` **nodeId?**: `string`
52
-
53
- The node identifier associated with the audit entry, if applicable.
54
-
55
- ***
56
-
57
- ### organizationId? {#organizationid}
58
-
59
- > `optional` **organizationId?**: `string`
60
-
61
- The organization identifier associated with the audit entry, if applicable.
62
-
63
- ***
64
-
65
- ### tenantId? {#tenantid}
66
-
67
- > `optional` **tenantId?**: `string`
68
-
69
- The tenant identifier associated with the audit entry, if applicable.
70
-
71
- ***
72
-
73
- ### ipAddressHashes? {#ipaddresshashes}
74
-
75
- > `optional` **ipAddressHashes?**: `string`[]
76
-
77
- The hashed IP addresses of the client.
78
-
79
- ***
80
-
81
- ### userAgent? {#useragent}
82
-
83
- > `optional` **userAgent?**: `string`
84
-
85
- The user agent string of the client.
86
-
87
- ***
88
-
89
- ### correlationId? {#correlationid}
90
-
91
- > `optional` **correlationId?**: `string`
92
-
93
- The correlation ID for request tracing.
94
-
95
- ***
96
-
97
- ### data? {#data}
98
-
99
- > `optional` **data?**: `unknown`
100
-
101
- Additional data related to the audit entry, such as IP address, user agent, etc.
@@ -1,37 +0,0 @@
1
- # Class: AuthenticationRateEntry
2
-
3
- Class defining the storage for authentication rate entries.
4
-
5
- ## Constructors
6
-
7
- ### Constructor
8
-
9
- > **new AuthenticationRateEntry**(): `AuthenticationRateEntry`
10
-
11
- #### Returns
12
-
13
- `AuthenticationRateEntry`
14
-
15
- ## Properties
16
-
17
- ### id {#id}
18
-
19
- > **id**: `string`
20
-
21
- The id for the rate entry.
22
-
23
- ***
24
-
25
- ### timestamps {#timestamps}
26
-
27
- > **timestamps**: `string`[]
28
-
29
- Array of ISO date strings representing timestamps of failed attempts.
30
-
31
- ***
32
-
33
- ### dateModified {#datemodified}
34
-
35
- > **dateModified**: `string`
36
-
37
- Last modification time in ISO date format.
@@ -1,241 +0,0 @@
1
- # Class: EntityStorageAuthenticationAuditService
2
-
3
- Implementation of the authentication audit component using entity storage.
4
-
5
- ## Implements
6
-
7
- - `IAuthenticationAuditComponent`
8
-
9
- ## Constructors
10
-
11
- ### Constructor
12
-
13
- > **new EntityStorageAuthenticationAuditService**(`options?`): `EntityStorageAuthenticationAuditService`
14
-
15
- Create a new instance of EntityStorageAuthenticationAuditService.
16
-
17
- #### Parameters
18
-
19
- ##### options?
20
-
21
- [`IEntityStorageAuthenticationAuditServiceConstructorOptions`](../interfaces/IEntityStorageAuthenticationAuditServiceConstructorOptions.md)
22
-
23
- The dependencies for the identity connector.
24
-
25
- #### Returns
26
-
27
- `EntityStorageAuthenticationAuditService`
28
-
29
- ## Properties
30
-
31
- ### CLASS\_NAME {#class_name}
32
-
33
- > `readonly` `static` **CLASS\_NAME**: `string`
34
-
35
- Runtime name for the class.
36
-
37
- ## Methods
38
-
39
- ### className() {#classname}
40
-
41
- > **className**(): `string`
42
-
43
- Returns the class name of the component.
44
-
45
- #### Returns
46
-
47
- `string`
48
-
49
- The class name of the component.
50
-
51
- #### Implementation of
52
-
53
- `IAuthenticationAuditComponent.className`
54
-
55
- ***
56
-
57
- ### create() {#create}
58
-
59
- > **create**(`entry`): `Promise`\<`string`\>
60
-
61
- Create a new audit entry.
62
-
63
- #### Parameters
64
-
65
- ##### entry
66
-
67
- `Omit`\<`IAuthenticationAuditEntry`, `"id"` \| `"dateCreated"`\>
68
-
69
- The audit entry to be logged.
70
-
71
- #### Returns
72
-
73
- `Promise`\<`string`\>
74
-
75
- The unique identifier of the created audit entry.
76
-
77
- #### Implementation of
78
-
79
- `IAuthenticationAuditComponent.create`
80
-
81
- ***
82
-
83
- ### get() {#get}
84
-
85
- > **get**(`id`): `Promise`\<`IAuthenticationAuditEntry`\>
86
-
87
- Get an audit entry by id.
88
-
89
- #### Parameters
90
-
91
- ##### id
92
-
93
- `string`
94
-
95
- The unique identifier of the audit entry.
96
-
97
- #### Returns
98
-
99
- `Promise`\<`IAuthenticationAuditEntry`\>
100
-
101
- The audit entry.
102
-
103
- #### Implementation of
104
-
105
- `IAuthenticationAuditComponent.get`
106
-
107
- ***
108
-
109
- ### update() {#update}
110
-
111
- > **update**(`id`, `entry`): `Promise`\<`void`\>
112
-
113
- Update an audit entry.
114
-
115
- #### Parameters
116
-
117
- ##### id
118
-
119
- `string`
120
-
121
- The unique identifier of the audit entry to update.
122
-
123
- ##### entry
124
-
125
- `Partial`\<`Omit`\<`IAuthenticationAuditEntry`, `"id"` \| `"dateCreated"`\>\>
126
-
127
- The fields to update on the audit entry.
128
-
129
- #### Returns
130
-
131
- `Promise`\<`void`\>
132
-
133
- A promise that resolves when the audit entry has been updated.
134
-
135
- #### Implementation of
136
-
137
- `IAuthenticationAuditComponent.update`
138
-
139
- ***
140
-
141
- ### remove() {#remove}
142
-
143
- > **remove**(`id`): `Promise`\<`void`\>
144
-
145
- Remove an audit entry.
146
-
147
- #### Parameters
148
-
149
- ##### id
150
-
151
- `string`
152
-
153
- The unique identifier of the audit entry to remove.
154
-
155
- #### Returns
156
-
157
- `Promise`\<`void`\>
158
-
159
- A promise that resolves when the audit entry has been removed.
160
-
161
- #### Implementation of
162
-
163
- `IAuthenticationAuditComponent.remove`
164
-
165
- ***
166
-
167
- ### query() {#query}
168
-
169
- > **query**(`options?`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: `IAuthenticationAuditEntry`[]; `cursor?`: `string`; \}\>
170
-
171
- Query the audit entries.
172
-
173
- #### Parameters
174
-
175
- ##### options?
176
-
177
- The query options.
178
-
179
- ###### actorId?
180
-
181
- `string`
182
-
183
- The actor identifier to filter the audit entries, optional.
184
-
185
- ###### organizationId?
186
-
187
- `string`
188
-
189
- The organization identifier to filter the audit entries, optional.
190
-
191
- ###### tenantId?
192
-
193
- `string`
194
-
195
- The tenant identifier to filter the audit entries, optional.
196
-
197
- ###### nodeId?
198
-
199
- `string`
200
-
201
- The node identifier to filter the audit entries, optional.
202
-
203
- ###### event?
204
-
205
- `string`
206
-
207
- The audit event to filter the audit entries, optional.
208
-
209
- ###### startDate?
210
-
211
- `string`
212
-
213
- The start date to filter the audit entries, optional.
214
-
215
- ###### endDate?
216
-
217
- `string`
218
-
219
- The end date to filter the audit entries, optional.
220
-
221
- ##### cursor?
222
-
223
- `string`
224
-
225
- The cursor for pagination.
226
-
227
- ##### limit?
228
-
229
- `number`
230
-
231
- The maximum number of entries to return.
232
-
233
- #### Returns
234
-
235
- `Promise`\<\{ `entries`: `IAuthenticationAuditEntry`[]; `cursor?`: `string`; \}\>
236
-
237
- The audit entries.
238
-
239
- #### Implementation of
240
-
241
- `IAuthenticationAuditComponent.query`