@3sixty/api-auth-entity-storage-models 0.0.0-stage → 0.20.0-next.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 (127) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +24 -2
  3. package/dist/es/index.js +32 -0
  4. package/dist/es/index.js.map +1 -0
  5. package/dist/es/models/IAuthenticationAdminComponent.js +2 -0
  6. package/dist/es/models/IAuthenticationAdminComponent.js.map +1 -0
  7. package/dist/es/models/IAuthenticationAuditComponent.js +2 -0
  8. package/dist/es/models/IAuthenticationAuditComponent.js.map +1 -0
  9. package/dist/es/models/IAuthenticationAuditEntry.js +2 -0
  10. package/dist/es/models/IAuthenticationAuditEntry.js.map +1 -0
  11. package/dist/es/models/IAuthenticationComponent.js +2 -0
  12. package/dist/es/models/IAuthenticationComponent.js.map +1 -0
  13. package/dist/es/models/IAuthenticationRateActionConfig.js +4 -0
  14. package/dist/es/models/IAuthenticationRateActionConfig.js.map +1 -0
  15. package/dist/es/models/IAuthenticationRateComponent.js +2 -0
  16. package/dist/es/models/IAuthenticationRateComponent.js.map +1 -0
  17. package/dist/es/models/IAuthenticationUser.js +4 -0
  18. package/dist/es/models/IAuthenticationUser.js.map +1 -0
  19. package/dist/es/models/IAuthenticationUserSecure.js +2 -0
  20. package/dist/es/models/IAuthenticationUserSecure.js.map +1 -0
  21. package/dist/es/models/api/IAdminUserCreateRequest.js +2 -0
  22. package/dist/es/models/api/IAdminUserCreateRequest.js.map +1 -0
  23. package/dist/es/models/api/IAdminUserGetByIdentityRequest.js +4 -0
  24. package/dist/es/models/api/IAdminUserGetByIdentityRequest.js.map +1 -0
  25. package/dist/es/models/api/IAdminUserGetRequest.js +4 -0
  26. package/dist/es/models/api/IAdminUserGetRequest.js.map +1 -0
  27. package/dist/es/models/api/IAdminUserGetResponse.js +2 -0
  28. package/dist/es/models/api/IAdminUserGetResponse.js.map +1 -0
  29. package/dist/es/models/api/IAdminUserRemoveRequest.js +4 -0
  30. package/dist/es/models/api/IAdminUserRemoveRequest.js.map +1 -0
  31. package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js +4 -0
  32. package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js.map +1 -0
  33. package/dist/es/models/api/IAdminUserUpdateRequest.js +2 -0
  34. package/dist/es/models/api/IAdminUserUpdateRequest.js.map +1 -0
  35. package/dist/es/models/api/IAuditCreateRequest.js +2 -0
  36. package/dist/es/models/api/IAuditCreateRequest.js.map +1 -0
  37. package/dist/es/models/api/IAuditGetRequest.js +4 -0
  38. package/dist/es/models/api/IAuditGetRequest.js.map +1 -0
  39. package/dist/es/models/api/IAuditGetResponse.js +2 -0
  40. package/dist/es/models/api/IAuditGetResponse.js.map +1 -0
  41. package/dist/es/models/api/IAuditQueryRequest.js +2 -0
  42. package/dist/es/models/api/IAuditQueryRequest.js.map +1 -0
  43. package/dist/es/models/api/IAuditQueryResponse.js +2 -0
  44. package/dist/es/models/api/IAuditQueryResponse.js.map +1 -0
  45. package/dist/es/models/api/IAuditRemoveRequest.js +4 -0
  46. package/dist/es/models/api/IAuditRemoveRequest.js.map +1 -0
  47. package/dist/es/models/api/IAuditUpdateRequest.js +2 -0
  48. package/dist/es/models/api/IAuditUpdateRequest.js.map +1 -0
  49. package/dist/es/models/api/ILoginRequest.js +4 -0
  50. package/dist/es/models/api/ILoginRequest.js.map +1 -0
  51. package/dist/es/models/api/ILoginResponse.js +2 -0
  52. package/dist/es/models/api/ILoginResponse.js.map +1 -0
  53. package/dist/es/models/api/ILogoutRequest.js +4 -0
  54. package/dist/es/models/api/ILogoutRequest.js.map +1 -0
  55. package/dist/es/models/api/IRefreshTokenRequest.js +4 -0
  56. package/dist/es/models/api/IRefreshTokenRequest.js.map +1 -0
  57. package/dist/es/models/api/IRefreshTokenResponse.js +2 -0
  58. package/dist/es/models/api/IRefreshTokenResponse.js.map +1 -0
  59. package/dist/es/models/api/IUpdatePasswordRequest.js +4 -0
  60. package/dist/es/models/api/IUpdatePasswordRequest.js.map +1 -0
  61. package/dist/es/models/authAuditEvent.js +49 -0
  62. package/dist/es/models/authAuditEvent.js.map +1 -0
  63. package/dist/types/index.d.ts +29 -0
  64. package/dist/types/models/IAuthenticationAdminComponent.d.ts +47 -0
  65. package/dist/types/models/IAuthenticationAuditComponent.d.ts +59 -0
  66. package/dist/types/models/IAuthenticationAuditEntry.d.ts +50 -0
  67. package/dist/types/models/IAuthenticationComponent.d.ts +38 -0
  68. package/dist/types/models/IAuthenticationRateActionConfig.d.ts +13 -0
  69. package/dist/types/models/IAuthenticationRateComponent.d.ts +46 -0
  70. package/dist/types/models/IAuthenticationUser.d.ts +21 -0
  71. package/dist/types/models/IAuthenticationUserSecure.d.ts +18 -0
  72. package/dist/types/models/api/IAdminUserCreateRequest.d.ts +12 -0
  73. package/dist/types/models/api/IAdminUserGetByIdentityRequest.d.ts +14 -0
  74. package/dist/types/models/api/IAdminUserGetRequest.d.ts +14 -0
  75. package/dist/types/models/api/IAdminUserGetResponse.d.ts +10 -0
  76. package/dist/types/models/api/IAdminUserRemoveRequest.d.ts +14 -0
  77. package/dist/types/models/api/IAdminUserUpdatePasswordRequest.d.ts +27 -0
  78. package/dist/types/models/api/IAdminUserUpdateRequest.d.ts +19 -0
  79. package/dist/types/models/api/IAuditCreateRequest.d.ts +10 -0
  80. package/dist/types/models/api/IAuditGetRequest.d.ts +14 -0
  81. package/dist/types/models/api/IAuditGetResponse.d.ts +10 -0
  82. package/dist/types/models/api/IAuditQueryRequest.d.ts +47 -0
  83. package/dist/types/models/api/IAuditQueryResponse.d.ts +19 -0
  84. package/dist/types/models/api/IAuditRemoveRequest.d.ts +14 -0
  85. package/dist/types/models/api/IAuditUpdateRequest.d.ts +19 -0
  86. package/dist/types/models/api/ILoginRequest.d.ts +18 -0
  87. package/dist/types/models/api/ILoginResponse.d.ts +24 -0
  88. package/dist/types/models/api/ILogoutRequest.d.ts +14 -0
  89. package/dist/types/models/api/IRefreshTokenRequest.d.ts +14 -0
  90. package/dist/types/models/api/IRefreshTokenResponse.d.ts +24 -0
  91. package/dist/types/models/api/IUpdatePasswordRequest.d.ts +18 -0
  92. package/dist/types/models/authAuditEvent.d.ts +49 -0
  93. package/docs/changelog.md +0 -0
  94. package/docs/examples.md +80 -0
  95. package/docs/reference/index.md +40 -0
  96. package/docs/reference/interfaces/IAdminUserCreateRequest.md +17 -0
  97. package/docs/reference/interfaces/IAdminUserGetByIdentityRequest.md +17 -0
  98. package/docs/reference/interfaces/IAdminUserGetRequest.md +17 -0
  99. package/docs/reference/interfaces/IAdminUserGetResponse.md +11 -0
  100. package/docs/reference/interfaces/IAdminUserRemoveRequest.md +17 -0
  101. package/docs/reference/interfaces/IAdminUserUpdatePasswordRequest.md +37 -0
  102. package/docs/reference/interfaces/IAdminUserUpdateRequest.md +25 -0
  103. package/docs/reference/interfaces/IAuditCreateRequest.md +11 -0
  104. package/docs/reference/interfaces/IAuditGetRequest.md +17 -0
  105. package/docs/reference/interfaces/IAuditGetResponse.md +11 -0
  106. package/docs/reference/interfaces/IAuditQueryRequest.md +65 -0
  107. package/docs/reference/interfaces/IAuditQueryResponse.md +23 -0
  108. package/docs/reference/interfaces/IAuditRemoveRequest.md +17 -0
  109. package/docs/reference/interfaces/IAuditUpdateRequest.md +25 -0
  110. package/docs/reference/interfaces/IAuthenticationAdminComponent.md +151 -0
  111. package/docs/reference/interfaces/IAuthenticationAuditComponent.md +175 -0
  112. package/docs/reference/interfaces/IAuthenticationAuditEntry.md +91 -0
  113. package/docs/reference/interfaces/IAuthenticationComponent.md +107 -0
  114. package/docs/reference/interfaces/IAuthenticationRateActionConfig.md +19 -0
  115. package/docs/reference/interfaces/IAuthenticationRateComponent.md +165 -0
  116. package/docs/reference/interfaces/IAuthenticationUser.md +39 -0
  117. package/docs/reference/interfaces/IAuthenticationUserSecure.md +79 -0
  118. package/docs/reference/interfaces/ILoginRequest.md +23 -0
  119. package/docs/reference/interfaces/ILoginResponse.md +31 -0
  120. package/docs/reference/interfaces/ILogoutRequest.md +17 -0
  121. package/docs/reference/interfaces/IRefreshTokenRequest.md +17 -0
  122. package/docs/reference/interfaces/IRefreshTokenResponse.md +31 -0
  123. package/docs/reference/interfaces/IUpdatePasswordRequest.md +23 -0
  124. package/docs/reference/type-aliases/AuthAuditEvent.md +5 -0
  125. package/docs/reference/variables/AuthAuditEvent.md +67 -0
  126. package/locales/en.json +1 -0
  127. package/package.json +54 -5
@@ -0,0 +1,24 @@
1
+ import type { HeaderTypes } from "@3sixty/web";
2
+ /**
3
+ * Response from a login on the server.
4
+ */
5
+ export interface ILoginResponse {
6
+ /**
7
+ * Response headers.
8
+ */
9
+ headers?: {
10
+ /**
11
+ * The cookie containing the auth token.
12
+ */
13
+ [HeaderTypes.SetCookie]?: string;
14
+ };
15
+ /**
16
+ * The login response details.
17
+ */
18
+ body: {
19
+ /**
20
+ * The expiry time of the token.
21
+ */
22
+ expiry: number;
23
+ };
24
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Perform a logout on the auth token.
3
+ */
4
+ export interface ILogoutRequest {
5
+ /**
6
+ * The logout token details.
7
+ */
8
+ body?: {
9
+ /**
10
+ * The token to logout, if it uses a mechanism with public access.
11
+ */
12
+ token?: string;
13
+ };
14
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Perform a refresh of the auth token.
3
+ */
4
+ export interface IRefreshTokenRequest {
5
+ /**
6
+ * The refresh token details.
7
+ */
8
+ body?: {
9
+ /**
10
+ * The token to refresh, if it uses a mechanism with public access.
11
+ */
12
+ token?: string;
13
+ };
14
+ }
@@ -0,0 +1,24 @@
1
+ import type { HeaderTypes } from "@3sixty/web";
2
+ /**
3
+ * Response from a refresh on the auth token.
4
+ */
5
+ export interface IRefreshTokenResponse {
6
+ /**
7
+ * Response headers.
8
+ */
9
+ headers?: {
10
+ /**
11
+ * The cookie containing the auth token.
12
+ */
13
+ [HeaderTypes.SetCookie]?: string;
14
+ };
15
+ /**
16
+ * The refresh token details.
17
+ */
18
+ body: {
19
+ /**
20
+ * The expiry time of the token.
21
+ */
22
+ expiry: number;
23
+ };
24
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Update the current user's password.
3
+ */
4
+ export interface IUpdatePasswordRequest {
5
+ /**
6
+ * The body of the request.
7
+ */
8
+ body: {
9
+ /**
10
+ * The current password for the user.
11
+ */
12
+ currentPassword: string;
13
+ /**
14
+ * The new password for the user.
15
+ */
16
+ newPassword: string;
17
+ };
18
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Supported authentication audit events.
3
+ */
4
+ export declare const AuthAuditEvent: {
5
+ /**
6
+ * Login success.
7
+ */
8
+ readonly LoginSuccess: "login-success";
9
+ /**
10
+ * Login failure.
11
+ */
12
+ readonly LoginFailure: "login-failure";
13
+ /**
14
+ * Logout.
15
+ */
16
+ readonly Logout: "logout";
17
+ /**
18
+ * Token refreshed.
19
+ */
20
+ readonly TokenRefreshed: "token-refreshed";
21
+ /**
22
+ * Account created.
23
+ */
24
+ readonly AccountCreated: "account-created";
25
+ /**
26
+ * Account deleted.
27
+ */
28
+ readonly AccountDeleted: "account-deleted";
29
+ /**
30
+ * Account updated.
31
+ */
32
+ readonly AccountUpdated: "account-updated";
33
+ /**
34
+ * Account locked.
35
+ */
36
+ readonly AccountLocked: "account-locked";
37
+ /**
38
+ * Account unlocked.
39
+ */
40
+ readonly AccountUnlocked: "account-unlocked";
41
+ /**
42
+ * Password changed.
43
+ */
44
+ readonly PasswordChanged: "password-changed";
45
+ };
46
+ /**
47
+ * Supported authentication audit event values.
48
+ */
49
+ export type AuthAuditEvent = (typeof AuthAuditEvent)[keyof typeof AuthAuditEvent];
File without changes
@@ -0,0 +1,80 @@
1
+ # Auth Entity Storage Models Examples
2
+
3
+ Use these snippets to shape request and response data consistently across sign-in flows, admin operations, and token refresh handling.
4
+
5
+ ## Authentication Requests
6
+
7
+ ```typescript
8
+ import type {
9
+ ILoginRequest,
10
+ IRefreshTokenRequest,
11
+ IUpdatePasswordRequest
12
+ } from '@3sixty/api-auth-entity-storage-models';
13
+
14
+ const loginRequest: ILoginRequest = {
15
+ body: {
16
+ email: 'alice@example.org',
17
+ password: 'correct-horse-battery-staple'
18
+ }
19
+ };
20
+
21
+ const refreshRequest: IRefreshTokenRequest = {
22
+ body: {
23
+ token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.refresh'
24
+ }
25
+ };
26
+
27
+ const updatePasswordRequest: IUpdatePasswordRequest = {
28
+ body: {
29
+ currentPassword: 'old-password',
30
+ newPassword: 'new-password-2026'
31
+ }
32
+ };
33
+
34
+ console.log(loginRequest.body.email); // alice@example.org
35
+ ```
36
+
37
+ ## Admin User Models
38
+
39
+ ```typescript
40
+ import type {
41
+ IAdminUserCreateRequest,
42
+ IAdminUserUpdateRequest
43
+ } from '@3sixty/api-auth-entity-storage-models';
44
+
45
+ const createRequest: IAdminUserCreateRequest = {
46
+ body: {
47
+ email: 'bob@example.org',
48
+ password: 'initial-password',
49
+ userIdentity: 'did:example:bob',
50
+ organizationIdentity: 'did:example:org',
51
+ scope: ['admin', 'auditor']
52
+ }
53
+ };
54
+
55
+ const updateRequest: IAdminUserUpdateRequest = {
56
+ pathParams: {
57
+ email: 'bob@example.org'
58
+ },
59
+ body: {
60
+ userIdentity: 'did:example:bob:ops',
61
+ scope: ['admin']
62
+ }
63
+ };
64
+
65
+ console.log(createRequest.body.scope.length); // 2
66
+ ```
67
+
68
+ ## Authentication Responses
69
+
70
+ ```typescript
71
+ import type { ILoginResponse } from '@3sixty/api-auth-entity-storage-models';
72
+
73
+ const loginResponse: ILoginResponse = {
74
+ body: {
75
+ expiry: 3600
76
+ }
77
+ };
78
+
79
+ console.log(loginResponse.body.expiry); // 3600
80
+ ```
@@ -0,0 +1,40 @@
1
+ # @3sixty/api-auth-entity-storage-models
2
+
3
+ ## Interfaces
4
+
5
+ - [IAuthenticationAdminComponent](interfaces/IAuthenticationAdminComponent.md)
6
+ - [IAuthenticationAuditComponent](interfaces/IAuthenticationAuditComponent.md)
7
+ - [IAuthenticationAuditEntry](interfaces/IAuthenticationAuditEntry.md)
8
+ - [IAuthenticationComponent](interfaces/IAuthenticationComponent.md)
9
+ - [IAuthenticationRateActionConfig](interfaces/IAuthenticationRateActionConfig.md)
10
+ - [IAuthenticationRateComponent](interfaces/IAuthenticationRateComponent.md)
11
+ - [IAuthenticationUser](interfaces/IAuthenticationUser.md)
12
+ - [IAuthenticationUserSecure](interfaces/IAuthenticationUserSecure.md)
13
+ - [IAdminUserCreateRequest](interfaces/IAdminUserCreateRequest.md)
14
+ - [IAdminUserGetByIdentityRequest](interfaces/IAdminUserGetByIdentityRequest.md)
15
+ - [IAdminUserGetRequest](interfaces/IAdminUserGetRequest.md)
16
+ - [IAdminUserGetResponse](interfaces/IAdminUserGetResponse.md)
17
+ - [IAdminUserRemoveRequest](interfaces/IAdminUserRemoveRequest.md)
18
+ - [IAdminUserUpdatePasswordRequest](interfaces/IAdminUserUpdatePasswordRequest.md)
19
+ - [IAdminUserUpdateRequest](interfaces/IAdminUserUpdateRequest.md)
20
+ - [IAuditCreateRequest](interfaces/IAuditCreateRequest.md)
21
+ - [IAuditGetRequest](interfaces/IAuditGetRequest.md)
22
+ - [IAuditGetResponse](interfaces/IAuditGetResponse.md)
23
+ - [IAuditQueryRequest](interfaces/IAuditQueryRequest.md)
24
+ - [IAuditQueryResponse](interfaces/IAuditQueryResponse.md)
25
+ - [IAuditRemoveRequest](interfaces/IAuditRemoveRequest.md)
26
+ - [IAuditUpdateRequest](interfaces/IAuditUpdateRequest.md)
27
+ - [ILoginRequest](interfaces/ILoginRequest.md)
28
+ - [ILoginResponse](interfaces/ILoginResponse.md)
29
+ - [ILogoutRequest](interfaces/ILogoutRequest.md)
30
+ - [IRefreshTokenRequest](interfaces/IRefreshTokenRequest.md)
31
+ - [IRefreshTokenResponse](interfaces/IRefreshTokenResponse.md)
32
+ - [IUpdatePasswordRequest](interfaces/IUpdatePasswordRequest.md)
33
+
34
+ ## Type Aliases
35
+
36
+ - [AuthAuditEvent](type-aliases/AuthAuditEvent.md)
37
+
38
+ ## Variables
39
+
40
+ - [AuthAuditEvent](variables/AuthAuditEvent.md)
@@ -0,0 +1,17 @@
1
+ # Interface: IAdminUserCreateRequest
2
+
3
+ Create a new user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IAuthenticationUser`](IAuthenticationUser.md) & `object`
10
+
11
+ The body of the request.
12
+
13
+ #### Type Declaration
14
+
15
+ ##### password
16
+
17
+ > **password**: `string`
@@ -0,0 +1,17 @@
1
+ # Interface: IAdminUserGetByIdentityRequest
2
+
3
+ Get a user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### identity
14
+
15
+ > **identity**: `string`
16
+
17
+ The user identity.
@@ -0,0 +1,17 @@
1
+ # Interface: IAdminUserGetRequest
2
+
3
+ Get a user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### email
14
+
15
+ > **email**: `string`
16
+
17
+ The user email.
@@ -0,0 +1,11 @@
1
+ # Interface: IAdminUserGetResponse
2
+
3
+ Get a user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IAuthenticationUser`](IAuthenticationUser.md)
10
+
11
+ The body of the request.
@@ -0,0 +1,17 @@
1
+ # Interface: IAdminUserRemoveRequest
2
+
3
+ Remove a user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### email
14
+
15
+ > **email**: `string`
16
+
17
+ The user email.
@@ -0,0 +1,37 @@
1
+ # Interface: IAdminUserUpdatePasswordRequest
2
+
3
+ Update a users password as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### email
14
+
15
+ > **email**: `string`
16
+
17
+ The user email.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: `object`
24
+
25
+ The body of the request.
26
+
27
+ #### newPassword
28
+
29
+ > **newPassword**: `string`
30
+
31
+ The new password for the user.
32
+
33
+ #### currentPassword?
34
+
35
+ > `optional` **currentPassword?**: `string`
36
+
37
+ The current password for the user.
@@ -0,0 +1,25 @@
1
+ # Interface: IAdminUserUpdateRequest
2
+
3
+ Update a user as an admin.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### email
14
+
15
+ > **email**: `string`
16
+
17
+ The user email.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: `Partial`\<`Omit`\<[`IAuthenticationUser`](IAuthenticationUser.md), `"email"`\>\>
24
+
25
+ The body of the request.
@@ -0,0 +1,11 @@
1
+ # Interface: IAuditCreateRequest
2
+
3
+ Create an authentication audit entry.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `Omit`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md), `"id"` \| `"dateCreated"`\>
10
+
11
+ The body of the request.
@@ -0,0 +1,17 @@
1
+ # Interface: IAuditGetRequest
2
+
3
+ Get an authentication audit entry by id.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The audit entry id.
@@ -0,0 +1,11 @@
1
+ # Interface: IAuditGetResponse
2
+
3
+ Response from getting an authentication audit entry.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: [`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)
10
+
11
+ The response body.
@@ -0,0 +1,65 @@
1
+ # Interface: IAuditQueryRequest
2
+
3
+ Query authentication audit entries.
4
+
5
+ ## Properties
6
+
7
+ ### query? {#query}
8
+
9
+ > `optional` **query?**: `object`
10
+
11
+ The query parameters for the request.
12
+
13
+ #### actorId?
14
+
15
+ > `optional` **actorId?**: `string`
16
+
17
+ The actor identifier to filter by.
18
+
19
+ #### organizationId?
20
+
21
+ > `optional` **organizationId?**: `string`
22
+
23
+ The organization identifier to filter by.
24
+
25
+ #### tenantId?
26
+
27
+ > `optional` **tenantId?**: `string`
28
+
29
+ The tenant identifier to filter by.
30
+
31
+ #### nodeId?
32
+
33
+ > `optional` **nodeId?**: `string`
34
+
35
+ The node identifier to filter by.
36
+
37
+ #### event?
38
+
39
+ > `optional` **event?**: `string`
40
+
41
+ The event to filter by.
42
+
43
+ #### startDate?
44
+
45
+ > `optional` **startDate?**: `string`
46
+
47
+ The inclusive start date for filtering, in ISO 8601 format.
48
+
49
+ #### endDate?
50
+
51
+ > `optional` **endDate?**: `string`
52
+
53
+ The inclusive end date for filtering, in ISO 8601 format.
54
+
55
+ #### cursor?
56
+
57
+ > `optional` **cursor?**: `string`
58
+
59
+ The pagination cursor.
60
+
61
+ #### limit?
62
+
63
+ > `optional` **limit?**: `string`
64
+
65
+ The maximum number of results to return.
@@ -0,0 +1,23 @@
1
+ # Interface: IAuditQueryResponse
2
+
3
+ Response from querying authentication audit entries.
4
+
5
+ ## Properties
6
+
7
+ ### body {#body}
8
+
9
+ > **body**: `object`
10
+
11
+ The response body.
12
+
13
+ #### entries
14
+
15
+ > **entries**: [`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md)[]
16
+
17
+ The returned audit entries.
18
+
19
+ #### cursor?
20
+
21
+ > `optional` **cursor?**: `string`
22
+
23
+ The cursor to retrieve the next page, if any.
@@ -0,0 +1,17 @@
1
+ # Interface: IAuditRemoveRequest
2
+
3
+ Remove an authentication audit entry.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The audit entry id.
@@ -0,0 +1,25 @@
1
+ # Interface: IAuditUpdateRequest
2
+
3
+ Update an authentication audit entry.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters for the request.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The audit entry id.
18
+
19
+ ***
20
+
21
+ ### body {#body}
22
+
23
+ > **body**: `Partial`\<`Omit`\<[`IAuthenticationAuditEntry`](IAuthenticationAuditEntry.md), `"id"` \| `"dateCreated"`\>\>
24
+
25
+ The body of the request.