@lssm/lib.identity-rbac 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433

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.
@@ -0,0 +1,689 @@
1
+ import * as _lssm_lib_schema661 from "@lssm/lib.schema";
2
+ import { SchemaModel } from "@lssm/lib.schema";
3
+ import * as _lssm_lib_contracts12 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_contracts12.EventSpec<SchemaModel<{
10
+ userId: {
11
+ type: _lssm_lib_schema661.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ email: {
15
+ type: _lssm_lib_schema661.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ name: {
19
+ type: _lssm_lib_schema661.FieldType<string, string>;
20
+ isOptional: true;
21
+ };
22
+ createdAt: {
23
+ type: _lssm_lib_schema661.FieldType<Date, string>;
24
+ isOptional: false;
25
+ };
26
+ }>>;
27
+ /**
28
+ * Emitted when a user profile is updated.
29
+ */
30
+ declare const UserUpdatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
31
+ userId: {
32
+ type: _lssm_lib_schema661.FieldType<string, string>;
33
+ isOptional: false;
34
+ };
35
+ updatedFields: {
36
+ type: _lssm_lib_schema661.FieldType<string, string>;
37
+ isOptional: false;
38
+ isArray: true;
39
+ };
40
+ updatedAt: {
41
+ type: _lssm_lib_schema661.FieldType<Date, string>;
42
+ isOptional: false;
43
+ };
44
+ }>>;
45
+ /**
46
+ * Emitted when a user is deleted.
47
+ */
48
+ declare const UserDeletedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
49
+ userId: {
50
+ type: _lssm_lib_schema661.FieldType<string, string>;
51
+ isOptional: false;
52
+ };
53
+ email: {
54
+ type: _lssm_lib_schema661.FieldType<string, string>;
55
+ isOptional: false;
56
+ };
57
+ deletedAt: {
58
+ type: _lssm_lib_schema661.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_contracts12.EventSpec<SchemaModel<{
66
+ userId: {
67
+ type: _lssm_lib_schema661.FieldType<string, string>;
68
+ isOptional: false;
69
+ };
70
+ email: {
71
+ type: _lssm_lib_schema661.FieldType<string, string>;
72
+ isOptional: false;
73
+ };
74
+ verifiedAt: {
75
+ type: _lssm_lib_schema661.FieldType<Date, string>;
76
+ isOptional: false;
77
+ };
78
+ }>>;
79
+ /**
80
+ * Emitted when a new organization is created.
81
+ */
82
+ declare const OrgCreatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
83
+ orgId: {
84
+ type: _lssm_lib_schema661.FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ name: {
88
+ type: _lssm_lib_schema661.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ slug: {
92
+ type: _lssm_lib_schema661.FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ createdBy: {
96
+ type: _lssm_lib_schema661.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ createdAt: {
100
+ type: _lssm_lib_schema661.FieldType<Date, string>;
101
+ isOptional: false;
102
+ };
103
+ }>>;
104
+ /**
105
+ * Emitted when an organization is updated.
106
+ */
107
+ declare const OrgUpdatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
108
+ orgId: {
109
+ type: _lssm_lib_schema661.FieldType<string, string>;
110
+ isOptional: false;
111
+ };
112
+ updatedFields: {
113
+ type: _lssm_lib_schema661.FieldType<string, string>;
114
+ isOptional: false;
115
+ isArray: true;
116
+ };
117
+ updatedBy: {
118
+ type: _lssm_lib_schema661.FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ updatedAt: {
122
+ type: _lssm_lib_schema661.FieldType<Date, string>;
123
+ isOptional: false;
124
+ };
125
+ }>>;
126
+ /**
127
+ * Emitted when an organization is deleted.
128
+ */
129
+ declare const OrgDeletedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
130
+ orgId: {
131
+ type: _lssm_lib_schema661.FieldType<string, string>;
132
+ isOptional: false;
133
+ };
134
+ name: {
135
+ type: _lssm_lib_schema661.FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ deletedBy: {
139
+ type: _lssm_lib_schema661.FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ deletedAt: {
143
+ type: _lssm_lib_schema661.FieldType<Date, string>;
144
+ isOptional: false;
145
+ };
146
+ }>>;
147
+ /**
148
+ * Emitted when a member joins an organization.
149
+ */
150
+ declare const OrgMemberAddedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
151
+ orgId: {
152
+ type: _lssm_lib_schema661.FieldType<string, string>;
153
+ isOptional: false;
154
+ };
155
+ userId: {
156
+ type: _lssm_lib_schema661.FieldType<string, string>;
157
+ isOptional: false;
158
+ };
159
+ role: {
160
+ type: _lssm_lib_schema661.FieldType<string, string>;
161
+ isOptional: false;
162
+ };
163
+ invitedBy: {
164
+ type: _lssm_lib_schema661.FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ joinedAt: {
168
+ type: _lssm_lib_schema661.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_contracts12.EventSpec<SchemaModel<{
176
+ orgId: {
177
+ type: _lssm_lib_schema661.FieldType<string, string>;
178
+ isOptional: false;
179
+ };
180
+ userId: {
181
+ type: _lssm_lib_schema661.FieldType<string, string>;
182
+ isOptional: false;
183
+ };
184
+ removedBy: {
185
+ type: _lssm_lib_schema661.FieldType<string, string>;
186
+ isOptional: true;
187
+ };
188
+ reason: {
189
+ type: _lssm_lib_schema661.FieldType<string, string>;
190
+ isOptional: true;
191
+ };
192
+ removedAt: {
193
+ type: _lssm_lib_schema661.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_contracts12.EventSpec<SchemaModel<{
201
+ orgId: {
202
+ type: _lssm_lib_schema661.FieldType<string, string>;
203
+ isOptional: false;
204
+ };
205
+ userId: {
206
+ type: _lssm_lib_schema661.FieldType<string, string>;
207
+ isOptional: false;
208
+ };
209
+ previousRole: {
210
+ type: _lssm_lib_schema661.FieldType<string, string>;
211
+ isOptional: false;
212
+ };
213
+ newRole: {
214
+ type: _lssm_lib_schema661.FieldType<string, string>;
215
+ isOptional: false;
216
+ };
217
+ changedBy: {
218
+ type: _lssm_lib_schema661.FieldType<string, string>;
219
+ isOptional: false;
220
+ };
221
+ changedAt: {
222
+ type: _lssm_lib_schema661.FieldType<Date, string>;
223
+ isOptional: false;
224
+ };
225
+ }>>;
226
+ /**
227
+ * Emitted when an invitation is sent.
228
+ */
229
+ declare const OrgInviteSentEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
230
+ invitationId: {
231
+ type: _lssm_lib_schema661.FieldType<string, string>;
232
+ isOptional: false;
233
+ };
234
+ orgId: {
235
+ type: _lssm_lib_schema661.FieldType<string, string>;
236
+ isOptional: false;
237
+ };
238
+ email: {
239
+ type: _lssm_lib_schema661.FieldType<string, string>;
240
+ isOptional: false;
241
+ };
242
+ role: {
243
+ type: _lssm_lib_schema661.FieldType<string, string>;
244
+ isOptional: false;
245
+ };
246
+ invitedBy: {
247
+ type: _lssm_lib_schema661.FieldType<string, string>;
248
+ isOptional: false;
249
+ };
250
+ expiresAt: {
251
+ type: _lssm_lib_schema661.FieldType<Date, string>;
252
+ isOptional: true;
253
+ };
254
+ sentAt: {
255
+ type: _lssm_lib_schema661.FieldType<Date, string>;
256
+ isOptional: false;
257
+ };
258
+ }>>;
259
+ /**
260
+ * Emitted when an invitation is accepted.
261
+ */
262
+ declare const OrgInviteAcceptedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
263
+ invitationId: {
264
+ type: _lssm_lib_schema661.FieldType<string, string>;
265
+ isOptional: false;
266
+ };
267
+ orgId: {
268
+ type: _lssm_lib_schema661.FieldType<string, string>;
269
+ isOptional: false;
270
+ };
271
+ userId: {
272
+ type: _lssm_lib_schema661.FieldType<string, string>;
273
+ isOptional: false;
274
+ };
275
+ acceptedAt: {
276
+ type: _lssm_lib_schema661.FieldType<Date, string>;
277
+ isOptional: false;
278
+ };
279
+ }>>;
280
+ /**
281
+ * Emitted when an invitation is declined.
282
+ */
283
+ declare const OrgInviteDeclinedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
284
+ invitationId: {
285
+ type: _lssm_lib_schema661.FieldType<string, string>;
286
+ isOptional: false;
287
+ };
288
+ orgId: {
289
+ type: _lssm_lib_schema661.FieldType<string, string>;
290
+ isOptional: false;
291
+ };
292
+ declinedAt: {
293
+ type: _lssm_lib_schema661.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_contracts12.EventSpec<SchemaModel<{
301
+ bindingId: {
302
+ type: _lssm_lib_schema661.FieldType<string, string>;
303
+ isOptional: false;
304
+ };
305
+ roleId: {
306
+ type: _lssm_lib_schema661.FieldType<string, string>;
307
+ isOptional: false;
308
+ };
309
+ roleName: {
310
+ type: _lssm_lib_schema661.FieldType<string, string>;
311
+ isOptional: false;
312
+ };
313
+ targetType: {
314
+ type: _lssm_lib_schema661.FieldType<string, string>;
315
+ isOptional: false;
316
+ };
317
+ targetId: {
318
+ type: _lssm_lib_schema661.FieldType<string, string>;
319
+ isOptional: false;
320
+ };
321
+ assignedBy: {
322
+ type: _lssm_lib_schema661.FieldType<string, string>;
323
+ isOptional: false;
324
+ };
325
+ expiresAt: {
326
+ type: _lssm_lib_schema661.FieldType<Date, string>;
327
+ isOptional: true;
328
+ };
329
+ assignedAt: {
330
+ type: _lssm_lib_schema661.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_contracts12.EventSpec<SchemaModel<{
338
+ bindingId: {
339
+ type: _lssm_lib_schema661.FieldType<string, string>;
340
+ isOptional: false;
341
+ };
342
+ roleId: {
343
+ type: _lssm_lib_schema661.FieldType<string, string>;
344
+ isOptional: false;
345
+ };
346
+ roleName: {
347
+ type: _lssm_lib_schema661.FieldType<string, string>;
348
+ isOptional: false;
349
+ };
350
+ targetType: {
351
+ type: _lssm_lib_schema661.FieldType<string, string>;
352
+ isOptional: false;
353
+ };
354
+ targetId: {
355
+ type: _lssm_lib_schema661.FieldType<string, string>;
356
+ isOptional: false;
357
+ };
358
+ revokedBy: {
359
+ type: _lssm_lib_schema661.FieldType<string, string>;
360
+ isOptional: false;
361
+ };
362
+ revokedAt: {
363
+ type: _lssm_lib_schema661.FieldType<Date, string>;
364
+ isOptional: false;
365
+ };
366
+ }>>;
367
+ /**
368
+ * All identity-rbac events.
369
+ */
370
+ declare const IdentityRbacEvents: {
371
+ UserCreatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
372
+ userId: {
373
+ type: _lssm_lib_schema661.FieldType<string, string>;
374
+ isOptional: false;
375
+ };
376
+ email: {
377
+ type: _lssm_lib_schema661.FieldType<string, string>;
378
+ isOptional: false;
379
+ };
380
+ name: {
381
+ type: _lssm_lib_schema661.FieldType<string, string>;
382
+ isOptional: true;
383
+ };
384
+ createdAt: {
385
+ type: _lssm_lib_schema661.FieldType<Date, string>;
386
+ isOptional: false;
387
+ };
388
+ }>>;
389
+ UserUpdatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
390
+ userId: {
391
+ type: _lssm_lib_schema661.FieldType<string, string>;
392
+ isOptional: false;
393
+ };
394
+ updatedFields: {
395
+ type: _lssm_lib_schema661.FieldType<string, string>;
396
+ isOptional: false;
397
+ isArray: true;
398
+ };
399
+ updatedAt: {
400
+ type: _lssm_lib_schema661.FieldType<Date, string>;
401
+ isOptional: false;
402
+ };
403
+ }>>;
404
+ UserDeletedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
405
+ userId: {
406
+ type: _lssm_lib_schema661.FieldType<string, string>;
407
+ isOptional: false;
408
+ };
409
+ email: {
410
+ type: _lssm_lib_schema661.FieldType<string, string>;
411
+ isOptional: false;
412
+ };
413
+ deletedAt: {
414
+ type: _lssm_lib_schema661.FieldType<Date, string>;
415
+ isOptional: false;
416
+ };
417
+ }>>;
418
+ UserEmailVerifiedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
419
+ userId: {
420
+ type: _lssm_lib_schema661.FieldType<string, string>;
421
+ isOptional: false;
422
+ };
423
+ email: {
424
+ type: _lssm_lib_schema661.FieldType<string, string>;
425
+ isOptional: false;
426
+ };
427
+ verifiedAt: {
428
+ type: _lssm_lib_schema661.FieldType<Date, string>;
429
+ isOptional: false;
430
+ };
431
+ }>>;
432
+ OrgCreatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
433
+ orgId: {
434
+ type: _lssm_lib_schema661.FieldType<string, string>;
435
+ isOptional: false;
436
+ };
437
+ name: {
438
+ type: _lssm_lib_schema661.FieldType<string, string>;
439
+ isOptional: false;
440
+ };
441
+ slug: {
442
+ type: _lssm_lib_schema661.FieldType<string, string>;
443
+ isOptional: true;
444
+ };
445
+ createdBy: {
446
+ type: _lssm_lib_schema661.FieldType<string, string>;
447
+ isOptional: false;
448
+ };
449
+ createdAt: {
450
+ type: _lssm_lib_schema661.FieldType<Date, string>;
451
+ isOptional: false;
452
+ };
453
+ }>>;
454
+ OrgUpdatedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
455
+ orgId: {
456
+ type: _lssm_lib_schema661.FieldType<string, string>;
457
+ isOptional: false;
458
+ };
459
+ updatedFields: {
460
+ type: _lssm_lib_schema661.FieldType<string, string>;
461
+ isOptional: false;
462
+ isArray: true;
463
+ };
464
+ updatedBy: {
465
+ type: _lssm_lib_schema661.FieldType<string, string>;
466
+ isOptional: false;
467
+ };
468
+ updatedAt: {
469
+ type: _lssm_lib_schema661.FieldType<Date, string>;
470
+ isOptional: false;
471
+ };
472
+ }>>;
473
+ OrgDeletedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
474
+ orgId: {
475
+ type: _lssm_lib_schema661.FieldType<string, string>;
476
+ isOptional: false;
477
+ };
478
+ name: {
479
+ type: _lssm_lib_schema661.FieldType<string, string>;
480
+ isOptional: false;
481
+ };
482
+ deletedBy: {
483
+ type: _lssm_lib_schema661.FieldType<string, string>;
484
+ isOptional: false;
485
+ };
486
+ deletedAt: {
487
+ type: _lssm_lib_schema661.FieldType<Date, string>;
488
+ isOptional: false;
489
+ };
490
+ }>>;
491
+ OrgMemberAddedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
492
+ orgId: {
493
+ type: _lssm_lib_schema661.FieldType<string, string>;
494
+ isOptional: false;
495
+ };
496
+ userId: {
497
+ type: _lssm_lib_schema661.FieldType<string, string>;
498
+ isOptional: false;
499
+ };
500
+ role: {
501
+ type: _lssm_lib_schema661.FieldType<string, string>;
502
+ isOptional: false;
503
+ };
504
+ invitedBy: {
505
+ type: _lssm_lib_schema661.FieldType<string, string>;
506
+ isOptional: true;
507
+ };
508
+ joinedAt: {
509
+ type: _lssm_lib_schema661.FieldType<Date, string>;
510
+ isOptional: false;
511
+ };
512
+ }>>;
513
+ OrgMemberRemovedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
514
+ orgId: {
515
+ type: _lssm_lib_schema661.FieldType<string, string>;
516
+ isOptional: false;
517
+ };
518
+ userId: {
519
+ type: _lssm_lib_schema661.FieldType<string, string>;
520
+ isOptional: false;
521
+ };
522
+ removedBy: {
523
+ type: _lssm_lib_schema661.FieldType<string, string>;
524
+ isOptional: true;
525
+ };
526
+ reason: {
527
+ type: _lssm_lib_schema661.FieldType<string, string>;
528
+ isOptional: true;
529
+ };
530
+ removedAt: {
531
+ type: _lssm_lib_schema661.FieldType<Date, string>;
532
+ isOptional: false;
533
+ };
534
+ }>>;
535
+ OrgMemberRoleChangedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
536
+ orgId: {
537
+ type: _lssm_lib_schema661.FieldType<string, string>;
538
+ isOptional: false;
539
+ };
540
+ userId: {
541
+ type: _lssm_lib_schema661.FieldType<string, string>;
542
+ isOptional: false;
543
+ };
544
+ previousRole: {
545
+ type: _lssm_lib_schema661.FieldType<string, string>;
546
+ isOptional: false;
547
+ };
548
+ newRole: {
549
+ type: _lssm_lib_schema661.FieldType<string, string>;
550
+ isOptional: false;
551
+ };
552
+ changedBy: {
553
+ type: _lssm_lib_schema661.FieldType<string, string>;
554
+ isOptional: false;
555
+ };
556
+ changedAt: {
557
+ type: _lssm_lib_schema661.FieldType<Date, string>;
558
+ isOptional: false;
559
+ };
560
+ }>>;
561
+ OrgInviteSentEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
562
+ invitationId: {
563
+ type: _lssm_lib_schema661.FieldType<string, string>;
564
+ isOptional: false;
565
+ };
566
+ orgId: {
567
+ type: _lssm_lib_schema661.FieldType<string, string>;
568
+ isOptional: false;
569
+ };
570
+ email: {
571
+ type: _lssm_lib_schema661.FieldType<string, string>;
572
+ isOptional: false;
573
+ };
574
+ role: {
575
+ type: _lssm_lib_schema661.FieldType<string, string>;
576
+ isOptional: false;
577
+ };
578
+ invitedBy: {
579
+ type: _lssm_lib_schema661.FieldType<string, string>;
580
+ isOptional: false;
581
+ };
582
+ expiresAt: {
583
+ type: _lssm_lib_schema661.FieldType<Date, string>;
584
+ isOptional: true;
585
+ };
586
+ sentAt: {
587
+ type: _lssm_lib_schema661.FieldType<Date, string>;
588
+ isOptional: false;
589
+ };
590
+ }>>;
591
+ OrgInviteAcceptedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
592
+ invitationId: {
593
+ type: _lssm_lib_schema661.FieldType<string, string>;
594
+ isOptional: false;
595
+ };
596
+ orgId: {
597
+ type: _lssm_lib_schema661.FieldType<string, string>;
598
+ isOptional: false;
599
+ };
600
+ userId: {
601
+ type: _lssm_lib_schema661.FieldType<string, string>;
602
+ isOptional: false;
603
+ };
604
+ acceptedAt: {
605
+ type: _lssm_lib_schema661.FieldType<Date, string>;
606
+ isOptional: false;
607
+ };
608
+ }>>;
609
+ OrgInviteDeclinedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
610
+ invitationId: {
611
+ type: _lssm_lib_schema661.FieldType<string, string>;
612
+ isOptional: false;
613
+ };
614
+ orgId: {
615
+ type: _lssm_lib_schema661.FieldType<string, string>;
616
+ isOptional: false;
617
+ };
618
+ declinedAt: {
619
+ type: _lssm_lib_schema661.FieldType<Date, string>;
620
+ isOptional: false;
621
+ };
622
+ }>>;
623
+ RoleAssignedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
624
+ bindingId: {
625
+ type: _lssm_lib_schema661.FieldType<string, string>;
626
+ isOptional: false;
627
+ };
628
+ roleId: {
629
+ type: _lssm_lib_schema661.FieldType<string, string>;
630
+ isOptional: false;
631
+ };
632
+ roleName: {
633
+ type: _lssm_lib_schema661.FieldType<string, string>;
634
+ isOptional: false;
635
+ };
636
+ targetType: {
637
+ type: _lssm_lib_schema661.FieldType<string, string>;
638
+ isOptional: false;
639
+ };
640
+ targetId: {
641
+ type: _lssm_lib_schema661.FieldType<string, string>;
642
+ isOptional: false;
643
+ };
644
+ assignedBy: {
645
+ type: _lssm_lib_schema661.FieldType<string, string>;
646
+ isOptional: false;
647
+ };
648
+ expiresAt: {
649
+ type: _lssm_lib_schema661.FieldType<Date, string>;
650
+ isOptional: true;
651
+ };
652
+ assignedAt: {
653
+ type: _lssm_lib_schema661.FieldType<Date, string>;
654
+ isOptional: false;
655
+ };
656
+ }>>;
657
+ RoleRevokedEvent: _lssm_lib_contracts12.EventSpec<SchemaModel<{
658
+ bindingId: {
659
+ type: _lssm_lib_schema661.FieldType<string, string>;
660
+ isOptional: false;
661
+ };
662
+ roleId: {
663
+ type: _lssm_lib_schema661.FieldType<string, string>;
664
+ isOptional: false;
665
+ };
666
+ roleName: {
667
+ type: _lssm_lib_schema661.FieldType<string, string>;
668
+ isOptional: false;
669
+ };
670
+ targetType: {
671
+ type: _lssm_lib_schema661.FieldType<string, string>;
672
+ isOptional: false;
673
+ };
674
+ targetId: {
675
+ type: _lssm_lib_schema661.FieldType<string, string>;
676
+ isOptional: false;
677
+ };
678
+ revokedBy: {
679
+ type: _lssm_lib_schema661.FieldType<string, string>;
680
+ isOptional: false;
681
+ };
682
+ revokedAt: {
683
+ type: _lssm_lib_schema661.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 };
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,12 @@
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 "./contracts/index.js";
5
+ import { AccountEntity, SessionEntity, UserEntity, VerificationEntity } from "./entities/user.js";
6
+ import { InvitationEntity, MemberEntity, OrganizationEntity, OrganizationTypeEnum, TeamEntity, TeamMemberEntity } from "./entities/organization.js";
7
+ import { ApiKeyEntity, PasskeyEntity, PermissionEntity, PolicyBindingEntity, RoleEntity } from "./entities/rbac.js";
8
+ import { identityRbacEntities, identityRbacSchemaContribution } from "./entities/index.js";
9
+ import { IdentityRbacEvents, OrgCreatedEvent, OrgDeletedEvent, OrgInviteAcceptedEvent, OrgInviteDeclinedEvent, OrgInviteSentEvent, OrgMemberAddedEvent, OrgMemberRemovedEvent, OrgMemberRoleChangedEvent, OrgUpdatedEvent, RoleAssignedEvent, RoleRevokedEvent, UserCreatedEvent, UserDeletedEvent, UserEmailVerifiedEvent, UserUpdatedEvent } from "./events.js";
10
+ import { IdentityRbacFeature } from "./identity-rbac.feature.js";
11
+ import { Permission, PermissionCheckInput, PermissionCheckResult, PermissionKey, PolicyBindingForEval, RBACPolicyEngine, RoleWithPermissions, StandardRole, createRBACEngine } from "./policies/engine.js";
12
+ 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 };