@lssm/lib.identity-rbac 0.0.0-canary-20251217080011 → 1.41.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.
Files changed (148) hide show
  1. package/dist/contracts/index.js +1 -5
  2. package/dist/contracts/organization.js +1 -607
  3. package/dist/contracts/rbac.js +1 -487
  4. package/dist/contracts/user.js +1 -335
  5. package/dist/entities/index.js +1 -35
  6. package/dist/entities/organization.js +1 -151
  7. package/dist/entities/rbac.js +1 -138
  8. package/dist/entities/user.js +1 -194
  9. package/dist/events.js +1 -543
  10. package/dist/identity-rbac.feature.js +1 -186
  11. package/dist/index.js +1 -14
  12. package/dist/policies/engine.js +1 -167
  13. package/dist/policies/index.js +1 -3
  14. package/package.json +18 -19
  15. package/dist/contracts/dist/capabilities/openbanking.js +0 -88
  16. package/dist/contracts/dist/client/index.js +0 -5
  17. package/dist/contracts/dist/client/react/feature-render.js +0 -2
  18. package/dist/contracts/dist/client/react/form-render.js +0 -4
  19. package/dist/contracts/dist/client/react/index.js +0 -4
  20. package/dist/contracts/dist/contract-registry/index.js +0 -1
  21. package/dist/contracts/dist/contract-registry/schemas.js +0 -60
  22. package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  23. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  24. package/dist/contracts/dist/docs/index.js +0 -29
  25. package/dist/contracts/dist/docs/presentations.js +0 -71
  26. package/dist/contracts/dist/docs/registry.js +0 -44
  27. package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  28. package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  29. package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  30. package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  31. package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  32. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  33. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  34. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  35. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  36. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  37. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  38. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  39. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  40. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  41. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  42. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  43. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  44. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  45. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  46. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  47. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  48. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  49. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  50. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  51. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  52. package/dist/contracts/dist/events.js +0 -10
  53. package/dist/contracts/dist/experiments/evaluator.js +0 -1
  54. package/dist/contracts/dist/index.js +0 -71
  55. package/dist/contracts/dist/install.js +0 -2
  56. package/dist/contracts/dist/integrations/contracts.js +0 -377
  57. package/dist/contracts/dist/integrations/index.js +0 -18
  58. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  59. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  60. package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  61. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  62. package/dist/contracts/dist/integrations/openbanking/models.js +0 -242
  63. package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  64. package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  65. package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  66. package/dist/contracts/dist/integrations/providers/gmail.js +0 -87
  67. package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -66
  68. package/dist/contracts/dist/integrations/providers/index.js +0 -11
  69. package/dist/contracts/dist/integrations/providers/mistral.js +0 -68
  70. package/dist/contracts/dist/integrations/providers/postmark.js +0 -68
  71. package/dist/contracts/dist/integrations/providers/powens.js +0 -116
  72. package/dist/contracts/dist/integrations/providers/qdrant.js +0 -73
  73. package/dist/contracts/dist/integrations/providers/registry.js +0 -10
  74. package/dist/contracts/dist/integrations/providers/stripe.js +0 -83
  75. package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  76. package/dist/contracts/dist/jsonschema.js +0 -1
  77. package/dist/contracts/dist/knowledge/contracts.js +0 -306
  78. package/dist/contracts/dist/knowledge/index.js +0 -7
  79. package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  80. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  81. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  82. package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
  83. package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  84. package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  85. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  86. package/dist/contracts/dist/llm/exporters.js +0 -19
  87. package/dist/contracts/dist/llm/index.js +0 -2
  88. package/dist/contracts/dist/llm/prompts.js +0 -1
  89. package/dist/contracts/dist/onboarding-base.js +0 -196
  90. package/dist/contracts/dist/openapi.js +0 -1
  91. package/dist/contracts/dist/ownership.js +0 -21
  92. package/dist/contracts/dist/presentations.js +0 -1
  93. package/dist/contracts/dist/presentations.v2.js +0 -11
  94. package/dist/contracts/dist/prompt.js +0 -1
  95. package/dist/contracts/dist/promptRegistry.js +0 -1
  96. package/dist/contracts/dist/regenerator/index.js +0 -1
  97. package/dist/contracts/dist/regenerator/service.js +0 -6
  98. package/dist/contracts/dist/registry.js +0 -2
  99. package/dist/contracts/dist/resources.js +0 -1
  100. package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
  101. package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
  102. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  103. package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
  104. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  105. package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
  106. package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
  107. package/dist/contracts/dist/schema/dist/index.js +0 -6
  108. package/dist/contracts/dist/server/graphql-pothos.js +0 -6
  109. package/dist/contracts/dist/server/index.js +0 -8
  110. package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
  111. package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -2
  112. package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
  113. package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
  114. package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
  115. package/dist/contracts/dist/server/provider-mcp.js +0 -1
  116. package/dist/contracts/dist/server/rest-elysia.js +0 -1
  117. package/dist/contracts/dist/server/rest-express.js +0 -1
  118. package/dist/contracts/dist/server/rest-generic.js +0 -1
  119. package/dist/contracts/dist/server/rest-next-app.js +0 -1
  120. package/dist/contracts/dist/server/rest-next-pages.js +0 -1
  121. package/dist/contracts/dist/spec.js +0 -34
  122. package/dist/contracts/dist/telemetry/index.js +0 -1
  123. package/dist/contracts/dist/telemetry/tracker.js +0 -1
  124. package/dist/contracts/dist/tests/index.js +0 -1
  125. package/dist/contracts/dist/tests/runner.js +0 -2
  126. package/dist/contracts/dist/workflow/index.js +0 -1
  127. package/dist/contracts/dist/workflow/runner.js +0 -1
  128. package/dist/contracts/index.d.ts +0 -4
  129. package/dist/contracts/organization.d.ts +0 -895
  130. package/dist/contracts/rbac.d.ts +0 -611
  131. package/dist/contracts/user.d.ts +0 -610
  132. package/dist/entities/index.d.ts +0 -176
  133. package/dist/entities/organization.d.ts +0 -86
  134. package/dist/entities/rbac.d.ts +0 -87
  135. package/dist/entities/user.d.ts +0 -87
  136. package/dist/events.d.ts +0 -689
  137. package/dist/identity-rbac.feature.d.ts +0 -11
  138. package/dist/index.d.ts +0 -11
  139. package/dist/policies/engine.d.ts +0 -132
  140. package/dist/policies/index.d.ts +0 -2
  141. package/dist/schema/dist/EnumType.js +0 -2
  142. package/dist/schema/dist/FieldType.js +0 -49
  143. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  144. package/dist/schema/dist/SchemaModel.js +0 -34
  145. package/dist/schema/dist/entity/defineEntity.js +0 -236
  146. package/dist/schema/dist/entity/index.js +0 -2
  147. package/dist/schema/dist/entity/types.js +0 -1
  148. package/dist/schema/dist/index.js +0 -6
package/dist/events.d.ts DELETED
@@ -1,689 +0,0 @@
1
- import * as _lssm_lib_schema65 from "@lssm/lib.schema";
2
- import { SchemaModel } from "@lssm/lib.schema";
3
- import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
4
-
5
- //#region src/events.d.ts
6
- /**
7
- * Emitted when a new user is created.
8
- */
9
- declare const UserCreatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
10
- userId: {
11
- type: _lssm_lib_schema65.FieldType<string, string>;
12
- isOptional: false;
13
- };
14
- email: {
15
- type: _lssm_lib_schema65.FieldType<string, string>;
16
- isOptional: false;
17
- };
18
- name: {
19
- type: _lssm_lib_schema65.FieldType<string, string>;
20
- isOptional: true;
21
- };
22
- createdAt: {
23
- type: _lssm_lib_schema65.FieldType<Date, string>;
24
- isOptional: false;
25
- };
26
- }>>;
27
- /**
28
- * Emitted when a user profile is updated.
29
- */
30
- declare const UserUpdatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
31
- userId: {
32
- type: _lssm_lib_schema65.FieldType<string, string>;
33
- isOptional: false;
34
- };
35
- updatedFields: {
36
- type: _lssm_lib_schema65.FieldType<string, string>;
37
- isOptional: false;
38
- isArray: true;
39
- };
40
- updatedAt: {
41
- type: _lssm_lib_schema65.FieldType<Date, string>;
42
- isOptional: false;
43
- };
44
- }>>;
45
- /**
46
- * Emitted when a user is deleted.
47
- */
48
- declare const UserDeletedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
49
- userId: {
50
- type: _lssm_lib_schema65.FieldType<string, string>;
51
- isOptional: false;
52
- };
53
- email: {
54
- type: _lssm_lib_schema65.FieldType<string, string>;
55
- isOptional: false;
56
- };
57
- deletedAt: {
58
- type: _lssm_lib_schema65.FieldType<Date, string>;
59
- isOptional: false;
60
- };
61
- }>>;
62
- /**
63
- * Emitted when a user's email is verified.
64
- */
65
- declare const UserEmailVerifiedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
66
- userId: {
67
- type: _lssm_lib_schema65.FieldType<string, string>;
68
- isOptional: false;
69
- };
70
- email: {
71
- type: _lssm_lib_schema65.FieldType<string, string>;
72
- isOptional: false;
73
- };
74
- verifiedAt: {
75
- type: _lssm_lib_schema65.FieldType<Date, string>;
76
- isOptional: false;
77
- };
78
- }>>;
79
- /**
80
- * Emitted when a new organization is created.
81
- */
82
- declare const OrgCreatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
83
- orgId: {
84
- type: _lssm_lib_schema65.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- name: {
88
- type: _lssm_lib_schema65.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- slug: {
92
- type: _lssm_lib_schema65.FieldType<string, string>;
93
- isOptional: true;
94
- };
95
- createdBy: {
96
- type: _lssm_lib_schema65.FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- createdAt: {
100
- type: _lssm_lib_schema65.FieldType<Date, string>;
101
- isOptional: false;
102
- };
103
- }>>;
104
- /**
105
- * Emitted when an organization is updated.
106
- */
107
- declare const OrgUpdatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
108
- orgId: {
109
- type: _lssm_lib_schema65.FieldType<string, string>;
110
- isOptional: false;
111
- };
112
- updatedFields: {
113
- type: _lssm_lib_schema65.FieldType<string, string>;
114
- isOptional: false;
115
- isArray: true;
116
- };
117
- updatedBy: {
118
- type: _lssm_lib_schema65.FieldType<string, string>;
119
- isOptional: false;
120
- };
121
- updatedAt: {
122
- type: _lssm_lib_schema65.FieldType<Date, string>;
123
- isOptional: false;
124
- };
125
- }>>;
126
- /**
127
- * Emitted when an organization is deleted.
128
- */
129
- declare const OrgDeletedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
130
- orgId: {
131
- type: _lssm_lib_schema65.FieldType<string, string>;
132
- isOptional: false;
133
- };
134
- name: {
135
- type: _lssm_lib_schema65.FieldType<string, string>;
136
- isOptional: false;
137
- };
138
- deletedBy: {
139
- type: _lssm_lib_schema65.FieldType<string, string>;
140
- isOptional: false;
141
- };
142
- deletedAt: {
143
- type: _lssm_lib_schema65.FieldType<Date, string>;
144
- isOptional: false;
145
- };
146
- }>>;
147
- /**
148
- * Emitted when a member joins an organization.
149
- */
150
- declare const OrgMemberAddedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
151
- orgId: {
152
- type: _lssm_lib_schema65.FieldType<string, string>;
153
- isOptional: false;
154
- };
155
- userId: {
156
- type: _lssm_lib_schema65.FieldType<string, string>;
157
- isOptional: false;
158
- };
159
- role: {
160
- type: _lssm_lib_schema65.FieldType<string, string>;
161
- isOptional: false;
162
- };
163
- invitedBy: {
164
- type: _lssm_lib_schema65.FieldType<string, string>;
165
- isOptional: true;
166
- };
167
- joinedAt: {
168
- type: _lssm_lib_schema65.FieldType<Date, string>;
169
- isOptional: false;
170
- };
171
- }>>;
172
- /**
173
- * Emitted when a member leaves or is removed from an organization.
174
- */
175
- declare const OrgMemberRemovedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
176
- orgId: {
177
- type: _lssm_lib_schema65.FieldType<string, string>;
178
- isOptional: false;
179
- };
180
- userId: {
181
- type: _lssm_lib_schema65.FieldType<string, string>;
182
- isOptional: false;
183
- };
184
- removedBy: {
185
- type: _lssm_lib_schema65.FieldType<string, string>;
186
- isOptional: true;
187
- };
188
- reason: {
189
- type: _lssm_lib_schema65.FieldType<string, string>;
190
- isOptional: true;
191
- };
192
- removedAt: {
193
- type: _lssm_lib_schema65.FieldType<Date, string>;
194
- isOptional: false;
195
- };
196
- }>>;
197
- /**
198
- * Emitted when a member's role is changed.
199
- */
200
- declare const OrgMemberRoleChangedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
201
- orgId: {
202
- type: _lssm_lib_schema65.FieldType<string, string>;
203
- isOptional: false;
204
- };
205
- userId: {
206
- type: _lssm_lib_schema65.FieldType<string, string>;
207
- isOptional: false;
208
- };
209
- previousRole: {
210
- type: _lssm_lib_schema65.FieldType<string, string>;
211
- isOptional: false;
212
- };
213
- newRole: {
214
- type: _lssm_lib_schema65.FieldType<string, string>;
215
- isOptional: false;
216
- };
217
- changedBy: {
218
- type: _lssm_lib_schema65.FieldType<string, string>;
219
- isOptional: false;
220
- };
221
- changedAt: {
222
- type: _lssm_lib_schema65.FieldType<Date, string>;
223
- isOptional: false;
224
- };
225
- }>>;
226
- /**
227
- * Emitted when an invitation is sent.
228
- */
229
- declare const OrgInviteSentEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
230
- invitationId: {
231
- type: _lssm_lib_schema65.FieldType<string, string>;
232
- isOptional: false;
233
- };
234
- orgId: {
235
- type: _lssm_lib_schema65.FieldType<string, string>;
236
- isOptional: false;
237
- };
238
- email: {
239
- type: _lssm_lib_schema65.FieldType<string, string>;
240
- isOptional: false;
241
- };
242
- role: {
243
- type: _lssm_lib_schema65.FieldType<string, string>;
244
- isOptional: false;
245
- };
246
- invitedBy: {
247
- type: _lssm_lib_schema65.FieldType<string, string>;
248
- isOptional: false;
249
- };
250
- expiresAt: {
251
- type: _lssm_lib_schema65.FieldType<Date, string>;
252
- isOptional: true;
253
- };
254
- sentAt: {
255
- type: _lssm_lib_schema65.FieldType<Date, string>;
256
- isOptional: false;
257
- };
258
- }>>;
259
- /**
260
- * Emitted when an invitation is accepted.
261
- */
262
- declare const OrgInviteAcceptedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
263
- invitationId: {
264
- type: _lssm_lib_schema65.FieldType<string, string>;
265
- isOptional: false;
266
- };
267
- orgId: {
268
- type: _lssm_lib_schema65.FieldType<string, string>;
269
- isOptional: false;
270
- };
271
- userId: {
272
- type: _lssm_lib_schema65.FieldType<string, string>;
273
- isOptional: false;
274
- };
275
- acceptedAt: {
276
- type: _lssm_lib_schema65.FieldType<Date, string>;
277
- isOptional: false;
278
- };
279
- }>>;
280
- /**
281
- * Emitted when an invitation is declined.
282
- */
283
- declare const OrgInviteDeclinedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
284
- invitationId: {
285
- type: _lssm_lib_schema65.FieldType<string, string>;
286
- isOptional: false;
287
- };
288
- orgId: {
289
- type: _lssm_lib_schema65.FieldType<string, string>;
290
- isOptional: false;
291
- };
292
- declinedAt: {
293
- type: _lssm_lib_schema65.FieldType<Date, string>;
294
- isOptional: false;
295
- };
296
- }>>;
297
- /**
298
- * Emitted when a role is assigned to a user or organization.
299
- */
300
- declare const RoleAssignedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
301
- bindingId: {
302
- type: _lssm_lib_schema65.FieldType<string, string>;
303
- isOptional: false;
304
- };
305
- roleId: {
306
- type: _lssm_lib_schema65.FieldType<string, string>;
307
- isOptional: false;
308
- };
309
- roleName: {
310
- type: _lssm_lib_schema65.FieldType<string, string>;
311
- isOptional: false;
312
- };
313
- targetType: {
314
- type: _lssm_lib_schema65.FieldType<string, string>;
315
- isOptional: false;
316
- };
317
- targetId: {
318
- type: _lssm_lib_schema65.FieldType<string, string>;
319
- isOptional: false;
320
- };
321
- assignedBy: {
322
- type: _lssm_lib_schema65.FieldType<string, string>;
323
- isOptional: false;
324
- };
325
- expiresAt: {
326
- type: _lssm_lib_schema65.FieldType<Date, string>;
327
- isOptional: true;
328
- };
329
- assignedAt: {
330
- type: _lssm_lib_schema65.FieldType<Date, string>;
331
- isOptional: false;
332
- };
333
- }>>;
334
- /**
335
- * Emitted when a role is revoked from a user or organization.
336
- */
337
- declare const RoleRevokedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
338
- bindingId: {
339
- type: _lssm_lib_schema65.FieldType<string, string>;
340
- isOptional: false;
341
- };
342
- roleId: {
343
- type: _lssm_lib_schema65.FieldType<string, string>;
344
- isOptional: false;
345
- };
346
- roleName: {
347
- type: _lssm_lib_schema65.FieldType<string, string>;
348
- isOptional: false;
349
- };
350
- targetType: {
351
- type: _lssm_lib_schema65.FieldType<string, string>;
352
- isOptional: false;
353
- };
354
- targetId: {
355
- type: _lssm_lib_schema65.FieldType<string, string>;
356
- isOptional: false;
357
- };
358
- revokedBy: {
359
- type: _lssm_lib_schema65.FieldType<string, string>;
360
- isOptional: false;
361
- };
362
- revokedAt: {
363
- type: _lssm_lib_schema65.FieldType<Date, string>;
364
- isOptional: false;
365
- };
366
- }>>;
367
- /**
368
- * All identity-rbac events.
369
- */
370
- declare const IdentityRbacEvents: {
371
- UserCreatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
372
- userId: {
373
- type: _lssm_lib_schema65.FieldType<string, string>;
374
- isOptional: false;
375
- };
376
- email: {
377
- type: _lssm_lib_schema65.FieldType<string, string>;
378
- isOptional: false;
379
- };
380
- name: {
381
- type: _lssm_lib_schema65.FieldType<string, string>;
382
- isOptional: true;
383
- };
384
- createdAt: {
385
- type: _lssm_lib_schema65.FieldType<Date, string>;
386
- isOptional: false;
387
- };
388
- }>>;
389
- UserUpdatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
390
- userId: {
391
- type: _lssm_lib_schema65.FieldType<string, string>;
392
- isOptional: false;
393
- };
394
- updatedFields: {
395
- type: _lssm_lib_schema65.FieldType<string, string>;
396
- isOptional: false;
397
- isArray: true;
398
- };
399
- updatedAt: {
400
- type: _lssm_lib_schema65.FieldType<Date, string>;
401
- isOptional: false;
402
- };
403
- }>>;
404
- UserDeletedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
405
- userId: {
406
- type: _lssm_lib_schema65.FieldType<string, string>;
407
- isOptional: false;
408
- };
409
- email: {
410
- type: _lssm_lib_schema65.FieldType<string, string>;
411
- isOptional: false;
412
- };
413
- deletedAt: {
414
- type: _lssm_lib_schema65.FieldType<Date, string>;
415
- isOptional: false;
416
- };
417
- }>>;
418
- UserEmailVerifiedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
419
- userId: {
420
- type: _lssm_lib_schema65.FieldType<string, string>;
421
- isOptional: false;
422
- };
423
- email: {
424
- type: _lssm_lib_schema65.FieldType<string, string>;
425
- isOptional: false;
426
- };
427
- verifiedAt: {
428
- type: _lssm_lib_schema65.FieldType<Date, string>;
429
- isOptional: false;
430
- };
431
- }>>;
432
- OrgCreatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
433
- orgId: {
434
- type: _lssm_lib_schema65.FieldType<string, string>;
435
- isOptional: false;
436
- };
437
- name: {
438
- type: _lssm_lib_schema65.FieldType<string, string>;
439
- isOptional: false;
440
- };
441
- slug: {
442
- type: _lssm_lib_schema65.FieldType<string, string>;
443
- isOptional: true;
444
- };
445
- createdBy: {
446
- type: _lssm_lib_schema65.FieldType<string, string>;
447
- isOptional: false;
448
- };
449
- createdAt: {
450
- type: _lssm_lib_schema65.FieldType<Date, string>;
451
- isOptional: false;
452
- };
453
- }>>;
454
- OrgUpdatedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
455
- orgId: {
456
- type: _lssm_lib_schema65.FieldType<string, string>;
457
- isOptional: false;
458
- };
459
- updatedFields: {
460
- type: _lssm_lib_schema65.FieldType<string, string>;
461
- isOptional: false;
462
- isArray: true;
463
- };
464
- updatedBy: {
465
- type: _lssm_lib_schema65.FieldType<string, string>;
466
- isOptional: false;
467
- };
468
- updatedAt: {
469
- type: _lssm_lib_schema65.FieldType<Date, string>;
470
- isOptional: false;
471
- };
472
- }>>;
473
- OrgDeletedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
474
- orgId: {
475
- type: _lssm_lib_schema65.FieldType<string, string>;
476
- isOptional: false;
477
- };
478
- name: {
479
- type: _lssm_lib_schema65.FieldType<string, string>;
480
- isOptional: false;
481
- };
482
- deletedBy: {
483
- type: _lssm_lib_schema65.FieldType<string, string>;
484
- isOptional: false;
485
- };
486
- deletedAt: {
487
- type: _lssm_lib_schema65.FieldType<Date, string>;
488
- isOptional: false;
489
- };
490
- }>>;
491
- OrgMemberAddedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
492
- orgId: {
493
- type: _lssm_lib_schema65.FieldType<string, string>;
494
- isOptional: false;
495
- };
496
- userId: {
497
- type: _lssm_lib_schema65.FieldType<string, string>;
498
- isOptional: false;
499
- };
500
- role: {
501
- type: _lssm_lib_schema65.FieldType<string, string>;
502
- isOptional: false;
503
- };
504
- invitedBy: {
505
- type: _lssm_lib_schema65.FieldType<string, string>;
506
- isOptional: true;
507
- };
508
- joinedAt: {
509
- type: _lssm_lib_schema65.FieldType<Date, string>;
510
- isOptional: false;
511
- };
512
- }>>;
513
- OrgMemberRemovedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
514
- orgId: {
515
- type: _lssm_lib_schema65.FieldType<string, string>;
516
- isOptional: false;
517
- };
518
- userId: {
519
- type: _lssm_lib_schema65.FieldType<string, string>;
520
- isOptional: false;
521
- };
522
- removedBy: {
523
- type: _lssm_lib_schema65.FieldType<string, string>;
524
- isOptional: true;
525
- };
526
- reason: {
527
- type: _lssm_lib_schema65.FieldType<string, string>;
528
- isOptional: true;
529
- };
530
- removedAt: {
531
- type: _lssm_lib_schema65.FieldType<Date, string>;
532
- isOptional: false;
533
- };
534
- }>>;
535
- OrgMemberRoleChangedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
536
- orgId: {
537
- type: _lssm_lib_schema65.FieldType<string, string>;
538
- isOptional: false;
539
- };
540
- userId: {
541
- type: _lssm_lib_schema65.FieldType<string, string>;
542
- isOptional: false;
543
- };
544
- previousRole: {
545
- type: _lssm_lib_schema65.FieldType<string, string>;
546
- isOptional: false;
547
- };
548
- newRole: {
549
- type: _lssm_lib_schema65.FieldType<string, string>;
550
- isOptional: false;
551
- };
552
- changedBy: {
553
- type: _lssm_lib_schema65.FieldType<string, string>;
554
- isOptional: false;
555
- };
556
- changedAt: {
557
- type: _lssm_lib_schema65.FieldType<Date, string>;
558
- isOptional: false;
559
- };
560
- }>>;
561
- OrgInviteSentEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
562
- invitationId: {
563
- type: _lssm_lib_schema65.FieldType<string, string>;
564
- isOptional: false;
565
- };
566
- orgId: {
567
- type: _lssm_lib_schema65.FieldType<string, string>;
568
- isOptional: false;
569
- };
570
- email: {
571
- type: _lssm_lib_schema65.FieldType<string, string>;
572
- isOptional: false;
573
- };
574
- role: {
575
- type: _lssm_lib_schema65.FieldType<string, string>;
576
- isOptional: false;
577
- };
578
- invitedBy: {
579
- type: _lssm_lib_schema65.FieldType<string, string>;
580
- isOptional: false;
581
- };
582
- expiresAt: {
583
- type: _lssm_lib_schema65.FieldType<Date, string>;
584
- isOptional: true;
585
- };
586
- sentAt: {
587
- type: _lssm_lib_schema65.FieldType<Date, string>;
588
- isOptional: false;
589
- };
590
- }>>;
591
- OrgInviteAcceptedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
592
- invitationId: {
593
- type: _lssm_lib_schema65.FieldType<string, string>;
594
- isOptional: false;
595
- };
596
- orgId: {
597
- type: _lssm_lib_schema65.FieldType<string, string>;
598
- isOptional: false;
599
- };
600
- userId: {
601
- type: _lssm_lib_schema65.FieldType<string, string>;
602
- isOptional: false;
603
- };
604
- acceptedAt: {
605
- type: _lssm_lib_schema65.FieldType<Date, string>;
606
- isOptional: false;
607
- };
608
- }>>;
609
- OrgInviteDeclinedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
610
- invitationId: {
611
- type: _lssm_lib_schema65.FieldType<string, string>;
612
- isOptional: false;
613
- };
614
- orgId: {
615
- type: _lssm_lib_schema65.FieldType<string, string>;
616
- isOptional: false;
617
- };
618
- declinedAt: {
619
- type: _lssm_lib_schema65.FieldType<Date, string>;
620
- isOptional: false;
621
- };
622
- }>>;
623
- RoleAssignedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
624
- bindingId: {
625
- type: _lssm_lib_schema65.FieldType<string, string>;
626
- isOptional: false;
627
- };
628
- roleId: {
629
- type: _lssm_lib_schema65.FieldType<string, string>;
630
- isOptional: false;
631
- };
632
- roleName: {
633
- type: _lssm_lib_schema65.FieldType<string, string>;
634
- isOptional: false;
635
- };
636
- targetType: {
637
- type: _lssm_lib_schema65.FieldType<string, string>;
638
- isOptional: false;
639
- };
640
- targetId: {
641
- type: _lssm_lib_schema65.FieldType<string, string>;
642
- isOptional: false;
643
- };
644
- assignedBy: {
645
- type: _lssm_lib_schema65.FieldType<string, string>;
646
- isOptional: false;
647
- };
648
- expiresAt: {
649
- type: _lssm_lib_schema65.FieldType<Date, string>;
650
- isOptional: true;
651
- };
652
- assignedAt: {
653
- type: _lssm_lib_schema65.FieldType<Date, string>;
654
- isOptional: false;
655
- };
656
- }>>;
657
- RoleRevokedEvent: _lssm_lib_contracts0.EventSpec<SchemaModel<{
658
- bindingId: {
659
- type: _lssm_lib_schema65.FieldType<string, string>;
660
- isOptional: false;
661
- };
662
- roleId: {
663
- type: _lssm_lib_schema65.FieldType<string, string>;
664
- isOptional: false;
665
- };
666
- roleName: {
667
- type: _lssm_lib_schema65.FieldType<string, string>;
668
- isOptional: false;
669
- };
670
- targetType: {
671
- type: _lssm_lib_schema65.FieldType<string, string>;
672
- isOptional: false;
673
- };
674
- targetId: {
675
- type: _lssm_lib_schema65.FieldType<string, string>;
676
- isOptional: false;
677
- };
678
- revokedBy: {
679
- type: _lssm_lib_schema65.FieldType<string, string>;
680
- isOptional: false;
681
- };
682
- revokedAt: {
683
- type: _lssm_lib_schema65.FieldType<Date, string>;
684
- isOptional: false;
685
- };
686
- }>>;
687
- };
688
- //#endregion
689
- export { IdentityRbacEvents, OrgCreatedEvent, OrgDeletedEvent, OrgInviteAcceptedEvent, OrgInviteDeclinedEvent, OrgInviteSentEvent, OrgMemberAddedEvent, OrgMemberRemovedEvent, OrgMemberRoleChangedEvent, OrgUpdatedEvent, RoleAssignedEvent, RoleRevokedEvent, UserCreatedEvent, UserDeletedEvent, UserEmailVerifiedEvent, UserUpdatedEvent };
@@ -1,11 +0,0 @@
1
- import { FeatureModuleSpec } from "@lssm/lib.contracts";
2
-
3
- //#region src/identity-rbac.feature.d.ts
4
-
5
- /**
6
- * Identity RBAC feature module that bundles user, organization,
7
- * and role-based access control capabilities.
8
- */
9
- declare const IdentityRbacFeature: FeatureModuleSpec;
10
- //#endregion
11
- export { IdentityRbacFeature };
package/dist/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { CreateUserContract, CreateUserInputModel, DeleteUserContract, DeleteUserInputModel, GetCurrentUserContract, ListUsersContract, ListUsersInputModel, ListUsersOutputModel, SuccessResultModel, UpdateUserContract, UpdateUserInputModel, UserDeletedPayloadModel, UserProfileModel } from "./contracts/user.js";
2
- import { AcceptInviteContract, AcceptInviteInputModel, CreateOrgContract, CreateOrgInputModel, GetOrgContract, GetOrgInputModel, InvitationModel, InviteMemberContract, InviteMemberInputModel, ListMembersContract, ListMembersInputModel, ListMembersOutputModel, ListUserOrgsContract, ListUserOrgsOutputModel, MemberModel, MemberRemovedPayloadModel, MemberUserModel, OrganizationModel, OrganizationWithRoleModel, RemoveMemberContract, RemoveMemberInputModel, UpdateOrgContract, UpdateOrgInputModel } from "./contracts/organization.js";
3
- import { AssignRoleContract, AssignRoleInputModel, BindingIdPayloadModel, CheckPermissionContract, CheckPermissionInputModel, CreateRoleContract, CreateRoleInputModel, DeleteRoleContract, DeleteRoleInputModel, ListRolesContract, ListRolesOutputModel, ListUserPermissionsContract, ListUserPermissionsInputModel, ListUserPermissionsOutputModel, PermissionCheckResultModel, PolicyBindingModel, RevokeRoleContract, RevokeRoleInputModel, RoleModel, UpdateRoleContract, UpdateRoleInputModel } from "./contracts/rbac.js";
4
- import { AccountEntity, SessionEntity, UserEntity, VerificationEntity } from "./entities/user.js";
5
- import { InvitationEntity, MemberEntity, OrganizationEntity, OrganizationTypeEnum, TeamEntity, TeamMemberEntity } from "./entities/organization.js";
6
- import { ApiKeyEntity, PasskeyEntity, PermissionEntity, PolicyBindingEntity, RoleEntity } from "./entities/rbac.js";
7
- import { identityRbacEntities, identityRbacSchemaContribution } from "./entities/index.js";
8
- import { IdentityRbacEvents, OrgCreatedEvent, OrgDeletedEvent, OrgInviteAcceptedEvent, OrgInviteDeclinedEvent, OrgInviteSentEvent, OrgMemberAddedEvent, OrgMemberRemovedEvent, OrgMemberRoleChangedEvent, OrgUpdatedEvent, RoleAssignedEvent, RoleRevokedEvent, UserCreatedEvent, UserDeletedEvent, UserEmailVerifiedEvent, UserUpdatedEvent } from "./events.js";
9
- import { IdentityRbacFeature } from "./identity-rbac.feature.js";
10
- import { Permission, PermissionCheckInput, PermissionCheckResult, PermissionKey, PolicyBindingForEval, RBACPolicyEngine, RoleWithPermissions, StandardRole, createRBACEngine } from "./policies/engine.js";
11
- export { AcceptInviteContract, AcceptInviteInputModel, AccountEntity, ApiKeyEntity, AssignRoleContract, AssignRoleInputModel, BindingIdPayloadModel, CheckPermissionContract, CheckPermissionInputModel, CreateOrgContract, CreateOrgInputModel, CreateRoleContract, CreateRoleInputModel, CreateUserContract, CreateUserInputModel, DeleteRoleContract, DeleteRoleInputModel, DeleteUserContract, DeleteUserInputModel, GetCurrentUserContract, GetOrgContract, GetOrgInputModel, IdentityRbacEvents, IdentityRbacFeature, InvitationEntity, InvitationModel, InviteMemberContract, InviteMemberInputModel, ListMembersContract, ListMembersInputModel, ListMembersOutputModel, ListRolesContract, ListRolesOutputModel, ListUserOrgsContract, ListUserOrgsOutputModel, ListUserPermissionsContract, ListUserPermissionsInputModel, ListUserPermissionsOutputModel, ListUsersContract, ListUsersInputModel, ListUsersOutputModel, MemberEntity, MemberModel, MemberRemovedPayloadModel, MemberUserModel, OrgCreatedEvent, OrgDeletedEvent, OrgInviteAcceptedEvent, OrgInviteDeclinedEvent, OrgInviteSentEvent, OrgMemberAddedEvent, OrgMemberRemovedEvent, OrgMemberRoleChangedEvent, OrgUpdatedEvent, OrganizationEntity, OrganizationModel, OrganizationTypeEnum, OrganizationWithRoleModel, PasskeyEntity, Permission, PermissionCheckInput, PermissionCheckResult, PermissionCheckResultModel, PermissionEntity, PermissionKey, PolicyBindingEntity, PolicyBindingForEval, PolicyBindingModel, RBACPolicyEngine, RemoveMemberContract, RemoveMemberInputModel, RevokeRoleContract, RevokeRoleInputModel, RoleAssignedEvent, RoleEntity, RoleModel, RoleRevokedEvent, RoleWithPermissions, SessionEntity, StandardRole, SuccessResultModel, TeamEntity, TeamMemberEntity, UpdateOrgContract, UpdateOrgInputModel, UpdateRoleContract, UpdateRoleInputModel, UpdateUserContract, UpdateUserInputModel, UserCreatedEvent, UserDeletedEvent, UserDeletedPayloadModel, UserEmailVerifiedEvent, UserEntity, UserProfileModel, UserUpdatedEvent, VerificationEntity, createRBACEngine, identityRbacEntities, identityRbacSchemaContribution };