@contractspec/lib.identity-rbac 0.0.0-canary-20260113162409

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