@ttt-productions/media-contracts 0.2.27 → 0.2.28

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.
@@ -344,201 +344,238 @@ export declare const ChatAttachmentFinalizedEventSchema: z.ZodObject<{
344
344
  conversationId: string;
345
345
  };
346
346
  }>;
347
- export declare const DomainEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
348
- type: z.ZodLiteral<"profile.pictureUpdated">;
347
+ export declare const FollowCreatedEventSchema: z.ZodObject<{
348
+ type: z.ZodLiteral<"follow.created">;
349
349
  ids: z.ZodObject<{
350
- userId: z.ZodString;
350
+ followerId: z.ZodString;
351
+ followedId: z.ZodString;
351
352
  }, "strict", z.ZodTypeAny, {
352
- userId: string;
353
+ followerId: string;
354
+ followedId: string;
353
355
  }, {
354
- userId: string;
356
+ followerId: string;
357
+ followedId: string;
355
358
  }>;
356
359
  }, "strict", z.ZodTypeAny, {
357
- type: "profile.pictureUpdated";
360
+ type: "follow.created";
358
361
  ids: {
359
- userId: string;
362
+ followerId: string;
363
+ followedId: string;
360
364
  };
361
365
  }, {
362
- type: "profile.pictureUpdated";
366
+ type: "follow.created";
363
367
  ids: {
364
- userId: string;
368
+ followerId: string;
369
+ followedId: string;
365
370
  };
366
- }>, z.ZodObject<{
367
- type: z.ZodLiteral<"skill.created">;
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">;
368
399
  ids: z.ZodObject<{
369
400
  userId: z.ZodString;
370
- skillId: z.ZodString;
401
+ postId: z.ZodString;
402
+ authorId: z.ZodString;
371
403
  }, "strict", z.ZodTypeAny, {
372
404
  userId: string;
373
- skillId: string;
405
+ postId: string;
406
+ authorId: string;
374
407
  }, {
375
408
  userId: string;
376
- skillId: string;
409
+ postId: string;
410
+ authorId: string;
377
411
  }>;
378
412
  }, "strict", z.ZodTypeAny, {
379
- type: "skill.created";
413
+ type: "streetz.postLiked";
380
414
  ids: {
381
415
  userId: string;
382
- skillId: string;
416
+ postId: string;
417
+ authorId: string;
383
418
  };
384
419
  }, {
385
- type: "skill.created";
420
+ type: "streetz.postLiked";
386
421
  ids: {
387
422
  userId: string;
388
- skillId: string;
423
+ postId: string;
424
+ authorId: string;
389
425
  };
390
- }>, z.ZodObject<{
391
- type: z.ZodLiteral<"streetz.postCreated">;
426
+ }>;
427
+ export declare const StreetzPostUnlikedEventSchema: z.ZodObject<{
428
+ type: z.ZodLiteral<"streetz.postUnliked">;
392
429
  ids: z.ZodObject<{
393
430
  userId: z.ZodString;
394
431
  postId: z.ZodString;
432
+ authorId: z.ZodString;
395
433
  }, "strict", z.ZodTypeAny, {
396
434
  userId: string;
397
435
  postId: string;
436
+ authorId: string;
398
437
  }, {
399
438
  userId: string;
400
439
  postId: string;
440
+ authorId: string;
401
441
  }>;
402
442
  }, "strict", z.ZodTypeAny, {
403
- type: "streetz.postCreated";
443
+ type: "streetz.postUnliked";
404
444
  ids: {
405
445
  userId: string;
406
446
  postId: string;
447
+ authorId: string;
407
448
  };
408
449
  }, {
409
- type: "streetz.postCreated";
450
+ type: "streetz.postUnliked";
410
451
  ids: {
411
452
  userId: string;
412
453
  postId: string;
454
+ authorId: string;
413
455
  };
414
- }>, z.ZodObject<{
415
- type: z.ZodLiteral<"opportunity.promptCreated">;
456
+ }>;
457
+ export declare const ProfilePreferencesUpdatedEventSchema: z.ZodObject<{
458
+ type: z.ZodLiteral<"profile.preferencesUpdated">;
416
459
  ids: z.ZodObject<{
417
460
  userId: z.ZodString;
418
- opportunityId: z.ZodString;
419
- projectId: z.ZodOptional<z.ZodString>;
420
461
  }, "strict", z.ZodTypeAny, {
421
462
  userId: string;
422
- opportunityId: string;
423
- projectId?: string | undefined;
424
463
  }, {
425
464
  userId: string;
426
- opportunityId: string;
427
- projectId?: string | undefined;
428
465
  }>;
429
466
  }, "strict", z.ZodTypeAny, {
430
- type: "opportunity.promptCreated";
467
+ type: "profile.preferencesUpdated";
431
468
  ids: {
432
469
  userId: string;
433
- opportunityId: string;
434
- projectId?: string | undefined;
435
470
  };
436
471
  }, {
437
- type: "opportunity.promptCreated";
472
+ type: "profile.preferencesUpdated";
438
473
  ids: {
439
474
  userId: string;
440
- opportunityId: string;
441
- projectId?: string | undefined;
442
475
  };
443
- }>, z.ZodObject<{
444
- type: z.ZodLiteral<"opportunity.replyCreated">;
476
+ }>;
477
+ export declare const SkillDeletedEventSchema: z.ZodObject<{
478
+ type: z.ZodLiteral<"skill.deleted">;
445
479
  ids: z.ZodObject<{
446
480
  userId: z.ZodString;
447
- opportunityId: z.ZodString;
448
- replyId: z.ZodString;
449
- projectId: z.ZodOptional<z.ZodString>;
481
+ skillId: z.ZodString;
450
482
  }, "strict", z.ZodTypeAny, {
451
483
  userId: string;
452
- opportunityId: string;
453
- replyId: string;
454
- projectId?: string | undefined;
484
+ skillId: string;
455
485
  }, {
456
486
  userId: string;
457
- opportunityId: string;
458
- replyId: string;
459
- projectId?: string | undefined;
487
+ skillId: string;
460
488
  }>;
461
489
  }, "strict", z.ZodTypeAny, {
462
- type: "opportunity.replyCreated";
490
+ type: "skill.deleted";
463
491
  ids: {
464
492
  userId: string;
465
- opportunityId: string;
466
- replyId: string;
467
- projectId?: string | undefined;
493
+ skillId: string;
468
494
  };
469
495
  }, {
470
- type: "opportunity.replyCreated";
496
+ type: "skill.deleted";
471
497
  ids: {
472
498
  userId: string;
473
- opportunityId: string;
474
- replyId: string;
475
- projectId?: string | undefined;
499
+ skillId: string;
476
500
  };
477
- }>, z.ZodObject<{
478
- type: z.ZodLiteral<"job.created">;
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">;
479
529
  ids: z.ZodObject<{
480
530
  userId: z.ZodString;
481
- jobId: z.ZodString;
482
531
  projectId: z.ZodString;
483
532
  }, "strict", z.ZodTypeAny, {
484
533
  userId: string;
485
534
  projectId: string;
486
- jobId: string;
487
535
  }, {
488
536
  userId: string;
489
537
  projectId: string;
490
- jobId: string;
491
538
  }>;
492
539
  }, "strict", z.ZodTypeAny, {
493
- type: "job.created";
540
+ type: "project.created";
494
541
  ids: {
495
542
  userId: string;
496
543
  projectId: string;
497
- jobId: string;
498
544
  };
499
545
  }, {
500
- type: "job.created";
546
+ type: "project.created";
501
547
  ids: {
502
548
  userId: string;
503
549
  projectId: string;
504
- jobId: string;
505
550
  };
506
- }>, z.ZodObject<{
507
- type: z.ZodLiteral<"job.applicationSubmitted">;
551
+ }>;
552
+ export declare const ProjectPublishedEventSchema: z.ZodObject<{
553
+ type: z.ZodLiteral<"project.published">;
508
554
  ids: z.ZodObject<{
509
- userId: z.ZodString;
510
- jobId: z.ZodString;
511
555
  projectId: z.ZodString;
512
- applicationId: z.ZodString;
556
+ userId: z.ZodString;
513
557
  }, "strict", z.ZodTypeAny, {
514
558
  userId: string;
515
559
  projectId: string;
516
- jobId: string;
517
- applicationId: string;
518
560
  }, {
519
561
  userId: string;
520
562
  projectId: string;
521
- jobId: string;
522
- applicationId: string;
523
563
  }>;
524
564
  }, "strict", z.ZodTypeAny, {
525
- type: "job.applicationSubmitted";
565
+ type: "project.published";
526
566
  ids: {
527
567
  userId: string;
528
568
  projectId: string;
529
- jobId: string;
530
- applicationId: string;
531
569
  };
532
570
  }, {
533
- type: "job.applicationSubmitted";
571
+ type: "project.published";
534
572
  ids: {
535
573
  userId: string;
536
574
  projectId: string;
537
- jobId: string;
538
- applicationId: string;
539
575
  };
540
- }>, z.ZodObject<{
541
- type: z.ZodLiteral<"project.updated">;
576
+ }>;
577
+ export declare const ProjectSharesUpdatedEventSchema: z.ZodObject<{
578
+ type: z.ZodLiteral<"project.sharesUpdated">;
542
579
  ids: z.ZodObject<{
543
580
  projectId: z.ZodString;
544
581
  }, "strict", z.ZodTypeAny, {
@@ -547,135 +584,1597 @@ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
547
584
  projectId: string;
548
585
  }>;
549
586
  }, "strict", z.ZodTypeAny, {
550
- type: "project.updated";
587
+ type: "project.sharesUpdated";
551
588
  ids: {
552
589
  projectId: string;
553
590
  };
554
591
  }, {
555
- type: "project.updated";
592
+ type: "project.sharesUpdated";
556
593
  ids: {
557
594
  projectId: string;
558
595
  };
559
- }>, z.ZodObject<{
560
- type: z.ZodLiteral<"libraryAsset.coverUpdated">;
596
+ }>;
597
+ export declare const ProjectInviteSentEventSchema: z.ZodObject<{
598
+ type: z.ZodLiteral<"project.inviteSent">;
561
599
  ids: z.ZodObject<{
562
600
  projectId: z.ZodString;
563
- itemType: z.ZodEnum<["tale", "tune", "television"]>;
564
- itemId: z.ZodString;
601
+ inviteId: z.ZodString;
602
+ inviterId: z.ZodString;
603
+ inviteeId: z.ZodString;
565
604
  }, "strict", z.ZodTypeAny, {
566
605
  projectId: string;
567
- itemType: "tale" | "tune" | "television";
568
- itemId: string;
606
+ inviteId: string;
607
+ inviterId: string;
608
+ inviteeId: string;
569
609
  }, {
570
610
  projectId: string;
571
- itemType: "tale" | "tune" | "television";
572
- itemId: string;
611
+ inviteId: string;
612
+ inviterId: string;
613
+ inviteeId: string;
573
614
  }>;
574
615
  }, "strict", z.ZodTypeAny, {
575
- type: "libraryAsset.coverUpdated";
616
+ type: "project.inviteSent";
576
617
  ids: {
577
618
  projectId: string;
578
- itemType: "tale" | "tune" | "television";
579
- itemId: string;
619
+ inviteId: string;
620
+ inviterId: string;
621
+ inviteeId: string;
580
622
  };
581
623
  }, {
582
- type: "libraryAsset.coverUpdated";
624
+ type: "project.inviteSent";
583
625
  ids: {
584
626
  projectId: string;
585
- itemType: "tale" | "tune" | "television";
586
- itemId: string;
627
+ inviteId: string;
628
+ inviterId: string;
629
+ inviteeId: string;
587
630
  };
588
- }>, z.ZodObject<{
589
- type: z.ZodLiteral<"libraryAsset.subItemUpdated">;
631
+ }>;
632
+ export declare const ProjectInviteAcceptedEventSchema: z.ZodObject<{
633
+ type: z.ZodLiteral<"project.inviteAccepted">;
590
634
  ids: z.ZodObject<{
591
635
  projectId: z.ZodString;
592
- itemType: z.ZodEnum<["chapter", "song", "show"]>;
593
- parentId: z.ZodString;
594
- itemId: z.ZodString;
636
+ inviteId: z.ZodString;
637
+ userId: z.ZodString;
595
638
  }, "strict", z.ZodTypeAny, {
639
+ userId: string;
596
640
  projectId: string;
597
- itemType: "chapter" | "song" | "show";
598
- itemId: string;
599
- parentId: string;
641
+ inviteId: string;
600
642
  }, {
643
+ userId: string;
601
644
  projectId: string;
602
- itemType: "chapter" | "song" | "show";
603
- itemId: string;
604
- parentId: string;
645
+ inviteId: string;
605
646
  }>;
606
647
  }, "strict", z.ZodTypeAny, {
607
- type: "libraryAsset.subItemUpdated";
648
+ type: "project.inviteAccepted";
608
649
  ids: {
650
+ userId: string;
609
651
  projectId: string;
610
- itemType: "chapter" | "song" | "show";
611
- itemId: string;
612
- parentId: string;
652
+ inviteId: string;
613
653
  };
614
654
  }, {
615
- type: "libraryAsset.subItemUpdated";
655
+ type: "project.inviteAccepted";
616
656
  ids: {
657
+ userId: string;
617
658
  projectId: string;
618
- itemType: "chapter" | "song" | "show";
619
- itemId: string;
620
- parentId: string;
659
+ inviteId: string;
621
660
  };
622
- }>, z.ZodObject<{
623
- type: z.ZodLiteral<"moderation.violationCreated">;
661
+ }>;
662
+ export declare const ProjectInviteDeclinedEventSchema: z.ZodObject<{
663
+ type: z.ZodLiteral<"project.inviteDeclined">;
624
664
  ids: z.ZodObject<{
665
+ projectId: z.ZodString;
666
+ inviteId: z.ZodString;
625
667
  userId: z.ZodString;
626
- violationId: z.ZodString;
627
- 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", "project-file"]>;
628
- pendingMediaId: z.ZodString;
629
668
  }, "strict", z.ZodTypeAny, {
630
669
  userId: string;
631
- violationId: string;
632
- 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" | "project-file";
633
- pendingMediaId: string;
670
+ projectId: string;
671
+ inviteId: string;
634
672
  }, {
635
673
  userId: string;
636
- violationId: string;
637
- 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" | "project-file";
638
- pendingMediaId: string;
674
+ projectId: string;
675
+ inviteId: string;
639
676
  }>;
640
677
  }, "strict", z.ZodTypeAny, {
641
- type: "moderation.violationCreated";
678
+ type: "project.inviteDeclined";
642
679
  ids: {
643
680
  userId: string;
644
- violationId: string;
645
- 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" | "project-file";
646
- pendingMediaId: string;
681
+ projectId: string;
682
+ inviteId: string;
647
683
  };
648
684
  }, {
649
- type: "moderation.violationCreated";
685
+ type: "project.inviteDeclined";
650
686
  ids: {
651
687
  userId: string;
652
- violationId: string;
653
- 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" | "project-file";
654
- pendingMediaId: string;
688
+ projectId: string;
689
+ inviteId: string;
655
690
  };
656
- }>, z.ZodObject<{
657
- type: z.ZodLiteral<"chat.attachmentFinalized">;
691
+ }>;
692
+ export declare const ProjectInviteCancelledEventSchema: z.ZodObject<{
693
+ type: z.ZodLiteral<"project.inviteCancelled">;
658
694
  ids: z.ZodObject<{
659
- messageId: z.ZodString;
660
- conversationId: z.ZodString;
695
+ projectId: z.ZodString;
696
+ inviteId: z.ZodString;
661
697
  }, "strict", z.ZodTypeAny, {
662
- messageId: string;
663
- conversationId: string;
698
+ projectId: string;
699
+ inviteId: string;
664
700
  }, {
665
- messageId: string;
666
- conversationId: string;
701
+ projectId: string;
702
+ inviteId: string;
667
703
  }>;
668
704
  }, "strict", z.ZodTypeAny, {
669
- type: "chat.attachmentFinalized";
705
+ type: "project.inviteCancelled";
670
706
  ids: {
671
- messageId: string;
672
- conversationId: string;
707
+ projectId: string;
708
+ inviteId: string;
673
709
  };
674
710
  }, {
675
- type: "chat.attachmentFinalized";
711
+ type: "project.inviteCancelled";
676
712
  ids: {
677
- messageId: string;
678
- conversationId: string;
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
+ userId: string;
726
+ opportunityId: string;
727
+ projectId: string;
728
+ replyId: string;
729
+ }, {
730
+ userId: string;
731
+ opportunityId: string;
732
+ projectId: string;
733
+ replyId: string;
734
+ }>;
735
+ }, "strict", z.ZodTypeAny, {
736
+ type: "opportunity.replyVoted";
737
+ ids: {
738
+ userId: string;
739
+ opportunityId: string;
740
+ projectId: string;
741
+ replyId: string;
742
+ };
743
+ }, {
744
+ type: "opportunity.replyVoted";
745
+ ids: {
746
+ userId: string;
747
+ opportunityId: string;
748
+ projectId: 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
+ userId: string;
1250
+ projectId: string;
1251
+ jobId: string;
1252
+ }, {
1253
+ userId: string;
1254
+ projectId: string;
1255
+ jobId: string;
1256
+ }>;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ type: "job.created";
1259
+ ids: {
1260
+ userId: string;
1261
+ projectId: string;
1262
+ jobId: string;
1263
+ };
1264
+ }, {
1265
+ type: "job.created";
1266
+ ids: {
1267
+ userId: string;
1268
+ projectId: 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
+ userId: string;
1280
+ projectId: string;
1281
+ jobId: string;
1282
+ applicationId: string;
1283
+ }, {
1284
+ userId: string;
1285
+ projectId: string;
1286
+ jobId: string;
1287
+ applicationId: string;
1288
+ }>;
1289
+ }, "strict", z.ZodTypeAny, {
1290
+ type: "job.applicationSubmitted";
1291
+ ids: {
1292
+ userId: string;
1293
+ projectId: string;
1294
+ jobId: string;
1295
+ applicationId: string;
1296
+ };
1297
+ }, {
1298
+ type: "job.applicationSubmitted";
1299
+ ids: {
1300
+ userId: string;
1301
+ projectId: 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", "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" | "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" | "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" | "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" | "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
+ userId: string;
1625
+ projectId: string;
1626
+ }, {
1627
+ userId: string;
1628
+ projectId: string;
1629
+ }>;
1630
+ }, "strict", z.ZodTypeAny, {
1631
+ type: "project.created";
1632
+ ids: {
1633
+ userId: string;
1634
+ projectId: string;
1635
+ };
1636
+ }, {
1637
+ type: "project.created";
1638
+ ids: {
1639
+ userId: string;
1640
+ projectId: 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
+ userId: string;
1649
+ projectId: string;
1650
+ }, {
1651
+ userId: string;
1652
+ projectId: string;
1653
+ }>;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ type: "project.published";
1656
+ ids: {
1657
+ userId: string;
1658
+ projectId: string;
1659
+ };
1660
+ }, {
1661
+ type: "project.published";
1662
+ ids: {
1663
+ userId: string;
1664
+ projectId: 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
+ userId: string;
1727
+ projectId: string;
1728
+ inviteId: string;
1729
+ }, {
1730
+ userId: string;
1731
+ projectId: string;
1732
+ inviteId: string;
1733
+ }>;
1734
+ }, "strict", z.ZodTypeAny, {
1735
+ type: "project.inviteAccepted";
1736
+ ids: {
1737
+ userId: string;
1738
+ projectId: string;
1739
+ inviteId: string;
1740
+ };
1741
+ }, {
1742
+ type: "project.inviteAccepted";
1743
+ ids: {
1744
+ userId: string;
1745
+ projectId: 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
+ userId: string;
1756
+ projectId: string;
1757
+ inviteId: string;
1758
+ }, {
1759
+ userId: string;
1760
+ projectId: string;
1761
+ inviteId: string;
1762
+ }>;
1763
+ }, "strict", z.ZodTypeAny, {
1764
+ type: "project.inviteDeclined";
1765
+ ids: {
1766
+ userId: string;
1767
+ projectId: string;
1768
+ inviteId: string;
1769
+ };
1770
+ }, {
1771
+ type: "project.inviteDeclined";
1772
+ ids: {
1773
+ userId: string;
1774
+ projectId: 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
+ userId: string;
1810
+ opportunityId: string;
1811
+ projectId: string;
1812
+ replyId: string;
1813
+ }, {
1814
+ userId: string;
1815
+ opportunityId: string;
1816
+ projectId: string;
1817
+ replyId: string;
1818
+ }>;
1819
+ }, "strict", z.ZodTypeAny, {
1820
+ type: "opportunity.replyVoted";
1821
+ ids: {
1822
+ userId: string;
1823
+ opportunityId: string;
1824
+ projectId: string;
1825
+ replyId: string;
1826
+ };
1827
+ }, {
1828
+ type: "opportunity.replyVoted";
1829
+ ids: {
1830
+ userId: string;
1831
+ opportunityId: string;
1832
+ projectId: 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;
679
2178
  };
680
2179
  }>]>;
681
2180
  export type DomainEvent = z.infer<typeof DomainEventSchema>;