@contractspec/lib.identity-rbac 1.52.0 → 1.53.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 +9 -9
- package/dist/contracts/rbac.d.ts +9 -9
- package/dist/contracts/user.d.ts +6 -6
- 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/identity-rbac.capability.d.ts +3 -3
- package/dist/identity-rbac.feature.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _contractspec_lib_schema141 from "@contractspec/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _contractspec_lib_contracts29 from "@contractspec/lib.contracts";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/organization.d.ts
|
|
6
6
|
declare const OrganizationModel: SchemaModel<{
|
|
@@ -354,7 +354,7 @@ declare const ListUserOrgsOutputModel: SchemaModel<{
|
|
|
354
354
|
/**
|
|
355
355
|
* Create a new organization.
|
|
356
356
|
*/
|
|
357
|
-
declare const CreateOrgContract:
|
|
357
|
+
declare const CreateOrgContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
358
358
|
name: {
|
|
359
359
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
360
360
|
isOptional: false;
|
|
@@ -446,7 +446,7 @@ declare const CreateOrgContract: _contractspec_lib_contracts32.OperationSpec<Sch
|
|
|
446
446
|
/**
|
|
447
447
|
* Get organization details.
|
|
448
448
|
*/
|
|
449
|
-
declare const GetOrgContract:
|
|
449
|
+
declare const GetOrgContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
450
450
|
orgId: {
|
|
451
451
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
452
452
|
isOptional: false;
|
|
@@ -488,7 +488,7 @@ declare const GetOrgContract: _contractspec_lib_contracts32.OperationSpec<Schema
|
|
|
488
488
|
/**
|
|
489
489
|
* Update organization.
|
|
490
490
|
*/
|
|
491
|
-
declare const UpdateOrgContract:
|
|
491
|
+
declare const UpdateOrgContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
492
492
|
orgId: {
|
|
493
493
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
494
494
|
isOptional: false;
|
|
@@ -584,7 +584,7 @@ declare const UpdateOrgContract: _contractspec_lib_contracts32.OperationSpec<Sch
|
|
|
584
584
|
/**
|
|
585
585
|
* Invite a member to the organization.
|
|
586
586
|
*/
|
|
587
|
-
declare const InviteMemberContract:
|
|
587
|
+
declare const InviteMemberContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
588
588
|
orgId: {
|
|
589
589
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
590
590
|
isOptional: false;
|
|
@@ -660,7 +660,7 @@ declare const InviteMemberContract: _contractspec_lib_contracts32.OperationSpec<
|
|
|
660
660
|
/**
|
|
661
661
|
* Accept an invitation.
|
|
662
662
|
*/
|
|
663
|
-
declare const AcceptInviteContract:
|
|
663
|
+
declare const AcceptInviteContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
664
664
|
invitationId: {
|
|
665
665
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
666
666
|
isOptional: false;
|
|
@@ -750,7 +750,7 @@ declare const AcceptInviteContract: _contractspec_lib_contracts32.OperationSpec<
|
|
|
750
750
|
/**
|
|
751
751
|
* Remove a member from the organization.
|
|
752
752
|
*/
|
|
753
|
-
declare const RemoveMemberContract:
|
|
753
|
+
declare const RemoveMemberContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
754
754
|
orgId: {
|
|
755
755
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
756
756
|
isOptional: false;
|
|
@@ -782,7 +782,7 @@ declare const RemoveMemberContract: _contractspec_lib_contracts32.OperationSpec<
|
|
|
782
782
|
/**
|
|
783
783
|
* List organization members.
|
|
784
784
|
*/
|
|
785
|
-
declare const ListMembersContract:
|
|
785
|
+
declare const ListMembersContract: _contractspec_lib_contracts29.OperationSpec<SchemaModel<{
|
|
786
786
|
orgId: {
|
|
787
787
|
type: _contractspec_lib_schema141.FieldType<string, string>;
|
|
788
788
|
isOptional: false;
|
|
@@ -847,7 +847,7 @@ declare const ListMembersContract: _contractspec_lib_contracts32.OperationSpec<S
|
|
|
847
847
|
/**
|
|
848
848
|
* List user's organizations.
|
|
849
849
|
*/
|
|
850
|
-
declare const ListUserOrgsContract:
|
|
850
|
+
declare const ListUserOrgsContract: _contractspec_lib_contracts29.OperationSpec<_contractspec_lib_schema141.AnySchemaModel, SchemaModel<{
|
|
851
851
|
organizations: {
|
|
852
852
|
type: SchemaModel<{
|
|
853
853
|
id: {
|
package/dist/contracts/rbac.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _contractspec_lib_schema325 from "@contractspec/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _contractspec_lib_contracts38 from "@contractspec/lib.contracts";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/rbac.d.ts
|
|
6
6
|
declare const RoleModel: SchemaModel<{
|
|
@@ -252,7 +252,7 @@ declare const ListUserPermissionsOutputModel: SchemaModel<{
|
|
|
252
252
|
/**
|
|
253
253
|
* Create a new role.
|
|
254
254
|
*/
|
|
255
|
-
declare const CreateRoleContract:
|
|
255
|
+
declare const CreateRoleContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
256
256
|
name: {
|
|
257
257
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
258
258
|
isOptional: false;
|
|
@@ -292,7 +292,7 @@ declare const CreateRoleContract: _contractspec_lib_contracts40.OperationSpec<Sc
|
|
|
292
292
|
/**
|
|
293
293
|
* Update a role.
|
|
294
294
|
*/
|
|
295
|
-
declare const UpdateRoleContract:
|
|
295
|
+
declare const UpdateRoleContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
296
296
|
roleId: {
|
|
297
297
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
298
298
|
isOptional: false;
|
|
@@ -336,7 +336,7 @@ declare const UpdateRoleContract: _contractspec_lib_contracts40.OperationSpec<Sc
|
|
|
336
336
|
/**
|
|
337
337
|
* Delete a role.
|
|
338
338
|
*/
|
|
339
|
-
declare const DeleteRoleContract:
|
|
339
|
+
declare const DeleteRoleContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
340
340
|
roleId: {
|
|
341
341
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
@@ -350,7 +350,7 @@ declare const DeleteRoleContract: _contractspec_lib_contracts40.OperationSpec<Sc
|
|
|
350
350
|
/**
|
|
351
351
|
* List all roles.
|
|
352
352
|
*/
|
|
353
|
-
declare const ListRolesContract:
|
|
353
|
+
declare const ListRolesContract: _contractspec_lib_contracts38.OperationSpec<_contractspec_lib_schema325.AnySchemaModel, SchemaModel<{
|
|
354
354
|
roles: {
|
|
355
355
|
type: SchemaModel<{
|
|
356
356
|
id: {
|
|
@@ -382,7 +382,7 @@ declare const ListRolesContract: _contractspec_lib_contracts40.OperationSpec<_co
|
|
|
382
382
|
/**
|
|
383
383
|
* Assign a role to a user or organization.
|
|
384
384
|
*/
|
|
385
|
-
declare const AssignRoleContract:
|
|
385
|
+
declare const AssignRoleContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
386
386
|
roleId: {
|
|
387
387
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
388
388
|
isOptional: false;
|
|
@@ -510,7 +510,7 @@ declare const AssignRoleContract: _contractspec_lib_contracts40.OperationSpec<Sc
|
|
|
510
510
|
/**
|
|
511
511
|
* Revoke a role from a user or organization.
|
|
512
512
|
*/
|
|
513
|
-
declare const RevokeRoleContract:
|
|
513
|
+
declare const RevokeRoleContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
514
514
|
bindingId: {
|
|
515
515
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
516
516
|
isOptional: false;
|
|
@@ -534,7 +534,7 @@ declare const RevokeRoleContract: _contractspec_lib_contracts40.OperationSpec<Sc
|
|
|
534
534
|
/**
|
|
535
535
|
* Check if a user has a specific permission.
|
|
536
536
|
*/
|
|
537
|
-
declare const CheckPermissionContract:
|
|
537
|
+
declare const CheckPermissionContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
538
538
|
userId: {
|
|
539
539
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
540
540
|
isOptional: false;
|
|
@@ -564,7 +564,7 @@ declare const CheckPermissionContract: _contractspec_lib_contracts40.OperationSp
|
|
|
564
564
|
/**
|
|
565
565
|
* List permissions for a user.
|
|
566
566
|
*/
|
|
567
|
-
declare const ListUserPermissionsContract:
|
|
567
|
+
declare const ListUserPermissionsContract: _contractspec_lib_contracts38.OperationSpec<SchemaModel<{
|
|
568
568
|
userId: {
|
|
569
569
|
type: _contractspec_lib_schema325.FieldType<string, string>;
|
|
570
570
|
isOptional: false;
|
package/dist/contracts/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _contractspec_lib_schema442 from "@contractspec/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _contractspec_lib_contracts46 from "@contractspec/lib.contracts";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/user.d.ts
|
|
6
6
|
declare const UserProfileModel: SchemaModel<{
|
|
@@ -196,7 +196,7 @@ declare const ListUsersOutputModel: SchemaModel<{
|
|
|
196
196
|
/**
|
|
197
197
|
* Create a new user account.
|
|
198
198
|
*/
|
|
199
|
-
declare const CreateUserContract:
|
|
199
|
+
declare const CreateUserContract: _contractspec_lib_contracts46.OperationSpec<SchemaModel<{
|
|
200
200
|
email: {
|
|
201
201
|
type: _contractspec_lib_schema442.FieldType<string, string>;
|
|
202
202
|
isOptional: false;
|
|
@@ -324,7 +324,7 @@ declare const CreateUserContract: _contractspec_lib_contracts48.OperationSpec<Sc
|
|
|
324
324
|
/**
|
|
325
325
|
* Get the current user's profile.
|
|
326
326
|
*/
|
|
327
|
-
declare const GetCurrentUserContract:
|
|
327
|
+
declare const GetCurrentUserContract: _contractspec_lib_contracts46.OperationSpec<_contractspec_lib_schema442.AnySchemaModel, SchemaModel<{
|
|
328
328
|
id: {
|
|
329
329
|
type: _contractspec_lib_schema442.FieldType<string, string>;
|
|
330
330
|
isOptional: false;
|
|
@@ -377,7 +377,7 @@ declare const GetCurrentUserContract: _contractspec_lib_contracts48.OperationSpe
|
|
|
377
377
|
/**
|
|
378
378
|
* Update user profile.
|
|
379
379
|
*/
|
|
380
|
-
declare const UpdateUserContract:
|
|
380
|
+
declare const UpdateUserContract: _contractspec_lib_contracts46.OperationSpec<SchemaModel<{
|
|
381
381
|
name: {
|
|
382
382
|
type: _contractspec_lib_schema442.FieldType<string, string>;
|
|
383
383
|
isOptional: true;
|
|
@@ -509,7 +509,7 @@ declare const UpdateUserContract: _contractspec_lib_contracts48.OperationSpec<Sc
|
|
|
509
509
|
/**
|
|
510
510
|
* Delete user account.
|
|
511
511
|
*/
|
|
512
|
-
declare const DeleteUserContract:
|
|
512
|
+
declare const DeleteUserContract: _contractspec_lib_contracts46.OperationSpec<SchemaModel<{
|
|
513
513
|
confirmEmail: {
|
|
514
514
|
type: _contractspec_lib_schema442.FieldType<string, string>;
|
|
515
515
|
isOptional: false;
|
|
@@ -533,7 +533,7 @@ declare const DeleteUserContract: _contractspec_lib_contracts48.OperationSpec<Sc
|
|
|
533
533
|
/**
|
|
534
534
|
* List users (admin only).
|
|
535
535
|
*/
|
|
536
|
-
declare const ListUsersContract:
|
|
536
|
+
declare const ListUsersContract: _contractspec_lib_contracts46.OperationSpec<SchemaModel<{
|
|
537
537
|
limit: {
|
|
538
538
|
type: _contractspec_lib_schema442.FieldType<number, number>;
|
|
539
539
|
isOptional: true;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
import { AccountEntity, SessionEntity, UserEntity, VerificationEntity } from "./user.js";
|
|
2
2
|
import { InvitationEntity, MemberEntity, OrganizationEntity, OrganizationTypeEnum, TeamEntity, TeamMemberEntity } from "./organization.js";
|
|
3
3
|
import { ApiKeyEntity, PasskeyEntity, PermissionEntity, PolicyBindingEntity, RoleEntity } from "./rbac.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _contractspec_lib_schema633 from "@contractspec/lib.schema";
|
|
5
5
|
import { ModuleSchemaContribution } from "@contractspec/lib.schema";
|
|
6
6
|
|
|
7
7
|
//#region src/entities/index.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* All identity-rbac entities for schema composition.
|
|
10
10
|
*/
|
|
11
|
-
declare const identityRbacEntities: (
|
|
12
|
-
id:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}> |
|
|
110
|
-
id:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}> |
|
|
117
|
-
id:
|
|
118
|
-
name:
|
|
119
|
-
description:
|
|
120
|
-
createdAt:
|
|
121
|
-
updatedAt:
|
|
122
|
-
}> |
|
|
123
|
-
id:
|
|
124
|
-
roleId:
|
|
125
|
-
targetType:
|
|
126
|
-
targetId:
|
|
127
|
-
expiresAt:
|
|
128
|
-
createdAt:
|
|
129
|
-
userId:
|
|
130
|
-
organizationId:
|
|
131
|
-
role:
|
|
132
|
-
user:
|
|
133
|
-
organization:
|
|
134
|
-
}> |
|
|
135
|
-
id:
|
|
136
|
-
name:
|
|
137
|
-
start:
|
|
138
|
-
prefix:
|
|
139
|
-
key:
|
|
140
|
-
userId:
|
|
141
|
-
refillInterval:
|
|
142
|
-
refillAmount:
|
|
143
|
-
lastRefillAt:
|
|
144
|
-
remaining:
|
|
145
|
-
requestCount:
|
|
146
|
-
lastRequest:
|
|
147
|
-
enabled:
|
|
148
|
-
rateLimitEnabled:
|
|
149
|
-
rateLimitTimeWindow:
|
|
150
|
-
rateLimitMax:
|
|
151
|
-
expiresAt:
|
|
152
|
-
permissions:
|
|
153
|
-
metadata:
|
|
154
|
-
createdAt:
|
|
155
|
-
updatedAt:
|
|
156
|
-
user:
|
|
157
|
-
}> |
|
|
158
|
-
id:
|
|
159
|
-
name:
|
|
160
|
-
publicKey:
|
|
161
|
-
userId:
|
|
162
|
-
credentialID:
|
|
163
|
-
counter:
|
|
164
|
-
deviceType:
|
|
165
|
-
backedUp:
|
|
166
|
-
transports:
|
|
167
|
-
aaguid:
|
|
168
|
-
createdAt:
|
|
169
|
-
user:
|
|
11
|
+
declare const identityRbacEntities: (_contractspec_lib_schema633.EntitySpec<{
|
|
12
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
13
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
14
|
+
organizationId: _contractspec_lib_schema633.EntityScalarField;
|
|
15
|
+
role: _contractspec_lib_schema633.EntityScalarField;
|
|
16
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
17
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
18
|
+
organization: _contractspec_lib_schema633.EntityRelationField;
|
|
19
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
20
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
21
|
+
organizationId: _contractspec_lib_schema633.EntityScalarField;
|
|
22
|
+
email: _contractspec_lib_schema633.EntityScalarField;
|
|
23
|
+
role: _contractspec_lib_schema633.EntityScalarField;
|
|
24
|
+
status: _contractspec_lib_schema633.EntityScalarField;
|
|
25
|
+
acceptedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
26
|
+
expiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
27
|
+
inviterId: _contractspec_lib_schema633.EntityScalarField;
|
|
28
|
+
teamId: _contractspec_lib_schema633.EntityScalarField;
|
|
29
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
30
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
31
|
+
organization: _contractspec_lib_schema633.EntityRelationField;
|
|
32
|
+
inviter: _contractspec_lib_schema633.EntityRelationField;
|
|
33
|
+
team: _contractspec_lib_schema633.EntityRelationField;
|
|
34
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
35
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
36
|
+
name: _contractspec_lib_schema633.EntityScalarField;
|
|
37
|
+
organizationId: _contractspec_lib_schema633.EntityScalarField;
|
|
38
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
39
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
40
|
+
organization: _contractspec_lib_schema633.EntityRelationField;
|
|
41
|
+
members: _contractspec_lib_schema633.EntityRelationField;
|
|
42
|
+
invitations: _contractspec_lib_schema633.EntityRelationField;
|
|
43
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
44
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
45
|
+
teamId: _contractspec_lib_schema633.EntityScalarField;
|
|
46
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
47
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
48
|
+
team: _contractspec_lib_schema633.EntityRelationField;
|
|
49
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
50
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
51
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
52
|
+
email: _contractspec_lib_schema633.EntityScalarField;
|
|
53
|
+
emailVerified: _contractspec_lib_schema633.EntityScalarField;
|
|
54
|
+
name: _contractspec_lib_schema633.EntityScalarField;
|
|
55
|
+
firstName: _contractspec_lib_schema633.EntityScalarField;
|
|
56
|
+
lastName: _contractspec_lib_schema633.EntityScalarField;
|
|
57
|
+
locale: _contractspec_lib_schema633.EntityScalarField;
|
|
58
|
+
timezone: _contractspec_lib_schema633.EntityScalarField;
|
|
59
|
+
imageUrl: _contractspec_lib_schema633.EntityScalarField;
|
|
60
|
+
image: _contractspec_lib_schema633.EntityScalarField;
|
|
61
|
+
metadata: _contractspec_lib_schema633.EntityScalarField;
|
|
62
|
+
onboardingCompleted: _contractspec_lib_schema633.EntityScalarField;
|
|
63
|
+
onboardingStep: _contractspec_lib_schema633.EntityScalarField;
|
|
64
|
+
whitelistedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
65
|
+
role: _contractspec_lib_schema633.EntityScalarField;
|
|
66
|
+
banned: _contractspec_lib_schema633.EntityScalarField;
|
|
67
|
+
banReason: _contractspec_lib_schema633.EntityScalarField;
|
|
68
|
+
banExpires: _contractspec_lib_schema633.EntityScalarField;
|
|
69
|
+
phoneNumber: _contractspec_lib_schema633.EntityScalarField;
|
|
70
|
+
phoneNumberVerified: _contractspec_lib_schema633.EntityScalarField;
|
|
71
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
72
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
73
|
+
sessions: _contractspec_lib_schema633.EntityRelationField;
|
|
74
|
+
accounts: _contractspec_lib_schema633.EntityRelationField;
|
|
75
|
+
memberships: _contractspec_lib_schema633.EntityRelationField;
|
|
76
|
+
invitations: _contractspec_lib_schema633.EntityRelationField;
|
|
77
|
+
teamMemberships: _contractspec_lib_schema633.EntityRelationField;
|
|
78
|
+
policyBindings: _contractspec_lib_schema633.EntityRelationField;
|
|
79
|
+
apiKeys: _contractspec_lib_schema633.EntityRelationField;
|
|
80
|
+
passkeys: _contractspec_lib_schema633.EntityRelationField;
|
|
81
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
82
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
83
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
84
|
+
expiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
85
|
+
token: _contractspec_lib_schema633.EntityScalarField;
|
|
86
|
+
ipAddress: _contractspec_lib_schema633.EntityScalarField;
|
|
87
|
+
userAgent: _contractspec_lib_schema633.EntityScalarField;
|
|
88
|
+
impersonatedBy: _contractspec_lib_schema633.EntityScalarField;
|
|
89
|
+
activeOrganizationId: _contractspec_lib_schema633.EntityScalarField;
|
|
90
|
+
activeTeamId: _contractspec_lib_schema633.EntityScalarField;
|
|
91
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
92
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
93
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
94
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
95
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
96
|
+
accountId: _contractspec_lib_schema633.EntityScalarField;
|
|
97
|
+
providerId: _contractspec_lib_schema633.EntityScalarField;
|
|
98
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
99
|
+
accessToken: _contractspec_lib_schema633.EntityScalarField;
|
|
100
|
+
refreshToken: _contractspec_lib_schema633.EntityScalarField;
|
|
101
|
+
idToken: _contractspec_lib_schema633.EntityScalarField;
|
|
102
|
+
accessTokenExpiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
103
|
+
refreshTokenExpiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
104
|
+
scope: _contractspec_lib_schema633.EntityScalarField;
|
|
105
|
+
password: _contractspec_lib_schema633.EntityScalarField;
|
|
106
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
107
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
108
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
109
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
110
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
111
|
+
identifier: _contractspec_lib_schema633.EntityScalarField;
|
|
112
|
+
value: _contractspec_lib_schema633.EntityScalarField;
|
|
113
|
+
expiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
114
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
115
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
116
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
117
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
118
|
+
name: _contractspec_lib_schema633.EntityScalarField;
|
|
119
|
+
description: _contractspec_lib_schema633.EntityScalarField;
|
|
120
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
121
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
122
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
123
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
124
|
+
roleId: _contractspec_lib_schema633.EntityScalarField;
|
|
125
|
+
targetType: _contractspec_lib_schema633.EntityScalarField;
|
|
126
|
+
targetId: _contractspec_lib_schema633.EntityScalarField;
|
|
127
|
+
expiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
128
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
129
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
130
|
+
organizationId: _contractspec_lib_schema633.EntityScalarField;
|
|
131
|
+
role: _contractspec_lib_schema633.EntityRelationField;
|
|
132
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
133
|
+
organization: _contractspec_lib_schema633.EntityRelationField;
|
|
134
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
135
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
136
|
+
name: _contractspec_lib_schema633.EntityScalarField;
|
|
137
|
+
start: _contractspec_lib_schema633.EntityScalarField;
|
|
138
|
+
prefix: _contractspec_lib_schema633.EntityScalarField;
|
|
139
|
+
key: _contractspec_lib_schema633.EntityScalarField;
|
|
140
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
141
|
+
refillInterval: _contractspec_lib_schema633.EntityScalarField;
|
|
142
|
+
refillAmount: _contractspec_lib_schema633.EntityScalarField;
|
|
143
|
+
lastRefillAt: _contractspec_lib_schema633.EntityScalarField;
|
|
144
|
+
remaining: _contractspec_lib_schema633.EntityScalarField;
|
|
145
|
+
requestCount: _contractspec_lib_schema633.EntityScalarField;
|
|
146
|
+
lastRequest: _contractspec_lib_schema633.EntityScalarField;
|
|
147
|
+
enabled: _contractspec_lib_schema633.EntityScalarField;
|
|
148
|
+
rateLimitEnabled: _contractspec_lib_schema633.EntityScalarField;
|
|
149
|
+
rateLimitTimeWindow: _contractspec_lib_schema633.EntityScalarField;
|
|
150
|
+
rateLimitMax: _contractspec_lib_schema633.EntityScalarField;
|
|
151
|
+
expiresAt: _contractspec_lib_schema633.EntityScalarField;
|
|
152
|
+
permissions: _contractspec_lib_schema633.EntityScalarField;
|
|
153
|
+
metadata: _contractspec_lib_schema633.EntityScalarField;
|
|
154
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
155
|
+
updatedAt: _contractspec_lib_schema633.EntityScalarField;
|
|
156
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
157
|
+
}> | _contractspec_lib_schema633.EntitySpec<{
|
|
158
|
+
id: _contractspec_lib_schema633.EntityScalarField;
|
|
159
|
+
name: _contractspec_lib_schema633.EntityScalarField;
|
|
160
|
+
publicKey: _contractspec_lib_schema633.EntityScalarField;
|
|
161
|
+
userId: _contractspec_lib_schema633.EntityScalarField;
|
|
162
|
+
credentialID: _contractspec_lib_schema633.EntityScalarField;
|
|
163
|
+
counter: _contractspec_lib_schema633.EntityScalarField;
|
|
164
|
+
deviceType: _contractspec_lib_schema633.EntityScalarField;
|
|
165
|
+
backedUp: _contractspec_lib_schema633.EntityScalarField;
|
|
166
|
+
transports: _contractspec_lib_schema633.EntityScalarField;
|
|
167
|
+
aaguid: _contractspec_lib_schema633.EntityScalarField;
|
|
168
|
+
createdAt: _contractspec_lib_schema633.EntityScalarField;
|
|
169
|
+
user: _contractspec_lib_schema633.EntityRelationField;
|
|
170
170
|
}>)[];
|
|
171
171
|
/**
|
|
172
172
|
* Module schema contribution for identity-rbac.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAsDa,cAAA,oBAeZ,EAAA,6BAfgC,UAehC,CAAA;EAAA,EAAA,EAAA,2BAAA,CAAA,iBAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAsDa,cAAA,oBAeZ,EAAA,6BAfgC,UAehC,CAAA;EAAA,EAAA,EAAA,2BAAA,CAAA,iBAAA;;;;;;;2CAfgC,CAAA;EAAA,EAAA,EAAA,2BAAA,CAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBjC;;cAAa,gCAAgC"}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema575 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/organization.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Organization type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const OrganizationTypeEnum:
|
|
7
|
+
declare const OrganizationTypeEnum: _contractspec_lib_schema575.EntityEnumDef;
|
|
8
8
|
/**
|
|
9
9
|
* Organization entity - tenant/company grouping.
|
|
10
10
|
*/
|
|
11
|
-
declare const OrganizationEntity:
|
|
12
|
-
id:
|
|
13
|
-
name:
|
|
14
|
-
slug:
|
|
15
|
-
logo:
|
|
16
|
-
description:
|
|
17
|
-
metadata:
|
|
18
|
-
type:
|
|
19
|
-
onboardingCompleted:
|
|
20
|
-
onboardingStep:
|
|
21
|
-
referralCode:
|
|
22
|
-
referredBy:
|
|
23
|
-
createdAt:
|
|
24
|
-
updatedAt:
|
|
25
|
-
members:
|
|
26
|
-
invitations:
|
|
27
|
-
teams:
|
|
28
|
-
policyBindings:
|
|
11
|
+
declare const OrganizationEntity: _contractspec_lib_schema575.EntitySpec<{
|
|
12
|
+
id: _contractspec_lib_schema575.EntityScalarField;
|
|
13
|
+
name: _contractspec_lib_schema575.EntityScalarField;
|
|
14
|
+
slug: _contractspec_lib_schema575.EntityScalarField;
|
|
15
|
+
logo: _contractspec_lib_schema575.EntityScalarField;
|
|
16
|
+
description: _contractspec_lib_schema575.EntityScalarField;
|
|
17
|
+
metadata: _contractspec_lib_schema575.EntityScalarField;
|
|
18
|
+
type: _contractspec_lib_schema575.EntityEnumField;
|
|
19
|
+
onboardingCompleted: _contractspec_lib_schema575.EntityScalarField;
|
|
20
|
+
onboardingStep: _contractspec_lib_schema575.EntityScalarField;
|
|
21
|
+
referralCode: _contractspec_lib_schema575.EntityScalarField;
|
|
22
|
+
referredBy: _contractspec_lib_schema575.EntityScalarField;
|
|
23
|
+
createdAt: _contractspec_lib_schema575.EntityScalarField;
|
|
24
|
+
updatedAt: _contractspec_lib_schema575.EntityScalarField;
|
|
25
|
+
members: _contractspec_lib_schema575.EntityRelationField;
|
|
26
|
+
invitations: _contractspec_lib_schema575.EntityRelationField;
|
|
27
|
+
teams: _contractspec_lib_schema575.EntityRelationField;
|
|
28
|
+
policyBindings: _contractspec_lib_schema575.EntityRelationField;
|
|
29
29
|
}>;
|
|
30
30
|
/**
|
|
31
31
|
* Member entity - user membership in an organization.
|
|
32
32
|
*/
|
|
33
|
-
declare const MemberEntity:
|
|
34
|
-
id:
|
|
35
|
-
userId:
|
|
36
|
-
organizationId:
|
|
37
|
-
role:
|
|
38
|
-
createdAt:
|
|
39
|
-
user:
|
|
40
|
-
organization:
|
|
33
|
+
declare const MemberEntity: _contractspec_lib_schema575.EntitySpec<{
|
|
34
|
+
id: _contractspec_lib_schema575.EntityScalarField;
|
|
35
|
+
userId: _contractspec_lib_schema575.EntityScalarField;
|
|
36
|
+
organizationId: _contractspec_lib_schema575.EntityScalarField;
|
|
37
|
+
role: _contractspec_lib_schema575.EntityScalarField;
|
|
38
|
+
createdAt: _contractspec_lib_schema575.EntityScalarField;
|
|
39
|
+
user: _contractspec_lib_schema575.EntityRelationField;
|
|
40
|
+
organization: _contractspec_lib_schema575.EntityRelationField;
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Invitation entity - pending organization invites.
|
|
44
44
|
*/
|
|
45
|
-
declare const InvitationEntity:
|
|
46
|
-
id:
|
|
47
|
-
organizationId:
|
|
48
|
-
email:
|
|
49
|
-
role:
|
|
50
|
-
status:
|
|
51
|
-
acceptedAt:
|
|
52
|
-
expiresAt:
|
|
53
|
-
inviterId:
|
|
54
|
-
teamId:
|
|
55
|
-
createdAt:
|
|
56
|
-
updatedAt:
|
|
57
|
-
organization:
|
|
58
|
-
inviter:
|
|
59
|
-
team:
|
|
45
|
+
declare const InvitationEntity: _contractspec_lib_schema575.EntitySpec<{
|
|
46
|
+
id: _contractspec_lib_schema575.EntityScalarField;
|
|
47
|
+
organizationId: _contractspec_lib_schema575.EntityScalarField;
|
|
48
|
+
email: _contractspec_lib_schema575.EntityScalarField;
|
|
49
|
+
role: _contractspec_lib_schema575.EntityScalarField;
|
|
50
|
+
status: _contractspec_lib_schema575.EntityScalarField;
|
|
51
|
+
acceptedAt: _contractspec_lib_schema575.EntityScalarField;
|
|
52
|
+
expiresAt: _contractspec_lib_schema575.EntityScalarField;
|
|
53
|
+
inviterId: _contractspec_lib_schema575.EntityScalarField;
|
|
54
|
+
teamId: _contractspec_lib_schema575.EntityScalarField;
|
|
55
|
+
createdAt: _contractspec_lib_schema575.EntityScalarField;
|
|
56
|
+
updatedAt: _contractspec_lib_schema575.EntityScalarField;
|
|
57
|
+
organization: _contractspec_lib_schema575.EntityRelationField;
|
|
58
|
+
inviter: _contractspec_lib_schema575.EntityRelationField;
|
|
59
|
+
team: _contractspec_lib_schema575.EntityRelationField;
|
|
60
60
|
}>;
|
|
61
61
|
/**
|
|
62
62
|
* Team entity - team within an organization.
|
|
63
63
|
*/
|
|
64
|
-
declare const TeamEntity:
|
|
65
|
-
id:
|
|
66
|
-
name:
|
|
67
|
-
organizationId:
|
|
68
|
-
createdAt:
|
|
69
|
-
updatedAt:
|
|
70
|
-
organization:
|
|
71
|
-
members:
|
|
72
|
-
invitations:
|
|
64
|
+
declare const TeamEntity: _contractspec_lib_schema575.EntitySpec<{
|
|
65
|
+
id: _contractspec_lib_schema575.EntityScalarField;
|
|
66
|
+
name: _contractspec_lib_schema575.EntityScalarField;
|
|
67
|
+
organizationId: _contractspec_lib_schema575.EntityScalarField;
|
|
68
|
+
createdAt: _contractspec_lib_schema575.EntityScalarField;
|
|
69
|
+
updatedAt: _contractspec_lib_schema575.EntityScalarField;
|
|
70
|
+
organization: _contractspec_lib_schema575.EntityRelationField;
|
|
71
|
+
members: _contractspec_lib_schema575.EntityRelationField;
|
|
72
|
+
invitations: _contractspec_lib_schema575.EntityRelationField;
|
|
73
73
|
}>;
|
|
74
74
|
/**
|
|
75
75
|
* TeamMember entity - user's team membership.
|
|
76
76
|
*/
|
|
77
|
-
declare const TeamMemberEntity:
|
|
78
|
-
id:
|
|
79
|
-
teamId:
|
|
80
|
-
userId:
|
|
81
|
-
createdAt:
|
|
82
|
-
team:
|
|
83
|
-
user:
|
|
77
|
+
declare const TeamMemberEntity: _contractspec_lib_schema575.EntitySpec<{
|
|
78
|
+
id: _contractspec_lib_schema575.EntityScalarField;
|
|
79
|
+
teamId: _contractspec_lib_schema575.EntityScalarField;
|
|
80
|
+
userId: _contractspec_lib_schema575.EntityScalarField;
|
|
81
|
+
createdAt: _contractspec_lib_schema575.EntityScalarField;
|
|
82
|
+
team: _contractspec_lib_schema575.EntityRelationField;
|
|
83
|
+
user: _contractspec_lib_schema575.EntityRelationField;
|
|
84
84
|
}>;
|
|
85
85
|
//#endregion
|
|
86
86
|
export { InvitationEntity, MemberEntity, OrganizationEntity, OrganizationTypeEnum, TeamEntity, TeamMemberEntity };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_contracts51 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_contracts51.CapabilitySpec;
|
|
5
|
+
declare const RbacCapability: _contractspec_lib_contracts51.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_contracts37 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_contracts37.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.53.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.53.0",
|
|
29
|
+
"@contractspec/lib.contracts": "1.53.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.53.0",
|
|
34
|
+
"@contractspec/tool.tsdown": "1.53.0",
|
|
35
35
|
"typescript": "^5.9.3"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|