@ttt-productions/media-contracts 0.2.23 → 0.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,646 @@
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.ZodString;
109
+ }, "strict", z.ZodTypeAny, {
110
+ userId: string;
111
+ opportunityId: string;
112
+ projectId: string;
113
+ replyId: string;
114
+ }, {
115
+ userId: string;
116
+ opportunityId: string;
117
+ projectId: string;
118
+ replyId: string;
119
+ }>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ type: "opportunity.replyCreated";
122
+ ids: {
123
+ userId: string;
124
+ opportunityId: string;
125
+ projectId: string;
126
+ replyId: string;
127
+ };
128
+ }, {
129
+ type: "opportunity.replyCreated";
130
+ ids: {
131
+ userId: string;
132
+ opportunityId: string;
133
+ projectId: string;
134
+ replyId: string;
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
+ userId: string;
145
+ projectId: string;
146
+ jobId: string;
147
+ }, {
148
+ userId: string;
149
+ projectId: string;
150
+ jobId: string;
151
+ }>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ type: "job.created";
154
+ ids: {
155
+ userId: string;
156
+ projectId: string;
157
+ jobId: string;
158
+ };
159
+ }, {
160
+ type: "job.created";
161
+ ids: {
162
+ userId: string;
163
+ projectId: 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
+ userId: string;
176
+ projectId: string;
177
+ jobId: string;
178
+ applicationId: string;
179
+ }, {
180
+ userId: string;
181
+ projectId: string;
182
+ jobId: string;
183
+ applicationId: string;
184
+ }>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ type: "job.applicationSubmitted";
187
+ ids: {
188
+ userId: string;
189
+ projectId: string;
190
+ jobId: string;
191
+ applicationId: string;
192
+ };
193
+ }, {
194
+ type: "job.applicationSubmitted";
195
+ ids: {
196
+ userId: string;
197
+ projectId: string;
198
+ jobId: string;
199
+ applicationId: string;
200
+ };
201
+ }>;
202
+ export declare const LibraryAssetCoverUpdatedEventSchema: z.ZodObject<{
203
+ type: z.ZodLiteral<"libraryAsset.coverUpdated">;
204
+ ids: z.ZodObject<{
205
+ projectId: z.ZodString;
206
+ itemType: z.ZodEnum<["tale", "tune", "television"]>;
207
+ itemId: z.ZodString;
208
+ }, "strict", z.ZodTypeAny, {
209
+ projectId: string;
210
+ itemType: "tale" | "tune" | "television";
211
+ itemId: string;
212
+ }, {
213
+ projectId: string;
214
+ itemType: "tale" | "tune" | "television";
215
+ itemId: string;
216
+ }>;
217
+ }, "strict", z.ZodTypeAny, {
218
+ type: "libraryAsset.coverUpdated";
219
+ ids: {
220
+ projectId: string;
221
+ itemType: "tale" | "tune" | "television";
222
+ itemId: string;
223
+ };
224
+ }, {
225
+ type: "libraryAsset.coverUpdated";
226
+ ids: {
227
+ projectId: string;
228
+ itemType: "tale" | "tune" | "television";
229
+ itemId: string;
230
+ };
231
+ }>;
232
+ export declare const LibraryAssetSubItemUpdatedEventSchema: z.ZodObject<{
233
+ type: z.ZodLiteral<"libraryAsset.subItemUpdated">;
234
+ ids: z.ZodObject<{
235
+ projectId: z.ZodString;
236
+ itemType: z.ZodEnum<["chapter", "song", "show"]>;
237
+ parentId: z.ZodString;
238
+ itemId: z.ZodString;
239
+ }, "strict", z.ZodTypeAny, {
240
+ projectId: string;
241
+ itemType: "chapter" | "song" | "show";
242
+ itemId: string;
243
+ parentId: string;
244
+ }, {
245
+ projectId: string;
246
+ itemType: "chapter" | "song" | "show";
247
+ itemId: string;
248
+ parentId: string;
249
+ }>;
250
+ }, "strict", z.ZodTypeAny, {
251
+ type: "libraryAsset.subItemUpdated";
252
+ ids: {
253
+ projectId: string;
254
+ itemType: "chapter" | "song" | "show";
255
+ itemId: string;
256
+ parentId: string;
257
+ };
258
+ }, {
259
+ type: "libraryAsset.subItemUpdated";
260
+ ids: {
261
+ projectId: string;
262
+ itemType: "chapter" | "song" | "show";
263
+ itemId: string;
264
+ parentId: string;
265
+ };
266
+ }>;
267
+ export declare const ModerationViolationCreatedEventSchema: z.ZodObject<{
268
+ type: z.ZodLiteral<"moderation.violationCreated">;
269
+ ids: z.ZodObject<{
270
+ userId: z.ZodString;
271
+ violationId: z.ZodString;
272
+ fileOrigin: z.ZodEnum<["profile-picture", "skill-media", "streetz", "job-posting", "job-reply", "opportunity-prompt", "opportunity-reply", "library-cover-square", "library-cover-poster", "library-cover-cinematic", "chapter-photo", "song-photo", "song-audio", "show-photo", "show-video", "chat-attachment"]>;
273
+ pendingMediaId: z.ZodString;
274
+ }, "strict", z.ZodTypeAny, {
275
+ userId: string;
276
+ violationId: string;
277
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
278
+ pendingMediaId: string;
279
+ }, {
280
+ userId: string;
281
+ violationId: string;
282
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
283
+ pendingMediaId: string;
284
+ }>;
285
+ }, "strict", z.ZodTypeAny, {
286
+ type: "moderation.violationCreated";
287
+ ids: {
288
+ userId: string;
289
+ violationId: string;
290
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
291
+ pendingMediaId: string;
292
+ };
293
+ }, {
294
+ type: "moderation.violationCreated";
295
+ ids: {
296
+ userId: string;
297
+ violationId: string;
298
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
299
+ pendingMediaId: string;
300
+ };
301
+ }>;
302
+ export declare const ChatAttachmentFinalizedEventSchema: z.ZodObject<{
303
+ type: z.ZodLiteral<"chat.attachmentFinalized">;
304
+ ids: z.ZodObject<{
305
+ messageId: z.ZodString;
306
+ conversationId: z.ZodString;
307
+ }, "strict", z.ZodTypeAny, {
308
+ messageId: string;
309
+ conversationId: string;
310
+ }, {
311
+ messageId: string;
312
+ conversationId: string;
313
+ }>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ type: "chat.attachmentFinalized";
316
+ ids: {
317
+ messageId: string;
318
+ conversationId: string;
319
+ };
320
+ }, {
321
+ type: "chat.attachmentFinalized";
322
+ ids: {
323
+ messageId: string;
324
+ conversationId: string;
325
+ };
326
+ }>;
327
+ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
328
+ type: z.ZodLiteral<"profile.pictureUpdated">;
329
+ ids: z.ZodObject<{
330
+ userId: z.ZodString;
331
+ }, "strict", z.ZodTypeAny, {
332
+ userId: string;
333
+ }, {
334
+ userId: string;
335
+ }>;
336
+ }, "strict", z.ZodTypeAny, {
337
+ type: "profile.pictureUpdated";
338
+ ids: {
339
+ userId: string;
340
+ };
341
+ }, {
342
+ type: "profile.pictureUpdated";
343
+ ids: {
344
+ userId: string;
345
+ };
346
+ }>, z.ZodObject<{
347
+ type: z.ZodLiteral<"skill.created">;
348
+ ids: z.ZodObject<{
349
+ userId: z.ZodString;
350
+ skillId: z.ZodString;
351
+ }, "strict", z.ZodTypeAny, {
352
+ userId: string;
353
+ skillId: string;
354
+ }, {
355
+ userId: string;
356
+ skillId: string;
357
+ }>;
358
+ }, "strict", z.ZodTypeAny, {
359
+ type: "skill.created";
360
+ ids: {
361
+ userId: string;
362
+ skillId: string;
363
+ };
364
+ }, {
365
+ type: "skill.created";
366
+ ids: {
367
+ userId: string;
368
+ skillId: string;
369
+ };
370
+ }>, z.ZodObject<{
371
+ type: z.ZodLiteral<"streetz.postCreated">;
372
+ ids: z.ZodObject<{
373
+ userId: z.ZodString;
374
+ postId: z.ZodString;
375
+ }, "strict", z.ZodTypeAny, {
376
+ userId: string;
377
+ postId: string;
378
+ }, {
379
+ userId: string;
380
+ postId: string;
381
+ }>;
382
+ }, "strict", z.ZodTypeAny, {
383
+ type: "streetz.postCreated";
384
+ ids: {
385
+ userId: string;
386
+ postId: string;
387
+ };
388
+ }, {
389
+ type: "streetz.postCreated";
390
+ ids: {
391
+ userId: string;
392
+ postId: string;
393
+ };
394
+ }>, z.ZodObject<{
395
+ type: z.ZodLiteral<"opportunity.promptCreated">;
396
+ ids: z.ZodObject<{
397
+ userId: z.ZodString;
398
+ opportunityId: z.ZodString;
399
+ projectId: z.ZodOptional<z.ZodString>;
400
+ }, "strict", z.ZodTypeAny, {
401
+ userId: string;
402
+ opportunityId: string;
403
+ projectId?: string | undefined;
404
+ }, {
405
+ userId: string;
406
+ opportunityId: string;
407
+ projectId?: string | undefined;
408
+ }>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ type: "opportunity.promptCreated";
411
+ ids: {
412
+ userId: string;
413
+ opportunityId: string;
414
+ projectId?: string | undefined;
415
+ };
416
+ }, {
417
+ type: "opportunity.promptCreated";
418
+ ids: {
419
+ userId: string;
420
+ opportunityId: string;
421
+ projectId?: string | undefined;
422
+ };
423
+ }>, z.ZodObject<{
424
+ type: z.ZodLiteral<"opportunity.replyCreated">;
425
+ ids: z.ZodObject<{
426
+ userId: z.ZodString;
427
+ opportunityId: z.ZodString;
428
+ replyId: z.ZodString;
429
+ projectId: z.ZodString;
430
+ }, "strict", z.ZodTypeAny, {
431
+ userId: string;
432
+ opportunityId: string;
433
+ projectId: string;
434
+ replyId: string;
435
+ }, {
436
+ userId: string;
437
+ opportunityId: string;
438
+ projectId: string;
439
+ replyId: string;
440
+ }>;
441
+ }, "strict", z.ZodTypeAny, {
442
+ type: "opportunity.replyCreated";
443
+ ids: {
444
+ userId: string;
445
+ opportunityId: string;
446
+ projectId: string;
447
+ replyId: string;
448
+ };
449
+ }, {
450
+ type: "opportunity.replyCreated";
451
+ ids: {
452
+ userId: string;
453
+ opportunityId: string;
454
+ projectId: string;
455
+ replyId: string;
456
+ };
457
+ }>, z.ZodObject<{
458
+ type: z.ZodLiteral<"job.created">;
459
+ ids: z.ZodObject<{
460
+ userId: z.ZodString;
461
+ jobId: z.ZodString;
462
+ projectId: z.ZodString;
463
+ }, "strict", z.ZodTypeAny, {
464
+ userId: string;
465
+ projectId: string;
466
+ jobId: string;
467
+ }, {
468
+ userId: string;
469
+ projectId: string;
470
+ jobId: string;
471
+ }>;
472
+ }, "strict", z.ZodTypeAny, {
473
+ type: "job.created";
474
+ ids: {
475
+ userId: string;
476
+ projectId: string;
477
+ jobId: string;
478
+ };
479
+ }, {
480
+ type: "job.created";
481
+ ids: {
482
+ userId: string;
483
+ projectId: string;
484
+ jobId: string;
485
+ };
486
+ }>, z.ZodObject<{
487
+ type: z.ZodLiteral<"job.applicationSubmitted">;
488
+ ids: z.ZodObject<{
489
+ userId: z.ZodString;
490
+ jobId: z.ZodString;
491
+ projectId: z.ZodString;
492
+ applicationId: z.ZodString;
493
+ }, "strict", z.ZodTypeAny, {
494
+ userId: string;
495
+ projectId: string;
496
+ jobId: string;
497
+ applicationId: string;
498
+ }, {
499
+ userId: string;
500
+ projectId: string;
501
+ jobId: string;
502
+ applicationId: string;
503
+ }>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ type: "job.applicationSubmitted";
506
+ ids: {
507
+ userId: string;
508
+ projectId: string;
509
+ jobId: string;
510
+ applicationId: string;
511
+ };
512
+ }, {
513
+ type: "job.applicationSubmitted";
514
+ ids: {
515
+ userId: string;
516
+ projectId: string;
517
+ jobId: string;
518
+ applicationId: string;
519
+ };
520
+ }>, z.ZodObject<{
521
+ type: z.ZodLiteral<"libraryAsset.coverUpdated">;
522
+ ids: z.ZodObject<{
523
+ projectId: z.ZodString;
524
+ itemType: z.ZodEnum<["tale", "tune", "television"]>;
525
+ itemId: z.ZodString;
526
+ }, "strict", z.ZodTypeAny, {
527
+ projectId: string;
528
+ itemType: "tale" | "tune" | "television";
529
+ itemId: string;
530
+ }, {
531
+ projectId: string;
532
+ itemType: "tale" | "tune" | "television";
533
+ itemId: string;
534
+ }>;
535
+ }, "strict", z.ZodTypeAny, {
536
+ type: "libraryAsset.coverUpdated";
537
+ ids: {
538
+ projectId: string;
539
+ itemType: "tale" | "tune" | "television";
540
+ itemId: string;
541
+ };
542
+ }, {
543
+ type: "libraryAsset.coverUpdated";
544
+ ids: {
545
+ projectId: string;
546
+ itemType: "tale" | "tune" | "television";
547
+ itemId: string;
548
+ };
549
+ }>, z.ZodObject<{
550
+ type: z.ZodLiteral<"libraryAsset.subItemUpdated">;
551
+ ids: z.ZodObject<{
552
+ projectId: z.ZodString;
553
+ itemType: z.ZodEnum<["chapter", "song", "show"]>;
554
+ parentId: z.ZodString;
555
+ itemId: z.ZodString;
556
+ }, "strict", z.ZodTypeAny, {
557
+ projectId: string;
558
+ itemType: "chapter" | "song" | "show";
559
+ itemId: string;
560
+ parentId: string;
561
+ }, {
562
+ projectId: string;
563
+ itemType: "chapter" | "song" | "show";
564
+ itemId: string;
565
+ parentId: string;
566
+ }>;
567
+ }, "strict", z.ZodTypeAny, {
568
+ type: "libraryAsset.subItemUpdated";
569
+ ids: {
570
+ projectId: string;
571
+ itemType: "chapter" | "song" | "show";
572
+ itemId: string;
573
+ parentId: string;
574
+ };
575
+ }, {
576
+ type: "libraryAsset.subItemUpdated";
577
+ ids: {
578
+ projectId: string;
579
+ itemType: "chapter" | "song" | "show";
580
+ itemId: string;
581
+ parentId: string;
582
+ };
583
+ }>, z.ZodObject<{
584
+ type: z.ZodLiteral<"moderation.violationCreated">;
585
+ ids: z.ZodObject<{
586
+ userId: z.ZodString;
587
+ violationId: z.ZodString;
588
+ fileOrigin: z.ZodEnum<["profile-picture", "skill-media", "streetz", "job-posting", "job-reply", "opportunity-prompt", "opportunity-reply", "library-cover-square", "library-cover-poster", "library-cover-cinematic", "chapter-photo", "song-photo", "song-audio", "show-photo", "show-video", "chat-attachment"]>;
589
+ pendingMediaId: z.ZodString;
590
+ }, "strict", z.ZodTypeAny, {
591
+ userId: string;
592
+ violationId: string;
593
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
594
+ pendingMediaId: string;
595
+ }, {
596
+ userId: string;
597
+ violationId: string;
598
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
599
+ pendingMediaId: string;
600
+ }>;
601
+ }, "strict", z.ZodTypeAny, {
602
+ type: "moderation.violationCreated";
603
+ ids: {
604
+ userId: string;
605
+ violationId: string;
606
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
607
+ pendingMediaId: string;
608
+ };
609
+ }, {
610
+ type: "moderation.violationCreated";
611
+ ids: {
612
+ userId: string;
613
+ violationId: string;
614
+ fileOrigin: "profile-picture" | "skill-media" | "streetz" | "job-posting" | "job-reply" | "opportunity-prompt" | "opportunity-reply" | "library-cover-square" | "library-cover-poster" | "library-cover-cinematic" | "chapter-photo" | "song-photo" | "song-audio" | "show-photo" | "show-video" | "chat-attachment";
615
+ pendingMediaId: string;
616
+ };
617
+ }>, z.ZodObject<{
618
+ type: z.ZodLiteral<"chat.attachmentFinalized">;
619
+ ids: z.ZodObject<{
620
+ messageId: z.ZodString;
621
+ conversationId: z.ZodString;
622
+ }, "strict", z.ZodTypeAny, {
623
+ messageId: string;
624
+ conversationId: string;
625
+ }, {
626
+ messageId: string;
627
+ conversationId: string;
628
+ }>;
629
+ }, "strict", z.ZodTypeAny, {
630
+ type: "chat.attachmentFinalized";
631
+ ids: {
632
+ messageId: string;
633
+ conversationId: string;
634
+ };
635
+ }, {
636
+ type: "chat.attachmentFinalized";
637
+ ids: {
638
+ messageId: string;
639
+ conversationId: string;
640
+ };
641
+ }>]>;
642
+ export type DomainEvent = z.infer<typeof DomainEventSchema>;
643
+ export type DomainEventIdsFor<T extends DomainEvent['type']> = Extract<DomainEvent, {
644
+ type: T;
645
+ }>['ids'];
646
+ //# sourceMappingURL=domain-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain-events.d.ts","sourceRoot":"","sources":["../src/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;EAKlC,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAUzB,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpC,CAAC;AAEZ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvB,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC,CAAC;AAEZ,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvC,CAAC;AAEZ,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvC,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;EAUpC,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAY5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,IAAI,OAAO,CACpE,WAAW,EACX;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CACZ,CAAC,KAAK,CAAC,CAAC"}