@ttt-productions/ttt-core 0.3.0 → 0.4.1

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 (107) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/media/atoms.d.ts +38 -0
  6. package/dist/media/atoms.d.ts.map +1 -0
  7. package/dist/media/atoms.js +19 -0
  8. package/dist/media/atoms.js.map +1 -0
  9. package/dist/media/domain-events.d.ts +2184 -0
  10. package/dist/media/domain-events.d.ts.map +1 -0
  11. package/dist/media/domain-events.js +531 -0
  12. package/dist/media/domain-events.js.map +1 -0
  13. package/dist/media/file-origin.d.ts +4 -0
  14. package/dist/media/file-origin.d.ts.map +1 -0
  15. package/dist/media/file-origin.js +22 -0
  16. package/dist/media/file-origin.js.map +1 -0
  17. package/dist/media/index.d.ts +8 -0
  18. package/dist/media/index.d.ts.map +1 -0
  19. package/dist/media/index.js +8 -0
  20. package/dist/media/index.js.map +1 -0
  21. package/dist/media/pending-media.d.ts +20133 -0
  22. package/dist/media/pending-media.d.ts.map +1 -0
  23. package/dist/media/pending-media.js +26 -0
  24. package/dist/media/pending-media.js.map +1 -0
  25. package/dist/media/start-upload.d.ts +48 -0
  26. package/dist/media/start-upload.d.ts.map +1 -0
  27. package/dist/media/start-upload.js +19 -0
  28. package/dist/media/start-upload.js.map +1 -0
  29. package/dist/media/target-info.d.ts +434 -0
  30. package/dist/media/target-info.d.ts.map +1 -0
  31. package/dist/media/target-info.js +157 -0
  32. package/dist/media/target-info.js.map +1 -0
  33. package/dist/media/ttt-media-specs.d.ts +4 -0
  34. package/dist/media/ttt-media-specs.d.ts.map +1 -0
  35. package/dist/media/ttt-media-specs.js +548 -0
  36. package/dist/media/ttt-media-specs.js.map +1 -0
  37. package/dist/paths/storage-paths.d.ts +1 -1
  38. package/dist/paths/storage-paths.d.ts.map +1 -1
  39. package/dist/schemas/admin.d.ts +17 -17
  40. package/dist/schemas/chat.d.ts +16 -16
  41. package/dist/schemas/chat.d.ts.map +1 -1
  42. package/dist/schemas/chat.js +1 -23
  43. package/dist/schemas/chat.js.map +1 -1
  44. package/dist/schemas/jobs.d.ts +8 -8
  45. package/dist/schemas/library.d.ts +4 -4
  46. package/dist/schemas/project-management.d.ts +20 -20
  47. package/dist/schemas/share-operation.d.ts +72 -72
  48. package/dist/schemas/skills.d.ts +2 -2
  49. package/dist/schemas/social.js +1 -1
  50. package/dist/schemas/social.js.map +1 -1
  51. package/dist/types/admin.d.ts +0 -39
  52. package/dist/types/admin.d.ts.map +1 -1
  53. package/dist/types/admin.js +3 -2
  54. package/dist/types/admin.js.map +1 -1
  55. package/dist/types/audit.d.ts +25 -0
  56. package/dist/types/audit.d.ts.map +1 -0
  57. package/dist/types/audit.js +10 -0
  58. package/dist/types/audit.js.map +1 -0
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/index.js +1 -0
  62. package/dist/types/index.js.map +1 -1
  63. package/dist/types/moderation.d.ts +3 -31
  64. package/dist/types/moderation.d.ts.map +1 -1
  65. package/dist/types/moderation.js +2 -1
  66. package/dist/types/moderation.js.map +1 -1
  67. package/dist/types/project.d.ts +2 -6
  68. package/dist/types/project.d.ts.map +1 -1
  69. package/dist/types/project.js +0 -1
  70. package/dist/types/project.js.map +1 -1
  71. package/dist/types/social.d.ts +2 -7
  72. package/dist/types/social.d.ts.map +1 -1
  73. package/dist/types/social.js +0 -1
  74. package/dist/types/social.js.map +1 -1
  75. package/dist/upload-variables/apply-to-job-variables.d.ts +1 -1
  76. package/dist/upload-variables/apply-to-job-variables.d.ts.map +1 -1
  77. package/dist/upload-variables/create-admin-opportunity-variables.d.ts +1 -1
  78. package/dist/upload-variables/create-admin-opportunity-variables.d.ts.map +1 -1
  79. package/dist/upload-variables/create-job-variables.d.ts +1 -1
  80. package/dist/upload-variables/create-job-variables.d.ts.map +1 -1
  81. package/dist/upload-variables/create-opportunity-reply-variables.d.ts +1 -1
  82. package/dist/upload-variables/create-opportunity-reply-variables.d.ts.map +1 -1
  83. package/dist/upload-variables/create-project-opportunity-variables.d.ts +1 -1
  84. package/dist/upload-variables/create-project-opportunity-variables.d.ts.map +1 -1
  85. package/dist/upload-variables/streetz-post-variables.d.ts +3 -3
  86. package/dist/upload-variables/streetz-post-variables.d.ts.map +1 -1
  87. package/dist/upload-variables/streetz-post-variables.js +1 -1
  88. package/dist/upload-variables/streetz-post-variables.js.map +1 -1
  89. package/dist/upload-variables/update-chapter-media-variables.d.ts +3 -3
  90. package/dist/upload-variables/update-chapter-media-variables.d.ts.map +1 -1
  91. package/dist/upload-variables/update-show-media-variables.d.ts +3 -3
  92. package/dist/upload-variables/update-show-media-variables.d.ts.map +1 -1
  93. package/dist/upload-variables/update-song-media-variables.d.ts +3 -3
  94. package/dist/upload-variables/update-song-media-variables.d.ts.map +1 -1
  95. package/dist/upload-variables/update-tale-cover-photo-variables.d.ts +3 -3
  96. package/dist/upload-variables/update-tale-cover-photo-variables.d.ts.map +1 -1
  97. package/dist/upload-variables/update-television-cover-photo-variables.d.ts +3 -3
  98. package/dist/upload-variables/update-television-cover-photo-variables.d.ts.map +1 -1
  99. package/dist/upload-variables/update-tune-cover-photo-variables.d.ts +3 -3
  100. package/dist/upload-variables/update-tune-cover-photo-variables.d.ts.map +1 -1
  101. package/dist/upload-variables/upload-profile-picture-variables.d.ts +1 -1
  102. package/dist/upload-variables/upload-profile-picture-variables.d.ts.map +1 -1
  103. package/dist/upload-variables/upload-project-file-variables.d.ts +1 -1
  104. package/dist/upload-variables/upload-project-file-variables.d.ts.map +1 -1
  105. package/dist/upload-variables/upload-skill-variables.d.ts +1 -1
  106. package/dist/upload-variables/upload-skill-variables.d.ts.map +1 -1
  107. package/package.json +9 -2
@@ -0,0 +1,2184 @@
1
+ import { z } from "zod";
2
+ export declare const ProfilePictureUpdatedEventSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"profile.pictureUpdated">;
4
+ ids: z.ZodObject<{
5
+ userId: z.ZodString;
6
+ }, "strict", z.ZodTypeAny, {
7
+ userId: string;
8
+ }, {
9
+ userId: string;
10
+ }>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ type: "profile.pictureUpdated";
13
+ ids: {
14
+ userId: string;
15
+ };
16
+ }, {
17
+ type: "profile.pictureUpdated";
18
+ ids: {
19
+ userId: string;
20
+ };
21
+ }>;
22
+ export declare const SkillCreatedEventSchema: z.ZodObject<{
23
+ type: z.ZodLiteral<"skill.created">;
24
+ ids: z.ZodObject<{
25
+ userId: z.ZodString;
26
+ skillId: z.ZodString;
27
+ }, "strict", z.ZodTypeAny, {
28
+ userId: string;
29
+ skillId: string;
30
+ }, {
31
+ userId: string;
32
+ skillId: string;
33
+ }>;
34
+ }, "strict", z.ZodTypeAny, {
35
+ type: "skill.created";
36
+ ids: {
37
+ userId: string;
38
+ skillId: string;
39
+ };
40
+ }, {
41
+ type: "skill.created";
42
+ ids: {
43
+ userId: string;
44
+ skillId: string;
45
+ };
46
+ }>;
47
+ export declare const StreetzPostCreatedEventSchema: z.ZodObject<{
48
+ type: z.ZodLiteral<"streetz.postCreated">;
49
+ ids: z.ZodObject<{
50
+ userId: z.ZodString;
51
+ postId: z.ZodString;
52
+ }, "strict", z.ZodTypeAny, {
53
+ userId: string;
54
+ postId: string;
55
+ }, {
56
+ userId: string;
57
+ postId: string;
58
+ }>;
59
+ }, "strict", z.ZodTypeAny, {
60
+ type: "streetz.postCreated";
61
+ ids: {
62
+ userId: string;
63
+ postId: string;
64
+ };
65
+ }, {
66
+ type: "streetz.postCreated";
67
+ ids: {
68
+ userId: string;
69
+ postId: string;
70
+ };
71
+ }>;
72
+ export declare const OpportunityPromptCreatedEventSchema: z.ZodObject<{
73
+ type: z.ZodLiteral<"opportunity.promptCreated">;
74
+ ids: z.ZodObject<{
75
+ userId: z.ZodString;
76
+ opportunityId: z.ZodString;
77
+ projectId: z.ZodOptional<z.ZodString>;
78
+ }, "strict", z.ZodTypeAny, {
79
+ userId: string;
80
+ opportunityId: string;
81
+ projectId?: string | undefined;
82
+ }, {
83
+ userId: string;
84
+ opportunityId: string;
85
+ projectId?: string | undefined;
86
+ }>;
87
+ }, "strict", z.ZodTypeAny, {
88
+ type: "opportunity.promptCreated";
89
+ ids: {
90
+ userId: string;
91
+ opportunityId: string;
92
+ projectId?: string | undefined;
93
+ };
94
+ }, {
95
+ type: "opportunity.promptCreated";
96
+ ids: {
97
+ userId: string;
98
+ opportunityId: string;
99
+ projectId?: string | undefined;
100
+ };
101
+ }>;
102
+ export declare const OpportunityReplyCreatedEventSchema: z.ZodObject<{
103
+ type: z.ZodLiteral<"opportunity.replyCreated">;
104
+ ids: z.ZodObject<{
105
+ userId: z.ZodString;
106
+ opportunityId: z.ZodString;
107
+ replyId: z.ZodString;
108
+ projectId: z.ZodOptional<z.ZodString>;
109
+ }, "strict", z.ZodTypeAny, {
110
+ userId: string;
111
+ opportunityId: string;
112
+ replyId: string;
113
+ projectId?: string | undefined;
114
+ }, {
115
+ userId: string;
116
+ opportunityId: string;
117
+ replyId: string;
118
+ projectId?: string | undefined;
119
+ }>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ type: "opportunity.replyCreated";
122
+ ids: {
123
+ userId: string;
124
+ opportunityId: string;
125
+ replyId: string;
126
+ projectId?: string | undefined;
127
+ };
128
+ }, {
129
+ type: "opportunity.replyCreated";
130
+ ids: {
131
+ userId: string;
132
+ opportunityId: string;
133
+ replyId: string;
134
+ projectId?: string | undefined;
135
+ };
136
+ }>;
137
+ export declare const JobCreatedEventSchema: z.ZodObject<{
138
+ type: z.ZodLiteral<"job.created">;
139
+ ids: z.ZodObject<{
140
+ userId: z.ZodString;
141
+ jobId: z.ZodString;
142
+ projectId: z.ZodString;
143
+ }, "strict", z.ZodTypeAny, {
144
+ projectId: string;
145
+ userId: string;
146
+ jobId: string;
147
+ }, {
148
+ projectId: string;
149
+ userId: string;
150
+ jobId: string;
151
+ }>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ type: "job.created";
154
+ ids: {
155
+ projectId: string;
156
+ userId: string;
157
+ jobId: string;
158
+ };
159
+ }, {
160
+ type: "job.created";
161
+ ids: {
162
+ projectId: string;
163
+ userId: string;
164
+ jobId: string;
165
+ };
166
+ }>;
167
+ export declare const JobApplicationSubmittedEventSchema: z.ZodObject<{
168
+ type: z.ZodLiteral<"job.applicationSubmitted">;
169
+ ids: z.ZodObject<{
170
+ userId: z.ZodString;
171
+ jobId: z.ZodString;
172
+ projectId: z.ZodString;
173
+ applicationId: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ projectId: string;
176
+ userId: string;
177
+ jobId: string;
178
+ applicationId: string;
179
+ }, {
180
+ projectId: string;
181
+ userId: string;
182
+ jobId: string;
183
+ applicationId: string;
184
+ }>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ type: "job.applicationSubmitted";
187
+ ids: {
188
+ projectId: string;
189
+ userId: string;
190
+ jobId: string;
191
+ applicationId: string;
192
+ };
193
+ }, {
194
+ type: "job.applicationSubmitted";
195
+ ids: {
196
+ projectId: string;
197
+ userId: string;
198
+ jobId: string;
199
+ applicationId: string;
200
+ };
201
+ }>;
202
+ export declare const ProjectUpdatedEventSchema: z.ZodObject<{
203
+ type: z.ZodLiteral<"project.updated">;
204
+ ids: z.ZodObject<{
205
+ projectId: z.ZodString;
206
+ }, "strict", z.ZodTypeAny, {
207
+ projectId: string;
208
+ }, {
209
+ projectId: string;
210
+ }>;
211
+ }, "strict", z.ZodTypeAny, {
212
+ type: "project.updated";
213
+ ids: {
214
+ projectId: string;
215
+ };
216
+ }, {
217
+ type: "project.updated";
218
+ ids: {
219
+ projectId: string;
220
+ };
221
+ }>;
222
+ export declare const LibraryAssetCoverUpdatedEventSchema: z.ZodObject<{
223
+ type: z.ZodLiteral<"libraryAsset.coverUpdated">;
224
+ ids: z.ZodObject<{
225
+ projectId: z.ZodString;
226
+ itemType: z.ZodEnum<["tale", "tune", "television"]>;
227
+ itemId: z.ZodString;
228
+ }, "strict", z.ZodTypeAny, {
229
+ projectId: string;
230
+ itemType: "tale" | "tune" | "television";
231
+ itemId: string;
232
+ }, {
233
+ projectId: string;
234
+ itemType: "tale" | "tune" | "television";
235
+ itemId: string;
236
+ }>;
237
+ }, "strict", z.ZodTypeAny, {
238
+ type: "libraryAsset.coverUpdated";
239
+ ids: {
240
+ projectId: string;
241
+ itemType: "tale" | "tune" | "television";
242
+ itemId: string;
243
+ };
244
+ }, {
245
+ type: "libraryAsset.coverUpdated";
246
+ ids: {
247
+ projectId: string;
248
+ itemType: "tale" | "tune" | "television";
249
+ itemId: string;
250
+ };
251
+ }>;
252
+ export declare const LibraryAssetSubItemUpdatedEventSchema: z.ZodObject<{
253
+ type: z.ZodLiteral<"libraryAsset.subItemUpdated">;
254
+ ids: z.ZodObject<{
255
+ projectId: z.ZodString;
256
+ itemType: z.ZodEnum<["chapter", "song", "show"]>;
257
+ parentId: z.ZodString;
258
+ itemId: z.ZodString;
259
+ }, "strict", z.ZodTypeAny, {
260
+ projectId: string;
261
+ itemType: "chapter" | "song" | "show";
262
+ itemId: string;
263
+ parentId: string;
264
+ }, {
265
+ projectId: string;
266
+ itemType: "chapter" | "song" | "show";
267
+ itemId: string;
268
+ parentId: string;
269
+ }>;
270
+ }, "strict", z.ZodTypeAny, {
271
+ type: "libraryAsset.subItemUpdated";
272
+ ids: {
273
+ projectId: string;
274
+ itemType: "chapter" | "song" | "show";
275
+ itemId: string;
276
+ parentId: string;
277
+ };
278
+ }, {
279
+ type: "libraryAsset.subItemUpdated";
280
+ ids: {
281
+ projectId: string;
282
+ itemType: "chapter" | "song" | "show";
283
+ itemId: string;
284
+ parentId: string;
285
+ };
286
+ }>;
287
+ export declare const ModerationViolationCreatedEventSchema: z.ZodObject<{
288
+ type: z.ZodLiteral<"moderation.violationCreated">;
289
+ ids: z.ZodObject<{
290
+ userId: z.ZodString;
291
+ violationId: z.ZodString;
292
+ fileOrigin: z.ZodEnum<["profile-picture", "skill-media", "streetz", "job-posting", "job-reply", "opportunity-prompt", "opportunity-reply", "admin-opportunity-prompt", "library-cover-square", "library-cover-poster", "library-cover-cinematic", "chapter-photo", "song-photo", "song-audio", "show-photo", "show-video", "chat-attachment", "project-file"]>;
293
+ pendingMediaId: z.ZodString;
294
+ }, "strict", z.ZodTypeAny, {
295
+ userId: string;
296
+ violationId: string;
297
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
298
+ pendingMediaId: string;
299
+ }, {
300
+ userId: string;
301
+ violationId: string;
302
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
303
+ pendingMediaId: string;
304
+ }>;
305
+ }, "strict", z.ZodTypeAny, {
306
+ type: "moderation.violationCreated";
307
+ ids: {
308
+ userId: string;
309
+ violationId: string;
310
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
311
+ pendingMediaId: string;
312
+ };
313
+ }, {
314
+ type: "moderation.violationCreated";
315
+ ids: {
316
+ userId: string;
317
+ violationId: string;
318
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
319
+ pendingMediaId: string;
320
+ };
321
+ }>;
322
+ export declare const ChatAttachmentFinalizedEventSchema: z.ZodObject<{
323
+ type: z.ZodLiteral<"chat.attachmentFinalized">;
324
+ ids: z.ZodObject<{
325
+ messageId: z.ZodString;
326
+ conversationId: z.ZodString;
327
+ }, "strict", z.ZodTypeAny, {
328
+ messageId: string;
329
+ conversationId: string;
330
+ }, {
331
+ messageId: string;
332
+ conversationId: string;
333
+ }>;
334
+ }, "strict", z.ZodTypeAny, {
335
+ type: "chat.attachmentFinalized";
336
+ ids: {
337
+ messageId: string;
338
+ conversationId: string;
339
+ };
340
+ }, {
341
+ type: "chat.attachmentFinalized";
342
+ ids: {
343
+ messageId: string;
344
+ conversationId: string;
345
+ };
346
+ }>;
347
+ export declare const FollowCreatedEventSchema: z.ZodObject<{
348
+ type: z.ZodLiteral<"follow.created">;
349
+ ids: z.ZodObject<{
350
+ followerId: z.ZodString;
351
+ followedId: z.ZodString;
352
+ }, "strict", z.ZodTypeAny, {
353
+ followerId: string;
354
+ followedId: string;
355
+ }, {
356
+ followerId: string;
357
+ followedId: string;
358
+ }>;
359
+ }, "strict", z.ZodTypeAny, {
360
+ type: "follow.created";
361
+ ids: {
362
+ followerId: string;
363
+ followedId: string;
364
+ };
365
+ }, {
366
+ type: "follow.created";
367
+ ids: {
368
+ followerId: string;
369
+ followedId: string;
370
+ };
371
+ }>;
372
+ export declare const FollowRemovedEventSchema: z.ZodObject<{
373
+ type: z.ZodLiteral<"follow.removed">;
374
+ ids: z.ZodObject<{
375
+ followerId: z.ZodString;
376
+ followedId: z.ZodString;
377
+ }, "strict", z.ZodTypeAny, {
378
+ followerId: string;
379
+ followedId: string;
380
+ }, {
381
+ followerId: string;
382
+ followedId: string;
383
+ }>;
384
+ }, "strict", z.ZodTypeAny, {
385
+ type: "follow.removed";
386
+ ids: {
387
+ followerId: string;
388
+ followedId: string;
389
+ };
390
+ }, {
391
+ type: "follow.removed";
392
+ ids: {
393
+ followerId: string;
394
+ followedId: string;
395
+ };
396
+ }>;
397
+ export declare const StreetzPostLikedEventSchema: z.ZodObject<{
398
+ type: z.ZodLiteral<"streetz.postLiked">;
399
+ ids: z.ZodObject<{
400
+ userId: z.ZodString;
401
+ postId: z.ZodString;
402
+ authorId: z.ZodString;
403
+ }, "strict", z.ZodTypeAny, {
404
+ userId: string;
405
+ postId: string;
406
+ authorId: string;
407
+ }, {
408
+ userId: string;
409
+ postId: string;
410
+ authorId: string;
411
+ }>;
412
+ }, "strict", z.ZodTypeAny, {
413
+ type: "streetz.postLiked";
414
+ ids: {
415
+ userId: string;
416
+ postId: string;
417
+ authorId: string;
418
+ };
419
+ }, {
420
+ type: "streetz.postLiked";
421
+ ids: {
422
+ userId: string;
423
+ postId: string;
424
+ authorId: string;
425
+ };
426
+ }>;
427
+ export declare const StreetzPostUnlikedEventSchema: z.ZodObject<{
428
+ type: z.ZodLiteral<"streetz.postUnliked">;
429
+ ids: z.ZodObject<{
430
+ userId: z.ZodString;
431
+ postId: z.ZodString;
432
+ authorId: z.ZodString;
433
+ }, "strict", z.ZodTypeAny, {
434
+ userId: string;
435
+ postId: string;
436
+ authorId: string;
437
+ }, {
438
+ userId: string;
439
+ postId: string;
440
+ authorId: string;
441
+ }>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ type: "streetz.postUnliked";
444
+ ids: {
445
+ userId: string;
446
+ postId: string;
447
+ authorId: string;
448
+ };
449
+ }, {
450
+ type: "streetz.postUnliked";
451
+ ids: {
452
+ userId: string;
453
+ postId: string;
454
+ authorId: string;
455
+ };
456
+ }>;
457
+ export declare const ProfilePreferencesUpdatedEventSchema: z.ZodObject<{
458
+ type: z.ZodLiteral<"profile.preferencesUpdated">;
459
+ ids: z.ZodObject<{
460
+ userId: z.ZodString;
461
+ }, "strict", z.ZodTypeAny, {
462
+ userId: string;
463
+ }, {
464
+ userId: string;
465
+ }>;
466
+ }, "strict", z.ZodTypeAny, {
467
+ type: "profile.preferencesUpdated";
468
+ ids: {
469
+ userId: string;
470
+ };
471
+ }, {
472
+ type: "profile.preferencesUpdated";
473
+ ids: {
474
+ userId: string;
475
+ };
476
+ }>;
477
+ export declare const SkillDeletedEventSchema: z.ZodObject<{
478
+ type: z.ZodLiteral<"skill.deleted">;
479
+ ids: z.ZodObject<{
480
+ userId: z.ZodString;
481
+ skillId: z.ZodString;
482
+ }, "strict", z.ZodTypeAny, {
483
+ userId: string;
484
+ skillId: string;
485
+ }, {
486
+ userId: string;
487
+ skillId: string;
488
+ }>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ type: "skill.deleted";
491
+ ids: {
492
+ userId: string;
493
+ skillId: string;
494
+ };
495
+ }, {
496
+ type: "skill.deleted";
497
+ ids: {
498
+ userId: string;
499
+ skillId: string;
500
+ };
501
+ }>;
502
+ export declare const SkillUpdatedEventSchema: z.ZodObject<{
503
+ type: z.ZodLiteral<"skill.updated">;
504
+ ids: z.ZodObject<{
505
+ userId: z.ZodString;
506
+ skillId: z.ZodString;
507
+ }, "strict", z.ZodTypeAny, {
508
+ userId: string;
509
+ skillId: string;
510
+ }, {
511
+ userId: string;
512
+ skillId: string;
513
+ }>;
514
+ }, "strict", z.ZodTypeAny, {
515
+ type: "skill.updated";
516
+ ids: {
517
+ userId: string;
518
+ skillId: string;
519
+ };
520
+ }, {
521
+ type: "skill.updated";
522
+ ids: {
523
+ userId: string;
524
+ skillId: string;
525
+ };
526
+ }>;
527
+ export declare const ProjectCreatedEventSchema: z.ZodObject<{
528
+ type: z.ZodLiteral<"project.created">;
529
+ ids: z.ZodObject<{
530
+ userId: z.ZodString;
531
+ projectId: z.ZodString;
532
+ }, "strict", z.ZodTypeAny, {
533
+ projectId: string;
534
+ userId: string;
535
+ }, {
536
+ projectId: string;
537
+ userId: string;
538
+ }>;
539
+ }, "strict", z.ZodTypeAny, {
540
+ type: "project.created";
541
+ ids: {
542
+ projectId: string;
543
+ userId: string;
544
+ };
545
+ }, {
546
+ type: "project.created";
547
+ ids: {
548
+ projectId: string;
549
+ userId: string;
550
+ };
551
+ }>;
552
+ export declare const ProjectPublishedEventSchema: z.ZodObject<{
553
+ type: z.ZodLiteral<"project.published">;
554
+ ids: z.ZodObject<{
555
+ projectId: z.ZodString;
556
+ userId: z.ZodString;
557
+ }, "strict", z.ZodTypeAny, {
558
+ projectId: string;
559
+ userId: string;
560
+ }, {
561
+ projectId: string;
562
+ userId: string;
563
+ }>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ type: "project.published";
566
+ ids: {
567
+ projectId: string;
568
+ userId: string;
569
+ };
570
+ }, {
571
+ type: "project.published";
572
+ ids: {
573
+ projectId: string;
574
+ userId: string;
575
+ };
576
+ }>;
577
+ export declare const ProjectSharesUpdatedEventSchema: z.ZodObject<{
578
+ type: z.ZodLiteral<"project.sharesUpdated">;
579
+ ids: z.ZodObject<{
580
+ projectId: z.ZodString;
581
+ }, "strict", z.ZodTypeAny, {
582
+ projectId: string;
583
+ }, {
584
+ projectId: string;
585
+ }>;
586
+ }, "strict", z.ZodTypeAny, {
587
+ type: "project.sharesUpdated";
588
+ ids: {
589
+ projectId: string;
590
+ };
591
+ }, {
592
+ type: "project.sharesUpdated";
593
+ ids: {
594
+ projectId: string;
595
+ };
596
+ }>;
597
+ export declare const ProjectInviteSentEventSchema: z.ZodObject<{
598
+ type: z.ZodLiteral<"project.inviteSent">;
599
+ ids: z.ZodObject<{
600
+ projectId: z.ZodString;
601
+ inviteId: z.ZodString;
602
+ inviterId: z.ZodString;
603
+ inviteeId: z.ZodString;
604
+ }, "strict", z.ZodTypeAny, {
605
+ projectId: string;
606
+ inviteId: string;
607
+ inviterId: string;
608
+ inviteeId: string;
609
+ }, {
610
+ projectId: string;
611
+ inviteId: string;
612
+ inviterId: string;
613
+ inviteeId: string;
614
+ }>;
615
+ }, "strict", z.ZodTypeAny, {
616
+ type: "project.inviteSent";
617
+ ids: {
618
+ projectId: string;
619
+ inviteId: string;
620
+ inviterId: string;
621
+ inviteeId: string;
622
+ };
623
+ }, {
624
+ type: "project.inviteSent";
625
+ ids: {
626
+ projectId: string;
627
+ inviteId: string;
628
+ inviterId: string;
629
+ inviteeId: string;
630
+ };
631
+ }>;
632
+ export declare const ProjectInviteAcceptedEventSchema: z.ZodObject<{
633
+ type: z.ZodLiteral<"project.inviteAccepted">;
634
+ ids: z.ZodObject<{
635
+ projectId: z.ZodString;
636
+ inviteId: z.ZodString;
637
+ userId: z.ZodString;
638
+ }, "strict", z.ZodTypeAny, {
639
+ projectId: string;
640
+ userId: string;
641
+ inviteId: string;
642
+ }, {
643
+ projectId: string;
644
+ userId: string;
645
+ inviteId: string;
646
+ }>;
647
+ }, "strict", z.ZodTypeAny, {
648
+ type: "project.inviteAccepted";
649
+ ids: {
650
+ projectId: string;
651
+ userId: string;
652
+ inviteId: string;
653
+ };
654
+ }, {
655
+ type: "project.inviteAccepted";
656
+ ids: {
657
+ projectId: string;
658
+ userId: string;
659
+ inviteId: string;
660
+ };
661
+ }>;
662
+ export declare const ProjectInviteDeclinedEventSchema: z.ZodObject<{
663
+ type: z.ZodLiteral<"project.inviteDeclined">;
664
+ ids: z.ZodObject<{
665
+ projectId: z.ZodString;
666
+ inviteId: z.ZodString;
667
+ userId: z.ZodString;
668
+ }, "strict", z.ZodTypeAny, {
669
+ projectId: string;
670
+ userId: string;
671
+ inviteId: string;
672
+ }, {
673
+ projectId: string;
674
+ userId: string;
675
+ inviteId: string;
676
+ }>;
677
+ }, "strict", z.ZodTypeAny, {
678
+ type: "project.inviteDeclined";
679
+ ids: {
680
+ projectId: string;
681
+ userId: string;
682
+ inviteId: string;
683
+ };
684
+ }, {
685
+ type: "project.inviteDeclined";
686
+ ids: {
687
+ projectId: string;
688
+ userId: string;
689
+ inviteId: string;
690
+ };
691
+ }>;
692
+ export declare const ProjectInviteCancelledEventSchema: z.ZodObject<{
693
+ type: z.ZodLiteral<"project.inviteCancelled">;
694
+ ids: z.ZodObject<{
695
+ projectId: z.ZodString;
696
+ inviteId: z.ZodString;
697
+ }, "strict", z.ZodTypeAny, {
698
+ projectId: string;
699
+ inviteId: string;
700
+ }, {
701
+ projectId: string;
702
+ inviteId: string;
703
+ }>;
704
+ }, "strict", z.ZodTypeAny, {
705
+ type: "project.inviteCancelled";
706
+ ids: {
707
+ projectId: string;
708
+ inviteId: string;
709
+ };
710
+ }, {
711
+ type: "project.inviteCancelled";
712
+ ids: {
713
+ projectId: string;
714
+ inviteId: string;
715
+ };
716
+ }>;
717
+ export declare const OpportunityReplyVotedEventSchema: z.ZodObject<{
718
+ type: z.ZodLiteral<"opportunity.replyVoted">;
719
+ ids: z.ZodObject<{
720
+ userId: z.ZodString;
721
+ opportunityId: z.ZodString;
722
+ replyId: z.ZodString;
723
+ projectId: z.ZodString;
724
+ }, "strict", z.ZodTypeAny, {
725
+ projectId: string;
726
+ userId: string;
727
+ opportunityId: string;
728
+ replyId: string;
729
+ }, {
730
+ projectId: string;
731
+ userId: string;
732
+ opportunityId: string;
733
+ replyId: string;
734
+ }>;
735
+ }, "strict", z.ZodTypeAny, {
736
+ type: "opportunity.replyVoted";
737
+ ids: {
738
+ projectId: string;
739
+ userId: string;
740
+ opportunityId: string;
741
+ replyId: string;
742
+ };
743
+ }, {
744
+ type: "opportunity.replyVoted";
745
+ ids: {
746
+ projectId: string;
747
+ userId: string;
748
+ opportunityId: string;
749
+ replyId: string;
750
+ };
751
+ }>;
752
+ export declare const OpportunityClosedEventSchema: z.ZodObject<{
753
+ type: z.ZodLiteral<"opportunity.closed">;
754
+ ids: z.ZodObject<{
755
+ opportunityId: z.ZodString;
756
+ projectId: z.ZodOptional<z.ZodString>;
757
+ }, "strict", z.ZodTypeAny, {
758
+ opportunityId: string;
759
+ projectId?: string | undefined;
760
+ }, {
761
+ opportunityId: string;
762
+ projectId?: string | undefined;
763
+ }>;
764
+ }, "strict", z.ZodTypeAny, {
765
+ type: "opportunity.closed";
766
+ ids: {
767
+ opportunityId: string;
768
+ projectId?: string | undefined;
769
+ };
770
+ }, {
771
+ type: "opportunity.closed";
772
+ ids: {
773
+ opportunityId: string;
774
+ projectId?: string | undefined;
775
+ };
776
+ }>;
777
+ export declare const JobDeletedEventSchema: z.ZodObject<{
778
+ type: z.ZodLiteral<"job.deleted">;
779
+ ids: z.ZodObject<{
780
+ jobId: z.ZodString;
781
+ projectId: z.ZodString;
782
+ }, "strict", z.ZodTypeAny, {
783
+ projectId: string;
784
+ jobId: string;
785
+ }, {
786
+ projectId: string;
787
+ jobId: string;
788
+ }>;
789
+ }, "strict", z.ZodTypeAny, {
790
+ type: "job.deleted";
791
+ ids: {
792
+ projectId: string;
793
+ jobId: string;
794
+ };
795
+ }, {
796
+ type: "job.deleted";
797
+ ids: {
798
+ projectId: string;
799
+ jobId: string;
800
+ };
801
+ }>;
802
+ export declare const JobApplicationSavedEventSchema: z.ZodObject<{
803
+ type: z.ZodLiteral<"job.applicationSaved">;
804
+ ids: z.ZodObject<{
805
+ jobId: z.ZodString;
806
+ applicationId: z.ZodString;
807
+ userId: z.ZodString;
808
+ }, "strict", z.ZodTypeAny, {
809
+ userId: string;
810
+ jobId: string;
811
+ applicationId: string;
812
+ }, {
813
+ userId: string;
814
+ jobId: string;
815
+ applicationId: string;
816
+ }>;
817
+ }, "strict", z.ZodTypeAny, {
818
+ type: "job.applicationSaved";
819
+ ids: {
820
+ userId: string;
821
+ jobId: string;
822
+ applicationId: string;
823
+ };
824
+ }, {
825
+ type: "job.applicationSaved";
826
+ ids: {
827
+ userId: string;
828
+ jobId: string;
829
+ applicationId: string;
830
+ };
831
+ }>;
832
+ export declare const JobApplicationRemovedEventSchema: z.ZodObject<{
833
+ type: z.ZodLiteral<"job.applicationRemoved">;
834
+ ids: z.ZodObject<{
835
+ jobId: z.ZodString;
836
+ applicationId: z.ZodString;
837
+ userId: z.ZodString;
838
+ }, "strict", z.ZodTypeAny, {
839
+ userId: string;
840
+ jobId: string;
841
+ applicationId: string;
842
+ }, {
843
+ userId: string;
844
+ jobId: string;
845
+ applicationId: string;
846
+ }>;
847
+ }, "strict", z.ZodTypeAny, {
848
+ type: "job.applicationRemoved";
849
+ ids: {
850
+ userId: string;
851
+ jobId: string;
852
+ applicationId: string;
853
+ };
854
+ }, {
855
+ type: "job.applicationRemoved";
856
+ ids: {
857
+ userId: string;
858
+ jobId: string;
859
+ applicationId: string;
860
+ };
861
+ }>;
862
+ export declare const LibraryAssetSubmittedEventSchema: z.ZodObject<{
863
+ type: z.ZodLiteral<"libraryAsset.submitted">;
864
+ ids: z.ZodObject<{
865
+ projectId: z.ZodString;
866
+ }, "strict", z.ZodTypeAny, {
867
+ projectId: string;
868
+ }, {
869
+ projectId: string;
870
+ }>;
871
+ }, "strict", z.ZodTypeAny, {
872
+ type: "libraryAsset.submitted";
873
+ ids: {
874
+ projectId: string;
875
+ };
876
+ }, {
877
+ type: "libraryAsset.submitted";
878
+ ids: {
879
+ projectId: string;
880
+ };
881
+ }>;
882
+ export declare const LibraryAssetApprovedEventSchema: z.ZodObject<{
883
+ type: z.ZodLiteral<"libraryAsset.approved">;
884
+ ids: z.ZodObject<{
885
+ libraryId: z.ZodString;
886
+ }, "strict", z.ZodTypeAny, {
887
+ libraryId: string;
888
+ }, {
889
+ libraryId: string;
890
+ }>;
891
+ }, "strict", z.ZodTypeAny, {
892
+ type: "libraryAsset.approved";
893
+ ids: {
894
+ libraryId: string;
895
+ };
896
+ }, {
897
+ type: "libraryAsset.approved";
898
+ ids: {
899
+ libraryId: string;
900
+ };
901
+ }>;
902
+ export declare const LibraryAssetRejectedEventSchema: z.ZodObject<{
903
+ type: z.ZodLiteral<"libraryAsset.rejected">;
904
+ ids: z.ZodObject<{
905
+ libraryId: z.ZodString;
906
+ }, "strict", z.ZodTypeAny, {
907
+ libraryId: string;
908
+ }, {
909
+ libraryId: string;
910
+ }>;
911
+ }, "strict", z.ZodTypeAny, {
912
+ type: "libraryAsset.rejected";
913
+ ids: {
914
+ libraryId: string;
915
+ };
916
+ }, {
917
+ type: "libraryAsset.rejected";
918
+ ids: {
919
+ libraryId: string;
920
+ };
921
+ }>;
922
+ export declare const LibraryAssetNeedsRevisionEventSchema: z.ZodObject<{
923
+ type: z.ZodLiteral<"libraryAsset.needsRevision">;
924
+ ids: z.ZodObject<{
925
+ libraryId: z.ZodString;
926
+ }, "strict", z.ZodTypeAny, {
927
+ libraryId: string;
928
+ }, {
929
+ libraryId: string;
930
+ }>;
931
+ }, "strict", z.ZodTypeAny, {
932
+ type: "libraryAsset.needsRevision";
933
+ ids: {
934
+ libraryId: string;
935
+ };
936
+ }, {
937
+ type: "libraryAsset.needsRevision";
938
+ ids: {
939
+ libraryId: string;
940
+ };
941
+ }>;
942
+ export declare const LibraryAssetPreferenceUpdatedEventSchema: z.ZodObject<{
943
+ type: z.ZodLiteral<"libraryAsset.preferenceUpdated">;
944
+ ids: z.ZodObject<{
945
+ userId: z.ZodString;
946
+ libraryId: z.ZodString;
947
+ }, "strict", z.ZodTypeAny, {
948
+ userId: string;
949
+ libraryId: string;
950
+ }, {
951
+ userId: string;
952
+ libraryId: string;
953
+ }>;
954
+ }, "strict", z.ZodTypeAny, {
955
+ type: "libraryAsset.preferenceUpdated";
956
+ ids: {
957
+ userId: string;
958
+ libraryId: string;
959
+ };
960
+ }, {
961
+ type: "libraryAsset.preferenceUpdated";
962
+ ids: {
963
+ userId: string;
964
+ libraryId: string;
965
+ };
966
+ }>;
967
+ export declare const MessageSystemMarkedEventSchema: z.ZodObject<{
968
+ type: z.ZodLiteral<"message.systemMarked">;
969
+ ids: z.ZodObject<{
970
+ userId: z.ZodString;
971
+ }, "strict", z.ZodTypeAny, {
972
+ userId: string;
973
+ }, {
974
+ userId: string;
975
+ }>;
976
+ }, "strict", z.ZodTypeAny, {
977
+ type: "message.systemMarked";
978
+ ids: {
979
+ userId: string;
980
+ };
981
+ }, {
982
+ type: "message.systemMarked";
983
+ ids: {
984
+ userId: string;
985
+ };
986
+ }>;
987
+ export declare const MessageAdminThreadUpdatedEventSchema: z.ZodObject<{
988
+ type: z.ZodLiteral<"message.adminThreadUpdated">;
989
+ ids: z.ZodObject<{
990
+ messageId: z.ZodNullable<z.ZodString>;
991
+ }, "strict", z.ZodTypeAny, {
992
+ messageId: string | null;
993
+ }, {
994
+ messageId: string | null;
995
+ }>;
996
+ }, "strict", z.ZodTypeAny, {
997
+ type: "message.adminThreadUpdated";
998
+ ids: {
999
+ messageId: string | null;
1000
+ };
1001
+ }, {
1002
+ type: "message.adminThreadUpdated";
1003
+ ids: {
1004
+ messageId: string | null;
1005
+ };
1006
+ }>;
1007
+ export declare const AdminAppealReviewedEventSchema: z.ZodObject<{
1008
+ type: z.ZodLiteral<"admin.appealReviewed">;
1009
+ ids: z.ZodObject<{
1010
+ violationId: z.ZodString;
1011
+ userId: z.ZodString;
1012
+ }, "strict", z.ZodTypeAny, {
1013
+ userId: string;
1014
+ violationId: string;
1015
+ }, {
1016
+ userId: string;
1017
+ violationId: string;
1018
+ }>;
1019
+ }, "strict", z.ZodTypeAny, {
1020
+ type: "admin.appealReviewed";
1021
+ ids: {
1022
+ userId: string;
1023
+ violationId: string;
1024
+ };
1025
+ }, {
1026
+ type: "admin.appealReviewed";
1027
+ ids: {
1028
+ userId: string;
1029
+ violationId: string;
1030
+ };
1031
+ }>;
1032
+ export declare const AdminSystemMessageReviewedEventSchema: z.ZodObject<{
1033
+ type: z.ZodLiteral<"admin.systemMessageReviewed">;
1034
+ ids: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
1035
+ }, "strict", z.ZodTypeAny, {
1036
+ type: "admin.systemMessageReviewed";
1037
+ ids: {};
1038
+ }, {
1039
+ type: "admin.systemMessageReviewed";
1040
+ ids: {};
1041
+ }>;
1042
+ export declare const MentionReadEventSchema: z.ZodObject<{
1043
+ type: z.ZodLiteral<"mention.read">;
1044
+ ids: z.ZodObject<{
1045
+ userId: z.ZodString;
1046
+ mentionId: z.ZodString;
1047
+ }, "strict", z.ZodTypeAny, {
1048
+ userId: string;
1049
+ mentionId: string;
1050
+ }, {
1051
+ userId: string;
1052
+ mentionId: string;
1053
+ }>;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ type: "mention.read";
1056
+ ids: {
1057
+ userId: string;
1058
+ mentionId: string;
1059
+ };
1060
+ }, {
1061
+ type: "mention.read";
1062
+ ids: {
1063
+ userId: string;
1064
+ mentionId: string;
1065
+ };
1066
+ }>;
1067
+ export declare const AuthStatusChangedEventSchema: z.ZodObject<{
1068
+ type: z.ZodLiteral<"auth.statusChanged">;
1069
+ ids: z.ZodObject<{
1070
+ userId: z.ZodString;
1071
+ }, "strict", z.ZodTypeAny, {
1072
+ userId: string;
1073
+ }, {
1074
+ userId: string;
1075
+ }>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ type: "auth.statusChanged";
1078
+ ids: {
1079
+ userId: string;
1080
+ };
1081
+ }, {
1082
+ type: "auth.statusChanged";
1083
+ ids: {
1084
+ userId: string;
1085
+ };
1086
+ }>;
1087
+ export declare const ViolationAppealSubmittedEventSchema: z.ZodObject<{
1088
+ type: z.ZodLiteral<"violation.appealSubmitted">;
1089
+ ids: z.ZodObject<{
1090
+ userId: z.ZodString;
1091
+ violationId: z.ZodString;
1092
+ }, "strict", z.ZodTypeAny, {
1093
+ userId: string;
1094
+ violationId: string;
1095
+ }, {
1096
+ userId: string;
1097
+ violationId: string;
1098
+ }>;
1099
+ }, "strict", z.ZodTypeAny, {
1100
+ type: "violation.appealSubmitted";
1101
+ ids: {
1102
+ userId: string;
1103
+ violationId: string;
1104
+ };
1105
+ }, {
1106
+ type: "violation.appealSubmitted";
1107
+ ids: {
1108
+ userId: string;
1109
+ violationId: string;
1110
+ };
1111
+ }>;
1112
+ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1113
+ type: z.ZodLiteral<"profile.pictureUpdated">;
1114
+ ids: z.ZodObject<{
1115
+ userId: z.ZodString;
1116
+ }, "strict", z.ZodTypeAny, {
1117
+ userId: string;
1118
+ }, {
1119
+ userId: string;
1120
+ }>;
1121
+ }, "strict", z.ZodTypeAny, {
1122
+ type: "profile.pictureUpdated";
1123
+ ids: {
1124
+ userId: string;
1125
+ };
1126
+ }, {
1127
+ type: "profile.pictureUpdated";
1128
+ ids: {
1129
+ userId: string;
1130
+ };
1131
+ }>, z.ZodObject<{
1132
+ type: z.ZodLiteral<"skill.created">;
1133
+ ids: z.ZodObject<{
1134
+ userId: z.ZodString;
1135
+ skillId: z.ZodString;
1136
+ }, "strict", z.ZodTypeAny, {
1137
+ userId: string;
1138
+ skillId: string;
1139
+ }, {
1140
+ userId: string;
1141
+ skillId: string;
1142
+ }>;
1143
+ }, "strict", z.ZodTypeAny, {
1144
+ type: "skill.created";
1145
+ ids: {
1146
+ userId: string;
1147
+ skillId: string;
1148
+ };
1149
+ }, {
1150
+ type: "skill.created";
1151
+ ids: {
1152
+ userId: string;
1153
+ skillId: string;
1154
+ };
1155
+ }>, z.ZodObject<{
1156
+ type: z.ZodLiteral<"streetz.postCreated">;
1157
+ ids: z.ZodObject<{
1158
+ userId: z.ZodString;
1159
+ postId: z.ZodString;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ userId: string;
1162
+ postId: string;
1163
+ }, {
1164
+ userId: string;
1165
+ postId: string;
1166
+ }>;
1167
+ }, "strict", z.ZodTypeAny, {
1168
+ type: "streetz.postCreated";
1169
+ ids: {
1170
+ userId: string;
1171
+ postId: string;
1172
+ };
1173
+ }, {
1174
+ type: "streetz.postCreated";
1175
+ ids: {
1176
+ userId: string;
1177
+ postId: string;
1178
+ };
1179
+ }>, z.ZodObject<{
1180
+ type: z.ZodLiteral<"opportunity.promptCreated">;
1181
+ ids: z.ZodObject<{
1182
+ userId: z.ZodString;
1183
+ opportunityId: z.ZodString;
1184
+ projectId: z.ZodOptional<z.ZodString>;
1185
+ }, "strict", z.ZodTypeAny, {
1186
+ userId: string;
1187
+ opportunityId: string;
1188
+ projectId?: string | undefined;
1189
+ }, {
1190
+ userId: string;
1191
+ opportunityId: string;
1192
+ projectId?: string | undefined;
1193
+ }>;
1194
+ }, "strict", z.ZodTypeAny, {
1195
+ type: "opportunity.promptCreated";
1196
+ ids: {
1197
+ userId: string;
1198
+ opportunityId: string;
1199
+ projectId?: string | undefined;
1200
+ };
1201
+ }, {
1202
+ type: "opportunity.promptCreated";
1203
+ ids: {
1204
+ userId: string;
1205
+ opportunityId: string;
1206
+ projectId?: string | undefined;
1207
+ };
1208
+ }>, z.ZodObject<{
1209
+ type: z.ZodLiteral<"opportunity.replyCreated">;
1210
+ ids: z.ZodObject<{
1211
+ userId: z.ZodString;
1212
+ opportunityId: z.ZodString;
1213
+ replyId: z.ZodString;
1214
+ projectId: z.ZodOptional<z.ZodString>;
1215
+ }, "strict", z.ZodTypeAny, {
1216
+ userId: string;
1217
+ opportunityId: string;
1218
+ replyId: string;
1219
+ projectId?: string | undefined;
1220
+ }, {
1221
+ userId: string;
1222
+ opportunityId: string;
1223
+ replyId: string;
1224
+ projectId?: string | undefined;
1225
+ }>;
1226
+ }, "strict", z.ZodTypeAny, {
1227
+ type: "opportunity.replyCreated";
1228
+ ids: {
1229
+ userId: string;
1230
+ opportunityId: string;
1231
+ replyId: string;
1232
+ projectId?: string | undefined;
1233
+ };
1234
+ }, {
1235
+ type: "opportunity.replyCreated";
1236
+ ids: {
1237
+ userId: string;
1238
+ opportunityId: string;
1239
+ replyId: string;
1240
+ projectId?: string | undefined;
1241
+ };
1242
+ }>, z.ZodObject<{
1243
+ type: z.ZodLiteral<"job.created">;
1244
+ ids: z.ZodObject<{
1245
+ userId: z.ZodString;
1246
+ jobId: z.ZodString;
1247
+ projectId: z.ZodString;
1248
+ }, "strict", z.ZodTypeAny, {
1249
+ projectId: string;
1250
+ userId: string;
1251
+ jobId: string;
1252
+ }, {
1253
+ projectId: string;
1254
+ userId: string;
1255
+ jobId: string;
1256
+ }>;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ type: "job.created";
1259
+ ids: {
1260
+ projectId: string;
1261
+ userId: string;
1262
+ jobId: string;
1263
+ };
1264
+ }, {
1265
+ type: "job.created";
1266
+ ids: {
1267
+ projectId: string;
1268
+ userId: string;
1269
+ jobId: string;
1270
+ };
1271
+ }>, z.ZodObject<{
1272
+ type: z.ZodLiteral<"job.applicationSubmitted">;
1273
+ ids: z.ZodObject<{
1274
+ userId: z.ZodString;
1275
+ jobId: z.ZodString;
1276
+ projectId: z.ZodString;
1277
+ applicationId: z.ZodString;
1278
+ }, "strict", z.ZodTypeAny, {
1279
+ projectId: string;
1280
+ userId: string;
1281
+ jobId: string;
1282
+ applicationId: string;
1283
+ }, {
1284
+ projectId: string;
1285
+ userId: string;
1286
+ jobId: string;
1287
+ applicationId: string;
1288
+ }>;
1289
+ }, "strict", z.ZodTypeAny, {
1290
+ type: "job.applicationSubmitted";
1291
+ ids: {
1292
+ projectId: string;
1293
+ userId: string;
1294
+ jobId: string;
1295
+ applicationId: string;
1296
+ };
1297
+ }, {
1298
+ type: "job.applicationSubmitted";
1299
+ ids: {
1300
+ projectId: string;
1301
+ userId: string;
1302
+ jobId: string;
1303
+ applicationId: string;
1304
+ };
1305
+ }>, z.ZodObject<{
1306
+ type: z.ZodLiteral<"project.updated">;
1307
+ ids: z.ZodObject<{
1308
+ projectId: z.ZodString;
1309
+ }, "strict", z.ZodTypeAny, {
1310
+ projectId: string;
1311
+ }, {
1312
+ projectId: string;
1313
+ }>;
1314
+ }, "strict", z.ZodTypeAny, {
1315
+ type: "project.updated";
1316
+ ids: {
1317
+ projectId: string;
1318
+ };
1319
+ }, {
1320
+ type: "project.updated";
1321
+ ids: {
1322
+ projectId: string;
1323
+ };
1324
+ }>, z.ZodObject<{
1325
+ type: z.ZodLiteral<"libraryAsset.coverUpdated">;
1326
+ ids: z.ZodObject<{
1327
+ projectId: z.ZodString;
1328
+ itemType: z.ZodEnum<["tale", "tune", "television"]>;
1329
+ itemId: z.ZodString;
1330
+ }, "strict", z.ZodTypeAny, {
1331
+ projectId: string;
1332
+ itemType: "tale" | "tune" | "television";
1333
+ itemId: string;
1334
+ }, {
1335
+ projectId: string;
1336
+ itemType: "tale" | "tune" | "television";
1337
+ itemId: string;
1338
+ }>;
1339
+ }, "strict", z.ZodTypeAny, {
1340
+ type: "libraryAsset.coverUpdated";
1341
+ ids: {
1342
+ projectId: string;
1343
+ itemType: "tale" | "tune" | "television";
1344
+ itemId: string;
1345
+ };
1346
+ }, {
1347
+ type: "libraryAsset.coverUpdated";
1348
+ ids: {
1349
+ projectId: string;
1350
+ itemType: "tale" | "tune" | "television";
1351
+ itemId: string;
1352
+ };
1353
+ }>, z.ZodObject<{
1354
+ type: z.ZodLiteral<"libraryAsset.subItemUpdated">;
1355
+ ids: z.ZodObject<{
1356
+ projectId: z.ZodString;
1357
+ itemType: z.ZodEnum<["chapter", "song", "show"]>;
1358
+ parentId: z.ZodString;
1359
+ itemId: z.ZodString;
1360
+ }, "strict", z.ZodTypeAny, {
1361
+ projectId: string;
1362
+ itemType: "chapter" | "song" | "show";
1363
+ itemId: string;
1364
+ parentId: string;
1365
+ }, {
1366
+ projectId: string;
1367
+ itemType: "chapter" | "song" | "show";
1368
+ itemId: string;
1369
+ parentId: string;
1370
+ }>;
1371
+ }, "strict", z.ZodTypeAny, {
1372
+ type: "libraryAsset.subItemUpdated";
1373
+ ids: {
1374
+ projectId: string;
1375
+ itemType: "chapter" | "song" | "show";
1376
+ itemId: string;
1377
+ parentId: string;
1378
+ };
1379
+ }, {
1380
+ type: "libraryAsset.subItemUpdated";
1381
+ ids: {
1382
+ projectId: string;
1383
+ itemType: "chapter" | "song" | "show";
1384
+ itemId: string;
1385
+ parentId: string;
1386
+ };
1387
+ }>, z.ZodObject<{
1388
+ type: z.ZodLiteral<"moderation.violationCreated">;
1389
+ ids: z.ZodObject<{
1390
+ userId: z.ZodString;
1391
+ violationId: z.ZodString;
1392
+ fileOrigin: z.ZodEnum<["profile-picture", "skill-media", "streetz", "job-posting", "job-reply", "opportunity-prompt", "opportunity-reply", "admin-opportunity-prompt", "library-cover-square", "library-cover-poster", "library-cover-cinematic", "chapter-photo", "song-photo", "song-audio", "show-photo", "show-video", "chat-attachment", "project-file"]>;
1393
+ pendingMediaId: z.ZodString;
1394
+ }, "strict", z.ZodTypeAny, {
1395
+ userId: string;
1396
+ violationId: string;
1397
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
1398
+ pendingMediaId: string;
1399
+ }, {
1400
+ userId: string;
1401
+ violationId: string;
1402
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
1403
+ pendingMediaId: string;
1404
+ }>;
1405
+ }, "strict", z.ZodTypeAny, {
1406
+ type: "moderation.violationCreated";
1407
+ ids: {
1408
+ userId: string;
1409
+ violationId: string;
1410
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
1411
+ pendingMediaId: string;
1412
+ };
1413
+ }, {
1414
+ type: "moderation.violationCreated";
1415
+ ids: {
1416
+ userId: string;
1417
+ violationId: string;
1418
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "admin-opportunity-prompt" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment" | "project-file";
1419
+ pendingMediaId: string;
1420
+ };
1421
+ }>, z.ZodObject<{
1422
+ type: z.ZodLiteral<"chat.attachmentFinalized">;
1423
+ ids: z.ZodObject<{
1424
+ messageId: z.ZodString;
1425
+ conversationId: z.ZodString;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ messageId: string;
1428
+ conversationId: string;
1429
+ }, {
1430
+ messageId: string;
1431
+ conversationId: string;
1432
+ }>;
1433
+ }, "strict", z.ZodTypeAny, {
1434
+ type: "chat.attachmentFinalized";
1435
+ ids: {
1436
+ messageId: string;
1437
+ conversationId: string;
1438
+ };
1439
+ }, {
1440
+ type: "chat.attachmentFinalized";
1441
+ ids: {
1442
+ messageId: string;
1443
+ conversationId: string;
1444
+ };
1445
+ }>, z.ZodObject<{
1446
+ type: z.ZodLiteral<"follow.created">;
1447
+ ids: z.ZodObject<{
1448
+ followerId: z.ZodString;
1449
+ followedId: z.ZodString;
1450
+ }, "strict", z.ZodTypeAny, {
1451
+ followerId: string;
1452
+ followedId: string;
1453
+ }, {
1454
+ followerId: string;
1455
+ followedId: string;
1456
+ }>;
1457
+ }, "strict", z.ZodTypeAny, {
1458
+ type: "follow.created";
1459
+ ids: {
1460
+ followerId: string;
1461
+ followedId: string;
1462
+ };
1463
+ }, {
1464
+ type: "follow.created";
1465
+ ids: {
1466
+ followerId: string;
1467
+ followedId: string;
1468
+ };
1469
+ }>, z.ZodObject<{
1470
+ type: z.ZodLiteral<"follow.removed">;
1471
+ ids: z.ZodObject<{
1472
+ followerId: z.ZodString;
1473
+ followedId: z.ZodString;
1474
+ }, "strict", z.ZodTypeAny, {
1475
+ followerId: string;
1476
+ followedId: string;
1477
+ }, {
1478
+ followerId: string;
1479
+ followedId: string;
1480
+ }>;
1481
+ }, "strict", z.ZodTypeAny, {
1482
+ type: "follow.removed";
1483
+ ids: {
1484
+ followerId: string;
1485
+ followedId: string;
1486
+ };
1487
+ }, {
1488
+ type: "follow.removed";
1489
+ ids: {
1490
+ followerId: string;
1491
+ followedId: string;
1492
+ };
1493
+ }>, z.ZodObject<{
1494
+ type: z.ZodLiteral<"streetz.postLiked">;
1495
+ ids: z.ZodObject<{
1496
+ userId: z.ZodString;
1497
+ postId: z.ZodString;
1498
+ authorId: z.ZodString;
1499
+ }, "strict", z.ZodTypeAny, {
1500
+ userId: string;
1501
+ postId: string;
1502
+ authorId: string;
1503
+ }, {
1504
+ userId: string;
1505
+ postId: string;
1506
+ authorId: string;
1507
+ }>;
1508
+ }, "strict", z.ZodTypeAny, {
1509
+ type: "streetz.postLiked";
1510
+ ids: {
1511
+ userId: string;
1512
+ postId: string;
1513
+ authorId: string;
1514
+ };
1515
+ }, {
1516
+ type: "streetz.postLiked";
1517
+ ids: {
1518
+ userId: string;
1519
+ postId: string;
1520
+ authorId: string;
1521
+ };
1522
+ }>, z.ZodObject<{
1523
+ type: z.ZodLiteral<"streetz.postUnliked">;
1524
+ ids: z.ZodObject<{
1525
+ userId: z.ZodString;
1526
+ postId: z.ZodString;
1527
+ authorId: z.ZodString;
1528
+ }, "strict", z.ZodTypeAny, {
1529
+ userId: string;
1530
+ postId: string;
1531
+ authorId: string;
1532
+ }, {
1533
+ userId: string;
1534
+ postId: string;
1535
+ authorId: string;
1536
+ }>;
1537
+ }, "strict", z.ZodTypeAny, {
1538
+ type: "streetz.postUnliked";
1539
+ ids: {
1540
+ userId: string;
1541
+ postId: string;
1542
+ authorId: string;
1543
+ };
1544
+ }, {
1545
+ type: "streetz.postUnliked";
1546
+ ids: {
1547
+ userId: string;
1548
+ postId: string;
1549
+ authorId: string;
1550
+ };
1551
+ }>, z.ZodObject<{
1552
+ type: z.ZodLiteral<"profile.preferencesUpdated">;
1553
+ ids: z.ZodObject<{
1554
+ userId: z.ZodString;
1555
+ }, "strict", z.ZodTypeAny, {
1556
+ userId: string;
1557
+ }, {
1558
+ userId: string;
1559
+ }>;
1560
+ }, "strict", z.ZodTypeAny, {
1561
+ type: "profile.preferencesUpdated";
1562
+ ids: {
1563
+ userId: string;
1564
+ };
1565
+ }, {
1566
+ type: "profile.preferencesUpdated";
1567
+ ids: {
1568
+ userId: string;
1569
+ };
1570
+ }>, z.ZodObject<{
1571
+ type: z.ZodLiteral<"skill.deleted">;
1572
+ ids: z.ZodObject<{
1573
+ userId: z.ZodString;
1574
+ skillId: z.ZodString;
1575
+ }, "strict", z.ZodTypeAny, {
1576
+ userId: string;
1577
+ skillId: string;
1578
+ }, {
1579
+ userId: string;
1580
+ skillId: string;
1581
+ }>;
1582
+ }, "strict", z.ZodTypeAny, {
1583
+ type: "skill.deleted";
1584
+ ids: {
1585
+ userId: string;
1586
+ skillId: string;
1587
+ };
1588
+ }, {
1589
+ type: "skill.deleted";
1590
+ ids: {
1591
+ userId: string;
1592
+ skillId: string;
1593
+ };
1594
+ }>, z.ZodObject<{
1595
+ type: z.ZodLiteral<"skill.updated">;
1596
+ ids: z.ZodObject<{
1597
+ userId: z.ZodString;
1598
+ skillId: z.ZodString;
1599
+ }, "strict", z.ZodTypeAny, {
1600
+ userId: string;
1601
+ skillId: string;
1602
+ }, {
1603
+ userId: string;
1604
+ skillId: string;
1605
+ }>;
1606
+ }, "strict", z.ZodTypeAny, {
1607
+ type: "skill.updated";
1608
+ ids: {
1609
+ userId: string;
1610
+ skillId: string;
1611
+ };
1612
+ }, {
1613
+ type: "skill.updated";
1614
+ ids: {
1615
+ userId: string;
1616
+ skillId: string;
1617
+ };
1618
+ }>, z.ZodObject<{
1619
+ type: z.ZodLiteral<"project.created">;
1620
+ ids: z.ZodObject<{
1621
+ userId: z.ZodString;
1622
+ projectId: z.ZodString;
1623
+ }, "strict", z.ZodTypeAny, {
1624
+ projectId: string;
1625
+ userId: string;
1626
+ }, {
1627
+ projectId: string;
1628
+ userId: string;
1629
+ }>;
1630
+ }, "strict", z.ZodTypeAny, {
1631
+ type: "project.created";
1632
+ ids: {
1633
+ projectId: string;
1634
+ userId: string;
1635
+ };
1636
+ }, {
1637
+ type: "project.created";
1638
+ ids: {
1639
+ projectId: string;
1640
+ userId: string;
1641
+ };
1642
+ }>, z.ZodObject<{
1643
+ type: z.ZodLiteral<"project.published">;
1644
+ ids: z.ZodObject<{
1645
+ projectId: z.ZodString;
1646
+ userId: z.ZodString;
1647
+ }, "strict", z.ZodTypeAny, {
1648
+ projectId: string;
1649
+ userId: string;
1650
+ }, {
1651
+ projectId: string;
1652
+ userId: string;
1653
+ }>;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ type: "project.published";
1656
+ ids: {
1657
+ projectId: string;
1658
+ userId: string;
1659
+ };
1660
+ }, {
1661
+ type: "project.published";
1662
+ ids: {
1663
+ projectId: string;
1664
+ userId: string;
1665
+ };
1666
+ }>, z.ZodObject<{
1667
+ type: z.ZodLiteral<"project.sharesUpdated">;
1668
+ ids: z.ZodObject<{
1669
+ projectId: z.ZodString;
1670
+ }, "strict", z.ZodTypeAny, {
1671
+ projectId: string;
1672
+ }, {
1673
+ projectId: string;
1674
+ }>;
1675
+ }, "strict", z.ZodTypeAny, {
1676
+ type: "project.sharesUpdated";
1677
+ ids: {
1678
+ projectId: string;
1679
+ };
1680
+ }, {
1681
+ type: "project.sharesUpdated";
1682
+ ids: {
1683
+ projectId: string;
1684
+ };
1685
+ }>, z.ZodObject<{
1686
+ type: z.ZodLiteral<"project.inviteSent">;
1687
+ ids: z.ZodObject<{
1688
+ projectId: z.ZodString;
1689
+ inviteId: z.ZodString;
1690
+ inviterId: z.ZodString;
1691
+ inviteeId: z.ZodString;
1692
+ }, "strict", z.ZodTypeAny, {
1693
+ projectId: string;
1694
+ inviteId: string;
1695
+ inviterId: string;
1696
+ inviteeId: string;
1697
+ }, {
1698
+ projectId: string;
1699
+ inviteId: string;
1700
+ inviterId: string;
1701
+ inviteeId: string;
1702
+ }>;
1703
+ }, "strict", z.ZodTypeAny, {
1704
+ type: "project.inviteSent";
1705
+ ids: {
1706
+ projectId: string;
1707
+ inviteId: string;
1708
+ inviterId: string;
1709
+ inviteeId: string;
1710
+ };
1711
+ }, {
1712
+ type: "project.inviteSent";
1713
+ ids: {
1714
+ projectId: string;
1715
+ inviteId: string;
1716
+ inviterId: string;
1717
+ inviteeId: string;
1718
+ };
1719
+ }>, z.ZodObject<{
1720
+ type: z.ZodLiteral<"project.inviteAccepted">;
1721
+ ids: z.ZodObject<{
1722
+ projectId: z.ZodString;
1723
+ inviteId: z.ZodString;
1724
+ userId: z.ZodString;
1725
+ }, "strict", z.ZodTypeAny, {
1726
+ projectId: string;
1727
+ userId: string;
1728
+ inviteId: string;
1729
+ }, {
1730
+ projectId: string;
1731
+ userId: string;
1732
+ inviteId: string;
1733
+ }>;
1734
+ }, "strict", z.ZodTypeAny, {
1735
+ type: "project.inviteAccepted";
1736
+ ids: {
1737
+ projectId: string;
1738
+ userId: string;
1739
+ inviteId: string;
1740
+ };
1741
+ }, {
1742
+ type: "project.inviteAccepted";
1743
+ ids: {
1744
+ projectId: string;
1745
+ userId: string;
1746
+ inviteId: string;
1747
+ };
1748
+ }>, z.ZodObject<{
1749
+ type: z.ZodLiteral<"project.inviteDeclined">;
1750
+ ids: z.ZodObject<{
1751
+ projectId: z.ZodString;
1752
+ inviteId: z.ZodString;
1753
+ userId: z.ZodString;
1754
+ }, "strict", z.ZodTypeAny, {
1755
+ projectId: string;
1756
+ userId: string;
1757
+ inviteId: string;
1758
+ }, {
1759
+ projectId: string;
1760
+ userId: string;
1761
+ inviteId: string;
1762
+ }>;
1763
+ }, "strict", z.ZodTypeAny, {
1764
+ type: "project.inviteDeclined";
1765
+ ids: {
1766
+ projectId: string;
1767
+ userId: string;
1768
+ inviteId: string;
1769
+ };
1770
+ }, {
1771
+ type: "project.inviteDeclined";
1772
+ ids: {
1773
+ projectId: string;
1774
+ userId: string;
1775
+ inviteId: string;
1776
+ };
1777
+ }>, z.ZodObject<{
1778
+ type: z.ZodLiteral<"project.inviteCancelled">;
1779
+ ids: z.ZodObject<{
1780
+ projectId: z.ZodString;
1781
+ inviteId: z.ZodString;
1782
+ }, "strict", z.ZodTypeAny, {
1783
+ projectId: string;
1784
+ inviteId: string;
1785
+ }, {
1786
+ projectId: string;
1787
+ inviteId: string;
1788
+ }>;
1789
+ }, "strict", z.ZodTypeAny, {
1790
+ type: "project.inviteCancelled";
1791
+ ids: {
1792
+ projectId: string;
1793
+ inviteId: string;
1794
+ };
1795
+ }, {
1796
+ type: "project.inviteCancelled";
1797
+ ids: {
1798
+ projectId: string;
1799
+ inviteId: string;
1800
+ };
1801
+ }>, z.ZodObject<{
1802
+ type: z.ZodLiteral<"opportunity.replyVoted">;
1803
+ ids: z.ZodObject<{
1804
+ userId: z.ZodString;
1805
+ opportunityId: z.ZodString;
1806
+ replyId: z.ZodString;
1807
+ projectId: z.ZodString;
1808
+ }, "strict", z.ZodTypeAny, {
1809
+ projectId: string;
1810
+ userId: string;
1811
+ opportunityId: string;
1812
+ replyId: string;
1813
+ }, {
1814
+ projectId: string;
1815
+ userId: string;
1816
+ opportunityId: string;
1817
+ replyId: string;
1818
+ }>;
1819
+ }, "strict", z.ZodTypeAny, {
1820
+ type: "opportunity.replyVoted";
1821
+ ids: {
1822
+ projectId: string;
1823
+ userId: string;
1824
+ opportunityId: string;
1825
+ replyId: string;
1826
+ };
1827
+ }, {
1828
+ type: "opportunity.replyVoted";
1829
+ ids: {
1830
+ projectId: string;
1831
+ userId: string;
1832
+ opportunityId: string;
1833
+ replyId: string;
1834
+ };
1835
+ }>, z.ZodObject<{
1836
+ type: z.ZodLiteral<"opportunity.closed">;
1837
+ ids: z.ZodObject<{
1838
+ opportunityId: z.ZodString;
1839
+ projectId: z.ZodOptional<z.ZodString>;
1840
+ }, "strict", z.ZodTypeAny, {
1841
+ opportunityId: string;
1842
+ projectId?: string | undefined;
1843
+ }, {
1844
+ opportunityId: string;
1845
+ projectId?: string | undefined;
1846
+ }>;
1847
+ }, "strict", z.ZodTypeAny, {
1848
+ type: "opportunity.closed";
1849
+ ids: {
1850
+ opportunityId: string;
1851
+ projectId?: string | undefined;
1852
+ };
1853
+ }, {
1854
+ type: "opportunity.closed";
1855
+ ids: {
1856
+ opportunityId: string;
1857
+ projectId?: string | undefined;
1858
+ };
1859
+ }>, z.ZodObject<{
1860
+ type: z.ZodLiteral<"job.deleted">;
1861
+ ids: z.ZodObject<{
1862
+ jobId: z.ZodString;
1863
+ projectId: z.ZodString;
1864
+ }, "strict", z.ZodTypeAny, {
1865
+ projectId: string;
1866
+ jobId: string;
1867
+ }, {
1868
+ projectId: string;
1869
+ jobId: string;
1870
+ }>;
1871
+ }, "strict", z.ZodTypeAny, {
1872
+ type: "job.deleted";
1873
+ ids: {
1874
+ projectId: string;
1875
+ jobId: string;
1876
+ };
1877
+ }, {
1878
+ type: "job.deleted";
1879
+ ids: {
1880
+ projectId: string;
1881
+ jobId: string;
1882
+ };
1883
+ }>, z.ZodObject<{
1884
+ type: z.ZodLiteral<"job.applicationSaved">;
1885
+ ids: z.ZodObject<{
1886
+ jobId: z.ZodString;
1887
+ applicationId: z.ZodString;
1888
+ userId: z.ZodString;
1889
+ }, "strict", z.ZodTypeAny, {
1890
+ userId: string;
1891
+ jobId: string;
1892
+ applicationId: string;
1893
+ }, {
1894
+ userId: string;
1895
+ jobId: string;
1896
+ applicationId: string;
1897
+ }>;
1898
+ }, "strict", z.ZodTypeAny, {
1899
+ type: "job.applicationSaved";
1900
+ ids: {
1901
+ userId: string;
1902
+ jobId: string;
1903
+ applicationId: string;
1904
+ };
1905
+ }, {
1906
+ type: "job.applicationSaved";
1907
+ ids: {
1908
+ userId: string;
1909
+ jobId: string;
1910
+ applicationId: string;
1911
+ };
1912
+ }>, z.ZodObject<{
1913
+ type: z.ZodLiteral<"job.applicationRemoved">;
1914
+ ids: z.ZodObject<{
1915
+ jobId: z.ZodString;
1916
+ applicationId: z.ZodString;
1917
+ userId: z.ZodString;
1918
+ }, "strict", z.ZodTypeAny, {
1919
+ userId: string;
1920
+ jobId: string;
1921
+ applicationId: string;
1922
+ }, {
1923
+ userId: string;
1924
+ jobId: string;
1925
+ applicationId: string;
1926
+ }>;
1927
+ }, "strict", z.ZodTypeAny, {
1928
+ type: "job.applicationRemoved";
1929
+ ids: {
1930
+ userId: string;
1931
+ jobId: string;
1932
+ applicationId: string;
1933
+ };
1934
+ }, {
1935
+ type: "job.applicationRemoved";
1936
+ ids: {
1937
+ userId: string;
1938
+ jobId: string;
1939
+ applicationId: string;
1940
+ };
1941
+ }>, z.ZodObject<{
1942
+ type: z.ZodLiteral<"libraryAsset.submitted">;
1943
+ ids: z.ZodObject<{
1944
+ projectId: z.ZodString;
1945
+ }, "strict", z.ZodTypeAny, {
1946
+ projectId: string;
1947
+ }, {
1948
+ projectId: string;
1949
+ }>;
1950
+ }, "strict", z.ZodTypeAny, {
1951
+ type: "libraryAsset.submitted";
1952
+ ids: {
1953
+ projectId: string;
1954
+ };
1955
+ }, {
1956
+ type: "libraryAsset.submitted";
1957
+ ids: {
1958
+ projectId: string;
1959
+ };
1960
+ }>, z.ZodObject<{
1961
+ type: z.ZodLiteral<"libraryAsset.approved">;
1962
+ ids: z.ZodObject<{
1963
+ libraryId: z.ZodString;
1964
+ }, "strict", z.ZodTypeAny, {
1965
+ libraryId: string;
1966
+ }, {
1967
+ libraryId: string;
1968
+ }>;
1969
+ }, "strict", z.ZodTypeAny, {
1970
+ type: "libraryAsset.approved";
1971
+ ids: {
1972
+ libraryId: string;
1973
+ };
1974
+ }, {
1975
+ type: "libraryAsset.approved";
1976
+ ids: {
1977
+ libraryId: string;
1978
+ };
1979
+ }>, z.ZodObject<{
1980
+ type: z.ZodLiteral<"libraryAsset.rejected">;
1981
+ ids: z.ZodObject<{
1982
+ libraryId: z.ZodString;
1983
+ }, "strict", z.ZodTypeAny, {
1984
+ libraryId: string;
1985
+ }, {
1986
+ libraryId: string;
1987
+ }>;
1988
+ }, "strict", z.ZodTypeAny, {
1989
+ type: "libraryAsset.rejected";
1990
+ ids: {
1991
+ libraryId: string;
1992
+ };
1993
+ }, {
1994
+ type: "libraryAsset.rejected";
1995
+ ids: {
1996
+ libraryId: string;
1997
+ };
1998
+ }>, z.ZodObject<{
1999
+ type: z.ZodLiteral<"libraryAsset.needsRevision">;
2000
+ ids: z.ZodObject<{
2001
+ libraryId: z.ZodString;
2002
+ }, "strict", z.ZodTypeAny, {
2003
+ libraryId: string;
2004
+ }, {
2005
+ libraryId: string;
2006
+ }>;
2007
+ }, "strict", z.ZodTypeAny, {
2008
+ type: "libraryAsset.needsRevision";
2009
+ ids: {
2010
+ libraryId: string;
2011
+ };
2012
+ }, {
2013
+ type: "libraryAsset.needsRevision";
2014
+ ids: {
2015
+ libraryId: string;
2016
+ };
2017
+ }>, z.ZodObject<{
2018
+ type: z.ZodLiteral<"libraryAsset.preferenceUpdated">;
2019
+ ids: z.ZodObject<{
2020
+ userId: z.ZodString;
2021
+ libraryId: z.ZodString;
2022
+ }, "strict", z.ZodTypeAny, {
2023
+ userId: string;
2024
+ libraryId: string;
2025
+ }, {
2026
+ userId: string;
2027
+ libraryId: string;
2028
+ }>;
2029
+ }, "strict", z.ZodTypeAny, {
2030
+ type: "libraryAsset.preferenceUpdated";
2031
+ ids: {
2032
+ userId: string;
2033
+ libraryId: string;
2034
+ };
2035
+ }, {
2036
+ type: "libraryAsset.preferenceUpdated";
2037
+ ids: {
2038
+ userId: string;
2039
+ libraryId: string;
2040
+ };
2041
+ }>, z.ZodObject<{
2042
+ type: z.ZodLiteral<"message.systemMarked">;
2043
+ ids: z.ZodObject<{
2044
+ userId: z.ZodString;
2045
+ }, "strict", z.ZodTypeAny, {
2046
+ userId: string;
2047
+ }, {
2048
+ userId: string;
2049
+ }>;
2050
+ }, "strict", z.ZodTypeAny, {
2051
+ type: "message.systemMarked";
2052
+ ids: {
2053
+ userId: string;
2054
+ };
2055
+ }, {
2056
+ type: "message.systemMarked";
2057
+ ids: {
2058
+ userId: string;
2059
+ };
2060
+ }>, z.ZodObject<{
2061
+ type: z.ZodLiteral<"message.adminThreadUpdated">;
2062
+ ids: z.ZodObject<{
2063
+ messageId: z.ZodNullable<z.ZodString>;
2064
+ }, "strict", z.ZodTypeAny, {
2065
+ messageId: string | null;
2066
+ }, {
2067
+ messageId: string | null;
2068
+ }>;
2069
+ }, "strict", z.ZodTypeAny, {
2070
+ type: "message.adminThreadUpdated";
2071
+ ids: {
2072
+ messageId: string | null;
2073
+ };
2074
+ }, {
2075
+ type: "message.adminThreadUpdated";
2076
+ ids: {
2077
+ messageId: string | null;
2078
+ };
2079
+ }>, z.ZodObject<{
2080
+ type: z.ZodLiteral<"admin.appealReviewed">;
2081
+ ids: z.ZodObject<{
2082
+ violationId: z.ZodString;
2083
+ userId: z.ZodString;
2084
+ }, "strict", z.ZodTypeAny, {
2085
+ userId: string;
2086
+ violationId: string;
2087
+ }, {
2088
+ userId: string;
2089
+ violationId: string;
2090
+ }>;
2091
+ }, "strict", z.ZodTypeAny, {
2092
+ type: "admin.appealReviewed";
2093
+ ids: {
2094
+ userId: string;
2095
+ violationId: string;
2096
+ };
2097
+ }, {
2098
+ type: "admin.appealReviewed";
2099
+ ids: {
2100
+ userId: string;
2101
+ violationId: string;
2102
+ };
2103
+ }>, z.ZodObject<{
2104
+ type: z.ZodLiteral<"admin.systemMessageReviewed">;
2105
+ ids: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
2106
+ }, "strict", z.ZodTypeAny, {
2107
+ type: "admin.systemMessageReviewed";
2108
+ ids: {};
2109
+ }, {
2110
+ type: "admin.systemMessageReviewed";
2111
+ ids: {};
2112
+ }>, z.ZodObject<{
2113
+ type: z.ZodLiteral<"mention.read">;
2114
+ ids: z.ZodObject<{
2115
+ userId: z.ZodString;
2116
+ mentionId: z.ZodString;
2117
+ }, "strict", z.ZodTypeAny, {
2118
+ userId: string;
2119
+ mentionId: string;
2120
+ }, {
2121
+ userId: string;
2122
+ mentionId: string;
2123
+ }>;
2124
+ }, "strict", z.ZodTypeAny, {
2125
+ type: "mention.read";
2126
+ ids: {
2127
+ userId: string;
2128
+ mentionId: string;
2129
+ };
2130
+ }, {
2131
+ type: "mention.read";
2132
+ ids: {
2133
+ userId: string;
2134
+ mentionId: string;
2135
+ };
2136
+ }>, z.ZodObject<{
2137
+ type: z.ZodLiteral<"auth.statusChanged">;
2138
+ ids: z.ZodObject<{
2139
+ userId: z.ZodString;
2140
+ }, "strict", z.ZodTypeAny, {
2141
+ userId: string;
2142
+ }, {
2143
+ userId: string;
2144
+ }>;
2145
+ }, "strict", z.ZodTypeAny, {
2146
+ type: "auth.statusChanged";
2147
+ ids: {
2148
+ userId: string;
2149
+ };
2150
+ }, {
2151
+ type: "auth.statusChanged";
2152
+ ids: {
2153
+ userId: string;
2154
+ };
2155
+ }>, z.ZodObject<{
2156
+ type: z.ZodLiteral<"violation.appealSubmitted">;
2157
+ ids: z.ZodObject<{
2158
+ userId: z.ZodString;
2159
+ violationId: z.ZodString;
2160
+ }, "strict", z.ZodTypeAny, {
2161
+ userId: string;
2162
+ violationId: string;
2163
+ }, {
2164
+ userId: string;
2165
+ violationId: string;
2166
+ }>;
2167
+ }, "strict", z.ZodTypeAny, {
2168
+ type: "violation.appealSubmitted";
2169
+ ids: {
2170
+ userId: string;
2171
+ violationId: string;
2172
+ };
2173
+ }, {
2174
+ type: "violation.appealSubmitted";
2175
+ ids: {
2176
+ userId: string;
2177
+ violationId: string;
2178
+ };
2179
+ }>]>;
2180
+ export type DomainEvent = z.infer<typeof DomainEventSchema>;
2181
+ export type DomainEventIdsFor<T extends DomainEvent['type']> = Extract<DomainEvent, {
2182
+ type: T;
2183
+ }>['ids'];
2184
+ //# sourceMappingURL=domain-events.d.ts.map