@contractspec/lib.identity-rbac 0.0.0-canary-20260119222405 → 0.0.0-canary-20260119224015
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/entities/user.d.ts +67 -67
- package/dist/events.d.ts +31 -31
- package/dist/identity-rbac.capability.d.ts +3 -3
- package/dist/identity-rbac.capability.d.ts.map +1 -1
- package/dist/identity-rbac.feature.d.ts +2 -2
- package/dist/identity-rbac.feature.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/entities/rbac.d.ts
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema449 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_schema449.EntitySpec<{
|
|
8
|
+
id: _contractspec_lib_schema449.EntityScalarField;
|
|
9
|
+
name: _contractspec_lib_schema449.EntityScalarField;
|
|
10
|
+
description: _contractspec_lib_schema449.EntityScalarField;
|
|
11
|
+
permissions: _contractspec_lib_schema449.EntityScalarField;
|
|
12
|
+
createdAt: _contractspec_lib_schema449.EntityScalarField;
|
|
13
|
+
updatedAt: _contractspec_lib_schema449.EntityScalarField;
|
|
14
|
+
policyBindings: _contractspec_lib_schema449.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_schema449.EntitySpec<{
|
|
20
|
+
id: _contractspec_lib_schema449.EntityScalarField;
|
|
21
|
+
name: _contractspec_lib_schema449.EntityScalarField;
|
|
22
|
+
description: _contractspec_lib_schema449.EntityScalarField;
|
|
23
|
+
createdAt: _contractspec_lib_schema449.EntityScalarField;
|
|
24
|
+
updatedAt: _contractspec_lib_schema449.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_schema449.EntitySpec<{
|
|
30
|
+
id: _contractspec_lib_schema449.EntityScalarField;
|
|
31
|
+
roleId: _contractspec_lib_schema449.EntityScalarField;
|
|
32
|
+
targetType: _contractspec_lib_schema449.EntityScalarField;
|
|
33
|
+
targetId: _contractspec_lib_schema449.EntityScalarField;
|
|
34
|
+
expiresAt: _contractspec_lib_schema449.EntityScalarField;
|
|
35
|
+
createdAt: _contractspec_lib_schema449.EntityScalarField;
|
|
36
|
+
userId: _contractspec_lib_schema449.EntityScalarField;
|
|
37
|
+
organizationId: _contractspec_lib_schema449.EntityScalarField;
|
|
38
|
+
role: _contractspec_lib_schema449.EntityRelationField;
|
|
39
|
+
user: _contractspec_lib_schema449.EntityRelationField;
|
|
40
|
+
organization: _contractspec_lib_schema449.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_schema449.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema449.EntityScalarField;
|
|
47
|
+
name: _contractspec_lib_schema449.EntityScalarField;
|
|
48
|
+
start: _contractspec_lib_schema449.EntityScalarField;
|
|
49
|
+
prefix: _contractspec_lib_schema449.EntityScalarField;
|
|
50
|
+
key: _contractspec_lib_schema449.EntityScalarField;
|
|
51
|
+
userId: _contractspec_lib_schema449.EntityScalarField;
|
|
52
|
+
refillInterval: _contractspec_lib_schema449.EntityScalarField;
|
|
53
|
+
refillAmount: _contractspec_lib_schema449.EntityScalarField;
|
|
54
|
+
lastRefillAt: _contractspec_lib_schema449.EntityScalarField;
|
|
55
|
+
remaining: _contractspec_lib_schema449.EntityScalarField;
|
|
56
|
+
requestCount: _contractspec_lib_schema449.EntityScalarField;
|
|
57
|
+
lastRequest: _contractspec_lib_schema449.EntityScalarField;
|
|
58
|
+
enabled: _contractspec_lib_schema449.EntityScalarField;
|
|
59
|
+
rateLimitEnabled: _contractspec_lib_schema449.EntityScalarField;
|
|
60
|
+
rateLimitTimeWindow: _contractspec_lib_schema449.EntityScalarField;
|
|
61
|
+
rateLimitMax: _contractspec_lib_schema449.EntityScalarField;
|
|
62
|
+
expiresAt: _contractspec_lib_schema449.EntityScalarField;
|
|
63
|
+
permissions: _contractspec_lib_schema449.EntityScalarField;
|
|
64
|
+
metadata: _contractspec_lib_schema449.EntityScalarField;
|
|
65
|
+
createdAt: _contractspec_lib_schema449.EntityScalarField;
|
|
66
|
+
updatedAt: _contractspec_lib_schema449.EntityScalarField;
|
|
67
|
+
user: _contractspec_lib_schema449.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_schema449.EntitySpec<{
|
|
73
|
+
id: _contractspec_lib_schema449.EntityScalarField;
|
|
74
|
+
name: _contractspec_lib_schema449.EntityScalarField;
|
|
75
|
+
publicKey: _contractspec_lib_schema449.EntityScalarField;
|
|
76
|
+
userId: _contractspec_lib_schema449.EntityScalarField;
|
|
77
|
+
credentialID: _contractspec_lib_schema449.EntityScalarField;
|
|
78
|
+
counter: _contractspec_lib_schema449.EntityScalarField;
|
|
79
|
+
deviceType: _contractspec_lib_schema449.EntityScalarField;
|
|
80
|
+
backedUp: _contractspec_lib_schema449.EntityScalarField;
|
|
81
|
+
transports: _contractspec_lib_schema449.EntityScalarField;
|
|
82
|
+
aaguid: _contractspec_lib_schema449.EntityScalarField;
|
|
83
|
+
createdAt: _contractspec_lib_schema449.EntityScalarField;
|
|
84
|
+
user: _contractspec_lib_schema449.EntityRelationField;
|
|
85
85
|
}>;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { ApiKeyEntity, PasskeyEntity, PermissionEntity, PolicyBindingEntity, RoleEntity };
|
package/dist/entities/user.d.ts
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema511 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/user.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* User entity - core user profile and authentication.
|
|
6
6
|
*/
|
|
7
|
-
declare const UserEntity:
|
|
8
|
-
id:
|
|
9
|
-
email:
|
|
10
|
-
emailVerified:
|
|
11
|
-
name:
|
|
12
|
-
firstName:
|
|
13
|
-
lastName:
|
|
14
|
-
locale:
|
|
15
|
-
timezone:
|
|
16
|
-
imageUrl:
|
|
17
|
-
image:
|
|
18
|
-
metadata:
|
|
19
|
-
onboardingCompleted:
|
|
20
|
-
onboardingStep:
|
|
21
|
-
whitelistedAt:
|
|
22
|
-
role:
|
|
23
|
-
banned:
|
|
24
|
-
banReason:
|
|
25
|
-
banExpires:
|
|
26
|
-
phoneNumber:
|
|
27
|
-
phoneNumberVerified:
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
30
|
-
sessions:
|
|
31
|
-
accounts:
|
|
32
|
-
memberships:
|
|
33
|
-
invitations:
|
|
34
|
-
teamMemberships:
|
|
35
|
-
policyBindings:
|
|
36
|
-
apiKeys:
|
|
37
|
-
passkeys:
|
|
7
|
+
declare const UserEntity: _contractspec_lib_schema511.EntitySpec<{
|
|
8
|
+
id: _contractspec_lib_schema511.EntityScalarField;
|
|
9
|
+
email: _contractspec_lib_schema511.EntityScalarField;
|
|
10
|
+
emailVerified: _contractspec_lib_schema511.EntityScalarField;
|
|
11
|
+
name: _contractspec_lib_schema511.EntityScalarField;
|
|
12
|
+
firstName: _contractspec_lib_schema511.EntityScalarField;
|
|
13
|
+
lastName: _contractspec_lib_schema511.EntityScalarField;
|
|
14
|
+
locale: _contractspec_lib_schema511.EntityScalarField;
|
|
15
|
+
timezone: _contractspec_lib_schema511.EntityScalarField;
|
|
16
|
+
imageUrl: _contractspec_lib_schema511.EntityScalarField;
|
|
17
|
+
image: _contractspec_lib_schema511.EntityScalarField;
|
|
18
|
+
metadata: _contractspec_lib_schema511.EntityScalarField;
|
|
19
|
+
onboardingCompleted: _contractspec_lib_schema511.EntityScalarField;
|
|
20
|
+
onboardingStep: _contractspec_lib_schema511.EntityScalarField;
|
|
21
|
+
whitelistedAt: _contractspec_lib_schema511.EntityScalarField;
|
|
22
|
+
role: _contractspec_lib_schema511.EntityScalarField;
|
|
23
|
+
banned: _contractspec_lib_schema511.EntityScalarField;
|
|
24
|
+
banReason: _contractspec_lib_schema511.EntityScalarField;
|
|
25
|
+
banExpires: _contractspec_lib_schema511.EntityScalarField;
|
|
26
|
+
phoneNumber: _contractspec_lib_schema511.EntityScalarField;
|
|
27
|
+
phoneNumberVerified: _contractspec_lib_schema511.EntityScalarField;
|
|
28
|
+
createdAt: _contractspec_lib_schema511.EntityScalarField;
|
|
29
|
+
updatedAt: _contractspec_lib_schema511.EntityScalarField;
|
|
30
|
+
sessions: _contractspec_lib_schema511.EntityRelationField;
|
|
31
|
+
accounts: _contractspec_lib_schema511.EntityRelationField;
|
|
32
|
+
memberships: _contractspec_lib_schema511.EntityRelationField;
|
|
33
|
+
invitations: _contractspec_lib_schema511.EntityRelationField;
|
|
34
|
+
teamMemberships: _contractspec_lib_schema511.EntityRelationField;
|
|
35
|
+
policyBindings: _contractspec_lib_schema511.EntityRelationField;
|
|
36
|
+
apiKeys: _contractspec_lib_schema511.EntityRelationField;
|
|
37
|
+
passkeys: _contractspec_lib_schema511.EntityRelationField;
|
|
38
38
|
}>;
|
|
39
39
|
/**
|
|
40
40
|
* Session entity - login sessions.
|
|
41
41
|
*/
|
|
42
|
-
declare const SessionEntity:
|
|
43
|
-
id:
|
|
44
|
-
userId:
|
|
45
|
-
expiresAt:
|
|
46
|
-
token:
|
|
47
|
-
ipAddress:
|
|
48
|
-
userAgent:
|
|
49
|
-
impersonatedBy:
|
|
50
|
-
activeOrganizationId:
|
|
51
|
-
activeTeamId:
|
|
52
|
-
createdAt:
|
|
53
|
-
updatedAt:
|
|
54
|
-
user:
|
|
42
|
+
declare const SessionEntity: _contractspec_lib_schema511.EntitySpec<{
|
|
43
|
+
id: _contractspec_lib_schema511.EntityScalarField;
|
|
44
|
+
userId: _contractspec_lib_schema511.EntityScalarField;
|
|
45
|
+
expiresAt: _contractspec_lib_schema511.EntityScalarField;
|
|
46
|
+
token: _contractspec_lib_schema511.EntityScalarField;
|
|
47
|
+
ipAddress: _contractspec_lib_schema511.EntityScalarField;
|
|
48
|
+
userAgent: _contractspec_lib_schema511.EntityScalarField;
|
|
49
|
+
impersonatedBy: _contractspec_lib_schema511.EntityScalarField;
|
|
50
|
+
activeOrganizationId: _contractspec_lib_schema511.EntityScalarField;
|
|
51
|
+
activeTeamId: _contractspec_lib_schema511.EntityScalarField;
|
|
52
|
+
createdAt: _contractspec_lib_schema511.EntityScalarField;
|
|
53
|
+
updatedAt: _contractspec_lib_schema511.EntityScalarField;
|
|
54
|
+
user: _contractspec_lib_schema511.EntityRelationField;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Account entity - external authentication accounts.
|
|
58
58
|
*/
|
|
59
|
-
declare const AccountEntity:
|
|
60
|
-
id:
|
|
61
|
-
accountId:
|
|
62
|
-
providerId:
|
|
63
|
-
userId:
|
|
64
|
-
accessToken:
|
|
65
|
-
refreshToken:
|
|
66
|
-
idToken:
|
|
67
|
-
accessTokenExpiresAt:
|
|
68
|
-
refreshTokenExpiresAt:
|
|
69
|
-
scope:
|
|
70
|
-
password:
|
|
71
|
-
createdAt:
|
|
72
|
-
updatedAt:
|
|
73
|
-
user:
|
|
59
|
+
declare const AccountEntity: _contractspec_lib_schema511.EntitySpec<{
|
|
60
|
+
id: _contractspec_lib_schema511.EntityScalarField;
|
|
61
|
+
accountId: _contractspec_lib_schema511.EntityScalarField;
|
|
62
|
+
providerId: _contractspec_lib_schema511.EntityScalarField;
|
|
63
|
+
userId: _contractspec_lib_schema511.EntityScalarField;
|
|
64
|
+
accessToken: _contractspec_lib_schema511.EntityScalarField;
|
|
65
|
+
refreshToken: _contractspec_lib_schema511.EntityScalarField;
|
|
66
|
+
idToken: _contractspec_lib_schema511.EntityScalarField;
|
|
67
|
+
accessTokenExpiresAt: _contractspec_lib_schema511.EntityScalarField;
|
|
68
|
+
refreshTokenExpiresAt: _contractspec_lib_schema511.EntityScalarField;
|
|
69
|
+
scope: _contractspec_lib_schema511.EntityScalarField;
|
|
70
|
+
password: _contractspec_lib_schema511.EntityScalarField;
|
|
71
|
+
createdAt: _contractspec_lib_schema511.EntityScalarField;
|
|
72
|
+
updatedAt: _contractspec_lib_schema511.EntityScalarField;
|
|
73
|
+
user: _contractspec_lib_schema511.EntityRelationField;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Verification entity - email/phone verification tokens.
|
|
77
77
|
*/
|
|
78
|
-
declare const VerificationEntity:
|
|
79
|
-
id:
|
|
80
|
-
identifier:
|
|
81
|
-
value:
|
|
82
|
-
expiresAt:
|
|
83
|
-
createdAt:
|
|
84
|
-
updatedAt:
|
|
78
|
+
declare const VerificationEntity: _contractspec_lib_schema511.EntitySpec<{
|
|
79
|
+
id: _contractspec_lib_schema511.EntityScalarField;
|
|
80
|
+
identifier: _contractspec_lib_schema511.EntityScalarField;
|
|
81
|
+
value: _contractspec_lib_schema511.EntityScalarField;
|
|
82
|
+
expiresAt: _contractspec_lib_schema511.EntityScalarField;
|
|
83
|
+
createdAt: _contractspec_lib_schema511.EntityScalarField;
|
|
84
|
+
updatedAt: _contractspec_lib_schema511.EntityScalarField;
|
|
85
85
|
}>;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { AccountEntity, SessionEntity, UserEntity, VerificationEntity };
|
package/dist/events.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _contractspec_lib_contracts2 from "@contractspec/lib.contracts";
|
|
4
4
|
|
|
5
5
|
//#region src/events.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Emitted when a new user is created.
|
|
8
8
|
*/
|
|
9
|
-
declare const UserCreatedEvent:
|
|
9
|
+
declare const UserCreatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
10
10
|
userId: {
|
|
11
11
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
@@ -27,7 +27,7 @@ declare const UserCreatedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMod
|
|
|
27
27
|
/**
|
|
28
28
|
* Emitted when a user profile is updated.
|
|
29
29
|
*/
|
|
30
|
-
declare const UserUpdatedEvent:
|
|
30
|
+
declare const UserUpdatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
31
31
|
userId: {
|
|
32
32
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
33
33
|
isOptional: false;
|
|
@@ -45,7 +45,7 @@ declare const UserUpdatedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMod
|
|
|
45
45
|
/**
|
|
46
46
|
* Emitted when a user is deleted.
|
|
47
47
|
*/
|
|
48
|
-
declare const UserDeletedEvent:
|
|
48
|
+
declare const UserDeletedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
49
49
|
userId: {
|
|
50
50
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
@@ -62,7 +62,7 @@ declare const UserDeletedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMod
|
|
|
62
62
|
/**
|
|
63
63
|
* Emitted when a user's email is verified.
|
|
64
64
|
*/
|
|
65
|
-
declare const UserEmailVerifiedEvent:
|
|
65
|
+
declare const UserEmailVerifiedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
66
66
|
userId: {
|
|
67
67
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
@@ -79,7 +79,7 @@ declare const UserEmailVerifiedEvent: _contractspec_lib_contracts0.EventSpec<Sch
|
|
|
79
79
|
/**
|
|
80
80
|
* Emitted when a new organization is created.
|
|
81
81
|
*/
|
|
82
|
-
declare const OrgCreatedEvent:
|
|
82
|
+
declare const OrgCreatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
83
83
|
orgId: {
|
|
84
84
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
@@ -104,7 +104,7 @@ declare const OrgCreatedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMode
|
|
|
104
104
|
/**
|
|
105
105
|
* Emitted when an organization is updated.
|
|
106
106
|
*/
|
|
107
|
-
declare const OrgUpdatedEvent:
|
|
107
|
+
declare const OrgUpdatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
108
108
|
orgId: {
|
|
109
109
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
@@ -126,7 +126,7 @@ declare const OrgUpdatedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMode
|
|
|
126
126
|
/**
|
|
127
127
|
* Emitted when an organization is deleted.
|
|
128
128
|
*/
|
|
129
|
-
declare const OrgDeletedEvent:
|
|
129
|
+
declare const OrgDeletedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
130
130
|
orgId: {
|
|
131
131
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
@@ -147,7 +147,7 @@ declare const OrgDeletedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMode
|
|
|
147
147
|
/**
|
|
148
148
|
* Emitted when a member joins an organization.
|
|
149
149
|
*/
|
|
150
|
-
declare const OrgMemberAddedEvent:
|
|
150
|
+
declare const OrgMemberAddedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
151
151
|
orgId: {
|
|
152
152
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
153
153
|
isOptional: false;
|
|
@@ -172,7 +172,7 @@ declare const OrgMemberAddedEvent: _contractspec_lib_contracts0.EventSpec<Schema
|
|
|
172
172
|
/**
|
|
173
173
|
* Emitted when a member leaves or is removed from an organization.
|
|
174
174
|
*/
|
|
175
|
-
declare const OrgMemberRemovedEvent:
|
|
175
|
+
declare const OrgMemberRemovedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
176
176
|
orgId: {
|
|
177
177
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
@@ -197,7 +197,7 @@ declare const OrgMemberRemovedEvent: _contractspec_lib_contracts0.EventSpec<Sche
|
|
|
197
197
|
/**
|
|
198
198
|
* Emitted when a member's role is changed.
|
|
199
199
|
*/
|
|
200
|
-
declare const OrgMemberRoleChangedEvent:
|
|
200
|
+
declare const OrgMemberRoleChangedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
201
201
|
orgId: {
|
|
202
202
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
@@ -226,7 +226,7 @@ declare const OrgMemberRoleChangedEvent: _contractspec_lib_contracts0.EventSpec<
|
|
|
226
226
|
/**
|
|
227
227
|
* Emitted when an invitation is sent.
|
|
228
228
|
*/
|
|
229
|
-
declare const OrgInviteSentEvent:
|
|
229
|
+
declare const OrgInviteSentEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
230
230
|
invitationId: {
|
|
231
231
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
232
232
|
isOptional: false;
|
|
@@ -259,7 +259,7 @@ declare const OrgInviteSentEvent: _contractspec_lib_contracts0.EventSpec<SchemaM
|
|
|
259
259
|
/**
|
|
260
260
|
* Emitted when an invitation is accepted.
|
|
261
261
|
*/
|
|
262
|
-
declare const OrgInviteAcceptedEvent:
|
|
262
|
+
declare const OrgInviteAcceptedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
263
263
|
invitationId: {
|
|
264
264
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
265
265
|
isOptional: false;
|
|
@@ -280,7 +280,7 @@ declare const OrgInviteAcceptedEvent: _contractspec_lib_contracts0.EventSpec<Sch
|
|
|
280
280
|
/**
|
|
281
281
|
* Emitted when an invitation is declined.
|
|
282
282
|
*/
|
|
283
|
-
declare const OrgInviteDeclinedEvent:
|
|
283
|
+
declare const OrgInviteDeclinedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
284
284
|
invitationId: {
|
|
285
285
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
286
286
|
isOptional: false;
|
|
@@ -297,7 +297,7 @@ declare const OrgInviteDeclinedEvent: _contractspec_lib_contracts0.EventSpec<Sch
|
|
|
297
297
|
/**
|
|
298
298
|
* Emitted when a role is assigned to a user or organization.
|
|
299
299
|
*/
|
|
300
|
-
declare const RoleAssignedEvent:
|
|
300
|
+
declare const RoleAssignedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
301
301
|
bindingId: {
|
|
302
302
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
303
303
|
isOptional: false;
|
|
@@ -334,7 +334,7 @@ declare const RoleAssignedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMo
|
|
|
334
334
|
/**
|
|
335
335
|
* Emitted when a role is revoked from a user or organization.
|
|
336
336
|
*/
|
|
337
|
-
declare const RoleRevokedEvent:
|
|
337
|
+
declare const RoleRevokedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
338
338
|
bindingId: {
|
|
339
339
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
340
340
|
isOptional: false;
|
|
@@ -368,7 +368,7 @@ declare const RoleRevokedEvent: _contractspec_lib_contracts0.EventSpec<SchemaMod
|
|
|
368
368
|
* All identity-rbac events.
|
|
369
369
|
*/
|
|
370
370
|
declare const IdentityRbacEvents: {
|
|
371
|
-
UserCreatedEvent:
|
|
371
|
+
UserCreatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
372
372
|
userId: {
|
|
373
373
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
374
374
|
isOptional: false;
|
|
@@ -386,7 +386,7 @@ declare const IdentityRbacEvents: {
|
|
|
386
386
|
isOptional: false;
|
|
387
387
|
};
|
|
388
388
|
}>>;
|
|
389
|
-
UserUpdatedEvent:
|
|
389
|
+
UserUpdatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
390
390
|
userId: {
|
|
391
391
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
392
392
|
isOptional: false;
|
|
@@ -401,7 +401,7 @@ declare const IdentityRbacEvents: {
|
|
|
401
401
|
isOptional: false;
|
|
402
402
|
};
|
|
403
403
|
}>>;
|
|
404
|
-
UserDeletedEvent:
|
|
404
|
+
UserDeletedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
405
405
|
userId: {
|
|
406
406
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
407
407
|
isOptional: false;
|
|
@@ -415,7 +415,7 @@ declare const IdentityRbacEvents: {
|
|
|
415
415
|
isOptional: false;
|
|
416
416
|
};
|
|
417
417
|
}>>;
|
|
418
|
-
UserEmailVerifiedEvent:
|
|
418
|
+
UserEmailVerifiedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
419
419
|
userId: {
|
|
420
420
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
421
421
|
isOptional: false;
|
|
@@ -429,7 +429,7 @@ declare const IdentityRbacEvents: {
|
|
|
429
429
|
isOptional: false;
|
|
430
430
|
};
|
|
431
431
|
}>>;
|
|
432
|
-
OrgCreatedEvent:
|
|
432
|
+
OrgCreatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
433
433
|
orgId: {
|
|
434
434
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
435
435
|
isOptional: false;
|
|
@@ -451,7 +451,7 @@ declare const IdentityRbacEvents: {
|
|
|
451
451
|
isOptional: false;
|
|
452
452
|
};
|
|
453
453
|
}>>;
|
|
454
|
-
OrgUpdatedEvent:
|
|
454
|
+
OrgUpdatedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
455
455
|
orgId: {
|
|
456
456
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
457
457
|
isOptional: false;
|
|
@@ -470,7 +470,7 @@ declare const IdentityRbacEvents: {
|
|
|
470
470
|
isOptional: false;
|
|
471
471
|
};
|
|
472
472
|
}>>;
|
|
473
|
-
OrgDeletedEvent:
|
|
473
|
+
OrgDeletedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
474
474
|
orgId: {
|
|
475
475
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
476
476
|
isOptional: false;
|
|
@@ -488,7 +488,7 @@ declare const IdentityRbacEvents: {
|
|
|
488
488
|
isOptional: false;
|
|
489
489
|
};
|
|
490
490
|
}>>;
|
|
491
|
-
OrgMemberAddedEvent:
|
|
491
|
+
OrgMemberAddedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
492
492
|
orgId: {
|
|
493
493
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
494
494
|
isOptional: false;
|
|
@@ -510,7 +510,7 @@ declare const IdentityRbacEvents: {
|
|
|
510
510
|
isOptional: false;
|
|
511
511
|
};
|
|
512
512
|
}>>;
|
|
513
|
-
OrgMemberRemovedEvent:
|
|
513
|
+
OrgMemberRemovedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
514
514
|
orgId: {
|
|
515
515
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
516
516
|
isOptional: false;
|
|
@@ -532,7 +532,7 @@ declare const IdentityRbacEvents: {
|
|
|
532
532
|
isOptional: false;
|
|
533
533
|
};
|
|
534
534
|
}>>;
|
|
535
|
-
OrgMemberRoleChangedEvent:
|
|
535
|
+
OrgMemberRoleChangedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
536
536
|
orgId: {
|
|
537
537
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
538
538
|
isOptional: false;
|
|
@@ -558,7 +558,7 @@ declare const IdentityRbacEvents: {
|
|
|
558
558
|
isOptional: false;
|
|
559
559
|
};
|
|
560
560
|
}>>;
|
|
561
|
-
OrgInviteSentEvent:
|
|
561
|
+
OrgInviteSentEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
562
562
|
invitationId: {
|
|
563
563
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
564
564
|
isOptional: false;
|
|
@@ -588,7 +588,7 @@ declare const IdentityRbacEvents: {
|
|
|
588
588
|
isOptional: false;
|
|
589
589
|
};
|
|
590
590
|
}>>;
|
|
591
|
-
OrgInviteAcceptedEvent:
|
|
591
|
+
OrgInviteAcceptedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
592
592
|
invitationId: {
|
|
593
593
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
594
594
|
isOptional: false;
|
|
@@ -606,7 +606,7 @@ declare const IdentityRbacEvents: {
|
|
|
606
606
|
isOptional: false;
|
|
607
607
|
};
|
|
608
608
|
}>>;
|
|
609
|
-
OrgInviteDeclinedEvent:
|
|
609
|
+
OrgInviteDeclinedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
610
610
|
invitationId: {
|
|
611
611
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
612
612
|
isOptional: false;
|
|
@@ -620,7 +620,7 @@ declare const IdentityRbacEvents: {
|
|
|
620
620
|
isOptional: false;
|
|
621
621
|
};
|
|
622
622
|
}>>;
|
|
623
|
-
RoleAssignedEvent:
|
|
623
|
+
RoleAssignedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
624
624
|
bindingId: {
|
|
625
625
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
626
626
|
isOptional: false;
|
|
@@ -654,7 +654,7 @@ declare const IdentityRbacEvents: {
|
|
|
654
654
|
isOptional: false;
|
|
655
655
|
};
|
|
656
656
|
}>>;
|
|
657
|
-
RoleRevokedEvent:
|
|
657
|
+
RoleRevokedEvent: _contractspec_lib_contracts2.EventSpec<SchemaModel<{
|
|
658
658
|
bindingId: {
|
|
659
659
|
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
660
660
|
isOptional: false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts0 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_contracts0.CapabilitySpec;
|
|
5
|
+
declare const RbacCapability: _contractspec_lib_contracts0.CapabilitySpec;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { IdentityCapability, RbacCapability };
|
|
8
8
|
//# sourceMappingURL=identity-rbac.capability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-rbac.capability.d.ts","names":[],"sources":["../src/identity-rbac.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,oBAUX,
|
|
1
|
+
{"version":3,"file":"identity-rbac.capability.d.ts","names":[],"sources":["../src/identity-rbac.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,oBAUX,4BAAA,CAV6B;cAYlB,gBAUX,4BAAA,CAVyB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts1 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_contracts31 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_contracts1.FeatureModuleSpec;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { IdentityRbacFeature };
|
|
12
12
|
//# sourceMappingURL=identity-rbac.feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-rbac.feature.d.ts","names":[],"sources":["../src/identity-rbac.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,qBAkFX,
|
|
1
|
+
{"version":3,"file":"identity-rbac.feature.d.ts","names":[],"sources":["../src/identity-rbac.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,qBAkFX,4BAAA,CAlF8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.identity-rbac",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20260119224015",
|
|
4
4
|
"description": "Identity, Organizations, and RBAC module for ContractSpec applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@contractspec/lib.schema": "1.48.0",
|
|
29
|
-
"@contractspec/lib.contracts": "0.0.0-canary-
|
|
29
|
+
"@contractspec/lib.contracts": "0.0.0-canary-20260119224015",
|
|
30
30
|
"zod": "^4.3.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|