@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.
- package/LICENSE +201 -0
- package/README.md +24 -2
- package/dist/es/index.js +32 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuthenticationAdminComponent.js +2 -0
- package/dist/es/models/IAuthenticationAdminComponent.js.map +1 -0
- package/dist/es/models/IAuthenticationAuditComponent.js +2 -0
- package/dist/es/models/IAuthenticationAuditComponent.js.map +1 -0
- package/dist/es/models/IAuthenticationAuditEntry.js +2 -0
- package/dist/es/models/IAuthenticationAuditEntry.js.map +1 -0
- package/dist/es/models/IAuthenticationComponent.js +2 -0
- package/dist/es/models/IAuthenticationComponent.js.map +1 -0
- package/dist/es/models/IAuthenticationRateActionConfig.js +4 -0
- package/dist/es/models/IAuthenticationRateActionConfig.js.map +1 -0
- package/dist/es/models/IAuthenticationRateComponent.js +2 -0
- package/dist/es/models/IAuthenticationRateComponent.js.map +1 -0
- package/dist/es/models/IAuthenticationUser.js +4 -0
- package/dist/es/models/IAuthenticationUser.js.map +1 -0
- package/dist/es/models/IAuthenticationUserSecure.js +2 -0
- package/dist/es/models/IAuthenticationUserSecure.js.map +1 -0
- package/dist/es/models/api/IAdminUserCreateRequest.js +2 -0
- package/dist/es/models/api/IAdminUserCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAdminUserGetByIdentityRequest.js +4 -0
- package/dist/es/models/api/IAdminUserGetByIdentityRequest.js.map +1 -0
- package/dist/es/models/api/IAdminUserGetRequest.js +4 -0
- package/dist/es/models/api/IAdminUserGetRequest.js.map +1 -0
- package/dist/es/models/api/IAdminUserGetResponse.js +2 -0
- package/dist/es/models/api/IAdminUserGetResponse.js.map +1 -0
- package/dist/es/models/api/IAdminUserRemoveRequest.js +4 -0
- package/dist/es/models/api/IAdminUserRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js +4 -0
- package/dist/es/models/api/IAdminUserUpdatePasswordRequest.js.map +1 -0
- package/dist/es/models/api/IAdminUserUpdateRequest.js +2 -0
- package/dist/es/models/api/IAdminUserUpdateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditCreateRequest.js +2 -0
- package/dist/es/models/api/IAuditCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditGetRequest.js +4 -0
- package/dist/es/models/api/IAuditGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditGetResponse.js +2 -0
- package/dist/es/models/api/IAuditGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditQueryRequest.js +2 -0
- package/dist/es/models/api/IAuditQueryRequest.js.map +1 -0
- package/dist/es/models/api/IAuditQueryResponse.js +2 -0
- package/dist/es/models/api/IAuditQueryResponse.js.map +1 -0
- package/dist/es/models/api/IAuditRemoveRequest.js +4 -0
- package/dist/es/models/api/IAuditRemoveRequest.js.map +1 -0
- package/dist/es/models/api/IAuditUpdateRequest.js +2 -0
- package/dist/es/models/api/IAuditUpdateRequest.js.map +1 -0
- package/dist/es/models/api/ILoginRequest.js +4 -0
- package/dist/es/models/api/ILoginRequest.js.map +1 -0
- package/dist/es/models/api/ILoginResponse.js +2 -0
- package/dist/es/models/api/ILoginResponse.js.map +1 -0
- package/dist/es/models/api/ILogoutRequest.js +4 -0
- package/dist/es/models/api/ILogoutRequest.js.map +1 -0
- package/dist/es/models/api/IRefreshTokenRequest.js +4 -0
- package/dist/es/models/api/IRefreshTokenRequest.js.map +1 -0
- package/dist/es/models/api/IRefreshTokenResponse.js +2 -0
- package/dist/es/models/api/IRefreshTokenResponse.js.map +1 -0
- package/dist/es/models/api/IUpdatePasswordRequest.js +4 -0
- package/dist/es/models/api/IUpdatePasswordRequest.js.map +1 -0
- package/dist/es/models/authAuditEvent.js +49 -0
- package/dist/es/models/authAuditEvent.js.map +1 -0
- package/dist/types/index.d.ts +29 -0
- package/dist/types/models/IAuthenticationAdminComponent.d.ts +47 -0
- package/dist/types/models/IAuthenticationAuditComponent.d.ts +59 -0
- package/dist/types/models/IAuthenticationAuditEntry.d.ts +50 -0
- package/dist/types/models/IAuthenticationComponent.d.ts +38 -0
- package/dist/types/models/IAuthenticationRateActionConfig.d.ts +13 -0
- package/dist/types/models/IAuthenticationRateComponent.d.ts +46 -0
- package/dist/types/models/IAuthenticationUser.d.ts +21 -0
- package/dist/types/models/IAuthenticationUserSecure.d.ts +18 -0
- package/dist/types/models/api/IAdminUserCreateRequest.d.ts +12 -0
- package/dist/types/models/api/IAdminUserGetByIdentityRequest.d.ts +14 -0
- package/dist/types/models/api/IAdminUserGetRequest.d.ts +14 -0
- package/dist/types/models/api/IAdminUserGetResponse.d.ts +10 -0
- package/dist/types/models/api/IAdminUserRemoveRequest.d.ts +14 -0
- package/dist/types/models/api/IAdminUserUpdatePasswordRequest.d.ts +27 -0
- package/dist/types/models/api/IAdminUserUpdateRequest.d.ts +19 -0
- package/dist/types/models/api/IAuditCreateRequest.d.ts +10 -0
- package/dist/types/models/api/IAuditGetRequest.d.ts +14 -0
- package/dist/types/models/api/IAuditGetResponse.d.ts +10 -0
- package/dist/types/models/api/IAuditQueryRequest.d.ts +47 -0
- package/dist/types/models/api/IAuditQueryResponse.d.ts +19 -0
- package/dist/types/models/api/IAuditRemoveRequest.d.ts +14 -0
- package/dist/types/models/api/IAuditUpdateRequest.d.ts +19 -0
- package/dist/types/models/api/ILoginRequest.d.ts +18 -0
- package/dist/types/models/api/ILoginResponse.d.ts +24 -0
- package/dist/types/models/api/ILogoutRequest.d.ts +14 -0
- package/dist/types/models/api/IRefreshTokenRequest.d.ts +14 -0
- package/dist/types/models/api/IRefreshTokenResponse.d.ts +24 -0
- package/dist/types/models/api/IUpdatePasswordRequest.d.ts +18 -0
- package/dist/types/models/authAuditEvent.d.ts +49 -0
- package/docs/changelog.md +0 -0
- package/docs/examples.md +80 -0
- package/docs/reference/index.md +40 -0
- package/docs/reference/interfaces/IAdminUserCreateRequest.md +17 -0
- package/docs/reference/interfaces/IAdminUserGetByIdentityRequest.md +17 -0
- package/docs/reference/interfaces/IAdminUserGetRequest.md +17 -0
- package/docs/reference/interfaces/IAdminUserGetResponse.md +11 -0
- package/docs/reference/interfaces/IAdminUserRemoveRequest.md +17 -0
- package/docs/reference/interfaces/IAdminUserUpdatePasswordRequest.md +37 -0
- package/docs/reference/interfaces/IAdminUserUpdateRequest.md +25 -0
- package/docs/reference/interfaces/IAuditCreateRequest.md +11 -0
- package/docs/reference/interfaces/IAuditGetRequest.md +17 -0
- package/docs/reference/interfaces/IAuditGetResponse.md +11 -0
- package/docs/reference/interfaces/IAuditQueryRequest.md +65 -0
- package/docs/reference/interfaces/IAuditQueryResponse.md +23 -0
- package/docs/reference/interfaces/IAuditRemoveRequest.md +17 -0
- package/docs/reference/interfaces/IAuditUpdateRequest.md +25 -0
- package/docs/reference/interfaces/IAuthenticationAdminComponent.md +151 -0
- package/docs/reference/interfaces/IAuthenticationAuditComponent.md +175 -0
- package/docs/reference/interfaces/IAuthenticationAuditEntry.md +91 -0
- package/docs/reference/interfaces/IAuthenticationComponent.md +107 -0
- package/docs/reference/interfaces/IAuthenticationRateActionConfig.md +19 -0
- package/docs/reference/interfaces/IAuthenticationRateComponent.md +165 -0
- package/docs/reference/interfaces/IAuthenticationUser.md +39 -0
- package/docs/reference/interfaces/IAuthenticationUserSecure.md +79 -0
- package/docs/reference/interfaces/ILoginRequest.md +23 -0
- package/docs/reference/interfaces/ILoginResponse.md +31 -0
- package/docs/reference/interfaces/ILogoutRequest.md +17 -0
- package/docs/reference/interfaces/IRefreshTokenRequest.md +17 -0
- package/docs/reference/interfaces/IRefreshTokenResponse.md +31 -0
- package/docs/reference/interfaces/IUpdatePasswordRequest.md +23 -0
- package/docs/reference/type-aliases/AuthAuditEvent.md +5 -0
- package/docs/reference/variables/AuthAuditEvent.md +67 -0
- package/locales/en.json +1 -0
- 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 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
|
package/docs/examples.md
ADDED
|
@@ -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,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,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,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.
|