@contractspec/lib.identity-rbac 1.44.0 → 1.45.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 +190 -190
- package/dist/contracts/organization.js +13 -13
- package/dist/contracts/organization.js.map +1 -1
- package/dist/contracts/rbac.d.ts +120 -120
- package/dist/contracts/rbac.js +10 -10
- package/dist/contracts/rbac.js.map +1 -1
- package/dist/contracts/user.d.ts +137 -137
- package/dist/contracts/user.js +8 -8
- package/dist/contracts/user.js.map +1 -1
- 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.js +15 -15
- package/dist/events.js.map +1 -1
- package/dist/identity-rbac.feature.js +39 -39
- package/dist/identity-rbac.feature.js.map +1 -1
- package/package.json +13 -5
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const IdentityRbacFeature = {
|
|
7
7
|
meta: {
|
|
8
8
|
key: "identity-rbac",
|
|
9
|
-
version: 1,
|
|
9
|
+
version: "1.0.0",
|
|
10
10
|
title: "Identity & RBAC",
|
|
11
11
|
description: "User identity, organization management, and role-based access control",
|
|
12
12
|
domain: "platform",
|
|
@@ -23,149 +23,149 @@ const IdentityRbacFeature = {
|
|
|
23
23
|
operations: [
|
|
24
24
|
{
|
|
25
25
|
key: "identity.user.create",
|
|
26
|
-
version: 1
|
|
26
|
+
version: "1.0.0"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: "identity.user.update",
|
|
30
|
-
version: 1
|
|
30
|
+
version: "1.0.0"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
key: "identity.user.delete",
|
|
34
|
-
version: 1
|
|
34
|
+
version: "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
key: "identity.user.me",
|
|
38
|
-
version: 1
|
|
38
|
+
version: "1.0.0"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
key: "identity.user.list",
|
|
42
|
-
version: 1
|
|
42
|
+
version: "1.0.0"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
key: "identity.org.create",
|
|
46
|
-
version: 1
|
|
46
|
+
version: "1.0.0"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
key: "identity.org.update",
|
|
50
|
-
version: 1
|
|
50
|
+
version: "1.0.0"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
key: "identity.org.get",
|
|
54
|
-
version: 1
|
|
54
|
+
version: "1.0.0"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
key: "identity.org.list",
|
|
58
|
-
version: 1
|
|
58
|
+
version: "1.0.0"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
key: "identity.org.invite",
|
|
62
|
-
version: 1
|
|
62
|
+
version: "1.0.0"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: "identity.org.invite.accept",
|
|
66
|
-
version: 1
|
|
66
|
+
version: "1.0.0"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
key: "identity.org.member.remove",
|
|
70
|
-
version: 1
|
|
70
|
+
version: "1.0.0"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
key: "identity.org.members.list",
|
|
74
|
-
version: 1
|
|
74
|
+
version: "1.0.0"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
key: "identity.rbac.role.create",
|
|
78
|
-
version: 1
|
|
78
|
+
version: "1.0.0"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: "identity.rbac.role.update",
|
|
82
|
-
version: 1
|
|
82
|
+
version: "1.0.0"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
key: "identity.rbac.role.delete",
|
|
86
|
-
version: 1
|
|
86
|
+
version: "1.0.0"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
key: "identity.rbac.role.list",
|
|
90
|
-
version: 1
|
|
90
|
+
version: "1.0.0"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
key: "identity.rbac.assign",
|
|
94
|
-
version: 1
|
|
94
|
+
version: "1.0.0"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: "identity.rbac.revoke",
|
|
98
|
-
version: 1
|
|
98
|
+
version: "1.0.0"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
key: "identity.rbac.check",
|
|
102
|
-
version: 1
|
|
102
|
+
version: "1.0.0"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
key: "identity.rbac.permissions",
|
|
106
|
-
version: 1
|
|
106
|
+
version: "1.0.0"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
events: [
|
|
110
110
|
{
|
|
111
111
|
key: "user.created",
|
|
112
|
-
version: 1
|
|
112
|
+
version: "1.0.0"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
key: "user.updated",
|
|
116
|
-
version: 1
|
|
116
|
+
version: "1.0.0"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
key: "user.deleted",
|
|
120
|
-
version: 1
|
|
120
|
+
version: "1.0.0"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
key: "user.email_verified",
|
|
124
|
-
version: 1
|
|
124
|
+
version: "1.0.0"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
key: "org.created",
|
|
128
|
-
version: 1
|
|
128
|
+
version: "1.0.0"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
key: "org.updated",
|
|
132
|
-
version: 1
|
|
132
|
+
version: "1.0.0"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: "org.deleted",
|
|
136
|
-
version: 1
|
|
136
|
+
version: "1.0.0"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: "org.member.added",
|
|
140
|
-
version: 1
|
|
140
|
+
version: "1.0.0"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
key: "org.member.removed",
|
|
144
|
-
version: 1
|
|
144
|
+
version: "1.0.0"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
key: "org.member.role_changed",
|
|
148
|
-
version: 1
|
|
148
|
+
version: "1.0.0"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: "org.invite.sent",
|
|
152
|
-
version: 1
|
|
152
|
+
version: "1.0.0"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: "org.invite.accepted",
|
|
156
|
-
version: 1
|
|
156
|
+
version: "1.0.0"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
key: "org.invite.declined",
|
|
160
|
-
version: 1
|
|
160
|
+
version: "1.0.0"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
key: "role.assigned",
|
|
164
|
-
version: 1
|
|
164
|
+
version: "1.0.0"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
key: "role.revoked",
|
|
168
|
-
version: 1
|
|
168
|
+
version: "1.0.0"
|
|
169
169
|
}
|
|
170
170
|
],
|
|
171
171
|
presentations: [],
|
|
@@ -174,10 +174,10 @@ const IdentityRbacFeature = {
|
|
|
174
174
|
capabilities: {
|
|
175
175
|
provides: [{
|
|
176
176
|
key: "identity",
|
|
177
|
-
version: 1
|
|
177
|
+
version: "1.0.0"
|
|
178
178
|
}, {
|
|
179
179
|
key: "rbac",
|
|
180
|
-
version: 1
|
|
180
|
+
version: "1.0.0"
|
|
181
181
|
}],
|
|
182
182
|
requires: []
|
|
183
183
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-rbac.feature.js","names":["IdentityRbacFeature: FeatureModuleSpec"],"sources":["../src/identity-rbac.feature.ts"],"sourcesContent":["/**\n * Identity RBAC Feature Module Specification\n *\n * Defines the feature module for identity management and role-based access control.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Identity RBAC feature module that bundles user, organization,\n * and role-based access control capabilities.\n */\nexport const IdentityRbacFeature: FeatureModuleSpec = {\n meta: {\n key: 'identity-rbac',\n version: 1,\n title: 'Identity & RBAC',\n description:\n 'User identity, organization management, and role-based access control',\n domain: 'platform',\n owners: ['@platform.identity-rbac'],\n tags: ['identity', 'rbac', 'users', 'organizations', 'permissions'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // User operations\n { key: 'identity.user.create', version: 1 },\n { key: 'identity.user.update', version: 1 },\n { key: 'identity.user.delete', version: 1 },\n { key: 'identity.user.me', version: 1 },\n { key: 'identity.user.list', version: 1 },\n\n // Organization operations\n { key: 'identity.org.create', version: 1 },\n { key: 'identity.org.update', version: 1 },\n { key: 'identity.org.get', version: 1 },\n { key: 'identity.org.list', version: 1 },\n { key: 'identity.org.invite', version: 1 },\n { key: 'identity.org.invite.accept', version: 1 },\n { key: 'identity.org.member.remove', version: 1 },\n { key: 'identity.org.members.list', version: 1 },\n\n // RBAC operations\n { key: 'identity.rbac.role.create', version: 1 },\n { key: 'identity.rbac.role.update', version: 1 },\n { key: 'identity.rbac.role.delete', version: 1 },\n { key: 'identity.rbac.role.list', version: 1 },\n { key: 'identity.rbac.assign', version: 1 },\n { key: 'identity.rbac.revoke', version: 1 },\n { key: 'identity.rbac.check', version: 1 },\n { key: 'identity.rbac.permissions', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // User events\n { key: 'user.created', version: 1 },\n { key: 'user.updated', version: 1 },\n { key: 'user.deleted', version: 1 },\n { key: 'user.email_verified', version: 1 },\n\n // Organization events\n { key: 'org.created', version: 1 },\n { key: 'org.updated', version: 1 },\n { key: 'org.deleted', version: 1 },\n { key: 'org.member.added', version: 1 },\n { key: 'org.member.removed', version: 1 },\n { key: 'org.member.role_changed', version: 1 },\n\n // Invitation events\n { key: 'org.invite.sent', version: 1 },\n { key: 'org.invite.accepted', version: 1 },\n { key: 'org.invite.declined', version: 1 },\n\n // Role events\n { key: 'role.assigned', version: 1 },\n { key: 'role.revoked', version: 1 },\n ],\n\n // No presentations for this library feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'identity', version: 1 },\n { key: 'rbac', version: 1 },\n ],\n requires: [],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,0BAA0B;EACnC,MAAM;GAAC;GAAY;GAAQ;GAAS;GAAiB;GAAc;EACnE,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,KAAK;GAAwB,SAAS;
|
|
1
|
+
{"version":3,"file":"identity-rbac.feature.js","names":["IdentityRbacFeature: FeatureModuleSpec"],"sources":["../src/identity-rbac.feature.ts"],"sourcesContent":["/**\n * Identity RBAC Feature Module Specification\n *\n * Defines the feature module for identity management and role-based access control.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Identity RBAC feature module that bundles user, organization,\n * and role-based access control capabilities.\n */\nexport const IdentityRbacFeature: FeatureModuleSpec = {\n meta: {\n key: 'identity-rbac',\n version: '1.0.0',\n title: 'Identity & RBAC',\n description:\n 'User identity, organization management, and role-based access control',\n domain: 'platform',\n owners: ['@platform.identity-rbac'],\n tags: ['identity', 'rbac', 'users', 'organizations', 'permissions'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // User operations\n { key: 'identity.user.create', version: '1.0.0' },\n { key: 'identity.user.update', version: '1.0.0' },\n { key: 'identity.user.delete', version: '1.0.0' },\n { key: 'identity.user.me', version: '1.0.0' },\n { key: 'identity.user.list', version: '1.0.0' },\n\n // Organization operations\n { key: 'identity.org.create', version: '1.0.0' },\n { key: 'identity.org.update', version: '1.0.0' },\n { key: 'identity.org.get', version: '1.0.0' },\n { key: 'identity.org.list', version: '1.0.0' },\n { key: 'identity.org.invite', version: '1.0.0' },\n { key: 'identity.org.invite.accept', version: '1.0.0' },\n { key: 'identity.org.member.remove', version: '1.0.0' },\n { key: 'identity.org.members.list', version: '1.0.0' },\n\n // RBAC operations\n { key: 'identity.rbac.role.create', version: '1.0.0' },\n { key: 'identity.rbac.role.update', version: '1.0.0' },\n { key: 'identity.rbac.role.delete', version: '1.0.0' },\n { key: 'identity.rbac.role.list', version: '1.0.0' },\n { key: 'identity.rbac.assign', version: '1.0.0' },\n { key: 'identity.rbac.revoke', version: '1.0.0' },\n { key: 'identity.rbac.check', version: '1.0.0' },\n { key: 'identity.rbac.permissions', version: '1.0.0' },\n ],\n\n // Events emitted by this feature\n events: [\n // User events\n { key: 'user.created', version: '1.0.0' },\n { key: 'user.updated', version: '1.0.0' },\n { key: 'user.deleted', version: '1.0.0' },\n { key: 'user.email_verified', version: '1.0.0' },\n\n // Organization events\n { key: 'org.created', version: '1.0.0' },\n { key: 'org.updated', version: '1.0.0' },\n { key: 'org.deleted', version: '1.0.0' },\n { key: 'org.member.added', version: '1.0.0' },\n { key: 'org.member.removed', version: '1.0.0' },\n { key: 'org.member.role_changed', version: '1.0.0' },\n\n // Invitation events\n { key: 'org.invite.sent', version: '1.0.0' },\n { key: 'org.invite.accepted', version: '1.0.0' },\n { key: 'org.invite.declined', version: '1.0.0' },\n\n // Role events\n { key: 'role.assigned', version: '1.0.0' },\n { key: 'role.revoked', version: '1.0.0' },\n ],\n\n // No presentations for this library feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'identity', version: '1.0.0' },\n { key: 'rbac', version: '1.0.0' },\n ],\n requires: [],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,sBAAyC;CACpD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,0BAA0B;EACnC,MAAM;GAAC;GAAY;GAAQ;GAAS;GAA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E,KAAK;GAAmB,SAAS;GAAS;EAC5C;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAGhD;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAgB,SAAS;GAAS;EAC1C;CAGD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CAGxB,cAAc;EACZ,UAAU,CACR;GAAE,KAAK;GAAY,SAAS;GAAS,EACrC;GAAE,KAAK;GAAQ,SAAS;GAAS,CAClC;EACD,UAAU,EAAE;EACb;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.identity-rbac",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Identity, Organizations, and RBAC module for ContractSpec applications",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"contractspec",
|
|
7
|
+
"identity",
|
|
8
|
+
"rbac",
|
|
9
|
+
"authorization",
|
|
10
|
+
"organizations",
|
|
11
|
+
"typescript"
|
|
12
|
+
],
|
|
5
13
|
"main": "./dist/index.js",
|
|
6
14
|
"types": "./dist/index.d.ts",
|
|
7
15
|
"type": "module",
|
|
@@ -18,13 +26,13 @@
|
|
|
18
26
|
"lint:check": "eslint src"
|
|
19
27
|
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"@contractspec/lib.schema": "1.
|
|
22
|
-
"@contractspec/lib.contracts": "1.
|
|
29
|
+
"@contractspec/lib.schema": "1.45.0",
|
|
30
|
+
"@contractspec/lib.contracts": "1.45.0",
|
|
23
31
|
"zod": "^4.1.13"
|
|
24
32
|
},
|
|
25
33
|
"devDependencies": {
|
|
26
|
-
"@contractspec/tool.typescript": "1.
|
|
27
|
-
"@contractspec/tool.tsdown": "1.
|
|
34
|
+
"@contractspec/tool.typescript": "1.45.0",
|
|
35
|
+
"@contractspec/tool.tsdown": "1.45.0",
|
|
28
36
|
"typescript": "^5.9.3"
|
|
29
37
|
},
|
|
30
38
|
"exports": {
|