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