@atiproto/lexicons 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/index.js +1432 -885
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1432 -885
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
  6. package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
  7. package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
  8. package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
  9. package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
  10. package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
  11. package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
  12. package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
  13. package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
  14. package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
  15. package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
  16. package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
  17. package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
  18. package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
  19. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  20. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +2 -0
  21. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  22. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  23. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  24. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +2 -0
  25. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  27. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  28. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  29. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  30. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  31. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  32. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  33. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  34. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +1 -1
  35. package/dist/lexicons/com/atiproto/tip.defs.d.ts +52 -12
  36. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41,15 +41,17 @@ __export(atiproto_exports, {
41
41
  feed: () => feed_exports,
42
42
  profile: () => profile_exports2,
43
43
  repo: () => repo_exports,
44
- subscription: () => subscription_exports3,
45
- tip: () => tip_exports3
44
+ subscription: () => subscription_exports4,
45
+ tip: () => tip_exports4
46
46
  });
47
47
 
48
48
  // src/lexicons/com/atiproto/account.ts
49
49
  var account_exports = {};
50
50
  __export(account_exports, {
51
51
  cart: () => cart_exports,
52
- profile: () => profile_exports
52
+ profile: () => profile_exports,
53
+ subscription: () => subscription_exports,
54
+ tip: () => tip_exports
53
55
  });
54
56
 
55
57
  // src/lexicons/com/atiproto/account/cart.ts
@@ -180,7 +182,7 @@ var main2 = import_lex2.l.record(
180
182
  "any",
181
183
  $nsid2,
182
184
  import_lex2.l.object({
183
- subject: import_lex2.l.string({ format: "did" }),
185
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
184
186
  recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
185
187
  amount: import_lex2.l.integer({ minimum: 0 }),
186
188
  currency: import_lex2.l.string({ maxLength: 3 }),
@@ -212,7 +214,7 @@ var view2 = import_lex2.l.typedObject(
212
214
  $nsid2,
213
215
  "view",
214
216
  import_lex2.l.object({
215
- subject: import_lex2.l.string({ format: "did" }),
217
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
216
218
  recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
217
219
  amount: import_lex2.l.integer({ minimum: 0 }),
218
220
  currency: import_lex2.l.string({ maxLength: 3 }),
@@ -281,7 +283,7 @@ var view3 = import_lex3.l.typedObject(
281
283
  $nsid3,
282
284
  "view",
283
285
  import_lex3.l.object({
284
- subject: import_lex3.l.string({ format: "did" }),
286
+ subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
285
287
  amount: import_lex3.l.integer({ minimum: 0 }),
286
288
  currency: import_lex3.l.string({ maxLength: 3 }),
287
289
  interval: import_lex3.l.enum(["monthly", "yearly"]),
@@ -636,26 +638,282 @@ var $params7 = main11.parameters;
636
638
  var $input4 = main11.input;
637
639
  var $output7 = main11.output;
638
640
 
641
+ // src/lexicons/com/atiproto/account/subscription.ts
642
+ var subscription_exports = {};
643
+ __export(subscription_exports, {
644
+ get: () => get_exports3,
645
+ list: () => list_exports2,
646
+ validate: () => validate_exports
647
+ });
648
+
649
+ // src/lexicons/com/atiproto/account/subscription/get.ts
650
+ var get_exports3 = {};
651
+ __export(get_exports3, {
652
+ $defs: () => get_defs_exports3,
653
+ $lxm: () => $lxm8,
654
+ $nsid: () => $nsid12,
655
+ $output: () => $output8,
656
+ $params: () => $params8,
657
+ main: () => main12
658
+ });
659
+
660
+ // src/lexicons/com/atiproto/account/subscription/get.defs.ts
661
+ var get_defs_exports3 = {};
662
+ __export(get_defs_exports3, {
663
+ $lxm: () => $lxm8,
664
+ $nsid: () => $nsid12,
665
+ $output: () => $output8,
666
+ $params: () => $params8,
667
+ main: () => main12
668
+ });
669
+ var import_lex12 = require("@atproto/lex");
670
+ var $nsid12 = "com.atiproto.account.subscription.get";
671
+ var main12 = import_lex12.l.query(
672
+ $nsid12,
673
+ import_lex12.l.params({
674
+ uri: import_lex12.l.optional(import_lex12.l.string({ format: "at-uri" })),
675
+ sender: import_lex12.l.optional(import_lex12.l.string({ format: "did" }))
676
+ }),
677
+ import_lex12.l.jsonPayload({
678
+ subscription: import_lex12.l.ref(
679
+ (() => view3)
680
+ )
681
+ })
682
+ );
683
+ var $lxm8 = main12.nsid;
684
+ var $params8 = main12.parameters;
685
+ var $output8 = main12.output;
686
+
687
+ // src/lexicons/com/atiproto/account/subscription/list.ts
688
+ var list_exports2 = {};
689
+ __export(list_exports2, {
690
+ $defs: () => list_defs_exports2,
691
+ $lxm: () => $lxm9,
692
+ $nsid: () => $nsid13,
693
+ $output: () => $output9,
694
+ $params: () => $params9,
695
+ main: () => main13
696
+ });
697
+
698
+ // src/lexicons/com/atiproto/account/subscription/list.defs.ts
699
+ var list_defs_exports2 = {};
700
+ __export(list_defs_exports2, {
701
+ $lxm: () => $lxm9,
702
+ $nsid: () => $nsid13,
703
+ $output: () => $output9,
704
+ $params: () => $params9,
705
+ main: () => main13
706
+ });
707
+ var import_lex13 = require("@atproto/lex");
708
+ var $nsid13 = "com.atiproto.account.subscription.list";
709
+ var main13 = import_lex13.l.query(
710
+ $nsid13,
711
+ import_lex13.l.params({
712
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 })),
713
+ limit: import_lex13.l.optional(
714
+ import_lex13.l.withDefault(import_lex13.l.integer({ minimum: 1, maximum: 100 }), 50)
715
+ )
716
+ }),
717
+ import_lex13.l.jsonPayload({
718
+ subscriptions: import_lex13.l.array(
719
+ import_lex13.l.ref(
720
+ (() => view3)
721
+ )
722
+ ),
723
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 }))
724
+ })
725
+ );
726
+ var $lxm9 = main13.nsid;
727
+ var $params9 = main13.parameters;
728
+ var $output9 = main13.output;
729
+
730
+ // src/lexicons/com/atiproto/account/subscription/validate.ts
731
+ var validate_exports = {};
732
+ __export(validate_exports, {
733
+ $defs: () => validate_defs_exports,
734
+ $lxm: () => $lxm10,
735
+ $nsid: () => $nsid14,
736
+ $output: () => $output10,
737
+ $params: () => $params10,
738
+ main: () => main14
739
+ });
740
+
741
+ // src/lexicons/com/atiproto/account/subscription/validate.defs.ts
742
+ var validate_defs_exports = {};
743
+ __export(validate_defs_exports, {
744
+ $lxm: () => $lxm10,
745
+ $nsid: () => $nsid14,
746
+ $output: () => $output10,
747
+ $params: () => $params10,
748
+ main: () => main14
749
+ });
750
+ var import_lex14 = require("@atproto/lex");
751
+ var $nsid14 = "com.atiproto.account.subscription.validate";
752
+ var main14 = import_lex14.l.query(
753
+ $nsid14,
754
+ import_lex14.l.params({
755
+ subscriptionUri: import_lex14.l.optional(import_lex14.l.string({ format: "at-uri" })),
756
+ sender: import_lex14.l.optional(import_lex14.l.string({ format: "did" })),
757
+ amount: import_lex14.l.optional(import_lex14.l.integer())
758
+ }),
759
+ import_lex14.l.jsonPayload({
760
+ valid: import_lex14.l.boolean(),
761
+ amount: import_lex14.l.optional(import_lex14.l.integer()),
762
+ currency: import_lex14.l.optional(import_lex14.l.string({ maxLength: 3 })),
763
+ reason: import_lex14.l.optional(import_lex14.l.string({ maxLength: 1024 }))
764
+ })
765
+ );
766
+ var $lxm10 = main14.nsid;
767
+ var $params10 = main14.parameters;
768
+ var $output10 = main14.output;
769
+
770
+ // src/lexicons/com/atiproto/account/tip.ts
771
+ var tip_exports = {};
772
+ __export(tip_exports, {
773
+ get: () => get_exports4,
774
+ list: () => list_exports3,
775
+ validate: () => validate_exports2
776
+ });
777
+
778
+ // src/lexicons/com/atiproto/account/tip/get.ts
779
+ var get_exports4 = {};
780
+ __export(get_exports4, {
781
+ $defs: () => get_defs_exports4,
782
+ $lxm: () => $lxm11,
783
+ $nsid: () => $nsid15,
784
+ $output: () => $output11,
785
+ $params: () => $params11,
786
+ main: () => main15
787
+ });
788
+
789
+ // src/lexicons/com/atiproto/account/tip/get.defs.ts
790
+ var get_defs_exports4 = {};
791
+ __export(get_defs_exports4, {
792
+ $lxm: () => $lxm11,
793
+ $nsid: () => $nsid15,
794
+ $output: () => $output11,
795
+ $params: () => $params11,
796
+ main: () => main15
797
+ });
798
+ var import_lex15 = require("@atproto/lex");
799
+ var $nsid15 = "com.atiproto.account.tip.get";
800
+ var main15 = import_lex15.l.query(
801
+ $nsid15,
802
+ import_lex15.l.params({
803
+ uri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" })),
804
+ sender: import_lex15.l.optional(import_lex15.l.string({ format: "did" })),
805
+ recordUri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" }))
806
+ }),
807
+ import_lex15.l.jsonPayload({
808
+ tip: import_lex15.l.ref((() => view2))
809
+ })
810
+ );
811
+ var $lxm11 = main15.nsid;
812
+ var $params11 = main15.parameters;
813
+ var $output11 = main15.output;
814
+
815
+ // src/lexicons/com/atiproto/account/tip/list.ts
816
+ var list_exports3 = {};
817
+ __export(list_exports3, {
818
+ $defs: () => list_defs_exports3,
819
+ $lxm: () => $lxm12,
820
+ $nsid: () => $nsid16,
821
+ $output: () => $output12,
822
+ $params: () => $params12,
823
+ main: () => main16
824
+ });
825
+
826
+ // src/lexicons/com/atiproto/account/tip/list.defs.ts
827
+ var list_defs_exports3 = {};
828
+ __export(list_defs_exports3, {
829
+ $lxm: () => $lxm12,
830
+ $nsid: () => $nsid16,
831
+ $output: () => $output12,
832
+ $params: () => $params12,
833
+ main: () => main16
834
+ });
835
+ var import_lex16 = require("@atproto/lex");
836
+ var $nsid16 = "com.atiproto.account.tip.list";
837
+ var main16 = import_lex16.l.query(
838
+ $nsid16,
839
+ import_lex16.l.params({
840
+ sender: import_lex16.l.optional(import_lex16.l.string({ format: "did" })),
841
+ recordUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
842
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 })),
843
+ limit: import_lex16.l.optional(
844
+ import_lex16.l.withDefault(import_lex16.l.integer({ minimum: 1, maximum: 100 }), 50)
845
+ )
846
+ }),
847
+ import_lex16.l.jsonPayload({
848
+ tips: import_lex16.l.array(import_lex16.l.ref((() => view2))),
849
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 }))
850
+ })
851
+ );
852
+ var $lxm12 = main16.nsid;
853
+ var $params12 = main16.parameters;
854
+ var $output12 = main16.output;
855
+
856
+ // src/lexicons/com/atiproto/account/tip/validate.ts
857
+ var validate_exports2 = {};
858
+ __export(validate_exports2, {
859
+ $defs: () => validate_defs_exports2,
860
+ $lxm: () => $lxm13,
861
+ $nsid: () => $nsid17,
862
+ $output: () => $output13,
863
+ $params: () => $params13,
864
+ main: () => main17
865
+ });
866
+
867
+ // src/lexicons/com/atiproto/account/tip/validate.defs.ts
868
+ var validate_defs_exports2 = {};
869
+ __export(validate_defs_exports2, {
870
+ $lxm: () => $lxm13,
871
+ $nsid: () => $nsid17,
872
+ $output: () => $output13,
873
+ $params: () => $params13,
874
+ main: () => main17
875
+ });
876
+ var import_lex17 = require("@atproto/lex");
877
+ var $nsid17 = "com.atiproto.account.tip.validate";
878
+ var main17 = import_lex17.l.query(
879
+ $nsid17,
880
+ import_lex17.l.params({
881
+ tipUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
882
+ recordUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
883
+ sender: import_lex17.l.optional(import_lex17.l.string({ format: "did" })),
884
+ amount: import_lex17.l.optional(import_lex17.l.integer())
885
+ }),
886
+ import_lex17.l.jsonPayload({
887
+ valid: import_lex17.l.boolean(),
888
+ amount: import_lex17.l.optional(import_lex17.l.integer()),
889
+ currency: import_lex17.l.optional(import_lex17.l.string({ maxLength: 3 })),
890
+ reason: import_lex17.l.optional(import_lex17.l.string({ maxLength: 1024 }))
891
+ })
892
+ );
893
+ var $lxm13 = main17.nsid;
894
+ var $params13 = main17.parameters;
895
+ var $output13 = main17.output;
896
+
639
897
  // src/lexicons/com/atiproto/authEnhanced.ts
640
898
  var authEnhanced_exports = {};
641
899
  __export(authEnhanced_exports, {
642
900
  $defs: () => authEnhanced_defs_exports,
643
- $nsid: () => $nsid12,
644
- main: () => main12
901
+ $nsid: () => $nsid18,
902
+ main: () => main18
645
903
  });
646
904
 
647
905
  // src/lexicons/com/atiproto/authEnhanced.defs.ts
648
906
  var authEnhanced_defs_exports = {};
649
907
  __export(authEnhanced_defs_exports, {
650
- $nsid: () => $nsid12,
651
- main: () => main12
908
+ $nsid: () => $nsid18,
909
+ main: () => main18
652
910
  });
653
- var import_lex12 = require("@atproto/lex");
654
- var $nsid12 = "com.atiproto.authEnhanced";
655
- var main12 = import_lex12.l.permissionSet(
656
- $nsid12,
911
+ var import_lex18 = require("@atproto/lex");
912
+ var $nsid18 = "com.atiproto.authEnhanced";
913
+ var main18 = import_lex18.l.permissionSet(
914
+ $nsid18,
657
915
  [
658
- import_lex12.l.permission("repo", {
916
+ import_lex18.l.permission("repo", {
659
917
  collection: [
660
918
  "com.atiproto.cart",
661
919
  "com.atiproto.subscription",
@@ -663,7 +921,7 @@ var main12 = import_lex12.l.permissionSet(
663
921
  "com.atiproto.profile"
664
922
  ]
665
923
  }),
666
- import_lex12.l.permission("rpc", {
924
+ import_lex18.l.permission("rpc", {
667
925
  inheritAud: true,
668
926
  lxm: [
669
927
  "com.atiproto.account.cart.clone",
@@ -673,21 +931,27 @@ var main12 = import_lex12.l.permissionSet(
673
931
  "com.atiproto.account.cart.put",
674
932
  "com.atiproto.account.profile.get",
675
933
  "com.atiproto.account.profile.put",
934
+ "com.atiproto.account.subscription.get",
935
+ "com.atiproto.account.subscription.list",
936
+ "com.atiproto.account.subscription.validate",
937
+ "com.atiproto.account.tip.get",
938
+ "com.atiproto.account.tip.list",
939
+ "com.atiproto.account.tip.validate",
676
940
  "com.atiproto.feed.list",
677
941
  "com.atiproto.feed.subscription.cancel",
678
942
  "com.atiproto.feed.subscription.create",
679
943
  "com.atiproto.feed.subscription.get",
680
944
  "com.atiproto.feed.subscription.list",
681
945
  "com.atiproto.feed.subscription.put",
946
+ "com.atiproto.feed.subscription.validate",
682
947
  "com.atiproto.feed.tip.create",
683
948
  "com.atiproto.feed.tip.get",
684
949
  "com.atiproto.feed.tip.list",
685
950
  "com.atiproto.feed.tip.put",
951
+ "com.atiproto.feed.tip.validate",
686
952
  "com.atiproto.repo.profile.get",
687
- "com.atiproto.repo.subscription.search",
688
- "com.atiproto.repo.subscription.validate",
689
- "com.atiproto.repo.tip.search",
690
- "com.atiproto.repo.tip.validate"
953
+ "com.atiproto.repo.subscription.count",
954
+ "com.atiproto.repo.tip.count"
691
955
  ]
692
956
  })
693
957
  ],
@@ -701,29 +965,29 @@ var main12 = import_lex12.l.permissionSet(
701
965
  var authGeneral_exports = {};
702
966
  __export(authGeneral_exports, {
703
967
  $defs: () => authGeneral_defs_exports,
704
- $nsid: () => $nsid13,
705
- main: () => main13
968
+ $nsid: () => $nsid19,
969
+ main: () => main19
706
970
  });
707
971
 
708
972
  // src/lexicons/com/atiproto/authGeneral.defs.ts
709
973
  var authGeneral_defs_exports = {};
710
974
  __export(authGeneral_defs_exports, {
711
- $nsid: () => $nsid13,
712
- main: () => main13
975
+ $nsid: () => $nsid19,
976
+ main: () => main19
713
977
  });
714
- var import_lex13 = require("@atproto/lex");
715
- var $nsid13 = "com.atiproto.authGeneral";
716
- var main13 = import_lex13.l.permissionSet(
717
- $nsid13,
978
+ var import_lex19 = require("@atproto/lex");
979
+ var $nsid19 = "com.atiproto.authGeneral";
980
+ var main19 = import_lex19.l.permissionSet(
981
+ $nsid19,
718
982
  [
719
- import_lex13.l.permission("repo", {
983
+ import_lex19.l.permission("repo", {
720
984
  collection: [
721
985
  "com.atiproto.cart",
722
986
  "com.atiproto.subscription",
723
987
  "com.atiproto.tip"
724
988
  ]
725
989
  }),
726
- import_lex13.l.permission("rpc", {
990
+ import_lex19.l.permission("rpc", {
727
991
  inheritAud: true,
728
992
  lxm: [
729
993
  "com.atiproto.account.cart.clone",
@@ -731,21 +995,27 @@ var main13 = import_lex13.l.permissionSet(
731
995
  "com.atiproto.account.cart.get",
732
996
  "com.atiproto.account.cart.list",
733
997
  "com.atiproto.account.cart.put",
998
+ "com.atiproto.account.subscription.get",
999
+ "com.atiproto.account.subscription.list",
1000
+ "com.atiproto.account.subscription.validate",
1001
+ "com.atiproto.account.tip.get",
1002
+ "com.atiproto.account.tip.list",
1003
+ "com.atiproto.account.tip.validate",
734
1004
  "com.atiproto.feed.list",
735
1005
  "com.atiproto.feed.subscription.cancel",
736
1006
  "com.atiproto.feed.subscription.create",
737
1007
  "com.atiproto.feed.subscription.get",
738
1008
  "com.atiproto.feed.subscription.list",
739
1009
  "com.atiproto.feed.subscription.put",
1010
+ "com.atiproto.feed.subscription.validate",
740
1011
  "com.atiproto.feed.tip.create",
741
1012
  "com.atiproto.feed.tip.get",
742
1013
  "com.atiproto.feed.tip.list",
743
1014
  "com.atiproto.feed.tip.put",
1015
+ "com.atiproto.feed.tip.validate",
744
1016
  "com.atiproto.repo.profile.get",
745
- "com.atiproto.repo.subscription.search",
746
- "com.atiproto.repo.subscription.validate",
747
- "com.atiproto.repo.tip.search",
748
- "com.atiproto.repo.tip.validate"
1017
+ "com.atiproto.repo.subscription.count",
1018
+ "com.atiproto.repo.tip.count"
749
1019
  ]
750
1020
  })
751
1021
  ],
@@ -780,63 +1050,64 @@ __export(cart_exports2, {
780
1050
  // src/lexicons/com/atiproto/feed.ts
781
1051
  var feed_exports = {};
782
1052
  __export(feed_exports, {
783
- list: () => list_exports2,
784
- subscription: () => subscription_exports,
785
- tip: () => tip_exports
1053
+ list: () => list_exports4,
1054
+ subscription: () => subscription_exports2,
1055
+ tip: () => tip_exports2
786
1056
  });
787
1057
 
788
1058
  // src/lexicons/com/atiproto/feed/list.ts
789
- var list_exports2 = {};
790
- __export(list_exports2, {
791
- $defs: () => list_defs_exports2,
792
- $lxm: () => $lxm8,
793
- $nsid: () => $nsid14,
794
- $output: () => $output8,
795
- $params: () => $params8,
796
- main: () => main14
1059
+ var list_exports4 = {};
1060
+ __export(list_exports4, {
1061
+ $defs: () => list_defs_exports4,
1062
+ $lxm: () => $lxm14,
1063
+ $nsid: () => $nsid20,
1064
+ $output: () => $output14,
1065
+ $params: () => $params14,
1066
+ main: () => main20
797
1067
  });
798
1068
 
799
1069
  // src/lexicons/com/atiproto/feed/list.defs.ts
800
- var list_defs_exports2 = {};
801
- __export(list_defs_exports2, {
802
- $lxm: () => $lxm8,
803
- $nsid: () => $nsid14,
804
- $output: () => $output8,
805
- $params: () => $params8,
806
- main: () => main14
1070
+ var list_defs_exports4 = {};
1071
+ __export(list_defs_exports4, {
1072
+ $lxm: () => $lxm14,
1073
+ $nsid: () => $nsid20,
1074
+ $output: () => $output14,
1075
+ $params: () => $params14,
1076
+ main: () => main20
807
1077
  });
808
- var import_lex14 = require("@atproto/lex");
809
- var $nsid14 = "com.atiproto.feed.list";
810
- var main14 = import_lex14.l.query(
811
- $nsid14,
812
- import_lex14.l.params(),
813
- import_lex14.l.jsonPayload({
814
- items: import_lex14.l.array(
815
- import_lex14.l.typedUnion(
1078
+ var import_lex20 = require("@atproto/lex");
1079
+ var $nsid20 = "com.atiproto.feed.list";
1080
+ var main20 = import_lex20.l.query(
1081
+ $nsid20,
1082
+ import_lex20.l.params(),
1083
+ import_lex20.l.jsonPayload({
1084
+ items: import_lex20.l.array(
1085
+ import_lex20.l.typedUnion(
816
1086
  [
817
- import_lex14.l.typedRef((() => main2)),
818
- import_lex14.l.typedRef(
1087
+ import_lex20.l.typedRef((() => main2)),
1088
+ import_lex20.l.typedRef(
819
1089
  (() => main3)
820
1090
  )
821
1091
  ],
822
1092
  false
823
1093
  )
824
1094
  ),
825
- cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 }))
1095
+ cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 }))
826
1096
  })
827
1097
  );
828
- var $lxm8 = main14.nsid;
829
- var $params8 = main14.parameters;
830
- var $output8 = main14.output;
1098
+ var $lxm14 = main20.nsid;
1099
+ var $params14 = main20.parameters;
1100
+ var $output14 = main20.output;
831
1101
 
832
1102
  // src/lexicons/com/atiproto/feed/subscription.ts
833
- var subscription_exports = {};
834
- __export(subscription_exports, {
1103
+ var subscription_exports2 = {};
1104
+ __export(subscription_exports2, {
835
1105
  cancel: () => cancel_exports,
836
1106
  create: () => create_exports2,
837
- get: () => get_exports3,
838
- list: () => list_exports3,
839
- put: () => put_exports3
1107
+ get: () => get_exports5,
1108
+ list: () => list_exports5,
1109
+ put: () => put_exports3,
1110
+ validate: () => validate_exports3
840
1111
  });
841
1112
 
842
1113
  // src/lexicons/com/atiproto/feed/subscription/cancel.ts
@@ -844,174 +1115,175 @@ var cancel_exports = {};
844
1115
  __export(cancel_exports, {
845
1116
  $defs: () => cancel_defs_exports,
846
1117
  $input: () => $input5,
847
- $lxm: () => $lxm9,
848
- $nsid: () => $nsid15,
849
- $output: () => $output9,
850
- $params: () => $params9,
851
- main: () => main15
1118
+ $lxm: () => $lxm15,
1119
+ $nsid: () => $nsid21,
1120
+ $output: () => $output15,
1121
+ $params: () => $params15,
1122
+ main: () => main21
852
1123
  });
853
1124
 
854
1125
  // src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
855
1126
  var cancel_defs_exports = {};
856
1127
  __export(cancel_defs_exports, {
857
1128
  $input: () => $input5,
858
- $lxm: () => $lxm9,
859
- $nsid: () => $nsid15,
860
- $output: () => $output9,
861
- $params: () => $params9,
862
- main: () => main15
1129
+ $lxm: () => $lxm15,
1130
+ $nsid: () => $nsid21,
1131
+ $output: () => $output15,
1132
+ $params: () => $params15,
1133
+ main: () => main21
863
1134
  });
864
- var import_lex15 = require("@atproto/lex");
865
- var $nsid15 = "com.atiproto.feed.subscription.cancel";
866
- var main15 = import_lex15.l.procedure(
867
- $nsid15,
868
- import_lex15.l.params(),
869
- import_lex15.l.jsonPayload({ subscriptionUri: import_lex15.l.string({ format: "at-uri" }) }),
870
- import_lex15.l.jsonPayload({
871
- subscriptionUri: import_lex15.l.string({ format: "at-uri" }),
872
- subscription: import_lex15.l.ref(
1135
+ var import_lex21 = require("@atproto/lex");
1136
+ var $nsid21 = "com.atiproto.feed.subscription.cancel";
1137
+ var main21 = import_lex21.l.procedure(
1138
+ $nsid21,
1139
+ import_lex21.l.params(),
1140
+ import_lex21.l.jsonPayload({ subscriptionUri: import_lex21.l.string({ format: "at-uri" }) }),
1141
+ import_lex21.l.jsonPayload({
1142
+ subscriptionUri: import_lex21.l.string({ format: "at-uri" }),
1143
+ subscription: import_lex21.l.ref(
873
1144
  (() => view3)
874
1145
  ),
875
- accessUntil: import_lex15.l.string({ format: "datetime" })
1146
+ accessUntil: import_lex21.l.string({ format: "datetime" })
876
1147
  })
877
1148
  );
878
- var $lxm9 = main15.nsid;
879
- var $params9 = main15.parameters;
880
- var $input5 = main15.input;
881
- var $output9 = main15.output;
1149
+ var $lxm15 = main21.nsid;
1150
+ var $params15 = main21.parameters;
1151
+ var $input5 = main21.input;
1152
+ var $output15 = main21.output;
882
1153
 
883
1154
  // src/lexicons/com/atiproto/feed/subscription/create.ts
884
1155
  var create_exports2 = {};
885
1156
  __export(create_exports2, {
886
1157
  $defs: () => create_defs_exports2,
887
1158
  $input: () => $input6,
888
- $lxm: () => $lxm10,
889
- $nsid: () => $nsid16,
890
- $output: () => $output10,
891
- $params: () => $params10,
892
- main: () => main16
1159
+ $lxm: () => $lxm16,
1160
+ $nsid: () => $nsid22,
1161
+ $output: () => $output16,
1162
+ $params: () => $params16,
1163
+ main: () => main22
893
1164
  });
894
1165
 
895
1166
  // src/lexicons/com/atiproto/feed/subscription/create.defs.ts
896
1167
  var create_defs_exports2 = {};
897
1168
  __export(create_defs_exports2, {
898
1169
  $input: () => $input6,
899
- $lxm: () => $lxm10,
900
- $nsid: () => $nsid16,
901
- $output: () => $output10,
902
- $params: () => $params10,
903
- main: () => main16
1170
+ $lxm: () => $lxm16,
1171
+ $nsid: () => $nsid22,
1172
+ $output: () => $output16,
1173
+ $params: () => $params16,
1174
+ main: () => main22
904
1175
  });
905
- var import_lex16 = require("@atproto/lex");
906
- var $nsid16 = "com.atiproto.feed.subscription.create";
907
- var main16 = import_lex16.l.procedure(
908
- $nsid16,
909
- import_lex16.l.params(),
910
- import_lex16.l.jsonPayload({
911
- subject: import_lex16.l.string({ format: "did" }),
912
- amount: import_lex16.l.optional(import_lex16.l.integer()),
913
- currency: import_lex16.l.string({ maxLength: 3 }),
914
- interval: import_lex16.l.enum(["monthly", "yearly"]),
915
- cartUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
916
- redirectUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
1176
+ var import_lex22 = require("@atproto/lex");
1177
+ var $nsid22 = "com.atiproto.feed.subscription.create";
1178
+ var main22 = import_lex22.l.procedure(
1179
+ $nsid22,
1180
+ import_lex22.l.params(),
1181
+ import_lex22.l.jsonPayload({
1182
+ subject: import_lex22.l.string({ format: "did" }),
1183
+ amount: import_lex22.l.optional(import_lex22.l.integer()),
1184
+ currency: import_lex22.l.string({ maxLength: 3 }),
1185
+ interval: import_lex22.l.enum(["monthly", "yearly"]),
1186
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1187
+ redirectUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" })),
1188
+ isPrivate: import_lex22.l.optional(import_lex22.l.boolean())
917
1189
  }),
918
- import_lex16.l.jsonPayload({
919
- subscriptionUri: import_lex16.l.string({ format: "at-uri" }),
920
- subscription: import_lex16.l.ref(
1190
+ import_lex22.l.jsonPayload({
1191
+ subscriptionUri: import_lex22.l.string({ format: "at-uri" }),
1192
+ subscription: import_lex22.l.ref(
921
1193
  (() => view3)
922
1194
  ),
923
- cartUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
924
- cart: import_lex16.l.optional(
925
- import_lex16.l.ref((() => view))
1195
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1196
+ cart: import_lex22.l.optional(
1197
+ import_lex22.l.ref((() => view))
926
1198
  ),
927
- checkoutUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
1199
+ checkoutUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" }))
928
1200
  })
929
1201
  );
930
- var $lxm10 = main16.nsid;
931
- var $params10 = main16.parameters;
932
- var $input6 = main16.input;
933
- var $output10 = main16.output;
1202
+ var $lxm16 = main22.nsid;
1203
+ var $params16 = main22.parameters;
1204
+ var $input6 = main22.input;
1205
+ var $output16 = main22.output;
934
1206
 
935
1207
  // src/lexicons/com/atiproto/feed/subscription/get.ts
936
- var get_exports3 = {};
937
- __export(get_exports3, {
938
- $defs: () => get_defs_exports3,
939
- $lxm: () => $lxm11,
940
- $nsid: () => $nsid17,
941
- $output: () => $output11,
942
- $params: () => $params11,
943
- main: () => main17
1208
+ var get_exports5 = {};
1209
+ __export(get_exports5, {
1210
+ $defs: () => get_defs_exports5,
1211
+ $lxm: () => $lxm17,
1212
+ $nsid: () => $nsid23,
1213
+ $output: () => $output17,
1214
+ $params: () => $params17,
1215
+ main: () => main23
944
1216
  });
945
1217
 
946
1218
  // src/lexicons/com/atiproto/feed/subscription/get.defs.ts
947
- var get_defs_exports3 = {};
948
- __export(get_defs_exports3, {
949
- $lxm: () => $lxm11,
950
- $nsid: () => $nsid17,
951
- $output: () => $output11,
952
- $params: () => $params11,
953
- main: () => main17
1219
+ var get_defs_exports5 = {};
1220
+ __export(get_defs_exports5, {
1221
+ $lxm: () => $lxm17,
1222
+ $nsid: () => $nsid23,
1223
+ $output: () => $output17,
1224
+ $params: () => $params17,
1225
+ main: () => main23
954
1226
  });
955
- var import_lex17 = require("@atproto/lex");
956
- var $nsid17 = "com.atiproto.feed.subscription.get";
957
- var main17 = import_lex17.l.query(
958
- $nsid17,
959
- import_lex17.l.params({ uri: import_lex17.l.string({ format: "at-uri" }) }),
960
- import_lex17.l.jsonPayload({
961
- uri: import_lex17.l.string({ format: "at-uri" }),
962
- cid: import_lex17.l.string({ format: "cid" }),
963
- record: import_lex17.l.ref(
1227
+ var import_lex23 = require("@atproto/lex");
1228
+ var $nsid23 = "com.atiproto.feed.subscription.get";
1229
+ var main23 = import_lex23.l.query(
1230
+ $nsid23,
1231
+ import_lex23.l.params({ uri: import_lex23.l.string({ format: "at-uri" }) }),
1232
+ import_lex23.l.jsonPayload({
1233
+ uri: import_lex23.l.string({ format: "at-uri" }),
1234
+ cid: import_lex23.l.string({ format: "cid" }),
1235
+ record: import_lex23.l.ref(
964
1236
  (() => view3)
965
1237
  )
966
1238
  })
967
1239
  );
968
- var $lxm11 = main17.nsid;
969
- var $params11 = main17.parameters;
970
- var $output11 = main17.output;
1240
+ var $lxm17 = main23.nsid;
1241
+ var $params17 = main23.parameters;
1242
+ var $output17 = main23.output;
971
1243
 
972
1244
  // src/lexicons/com/atiproto/feed/subscription/list.ts
973
- var list_exports3 = {};
974
- __export(list_exports3, {
975
- $defs: () => list_defs_exports3,
976
- $lxm: () => $lxm12,
977
- $nsid: () => $nsid18,
978
- $output: () => $output12,
979
- $params: () => $params12,
980
- main: () => main18,
1245
+ var list_exports5 = {};
1246
+ __export(list_exports5, {
1247
+ $defs: () => list_defs_exports5,
1248
+ $lxm: () => $lxm18,
1249
+ $nsid: () => $nsid24,
1250
+ $output: () => $output18,
1251
+ $params: () => $params18,
1252
+ main: () => main24,
981
1253
  subscriptionResponse: () => subscriptionResponse
982
1254
  });
983
1255
 
984
1256
  // src/lexicons/com/atiproto/feed/subscription/list.defs.ts
985
- var list_defs_exports3 = {};
986
- __export(list_defs_exports3, {
987
- $lxm: () => $lxm12,
988
- $nsid: () => $nsid18,
989
- $output: () => $output12,
990
- $params: () => $params12,
991
- main: () => main18,
1257
+ var list_defs_exports5 = {};
1258
+ __export(list_defs_exports5, {
1259
+ $lxm: () => $lxm18,
1260
+ $nsid: () => $nsid24,
1261
+ $output: () => $output18,
1262
+ $params: () => $params18,
1263
+ main: () => main24,
992
1264
  subscriptionResponse: () => subscriptionResponse
993
1265
  });
994
- var import_lex18 = require("@atproto/lex");
995
- var $nsid18 = "com.atiproto.feed.subscription.list";
996
- var main18 = import_lex18.l.query(
997
- $nsid18,
998
- import_lex18.l.params(),
999
- import_lex18.l.jsonPayload({
1000
- subscriptions: import_lex18.l.array(
1001
- import_lex18.l.ref((() => subscriptionResponse))
1266
+ var import_lex24 = require("@atproto/lex");
1267
+ var $nsid24 = "com.atiproto.feed.subscription.list";
1268
+ var main24 = import_lex24.l.query(
1269
+ $nsid24,
1270
+ import_lex24.l.params(),
1271
+ import_lex24.l.jsonPayload({
1272
+ subscriptions: import_lex24.l.array(
1273
+ import_lex24.l.ref((() => subscriptionResponse))
1002
1274
  ),
1003
- cursor: import_lex18.l.optional(import_lex18.l.string({ maxLength: 512 }))
1275
+ cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 }))
1004
1276
  })
1005
1277
  );
1006
- var $lxm12 = main18.nsid;
1007
- var $params12 = main18.parameters;
1008
- var $output12 = main18.output;
1009
- var subscriptionResponse = import_lex18.l.typedObject(
1010
- $nsid18,
1278
+ var $lxm18 = main24.nsid;
1279
+ var $params18 = main24.parameters;
1280
+ var $output18 = main24.output;
1281
+ var subscriptionResponse = import_lex24.l.typedObject(
1282
+ $nsid24,
1011
1283
  "subscriptionResponse",
1012
- import_lex18.l.object({
1013
- uri: import_lex18.l.string({ format: "at-uri" }),
1014
- record: import_lex18.l.ref(
1284
+ import_lex24.l.object({
1285
+ uri: import_lex24.l.string({ format: "at-uri" }),
1286
+ record: import_lex24.l.ref(
1015
1287
  (() => view3)
1016
1288
  )
1017
1289
  })
@@ -1022,51 +1294,92 @@ var put_exports3 = {};
1022
1294
  __export(put_exports3, {
1023
1295
  $defs: () => put_defs_exports3,
1024
1296
  $input: () => $input7,
1025
- $lxm: () => $lxm13,
1026
- $nsid: () => $nsid19,
1027
- $output: () => $output13,
1028
- $params: () => $params13,
1029
- main: () => main19
1297
+ $lxm: () => $lxm19,
1298
+ $nsid: () => $nsid25,
1299
+ $output: () => $output19,
1300
+ $params: () => $params19,
1301
+ main: () => main25
1030
1302
  });
1031
1303
 
1032
1304
  // src/lexicons/com/atiproto/feed/subscription/put.defs.ts
1033
1305
  var put_defs_exports3 = {};
1034
1306
  __export(put_defs_exports3, {
1035
1307
  $input: () => $input7,
1036
- $lxm: () => $lxm13,
1037
- $nsid: () => $nsid19,
1038
- $output: () => $output13,
1039
- $params: () => $params13,
1040
- main: () => main19
1308
+ $lxm: () => $lxm19,
1309
+ $nsid: () => $nsid25,
1310
+ $output: () => $output19,
1311
+ $params: () => $params19,
1312
+ main: () => main25
1041
1313
  });
1042
- var import_lex19 = require("@atproto/lex");
1043
- var $nsid19 = "com.atiproto.feed.subscription.put";
1044
- var main19 = import_lex19.l.procedure(
1045
- $nsid19,
1046
- import_lex19.l.params(),
1047
- import_lex19.l.jsonPayload({
1048
- uri: import_lex19.l.string({ format: "at-uri" }),
1049
- record: import_lex19.l.ref(
1314
+ var import_lex25 = require("@atproto/lex");
1315
+ var $nsid25 = "com.atiproto.feed.subscription.put";
1316
+ var main25 = import_lex25.l.procedure(
1317
+ $nsid25,
1318
+ import_lex25.l.params(),
1319
+ import_lex25.l.jsonPayload({
1320
+ uri: import_lex25.l.string({ format: "at-uri" }),
1321
+ record: import_lex25.l.ref(
1050
1322
  (() => main3)
1051
1323
  )
1052
1324
  }),
1053
- import_lex19.l.jsonPayload({
1054
- uri: import_lex19.l.string({ format: "at-uri" }),
1055
- cid: import_lex19.l.string({ format: "cid" })
1325
+ import_lex25.l.jsonPayload({
1326
+ uri: import_lex25.l.string({ format: "at-uri" }),
1327
+ cid: import_lex25.l.string({ format: "cid" })
1328
+ })
1329
+ );
1330
+ var $lxm19 = main25.nsid;
1331
+ var $params19 = main25.parameters;
1332
+ var $input7 = main25.input;
1333
+ var $output19 = main25.output;
1334
+
1335
+ // src/lexicons/com/atiproto/feed/subscription/validate.ts
1336
+ var validate_exports3 = {};
1337
+ __export(validate_exports3, {
1338
+ $defs: () => validate_defs_exports3,
1339
+ $lxm: () => $lxm20,
1340
+ $nsid: () => $nsid26,
1341
+ $output: () => $output20,
1342
+ $params: () => $params20,
1343
+ main: () => main26
1344
+ });
1345
+
1346
+ // src/lexicons/com/atiproto/feed/subscription/validate.defs.ts
1347
+ var validate_defs_exports3 = {};
1348
+ __export(validate_defs_exports3, {
1349
+ $lxm: () => $lxm20,
1350
+ $nsid: () => $nsid26,
1351
+ $output: () => $output20,
1352
+ $params: () => $params20,
1353
+ main: () => main26
1354
+ });
1355
+ var import_lex26 = require("@atproto/lex");
1356
+ var $nsid26 = "com.atiproto.feed.subscription.validate";
1357
+ var main26 = import_lex26.l.query(
1358
+ $nsid26,
1359
+ import_lex26.l.params({
1360
+ subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1361
+ subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1362
+ amount: import_lex26.l.optional(import_lex26.l.integer())
1363
+ }),
1364
+ import_lex26.l.jsonPayload({
1365
+ valid: import_lex26.l.boolean(),
1366
+ amount: import_lex26.l.optional(import_lex26.l.integer()),
1367
+ currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
1368
+ reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
1056
1369
  })
1057
1370
  );
1058
- var $lxm13 = main19.nsid;
1059
- var $params13 = main19.parameters;
1060
- var $input7 = main19.input;
1061
- var $output13 = main19.output;
1371
+ var $lxm20 = main26.nsid;
1372
+ var $params20 = main26.parameters;
1373
+ var $output20 = main26.output;
1062
1374
 
1063
1375
  // src/lexicons/com/atiproto/feed/tip.ts
1064
- var tip_exports = {};
1065
- __export(tip_exports, {
1376
+ var tip_exports2 = {};
1377
+ __export(tip_exports2, {
1066
1378
  create: () => create_exports3,
1067
- get: () => get_exports4,
1068
- list: () => list_exports4,
1069
- put: () => put_exports4
1379
+ get: () => get_exports6,
1380
+ list: () => list_exports6,
1381
+ put: () => put_exports4,
1382
+ validate: () => validate_exports4
1070
1383
  });
1071
1384
 
1072
1385
  // src/lexicons/com/atiproto/feed/tip/create.ts
@@ -1074,161 +1387,203 @@ var create_exports3 = {};
1074
1387
  __export(create_exports3, {
1075
1388
  $defs: () => create_defs_exports3,
1076
1389
  $input: () => $input8,
1077
- $lxm: () => $lxm14,
1078
- $nsid: () => $nsid20,
1079
- $output: () => $output14,
1080
- $params: () => $params14,
1081
- main: () => main20
1390
+ $lxm: () => $lxm21,
1391
+ $nsid: () => $nsid27,
1392
+ $output: () => $output21,
1393
+ $params: () => $params21,
1394
+ main: () => main27
1082
1395
  });
1083
1396
 
1084
1397
  // src/lexicons/com/atiproto/feed/tip/create.defs.ts
1085
1398
  var create_defs_exports3 = {};
1086
1399
  __export(create_defs_exports3, {
1087
1400
  $input: () => $input8,
1088
- $lxm: () => $lxm14,
1089
- $nsid: () => $nsid20,
1090
- $output: () => $output14,
1091
- $params: () => $params14,
1092
- main: () => main20
1401
+ $lxm: () => $lxm21,
1402
+ $nsid: () => $nsid27,
1403
+ $output: () => $output21,
1404
+ $params: () => $params21,
1405
+ main: () => main27
1093
1406
  });
1094
- var import_lex20 = require("@atproto/lex");
1095
- var $nsid20 = "com.atiproto.feed.tip.create";
1096
- var main20 = import_lex20.l.procedure(
1097
- $nsid20,
1098
- import_lex20.l.params(),
1099
- import_lex20.l.jsonPayload({
1100
- subject: import_lex20.l.string({ format: "did" }),
1101
- recordUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
1102
- amount: import_lex20.l.integer(),
1103
- currency: import_lex20.l.string({ maxLength: 3 }),
1104
- cartUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
1105
- redirectUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" })),
1106
- message: import_lex20.l.optional(import_lex20.l.string({ maxGraphemes: 500, maxLength: 5e3 }))
1407
+ var import_lex27 = require("@atproto/lex");
1408
+ var $nsid27 = "com.atiproto.feed.tip.create";
1409
+ var main27 = import_lex27.l.procedure(
1410
+ $nsid27,
1411
+ import_lex27.l.params(),
1412
+ import_lex27.l.jsonPayload({
1413
+ subject: import_lex27.l.string({ format: "did" }),
1414
+ recordUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1415
+ amount: import_lex27.l.integer(),
1416
+ currency: import_lex27.l.string({ maxLength: 3 }),
1417
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1418
+ redirectUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" })),
1419
+ message: import_lex27.l.optional(import_lex27.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
1420
+ isPrivate: import_lex27.l.optional(import_lex27.l.boolean())
1107
1421
  }),
1108
- import_lex20.l.jsonPayload({
1109
- tipUri: import_lex20.l.string({ format: "at-uri" }),
1110
- tip: import_lex20.l.ref((() => view2)),
1111
- cartUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
1112
- cart: import_lex20.l.optional(
1113
- import_lex20.l.ref((() => view))
1422
+ import_lex27.l.jsonPayload({
1423
+ tipUri: import_lex27.l.string({ format: "at-uri" }),
1424
+ tip: import_lex27.l.ref((() => view2)),
1425
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1426
+ cart: import_lex27.l.optional(
1427
+ import_lex27.l.ref((() => view))
1114
1428
  ),
1115
- checkoutUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" }))
1429
+ checkoutUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" }))
1116
1430
  })
1117
1431
  );
1118
- var $lxm14 = main20.nsid;
1119
- var $params14 = main20.parameters;
1120
- var $input8 = main20.input;
1121
- var $output14 = main20.output;
1432
+ var $lxm21 = main27.nsid;
1433
+ var $params21 = main27.parameters;
1434
+ var $input8 = main27.input;
1435
+ var $output21 = main27.output;
1122
1436
 
1123
1437
  // src/lexicons/com/atiproto/feed/tip/get.ts
1124
- var get_exports4 = {};
1125
- __export(get_exports4, {
1126
- $defs: () => get_defs_exports4,
1127
- $lxm: () => $lxm15,
1128
- $nsid: () => $nsid21,
1129
- $output: () => $output15,
1130
- $params: () => $params15,
1131
- main: () => main21
1438
+ var get_exports6 = {};
1439
+ __export(get_exports6, {
1440
+ $defs: () => get_defs_exports6,
1441
+ $lxm: () => $lxm22,
1442
+ $nsid: () => $nsid28,
1443
+ $output: () => $output22,
1444
+ $params: () => $params22,
1445
+ main: () => main28
1132
1446
  });
1133
1447
 
1134
1448
  // src/lexicons/com/atiproto/feed/tip/get.defs.ts
1135
- var get_defs_exports4 = {};
1136
- __export(get_defs_exports4, {
1137
- $lxm: () => $lxm15,
1138
- $nsid: () => $nsid21,
1139
- $output: () => $output15,
1140
- $params: () => $params15,
1141
- main: () => main21
1449
+ var get_defs_exports6 = {};
1450
+ __export(get_defs_exports6, {
1451
+ $lxm: () => $lxm22,
1452
+ $nsid: () => $nsid28,
1453
+ $output: () => $output22,
1454
+ $params: () => $params22,
1455
+ main: () => main28
1142
1456
  });
1143
- var import_lex21 = require("@atproto/lex");
1144
- var $nsid21 = "com.atiproto.feed.tip.get";
1145
- var main21 = import_lex21.l.query(
1146
- $nsid21,
1147
- import_lex21.l.params({ uri: import_lex21.l.string({ format: "at-uri" }) }),
1148
- import_lex21.l.jsonPayload({
1149
- uri: import_lex21.l.string({ format: "at-uri" }),
1150
- cid: import_lex21.l.string({ format: "cid" }),
1151
- value: import_lex21.l.ref((() => view2))
1457
+ var import_lex28 = require("@atproto/lex");
1458
+ var $nsid28 = "com.atiproto.feed.tip.get";
1459
+ var main28 = import_lex28.l.query(
1460
+ $nsid28,
1461
+ import_lex28.l.params({ uri: import_lex28.l.string({ format: "at-uri" }) }),
1462
+ import_lex28.l.jsonPayload({
1463
+ uri: import_lex28.l.string({ format: "at-uri" }),
1464
+ cid: import_lex28.l.string({ format: "cid" }),
1465
+ value: import_lex28.l.ref((() => view2))
1152
1466
  })
1153
1467
  );
1154
- var $lxm15 = main21.nsid;
1155
- var $params15 = main21.parameters;
1156
- var $output15 = main21.output;
1468
+ var $lxm22 = main28.nsid;
1469
+ var $params22 = main28.parameters;
1470
+ var $output22 = main28.output;
1157
1471
 
1158
1472
  // src/lexicons/com/atiproto/feed/tip/list.ts
1159
- var list_exports4 = {};
1160
- __export(list_exports4, {
1161
- $defs: () => list_defs_exports4,
1162
- $lxm: () => $lxm16,
1163
- $nsid: () => $nsid22,
1164
- $output: () => $output16,
1165
- $params: () => $params16,
1166
- main: () => main22
1473
+ var list_exports6 = {};
1474
+ __export(list_exports6, {
1475
+ $defs: () => list_defs_exports6,
1476
+ $lxm: () => $lxm23,
1477
+ $nsid: () => $nsid29,
1478
+ $output: () => $output23,
1479
+ $params: () => $params23,
1480
+ main: () => main29
1167
1481
  });
1168
1482
 
1169
1483
  // src/lexicons/com/atiproto/feed/tip/list.defs.ts
1170
- var list_defs_exports4 = {};
1171
- __export(list_defs_exports4, {
1172
- $lxm: () => $lxm16,
1173
- $nsid: () => $nsid22,
1174
- $output: () => $output16,
1175
- $params: () => $params16,
1176
- main: () => main22
1177
- });
1178
- var import_lex22 = require("@atproto/lex");
1179
- var $nsid22 = "com.atiproto.feed.tip.list";
1180
- var main22 = import_lex22.l.query(
1181
- $nsid22,
1182
- import_lex22.l.params(),
1183
- import_lex22.l.jsonPayload({
1184
- records: import_lex22.l.array(import_lex22.l.ref((() => view2))),
1185
- cursor: import_lex22.l.optional(import_lex22.l.string({ maxLength: 512 }))
1484
+ var list_defs_exports6 = {};
1485
+ __export(list_defs_exports6, {
1486
+ $lxm: () => $lxm23,
1487
+ $nsid: () => $nsid29,
1488
+ $output: () => $output23,
1489
+ $params: () => $params23,
1490
+ main: () => main29
1491
+ });
1492
+ var import_lex29 = require("@atproto/lex");
1493
+ var $nsid29 = "com.atiproto.feed.tip.list";
1494
+ var main29 = import_lex29.l.query(
1495
+ $nsid29,
1496
+ import_lex29.l.params(),
1497
+ import_lex29.l.jsonPayload({
1498
+ records: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1499
+ cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
1186
1500
  })
1187
1501
  );
1188
- var $lxm16 = main22.nsid;
1189
- var $params16 = main22.parameters;
1190
- var $output16 = main22.output;
1502
+ var $lxm23 = main29.nsid;
1503
+ var $params23 = main29.parameters;
1504
+ var $output23 = main29.output;
1191
1505
 
1192
1506
  // src/lexicons/com/atiproto/feed/tip/put.ts
1193
1507
  var put_exports4 = {};
1194
1508
  __export(put_exports4, {
1195
1509
  $defs: () => put_defs_exports4,
1196
1510
  $input: () => $input9,
1197
- $lxm: () => $lxm17,
1198
- $nsid: () => $nsid23,
1199
- $output: () => $output17,
1200
- $params: () => $params17,
1201
- main: () => main23
1511
+ $lxm: () => $lxm24,
1512
+ $nsid: () => $nsid30,
1513
+ $output: () => $output24,
1514
+ $params: () => $params24,
1515
+ main: () => main30
1202
1516
  });
1203
1517
 
1204
1518
  // src/lexicons/com/atiproto/feed/tip/put.defs.ts
1205
1519
  var put_defs_exports4 = {};
1206
1520
  __export(put_defs_exports4, {
1207
1521
  $input: () => $input9,
1208
- $lxm: () => $lxm17,
1209
- $nsid: () => $nsid23,
1210
- $output: () => $output17,
1211
- $params: () => $params17,
1212
- main: () => main23
1213
- });
1214
- var import_lex23 = require("@atproto/lex");
1215
- var $nsid23 = "com.atiproto.feed.tip.put";
1216
- var main23 = import_lex23.l.procedure(
1217
- $nsid23,
1218
- import_lex23.l.params(),
1219
- import_lex23.l.jsonPayload({
1220
- uri: import_lex23.l.string({ format: "at-uri" }),
1221
- record: import_lex23.l.ref((() => main2))
1522
+ $lxm: () => $lxm24,
1523
+ $nsid: () => $nsid30,
1524
+ $output: () => $output24,
1525
+ $params: () => $params24,
1526
+ main: () => main30
1527
+ });
1528
+ var import_lex30 = require("@atproto/lex");
1529
+ var $nsid30 = "com.atiproto.feed.tip.put";
1530
+ var main30 = import_lex30.l.procedure(
1531
+ $nsid30,
1532
+ import_lex30.l.params(),
1533
+ import_lex30.l.jsonPayload({
1534
+ uri: import_lex30.l.string({ format: "at-uri" }),
1535
+ record: import_lex30.l.ref((() => main2))
1222
1536
  }),
1223
- import_lex23.l.jsonPayload({
1224
- uri: import_lex23.l.string({ format: "at-uri" }),
1225
- cid: import_lex23.l.string({ format: "cid" })
1537
+ import_lex30.l.jsonPayload({
1538
+ uri: import_lex30.l.string({ format: "at-uri" }),
1539
+ cid: import_lex30.l.string({ format: "cid" })
1226
1540
  })
1227
1541
  );
1228
- var $lxm17 = main23.nsid;
1229
- var $params17 = main23.parameters;
1230
- var $input9 = main23.input;
1231
- var $output17 = main23.output;
1542
+ var $lxm24 = main30.nsid;
1543
+ var $params24 = main30.parameters;
1544
+ var $input9 = main30.input;
1545
+ var $output24 = main30.output;
1546
+
1547
+ // src/lexicons/com/atiproto/feed/tip/validate.ts
1548
+ var validate_exports4 = {};
1549
+ __export(validate_exports4, {
1550
+ $defs: () => validate_defs_exports4,
1551
+ $lxm: () => $lxm25,
1552
+ $nsid: () => $nsid31,
1553
+ $output: () => $output25,
1554
+ $params: () => $params25,
1555
+ main: () => main31
1556
+ });
1557
+
1558
+ // src/lexicons/com/atiproto/feed/tip/validate.defs.ts
1559
+ var validate_defs_exports4 = {};
1560
+ __export(validate_defs_exports4, {
1561
+ $lxm: () => $lxm25,
1562
+ $nsid: () => $nsid31,
1563
+ $output: () => $output25,
1564
+ $params: () => $params25,
1565
+ main: () => main31
1566
+ });
1567
+ var import_lex31 = require("@atproto/lex");
1568
+ var $nsid31 = "com.atiproto.feed.tip.validate";
1569
+ var main31 = import_lex31.l.query(
1570
+ $nsid31,
1571
+ import_lex31.l.params({
1572
+ tipUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1573
+ recordUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1574
+ subject: import_lex31.l.optional(import_lex31.l.string({ format: "did" })),
1575
+ amount: import_lex31.l.optional(import_lex31.l.integer())
1576
+ }),
1577
+ import_lex31.l.jsonPayload({
1578
+ valid: import_lex31.l.boolean(),
1579
+ amount: import_lex31.l.optional(import_lex31.l.integer()),
1580
+ currency: import_lex31.l.optional(import_lex31.l.string({ maxLength: 3 })),
1581
+ reason: import_lex31.l.optional(import_lex31.l.string({ maxLength: 1024 }))
1582
+ })
1583
+ );
1584
+ var $lxm25 = main31.nsid;
1585
+ var $params25 = main31.parameters;
1586
+ var $output25 = main31.output;
1232
1587
 
1233
1588
  // src/lexicons/com/atiproto/profile.ts
1234
1589
  var profile_exports2 = {};
@@ -1255,254 +1610,144 @@ __export(profile_exports2, {
1255
1610
  var repo_exports = {};
1256
1611
  __export(repo_exports, {
1257
1612
  profile: () => profile_exports3,
1258
- subscription: () => subscription_exports2,
1259
- tip: () => tip_exports2
1613
+ subscription: () => subscription_exports3,
1614
+ tip: () => tip_exports3
1260
1615
  });
1261
1616
 
1262
1617
  // src/lexicons/com/atiproto/repo/profile.ts
1263
1618
  var profile_exports3 = {};
1264
1619
  __export(profile_exports3, {
1265
- get: () => get_exports5
1620
+ get: () => get_exports7
1266
1621
  });
1267
1622
 
1268
1623
  // src/lexicons/com/atiproto/repo/profile/get.ts
1269
- var get_exports5 = {};
1270
- __export(get_exports5, {
1271
- $defs: () => get_defs_exports5,
1272
- $lxm: () => $lxm18,
1273
- $nsid: () => $nsid24,
1274
- $output: () => $output18,
1275
- $params: () => $params18,
1276
- main: () => main24
1624
+ var get_exports7 = {};
1625
+ __export(get_exports7, {
1626
+ $defs: () => get_defs_exports7,
1627
+ $lxm: () => $lxm26,
1628
+ $nsid: () => $nsid32,
1629
+ $output: () => $output26,
1630
+ $params: () => $params26,
1631
+ main: () => main32
1277
1632
  });
1278
1633
 
1279
1634
  // src/lexicons/com/atiproto/repo/profile/get.defs.ts
1280
- var get_defs_exports5 = {};
1281
- __export(get_defs_exports5, {
1282
- $lxm: () => $lxm18,
1283
- $nsid: () => $nsid24,
1284
- $output: () => $output18,
1285
- $params: () => $params18,
1286
- main: () => main24
1287
- });
1288
- var import_lex24 = require("@atproto/lex");
1289
- var $nsid24 = "com.atiproto.repo.profile.get";
1290
- var main24 = import_lex24.l.query(
1291
- $nsid24,
1292
- import_lex24.l.params({ did: import_lex24.l.string({ format: "did" }) }),
1293
- import_lex24.l.jsonPayload({
1294
- did: import_lex24.l.string({ format: "did" }),
1295
- profile: import_lex24.l.ref((() => view4))
1635
+ var get_defs_exports7 = {};
1636
+ __export(get_defs_exports7, {
1637
+ $lxm: () => $lxm26,
1638
+ $nsid: () => $nsid32,
1639
+ $output: () => $output26,
1640
+ $params: () => $params26,
1641
+ main: () => main32
1642
+ });
1643
+ var import_lex32 = require("@atproto/lex");
1644
+ var $nsid32 = "com.atiproto.repo.profile.get";
1645
+ var main32 = import_lex32.l.query(
1646
+ $nsid32,
1647
+ import_lex32.l.params({ did: import_lex32.l.string({ format: "did" }) }),
1648
+ import_lex32.l.jsonPayload({
1649
+ did: import_lex32.l.string({ format: "did" }),
1650
+ profile: import_lex32.l.ref((() => view4))
1296
1651
  })
1297
1652
  );
1298
- var $lxm18 = main24.nsid;
1299
- var $params18 = main24.parameters;
1300
- var $output18 = main24.output;
1653
+ var $lxm26 = main32.nsid;
1654
+ var $params26 = main32.parameters;
1655
+ var $output26 = main32.output;
1301
1656
 
1302
1657
  // src/lexicons/com/atiproto/repo/subscription.ts
1303
- var subscription_exports2 = {};
1304
- __export(subscription_exports2, {
1305
- search: () => search_exports,
1306
- validate: () => validate_exports
1307
- });
1308
-
1309
- // src/lexicons/com/atiproto/repo/subscription/search.ts
1310
- var search_exports = {};
1311
- __export(search_exports, {
1312
- $defs: () => search_defs_exports,
1313
- $lxm: () => $lxm19,
1314
- $nsid: () => $nsid25,
1315
- $output: () => $output19,
1316
- $params: () => $params19,
1317
- main: () => main25,
1318
- subscriptionResponse: () => subscriptionResponse2
1319
- });
1320
-
1321
- // src/lexicons/com/atiproto/repo/subscription/search.defs.ts
1322
- var search_defs_exports = {};
1323
- __export(search_defs_exports, {
1324
- $lxm: () => $lxm19,
1325
- $nsid: () => $nsid25,
1326
- $output: () => $output19,
1327
- $params: () => $params19,
1328
- main: () => main25,
1329
- subscriptionResponse: () => subscriptionResponse2
1330
- });
1331
- var import_lex25 = require("@atproto/lex");
1332
- var $nsid25 = "com.atiproto.repo.subscription.search";
1333
- var main25 = import_lex25.l.query(
1334
- $nsid25,
1335
- import_lex25.l.params({
1336
- subject: import_lex25.l.string({ format: "did" }),
1337
- cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 })),
1338
- limit: import_lex25.l.optional(
1339
- import_lex25.l.withDefault(import_lex25.l.integer({ minimum: 1, maximum: 100 }), 50)
1340
- )
1341
- }),
1342
- import_lex25.l.jsonPayload({
1343
- subscriptions: import_lex25.l.array(
1344
- import_lex25.l.ref((() => subscriptionResponse2))
1345
- ),
1346
- cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 }))
1347
- })
1348
- );
1349
- var $lxm19 = main25.nsid;
1350
- var $params19 = main25.parameters;
1351
- var $output19 = main25.output;
1352
- var subscriptionResponse2 = import_lex25.l.typedObject(
1353
- $nsid25,
1354
- "subscriptionResponse",
1355
- import_lex25.l.object({
1356
- uri: import_lex25.l.string({ format: "at-uri" }),
1357
- record: import_lex25.l.ref(
1358
- (() => view3)
1359
- )
1360
- })
1361
- );
1362
-
1363
- // src/lexicons/com/atiproto/repo/subscription/validate.ts
1364
- var validate_exports = {};
1365
- __export(validate_exports, {
1366
- $defs: () => validate_defs_exports,
1367
- $lxm: () => $lxm20,
1368
- $nsid: () => $nsid26,
1369
- $output: () => $output20,
1370
- $params: () => $params20,
1371
- main: () => main26
1372
- });
1373
-
1374
- // src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
1375
- var validate_defs_exports = {};
1376
- __export(validate_defs_exports, {
1377
- $lxm: () => $lxm20,
1378
- $nsid: () => $nsid26,
1379
- $output: () => $output20,
1380
- $params: () => $params20,
1381
- main: () => main26
1382
- });
1383
- var import_lex26 = require("@atproto/lex");
1384
- var $nsid26 = "com.atiproto.repo.subscription.validate";
1385
- var main26 = import_lex26.l.query(
1386
- $nsid26,
1387
- import_lex26.l.params({
1388
- sender: import_lex26.l.string({ format: "did" }),
1389
- subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1390
- subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1391
- amount: import_lex26.l.optional(import_lex26.l.integer())
1658
+ var subscription_exports3 = {};
1659
+ __export(subscription_exports3, {
1660
+ count: () => count_exports
1661
+ });
1662
+
1663
+ // src/lexicons/com/atiproto/repo/subscription/count.ts
1664
+ var count_exports = {};
1665
+ __export(count_exports, {
1666
+ $defs: () => count_defs_exports,
1667
+ $lxm: () => $lxm27,
1668
+ $nsid: () => $nsid33,
1669
+ $output: () => $output27,
1670
+ $params: () => $params27,
1671
+ main: () => main33
1672
+ });
1673
+
1674
+ // src/lexicons/com/atiproto/repo/subscription/count.defs.ts
1675
+ var count_defs_exports = {};
1676
+ __export(count_defs_exports, {
1677
+ $lxm: () => $lxm27,
1678
+ $nsid: () => $nsid33,
1679
+ $output: () => $output27,
1680
+ $params: () => $params27,
1681
+ main: () => main33
1682
+ });
1683
+ var import_lex33 = require("@atproto/lex");
1684
+ var $nsid33 = "com.atiproto.repo.subscription.count";
1685
+ var main33 = import_lex33.l.query(
1686
+ $nsid33,
1687
+ import_lex33.l.params({
1688
+ subject: import_lex33.l.optional(import_lex33.l.string({ format: "did" })),
1689
+ startDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" })),
1690
+ endDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" }))
1392
1691
  }),
1393
- import_lex26.l.jsonPayload({
1394
- valid: import_lex26.l.boolean(),
1395
- amount: import_lex26.l.optional(import_lex26.l.integer()),
1396
- currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
1397
- reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
1692
+ import_lex33.l.jsonPayload({
1693
+ count: import_lex33.l.integer(),
1694
+ amount: import_lex33.l.optional(import_lex33.l.integer()),
1695
+ currency: import_lex33.l.optional(import_lex33.l.string({ maxLength: 3 }))
1398
1696
  })
1399
1697
  );
1400
- var $lxm20 = main26.nsid;
1401
- var $params20 = main26.parameters;
1402
- var $output20 = main26.output;
1698
+ var $lxm27 = main33.nsid;
1699
+ var $params27 = main33.parameters;
1700
+ var $output27 = main33.output;
1403
1701
 
1404
1702
  // src/lexicons/com/atiproto/repo/tip.ts
1405
- var tip_exports2 = {};
1406
- __export(tip_exports2, {
1407
- search: () => search_exports2,
1408
- validate: () => validate_exports2
1409
- });
1410
-
1411
- // src/lexicons/com/atiproto/repo/tip/search.ts
1412
- var search_exports2 = {};
1413
- __export(search_exports2, {
1414
- $defs: () => search_defs_exports2,
1415
- $lxm: () => $lxm21,
1416
- $nsid: () => $nsid27,
1417
- $output: () => $output21,
1418
- $params: () => $params21,
1419
- main: () => main27,
1420
- tipResponse: () => tipResponse
1421
- });
1422
-
1423
- // src/lexicons/com/atiproto/repo/tip/search.defs.ts
1424
- var search_defs_exports2 = {};
1425
- __export(search_defs_exports2, {
1426
- $lxm: () => $lxm21,
1427
- $nsid: () => $nsid27,
1428
- $output: () => $output21,
1429
- $params: () => $params21,
1430
- main: () => main27,
1431
- tipResponse: () => tipResponse
1432
- });
1433
- var import_lex27 = require("@atproto/lex");
1434
- var $nsid27 = "com.atiproto.repo.tip.search";
1435
- var main27 = import_lex27.l.query(
1436
- $nsid27,
1437
- import_lex27.l.params({
1438
- subject: import_lex27.l.string({ format: "did" }),
1439
- cursor: import_lex27.l.optional(import_lex27.l.string({ maxLength: 512 })),
1440
- limit: import_lex27.l.optional(
1441
- import_lex27.l.withDefault(import_lex27.l.integer({ minimum: 1, maximum: 100 }), 50)
1442
- )
1443
- }),
1444
- import_lex27.l.jsonPayload({
1445
- tips: import_lex27.l.array(import_lex27.l.ref((() => tipResponse))),
1446
- cursor: import_lex27.l.optional(import_lex27.l.string({ maxLength: 512 }))
1447
- })
1448
- );
1449
- var $lxm21 = main27.nsid;
1450
- var $params21 = main27.parameters;
1451
- var $output21 = main27.output;
1452
- var tipResponse = import_lex27.l.typedObject(
1453
- $nsid27,
1454
- "tipResponse",
1455
- import_lex27.l.object({
1456
- uri: import_lex27.l.string({ format: "at-uri" }),
1457
- record: import_lex27.l.ref((() => view2))
1458
- })
1459
- );
1460
-
1461
- // src/lexicons/com/atiproto/repo/tip/validate.ts
1462
- var validate_exports2 = {};
1463
- __export(validate_exports2, {
1464
- $defs: () => validate_defs_exports2,
1465
- $lxm: () => $lxm22,
1466
- $nsid: () => $nsid28,
1467
- $output: () => $output22,
1468
- $params: () => $params22,
1469
- main: () => main28
1470
- });
1471
-
1472
- // src/lexicons/com/atiproto/repo/tip/validate.defs.ts
1473
- var validate_defs_exports2 = {};
1474
- __export(validate_defs_exports2, {
1475
- $lxm: () => $lxm22,
1476
- $nsid: () => $nsid28,
1477
- $output: () => $output22,
1478
- $params: () => $params22,
1479
- main: () => main28
1480
- });
1481
- var import_lex28 = require("@atproto/lex");
1482
- var $nsid28 = "com.atiproto.repo.tip.validate";
1483
- var main28 = import_lex28.l.query(
1484
- $nsid28,
1485
- import_lex28.l.params({
1486
- sender: import_lex28.l.string({ format: "did" }),
1487
- tipUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1488
- recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1489
- subject: import_lex28.l.optional(import_lex28.l.string({ format: "did" })),
1490
- amount: import_lex28.l.optional(import_lex28.l.integer())
1703
+ var tip_exports3 = {};
1704
+ __export(tip_exports3, {
1705
+ count: () => count_exports2
1706
+ });
1707
+
1708
+ // src/lexicons/com/atiproto/repo/tip/count.ts
1709
+ var count_exports2 = {};
1710
+ __export(count_exports2, {
1711
+ $defs: () => count_defs_exports2,
1712
+ $lxm: () => $lxm28,
1713
+ $nsid: () => $nsid34,
1714
+ $output: () => $output28,
1715
+ $params: () => $params28,
1716
+ main: () => main34
1717
+ });
1718
+
1719
+ // src/lexicons/com/atiproto/repo/tip/count.defs.ts
1720
+ var count_defs_exports2 = {};
1721
+ __export(count_defs_exports2, {
1722
+ $lxm: () => $lxm28,
1723
+ $nsid: () => $nsid34,
1724
+ $output: () => $output28,
1725
+ $params: () => $params28,
1726
+ main: () => main34
1727
+ });
1728
+ var import_lex34 = require("@atproto/lex");
1729
+ var $nsid34 = "com.atiproto.repo.tip.count";
1730
+ var main34 = import_lex34.l.query(
1731
+ $nsid34,
1732
+ import_lex34.l.params({
1733
+ recordUri: import_lex34.l.optional(import_lex34.l.string({ format: "at-uri" })),
1734
+ subject: import_lex34.l.optional(import_lex34.l.string({ format: "did" })),
1735
+ startDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" })),
1736
+ endDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" }))
1491
1737
  }),
1492
- import_lex28.l.jsonPayload({
1493
- valid: import_lex28.l.boolean(),
1494
- amount: import_lex28.l.optional(import_lex28.l.integer()),
1495
- currency: import_lex28.l.optional(import_lex28.l.string({ maxLength: 3 })),
1496
- reason: import_lex28.l.optional(import_lex28.l.string({ maxLength: 1024 }))
1738
+ import_lex34.l.jsonPayload({
1739
+ count: import_lex34.l.integer(),
1740
+ amount: import_lex34.l.optional(import_lex34.l.integer()),
1741
+ currency: import_lex34.l.optional(import_lex34.l.string({ maxLength: 3 }))
1497
1742
  })
1498
1743
  );
1499
- var $lxm22 = main28.nsid;
1500
- var $params22 = main28.parameters;
1501
- var $output22 = main28.output;
1744
+ var $lxm28 = main34.nsid;
1745
+ var $params28 = main34.parameters;
1746
+ var $output28 = main34.output;
1502
1747
 
1503
1748
  // src/lexicons/com/atiproto/subscription.ts
1504
- var subscription_exports3 = {};
1505
- __export(subscription_exports3, {
1749
+ var subscription_exports4 = {};
1750
+ __export(subscription_exports4, {
1506
1751
  $assert: () => $assert3,
1507
1752
  $build: () => $build3,
1508
1753
  $cast: () => $cast3,
@@ -1522,8 +1767,8 @@ __export(subscription_exports3, {
1522
1767
  });
1523
1768
 
1524
1769
  // src/lexicons/com/atiproto/tip.ts
1525
- var tip_exports3 = {};
1526
- __export(tip_exports3, {
1770
+ var tip_exports4 = {};
1771
+ __export(tip_exports4, {
1527
1772
  $assert: () => $assert2,
1528
1773
  $build: () => $build2,
1529
1774
  $cast: () => $cast2,
@@ -1821,29 +2066,343 @@ var list_default = {
1821
2066
  }
1822
2067
  };
1823
2068
 
1824
- // src/schemas/account/cart/put.json
1825
- var put_default = {
2069
+ // src/schemas/account/cart/put.json
2070
+ var put_default = {
2071
+ lexicon: 1,
2072
+ id: "com.atiproto.account.cart.put",
2073
+ defs: {
2074
+ main: {
2075
+ type: "procedure",
2076
+ description: "Update a cart. Only open carts can be updated.",
2077
+ input: {
2078
+ encoding: "application/json",
2079
+ schema: {
2080
+ type: "object",
2081
+ required: ["uri", "record"],
2082
+ properties: {
2083
+ uri: {
2084
+ type: "string",
2085
+ format: "at-uri",
2086
+ description: "AT-URI of the cart to update"
2087
+ },
2088
+ record: {
2089
+ type: "ref",
2090
+ ref: "com.atiproto.cart"
2091
+ }
2092
+ }
2093
+ }
2094
+ },
2095
+ output: {
2096
+ encoding: "application/json",
2097
+ schema: {
2098
+ type: "object",
2099
+ required: ["uri", "cid"],
2100
+ properties: {
2101
+ uri: {
2102
+ type: "string",
2103
+ format: "at-uri",
2104
+ description: "Updated cart record URI"
2105
+ },
2106
+ cid: {
2107
+ type: "string",
2108
+ format: "cid",
2109
+ description: "New CID of the updated record"
2110
+ }
2111
+ }
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ };
2117
+
2118
+ // src/schemas/account/profile/get.json
2119
+ var get_default2 = {
2120
+ lexicon: 1,
2121
+ id: "com.atiproto.account.profile.get",
2122
+ defs: {
2123
+ main: {
2124
+ type: "query",
2125
+ description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2126
+ output: {
2127
+ encoding: "application/json",
2128
+ schema: {
2129
+ type: "object",
2130
+ required: ["profile", "hasProfile", "readyForPayment"],
2131
+ properties: {
2132
+ uri: {
2133
+ type: "string",
2134
+ format: "at-uri",
2135
+ description: "Profile record URI (absent if no profile configured)"
2136
+ },
2137
+ cid: {
2138
+ type: "string",
2139
+ format: "cid",
2140
+ description: "Profile record CID (absent if no profile configured)"
2141
+ },
2142
+ profile: {
2143
+ type: "ref",
2144
+ ref: "com.atiproto.profile#view",
2145
+ description: "The profile record data (defaults if not configured)"
2146
+ },
2147
+ hasProfile: {
2148
+ type: "boolean",
2149
+ description: "Whether the user has saved a profile record"
2150
+ },
2151
+ readyForPayment: {
2152
+ type: "boolean",
2153
+ description: "Whether the user's payment account is set up and enabled"
2154
+ }
2155
+ }
2156
+ }
2157
+ }
2158
+ }
2159
+ }
2160
+ };
2161
+
2162
+ // src/schemas/account/profile/put.json
2163
+ var put_default2 = {
2164
+ lexicon: 1,
2165
+ id: "com.atiproto.account.profile.put",
2166
+ defs: {
2167
+ main: {
2168
+ type: "procedure",
2169
+ description: "Create or update the authenticated user's profile settings",
2170
+ input: {
2171
+ encoding: "application/json",
2172
+ schema: {
2173
+ type: "object",
2174
+ properties: {
2175
+ acceptsTips: {
2176
+ type: "boolean",
2177
+ description: "Enable accepting tips"
2178
+ },
2179
+ acceptsSubscriptions: {
2180
+ type: "boolean",
2181
+ description: "Enable accepting subscriptions"
2182
+ },
2183
+ disableReceiptNotifications: {
2184
+ type: "boolean",
2185
+ description: "Opt out of payment receipt DMs"
2186
+ }
2187
+ }
2188
+ }
2189
+ },
2190
+ output: {
2191
+ encoding: "application/json",
2192
+ schema: {
2193
+ type: "object",
2194
+ required: [
2195
+ "uri",
2196
+ "cid",
2197
+ "profile",
2198
+ "hasProfile",
2199
+ "readyForPayment"
2200
+ ],
2201
+ properties: {
2202
+ uri: {
2203
+ type: "string",
2204
+ format: "at-uri",
2205
+ description: "Profile record URI"
2206
+ },
2207
+ cid: {
2208
+ type: "string",
2209
+ format: "cid",
2210
+ description: "Profile record CID"
2211
+ },
2212
+ profile: {
2213
+ type: "ref",
2214
+ ref: "com.atiproto.profile#view",
2215
+ description: "The profile record data"
2216
+ },
2217
+ hasProfile: {
2218
+ type: "boolean",
2219
+ description: "Whether the user has saved a profile record"
2220
+ },
2221
+ readyForPayment: {
2222
+ type: "boolean",
2223
+ description: "Whether the user's payment account is set up and enabled"
2224
+ }
2225
+ }
2226
+ }
2227
+ }
2228
+ }
2229
+ }
2230
+ };
2231
+
2232
+ // src/schemas/account/subscription/get.json
2233
+ var get_default3 = {
2234
+ lexicon: 1,
2235
+ id: "com.atiproto.account.subscription.get",
2236
+ defs: {
2237
+ main: {
2238
+ type: "query",
2239
+ description: "Get a specific subscription received by the authenticated user (as the recipient/subject). Looks up by subscription record uri or sender DID. These are mutually exclusive; uri takes precedence.",
2240
+ parameters: {
2241
+ type: "params",
2242
+ properties: {
2243
+ uri: {
2244
+ type: "string",
2245
+ format: "at-uri",
2246
+ description: "AT-URI of the subscription record. Takes precedence over sender."
2247
+ },
2248
+ sender: {
2249
+ type: "string",
2250
+ format: "did",
2251
+ description: "DID of the subscriber. Ignored if uri is provided."
2252
+ }
2253
+ }
2254
+ },
2255
+ output: {
2256
+ encoding: "application/json",
2257
+ schema: {
2258
+ type: "object",
2259
+ required: ["subscription"],
2260
+ properties: {
2261
+ subscription: {
2262
+ type: "ref",
2263
+ ref: "com.atiproto.subscription#view",
2264
+ description: "The subscription record data"
2265
+ }
2266
+ }
2267
+ }
2268
+ }
2269
+ }
2270
+ }
2271
+ };
2272
+
2273
+ // src/schemas/account/subscription/list.json
2274
+ var list_default2 = {
2275
+ lexicon: 1,
2276
+ id: "com.atiproto.account.subscription.list",
2277
+ defs: {
2278
+ main: {
2279
+ type: "query",
2280
+ description: "List subscriptions received by the authenticated user (subscriptions where the authed user is the recipient/subject). Includes subscriptions marked private, which are only stored in atiproto's database.",
2281
+ parameters: {
2282
+ type: "params",
2283
+ properties: {
2284
+ cursor: {
2285
+ type: "string",
2286
+ maxLength: 512,
2287
+ description: "Pagination cursor"
2288
+ },
2289
+ limit: {
2290
+ type: "integer",
2291
+ minimum: 1,
2292
+ maximum: 100,
2293
+ default: 50,
2294
+ description: "Results per page (1-100, default: 50)"
2295
+ }
2296
+ }
2297
+ },
2298
+ output: {
2299
+ encoding: "application/json",
2300
+ schema: {
2301
+ type: "object",
2302
+ required: ["subscriptions"],
2303
+ properties: {
2304
+ subscriptions: {
2305
+ type: "array",
2306
+ items: {
2307
+ type: "ref",
2308
+ ref: "com.atiproto.subscription#view"
2309
+ }
2310
+ },
2311
+ cursor: {
2312
+ type: "string",
2313
+ maxLength: 512,
2314
+ description: "Pagination cursor for next page"
2315
+ }
2316
+ }
2317
+ }
2318
+ }
2319
+ }
2320
+ }
2321
+ };
2322
+
2323
+ // src/schemas/account/subscription/validate.json
2324
+ var validate_default = {
2325
+ lexicon: 1,
2326
+ id: "com.atiproto.account.subscription.validate",
2327
+ defs: {
2328
+ main: {
2329
+ type: "query",
2330
+ description: "Validate that a sender has an active, Stripe-verified subscription to the authenticated user (as the recipient/subject). Looks up by subscriptionUri (a specific subscription record) or sender (subscriber DID). These are mutually exclusive; subscriptionUri takes precedence.",
2331
+ parameters: {
2332
+ type: "params",
2333
+ properties: {
2334
+ subscriptionUri: {
2335
+ type: "string",
2336
+ format: "at-uri",
2337
+ description: "AT-URI of a specific subscription record. Takes precedence over sender."
2338
+ },
2339
+ sender: {
2340
+ type: "string",
2341
+ format: "did",
2342
+ description: "DID of the subscriber. Ignored if subscriptionUri is provided."
2343
+ },
2344
+ amount: {
2345
+ type: "integer",
2346
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
2347
+ }
2348
+ }
2349
+ },
2350
+ output: {
2351
+ encoding: "application/json",
2352
+ schema: {
2353
+ type: "object",
2354
+ required: ["valid"],
2355
+ properties: {
2356
+ valid: {
2357
+ type: "boolean",
2358
+ description: "Whether a sender has an active, verified subscription to the authed recipient"
2359
+ },
2360
+ amount: {
2361
+ type: "integer",
2362
+ description: "Subscription amount in cents"
2363
+ },
2364
+ currency: {
2365
+ type: "string",
2366
+ maxLength: 3,
2367
+ description: "Currency of the subscription"
2368
+ },
2369
+ reason: {
2370
+ type: "string",
2371
+ maxLength: 1024,
2372
+ description: "If invalid, reason for rejection"
2373
+ }
2374
+ }
2375
+ }
2376
+ }
2377
+ }
2378
+ }
2379
+ };
2380
+
2381
+ // src/schemas/account/tip/get.json
2382
+ var get_default4 = {
1826
2383
  lexicon: 1,
1827
- id: "com.atiproto.account.cart.put",
2384
+ id: "com.atiproto.account.tip.get",
1828
2385
  defs: {
1829
2386
  main: {
1830
- type: "procedure",
1831
- description: "Update a cart. Only open carts can be updated.",
1832
- input: {
1833
- encoding: "application/json",
1834
- schema: {
1835
- type: "object",
1836
- required: ["uri", "record"],
1837
- properties: {
1838
- uri: {
1839
- type: "string",
1840
- format: "at-uri",
1841
- description: "AT-URI of the cart to update"
1842
- },
1843
- record: {
1844
- type: "ref",
1845
- ref: "com.atiproto.cart"
1846
- }
2387
+ type: "query",
2388
+ description: "Get a specific tip received by the authenticated user (as the recipient/subject). Looks up by tip record uri, sender DID, or record uri. These are mutually exclusive and resolved in that order.",
2389
+ parameters: {
2390
+ type: "params",
2391
+ properties: {
2392
+ uri: {
2393
+ type: "string",
2394
+ format: "at-uri",
2395
+ description: "AT-URI of the tip record. Takes precedence over sender and recordUri."
2396
+ },
2397
+ sender: {
2398
+ type: "string",
2399
+ format: "did",
2400
+ description: "DID of the tip sender. Takes precedence over recordUri."
2401
+ },
2402
+ recordUri: {
2403
+ type: "string",
2404
+ format: "at-uri",
2405
+ description: "AT-URI of the record being tipped. Ignored if uri or sender is provided."
1847
2406
  }
1848
2407
  }
1849
2408
  },
@@ -1851,17 +2410,12 @@ var put_default = {
1851
2410
  encoding: "application/json",
1852
2411
  schema: {
1853
2412
  type: "object",
1854
- required: ["uri", "cid"],
2413
+ required: ["tip"],
1855
2414
  properties: {
1856
- uri: {
1857
- type: "string",
1858
- format: "at-uri",
1859
- description: "Updated cart record URI"
1860
- },
1861
- cid: {
1862
- type: "string",
1863
- format: "cid",
1864
- description: "New CID of the updated record"
2415
+ tip: {
2416
+ type: "ref",
2417
+ ref: "com.atiproto.tip#view",
2418
+ description: "The tip record data"
1865
2419
  }
1866
2420
  }
1867
2421
  }
@@ -1870,42 +2424,58 @@ var put_default = {
1870
2424
  }
1871
2425
  };
1872
2426
 
1873
- // src/schemas/account/profile/get.json
1874
- var get_default2 = {
2427
+ // src/schemas/account/tip/list.json
2428
+ var list_default3 = {
1875
2429
  lexicon: 1,
1876
- id: "com.atiproto.account.profile.get",
2430
+ id: "com.atiproto.account.tip.list",
1877
2431
  defs: {
1878
2432
  main: {
1879
2433
  type: "query",
1880
- description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2434
+ description: "List tips received by the authenticated user (tips where the authed user is the recipient/subject). Includes tips marked private, which are only stored in atiproto's database.",
2435
+ parameters: {
2436
+ type: "params",
2437
+ properties: {
2438
+ sender: {
2439
+ type: "string",
2440
+ format: "did",
2441
+ description: "Optional: only return tips sent by this DID"
2442
+ },
2443
+ recordUri: {
2444
+ type: "string",
2445
+ format: "at-uri",
2446
+ description: "Optional: only return tips received for this specific record"
2447
+ },
2448
+ cursor: {
2449
+ type: "string",
2450
+ maxLength: 512,
2451
+ description: "Pagination cursor"
2452
+ },
2453
+ limit: {
2454
+ type: "integer",
2455
+ minimum: 1,
2456
+ maximum: 100,
2457
+ default: 50,
2458
+ description: "Results per page (1-100, default: 50)"
2459
+ }
2460
+ }
2461
+ },
1881
2462
  output: {
1882
2463
  encoding: "application/json",
1883
2464
  schema: {
1884
2465
  type: "object",
1885
- required: ["profile", "hasProfile", "readyForPayment"],
2466
+ required: ["tips"],
1886
2467
  properties: {
1887
- uri: {
1888
- type: "string",
1889
- format: "at-uri",
1890
- description: "Profile record URI (absent if no profile configured)"
2468
+ tips: {
2469
+ type: "array",
2470
+ items: {
2471
+ type: "ref",
2472
+ ref: "com.atiproto.tip#view"
2473
+ }
1891
2474
  },
1892
- cid: {
2475
+ cursor: {
1893
2476
  type: "string",
1894
- format: "cid",
1895
- description: "Profile record CID (absent if no profile configured)"
1896
- },
1897
- profile: {
1898
- type: "ref",
1899
- ref: "com.atiproto.profile#view",
1900
- description: "The profile record data (defaults if not configured)"
1901
- },
1902
- hasProfile: {
1903
- type: "boolean",
1904
- description: "Whether the user has saved a profile record"
1905
- },
1906
- readyForPayment: {
1907
- type: "boolean",
1908
- description: "Whether the user's payment account is set up and enabled"
2477
+ maxLength: 512,
2478
+ description: "Pagination cursor for next page"
1909
2479
  }
1910
2480
  }
1911
2481
  }
@@ -1914,31 +2484,35 @@ var get_default2 = {
1914
2484
  }
1915
2485
  };
1916
2486
 
1917
- // src/schemas/account/profile/put.json
1918
- var put_default2 = {
2487
+ // src/schemas/account/tip/validate.json
2488
+ var validate_default2 = {
1919
2489
  lexicon: 1,
1920
- id: "com.atiproto.account.profile.put",
2490
+ id: "com.atiproto.account.tip.validate",
1921
2491
  defs: {
1922
2492
  main: {
1923
- type: "procedure",
1924
- description: "Create or update the authenticated user's profile settings",
1925
- input: {
1926
- encoding: "application/json",
1927
- schema: {
1928
- type: "object",
1929
- properties: {
1930
- acceptsTips: {
1931
- type: "boolean",
1932
- description: "Enable accepting tips"
1933
- },
1934
- acceptsSubscriptions: {
1935
- type: "boolean",
1936
- description: "Enable accepting subscriptions"
1937
- },
1938
- disableReceiptNotifications: {
1939
- type: "boolean",
1940
- description: "Opt out of payment receipt DMs"
1941
- }
2493
+ type: "query",
2494
+ description: "Validate that a sender has completed tip payment(s) to the authenticated user (as the recipient/subject). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or sender (sender DID). These are mutually exclusive and resolved in that order.",
2495
+ parameters: {
2496
+ type: "params",
2497
+ properties: {
2498
+ tipUri: {
2499
+ type: "string",
2500
+ format: "at-uri",
2501
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and sender."
2502
+ },
2503
+ recordUri: {
2504
+ type: "string",
2505
+ format: "at-uri",
2506
+ description: "AT-URI of the record being tipped. Takes precedence over sender."
2507
+ },
2508
+ sender: {
2509
+ type: "string",
2510
+ format: "did",
2511
+ description: "DID of the tip sender. Ignored if tipUri or recordUri is provided."
2512
+ },
2513
+ amount: {
2514
+ type: "integer",
2515
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
1942
2516
  }
1943
2517
  }
1944
2518
  },
@@ -1946,36 +2520,25 @@ var put_default2 = {
1946
2520
  encoding: "application/json",
1947
2521
  schema: {
1948
2522
  type: "object",
1949
- required: [
1950
- "uri",
1951
- "cid",
1952
- "profile",
1953
- "hasProfile",
1954
- "readyForPayment"
1955
- ],
2523
+ required: ["valid"],
1956
2524
  properties: {
1957
- uri: {
1958
- type: "string",
1959
- format: "at-uri",
1960
- description: "Profile record URI"
1961
- },
1962
- cid: {
1963
- type: "string",
1964
- format: "cid",
1965
- description: "Profile record CID"
2525
+ valid: {
2526
+ type: "boolean",
2527
+ description: "Whether a sender has completed and verified tip(s) to the authed recipient"
1966
2528
  },
1967
- profile: {
1968
- type: "ref",
1969
- ref: "com.atiproto.profile#view",
1970
- description: "The profile record data"
2529
+ amount: {
2530
+ type: "integer",
2531
+ description: "Sum of all verified completed tip amounts in cents"
1971
2532
  },
1972
- hasProfile: {
1973
- type: "boolean",
1974
- description: "Whether the user has saved a profile record"
2533
+ currency: {
2534
+ type: "string",
2535
+ maxLength: 3,
2536
+ description: "Currency of the tips"
1975
2537
  },
1976
- readyForPayment: {
1977
- type: "boolean",
1978
- description: "Whether the user's payment account is set up and enabled"
2538
+ reason: {
2539
+ type: "string",
2540
+ maxLength: 1024,
2541
+ description: "If invalid, reason for rejection"
1979
2542
  }
1980
2543
  }
1981
2544
  }
@@ -2116,7 +2679,7 @@ var cart_default = {
2116
2679
  };
2117
2680
 
2118
2681
  // src/schemas/feed/list.json
2119
- var list_default2 = {
2682
+ var list_default4 = {
2120
2683
  lexicon: 1,
2121
2684
  id: "com.atiproto.feed.list",
2122
2685
  defs: {
@@ -2256,6 +2819,10 @@ var create_default2 = {
2256
2819
  description: "URL to redirect to after checkout completes",
2257
2820
  format: "uri",
2258
2821
  type: "string"
2822
+ },
2823
+ isPrivate: {
2824
+ description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
2825
+ type: "boolean"
2259
2826
  }
2260
2827
  },
2261
2828
  required: ["subject", "currency", "interval"],
@@ -2304,7 +2871,7 @@ var create_default2 = {
2304
2871
  };
2305
2872
 
2306
2873
  // src/schemas/feed/subscription/get.json
2307
- var get_default3 = {
2874
+ var get_default5 = {
2308
2875
  defs: {
2309
2876
  main: {
2310
2877
  description: "Get a specific subscription by URI",
@@ -2351,7 +2918,7 @@ var get_default3 = {
2351
2918
  };
2352
2919
 
2353
2920
  // src/schemas/feed/subscription/list.json
2354
- var list_default3 = {
2921
+ var list_default5 = {
2355
2922
  lexicon: 1,
2356
2923
  id: "com.atiproto.feed.subscription.list",
2357
2924
  defs: {
@@ -2467,6 +3034,64 @@ var put_default3 = {
2467
3034
  }
2468
3035
  };
2469
3036
 
3037
+ // src/schemas/feed/subscription/validate.json
3038
+ var validate_default3 = {
3039
+ lexicon: 1,
3040
+ id: "com.atiproto.feed.subscription.validate",
3041
+ defs: {
3042
+ main: {
3043
+ type: "query",
3044
+ description: "Validate that the authenticated user (as the sender/subscriber) has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence.",
3045
+ parameters: {
3046
+ type: "params",
3047
+ properties: {
3048
+ subscriptionUri: {
3049
+ type: "string",
3050
+ format: "at-uri",
3051
+ description: "AT-URI of a specific subscription record. Takes precedence over subject."
3052
+ },
3053
+ subject: {
3054
+ type: "string",
3055
+ format: "did",
3056
+ description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
3057
+ },
3058
+ amount: {
3059
+ type: "integer",
3060
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
3061
+ }
3062
+ }
3063
+ },
3064
+ output: {
3065
+ encoding: "application/json",
3066
+ schema: {
3067
+ type: "object",
3068
+ required: ["valid"],
3069
+ properties: {
3070
+ valid: {
3071
+ type: "boolean",
3072
+ description: "Whether the authed sender has an active, verified subscription"
3073
+ },
3074
+ amount: {
3075
+ type: "integer",
3076
+ description: "Subscription amount in cents"
3077
+ },
3078
+ currency: {
3079
+ type: "string",
3080
+ maxLength: 3,
3081
+ description: "Currency of the subscription"
3082
+ },
3083
+ reason: {
3084
+ type: "string",
3085
+ maxLength: 1024,
3086
+ description: "If invalid, reason for rejection"
3087
+ }
3088
+ }
3089
+ }
3090
+ }
3091
+ }
3092
+ }
3093
+ };
3094
+
2470
3095
  // src/schemas/feed/tip/create.json
2471
3096
  var create_default3 = {
2472
3097
  lexicon: 1,
@@ -2515,6 +3140,10 @@ var create_default3 = {
2515
3140
  description: "Optional message (max 500 chars)",
2516
3141
  maxGraphemes: 500,
2517
3142
  maxLength: 5e3
3143
+ },
3144
+ isPrivate: {
3145
+ type: "boolean",
3146
+ description: "If true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS tip record."
2518
3147
  }
2519
3148
  }
2520
3149
  }
@@ -2558,7 +3187,7 @@ var create_default3 = {
2558
3187
  };
2559
3188
 
2560
3189
  // src/schemas/feed/tip/get.json
2561
- var get_default4 = {
3190
+ var get_default6 = {
2562
3191
  defs: {
2563
3192
  main: {
2564
3193
  description: "Get a specific tip by URI",
@@ -2605,7 +3234,7 @@ var get_default4 = {
2605
3234
  };
2606
3235
 
2607
3236
  // src/schemas/feed/tip/list.json
2608
- var list_default4 = {
3237
+ var list_default6 = {
2609
3238
  lexicon: 1,
2610
3239
  id: "com.atiproto.feed.tip.list",
2611
3240
  defs: {
@@ -2706,6 +3335,69 @@ var put_default4 = {
2706
3335
  }
2707
3336
  };
2708
3337
 
3338
+ // src/schemas/feed/tip/validate.json
3339
+ var validate_default4 = {
3340
+ lexicon: 1,
3341
+ id: "com.atiproto.feed.tip.validate",
3342
+ defs: {
3343
+ main: {
3344
+ type: "query",
3345
+ description: "Validate that the authenticated user (as the sender) has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order.",
3346
+ parameters: {
3347
+ type: "params",
3348
+ properties: {
3349
+ tipUri: {
3350
+ type: "string",
3351
+ format: "at-uri",
3352
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
3353
+ },
3354
+ recordUri: {
3355
+ type: "string",
3356
+ format: "at-uri",
3357
+ description: "AT-URI of the record being tipped. Takes precedence over subject."
3358
+ },
3359
+ subject: {
3360
+ type: "string",
3361
+ format: "did",
3362
+ description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3363
+ },
3364
+ amount: {
3365
+ type: "integer",
3366
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3367
+ }
3368
+ }
3369
+ },
3370
+ output: {
3371
+ encoding: "application/json",
3372
+ schema: {
3373
+ type: "object",
3374
+ required: ["valid"],
3375
+ properties: {
3376
+ valid: {
3377
+ type: "boolean",
3378
+ description: "Whether the authed sender has completed and verified tip(s)"
3379
+ },
3380
+ amount: {
3381
+ type: "integer",
3382
+ description: "Sum of all verified completed tip amounts in cents"
3383
+ },
3384
+ currency: {
3385
+ type: "string",
3386
+ maxLength: 3,
3387
+ description: "Currency of the tips"
3388
+ },
3389
+ reason: {
3390
+ type: "string",
3391
+ maxLength: 1024,
3392
+ description: "If invalid, reason for rejection"
3393
+ }
3394
+ }
3395
+ }
3396
+ }
3397
+ }
3398
+ }
3399
+ };
3400
+
2709
3401
  // src/schemas/profile.json
2710
3402
  var profile_default = {
2711
3403
  lexicon: 1,
@@ -2777,7 +3469,7 @@ var profile_default = {
2777
3469
  };
2778
3470
 
2779
3471
  // src/schemas/repo/profile/get.json
2780
- var get_default5 = {
3472
+ var get_default7 = {
2781
3473
  lexicon: 1,
2782
3474
  id: "com.atiproto.repo.profile.get",
2783
3475
  defs: {
@@ -2818,107 +3510,31 @@ var get_default5 = {
2818
3510
  }
2819
3511
  };
2820
3512
 
2821
- // src/schemas/repo/subscription/search.json
2822
- var search_default = {
3513
+ // src/schemas/repo/subscription/count.json
3514
+ var count_default = {
2823
3515
  lexicon: 1,
2824
- id: "com.atiproto.repo.subscription.search",
3516
+ id: "com.atiproto.repo.subscription.count",
2825
3517
  defs: {
2826
3518
  main: {
2827
3519
  type: "query",
2828
- description: "Search for subscriptions to a user (subscriptions where subject matches the given DID)",
3520
+ description: "Count active subscriptions. If subject is provided, counts subscriptions received by that DID. If omitted, counts subscriptions the authenticated user has active (as the subscriber). Optionally filtered by a start/end datetime window (matching billingStartDate). When the authenticated user is the subject/owner of the target, the response also includes the sum of amounts.",
2829
3521
  parameters: {
2830
3522
  type: "params",
2831
3523
  properties: {
2832
3524
  subject: {
2833
3525
  type: "string",
2834
3526
  format: "did",
2835
- description: "DID of the user being subscribed to"
2836
- },
2837
- cursor: {
2838
- type: "string",
2839
- maxLength: 512,
2840
- description: "Pagination cursor"
2841
- },
2842
- limit: {
2843
- type: "integer",
2844
- minimum: 1,
2845
- maximum: 100,
2846
- default: 50,
2847
- description: "Results per page (1-100, default: 50)"
2848
- }
2849
- },
2850
- required: ["subject"]
2851
- },
2852
- output: {
2853
- encoding: "application/json",
2854
- schema: {
2855
- type: "object",
2856
- required: ["subscriptions"],
2857
- properties: {
2858
- subscriptions: {
2859
- type: "array",
2860
- items: {
2861
- type: "ref",
2862
- ref: "#subscriptionResponse"
2863
- }
2864
- },
2865
- cursor: {
2866
- type: "string",
2867
- maxLength: 512,
2868
- description: "Pagination cursor for next page"
2869
- }
2870
- }
2871
- }
2872
- }
2873
- },
2874
- subscriptionResponse: {
2875
- type: "object",
2876
- required: ["uri", "record"],
2877
- properties: {
2878
- uri: {
2879
- type: "string",
2880
- format: "at-uri",
2881
- description: "AT-URI of the subscription record"
2882
- },
2883
- record: {
2884
- type: "ref",
2885
- ref: "com.atiproto.subscription#view"
2886
- }
2887
- }
2888
- }
2889
- }
2890
- };
2891
-
2892
- // src/schemas/repo/subscription/validate.json
2893
- var validate_default = {
2894
- lexicon: 1,
2895
- id: "com.atiproto.repo.subscription.validate",
2896
- defs: {
2897
- main: {
2898
- type: "query",
2899
- description: "Validate that a sender has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence.",
2900
- parameters: {
2901
- type: "params",
2902
- required: ["sender"],
2903
- properties: {
2904
- sender: {
2905
- type: "string",
2906
- format: "did",
2907
- description: "DID of the subscriber"
3527
+ description: "DID of the user being subscribed to. If omitted, the query counts subscriptions the authenticated user has active as the subscriber."
2908
3528
  },
2909
- subscriptionUri: {
3529
+ startDate: {
2910
3530
  type: "string",
2911
- format: "at-uri",
2912
- description: "AT-URI of a specific subscription record. Takes precedence over subject."
3531
+ format: "datetime",
3532
+ description: "Only count subscriptions whose billingStartDate is at or after this timestamp"
2913
3533
  },
2914
- subject: {
3534
+ endDate: {
2915
3535
  type: "string",
2916
- format: "did",
2917
- description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
2918
- },
2919
- amount: {
2920
- type: "integer",
2921
- description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
3536
+ format: "datetime",
3537
+ description: "Only count subscriptions whose billingStartDate is at or before this timestamp"
2922
3538
  }
2923
3539
  }
2924
3540
  },
@@ -2926,126 +3542,39 @@ var validate_default = {
2926
3542
  encoding: "application/json",
2927
3543
  schema: {
2928
3544
  type: "object",
2929
- required: ["valid"],
3545
+ required: ["count"],
2930
3546
  properties: {
2931
- valid: {
2932
- type: "boolean",
2933
- description: "Whether the sender has an active, verified subscription"
3547
+ count: {
3548
+ type: "integer",
3549
+ description: "Number of active subscriptions matching the filter"
2934
3550
  },
2935
3551
  amount: {
2936
3552
  type: "integer",
2937
- description: "Subscription amount in cents"
3553
+ description: "Sum of all subscription amounts in cents. Only returned when the authenticated user is the subject/owner of the target (or when counting their own active subscriptions)."
2938
3554
  },
2939
3555
  currency: {
2940
3556
  type: "string",
2941
3557
  maxLength: 3,
2942
- description: "Currency of the subscription"
2943
- },
2944
- reason: {
2945
- type: "string",
2946
- maxLength: 1024,
2947
- description: "If invalid, reason for rejection"
2948
- }
2949
- }
2950
- }
2951
- }
2952
- }
2953
- }
2954
- };
2955
-
2956
- // src/schemas/repo/tip/search.json
2957
- var search_default2 = {
2958
- lexicon: 1,
2959
- id: "com.atiproto.repo.tip.search",
2960
- defs: {
2961
- main: {
2962
- type: "query",
2963
- description: "Search for tips sent to a user (tips where subject matches the given DID)",
2964
- parameters: {
2965
- type: "params",
2966
- properties: {
2967
- subject: {
2968
- type: "string",
2969
- format: "did",
2970
- description: "DID of the user receiving tips"
2971
- },
2972
- cursor: {
2973
- type: "string",
2974
- maxLength: 512,
2975
- description: "Pagination cursor"
2976
- },
2977
- limit: {
2978
- type: "integer",
2979
- minimum: 1,
2980
- maximum: 100,
2981
- default: 50,
2982
- description: "Results per page (1-100, default: 50)"
2983
- }
2984
- },
2985
- required: ["subject"]
2986
- },
2987
- output: {
2988
- encoding: "application/json",
2989
- schema: {
2990
- type: "object",
2991
- required: ["tips"],
2992
- properties: {
2993
- tips: {
2994
- type: "array",
2995
- items: {
2996
- type: "ref",
2997
- ref: "#tipResponse"
2998
- }
2999
- },
3000
- cursor: {
3001
- type: "string",
3002
- maxLength: 512,
3003
- description: "Pagination cursor for next page"
3558
+ description: "Currency of the summed amount. Only returned when the authenticated user is the subject/owner of the target (or when counting their own active subscriptions)."
3004
3559
  }
3005
3560
  }
3006
3561
  }
3007
3562
  }
3008
- },
3009
- tipResponse: {
3010
- type: "object",
3011
- required: ["uri", "record"],
3012
- properties: {
3013
- uri: {
3014
- type: "string",
3015
- format: "at-uri",
3016
- description: "AT-URI of the tip record"
3017
- },
3018
- record: {
3019
- type: "ref",
3020
- ref: "com.atiproto.tip#view"
3021
- }
3022
- }
3023
3563
  }
3024
3564
  }
3025
3565
  };
3026
3566
 
3027
- // src/schemas/repo/tip/validate.json
3028
- var validate_default2 = {
3567
+ // src/schemas/repo/tip/count.json
3568
+ var count_default2 = {
3029
3569
  lexicon: 1,
3030
- id: "com.atiproto.repo.tip.validate",
3570
+ id: "com.atiproto.repo.tip.count",
3031
3571
  defs: {
3032
3572
  main: {
3033
3573
  type: "query",
3034
- description: "Validate that a sender has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order.",
3574
+ description: "Count active (completed) tips. If recordUri is provided, counts tips for that record. If subject is provided, counts tips received by that DID. If neither is provided, counts tips sent by the authenticated user. Optionally filtered by a start/end datetime window. When the authenticated user is the subject/owner of the target, the response also includes the sum of amounts.",
3035
3575
  parameters: {
3036
3576
  type: "params",
3037
- required: ["sender"],
3038
3577
  properties: {
3039
- sender: {
3040
- type: "string",
3041
- format: "did",
3042
- description: "DID of the tip sender"
3043
- },
3044
- tipUri: {
3045
- type: "string",
3046
- format: "at-uri",
3047
- description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
3048
- },
3049
3578
  recordUri: {
3050
3579
  type: "string",
3051
3580
  format: "at-uri",
@@ -3054,11 +3583,17 @@ var validate_default2 = {
3054
3583
  subject: {
3055
3584
  type: "string",
3056
3585
  format: "did",
3057
- description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3586
+ description: "DID of the tip recipient. Ignored if recordUri is provided. If omitted (and recordUri is omitted), the query counts tips sent by the authenticated user."
3058
3587
  },
3059
- amount: {
3060
- type: "integer",
3061
- description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3588
+ startDate: {
3589
+ type: "string",
3590
+ format: "datetime",
3591
+ description: "Only count tips completed at or after this timestamp"
3592
+ },
3593
+ endDate: {
3594
+ type: "string",
3595
+ format: "datetime",
3596
+ description: "Only count tips completed at or before this timestamp"
3062
3597
  }
3063
3598
  }
3064
3599
  },
@@ -3066,25 +3601,20 @@ var validate_default2 = {
3066
3601
  encoding: "application/json",
3067
3602
  schema: {
3068
3603
  type: "object",
3069
- required: ["valid"],
3604
+ required: ["count"],
3070
3605
  properties: {
3071
- valid: {
3072
- type: "boolean",
3073
- description: "Whether the sender has completed and verified tip(s)"
3606
+ count: {
3607
+ type: "integer",
3608
+ description: "Number of active (completed) tips matching the filter"
3074
3609
  },
3075
3610
  amount: {
3076
3611
  type: "integer",
3077
- description: "Sum of all verified completed tip amounts in cents"
3612
+ description: "Sum of all tip amounts in cents. Only returned when the authenticated user is the subject/owner of the target (or when counting their own sent tips)."
3078
3613
  },
3079
3614
  currency: {
3080
3615
  type: "string",
3081
3616
  maxLength: 3,
3082
- description: "Currency of the tips"
3083
- },
3084
- reason: {
3085
- type: "string",
3086
- maxLength: 1024,
3087
- description: "If invalid, reason for rejection"
3617
+ description: "Currency of the summed amount. Only returned when the authenticated user is the subject/owner of the target (or when counting their own sent tips)."
3088
3618
  }
3089
3619
  }
3090
3620
  }
@@ -3125,21 +3655,27 @@ var authEnhanced_default = {
3125
3655
  "com.atiproto.account.cart.put",
3126
3656
  "com.atiproto.account.profile.get",
3127
3657
  "com.atiproto.account.profile.put",
3658
+ "com.atiproto.account.subscription.get",
3659
+ "com.atiproto.account.subscription.list",
3660
+ "com.atiproto.account.subscription.validate",
3661
+ "com.atiproto.account.tip.get",
3662
+ "com.atiproto.account.tip.list",
3663
+ "com.atiproto.account.tip.validate",
3128
3664
  "com.atiproto.feed.list",
3129
3665
  "com.atiproto.feed.subscription.cancel",
3130
3666
  "com.atiproto.feed.subscription.create",
3131
3667
  "com.atiproto.feed.subscription.get",
3132
3668
  "com.atiproto.feed.subscription.list",
3133
3669
  "com.atiproto.feed.subscription.put",
3670
+ "com.atiproto.feed.subscription.validate",
3134
3671
  "com.atiproto.feed.tip.create",
3135
3672
  "com.atiproto.feed.tip.get",
3136
3673
  "com.atiproto.feed.tip.list",
3137
3674
  "com.atiproto.feed.tip.put",
3675
+ "com.atiproto.feed.tip.validate",
3138
3676
  "com.atiproto.repo.profile.get",
3139
- "com.atiproto.repo.subscription.search",
3140
- "com.atiproto.repo.subscription.validate",
3141
- "com.atiproto.repo.tip.search",
3142
- "com.atiproto.repo.tip.validate"
3677
+ "com.atiproto.repo.subscription.count",
3678
+ "com.atiproto.repo.tip.count"
3143
3679
  ]
3144
3680
  }
3145
3681
  ]
@@ -3176,21 +3712,27 @@ var authGeneral_default = {
3176
3712
  "com.atiproto.account.cart.get",
3177
3713
  "com.atiproto.account.cart.list",
3178
3714
  "com.atiproto.account.cart.put",
3715
+ "com.atiproto.account.subscription.get",
3716
+ "com.atiproto.account.subscription.list",
3717
+ "com.atiproto.account.subscription.validate",
3718
+ "com.atiproto.account.tip.get",
3719
+ "com.atiproto.account.tip.list",
3720
+ "com.atiproto.account.tip.validate",
3179
3721
  "com.atiproto.feed.list",
3180
3722
  "com.atiproto.feed.subscription.cancel",
3181
3723
  "com.atiproto.feed.subscription.create",
3182
3724
  "com.atiproto.feed.subscription.get",
3183
3725
  "com.atiproto.feed.subscription.list",
3184
3726
  "com.atiproto.feed.subscription.put",
3727
+ "com.atiproto.feed.subscription.validate",
3185
3728
  "com.atiproto.feed.tip.create",
3186
3729
  "com.atiproto.feed.tip.get",
3187
3730
  "com.atiproto.feed.tip.list",
3188
3731
  "com.atiproto.feed.tip.put",
3732
+ "com.atiproto.feed.tip.validate",
3189
3733
  "com.atiproto.repo.profile.get",
3190
- "com.atiproto.repo.subscription.search",
3191
- "com.atiproto.repo.subscription.validate",
3192
- "com.atiproto.repo.tip.search",
3193
- "com.atiproto.repo.tip.validate"
3734
+ "com.atiproto.repo.subscription.count",
3735
+ "com.atiproto.repo.tip.count"
3194
3736
  ]
3195
3737
  }
3196
3738
  ]
@@ -3271,7 +3813,6 @@ var subscription_default = {
3271
3813
  type: "object",
3272
3814
  description: "View of a subscription record for use in API responses",
3273
3815
  required: [
3274
- "subject",
3275
3816
  "amount",
3276
3817
  "currency",
3277
3818
  "interval",
@@ -3385,7 +3926,7 @@ var tip_default = {
3385
3926
  type: "string"
3386
3927
  }
3387
3928
  },
3388
- required: ["subject", "amount", "currency", "status", "createdAt"],
3929
+ required: ["amount", "currency", "status", "createdAt"],
3389
3930
  type: "object"
3390
3931
  },
3391
3932
  type: "record"
@@ -3393,7 +3934,7 @@ var tip_default = {
3393
3934
  view: {
3394
3935
  type: "object",
3395
3936
  description: "View of a tip record for use in API responses",
3396
- required: ["subject", "amount", "currency", "status", "createdAt"],
3937
+ required: ["amount", "currency", "status", "createdAt"],
3397
3938
  properties: {
3398
3939
  subject: {
3399
3940
  description: "DID of the user receiving the tip",
@@ -3453,23 +3994,29 @@ var schemas = [
3453
3994
  put_default,
3454
3995
  get_default2,
3455
3996
  put_default2,
3456
- cart_default,
3997
+ get_default3,
3457
3998
  list_default2,
3999
+ validate_default,
4000
+ get_default4,
4001
+ list_default3,
4002
+ validate_default2,
4003
+ cart_default,
4004
+ list_default4,
3458
4005
  cancel_default,
3459
4006
  create_default2,
3460
- get_default3,
3461
- list_default3,
4007
+ get_default5,
4008
+ list_default5,
3462
4009
  put_default3,
4010
+ validate_default3,
3463
4011
  create_default3,
3464
- get_default4,
3465
- list_default4,
4012
+ get_default6,
4013
+ list_default6,
3466
4014
  put_default4,
4015
+ validate_default4,
3467
4016
  profile_default,
3468
- get_default5,
3469
- search_default,
3470
- validate_default,
3471
- search_default2,
3472
- validate_default2,
4017
+ get_default7,
4018
+ count_default,
4019
+ count_default2,
3473
4020
  authEnhanced_default,
3474
4021
  authGeneral_default,
3475
4022
  subscription_default,