@polymarket/bindings 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { CommentId, CommentParentEntityType, EventId, SeriesId, IsoDateTimeString, ImageOptimizationId, TokenId, BaseUnits } from './index.js';
1
+ import { CommentId, CommentParentEntityType, EventId, SeriesId, IsoDateTimeString, ImageOptimizationId, TokenId, BaseUnits, PaginationCursor } from './index.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const CommentPositionSchema: z.ZodObject<{
@@ -565,11 +565,381 @@ declare const ListCommentsResponseSchema: z.ZodArray<z.ZodObject<{
565
565
  reactionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
566
566
  tradeAsset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
567
  }, z.core.$strip>>;
568
+ declare const ListCommentsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
569
+ comments: z.ZodArray<z.ZodObject<{
570
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
571
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
573
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<SeriesId, string>>]>>>;
574
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
575
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
+ replyAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
578
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
579
+ media: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ commentID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
582
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
+ providerMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
+ mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
+ altText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
587
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
588
+ }, z.core.$strip>>>>;
589
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
590
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
593
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
595
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
596
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
600
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
601
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
604
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
605
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
606
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
607
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
608
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ }, z.core.$strip>>>;
611
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
612
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
613
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
614
+ }, z.core.$strip>>>>;
615
+ }, z.core.$strip>, z.ZodTransform<{
616
+ wallet: string | null | undefined;
617
+ name?: string | null | undefined;
618
+ pseudonym?: string | null | undefined;
619
+ displayUsernamePublic?: boolean | null | undefined;
620
+ bio?: string | null | undefined;
621
+ isMod?: boolean | null | undefined;
622
+ isCreator?: boolean | null | undefined;
623
+ baseAddress?: string | null | undefined;
624
+ profileImage?: string | null | undefined;
625
+ profileImageOptimized?: {
626
+ id: ImageOptimizationId;
627
+ imageUrlSource?: string | null | undefined;
628
+ imageUrlOptimized?: string | null | undefined;
629
+ imageSizeKbSource?: number | null | undefined;
630
+ imageSizeKbOptimized?: number | null | undefined;
631
+ imageOptimizedComplete?: boolean | null | undefined;
632
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
633
+ relID?: number | null | undefined;
634
+ field?: string | null | undefined;
635
+ relname?: string | null | undefined;
636
+ } | null | undefined;
637
+ positions?: {
638
+ tokenId?: TokenId | null | undefined;
639
+ positionSize?: BaseUnits | null | undefined;
640
+ }[] | null | undefined;
641
+ }, {
642
+ name?: string | null | undefined;
643
+ pseudonym?: string | null | undefined;
644
+ displayUsernamePublic?: boolean | null | undefined;
645
+ bio?: string | null | undefined;
646
+ isMod?: boolean | null | undefined;
647
+ isCreator?: boolean | null | undefined;
648
+ proxyWallet?: string | null | undefined;
649
+ baseAddress?: string | null | undefined;
650
+ profileImage?: string | null | undefined;
651
+ profileImageOptimized?: {
652
+ id: ImageOptimizationId;
653
+ imageUrlSource?: string | null | undefined;
654
+ imageUrlOptimized?: string | null | undefined;
655
+ imageSizeKbSource?: number | null | undefined;
656
+ imageSizeKbOptimized?: number | null | undefined;
657
+ imageOptimizedComplete?: boolean | null | undefined;
658
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
659
+ relID?: number | null | undefined;
660
+ field?: string | null | undefined;
661
+ relname?: string | null | undefined;
662
+ } | null | undefined;
663
+ positions?: {
664
+ tokenId?: TokenId | null | undefined;
665
+ positionSize?: BaseUnits | null | undefined;
666
+ }[] | null | undefined;
667
+ }>>>>;
668
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
669
+ id: z.ZodString;
670
+ commentID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
671
+ reactionType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ReactionType>>>;
672
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
675
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
676
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
678
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
679
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
680
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
681
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
682
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
686
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
687
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
690
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
691
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
692
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
693
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
694
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ }, z.core.$strip>>>;
697
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
698
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
699
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
700
+ }, z.core.$strip>>>>;
701
+ }, z.core.$strip>, z.ZodTransform<{
702
+ wallet: string | null | undefined;
703
+ name?: string | null | undefined;
704
+ pseudonym?: string | null | undefined;
705
+ displayUsernamePublic?: boolean | null | undefined;
706
+ bio?: string | null | undefined;
707
+ isMod?: boolean | null | undefined;
708
+ isCreator?: boolean | null | undefined;
709
+ baseAddress?: string | null | undefined;
710
+ profileImage?: string | null | undefined;
711
+ profileImageOptimized?: {
712
+ id: ImageOptimizationId;
713
+ imageUrlSource?: string | null | undefined;
714
+ imageUrlOptimized?: string | null | undefined;
715
+ imageSizeKbSource?: number | null | undefined;
716
+ imageSizeKbOptimized?: number | null | undefined;
717
+ imageOptimizedComplete?: boolean | null | undefined;
718
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
719
+ relID?: number | null | undefined;
720
+ field?: string | null | undefined;
721
+ relname?: string | null | undefined;
722
+ } | null | undefined;
723
+ positions?: {
724
+ tokenId?: TokenId | null | undefined;
725
+ positionSize?: BaseUnits | null | undefined;
726
+ }[] | null | undefined;
727
+ }, {
728
+ name?: string | null | undefined;
729
+ pseudonym?: string | null | undefined;
730
+ displayUsernamePublic?: boolean | null | undefined;
731
+ bio?: string | null | undefined;
732
+ isMod?: boolean | null | undefined;
733
+ isCreator?: boolean | null | undefined;
734
+ proxyWallet?: string | null | undefined;
735
+ baseAddress?: string | null | undefined;
736
+ profileImage?: string | null | undefined;
737
+ profileImageOptimized?: {
738
+ id: ImageOptimizationId;
739
+ imageUrlSource?: string | null | undefined;
740
+ imageUrlOptimized?: string | null | undefined;
741
+ imageSizeKbSource?: number | null | undefined;
742
+ imageSizeKbOptimized?: number | null | undefined;
743
+ imageOptimizedComplete?: boolean | null | undefined;
744
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
745
+ relID?: number | null | undefined;
746
+ field?: string | null | undefined;
747
+ relname?: string | null | undefined;
748
+ } | null | undefined;
749
+ positions?: {
750
+ tokenId?: TokenId | null | undefined;
751
+ positionSize?: BaseUnits | null | undefined;
752
+ }[] | null | undefined;
753
+ }>>>>;
754
+ }, z.core.$strip>>>>;
755
+ reportCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
+ reactionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ tradeAsset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
+ }, z.core.$strip>>;
759
+ next_cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
760
+ }, z.core.$strip>, z.ZodTransform<{
761
+ items: {
762
+ id: CommentId;
763
+ body?: string | null | undefined;
764
+ parentEntityType?: CommentParentEntityType | null | undefined;
765
+ parentEntityID?: EventId | SeriesId | null | undefined;
766
+ parentCommentID?: CommentId | null | undefined;
767
+ userAddress?: string | null | undefined;
768
+ replyAddress?: string | null | undefined;
769
+ createdAt?: IsoDateTimeString | null | undefined;
770
+ updatedAt?: IsoDateTimeString | null | undefined;
771
+ media?: {
772
+ id: string;
773
+ commentID?: number | null | undefined;
774
+ provider?: string | null | undefined;
775
+ providerMediaId?: string | null | undefined;
776
+ url?: string | null | undefined;
777
+ mediaType?: string | null | undefined;
778
+ altText?: string | null | undefined;
779
+ createdAt?: IsoDateTimeString | null | undefined;
780
+ }[] | null | undefined;
781
+ profile?: {
782
+ wallet: string | null | undefined;
783
+ name?: string | null | undefined;
784
+ pseudonym?: string | null | undefined;
785
+ displayUsernamePublic?: boolean | null | undefined;
786
+ bio?: string | null | undefined;
787
+ isMod?: boolean | null | undefined;
788
+ isCreator?: boolean | null | undefined;
789
+ baseAddress?: string | null | undefined;
790
+ profileImage?: string | null | undefined;
791
+ profileImageOptimized?: {
792
+ id: ImageOptimizationId;
793
+ imageUrlSource?: string | null | undefined;
794
+ imageUrlOptimized?: string | null | undefined;
795
+ imageSizeKbSource?: number | null | undefined;
796
+ imageSizeKbOptimized?: number | null | undefined;
797
+ imageOptimizedComplete?: boolean | null | undefined;
798
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
799
+ relID?: number | null | undefined;
800
+ field?: string | null | undefined;
801
+ relname?: string | null | undefined;
802
+ } | null | undefined;
803
+ positions?: {
804
+ tokenId?: TokenId | null | undefined;
805
+ positionSize?: BaseUnits | null | undefined;
806
+ }[] | null | undefined;
807
+ } | null | undefined;
808
+ reactions?: {
809
+ id: string;
810
+ commentID?: number | null | undefined;
811
+ reactionType?: ReactionType.Heart | null | undefined;
812
+ icon?: string | null | undefined;
813
+ userAddress?: string | null | undefined;
814
+ createdAt?: IsoDateTimeString | null | undefined;
815
+ profile?: {
816
+ wallet: string | null | undefined;
817
+ name?: string | null | undefined;
818
+ pseudonym?: string | null | undefined;
819
+ displayUsernamePublic?: boolean | null | undefined;
820
+ bio?: string | null | undefined;
821
+ isMod?: boolean | null | undefined;
822
+ isCreator?: boolean | null | undefined;
823
+ baseAddress?: string | null | undefined;
824
+ profileImage?: string | null | undefined;
825
+ profileImageOptimized?: {
826
+ id: ImageOptimizationId;
827
+ imageUrlSource?: string | null | undefined;
828
+ imageUrlOptimized?: string | null | undefined;
829
+ imageSizeKbSource?: number | null | undefined;
830
+ imageSizeKbOptimized?: number | null | undefined;
831
+ imageOptimizedComplete?: boolean | null | undefined;
832
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
833
+ relID?: number | null | undefined;
834
+ field?: string | null | undefined;
835
+ relname?: string | null | undefined;
836
+ } | null | undefined;
837
+ positions?: {
838
+ tokenId?: TokenId | null | undefined;
839
+ positionSize?: BaseUnits | null | undefined;
840
+ }[] | null | undefined;
841
+ } | null | undefined;
842
+ }[] | null | undefined;
843
+ reportCount?: number | null | undefined;
844
+ reactionCount?: number | null | undefined;
845
+ tradeAsset?: string | null | undefined;
846
+ }[];
847
+ nextCursor: PaginationCursor | undefined;
848
+ }, {
849
+ comments: {
850
+ id: CommentId;
851
+ body?: string | null | undefined;
852
+ parentEntityType?: CommentParentEntityType | null | undefined;
853
+ parentEntityID?: EventId | SeriesId | null | undefined;
854
+ parentCommentID?: CommentId | null | undefined;
855
+ userAddress?: string | null | undefined;
856
+ replyAddress?: string | null | undefined;
857
+ createdAt?: IsoDateTimeString | null | undefined;
858
+ updatedAt?: IsoDateTimeString | null | undefined;
859
+ media?: {
860
+ id: string;
861
+ commentID?: number | null | undefined;
862
+ provider?: string | null | undefined;
863
+ providerMediaId?: string | null | undefined;
864
+ url?: string | null | undefined;
865
+ mediaType?: string | null | undefined;
866
+ altText?: string | null | undefined;
867
+ createdAt?: IsoDateTimeString | null | undefined;
868
+ }[] | null | undefined;
869
+ profile?: {
870
+ wallet: string | null | undefined;
871
+ name?: string | null | undefined;
872
+ pseudonym?: string | null | undefined;
873
+ displayUsernamePublic?: boolean | null | undefined;
874
+ bio?: string | null | undefined;
875
+ isMod?: boolean | null | undefined;
876
+ isCreator?: boolean | null | undefined;
877
+ baseAddress?: string | null | undefined;
878
+ profileImage?: string | null | undefined;
879
+ profileImageOptimized?: {
880
+ id: ImageOptimizationId;
881
+ imageUrlSource?: string | null | undefined;
882
+ imageUrlOptimized?: string | null | undefined;
883
+ imageSizeKbSource?: number | null | undefined;
884
+ imageSizeKbOptimized?: number | null | undefined;
885
+ imageOptimizedComplete?: boolean | null | undefined;
886
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
887
+ relID?: number | null | undefined;
888
+ field?: string | null | undefined;
889
+ relname?: string | null | undefined;
890
+ } | null | undefined;
891
+ positions?: {
892
+ tokenId?: TokenId | null | undefined;
893
+ positionSize?: BaseUnits | null | undefined;
894
+ }[] | null | undefined;
895
+ } | null | undefined;
896
+ reactions?: {
897
+ id: string;
898
+ commentID?: number | null | undefined;
899
+ reactionType?: ReactionType.Heart | null | undefined;
900
+ icon?: string | null | undefined;
901
+ userAddress?: string | null | undefined;
902
+ createdAt?: IsoDateTimeString | null | undefined;
903
+ profile?: {
904
+ wallet: string | null | undefined;
905
+ name?: string | null | undefined;
906
+ pseudonym?: string | null | undefined;
907
+ displayUsernamePublic?: boolean | null | undefined;
908
+ bio?: string | null | undefined;
909
+ isMod?: boolean | null | undefined;
910
+ isCreator?: boolean | null | undefined;
911
+ baseAddress?: string | null | undefined;
912
+ profileImage?: string | null | undefined;
913
+ profileImageOptimized?: {
914
+ id: ImageOptimizationId;
915
+ imageUrlSource?: string | null | undefined;
916
+ imageUrlOptimized?: string | null | undefined;
917
+ imageSizeKbSource?: number | null | undefined;
918
+ imageSizeKbOptimized?: number | null | undefined;
919
+ imageOptimizedComplete?: boolean | null | undefined;
920
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
921
+ relID?: number | null | undefined;
922
+ field?: string | null | undefined;
923
+ relname?: string | null | undefined;
924
+ } | null | undefined;
925
+ positions?: {
926
+ tokenId?: TokenId | null | undefined;
927
+ positionSize?: BaseUnits | null | undefined;
928
+ }[] | null | undefined;
929
+ } | null | undefined;
930
+ }[] | null | undefined;
931
+ reportCount?: number | null | undefined;
932
+ reactionCount?: number | null | undefined;
933
+ tradeAsset?: string | null | undefined;
934
+ }[];
935
+ next_cursor?: PaginationCursor | undefined;
936
+ }>>;
568
937
  type Comment = z.infer<typeof CommentSchema>;
569
938
  type CommentMedia = z.infer<typeof CommentMediaSchema>;
570
939
  type CommentPosition = z.infer<typeof CommentPositionSchema>;
571
940
  type CommentProfile = z.infer<typeof CommentProfileSchema>;
572
941
  type Reaction = z.infer<typeof ReactionSchema>;
573
942
  type ListCommentsResponse = z.infer<typeof ListCommentsResponseSchema>;
943
+ type ListCommentsKeysetResponse = z.infer<typeof ListCommentsKeysetResponseSchema>;
574
944
 
575
- export { type Comment as C, type ListCommentsResponse as L, ReactionType as R, type CommentMedia as a, CommentMediaSchema as b, type CommentPosition as c, CommentPositionSchema as d, type CommentProfile as e, CommentProfileSchema as f, CommentSchema as g, ListCommentsResponseSchema as h, type Reaction as i, ReactionSchema as j, ReactionTypeSchema as k };
945
+ export { type Comment as C, type ListCommentsKeysetResponse as L, ReactionType as R, type CommentMedia as a, CommentMediaSchema as b, type CommentPosition as c, CommentPositionSchema as d, type CommentProfile as e, CommentProfileSchema as f, CommentSchema as g, ListCommentsKeysetResponseSchema as h, type ListCommentsResponse as i, ListCommentsResponseSchema as j, type Reaction as k, ReactionSchema as l, ReactionTypeSchema as m };
@@ -54,12 +54,33 @@ declare enum ComboPositionStatus {
54
54
  ResolvedLoss = "RESOLVED_LOSS"
55
55
  }
56
56
  declare const ComboPositionStatusSchema: z.ZodEnum<typeof ComboPositionStatus>;
57
+ /** Lifecycle filter for a positions listing. */
57
58
  declare enum PositionStatus {
58
59
  Open = "OPEN",
59
60
  Redeemable = "REDEEMABLE",
61
+ /** Still-held, zero-payout (lost) positions, ranked on frozen values. */
62
+ RedeemableLost = "REDEEMABLE_LOST",
63
+ /**
64
+ * Live complementary pairs the wallet can merge back to collateral (holds >= 2
65
+ * live outcome tokens of a condition). Settled pairs are excluded; they are a
66
+ * redeem, not a merge.
67
+ */
68
+ Mergeable = "MERGEABLE",
60
69
  Closed = "CLOSED"
61
70
  }
62
71
  declare const PositionStatusSchema: z.ZodEnum<typeof PositionStatus>;
72
+ /**
73
+ * The statuses a position row itself reports, which is narrower than the
74
+ * listing filter: `REDEEMABLE_LOST` and `MERGEABLE` are filter vocabulary
75
+ * only. A lost holding still reports `REDEEMABLE`, and a mergeable one
76
+ * reports `OPEN`.
77
+ */
78
+ type PositionRowStatus = PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
79
+ declare const PositionRowStatusSchema: z.ZodEnum<{
80
+ OPEN: PositionStatus.Open;
81
+ REDEEMABLE: PositionStatus.Redeemable;
82
+ CLOSED: PositionStatus.Closed;
83
+ }>;
63
84
  /** Sort key for position listings. */
64
85
  declare enum PositionSortBy {
65
86
  CurrentValue = "CURRENT_VALUE",
@@ -119,9 +140,10 @@ type Position = {
119
140
  percentRealizedPnl: DecimalString;
120
141
  /**
121
142
  * The row's actual state — can be narrower than the requested status,
122
- * since an OPEN request also returns REDEEMABLE rows.
143
+ * since an OPEN request also returns REDEEMABLE rows, and a
144
+ * REDEEMABLE_LOST or MERGEABLE listing reports REDEEMABLE or OPEN rows.
123
145
  */
124
- status: PositionStatus;
146
+ status: PositionRowStatus;
125
147
  redeemable: boolean;
126
148
  mergeable: boolean;
127
149
  negativeRisk: boolean;
@@ -174,7 +196,11 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
174
196
  total_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
175
197
  percent_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
176
198
  percent_realized_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
177
- status: z.ZodEnum<typeof PositionStatus>;
199
+ status: z.ZodEnum<{
200
+ OPEN: PositionStatus.Open;
201
+ REDEEMABLE: PositionStatus.Redeemable;
202
+ CLOSED: PositionStatus.Closed;
203
+ }>;
178
204
  redeemable: z.ZodBoolean;
179
205
  mergeable: z.ZodBoolean;
180
206
  negative_risk: z.ZodBoolean;
@@ -211,7 +237,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
211
237
  totalPnl: DecimalString;
212
238
  percentPnl: DecimalString;
213
239
  percentRealizedPnl: DecimalString;
214
- status: PositionStatus;
240
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
215
241
  redeemable: boolean;
216
242
  mergeable: boolean;
217
243
  negativeRisk: boolean;
@@ -248,7 +274,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
248
274
  total_pnl: DecimalString;
249
275
  percent_pnl: DecimalString;
250
276
  percent_realized_pnl: DecimalString;
251
- status: PositionStatus;
277
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
252
278
  redeemable: boolean;
253
279
  mergeable: boolean;
254
280
  negative_risk: boolean;
@@ -1342,7 +1368,11 @@ declare const ListPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1342
1368
  total_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1343
1369
  percent_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1344
1370
  percent_realized_pnl: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1345
- status: z.ZodEnum<typeof PositionStatus>;
1371
+ status: z.ZodEnum<{
1372
+ OPEN: PositionStatus.Open;
1373
+ REDEEMABLE: PositionStatus.Redeemable;
1374
+ CLOSED: PositionStatus.Closed;
1375
+ }>;
1346
1376
  redeemable: z.ZodBoolean;
1347
1377
  mergeable: z.ZodBoolean;
1348
1378
  negative_risk: z.ZodBoolean;
@@ -1379,7 +1409,7 @@ declare const ListPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1379
1409
  totalPnl: DecimalString;
1380
1410
  percentPnl: DecimalString;
1381
1411
  percentRealizedPnl: DecimalString;
1382
- status: PositionStatus;
1412
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
1383
1413
  redeemable: boolean;
1384
1414
  mergeable: boolean;
1385
1415
  negativeRisk: boolean;
@@ -1416,7 +1446,7 @@ declare const ListPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1416
1446
  total_pnl: DecimalString;
1417
1447
  percent_pnl: DecimalString;
1418
1448
  percent_realized_pnl: DecimalString;
1419
- status: PositionStatus;
1449
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
1420
1450
  redeemable: boolean;
1421
1451
  mergeable: boolean;
1422
1452
  negative_risk: boolean;
@@ -1461,7 +1491,7 @@ declare const ListPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1461
1491
  totalPnl: DecimalString;
1462
1492
  percentPnl: DecimalString;
1463
1493
  percentRealizedPnl: DecimalString;
1464
- status: PositionStatus;
1494
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
1465
1495
  redeemable: boolean;
1466
1496
  mergeable: boolean;
1467
1497
  negativeRisk: boolean;
@@ -1503,7 +1533,7 @@ declare const ListPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1503
1533
  totalPnl: DecimalString;
1504
1534
  percentPnl: DecimalString;
1505
1535
  percentRealizedPnl: DecimalString;
1506
- status: PositionStatus;
1536
+ status: PositionStatus.Open | PositionStatus.Redeemable | PositionStatus.Closed;
1507
1537
  redeemable: boolean;
1508
1538
  mergeable: boolean;
1509
1539
  negativeRisk: boolean;
@@ -4394,4 +4424,4 @@ declare const FetchResolutionsResponseSchema: z.ZodPipe<z.ZodObject<{
4394
4424
  }>>;
4395
4425
  type FetchResolutionsResponse = z.infer<typeof FetchResolutionsResponseSchema>;
4396
4426
 
4397
- export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type BiggestWinner, BiggestWinnerKind, BiggestWinnerKindSchema, BiggestWinnerSchema, type BuilderStanding, BuilderStandingSchema, BuilderVolumeInterval, BuilderVolumeIntervalSchema, type BuilderVolumePoint, BuilderVolumePointSchema, CanonicalMarketConditionIdSchema, type ClobTradeActivity, type ComboActivity, ComboActivitySchema, ComboActivityType, type ComboBiggestWinner, type ComboCompressActivity, type ComboConvertActivity, type ComboMergeActivity, type ComboPosition, type ComboPositionLeg, ComboPositionLegSchema, type ComboPositionMarket, type ComboPositionMarketEvent, ComboPositionMarketEventSchema, ComboPositionMarketSchema, ComboPositionSchema, ComboPositionSortBy, ComboPositionSortBySchema, ComboPositionStatus, ComboPositionStatusSchema, type ComboRedeemActivity, type ComboSplitActivity, type ComboTradeActivity, type ComboUnwrapActivity, type ComboWrapActivity, type ConversionActivity, type DepositActivity, type FetchBuilderVolumeResponse, FetchBuilderVolumeResponseSchema, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchOpenInterestResponse, FetchOpenInterestResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type FetchResolutionsResponse, FetchResolutionsResponseSchema, type FetchTraderLeaderboardStandingResponse, FetchTraderLeaderboardStandingResponseSchema, type FetchUserPnlResponse, FetchUserPnlResponseSchema, type FetchUserStatsResponse, FetchUserStatsResponseSchema, type FetchUserVolumeResponse, FetchUserVolumeResponseSchema, type Holder, HolderSchema, LeaderboardWindow, LeaderboardWindowSchema, type ListActivityResponse, ListActivityResponseSchema, type ListBiggestWinnersResponse, ListBiggestWinnersResponseSchema, type ListBuilderLeaderboardResponse, ListBuilderLeaderboardResponseSchema, type ListComboActivityResponse, ListComboActivityResponseSchema, type ListComboPositionsResponse, ListComboPositionsResponseSchema, type ListMarketHoldersResponse, ListMarketHoldersResponseSchema, type ListPositionsResponse, ListPositionsResponseSchema, type ListPriceHistoryResponse, ListPriceHistoryResponseSchema, type ListTraderLeaderboardResponse, ListTraderLeaderboardResponseSchema, type ListTradesResponse, ListTradesResponseSchema, type LiveVolume, LiveVolumeSchema, type MakerRebateActivity, type MarketBiggestWinner, type MarketLiveVolume, MarketLiveVolumeSchema, type MergeActivity, type MetaHolder, MetaHolderSchema, type MigrationActivity, type OpenInterest, OpenInterestSchema, type PortfolioValue, PortfolioValueSchema, type Position, PositionFilterType, PositionFilterTypeSchema, PositionSchema, PositionSortBy, PositionSortBySchema, PositionStatus, PositionStatusSchema, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistoryPointSchema, type RedeemActivity, type ReferralRewardActivity, type Resolution, ResolutionMarketType, ResolutionMarketTypeSchema, ResolutionReporter, ResolutionReporterSchema, ResolutionSchema, ResolutionSource, ResolutionSourceSchema, ResolutionStatus, ResolutionStatusSchema, type RewardActivity, SortDirection, SortDirectionSchema, type SplitActivity, type TakerRebateActivity, type TipActivity, TipSide, TipSideSchema, type Trade, type TradeActivity, TradeFilterType, TradeFilterTypeSchema, TradeSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, TraderLeaderboardSort, TraderLeaderboardSortSchema, type TraderLeaderboardStanding, TraderLeaderboardStandingSchema, UserPnlFidelity, UserPnlFidelitySchema, UserPnlInterval, UserPnlIntervalSchema, type UserPnlPoint, UserPnlPointSchema, type UserPnlSeries, UserPnlSeriesSchema, type UserStats, UserStatsSchema, type UserVolume, UserVolumeSchema, type WithdrawalActivity, type YieldActivity, dataEnvelopeSchema, dataPageSchema };
4427
+ export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type BiggestWinner, BiggestWinnerKind, BiggestWinnerKindSchema, BiggestWinnerSchema, type BuilderStanding, BuilderStandingSchema, BuilderVolumeInterval, BuilderVolumeIntervalSchema, type BuilderVolumePoint, BuilderVolumePointSchema, CanonicalMarketConditionIdSchema, type ClobTradeActivity, type ComboActivity, ComboActivitySchema, ComboActivityType, type ComboBiggestWinner, type ComboCompressActivity, type ComboConvertActivity, type ComboMergeActivity, type ComboPosition, type ComboPositionLeg, ComboPositionLegSchema, type ComboPositionMarket, type ComboPositionMarketEvent, ComboPositionMarketEventSchema, ComboPositionMarketSchema, ComboPositionSchema, ComboPositionSortBy, ComboPositionSortBySchema, ComboPositionStatus, ComboPositionStatusSchema, type ComboRedeemActivity, type ComboSplitActivity, type ComboTradeActivity, type ComboUnwrapActivity, type ComboWrapActivity, type ConversionActivity, type DepositActivity, type FetchBuilderVolumeResponse, FetchBuilderVolumeResponseSchema, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchOpenInterestResponse, FetchOpenInterestResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type FetchResolutionsResponse, FetchResolutionsResponseSchema, type FetchTraderLeaderboardStandingResponse, FetchTraderLeaderboardStandingResponseSchema, type FetchUserPnlResponse, FetchUserPnlResponseSchema, type FetchUserStatsResponse, FetchUserStatsResponseSchema, type FetchUserVolumeResponse, FetchUserVolumeResponseSchema, type Holder, HolderSchema, LeaderboardWindow, LeaderboardWindowSchema, type ListActivityResponse, ListActivityResponseSchema, type ListBiggestWinnersResponse, ListBiggestWinnersResponseSchema, type ListBuilderLeaderboardResponse, ListBuilderLeaderboardResponseSchema, type ListComboActivityResponse, ListComboActivityResponseSchema, type ListComboPositionsResponse, ListComboPositionsResponseSchema, type ListMarketHoldersResponse, ListMarketHoldersResponseSchema, type ListPositionsResponse, ListPositionsResponseSchema, type ListPriceHistoryResponse, ListPriceHistoryResponseSchema, type ListTraderLeaderboardResponse, ListTraderLeaderboardResponseSchema, type ListTradesResponse, ListTradesResponseSchema, type LiveVolume, LiveVolumeSchema, type MakerRebateActivity, type MarketBiggestWinner, type MarketLiveVolume, MarketLiveVolumeSchema, type MergeActivity, type MetaHolder, MetaHolderSchema, type MigrationActivity, type OpenInterest, OpenInterestSchema, type PortfolioValue, PortfolioValueSchema, type Position, PositionFilterType, PositionFilterTypeSchema, type PositionRowStatus, PositionRowStatusSchema, PositionSchema, PositionSortBy, PositionSortBySchema, PositionStatus, PositionStatusSchema, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistoryPointSchema, type RedeemActivity, type ReferralRewardActivity, type Resolution, ResolutionMarketType, ResolutionMarketTypeSchema, ResolutionReporter, ResolutionReporterSchema, ResolutionSchema, ResolutionSource, ResolutionSourceSchema, ResolutionStatus, ResolutionStatusSchema, type RewardActivity, SortDirection, SortDirectionSchema, type SplitActivity, type TakerRebateActivity, type TipActivity, TipSide, TipSideSchema, type Trade, type TradeActivity, TradeFilterType, TradeFilterTypeSchema, TradeSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, TraderLeaderboardSort, TraderLeaderboardSortSchema, type TraderLeaderboardStanding, TraderLeaderboardStandingSchema, UserPnlFidelity, UserPnlFidelitySchema, UserPnlInterval, UserPnlIntervalSchema, type UserPnlPoint, UserPnlPointSchema, type UserPnlSeries, UserPnlSeriesSchema, type UserStats, UserStatsSchema, type UserVolume, UserVolumeSchema, type WithdrawalActivity, type YieldActivity, dataEnvelopeSchema, dataPageSchema };
@@ -1,2 +1,2 @@
1
- import {aa,Qa,Ea,ca,ea,pa,oa,Da,$,Na,_,za,Ta,X,ma,Pa,ha,Oa,Fa,p,F}from'../chunk-RGWF46B7.js';import {z}from'zod';var G=(p=>(p.TRADE="TRADE",p.SPLIT="SPLIT",p.MERGE="MERGE",p.REDEEM="REDEEM",p.REWARD="REWARD",p.CONVERSION="CONVERSION",p.MIGRATION="MIGRATION",p.MAKER_REBATE="MAKER_REBATE",p.REFERRAL_REWARD="REFERRAL_REWARD",p.YIELD="YIELD",p.DEPOSIT="DEPOSIT",p.WITHDRAWAL="WITHDRAWAL",p.TAKER_REBATE="TAKER_REBATE",p.TIP="TIP",p))(G||{}),ne=z.enum(G),ie=(i=>(i.In="IN",i.Out="OUT",i))(ie||{}),q=z.enum(ie),re=(i=>(i.Asc="ASC",i.Desc="DESC",i))(re||{}),At=z.enum(re),se=(i=>(i.Cash="CASH",i.Tokens="TOKENS",i))(se||{}),Ct=z.enum(se);function Me(e){let t=e.length===64?`${e}00`:e;return p(t.toLowerCase())}function Oe(e){if(e.length===66)return true;let t=e.toLowerCase();return t.startsWith("0x01")||t.startsWith("0x02")}var Rt=aa.refine(Oe,"Expected a 32-byte condition ID or a 31-byte protocol v2 market condition ID").transform(Me);function b(e){return z.object({data:z.array(e),pagination:z.object({limit:z.number().int(),offset:z.number().int(),has_more:z.boolean(),next_cursor:z.string().min(1).nullable()})}).refine(t=>t.pagination.has_more===(t.pagination.next_cursor!==null),{message:"has_more and next_cursor must agree",path:["pagination","next_cursor"]}).transform(({data:t,pagination:i})=>({items:t,hasMore:i.has_more,nextCursor:i.next_cursor===null?void 0:F(i.next_cursor)}))}function I(e){return z.object({data:e}).transform(t=>t.data)}var le=(s=>(s.Open="OPEN",s.Redeemable="REDEEMABLE",s.Partial="PARTIAL",s.ResolvedPartial="RESOLVED_PARTIAL",s.ResolvedWin="RESOLVED_WIN",s.ResolvedLoss="RESOLVED_LOSS",s))(le||{}),me=z.enum(le),de=(a=>(a.Open="OPEN",a.Redeemable="REDEEMABLE",a.Closed="CLOSED",a))(de||{}),Ue=z.enum(de),ce=(s=>(s.CurrentValue="CURRENT_VALUE",s.Tokens="TOKENS",s.UnrealizedPnl="UNREALIZED_PNL",s.RealizedPnl="REALIZED_PNL",s.TotalPnl="TOTAL_PNL",s.Timestamp="TIMESTAMP",s))(ce||{}),Mt=z.enum(ce),pe=(i=>(i.Cash="CASH",i.Tokens="TOKENS",i))(pe||{}),Ot=z.enum(pe),ue=(l=>(l.FirstEntry="FIRST_ENTRY",l.EntryCost="ENTRY_COST",l.CurrentValue="CURRENT_VALUE",l.Updated="UPDATED",l))(ue||{}),Ut=z.enum(ue),R=z.preprocess(e=>e===""?void 0:e,z.string().optional()),Be=z.preprocess(e=>e===999?void 0:e,z.number().int().optional()),Ne=z.object({proxy_wallet:ca,token_id:Ea,condition_id:aa,current_size:Qa,avg_price:Qa,entry_cost_usdc:Qa,entry_fees_usdc:Qa,total_cost_usdc:Qa,current_price:Qa,current_value:Qa,total_size:Qa,realized_pnl:Qa,unrealized_pnl:Qa,total_pnl:Qa,percent_pnl:Qa,percent_realized_pnl:Qa,status:Ue,redeemable:z.boolean(),mergeable:z.boolean(),negative_risk:z.boolean(),archived:z.boolean(),title:R,slug:R,icon:R,event_id:R,event_slug:R,outcome:R,outcome_index:Be,opposite_outcome:R,opposite_token_id:z.preprocess(e=>e===""?void 0:e,Ea.optional()),end_date:z.preprocess(e=>e===""?void 0:e,pa.optional()),last_event_at:z.preprocess(e=>e===0?void 0:e,ea.optional()),name:R,profile_image:R,verified:z.boolean()}).transform(e=>({wallet:e.proxy_wallet,assetId:e.token_id,tokenId:e.token_id,conditionId:e.condition_id,currentSize:e.current_size,avgPrice:e.avg_price,entryCostUsdc:e.entry_cost_usdc,entryFeesUsdc:e.entry_fees_usdc,totalCostUsdc:e.total_cost_usdc,currentPrice:e.current_price,currentValue:e.current_value,totalSize:e.total_size,realizedPnl:e.realized_pnl,unrealizedPnl:e.unrealized_pnl,totalPnl:e.total_pnl,percentPnl:e.percent_pnl,percentRealizedPnl:e.percent_realized_pnl,status:e.status,redeemable:e.redeemable,mergeable:e.mergeable,negativeRisk:e.negative_risk,archived:e.archived,title:e.title,slug:e.slug,icon:e.icon,eventId:e.event_id,eventSlug:e.event_slug,outcome:e.outcome,outcomeIndex:e.outcome_index,oppositeOutcome:e.opposite_outcome,oppositeAssetId:e.opposite_token_id,oppositeTokenId:e.opposite_token_id,endDate:e.end_date,lastEventAt:e.last_event_at,name:e.name,profileImage:e.profile_image,verified:e.verified})),Ve=z.object({proxy_wallet:ca,value:Qa}).transform(({proxy_wallet:e,value:t})=>({wallet:e,value:t})),ge=(s=>(s.Max="max",s.OneMonth="1m",s.OneWeek="1w",s.OneDay="1d",s.TwelveHours="12h",s.SixHours="6h",s))(ge||{}),We=z.enum(ge),_e=(c=>(c.OneDay="1d",c.EighteenHours="18h",c.TwelveHours="12h",c.ThreeHours="3h",c.OneHour="1h",c))(_e||{}),ae=z.enum(_e),u=Qa.nullish().transform(e=>e??null),ye=z.object({timestamp:ea,source_block:z.number().int().nonnegative(),realized_market_pnl:Qa,realized_lp_pnl:Qa,realized_combo_pnl:Qa,unrealized_pnl:u,fees_refunded:u,maker_rebate:u,taker_rebate:u,reward_income:u,yield_income:u,referral_income:u,deposits:u,withdrawals:u,realized_pnl:Qa,wallet_income:u,position_pnl:u,settled_pnl:u,economic_pnl:u,trade_pnl:u,sponsored_income:u,fees:u,fees_paid:u,cashflow_net:u,volume:Qa,volume_usdc:Qa,trade_count:z.number().int().nonnegative()}).transform(({source_block:e,realized_market_pnl:t,realized_lp_pnl:i,realized_combo_pnl:a,unrealized_pnl:l,fees_refunded:c,maker_rebate:s,taker_rebate:h,reward_income:L,yield_income:f,referral_income:V,realized_pnl:W,wallet_income:w,position_pnl:H,settled_pnl:p,economic_pnl:F,trade_pnl:j,sponsored_income:Z,fees_paid:De,cashflow_net:ke,volume_usdc:Pe,trade_count:ze,...Le})=>({...Le,sourceBlock:e,realizedMarketPnl:t,realizedLpPnl:i,realizedComboPnl:a,unrealizedPnl:l,feesRefunded:c,makerRebate:s,takerRebate:h,rewardIncome:L,yieldIncome:f,referralIncome:V,realizedPnl:W,walletIncome:w,positionPnl:H,settledPnl:p,economicPnl:F,tradePnl:j,sponsoredIncome:Z,feesPaid:De,cashflowNet:ke,volumeUsdc:Pe,tradeCount:ze})),we=z.object({proxy_wallet:ca,interval:We,fidelity:ae,source_fidelity:ae,points:z.array(ye)}).transform(({proxy_wallet:e,source_fidelity:t,...i})=>({...i,wallet:e,sourceFidelity:t})),He=z.object({volume:Qa,volume_usdc:Qa,trade_count:z.number().int().nonnegative()}).transform(({volume_usdc:e,trade_count:t,...i})=>({...i,volumeUsdc:e,tradeCount:t})),Fe=z.object({proxy_wallet:ca,trades:z.number().int().nonnegative(),biggest_win:Qa,views:z.number().int().nonnegative(),join_date:ea.nullish(),all_time_pnl:ye.nullish()}).transform(({proxy_wallet:e,trades:t,biggest_win:i,join_date:a,all_time_pnl:l,...c})=>({...c,wallet:e,tradedMarketCount:t,biggestWin:i,joinDate:a??null,allTimePnl:l??null})),je=z.object({event_id:z.string().nullish(),event_slug:z.string().nullish(),event_title:z.string().nullish(),event_image:z.string().nullish()}).transform(({event_id:e,event_slug:t,event_title:i,event_image:a})=>({eventId:e,eventSlug:t,eventTitle:i,eventImage:a})),Ze=z.object({market_id:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),question:z.string().nullish(),group_item_title:z.string().nullish(),sports_market_type:z.string().nullish(),line:z.number().nullish(),outcomes:z.array(z.string()).nullish(),outcome:z.string().nullish(),image_url:z.string().nullish(),icon_url:z.string().nullish(),category:z.string().nullish(),subcategory:z.string().nullish(),tags:z.array(z.string()).nullish(),end_date:oa.nullish(),event:je.nullish()}).transform(({market_id:e,image_url:t,icon_url:i,end_date:a,group_item_title:l,sports_market_type:c,...s})=>({...s,marketId:e,groupItemTitle:l,sportsMarketType:c,imageUrl:t,iconUrl:i,endDate:a})),Y=z.object({leg_index:z.number().int(),leg_position_id:Da,leg_condition_id:aa,leg_outcome_index:z.number().int(),leg_outcome_label:z.string().nullish(),leg_status:me,leg_resolved_at:oa.nullish(),leg_current_price:Qa.nullish(),market:Ze.nullish()}).transform(({leg_index:e,leg_position_id:t,leg_condition_id:i,leg_outcome_index:a,leg_outcome_label:l,leg_status:c,leg_resolved_at:s,leg_current_price:h,...L})=>({...L,legIndex:e,legPositionId:t,legConditionId:i,legOutcomeIndex:a,legOutcomeLabel:l,legStatus:c,legResolvedAt:s,legCurrentPrice:h})),Ke=z.object({combo_condition_id:$,outcome_index:z.number().int(),outcome_label:z.string(),combo_position_id:Da,proxy_wallet:ca,current_size:Qa,entry_avg_price_usdc:Qa,entry_cost_usdc:Qa,gross_entry_cost_usdc:Qa,entry_fees_usdc:Qa,realized_payout_usdc:Qa,status:me,redeemable:z.boolean(),first_entry_at:oa,resolved_at:oa.nullish(),legs_total:z.number().int(),legs_resolved:z.number().int(),legs_pending:z.number().int(),legs:z.array(Y),updated_at:oa}).transform(({combo_condition_id:e,outcome_index:t,outcome_label:i,combo_position_id:a,proxy_wallet:l,current_size:c,entry_avg_price_usdc:s,entry_cost_usdc:h,gross_entry_cost_usdc:L,entry_fees_usdc:f,realized_payout_usdc:V,first_entry_at:W,resolved_at:w,legs_total:H,legs_resolved:p,legs_pending:F,updated_at:j,...Z})=>({...Z,conditionId:e,outcomeIndex:t,outcomeLabel:i,positionId:a,wallet:l,currentSize:c,entryAvgPriceUsdc:s,entryCostUsdc:h,grossEntryCostUsdc:L,entryFeesUsdc:f,realizedPayoutUsdc:V,firstEntryAt:W,resolvedAt:w,legsTotal:H,legsResolved:p,legsPending:F,updatedAt:j})),Bt=b(Ne),Nt=I(Ve),Vt=I(Fe.nullable()),Wt=I(we),wt=I(He),Ht=b(Ke);var Se=(h=>(h.Split="SPLIT",h.Merge="MERGE",h.Convert="CONVERT",h.Compress="COMPRESS",h.Wrap="WRAP",h.Unwrap="UNWRAP",h.Redeem="REDEEM",h))(Se||{}),Ge=z.enum(Se),qe=z.object({id:_,type:Ge,proxy_wallet:ca,combo_condition_id:$,combo_position_id:Da,amount_usdc:Qa.nullish(),payout_usdc:Qa.nullish(),timestamp:ea,transaction_hash:Na,block_number:z.number().int(),legs:z.array(Y)}),Ye=qe.transform(Xe),m=z.preprocess(e=>e===""?void 0:e,z.string().optional()),be=z.preprocess(e=>e===999?void 0:e,z.number().int().optional()),Qe=z.object({proxy_wallet:ca,side:za,token_id:Ea,condition_id:aa,size:Qa,price:Qa,timestamp:ea,title:m,slug:m,icon:m,event_slug:m,outcome:m,outcome_index:be,name:m,pseudonym:m,bio:m,profile_image:m,profile_image_optimized:m,transaction_hash:Na}).transform(e=>({wallet:e.proxy_wallet,side:e.side,assetId:e.token_id,tokenId:e.token_id,conditionId:e.condition_id,size:e.size,price:e.price,timestamp:e.timestamp,title:e.title,slug:e.slug,icon:e.icon,eventSlug:e.event_slug,outcome:e.outcome,outcomeIndex:e.outcome_index,name:e.name,pseudonym:e.pseudonym,bio:e.bio,profileImage:e.profile_image,profileImageOptimized:e.profile_image_optimized,transactionHash:e.transaction_hash})),$e=z.object({proxy_wallet:ca,timestamp:ea,condition_id:z.preprocess(e=>e===""?void 0:e,aa.optional()),type:ne,size:Qa,usdc_size:Qa,transaction_hash:Na,price:Qa,token_id:z.preprocess(e=>e===""?void 0:e,Ea.optional()),side:z.preprocess(e=>e===""?void 0:e,z.union([za,q]).optional()),is_combo:z.boolean().optional(),outcome_index:be,title:m,slug:m,icon:m,event_slug:m,outcome:m,name:m,pseudonym:m,bio:m,profile_image:m,profile_image_optimized:m}),Je=$e.transform(tt),Yt=b(Qe),Qt=b(Je),$t=b(Ye);function Xe(e){let t=et(e);switch(e.type){case "SPLIT":return {...t,type:"SPLIT"};case "MERGE":return {...t,type:"MERGE"};case "CONVERT":return {...t,type:"CONVERT"};case "COMPRESS":return {...t,type:"COMPRESS"};case "WRAP":return {...t,type:"WRAP"};case "UNWRAP":return {...t,type:"UNWRAP"};case "REDEEM":return {...t,type:"REDEEM",payout:e.payout_usdc??null}}}function et(e){return {id:e.id,type:e.type,wallet:e.proxy_wallet,conditionId:e.combo_condition_id,positionId:e.combo_position_id,amount:e.amount_usdc??null,timestamp:e.timestamp,transactionHash:e.transaction_hash,blockNumber:e.block_number,legs:e.legs}}function tt(e){let t=nt(e);switch(e.type){case "TRADE":return ot(e,t);case "SPLIT":case "MERGE":case "REDEEM":case "CONVERSION":return {...t,type:e.type,conditionId:x(e.condition_id,"condition_id"),amount:e.usdc_size,title:x(e.title,"title"),slug:x(e.slug,"slug"),icon:e.icon??null,eventSlug:x(e.event_slug,"event_slug")};case "MIGRATION":case "REWARD":case "MAKER_REBATE":case "REFERRAL_REWARD":case "YIELD":case "DEPOSIT":case "WITHDRAWAL":case "TAKER_REBATE":return {...t,type:e.type,amount:e.usdc_size};case "TIP":return {...t,type:e.type,amount:e.usdc_size,side:e.side===void 0?null:q.parse(e.side)}}}function ot(e,t){let i={...t,type:"TRADE",side:za.parse(x(e.side,"side")),shares:e.size,amount:e.usdc_size,price:e.price,title:x(e.title,"title"),icon:e.icon??null};if(e.is_combo===true)return {...i,isCombo:true,conditionId:$.parse(x(e.condition_id,"condition_id")),positionId:Da.parse(x(e.token_id,"token_id"))};let a=x(e.token_id,"token_id");return {...i,isCombo:false,conditionId:x(e.condition_id,"condition_id"),assetId:a,tokenId:a,outcome:x(e.outcome,"outcome"),outcomeIndex:e.outcome_index,slug:x(e.slug,"slug"),eventSlug:x(e.event_slug,"event_slug")}}function nt(e){return {wallet:e.proxy_wallet,timestamp:e.timestamp,transactionHash:e.transaction_hash,name:e.name??null,pseudonym:e.pseudonym??null,bio:e.bio??null,profileImage:e.profile_image??null,profileImageOptimized:e.profile_image_optimized??null}}function x(e,t){if(e==null)throw new TypeError(`Expected activity.${t} to be present`);return e}var he=(s=>(s.Max="max",s.OneMonth="1m",s.OneWeek="1w",s.OneDay="1d",s.SixHours="6h",s.OneHour="1h",s))(he||{}),oo=z.enum(he),it=z.object({timestamp:ea,price:Qa,resolution_seconds:z.number().int().nonnegative()}).transform(({price:e,resolution_seconds:t,timestamp:i})=>({timestamp:i,price:e,resolutionSeconds:t})),no=b(it),M=z.preprocess(e=>e===""?null:e,z.string().nullable()),rt=z.object({proxy_wallet:ca,bio:M,token_id:Ea,pseudonym:M,amount:Qa,display_username_public:z.boolean(),outcome_index:z.preprocess(e=>e===999?null:e,z.number().int().nullable()),name:M,profile_image:M,profile_image_optimized:M,verified:z.boolean(),avg_price:Qa.nullish(),entry_cost_usdc:Qa.nullish(),current_price:Qa.nullish(),current_value:Qa.nullish(),realized_pnl:Qa.nullish(),unrealized_pnl:Qa.nullish(),total_pnl:Qa.nullish()}).transform(e=>({wallet:e.proxy_wallet,assetId:e.token_id,tokenId:e.token_id,amount:e.amount,displayUsernamePublic:e.display_username_public,outcomeIndex:e.outcome_index,verified:e.verified,bio:e.bio,pseudonym:e.pseudonym,name:e.name,profileImage:e.profile_image,profileImageOptimized:e.profile_image_optimized,avgPrice:e.avg_price,entryCostUsdc:e.entry_cost_usdc,currentPrice:e.current_price,currentValue:e.current_value,realizedPnl:e.realized_pnl,unrealizedPnl:e.unrealized_pnl,totalPnl:e.total_pnl})),st=z.object({token_id:Ea,holders:z.array(rt)}).transform(({holders:e,token_id:t})=>({assetId:t,token:t,holders:e})),at=z.object({condition_id:z.union([aa,z.literal("GLOBAL")]),value:Qa}).transform(({condition_id:e,value:t})=>({conditionId:e==="GLOBAL"?null:e,value:t})),lt=z.object({condition_id:z.preprocess(Ta,aa.nullable()),taker_volume:Qa}).transform(({condition_id:e,taker_volume:t})=>({conditionId:e,takerVolume:t})),mt=z.object({taker_volume_total:Qa,conditions:z.array(lt)}).transform(({conditions:e,taker_volume_total:t})=>({markets:e,takerVolumeTotal:t})),io=b(st),ro=I(z.array(at)),so=I(mt);var fe=(l=>(l.Day="day",l.Week="week",l.Month="month",l.All="all",l))(fe||{}),po=z.enum(fe),ve=(l=>(l.Day="day",l.Week="week",l.Month="month",l.Year="all",l))(ve||{}),uo=z.enum(ve),Ie=(i=>(i.Pnl="PNL",i.Volume="VOLUME",i))(Ie||{}),go=z.enum(Ie),xe=(i=>(i.Market="market",i.Combo="combo",i))(xe||{}),_o=z.enum(xe),dt=z.object({rank:z.number().int().positive(),builder_name:z.string(),builder_code:X,profile_image:z.string(),verified:z.boolean(),volume:Qa,active_users:z.number().int().min(0)}).transform(({active_users:e,builder_code:t,builder_name:i,profile_image:a,...l})=>({...l,activeUsers:e,builderCode:t,builderName:i,...a===""?{}:{profileImage:a}})),ct=z.object({date:pa,rank:z.number().int().min(0),builder_name:z.string(),builder_code:X,profile_image:z.string(),verified:z.boolean(),volume:Qa,active_users:z.number().int().min(0)}).transform(({active_users:e,builder_code:t,builder_name:i,date:a,profile_image:l,...c})=>({...c,activeUsers:e,bucketDate:a,builderCode:t,builderName:i,...l===""?{}:{profileImage:l}})),C=z.preprocess(Ta,z.string().nullable()),pt=z.object({rank:z.number().int().min(0),user_id:ca,pnl:Qa,volume:Qa,user_name:C,profile_image:C,x_username:C,verified:z.boolean()}).transform(({profile_image:e,user_id:t,user_name:i,x_username:a,...l})=>({...l,wallet:t,userName:i,profileImage:e,xUsername:a})),ut=z.object({user_id:ca,pnl:Qa,volume:Qa,rank_pnl:z.number().int().positive().nullable(),rank_volume:z.number().int().positive().nullable(),user_name:C,profile_image:C,x_username:C,verified:z.boolean()}).transform(({profile_image:e,rank_pnl:t,rank_volume:i,user_id:a,user_name:l,x_username:c,...s})=>({...s,wallet:a,pnlRank:t,volumeRank:i,userName:l,profileImage:e,xUsername:c})),gt=z.object({win_rank:z.number().int().positive(),kind:z.literal("market"),user_id:ca,pnl:Qa,initial_value:Qa,final_value:Qa,resolved_at:ea,condition_id:aa,position_id:Ea,event_id:ma,event_slug:z.string(),event_title:z.string(),user_name:C,profile_image:C}),_t=z.object({win_rank:z.number().int().positive(),kind:z.literal("combo"),user_id:ca,pnl:Qa,initial_value:Qa,final_value:Qa,resolved_at:ea,condition_id:$,position_id:Da,event_id:z.literal(0),event_slug:z.literal(""),event_title:z.string(),user_name:C,profile_image:C}),yt=z.discriminatedUnion("kind",[gt,_t]).transform(e=>e.kind==="combo"?{rank:e.win_rank,kind:e.kind,wallet:e.user_id,pnl:e.pnl,initialValue:e.initial_value,finalValue:e.final_value,resolvedAt:e.resolved_at,conditionId:e.condition_id,positionId:e.position_id,eventId:null,eventSlug:null,eventTitle:e.event_title,userName:e.user_name,profileImage:e.profile_image}:{rank:e.win_rank,kind:e.kind,wallet:e.user_id,pnl:e.pnl,initialValue:e.initial_value,finalValue:e.final_value,resolvedAt:e.resolved_at,conditionId:e.condition_id,assetId:e.position_id,eventId:e.event_id,eventSlug:e.event_slug,eventTitle:e.event_title,userName:e.user_name,profileImage:e.profile_image}),yo=b(dt),So=I(z.array(ct)),bo=b(pt),ho=I(ut.nullable()),fo=b(yt);var Ce=(f=>(f.Initialized="initialized",f.Posed="posed",f.Proposed="proposed",f.Challenged="challenged",f.Reproposed="reproposed",f.Disputed="disputed",f.Active="active",f.Arbitration="arbitration",f.Resolved="resolved",f))(Ce||{}),St=z.enum(Ce),Re=(a=>(a.Binary="BINARY",a.IncrementalNegRisk="INCREMENTAL_NEGRISK",a.AtomicNegRisk="ATOMIC_NEGRISK",a))(Re||{}),bt=z.enum(Re),Te=(i=>(i.Reported="reported",i.Derived="derived",i))(Te||{}),ht=z.enum(Te),Ee=(a=>(a.UmaOptimisticOracle="UMA_OO",a.Chainlink="CHAINLINK",a.Eoa="EOA",a))(Ee||{}),ft=z.enum(Ee),Ae=z.number().int().min(0).transform(String).pipe(Pa),vt=z.object({question_id:Fa.optional(),condition_id:aa.optional(),status:St,extended_review:z.boolean(),was_disputed:z.boolean(),new_version_q:z.boolean(),proposed_price:Oa.optional(),reproposed_price:Oa.optional(),price:Oa.optional(),transaction_hash:z.preprocess(Ta,Na.nullable()),log_index:z.preprocess(Ta,z.string().regex(/^\d+$/).transform(Number).nullable()),last_update_timestamp:ha,market_type:bt.optional(),payouts:z.tuple([Ae,Ae]).optional(),resolution_source:ht.optional(),reporter:ft.optional(),was_arbitrated:z.boolean().optional(),resolved_block:z.number().int().min(0).optional(),resolved_at:oa.optional()}).transform(e=>{let t={status:e.status,extendedReview:e.extended_review,wasDisputed:e.was_disputed,questionRulesUpdated:e.new_version_q,transactionHash:e.transaction_hash,logIndex:e.log_index,lastUpdatedAt:e.last_update_timestamp};return e.question_id!==void 0&&(t.questionId=e.question_id),e.condition_id!==void 0&&(t.conditionId=e.condition_id),e.proposed_price!==void 0&&e.proposed_price!=="69"&&(t.proposedPrice=e.proposed_price),e.reproposed_price!==void 0&&e.reproposed_price!=="69"&&(t.reproposedPrice=e.reproposed_price),e.price!==void 0&&e.price!=="69"&&(t.price=e.price),e.market_type!==void 0&&(t.marketType=e.market_type),e.payouts!==void 0&&(t.payouts=e.payouts),e.resolution_source!==void 0&&(t.resolutionSource=e.resolution_source),e.reporter!==void 0&&(t.reporter=e.reporter),e.was_arbitrated!==void 0&&(t.wasArbitrated=e.was_arbitrated),e.resolved_block!==void 0&&(t.resolvedBlock=e.resolved_block),e.resolved_at!==void 0&&(t.resolvedAt=e.resolved_at),t}),Co=I(z.array(vt));export{Je as ActivitySchema,G as ActivityType,ne as ActivityTypeSchema,xe as BiggestWinnerKind,_o as BiggestWinnerKindSchema,yt as BiggestWinnerSchema,dt as BuilderStandingSchema,ve as BuilderVolumeInterval,uo as BuilderVolumeIntervalSchema,ct as BuilderVolumePointSchema,Rt as CanonicalMarketConditionIdSchema,Ye as ComboActivitySchema,Se as ComboActivityType,Y as ComboPositionLegSchema,je as ComboPositionMarketEventSchema,Ze as ComboPositionMarketSchema,Ke as ComboPositionSchema,ue as ComboPositionSortBy,Ut as ComboPositionSortBySchema,le as ComboPositionStatus,me as ComboPositionStatusSchema,So as FetchBuilderVolumeResponseSchema,so as FetchEventLiveVolumeResponseSchema,ro as FetchOpenInterestResponseSchema,Nt as FetchPortfolioValueResponseSchema,Co as FetchResolutionsResponseSchema,ho as FetchTraderLeaderboardStandingResponseSchema,Wt as FetchUserPnlResponseSchema,Vt as FetchUserStatsResponseSchema,wt as FetchUserVolumeResponseSchema,rt as HolderSchema,fe as LeaderboardWindow,po as LeaderboardWindowSchema,Qt as ListActivityResponseSchema,fo as ListBiggestWinnersResponseSchema,yo as ListBuilderLeaderboardResponseSchema,$t as ListComboActivityResponseSchema,Ht as ListComboPositionsResponseSchema,io as ListMarketHoldersResponseSchema,Bt as ListPositionsResponseSchema,no as ListPriceHistoryResponseSchema,bo as ListTraderLeaderboardResponseSchema,Yt as ListTradesResponseSchema,mt as LiveVolumeSchema,lt as MarketLiveVolumeSchema,st as MetaHolderSchema,at as OpenInterestSchema,Ve as PortfolioValueSchema,pe as PositionFilterType,Ot as PositionFilterTypeSchema,Ne as PositionSchema,ce as PositionSortBy,Mt as PositionSortBySchema,de as PositionStatus,Ue as PositionStatusSchema,he as PriceHistoryInterval,oo as PriceHistoryIntervalSchema,it as PriceHistoryPointSchema,Re as ResolutionMarketType,bt as ResolutionMarketTypeSchema,Ee as ResolutionReporter,ft as ResolutionReporterSchema,vt as ResolutionSchema,Te as ResolutionSource,ht as ResolutionSourceSchema,Ce as ResolutionStatus,St as ResolutionStatusSchema,re as SortDirection,At as SortDirectionSchema,ie as TipSide,q as TipSideSchema,se as TradeFilterType,Ct as TradeFilterTypeSchema,Qe as TradeSchema,pt as TraderLeaderboardEntrySchema,Ie as TraderLeaderboardSort,go as TraderLeaderboardSortSchema,ut as TraderLeaderboardStandingSchema,_e as UserPnlFidelity,ae as UserPnlFidelitySchema,ge as UserPnlInterval,We as UserPnlIntervalSchema,ye as UserPnlPointSchema,we as UserPnlSeriesSchema,Fe as UserStatsSchema,He as UserVolumeSchema,I as dataEnvelopeSchema,b as dataPageSchema};//# sourceMappingURL=index.js.map
1
+ import {aa,Qa,Ea,ca,ea,pa,oa,Da,$,Na,_,za,Ta,X,ma,Pa,ha,Oa,Fa,p,F}from'../chunk-3IZ4N7C2.js';import {z}from'zod';var G=(p=>(p.TRADE="TRADE",p.SPLIT="SPLIT",p.MERGE="MERGE",p.REDEEM="REDEEM",p.REWARD="REWARD",p.CONVERSION="CONVERSION",p.MIGRATION="MIGRATION",p.MAKER_REBATE="MAKER_REBATE",p.REFERRAL_REWARD="REFERRAL_REWARD",p.YIELD="YIELD",p.DEPOSIT="DEPOSIT",p.WITHDRAWAL="WITHDRAWAL",p.TAKER_REBATE="TAKER_REBATE",p.TIP="TIP",p))(G||{}),ne=z.enum(G),ie=(i=>(i.In="IN",i.Out="OUT",i))(ie||{}),q=z.enum(ie),re=(i=>(i.Asc="ASC",i.Desc="DESC",i))(re||{}),At=z.enum(re),se=(i=>(i.Cash="CASH",i.Tokens="TOKENS",i))(se||{}),Rt=z.enum(se);function Me(e){let t=e.length===64?`${e}00`:e;return p(t.toLowerCase())}function Oe(e){if(e.length===66)return true;let t=e.toLowerCase();return t.startsWith("0x01")||t.startsWith("0x02")}var Ct=aa.refine(Oe,"Expected a 32-byte condition ID or a 31-byte protocol v2 market condition ID").transform(Me);function b(e){return z.object({data:z.array(e),pagination:z.object({limit:z.number().int(),offset:z.number().int(),has_more:z.boolean(),next_cursor:z.string().min(1).nullable()})}).refine(t=>t.pagination.has_more===(t.pagination.next_cursor!==null),{message:"has_more and next_cursor must agree",path:["pagination","next_cursor"]}).transform(({data:t,pagination:i})=>({items:t,hasMore:i.has_more,nextCursor:i.next_cursor===null?void 0:F(i.next_cursor)}))}function I(e){return z.object({data:e}).transform(t=>t.data)}var le=(s=>(s.Open="OPEN",s.Redeemable="REDEEMABLE",s.Partial="PARTIAL",s.ResolvedPartial="RESOLVED_PARTIAL",s.ResolvedWin="RESOLVED_WIN",s.ResolvedLoss="RESOLVED_LOSS",s))(le||{}),me=z.enum(le),de=(m=>(m.Open="OPEN",m.Redeemable="REDEEMABLE",m.RedeemableLost="REDEEMABLE_LOST",m.Mergeable="MERGEABLE",m.Closed="CLOSED",m))(de||{}),Mt=z.enum(de),Ue=z.enum(["OPEN","REDEEMABLE","CLOSED"]),ce=(s=>(s.CurrentValue="CURRENT_VALUE",s.Tokens="TOKENS",s.UnrealizedPnl="UNREALIZED_PNL",s.RealizedPnl="REALIZED_PNL",s.TotalPnl="TOTAL_PNL",s.Timestamp="TIMESTAMP",s))(ce||{}),Ot=z.enum(ce),pe=(i=>(i.Cash="CASH",i.Tokens="TOKENS",i))(pe||{}),Ut=z.enum(pe),ue=(a=>(a.FirstEntry="FIRST_ENTRY",a.EntryCost="ENTRY_COST",a.CurrentValue="CURRENT_VALUE",a.Updated="UPDATED",a))(ue||{}),Bt=z.enum(ue),C=z.preprocess(e=>e===""?void 0:e,z.string().optional()),Be=z.preprocess(e=>e===999?void 0:e,z.number().int().optional()),Ne=z.object({proxy_wallet:ca,token_id:Ea,condition_id:aa,current_size:Qa,avg_price:Qa,entry_cost_usdc:Qa,entry_fees_usdc:Qa,total_cost_usdc:Qa,current_price:Qa,current_value:Qa,total_size:Qa,realized_pnl:Qa,unrealized_pnl:Qa,total_pnl:Qa,percent_pnl:Qa,percent_realized_pnl:Qa,status:Ue,redeemable:z.boolean(),mergeable:z.boolean(),negative_risk:z.boolean(),archived:z.boolean(),title:C,slug:C,icon:C,event_id:C,event_slug:C,outcome:C,outcome_index:Be,opposite_outcome:C,opposite_token_id:z.preprocess(e=>e===""?void 0:e,Ea.optional()),end_date:z.preprocess(e=>e===""?void 0:e,pa.optional()),last_event_at:z.preprocess(e=>e===0?void 0:e,ea.optional()),name:C,profile_image:C,verified:z.boolean()}).transform(e=>({wallet:e.proxy_wallet,assetId:e.token_id,tokenId:e.token_id,conditionId:e.condition_id,currentSize:e.current_size,avgPrice:e.avg_price,entryCostUsdc:e.entry_cost_usdc,entryFeesUsdc:e.entry_fees_usdc,totalCostUsdc:e.total_cost_usdc,currentPrice:e.current_price,currentValue:e.current_value,totalSize:e.total_size,realizedPnl:e.realized_pnl,unrealizedPnl:e.unrealized_pnl,totalPnl:e.total_pnl,percentPnl:e.percent_pnl,percentRealizedPnl:e.percent_realized_pnl,status:e.status,redeemable:e.redeemable,mergeable:e.mergeable,negativeRisk:e.negative_risk,archived:e.archived,title:e.title,slug:e.slug,icon:e.icon,eventId:e.event_id,eventSlug:e.event_slug,outcome:e.outcome,outcomeIndex:e.outcome_index,oppositeOutcome:e.opposite_outcome,oppositeAssetId:e.opposite_token_id,oppositeTokenId:e.opposite_token_id,endDate:e.end_date,lastEventAt:e.last_event_at,name:e.name,profileImage:e.profile_image,verified:e.verified})),Ve=z.object({proxy_wallet:ca,value:Qa}).transform(({proxy_wallet:e,value:t})=>({wallet:e,value:t})),ge=(s=>(s.Max="max",s.OneMonth="1m",s.OneWeek="1w",s.OneDay="1d",s.TwelveHours="12h",s.SixHours="6h",s))(ge||{}),we=z.enum(ge),_e=(m=>(m.OneDay="1d",m.EighteenHours="18h",m.TwelveHours="12h",m.ThreeHours="3h",m.OneHour="1h",m))(_e||{}),ae=z.enum(_e),u=Qa.nullish().transform(e=>e??null),ye=z.object({timestamp:ea,source_block:z.number().int().nonnegative(),realized_market_pnl:Qa,realized_lp_pnl:Qa,realized_combo_pnl:Qa,unrealized_pnl:u,fees_refunded:u,maker_rebate:u,taker_rebate:u,reward_income:u,yield_income:u,referral_income:u,deposits:u,withdrawals:u,realized_pnl:Qa,wallet_income:u,position_pnl:u,settled_pnl:u,economic_pnl:u,trade_pnl:u,sponsored_income:u,fees:u,fees_paid:u,cashflow_net:u,volume:Qa,volume_usdc:Qa,trade_count:z.number().int().nonnegative()}).transform(({source_block:e,realized_market_pnl:t,realized_lp_pnl:i,realized_combo_pnl:l,unrealized_pnl:a,fees_refunded:m,maker_rebate:s,taker_rebate:h,reward_income:L,yield_income:f,referral_income:V,realized_pnl:w,wallet_income:W,position_pnl:H,settled_pnl:p,economic_pnl:F,trade_pnl:j,sponsored_income:Z,fees_paid:De,cashflow_net:ke,volume_usdc:Pe,trade_count:ze,...Le})=>({...Le,sourceBlock:e,realizedMarketPnl:t,realizedLpPnl:i,realizedComboPnl:l,unrealizedPnl:a,feesRefunded:m,makerRebate:s,takerRebate:h,rewardIncome:L,yieldIncome:f,referralIncome:V,realizedPnl:w,walletIncome:W,positionPnl:H,settledPnl:p,economicPnl:F,tradePnl:j,sponsoredIncome:Z,feesPaid:De,cashflowNet:ke,volumeUsdc:Pe,tradeCount:ze})),We=z.object({proxy_wallet:ca,interval:we,fidelity:ae,source_fidelity:ae,points:z.array(ye)}).transform(({proxy_wallet:e,source_fidelity:t,...i})=>({...i,wallet:e,sourceFidelity:t})),He=z.object({volume:Qa,volume_usdc:Qa,trade_count:z.number().int().nonnegative()}).transform(({volume_usdc:e,trade_count:t,...i})=>({...i,volumeUsdc:e,tradeCount:t})),Fe=z.object({proxy_wallet:ca,trades:z.number().int().nonnegative(),biggest_win:Qa,views:z.number().int().nonnegative(),join_date:ea.nullish(),all_time_pnl:ye.nullish()}).transform(({proxy_wallet:e,trades:t,biggest_win:i,join_date:l,all_time_pnl:a,...m})=>({...m,wallet:e,tradedMarketCount:t,biggestWin:i,joinDate:l??null,allTimePnl:a??null})),je=z.object({event_id:z.string().nullish(),event_slug:z.string().nullish(),event_title:z.string().nullish(),event_image:z.string().nullish()}).transform(({event_id:e,event_slug:t,event_title:i,event_image:l})=>({eventId:e,eventSlug:t,eventTitle:i,eventImage:l})),Ze=z.object({market_id:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),question:z.string().nullish(),group_item_title:z.string().nullish(),sports_market_type:z.string().nullish(),line:z.number().nullish(),outcomes:z.array(z.string()).nullish(),outcome:z.string().nullish(),image_url:z.string().nullish(),icon_url:z.string().nullish(),category:z.string().nullish(),subcategory:z.string().nullish(),tags:z.array(z.string()).nullish(),end_date:oa.nullish(),event:je.nullish()}).transform(({market_id:e,image_url:t,icon_url:i,end_date:l,group_item_title:a,sports_market_type:m,...s})=>({...s,marketId:e,groupItemTitle:a,sportsMarketType:m,imageUrl:t,iconUrl:i,endDate:l})),Y=z.object({leg_index:z.number().int(),leg_position_id:Da,leg_condition_id:aa,leg_outcome_index:z.number().int(),leg_outcome_label:z.string().nullish(),leg_status:me,leg_resolved_at:oa.nullish(),leg_current_price:Qa.nullish(),market:Ze.nullish()}).transform(({leg_index:e,leg_position_id:t,leg_condition_id:i,leg_outcome_index:l,leg_outcome_label:a,leg_status:m,leg_resolved_at:s,leg_current_price:h,...L})=>({...L,legIndex:e,legPositionId:t,legConditionId:i,legOutcomeIndex:l,legOutcomeLabel:a,legStatus:m,legResolvedAt:s,legCurrentPrice:h})),Ke=z.object({combo_condition_id:$,outcome_index:z.number().int(),outcome_label:z.string(),combo_position_id:Da,proxy_wallet:ca,current_size:Qa,entry_avg_price_usdc:Qa,entry_cost_usdc:Qa,gross_entry_cost_usdc:Qa,entry_fees_usdc:Qa,realized_payout_usdc:Qa,status:me,redeemable:z.boolean(),first_entry_at:oa,resolved_at:oa.nullish(),legs_total:z.number().int(),legs_resolved:z.number().int(),legs_pending:z.number().int(),legs:z.array(Y),updated_at:oa}).transform(({combo_condition_id:e,outcome_index:t,outcome_label:i,combo_position_id:l,proxy_wallet:a,current_size:m,entry_avg_price_usdc:s,entry_cost_usdc:h,gross_entry_cost_usdc:L,entry_fees_usdc:f,realized_payout_usdc:V,first_entry_at:w,resolved_at:W,legs_total:H,legs_resolved:p,legs_pending:F,updated_at:j,...Z})=>({...Z,conditionId:e,outcomeIndex:t,outcomeLabel:i,positionId:l,wallet:a,currentSize:m,entryAvgPriceUsdc:s,entryCostUsdc:h,grossEntryCostUsdc:L,entryFeesUsdc:f,realizedPayoutUsdc:V,firstEntryAt:w,resolvedAt:W,legsTotal:H,legsResolved:p,legsPending:F,updatedAt:j})),Nt=b(Ne),Vt=I(Ve),wt=I(Fe.nullable()),Wt=I(We),Ht=I(He),Ft=b(Ke);var Se=(h=>(h.Split="SPLIT",h.Merge="MERGE",h.Convert="CONVERT",h.Compress="COMPRESS",h.Wrap="WRAP",h.Unwrap="UNWRAP",h.Redeem="REDEEM",h))(Se||{}),Ge=z.enum(Se),qe=z.object({id:_,type:Ge,proxy_wallet:ca,combo_condition_id:$,combo_position_id:Da,amount_usdc:Qa.nullish(),payout_usdc:Qa.nullish(),timestamp:ea,transaction_hash:Na,block_number:z.number().int(),legs:z.array(Y)}),Ye=qe.transform(Xe),d=z.preprocess(e=>e===""?void 0:e,z.string().optional()),be=z.preprocess(e=>e===999?void 0:e,z.number().int().optional()),Qe=z.object({proxy_wallet:ca,side:za,token_id:Ea,condition_id:aa,size:Qa,price:Qa,timestamp:ea,title:d,slug:d,icon:d,event_slug:d,outcome:d,outcome_index:be,name:d,pseudonym:d,bio:d,profile_image:d,profile_image_optimized:d,transaction_hash:Na}).transform(e=>({wallet:e.proxy_wallet,side:e.side,assetId:e.token_id,tokenId:e.token_id,conditionId:e.condition_id,size:e.size,price:e.price,timestamp:e.timestamp,title:e.title,slug:e.slug,icon:e.icon,eventSlug:e.event_slug,outcome:e.outcome,outcomeIndex:e.outcome_index,name:e.name,pseudonym:e.pseudonym,bio:e.bio,profileImage:e.profile_image,profileImageOptimized:e.profile_image_optimized,transactionHash:e.transaction_hash})),$e=z.object({proxy_wallet:ca,timestamp:ea,condition_id:z.preprocess(e=>e===""?void 0:e,aa.optional()),type:ne,size:Qa,usdc_size:Qa,transaction_hash:Na,price:Qa,token_id:z.preprocess(e=>e===""?void 0:e,Ea.optional()),side:z.preprocess(e=>e===""?void 0:e,z.union([za,q]).optional()),is_combo:z.boolean().optional(),outcome_index:be,title:d,slug:d,icon:d,event_slug:d,outcome:d,name:d,pseudonym:d,bio:d,profile_image:d,profile_image_optimized:d}),Je=$e.transform(tt),Qt=b(Qe),$t=b(Je),Jt=b(Ye);function Xe(e){let t=et(e);switch(e.type){case "SPLIT":return {...t,type:"SPLIT"};case "MERGE":return {...t,type:"MERGE"};case "CONVERT":return {...t,type:"CONVERT"};case "COMPRESS":return {...t,type:"COMPRESS"};case "WRAP":return {...t,type:"WRAP"};case "UNWRAP":return {...t,type:"UNWRAP"};case "REDEEM":return {...t,type:"REDEEM",payout:e.payout_usdc??null}}}function et(e){return {id:e.id,type:e.type,wallet:e.proxy_wallet,conditionId:e.combo_condition_id,positionId:e.combo_position_id,amount:e.amount_usdc??null,timestamp:e.timestamp,transactionHash:e.transaction_hash,blockNumber:e.block_number,legs:e.legs}}function tt(e){let t=nt(e);switch(e.type){case "TRADE":return ot(e,t);case "SPLIT":case "MERGE":case "REDEEM":case "CONVERSION":return {...t,type:e.type,conditionId:x(e.condition_id,"condition_id"),amount:e.usdc_size,title:x(e.title,"title"),slug:x(e.slug,"slug"),icon:e.icon??null,eventSlug:x(e.event_slug,"event_slug")};case "MIGRATION":case "REWARD":case "MAKER_REBATE":case "REFERRAL_REWARD":case "YIELD":case "DEPOSIT":case "WITHDRAWAL":case "TAKER_REBATE":return {...t,type:e.type,amount:e.usdc_size};case "TIP":return {...t,type:e.type,amount:e.usdc_size,side:e.side===void 0?null:q.parse(e.side)}}}function ot(e,t){let i={...t,type:"TRADE",side:za.parse(x(e.side,"side")),shares:e.size,amount:e.usdc_size,price:e.price,title:x(e.title,"title"),icon:e.icon??null};if(e.is_combo===true)return {...i,isCombo:true,conditionId:$.parse(x(e.condition_id,"condition_id")),positionId:Da.parse(x(e.token_id,"token_id"))};let l=x(e.token_id,"token_id");return {...i,isCombo:false,conditionId:x(e.condition_id,"condition_id"),assetId:l,tokenId:l,outcome:x(e.outcome,"outcome"),outcomeIndex:e.outcome_index,slug:x(e.slug,"slug"),eventSlug:x(e.event_slug,"event_slug")}}function nt(e){return {wallet:e.proxy_wallet,timestamp:e.timestamp,transactionHash:e.transaction_hash,name:e.name??null,pseudonym:e.pseudonym??null,bio:e.bio??null,profileImage:e.profile_image??null,profileImageOptimized:e.profile_image_optimized??null}}function x(e,t){if(e==null)throw new TypeError(`Expected activity.${t} to be present`);return e}var he=(s=>(s.Max="max",s.OneMonth="1m",s.OneWeek="1w",s.OneDay="1d",s.SixHours="6h",s.OneHour="1h",s))(he||{}),no=z.enum(he),it=z.object({timestamp:ea,price:Qa,resolution_seconds:z.number().int().nonnegative()}).transform(({price:e,resolution_seconds:t,timestamp:i})=>({timestamp:i,price:e,resolutionSeconds:t})),io=b(it),M=z.preprocess(e=>e===""?null:e,z.string().nullable()),rt=z.object({proxy_wallet:ca,bio:M,token_id:Ea,pseudonym:M,amount:Qa,display_username_public:z.boolean(),outcome_index:z.preprocess(e=>e===999?null:e,z.number().int().nullable()),name:M,profile_image:M,profile_image_optimized:M,verified:z.boolean(),avg_price:Qa.nullish(),entry_cost_usdc:Qa.nullish(),current_price:Qa.nullish(),current_value:Qa.nullish(),realized_pnl:Qa.nullish(),unrealized_pnl:Qa.nullish(),total_pnl:Qa.nullish()}).transform(e=>({wallet:e.proxy_wallet,assetId:e.token_id,tokenId:e.token_id,amount:e.amount,displayUsernamePublic:e.display_username_public,outcomeIndex:e.outcome_index,verified:e.verified,bio:e.bio,pseudonym:e.pseudonym,name:e.name,profileImage:e.profile_image,profileImageOptimized:e.profile_image_optimized,avgPrice:e.avg_price,entryCostUsdc:e.entry_cost_usdc,currentPrice:e.current_price,currentValue:e.current_value,realizedPnl:e.realized_pnl,unrealizedPnl:e.unrealized_pnl,totalPnl:e.total_pnl})),st=z.object({token_id:Ea,holders:z.array(rt)}).transform(({holders:e,token_id:t})=>({assetId:t,token:t,holders:e})),at=z.object({condition_id:z.union([aa,z.literal("GLOBAL")]),value:Qa}).transform(({condition_id:e,value:t})=>({conditionId:e==="GLOBAL"?null:e,value:t})),lt=z.object({condition_id:z.preprocess(Ta,aa.nullable()),taker_volume:Qa}).transform(({condition_id:e,taker_volume:t})=>({conditionId:e,takerVolume:t})),mt=z.object({taker_volume_total:Qa,conditions:z.array(lt)}).transform(({conditions:e,taker_volume_total:t})=>({markets:e,takerVolumeTotal:t})),ro=b(st),so=I(z.array(at)),ao=I(mt);var fe=(a=>(a.Day="day",a.Week="week",a.Month="month",a.All="all",a))(fe||{}),uo=z.enum(fe),ve=(a=>(a.Day="day",a.Week="week",a.Month="month",a.Year="all",a))(ve||{}),go=z.enum(ve),Ie=(i=>(i.Pnl="PNL",i.Volume="VOLUME",i))(Ie||{}),_o=z.enum(Ie),xe=(i=>(i.Market="market",i.Combo="combo",i))(xe||{}),yo=z.enum(xe),dt=z.object({rank:z.number().int().positive(),builder_name:z.string(),builder_code:X,profile_image:z.string(),verified:z.boolean(),volume:Qa,active_users:z.number().int().min(0)}).transform(({active_users:e,builder_code:t,builder_name:i,profile_image:l,...a})=>({...a,activeUsers:e,builderCode:t,builderName:i,...l===""?{}:{profileImage:l}})),ct=z.object({date:pa,rank:z.number().int().min(0),builder_name:z.string(),builder_code:X,profile_image:z.string(),verified:z.boolean(),volume:Qa,active_users:z.number().int().min(0)}).transform(({active_users:e,builder_code:t,builder_name:i,date:l,profile_image:a,...m})=>({...m,activeUsers:e,bucketDate:l,builderCode:t,builderName:i,...a===""?{}:{profileImage:a}})),R=z.preprocess(Ta,z.string().nullable()),pt=z.object({rank:z.number().int().min(0),user_id:ca,pnl:Qa,volume:Qa,user_name:R,profile_image:R,x_username:R,verified:z.boolean()}).transform(({profile_image:e,user_id:t,user_name:i,x_username:l,...a})=>({...a,wallet:t,userName:i,profileImage:e,xUsername:l})),ut=z.object({user_id:ca,pnl:Qa,volume:Qa,rank_pnl:z.number().int().positive().nullable(),rank_volume:z.number().int().positive().nullable(),user_name:R,profile_image:R,x_username:R,verified:z.boolean()}).transform(({profile_image:e,rank_pnl:t,rank_volume:i,user_id:l,user_name:a,x_username:m,...s})=>({...s,wallet:l,pnlRank:t,volumeRank:i,userName:a,profileImage:e,xUsername:m})),gt=z.object({win_rank:z.number().int().positive(),kind:z.literal("market"),user_id:ca,pnl:Qa,initial_value:Qa,final_value:Qa,resolved_at:ea,condition_id:aa,position_id:Ea,event_id:ma,event_slug:z.string(),event_title:z.string(),user_name:R,profile_image:R}),_t=z.object({win_rank:z.number().int().positive(),kind:z.literal("combo"),user_id:ca,pnl:Qa,initial_value:Qa,final_value:Qa,resolved_at:ea,condition_id:$,position_id:Da,event_id:z.literal(0),event_slug:z.literal(""),event_title:z.string(),user_name:R,profile_image:R}),yt=z.discriminatedUnion("kind",[gt,_t]).transform(e=>e.kind==="combo"?{rank:e.win_rank,kind:e.kind,wallet:e.user_id,pnl:e.pnl,initialValue:e.initial_value,finalValue:e.final_value,resolvedAt:e.resolved_at,conditionId:e.condition_id,positionId:e.position_id,eventId:null,eventSlug:null,eventTitle:e.event_title,userName:e.user_name,profileImage:e.profile_image}:{rank:e.win_rank,kind:e.kind,wallet:e.user_id,pnl:e.pnl,initialValue:e.initial_value,finalValue:e.final_value,resolvedAt:e.resolved_at,conditionId:e.condition_id,assetId:e.position_id,eventId:e.event_id,eventSlug:e.event_slug,eventTitle:e.event_title,userName:e.user_name,profileImage:e.profile_image}),So=b(dt),bo=I(z.array(ct)),ho=b(pt),fo=I(ut.nullable()),vo=b(yt);var Re=(f=>(f.Initialized="initialized",f.Posed="posed",f.Proposed="proposed",f.Challenged="challenged",f.Reproposed="reproposed",f.Disputed="disputed",f.Active="active",f.Arbitration="arbitration",f.Resolved="resolved",f))(Re||{}),St=z.enum(Re),Ce=(l=>(l.Binary="BINARY",l.IncrementalNegRisk="INCREMENTAL_NEGRISK",l.AtomicNegRisk="ATOMIC_NEGRISK",l))(Ce||{}),bt=z.enum(Ce),Ee=(i=>(i.Reported="reported",i.Derived="derived",i))(Ee||{}),ht=z.enum(Ee),Te=(l=>(l.UmaOptimisticOracle="UMA_OO",l.Chainlink="CHAINLINK",l.Eoa="EOA",l))(Te||{}),ft=z.enum(Te),Ae=z.number().int().min(0).transform(String).pipe(Pa),vt=z.object({question_id:Fa.optional(),condition_id:aa.optional(),status:St,extended_review:z.boolean(),was_disputed:z.boolean(),new_version_q:z.boolean(),proposed_price:Oa.optional(),reproposed_price:Oa.optional(),price:Oa.optional(),transaction_hash:z.preprocess(Ta,Na.nullable()),log_index:z.preprocess(Ta,z.string().regex(/^\d+$/).transform(Number).nullable()),last_update_timestamp:ha,market_type:bt.optional(),payouts:z.tuple([Ae,Ae]).optional(),resolution_source:ht.optional(),reporter:ft.optional(),was_arbitrated:z.boolean().optional(),resolved_block:z.number().int().min(0).optional(),resolved_at:oa.optional()}).transform(e=>{let t={status:e.status,extendedReview:e.extended_review,wasDisputed:e.was_disputed,questionRulesUpdated:e.new_version_q,transactionHash:e.transaction_hash,logIndex:e.log_index,lastUpdatedAt:e.last_update_timestamp};return e.question_id!==void 0&&(t.questionId=e.question_id),e.condition_id!==void 0&&(t.conditionId=e.condition_id),e.proposed_price!==void 0&&e.proposed_price!=="69"&&(t.proposedPrice=e.proposed_price),e.reproposed_price!==void 0&&e.reproposed_price!=="69"&&(t.reproposedPrice=e.reproposed_price),e.price!==void 0&&e.price!=="69"&&(t.price=e.price),e.market_type!==void 0&&(t.marketType=e.market_type),e.payouts!==void 0&&(t.payouts=e.payouts),e.resolution_source!==void 0&&(t.resolutionSource=e.resolution_source),e.reporter!==void 0&&(t.reporter=e.reporter),e.was_arbitrated!==void 0&&(t.wasArbitrated=e.was_arbitrated),e.resolved_block!==void 0&&(t.resolvedBlock=e.resolved_block),e.resolved_at!==void 0&&(t.resolvedAt=e.resolved_at),t}),Co=I(z.array(vt));export{Je as ActivitySchema,G as ActivityType,ne as ActivityTypeSchema,xe as BiggestWinnerKind,yo as BiggestWinnerKindSchema,yt as BiggestWinnerSchema,dt as BuilderStandingSchema,ve as BuilderVolumeInterval,go as BuilderVolumeIntervalSchema,ct as BuilderVolumePointSchema,Ct as CanonicalMarketConditionIdSchema,Ye as ComboActivitySchema,Se as ComboActivityType,Y as ComboPositionLegSchema,je as ComboPositionMarketEventSchema,Ze as ComboPositionMarketSchema,Ke as ComboPositionSchema,ue as ComboPositionSortBy,Bt as ComboPositionSortBySchema,le as ComboPositionStatus,me as ComboPositionStatusSchema,bo as FetchBuilderVolumeResponseSchema,ao as FetchEventLiveVolumeResponseSchema,so as FetchOpenInterestResponseSchema,Vt as FetchPortfolioValueResponseSchema,Co as FetchResolutionsResponseSchema,fo as FetchTraderLeaderboardStandingResponseSchema,Wt as FetchUserPnlResponseSchema,wt as FetchUserStatsResponseSchema,Ht as FetchUserVolumeResponseSchema,rt as HolderSchema,fe as LeaderboardWindow,uo as LeaderboardWindowSchema,$t as ListActivityResponseSchema,vo as ListBiggestWinnersResponseSchema,So as ListBuilderLeaderboardResponseSchema,Jt as ListComboActivityResponseSchema,Ft as ListComboPositionsResponseSchema,ro as ListMarketHoldersResponseSchema,Nt as ListPositionsResponseSchema,io as ListPriceHistoryResponseSchema,ho as ListTraderLeaderboardResponseSchema,Qt as ListTradesResponseSchema,mt as LiveVolumeSchema,lt as MarketLiveVolumeSchema,st as MetaHolderSchema,at as OpenInterestSchema,Ve as PortfolioValueSchema,pe as PositionFilterType,Ut as PositionFilterTypeSchema,Ue as PositionRowStatusSchema,Ne as PositionSchema,ce as PositionSortBy,Ot as PositionSortBySchema,de as PositionStatus,Mt as PositionStatusSchema,he as PriceHistoryInterval,no as PriceHistoryIntervalSchema,it as PriceHistoryPointSchema,Ce as ResolutionMarketType,bt as ResolutionMarketTypeSchema,Te as ResolutionReporter,ft as ResolutionReporterSchema,vt as ResolutionSchema,Ee as ResolutionSource,ht as ResolutionSourceSchema,Re as ResolutionStatus,St as ResolutionStatusSchema,re as SortDirection,At as SortDirectionSchema,ie as TipSide,q as TipSideSchema,se as TradeFilterType,Rt as TradeFilterTypeSchema,Qe as TradeSchema,pt as TraderLeaderboardEntrySchema,Ie as TraderLeaderboardSort,_o as TraderLeaderboardSortSchema,ut as TraderLeaderboardStandingSchema,_e as UserPnlFidelity,ae as UserPnlFidelitySchema,ge as UserPnlInterval,we as UserPnlIntervalSchema,ye as UserPnlPointSchema,We as UserPnlSeriesSchema,Fe as UserStatsSchema,He as UserVolumeSchema,I as dataEnvelopeSchema,b as dataPageSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map