@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.
- package/README.md +1 -1
- package/dist/es/index.js +2 -12
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IAuthenticationAdminComponent.js.map +1 -1
- package/dist/es/models/IAuthenticationComponent.js.map +1 -1
- package/dist/es/models/IAuthenticationUser.js.map +1 -1
- package/dist/es/models/IAuthenticationUserSecure.js.map +1 -1
- package/dist/es/models/{api/IAuditGetRequest.js → IPasswordOptions.js} +1 -1
- package/dist/es/models/IPasswordOptions.js.map +1 -0
- package/dist/es/models/api/IAdminUserCreateRequest.js.map +1 -1
- package/dist/es/models/api/IAdminUserGetByIdentityRequest.js.map +1 -1
- package/dist/es/models/api/IAdminUserGetRequest.js.map +1 -1
- package/dist/es/models/api/IAdminUserGetResponse.js.map +1 -1
- package/dist/es/models/api/IAdminUserRemoveRequest.js.map +1 -1
- package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js.map +1 -1
- package/dist/es/models/api/IAdminUserUpdateRequest.js.map +1 -1
- package/dist/es/models/api/ILoginRequest.js.map +1 -1
- package/dist/es/models/api/ILoginResponse.js.map +1 -1
- package/dist/es/models/api/ILogoutRequest.js.map +1 -1
- package/dist/es/models/api/IPasswordPolicyResponse.js +2 -0
- package/dist/es/models/api/IPasswordPolicyResponse.js.map +1 -0
- package/dist/es/models/api/IRefreshTokenRequest.js.map +1 -1
- package/dist/es/models/api/IRefreshTokenResponse.js.map +1 -1
- package/dist/es/models/api/IUpdatePasswordRequest.js.map +1 -1
- package/dist/types/index.d.ts +2 -12
- package/dist/types/models/IAuthenticationComponent.d.ts +6 -0
- package/dist/types/models/IAuthenticationUser.d.ts +0 -4
- package/dist/types/models/IPasswordOptions.d.ts +13 -0
- package/dist/types/models/api/IPasswordPolicyResponse.d.ts +10 -0
- package/docs/changelog.md +11 -0
- package/docs/examples.md +15 -6
- package/docs/reference/index.md +2 -19
- package/docs/reference/interfaces/IAuthenticationComponent.md +14 -0
- package/docs/reference/interfaces/IAuthenticationUser.md +0 -8
- package/docs/reference/interfaces/IAuthenticationUserSecure.md +0 -12
- package/docs/reference/interfaces/IPasswordOptions.md +19 -0
- package/docs/reference/interfaces/IPasswordPolicyResponse.md +11 -0
- package/package.json +3 -3
- package/dist/es/models/IAuthenticationAuditComponent.js +0 -2
- package/dist/es/models/IAuthenticationAuditComponent.js.map +0 -1
- package/dist/es/models/IAuthenticationAuditEntry.js +0 -2
- package/dist/es/models/IAuthenticationAuditEntry.js.map +0 -1
- package/dist/es/models/IAuthenticationRateActionConfig.js +0 -4
- package/dist/es/models/IAuthenticationRateActionConfig.js.map +0 -1
- package/dist/es/models/IAuthenticationRateComponent.js +0 -2
- package/dist/es/models/IAuthenticationRateComponent.js.map +0 -1
- package/dist/es/models/api/IAuditCreateRequest.js +0 -2
- package/dist/es/models/api/IAuditCreateRequest.js.map +0 -1
- package/dist/es/models/api/IAuditGetRequest.js.map +0 -1
- package/dist/es/models/api/IAuditGetResponse.js +0 -2
- package/dist/es/models/api/IAuditGetResponse.js.map +0 -1
- package/dist/es/models/api/IAuditQueryRequest.js +0 -2
- package/dist/es/models/api/IAuditQueryRequest.js.map +0 -1
- package/dist/es/models/api/IAuditQueryResponse.js +0 -2
- package/dist/es/models/api/IAuditQueryResponse.js.map +0 -1
- package/dist/es/models/api/IAuditRemoveRequest.js +0 -4
- package/dist/es/models/api/IAuditRemoveRequest.js.map +0 -1
- package/dist/es/models/api/IAuditUpdateRequest.js +0 -2
- package/dist/es/models/api/IAuditUpdateRequest.js.map +0 -1
- package/dist/es/models/authAuditEvent.js +0 -49
- package/dist/es/models/authAuditEvent.js.map +0 -1
- package/dist/types/models/IAuthenticationAuditComponent.d.ts +0 -59
- package/dist/types/models/IAuthenticationAuditEntry.d.ts +0 -50
- package/dist/types/models/IAuthenticationRateActionConfig.d.ts +0 -13
- package/dist/types/models/IAuthenticationRateComponent.d.ts +0 -46
- package/dist/types/models/api/IAuditCreateRequest.d.ts +0 -10
- package/dist/types/models/api/IAuditGetRequest.d.ts +0 -14
- package/dist/types/models/api/IAuditGetResponse.d.ts +0 -10
- package/dist/types/models/api/IAuditQueryRequest.d.ts +0 -47
- package/dist/types/models/api/IAuditQueryResponse.d.ts +0 -19
- package/dist/types/models/api/IAuditRemoveRequest.d.ts +0 -14
- package/dist/types/models/api/IAuditUpdateRequest.d.ts +0 -19
- package/dist/types/models/authAuditEvent.d.ts +0 -49
- package/docs/reference/interfaces/IAuditCreateRequest.md +0 -11
- package/docs/reference/interfaces/IAuditGetRequest.md +0 -17
- package/docs/reference/interfaces/IAuditGetResponse.md +0 -11
- package/docs/reference/interfaces/IAuditQueryRequest.md +0 -65
- package/docs/reference/interfaces/IAuditQueryResponse.md +0 -23
- package/docs/reference/interfaces/IAuditRemoveRequest.md +0 -17
- package/docs/reference/interfaces/IAuditUpdateRequest.md +0 -25
- package/docs/reference/interfaces/IAuthenticationAuditComponent.md +0 -175
- package/docs/reference/interfaces/IAuthenticationAuditEntry.md +0 -91
- package/docs/reference/interfaces/IAuthenticationRateActionConfig.md +0 -19
- package/docs/reference/interfaces/IAuthenticationRateComponent.md +0 -165
- package/docs/reference/type-aliases/AuthAuditEvent.md +0 -5
- package/docs/reference/variables/AuthAuditEvent.md +0 -67
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IAuditUpdateRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditUpdateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuthenticationAuditEntry } from \"../IAuthenticationAuditEntry.js\";\n\n/**\n * Update an authentication audit entry.\n */\nexport interface IAuditUpdateRequest {\n\t/**\n\t * The path parameters for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The audit entry id.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body of the request.\n\t */\n\tbody: Partial<Omit<IAuthenticationAuditEntry, \"id\" | \"dateCreated\">>;\n}\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* Supported authentication audit events.
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const AuthAuditEvent = {
|
|
8
|
-
/**
|
|
9
|
-
* Login success.
|
|
10
|
-
*/
|
|
11
|
-
LoginSuccess: "login-success",
|
|
12
|
-
/**
|
|
13
|
-
* Login failure.
|
|
14
|
-
*/
|
|
15
|
-
LoginFailure: "login-failure",
|
|
16
|
-
/**
|
|
17
|
-
* Logout.
|
|
18
|
-
*/
|
|
19
|
-
Logout: "logout",
|
|
20
|
-
/**
|
|
21
|
-
* Token refreshed.
|
|
22
|
-
*/
|
|
23
|
-
TokenRefreshed: "token-refreshed",
|
|
24
|
-
/**
|
|
25
|
-
* Account created.
|
|
26
|
-
*/
|
|
27
|
-
AccountCreated: "account-created",
|
|
28
|
-
/**
|
|
29
|
-
* Account deleted.
|
|
30
|
-
*/
|
|
31
|
-
AccountDeleted: "account-deleted",
|
|
32
|
-
/**
|
|
33
|
-
* Account updated.
|
|
34
|
-
*/
|
|
35
|
-
AccountUpdated: "account-updated",
|
|
36
|
-
/**
|
|
37
|
-
* Account locked.
|
|
38
|
-
*/
|
|
39
|
-
AccountLocked: "account-locked",
|
|
40
|
-
/**
|
|
41
|
-
* Account unlocked.
|
|
42
|
-
*/
|
|
43
|
-
AccountUnlocked: "account-unlocked",
|
|
44
|
-
/**
|
|
45
|
-
* Password changed.
|
|
46
|
-
*/
|
|
47
|
-
PasswordChanged: "password-changed"
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=authAuditEvent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authAuditEvent.js","sourceRoot":"","sources":["../../../src/models/authAuditEvent.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,YAAY,EAAE,eAAe;IAE7B;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;OAEG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;OAEG;IACH,eAAe,EAAE,kBAAkB;CAC1B,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Supported authentication audit events.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuthAuditEvent = {\n\t/**\n\t * Login success.\n\t */\n\tLoginSuccess: \"login-success\",\n\n\t/**\n\t * Login failure.\n\t */\n\tLoginFailure: \"login-failure\",\n\n\t/**\n\t * Logout.\n\t */\n\tLogout: \"logout\",\n\n\t/**\n\t * Token refreshed.\n\t */\n\tTokenRefreshed: \"token-refreshed\",\n\n\t/**\n\t * Account created.\n\t */\n\tAccountCreated: \"account-created\",\n\n\t/**\n\t * Account deleted.\n\t */\n\tAccountDeleted: \"account-deleted\",\n\n\t/**\n\t * Account updated.\n\t */\n\tAccountUpdated: \"account-updated\",\n\n\t/**\n\t * Account locked.\n\t */\n\tAccountLocked: \"account-locked\",\n\n\t/**\n\t * Account unlocked.\n\t */\n\tAccountUnlocked: \"account-unlocked\",\n\n\t/**\n\t * Password changed.\n\t */\n\tPasswordChanged: \"password-changed\"\n} as const;\n\n/**\n * Supported authentication audit event values.\n */\nexport type AuthAuditEvent = (typeof AuthAuditEvent)[keyof typeof AuthAuditEvent];\n"]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { IComponent } from "@3sixty/core";
|
|
2
|
-
import type { AuthAuditEvent } from "./authAuditEvent.js";
|
|
3
|
-
import type { IAuthenticationAuditEntry } from "./IAuthenticationAuditEntry.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contract definition for authentication audit component.
|
|
6
|
-
*/
|
|
7
|
-
export interface IAuthenticationAuditComponent extends IComponent {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new audit entry.
|
|
10
|
-
* @param entry The audit entry to be logged.
|
|
11
|
-
* @returns The unique identifier of the created audit entry.
|
|
12
|
-
*/
|
|
13
|
-
create(entry: Omit<IAuthenticationAuditEntry, "id" | "dateCreated">): Promise<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Get an audit entry by id.
|
|
16
|
-
* @param id The unique identifier of the audit entry.
|
|
17
|
-
* @returns The audit entry.
|
|
18
|
-
*/
|
|
19
|
-
get(id: string): Promise<IAuthenticationAuditEntry>;
|
|
20
|
-
/**
|
|
21
|
-
* Update an audit entry.
|
|
22
|
-
* @param id The unique identifier of the audit entry to update.
|
|
23
|
-
* @param entry The fields to update on the audit entry.
|
|
24
|
-
* @returns A promise that resolves when the audit entry has been updated.
|
|
25
|
-
*/
|
|
26
|
-
update(id: string, entry: Partial<Omit<IAuthenticationAuditEntry, "id" | "dateCreated">>): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Remove an audit entry.
|
|
29
|
-
* @param id The unique identifier of the audit entry to remove.
|
|
30
|
-
* @returns A promise that resolves when the audit entry has been removed.
|
|
31
|
-
*/
|
|
32
|
-
remove(id: string): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Query the audit entries.
|
|
35
|
-
* @param options The query options.
|
|
36
|
-
* @param options.actorId The actor identifier to filter the audit entries, optional.
|
|
37
|
-
* @param options.organizationId The organization identifier to filter the audit entries, optional.
|
|
38
|
-
* @param options.tenantId The tenant identifier to filter the audit entries, optional.
|
|
39
|
-
* @param options.nodeId The node identifier to filter the audit entries, optional.
|
|
40
|
-
* @param options.event The audit event to filter the audit entries, optional.
|
|
41
|
-
* @param options.startDate The start date to filter the audit entries, optional.
|
|
42
|
-
* @param options.endDate The end date to filter the audit entries, optional.
|
|
43
|
-
* @param cursor The cursor for pagination.
|
|
44
|
-
* @param limit The maximum number of entries to return.
|
|
45
|
-
* @returns The audit entries.
|
|
46
|
-
*/
|
|
47
|
-
query(options?: {
|
|
48
|
-
actorId?: string;
|
|
49
|
-
organizationId?: string;
|
|
50
|
-
tenantId?: string;
|
|
51
|
-
nodeId?: string;
|
|
52
|
-
event?: AuthAuditEvent | string;
|
|
53
|
-
startDate?: string;
|
|
54
|
-
endDate?: string;
|
|
55
|
-
}, cursor?: string, limit?: number): Promise<{
|
|
56
|
-
entries: IAuthenticationAuditEntry[];
|
|
57
|
-
cursor?: string;
|
|
58
|
-
}>;
|
|
59
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { AuthAuditEvent } from "./authAuditEvent.js";
|
|
2
|
-
/**
|
|
3
|
-
* Contract definition for authentication audit entry.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuthenticationAuditEntry {
|
|
6
|
-
/**
|
|
7
|
-
* The unique identifier for the audit entry.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
/**
|
|
11
|
-
* The audit event that occurred.
|
|
12
|
-
*/
|
|
13
|
-
event: AuthAuditEvent | string;
|
|
14
|
-
/**
|
|
15
|
-
* The timestamp of the audit entry in ISO 8601 format.
|
|
16
|
-
*/
|
|
17
|
-
dateCreated: string;
|
|
18
|
-
/**
|
|
19
|
-
* The actor identifier, could be e-mail, username, or other unique identifier.
|
|
20
|
-
*/
|
|
21
|
-
actorId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The node identifier associated with the audit entry, if applicable.
|
|
24
|
-
*/
|
|
25
|
-
nodeId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The organization identifier associated with the audit entry, if applicable.
|
|
28
|
-
*/
|
|
29
|
-
organizationId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The tenant identifier associated with the audit entry, if applicable.
|
|
32
|
-
*/
|
|
33
|
-
tenantId?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The hashed IP addresses of the client.
|
|
36
|
-
*/
|
|
37
|
-
ipAddressHashes?: string[];
|
|
38
|
-
/**
|
|
39
|
-
* The user agent string of the client.
|
|
40
|
-
*/
|
|
41
|
-
userAgent?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The correlation ID for request tracing.
|
|
44
|
-
*/
|
|
45
|
-
correlationId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Additional data related to the audit entry, such as IP address, user agent, etc.
|
|
48
|
-
*/
|
|
49
|
-
data?: unknown;
|
|
50
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for an authentication rate limited action.
|
|
3
|
-
*/
|
|
4
|
-
export interface IAuthenticationRateActionConfig {
|
|
5
|
-
/**
|
|
6
|
-
* Maximum number of failed attempts allowed per window.
|
|
7
|
-
*/
|
|
8
|
-
maxAttempts: number;
|
|
9
|
-
/**
|
|
10
|
-
* Rate limit window duration in minutes.
|
|
11
|
-
*/
|
|
12
|
-
windowMinutes: number;
|
|
13
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { IComponent } from "@3sixty/core";
|
|
2
|
-
import type { IAuthenticationRateActionConfig } from "./IAuthenticationRateActionConfig.js";
|
|
3
|
-
/**
|
|
4
|
-
* Contract definition for authentication rate component.
|
|
5
|
-
*/
|
|
6
|
-
export interface IAuthenticationRateComponent extends IComponent {
|
|
7
|
-
/**
|
|
8
|
-
* The service needs to be started when the application is initialized.
|
|
9
|
-
* @param nodeLoggingComponentType The node logging component type.
|
|
10
|
-
* @returns A promise that resolves when the service has been started.
|
|
11
|
-
*/
|
|
12
|
-
start(nodeLoggingComponentType?: string): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* The component needs to be stopped when the node is closed.
|
|
15
|
-
* @param nodeLoggingComponentType The node logging component type.
|
|
16
|
-
* @returns A promise that resolves when the service has been stopped.
|
|
17
|
-
*/
|
|
18
|
-
stop(nodeLoggingComponentType?: string): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Register or update rate-limit configuration for an action.
|
|
21
|
-
* @param action The action name.
|
|
22
|
-
* @param config The action configuration.
|
|
23
|
-
* @returns A promise that resolves when the action configuration has been stored.
|
|
24
|
-
*/
|
|
25
|
-
registerAction(action: string, config: IAuthenticationRateActionConfig): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Unregister rate-limit configuration for an action.
|
|
28
|
-
* @param action The action name.
|
|
29
|
-
* @returns A promise that resolves when the action configuration has been removed.
|
|
30
|
-
*/
|
|
31
|
-
unregisterAction(action: string): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Check the authentication rate for a given action and identifier.
|
|
34
|
-
* @param action The action to be checked.
|
|
35
|
-
* @param identifier The identifier to be checked.
|
|
36
|
-
* @returns The result of the rate check.
|
|
37
|
-
*/
|
|
38
|
-
check(action: string, identifier: string): Promise<string>;
|
|
39
|
-
/**
|
|
40
|
-
* Clear the authentication rate entry for the given action and identifier.
|
|
41
|
-
* @param action The action to clear.
|
|
42
|
-
* @param identifier The identifier to clear.
|
|
43
|
-
* @returns A promise that resolves when the rate entry has been removed.
|
|
44
|
-
*/
|
|
45
|
-
clear(action: string, identifier: string): Promise<void>;
|
|
46
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IAuthenticationAuditEntry } from "../IAuthenticationAuditEntry.js";
|
|
2
|
-
/**
|
|
3
|
-
* Create an authentication audit entry.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditCreateRequest {
|
|
6
|
-
/**
|
|
7
|
-
* The body of the request.
|
|
8
|
-
*/
|
|
9
|
-
body: Omit<IAuthenticationAuditEntry, "id" | "dateCreated">;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IAuthenticationAuditEntry } from "../IAuthenticationAuditEntry.js";
|
|
2
|
-
/**
|
|
3
|
-
* Response from getting an authentication audit entry.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditGetResponse {
|
|
6
|
-
/**
|
|
7
|
-
* The response body.
|
|
8
|
-
*/
|
|
9
|
-
body: IAuthenticationAuditEntry;
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AuthAuditEvent } from "../authAuditEvent.js";
|
|
2
|
-
/**
|
|
3
|
-
* Query authentication audit entries.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditQueryRequest {
|
|
6
|
-
/**
|
|
7
|
-
* The query parameters for the request.
|
|
8
|
-
*/
|
|
9
|
-
query?: {
|
|
10
|
-
/**
|
|
11
|
-
* The actor identifier to filter by.
|
|
12
|
-
*/
|
|
13
|
-
actorId?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The organization identifier to filter by.
|
|
16
|
-
*/
|
|
17
|
-
organizationId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The tenant identifier to filter by.
|
|
20
|
-
*/
|
|
21
|
-
tenantId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The node identifier to filter by.
|
|
24
|
-
*/
|
|
25
|
-
nodeId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The event to filter by.
|
|
28
|
-
*/
|
|
29
|
-
event?: AuthAuditEvent | string;
|
|
30
|
-
/**
|
|
31
|
-
* The inclusive start date for filtering, in ISO 8601 format.
|
|
32
|
-
*/
|
|
33
|
-
startDate?: string;
|
|
34
|
-
/**
|
|
35
|
-
* The inclusive end date for filtering, in ISO 8601 format.
|
|
36
|
-
*/
|
|
37
|
-
endDate?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The pagination cursor.
|
|
40
|
-
*/
|
|
41
|
-
cursor?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The maximum number of results to return.
|
|
44
|
-
*/
|
|
45
|
-
limit?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IAuthenticationAuditEntry } from "../IAuthenticationAuditEntry.js";
|
|
2
|
-
/**
|
|
3
|
-
* Response from querying authentication audit entries.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditQueryResponse {
|
|
6
|
-
/**
|
|
7
|
-
* The response body.
|
|
8
|
-
*/
|
|
9
|
-
body: {
|
|
10
|
-
/**
|
|
11
|
-
* The returned audit entries.
|
|
12
|
-
*/
|
|
13
|
-
entries: IAuthenticationAuditEntry[];
|
|
14
|
-
/**
|
|
15
|
-
* The cursor to retrieve the next page, if any.
|
|
16
|
-
*/
|
|
17
|
-
cursor?: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IAuthenticationAuditEntry } from "../IAuthenticationAuditEntry.js";
|
|
2
|
-
/**
|
|
3
|
-
* Update an authentication audit entry.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditUpdateRequest {
|
|
6
|
-
/**
|
|
7
|
-
* The path parameters for the request.
|
|
8
|
-
*/
|
|
9
|
-
pathParams: {
|
|
10
|
-
/**
|
|
11
|
-
* The audit entry id.
|
|
12
|
-
*/
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* The body of the request.
|
|
17
|
-
*/
|
|
18
|
-
body: Partial<Omit<IAuthenticationAuditEntry, "id" | "dateCreated">>;
|
|
19
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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];
|
|
@@ -1,17 +0,0 @@
|
|
|
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.
|
|
@@ -1,65 +0,0 @@
|
|
|
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.
|
|
@@ -1,23 +0,0 @@
|
|
|
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.
|
|
@@ -1,17 +0,0 @@
|
|
|
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.
|
|
@@ -1,25 +0,0 @@
|
|
|
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.
|