@contractspec/lib.identity-rbac 1.53.0 → 1.54.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/dist/contracts/organization.d.ts +193 -193
- package/dist/contracts/rbac.d.ts +126 -126
- package/dist/contracts/user.d.ts +139 -139
- package/dist/entities/index.d.ts +160 -160
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/organization.d.ts +59 -59
- package/dist/entities/rbac.d.ts +63 -63
- package/dist/identity-rbac.capability.d.ts +3 -3
- package/dist/identity-rbac.feature.d.ts +2 -2
- package/package.json +5 -5
package/dist/entities/rbac.d.ts
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema734 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/rbac.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Role entity - named set of permissions.
|
|
6
6
|
*/
|
|
7
|
-
declare const RoleEntity:
|
|
8
|
-
id:
|
|
9
|
-
name:
|
|
10
|
-
description:
|
|
11
|
-
permissions:
|
|
12
|
-
createdAt:
|
|
13
|
-
updatedAt:
|
|
14
|
-
policyBindings:
|
|
7
|
+
declare const RoleEntity: _contractspec_lib_schema734.EntitySpec<{
|
|
8
|
+
id: _contractspec_lib_schema734.EntityScalarField;
|
|
9
|
+
name: _contractspec_lib_schema734.EntityScalarField;
|
|
10
|
+
description: _contractspec_lib_schema734.EntityScalarField;
|
|
11
|
+
permissions: _contractspec_lib_schema734.EntityScalarField;
|
|
12
|
+
createdAt: _contractspec_lib_schema734.EntityScalarField;
|
|
13
|
+
updatedAt: _contractspec_lib_schema734.EntityScalarField;
|
|
14
|
+
policyBindings: _contractspec_lib_schema734.EntityRelationField;
|
|
15
15
|
}>;
|
|
16
16
|
/**
|
|
17
17
|
* Permission entity - atomic access right.
|
|
18
18
|
*/
|
|
19
|
-
declare const PermissionEntity:
|
|
20
|
-
id:
|
|
21
|
-
name:
|
|
22
|
-
description:
|
|
23
|
-
createdAt:
|
|
24
|
-
updatedAt:
|
|
19
|
+
declare const PermissionEntity: _contractspec_lib_schema734.EntitySpec<{
|
|
20
|
+
id: _contractspec_lib_schema734.EntityScalarField;
|
|
21
|
+
name: _contractspec_lib_schema734.EntityScalarField;
|
|
22
|
+
description: _contractspec_lib_schema734.EntityScalarField;
|
|
23
|
+
createdAt: _contractspec_lib_schema734.EntityScalarField;
|
|
24
|
+
updatedAt: _contractspec_lib_schema734.EntityScalarField;
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
27
27
|
* PolicyBinding entity - binds roles to principals.
|
|
28
28
|
*/
|
|
29
|
-
declare const PolicyBindingEntity:
|
|
30
|
-
id:
|
|
31
|
-
roleId:
|
|
32
|
-
targetType:
|
|
33
|
-
targetId:
|
|
34
|
-
expiresAt:
|
|
35
|
-
createdAt:
|
|
36
|
-
userId:
|
|
37
|
-
organizationId:
|
|
38
|
-
role:
|
|
39
|
-
user:
|
|
40
|
-
organization:
|
|
29
|
+
declare const PolicyBindingEntity: _contractspec_lib_schema734.EntitySpec<{
|
|
30
|
+
id: _contractspec_lib_schema734.EntityScalarField;
|
|
31
|
+
roleId: _contractspec_lib_schema734.EntityScalarField;
|
|
32
|
+
targetType: _contractspec_lib_schema734.EntityScalarField;
|
|
33
|
+
targetId: _contractspec_lib_schema734.EntityScalarField;
|
|
34
|
+
expiresAt: _contractspec_lib_schema734.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema734.EntityScalarField;
|
|
36
|
+
userId: _contractspec_lib_schema734.EntityScalarField;
|
|
37
|
+
organizationId: _contractspec_lib_schema734.EntityScalarField;
|
|
38
|
+
role: _contractspec_lib_schema734.EntityRelationField;
|
|
39
|
+
user: _contractspec_lib_schema734.EntityRelationField;
|
|
40
|
+
organization: _contractspec_lib_schema734.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* ApiKey entity - API keys for programmatic access.
|
|
44
44
|
*/
|
|
45
|
-
declare const ApiKeyEntity:
|
|
46
|
-
id:
|
|
47
|
-
name:
|
|
48
|
-
start:
|
|
49
|
-
prefix:
|
|
50
|
-
key:
|
|
51
|
-
userId:
|
|
52
|
-
refillInterval:
|
|
53
|
-
refillAmount:
|
|
54
|
-
lastRefillAt:
|
|
55
|
-
remaining:
|
|
56
|
-
requestCount:
|
|
57
|
-
lastRequest:
|
|
58
|
-
enabled:
|
|
59
|
-
rateLimitEnabled:
|
|
60
|
-
rateLimitTimeWindow:
|
|
61
|
-
rateLimitMax:
|
|
62
|
-
expiresAt:
|
|
63
|
-
permissions:
|
|
64
|
-
metadata:
|
|
65
|
-
createdAt:
|
|
66
|
-
updatedAt:
|
|
67
|
-
user:
|
|
45
|
+
declare const ApiKeyEntity: _contractspec_lib_schema734.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema734.EntityScalarField;
|
|
47
|
+
name: _contractspec_lib_schema734.EntityScalarField;
|
|
48
|
+
start: _contractspec_lib_schema734.EntityScalarField;
|
|
49
|
+
prefix: _contractspec_lib_schema734.EntityScalarField;
|
|
50
|
+
key: _contractspec_lib_schema734.EntityScalarField;
|
|
51
|
+
userId: _contractspec_lib_schema734.EntityScalarField;
|
|
52
|
+
refillInterval: _contractspec_lib_schema734.EntityScalarField;
|
|
53
|
+
refillAmount: _contractspec_lib_schema734.EntityScalarField;
|
|
54
|
+
lastRefillAt: _contractspec_lib_schema734.EntityScalarField;
|
|
55
|
+
remaining: _contractspec_lib_schema734.EntityScalarField;
|
|
56
|
+
requestCount: _contractspec_lib_schema734.EntityScalarField;
|
|
57
|
+
lastRequest: _contractspec_lib_schema734.EntityScalarField;
|
|
58
|
+
enabled: _contractspec_lib_schema734.EntityScalarField;
|
|
59
|
+
rateLimitEnabled: _contractspec_lib_schema734.EntityScalarField;
|
|
60
|
+
rateLimitTimeWindow: _contractspec_lib_schema734.EntityScalarField;
|
|
61
|
+
rateLimitMax: _contractspec_lib_schema734.EntityScalarField;
|
|
62
|
+
expiresAt: _contractspec_lib_schema734.EntityScalarField;
|
|
63
|
+
permissions: _contractspec_lib_schema734.EntityScalarField;
|
|
64
|
+
metadata: _contractspec_lib_schema734.EntityScalarField;
|
|
65
|
+
createdAt: _contractspec_lib_schema734.EntityScalarField;
|
|
66
|
+
updatedAt: _contractspec_lib_schema734.EntityScalarField;
|
|
67
|
+
user: _contractspec_lib_schema734.EntityRelationField;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
70
|
* Passkey entity - WebAuthn passkeys.
|
|
71
71
|
*/
|
|
72
|
-
declare const PasskeyEntity:
|
|
73
|
-
id:
|
|
74
|
-
name:
|
|
75
|
-
publicKey:
|
|
76
|
-
userId:
|
|
77
|
-
credentialID:
|
|
78
|
-
counter:
|
|
79
|
-
deviceType:
|
|
80
|
-
backedUp:
|
|
81
|
-
transports:
|
|
82
|
-
aaguid:
|
|
83
|
-
createdAt:
|
|
84
|
-
user:
|
|
72
|
+
declare const PasskeyEntity: _contractspec_lib_schema734.EntitySpec<{
|
|
73
|
+
id: _contractspec_lib_schema734.EntityScalarField;
|
|
74
|
+
name: _contractspec_lib_schema734.EntityScalarField;
|
|
75
|
+
publicKey: _contractspec_lib_schema734.EntityScalarField;
|
|
76
|
+
userId: _contractspec_lib_schema734.EntityScalarField;
|
|
77
|
+
credentialID: _contractspec_lib_schema734.EntityScalarField;
|
|
78
|
+
counter: _contractspec_lib_schema734.EntityScalarField;
|
|
79
|
+
deviceType: _contractspec_lib_schema734.EntityScalarField;
|
|
80
|
+
backedUp: _contractspec_lib_schema734.EntityScalarField;
|
|
81
|
+
transports: _contractspec_lib_schema734.EntityScalarField;
|
|
82
|
+
aaguid: _contractspec_lib_schema734.EntityScalarField;
|
|
83
|
+
createdAt: _contractspec_lib_schema734.EntityScalarField;
|
|
84
|
+
user: _contractspec_lib_schema734.EntityRelationField;
|
|
85
85
|
}>;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { ApiKeyEntity, PasskeyEntity, PermissionEntity, PolicyBindingEntity, RoleEntity };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts29 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/identity-rbac.capability.d.ts
|
|
4
|
-
declare const IdentityCapability:
|
|
5
|
-
declare const RbacCapability:
|
|
4
|
+
declare const IdentityCapability: _contractspec_lib_contracts29.CapabilitySpec;
|
|
5
|
+
declare const RbacCapability: _contractspec_lib_contracts29.CapabilitySpec;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { IdentityCapability, RbacCapability };
|
|
8
8
|
//# sourceMappingURL=identity-rbac.capability.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts31 from "@contractspec/lib.contracts";
|
|
2
2
|
|
|
3
3
|
//#region src/identity-rbac.feature.d.ts
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as _contractspec_lib_contracts37 from "@contractspec/lib.contracts";
|
|
|
6
6
|
* Identity & RBAC feature module that bundles user management,
|
|
7
7
|
* organization tenancy, and role-based access control.
|
|
8
8
|
*/
|
|
9
|
-
declare const IdentityRbacFeature:
|
|
9
|
+
declare const IdentityRbacFeature: _contractspec_lib_contracts31.FeatureModuleSpec;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { IdentityRbacFeature };
|
|
12
12
|
//# sourceMappingURL=identity-rbac.feature.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.identity-rbac",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"description": "Identity, Organizations, and RBAC module for ContractSpec applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"lint:check": "eslint src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@contractspec/lib.schema": "1.
|
|
29
|
-
"@contractspec/lib.contracts": "1.
|
|
28
|
+
"@contractspec/lib.schema": "1.54.0",
|
|
29
|
+
"@contractspec/lib.contracts": "1.54.0",
|
|
30
30
|
"zod": "^4.3.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@contractspec/tool.typescript": "1.
|
|
34
|
-
"@contractspec/tool.tsdown": "1.
|
|
33
|
+
"@contractspec/tool.typescript": "1.54.0",
|
|
34
|
+
"@contractspec/tool.tsdown": "1.54.0",
|
|
35
35
|
"typescript": "^5.9.3"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|