@atiproto/lexicons 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.js +1575 -1002
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1575 -1002
  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/cart.defs.d.ts +4 -0
  21. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +2 -0
  22. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  23. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  24. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  25. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  27. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  28. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  29. package/dist/lexicons/com/atiproto/profile.defs.d.ts +4 -0
  30. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  31. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  32. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  33. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  34. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  35. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  36. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +5 -1
  37. package/dist/lexicons/com/atiproto/tip.defs.d.ts +56 -12
  38. 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
@@ -137,6 +139,7 @@ var view = import_lex.l.typedObject(
137
139
  $nsid,
138
140
  "view",
139
141
  import_lex.l.object({
142
+ uri: import_lex.l.string({ format: "at-uri" }),
140
143
  items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
141
144
  currency: import_lex.l.string({ maxLength: 3 }),
142
145
  total: import_lex.l.integer(),
@@ -180,7 +183,7 @@ var main2 = import_lex2.l.record(
180
183
  "any",
181
184
  $nsid2,
182
185
  import_lex2.l.object({
183
- subject: import_lex2.l.string({ format: "did" }),
186
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
184
187
  recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
185
188
  amount: import_lex2.l.integer({ minimum: 0 }),
186
189
  currency: import_lex2.l.string({ maxLength: 3 }),
@@ -212,7 +215,8 @@ var view2 = import_lex2.l.typedObject(
212
215
  $nsid2,
213
216
  "view",
214
217
  import_lex2.l.object({
215
- subject: import_lex2.l.string({ format: "did" }),
218
+ uri: import_lex2.l.string({ format: "at-uri" }),
219
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
216
220
  recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
217
221
  amount: import_lex2.l.integer({ minimum: 0 }),
218
222
  currency: import_lex2.l.string({ maxLength: 3 }),
@@ -281,7 +285,8 @@ var view3 = import_lex3.l.typedObject(
281
285
  $nsid3,
282
286
  "view",
283
287
  import_lex3.l.object({
284
- subject: import_lex3.l.string({ format: "did" }),
288
+ uri: import_lex3.l.string({ format: "at-uri" }),
289
+ subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
285
290
  amount: import_lex3.l.integer({ minimum: 0 }),
286
291
  currency: import_lex3.l.string({ maxLength: 3 }),
287
292
  interval: import_lex3.l.enum(["monthly", "yearly"]),
@@ -566,6 +571,7 @@ var view4 = import_lex9.l.typedObject(
566
571
  $nsid9,
567
572
  "view",
568
573
  import_lex9.l.object({
574
+ uri: import_lex9.l.string({ format: "at-uri" }),
569
575
  acceptsTips: import_lex9.l.optional(import_lex9.l.boolean()),
570
576
  acceptsSubscriptions: import_lex9.l.optional(import_lex9.l.boolean()),
571
577
  disableReceiptNotifications: import_lex9.l.optional(import_lex9.l.boolean()),
@@ -636,26 +642,282 @@ var $params7 = main11.parameters;
636
642
  var $input4 = main11.input;
637
643
  var $output7 = main11.output;
638
644
 
645
+ // src/lexicons/com/atiproto/account/subscription.ts
646
+ var subscription_exports = {};
647
+ __export(subscription_exports, {
648
+ get: () => get_exports3,
649
+ list: () => list_exports2,
650
+ validate: () => validate_exports
651
+ });
652
+
653
+ // src/lexicons/com/atiproto/account/subscription/get.ts
654
+ var get_exports3 = {};
655
+ __export(get_exports3, {
656
+ $defs: () => get_defs_exports3,
657
+ $lxm: () => $lxm8,
658
+ $nsid: () => $nsid12,
659
+ $output: () => $output8,
660
+ $params: () => $params8,
661
+ main: () => main12
662
+ });
663
+
664
+ // src/lexicons/com/atiproto/account/subscription/get.defs.ts
665
+ var get_defs_exports3 = {};
666
+ __export(get_defs_exports3, {
667
+ $lxm: () => $lxm8,
668
+ $nsid: () => $nsid12,
669
+ $output: () => $output8,
670
+ $params: () => $params8,
671
+ main: () => main12
672
+ });
673
+ var import_lex12 = require("@atproto/lex");
674
+ var $nsid12 = "com.atiproto.account.subscription.get";
675
+ var main12 = import_lex12.l.query(
676
+ $nsid12,
677
+ import_lex12.l.params({
678
+ uri: import_lex12.l.optional(import_lex12.l.string({ format: "at-uri" })),
679
+ sender: import_lex12.l.optional(import_lex12.l.string({ format: "did" }))
680
+ }),
681
+ import_lex12.l.jsonPayload({
682
+ subscription: import_lex12.l.ref(
683
+ (() => view3)
684
+ )
685
+ })
686
+ );
687
+ var $lxm8 = main12.nsid;
688
+ var $params8 = main12.parameters;
689
+ var $output8 = main12.output;
690
+
691
+ // src/lexicons/com/atiproto/account/subscription/list.ts
692
+ var list_exports2 = {};
693
+ __export(list_exports2, {
694
+ $defs: () => list_defs_exports2,
695
+ $lxm: () => $lxm9,
696
+ $nsid: () => $nsid13,
697
+ $output: () => $output9,
698
+ $params: () => $params9,
699
+ main: () => main13
700
+ });
701
+
702
+ // src/lexicons/com/atiproto/account/subscription/list.defs.ts
703
+ var list_defs_exports2 = {};
704
+ __export(list_defs_exports2, {
705
+ $lxm: () => $lxm9,
706
+ $nsid: () => $nsid13,
707
+ $output: () => $output9,
708
+ $params: () => $params9,
709
+ main: () => main13
710
+ });
711
+ var import_lex13 = require("@atproto/lex");
712
+ var $nsid13 = "com.atiproto.account.subscription.list";
713
+ var main13 = import_lex13.l.query(
714
+ $nsid13,
715
+ import_lex13.l.params({
716
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 })),
717
+ limit: import_lex13.l.optional(
718
+ import_lex13.l.withDefault(import_lex13.l.integer({ minimum: 1, maximum: 100 }), 50)
719
+ )
720
+ }),
721
+ import_lex13.l.jsonPayload({
722
+ subscriptions: import_lex13.l.array(
723
+ import_lex13.l.ref(
724
+ (() => view3)
725
+ )
726
+ ),
727
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 }))
728
+ })
729
+ );
730
+ var $lxm9 = main13.nsid;
731
+ var $params9 = main13.parameters;
732
+ var $output9 = main13.output;
733
+
734
+ // src/lexicons/com/atiproto/account/subscription/validate.ts
735
+ var validate_exports = {};
736
+ __export(validate_exports, {
737
+ $defs: () => validate_defs_exports,
738
+ $lxm: () => $lxm10,
739
+ $nsid: () => $nsid14,
740
+ $output: () => $output10,
741
+ $params: () => $params10,
742
+ main: () => main14
743
+ });
744
+
745
+ // src/lexicons/com/atiproto/account/subscription/validate.defs.ts
746
+ var validate_defs_exports = {};
747
+ __export(validate_defs_exports, {
748
+ $lxm: () => $lxm10,
749
+ $nsid: () => $nsid14,
750
+ $output: () => $output10,
751
+ $params: () => $params10,
752
+ main: () => main14
753
+ });
754
+ var import_lex14 = require("@atproto/lex");
755
+ var $nsid14 = "com.atiproto.account.subscription.validate";
756
+ var main14 = import_lex14.l.query(
757
+ $nsid14,
758
+ import_lex14.l.params({
759
+ subscriptionUri: import_lex14.l.optional(import_lex14.l.string({ format: "at-uri" })),
760
+ sender: import_lex14.l.optional(import_lex14.l.string({ format: "did" })),
761
+ amount: import_lex14.l.optional(import_lex14.l.integer())
762
+ }),
763
+ import_lex14.l.jsonPayload({
764
+ valid: import_lex14.l.boolean(),
765
+ amount: import_lex14.l.optional(import_lex14.l.integer()),
766
+ currency: import_lex14.l.optional(import_lex14.l.string({ maxLength: 3 })),
767
+ reason: import_lex14.l.optional(import_lex14.l.string({ maxLength: 1024 }))
768
+ })
769
+ );
770
+ var $lxm10 = main14.nsid;
771
+ var $params10 = main14.parameters;
772
+ var $output10 = main14.output;
773
+
774
+ // src/lexicons/com/atiproto/account/tip.ts
775
+ var tip_exports = {};
776
+ __export(tip_exports, {
777
+ get: () => get_exports4,
778
+ list: () => list_exports3,
779
+ validate: () => validate_exports2
780
+ });
781
+
782
+ // src/lexicons/com/atiproto/account/tip/get.ts
783
+ var get_exports4 = {};
784
+ __export(get_exports4, {
785
+ $defs: () => get_defs_exports4,
786
+ $lxm: () => $lxm11,
787
+ $nsid: () => $nsid15,
788
+ $output: () => $output11,
789
+ $params: () => $params11,
790
+ main: () => main15
791
+ });
792
+
793
+ // src/lexicons/com/atiproto/account/tip/get.defs.ts
794
+ var get_defs_exports4 = {};
795
+ __export(get_defs_exports4, {
796
+ $lxm: () => $lxm11,
797
+ $nsid: () => $nsid15,
798
+ $output: () => $output11,
799
+ $params: () => $params11,
800
+ main: () => main15
801
+ });
802
+ var import_lex15 = require("@atproto/lex");
803
+ var $nsid15 = "com.atiproto.account.tip.get";
804
+ var main15 = import_lex15.l.query(
805
+ $nsid15,
806
+ import_lex15.l.params({
807
+ uri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" })),
808
+ sender: import_lex15.l.optional(import_lex15.l.string({ format: "did" })),
809
+ recordUri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" }))
810
+ }),
811
+ import_lex15.l.jsonPayload({
812
+ tip: import_lex15.l.ref((() => view2))
813
+ })
814
+ );
815
+ var $lxm11 = main15.nsid;
816
+ var $params11 = main15.parameters;
817
+ var $output11 = main15.output;
818
+
819
+ // src/lexicons/com/atiproto/account/tip/list.ts
820
+ var list_exports3 = {};
821
+ __export(list_exports3, {
822
+ $defs: () => list_defs_exports3,
823
+ $lxm: () => $lxm12,
824
+ $nsid: () => $nsid16,
825
+ $output: () => $output12,
826
+ $params: () => $params12,
827
+ main: () => main16
828
+ });
829
+
830
+ // src/lexicons/com/atiproto/account/tip/list.defs.ts
831
+ var list_defs_exports3 = {};
832
+ __export(list_defs_exports3, {
833
+ $lxm: () => $lxm12,
834
+ $nsid: () => $nsid16,
835
+ $output: () => $output12,
836
+ $params: () => $params12,
837
+ main: () => main16
838
+ });
839
+ var import_lex16 = require("@atproto/lex");
840
+ var $nsid16 = "com.atiproto.account.tip.list";
841
+ var main16 = import_lex16.l.query(
842
+ $nsid16,
843
+ import_lex16.l.params({
844
+ sender: import_lex16.l.optional(import_lex16.l.string({ format: "did" })),
845
+ recordUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
846
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 })),
847
+ limit: import_lex16.l.optional(
848
+ import_lex16.l.withDefault(import_lex16.l.integer({ minimum: 1, maximum: 100 }), 50)
849
+ )
850
+ }),
851
+ import_lex16.l.jsonPayload({
852
+ tips: import_lex16.l.array(import_lex16.l.ref((() => view2))),
853
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 }))
854
+ })
855
+ );
856
+ var $lxm12 = main16.nsid;
857
+ var $params12 = main16.parameters;
858
+ var $output12 = main16.output;
859
+
860
+ // src/lexicons/com/atiproto/account/tip/validate.ts
861
+ var validate_exports2 = {};
862
+ __export(validate_exports2, {
863
+ $defs: () => validate_defs_exports2,
864
+ $lxm: () => $lxm13,
865
+ $nsid: () => $nsid17,
866
+ $output: () => $output13,
867
+ $params: () => $params13,
868
+ main: () => main17
869
+ });
870
+
871
+ // src/lexicons/com/atiproto/account/tip/validate.defs.ts
872
+ var validate_defs_exports2 = {};
873
+ __export(validate_defs_exports2, {
874
+ $lxm: () => $lxm13,
875
+ $nsid: () => $nsid17,
876
+ $output: () => $output13,
877
+ $params: () => $params13,
878
+ main: () => main17
879
+ });
880
+ var import_lex17 = require("@atproto/lex");
881
+ var $nsid17 = "com.atiproto.account.tip.validate";
882
+ var main17 = import_lex17.l.query(
883
+ $nsid17,
884
+ import_lex17.l.params({
885
+ tipUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
886
+ recordUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
887
+ sender: import_lex17.l.optional(import_lex17.l.string({ format: "did" })),
888
+ amount: import_lex17.l.optional(import_lex17.l.integer())
889
+ }),
890
+ import_lex17.l.jsonPayload({
891
+ valid: import_lex17.l.boolean(),
892
+ amount: import_lex17.l.optional(import_lex17.l.integer()),
893
+ currency: import_lex17.l.optional(import_lex17.l.string({ maxLength: 3 })),
894
+ reason: import_lex17.l.optional(import_lex17.l.string({ maxLength: 1024 }))
895
+ })
896
+ );
897
+ var $lxm13 = main17.nsid;
898
+ var $params13 = main17.parameters;
899
+ var $output13 = main17.output;
900
+
639
901
  // src/lexicons/com/atiproto/authEnhanced.ts
640
902
  var authEnhanced_exports = {};
641
903
  __export(authEnhanced_exports, {
642
904
  $defs: () => authEnhanced_defs_exports,
643
- $nsid: () => $nsid12,
644
- main: () => main12
905
+ $nsid: () => $nsid18,
906
+ main: () => main18
645
907
  });
646
908
 
647
909
  // src/lexicons/com/atiproto/authEnhanced.defs.ts
648
910
  var authEnhanced_defs_exports = {};
649
911
  __export(authEnhanced_defs_exports, {
650
- $nsid: () => $nsid12,
651
- main: () => main12
912
+ $nsid: () => $nsid18,
913
+ main: () => main18
652
914
  });
653
- var import_lex12 = require("@atproto/lex");
654
- var $nsid12 = "com.atiproto.authEnhanced";
655
- var main12 = import_lex12.l.permissionSet(
656
- $nsid12,
915
+ var import_lex18 = require("@atproto/lex");
916
+ var $nsid18 = "com.atiproto.authEnhanced";
917
+ var main18 = import_lex18.l.permissionSet(
918
+ $nsid18,
657
919
  [
658
- import_lex12.l.permission("repo", {
920
+ import_lex18.l.permission("repo", {
659
921
  collection: [
660
922
  "com.atiproto.cart",
661
923
  "com.atiproto.subscription",
@@ -663,7 +925,7 @@ var main12 = import_lex12.l.permissionSet(
663
925
  "com.atiproto.profile"
664
926
  ]
665
927
  }),
666
- import_lex12.l.permission("rpc", {
928
+ import_lex18.l.permission("rpc", {
667
929
  inheritAud: true,
668
930
  lxm: [
669
931
  "com.atiproto.account.cart.clone",
@@ -673,21 +935,27 @@ var main12 = import_lex12.l.permissionSet(
673
935
  "com.atiproto.account.cart.put",
674
936
  "com.atiproto.account.profile.get",
675
937
  "com.atiproto.account.profile.put",
938
+ "com.atiproto.account.subscription.get",
939
+ "com.atiproto.account.subscription.list",
940
+ "com.atiproto.account.subscription.validate",
941
+ "com.atiproto.account.tip.get",
942
+ "com.atiproto.account.tip.list",
943
+ "com.atiproto.account.tip.validate",
676
944
  "com.atiproto.feed.list",
677
945
  "com.atiproto.feed.subscription.cancel",
678
946
  "com.atiproto.feed.subscription.create",
679
947
  "com.atiproto.feed.subscription.get",
680
948
  "com.atiproto.feed.subscription.list",
681
949
  "com.atiproto.feed.subscription.put",
950
+ "com.atiproto.feed.subscription.validate",
682
951
  "com.atiproto.feed.tip.create",
683
952
  "com.atiproto.feed.tip.get",
684
953
  "com.atiproto.feed.tip.list",
685
954
  "com.atiproto.feed.tip.put",
955
+ "com.atiproto.feed.tip.validate",
686
956
  "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"
957
+ "com.atiproto.repo.subscription.count",
958
+ "com.atiproto.repo.tip.count"
691
959
  ]
692
960
  })
693
961
  ],
@@ -701,29 +969,29 @@ var main12 = import_lex12.l.permissionSet(
701
969
  var authGeneral_exports = {};
702
970
  __export(authGeneral_exports, {
703
971
  $defs: () => authGeneral_defs_exports,
704
- $nsid: () => $nsid13,
705
- main: () => main13
972
+ $nsid: () => $nsid19,
973
+ main: () => main19
706
974
  });
707
975
 
708
976
  // src/lexicons/com/atiproto/authGeneral.defs.ts
709
977
  var authGeneral_defs_exports = {};
710
978
  __export(authGeneral_defs_exports, {
711
- $nsid: () => $nsid13,
712
- main: () => main13
979
+ $nsid: () => $nsid19,
980
+ main: () => main19
713
981
  });
714
- var import_lex13 = require("@atproto/lex");
715
- var $nsid13 = "com.atiproto.authGeneral";
716
- var main13 = import_lex13.l.permissionSet(
717
- $nsid13,
982
+ var import_lex19 = require("@atproto/lex");
983
+ var $nsid19 = "com.atiproto.authGeneral";
984
+ var main19 = import_lex19.l.permissionSet(
985
+ $nsid19,
718
986
  [
719
- import_lex13.l.permission("repo", {
987
+ import_lex19.l.permission("repo", {
720
988
  collection: [
721
989
  "com.atiproto.cart",
722
990
  "com.atiproto.subscription",
723
991
  "com.atiproto.tip"
724
992
  ]
725
993
  }),
726
- import_lex13.l.permission("rpc", {
994
+ import_lex19.l.permission("rpc", {
727
995
  inheritAud: true,
728
996
  lxm: [
729
997
  "com.atiproto.account.cart.clone",
@@ -731,21 +999,27 @@ var main13 = import_lex13.l.permissionSet(
731
999
  "com.atiproto.account.cart.get",
732
1000
  "com.atiproto.account.cart.list",
733
1001
  "com.atiproto.account.cart.put",
1002
+ "com.atiproto.account.subscription.get",
1003
+ "com.atiproto.account.subscription.list",
1004
+ "com.atiproto.account.subscription.validate",
1005
+ "com.atiproto.account.tip.get",
1006
+ "com.atiproto.account.tip.list",
1007
+ "com.atiproto.account.tip.validate",
734
1008
  "com.atiproto.feed.list",
735
1009
  "com.atiproto.feed.subscription.cancel",
736
1010
  "com.atiproto.feed.subscription.create",
737
1011
  "com.atiproto.feed.subscription.get",
738
1012
  "com.atiproto.feed.subscription.list",
739
1013
  "com.atiproto.feed.subscription.put",
1014
+ "com.atiproto.feed.subscription.validate",
740
1015
  "com.atiproto.feed.tip.create",
741
1016
  "com.atiproto.feed.tip.get",
742
1017
  "com.atiproto.feed.tip.list",
743
1018
  "com.atiproto.feed.tip.put",
1019
+ "com.atiproto.feed.tip.validate",
744
1020
  "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"
1021
+ "com.atiproto.repo.subscription.count",
1022
+ "com.atiproto.repo.tip.count"
749
1023
  ]
750
1024
  })
751
1025
  ],
@@ -780,63 +1054,64 @@ __export(cart_exports2, {
780
1054
  // src/lexicons/com/atiproto/feed.ts
781
1055
  var feed_exports = {};
782
1056
  __export(feed_exports, {
783
- list: () => list_exports2,
784
- subscription: () => subscription_exports,
785
- tip: () => tip_exports
1057
+ list: () => list_exports4,
1058
+ subscription: () => subscription_exports2,
1059
+ tip: () => tip_exports2
786
1060
  });
787
1061
 
788
1062
  // 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
1063
+ var list_exports4 = {};
1064
+ __export(list_exports4, {
1065
+ $defs: () => list_defs_exports4,
1066
+ $lxm: () => $lxm14,
1067
+ $nsid: () => $nsid20,
1068
+ $output: () => $output14,
1069
+ $params: () => $params14,
1070
+ main: () => main20
797
1071
  });
798
1072
 
799
1073
  // 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
1074
+ var list_defs_exports4 = {};
1075
+ __export(list_defs_exports4, {
1076
+ $lxm: () => $lxm14,
1077
+ $nsid: () => $nsid20,
1078
+ $output: () => $output14,
1079
+ $params: () => $params14,
1080
+ main: () => main20
807
1081
  });
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(
1082
+ var import_lex20 = require("@atproto/lex");
1083
+ var $nsid20 = "com.atiproto.feed.list";
1084
+ var main20 = import_lex20.l.query(
1085
+ $nsid20,
1086
+ import_lex20.l.params(),
1087
+ import_lex20.l.jsonPayload({
1088
+ items: import_lex20.l.array(
1089
+ import_lex20.l.typedUnion(
816
1090
  [
817
- import_lex14.l.typedRef((() => main2)),
818
- import_lex14.l.typedRef(
1091
+ import_lex20.l.typedRef((() => main2)),
1092
+ import_lex20.l.typedRef(
819
1093
  (() => main3)
820
1094
  )
821
1095
  ],
822
1096
  false
823
1097
  )
824
1098
  ),
825
- cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 }))
1099
+ cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 }))
826
1100
  })
827
1101
  );
828
- var $lxm8 = main14.nsid;
829
- var $params8 = main14.parameters;
830
- var $output8 = main14.output;
1102
+ var $lxm14 = main20.nsid;
1103
+ var $params14 = main20.parameters;
1104
+ var $output14 = main20.output;
831
1105
 
832
1106
  // src/lexicons/com/atiproto/feed/subscription.ts
833
- var subscription_exports = {};
834
- __export(subscription_exports, {
1107
+ var subscription_exports2 = {};
1108
+ __export(subscription_exports2, {
835
1109
  cancel: () => cancel_exports,
836
1110
  create: () => create_exports2,
837
- get: () => get_exports3,
838
- list: () => list_exports3,
839
- put: () => put_exports3
1111
+ get: () => get_exports5,
1112
+ list: () => list_exports5,
1113
+ put: () => put_exports3,
1114
+ validate: () => validate_exports3
840
1115
  });
841
1116
 
842
1117
  // src/lexicons/com/atiproto/feed/subscription/cancel.ts
@@ -844,174 +1119,175 @@ var cancel_exports = {};
844
1119
  __export(cancel_exports, {
845
1120
  $defs: () => cancel_defs_exports,
846
1121
  $input: () => $input5,
847
- $lxm: () => $lxm9,
848
- $nsid: () => $nsid15,
849
- $output: () => $output9,
850
- $params: () => $params9,
851
- main: () => main15
1122
+ $lxm: () => $lxm15,
1123
+ $nsid: () => $nsid21,
1124
+ $output: () => $output15,
1125
+ $params: () => $params15,
1126
+ main: () => main21
852
1127
  });
853
1128
 
854
1129
  // src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
855
1130
  var cancel_defs_exports = {};
856
1131
  __export(cancel_defs_exports, {
857
1132
  $input: () => $input5,
858
- $lxm: () => $lxm9,
859
- $nsid: () => $nsid15,
860
- $output: () => $output9,
861
- $params: () => $params9,
862
- main: () => main15
1133
+ $lxm: () => $lxm15,
1134
+ $nsid: () => $nsid21,
1135
+ $output: () => $output15,
1136
+ $params: () => $params15,
1137
+ main: () => main21
863
1138
  });
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(
1139
+ var import_lex21 = require("@atproto/lex");
1140
+ var $nsid21 = "com.atiproto.feed.subscription.cancel";
1141
+ var main21 = import_lex21.l.procedure(
1142
+ $nsid21,
1143
+ import_lex21.l.params(),
1144
+ import_lex21.l.jsonPayload({ subscriptionUri: import_lex21.l.string({ format: "at-uri" }) }),
1145
+ import_lex21.l.jsonPayload({
1146
+ subscriptionUri: import_lex21.l.string({ format: "at-uri" }),
1147
+ subscription: import_lex21.l.ref(
873
1148
  (() => view3)
874
1149
  ),
875
- accessUntil: import_lex15.l.string({ format: "datetime" })
1150
+ accessUntil: import_lex21.l.string({ format: "datetime" })
876
1151
  })
877
1152
  );
878
- var $lxm9 = main15.nsid;
879
- var $params9 = main15.parameters;
880
- var $input5 = main15.input;
881
- var $output9 = main15.output;
1153
+ var $lxm15 = main21.nsid;
1154
+ var $params15 = main21.parameters;
1155
+ var $input5 = main21.input;
1156
+ var $output15 = main21.output;
882
1157
 
883
1158
  // src/lexicons/com/atiproto/feed/subscription/create.ts
884
1159
  var create_exports2 = {};
885
1160
  __export(create_exports2, {
886
1161
  $defs: () => create_defs_exports2,
887
1162
  $input: () => $input6,
888
- $lxm: () => $lxm10,
889
- $nsid: () => $nsid16,
890
- $output: () => $output10,
891
- $params: () => $params10,
892
- main: () => main16
1163
+ $lxm: () => $lxm16,
1164
+ $nsid: () => $nsid22,
1165
+ $output: () => $output16,
1166
+ $params: () => $params16,
1167
+ main: () => main22
893
1168
  });
894
1169
 
895
1170
  // src/lexicons/com/atiproto/feed/subscription/create.defs.ts
896
1171
  var create_defs_exports2 = {};
897
1172
  __export(create_defs_exports2, {
898
1173
  $input: () => $input6,
899
- $lxm: () => $lxm10,
900
- $nsid: () => $nsid16,
901
- $output: () => $output10,
902
- $params: () => $params10,
903
- main: () => main16
1174
+ $lxm: () => $lxm16,
1175
+ $nsid: () => $nsid22,
1176
+ $output: () => $output16,
1177
+ $params: () => $params16,
1178
+ main: () => main22
904
1179
  });
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" }))
1180
+ var import_lex22 = require("@atproto/lex");
1181
+ var $nsid22 = "com.atiproto.feed.subscription.create";
1182
+ var main22 = import_lex22.l.procedure(
1183
+ $nsid22,
1184
+ import_lex22.l.params(),
1185
+ import_lex22.l.jsonPayload({
1186
+ subject: import_lex22.l.string({ format: "did" }),
1187
+ amount: import_lex22.l.optional(import_lex22.l.integer()),
1188
+ currency: import_lex22.l.string({ maxLength: 3 }),
1189
+ interval: import_lex22.l.enum(["monthly", "yearly"]),
1190
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1191
+ redirectUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" })),
1192
+ isPrivate: import_lex22.l.optional(import_lex22.l.boolean())
917
1193
  }),
918
- import_lex16.l.jsonPayload({
919
- subscriptionUri: import_lex16.l.string({ format: "at-uri" }),
920
- subscription: import_lex16.l.ref(
1194
+ import_lex22.l.jsonPayload({
1195
+ subscriptionUri: import_lex22.l.string({ format: "at-uri" }),
1196
+ subscription: import_lex22.l.ref(
921
1197
  (() => view3)
922
1198
  ),
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))
1199
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1200
+ cart: import_lex22.l.optional(
1201
+ import_lex22.l.ref((() => view))
926
1202
  ),
927
- checkoutUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
1203
+ checkoutUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" }))
928
1204
  })
929
1205
  );
930
- var $lxm10 = main16.nsid;
931
- var $params10 = main16.parameters;
932
- var $input6 = main16.input;
933
- var $output10 = main16.output;
1206
+ var $lxm16 = main22.nsid;
1207
+ var $params16 = main22.parameters;
1208
+ var $input6 = main22.input;
1209
+ var $output16 = main22.output;
934
1210
 
935
1211
  // 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
1212
+ var get_exports5 = {};
1213
+ __export(get_exports5, {
1214
+ $defs: () => get_defs_exports5,
1215
+ $lxm: () => $lxm17,
1216
+ $nsid: () => $nsid23,
1217
+ $output: () => $output17,
1218
+ $params: () => $params17,
1219
+ main: () => main23
944
1220
  });
945
1221
 
946
1222
  // 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
1223
+ var get_defs_exports5 = {};
1224
+ __export(get_defs_exports5, {
1225
+ $lxm: () => $lxm17,
1226
+ $nsid: () => $nsid23,
1227
+ $output: () => $output17,
1228
+ $params: () => $params17,
1229
+ main: () => main23
954
1230
  });
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(
1231
+ var import_lex23 = require("@atproto/lex");
1232
+ var $nsid23 = "com.atiproto.feed.subscription.get";
1233
+ var main23 = import_lex23.l.query(
1234
+ $nsid23,
1235
+ import_lex23.l.params({ uri: import_lex23.l.string({ format: "at-uri" }) }),
1236
+ import_lex23.l.jsonPayload({
1237
+ uri: import_lex23.l.string({ format: "at-uri" }),
1238
+ cid: import_lex23.l.string({ format: "cid" }),
1239
+ record: import_lex23.l.ref(
964
1240
  (() => view3)
965
1241
  )
966
1242
  })
967
1243
  );
968
- var $lxm11 = main17.nsid;
969
- var $params11 = main17.parameters;
970
- var $output11 = main17.output;
1244
+ var $lxm17 = main23.nsid;
1245
+ var $params17 = main23.parameters;
1246
+ var $output17 = main23.output;
971
1247
 
972
1248
  // 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,
1249
+ var list_exports5 = {};
1250
+ __export(list_exports5, {
1251
+ $defs: () => list_defs_exports5,
1252
+ $lxm: () => $lxm18,
1253
+ $nsid: () => $nsid24,
1254
+ $output: () => $output18,
1255
+ $params: () => $params18,
1256
+ main: () => main24,
981
1257
  subscriptionResponse: () => subscriptionResponse
982
1258
  });
983
1259
 
984
1260
  // 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,
1261
+ var list_defs_exports5 = {};
1262
+ __export(list_defs_exports5, {
1263
+ $lxm: () => $lxm18,
1264
+ $nsid: () => $nsid24,
1265
+ $output: () => $output18,
1266
+ $params: () => $params18,
1267
+ main: () => main24,
992
1268
  subscriptionResponse: () => subscriptionResponse
993
1269
  });
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))
1270
+ var import_lex24 = require("@atproto/lex");
1271
+ var $nsid24 = "com.atiproto.feed.subscription.list";
1272
+ var main24 = import_lex24.l.query(
1273
+ $nsid24,
1274
+ import_lex24.l.params(),
1275
+ import_lex24.l.jsonPayload({
1276
+ subscriptions: import_lex24.l.array(
1277
+ import_lex24.l.ref((() => subscriptionResponse))
1002
1278
  ),
1003
- cursor: import_lex18.l.optional(import_lex18.l.string({ maxLength: 512 }))
1279
+ cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 }))
1004
1280
  })
1005
1281
  );
1006
- var $lxm12 = main18.nsid;
1007
- var $params12 = main18.parameters;
1008
- var $output12 = main18.output;
1009
- var subscriptionResponse = import_lex18.l.typedObject(
1010
- $nsid18,
1282
+ var $lxm18 = main24.nsid;
1283
+ var $params18 = main24.parameters;
1284
+ var $output18 = main24.output;
1285
+ var subscriptionResponse = import_lex24.l.typedObject(
1286
+ $nsid24,
1011
1287
  "subscriptionResponse",
1012
- import_lex18.l.object({
1013
- uri: import_lex18.l.string({ format: "at-uri" }),
1014
- record: import_lex18.l.ref(
1288
+ import_lex24.l.object({
1289
+ uri: import_lex24.l.string({ format: "at-uri" }),
1290
+ record: import_lex24.l.ref(
1015
1291
  (() => view3)
1016
1292
  )
1017
1293
  })
@@ -1022,51 +1298,92 @@ var put_exports3 = {};
1022
1298
  __export(put_exports3, {
1023
1299
  $defs: () => put_defs_exports3,
1024
1300
  $input: () => $input7,
1025
- $lxm: () => $lxm13,
1026
- $nsid: () => $nsid19,
1027
- $output: () => $output13,
1028
- $params: () => $params13,
1029
- main: () => main19
1301
+ $lxm: () => $lxm19,
1302
+ $nsid: () => $nsid25,
1303
+ $output: () => $output19,
1304
+ $params: () => $params19,
1305
+ main: () => main25
1030
1306
  });
1031
1307
 
1032
1308
  // src/lexicons/com/atiproto/feed/subscription/put.defs.ts
1033
1309
  var put_defs_exports3 = {};
1034
1310
  __export(put_defs_exports3, {
1035
1311
  $input: () => $input7,
1036
- $lxm: () => $lxm13,
1037
- $nsid: () => $nsid19,
1038
- $output: () => $output13,
1039
- $params: () => $params13,
1040
- main: () => main19
1312
+ $lxm: () => $lxm19,
1313
+ $nsid: () => $nsid25,
1314
+ $output: () => $output19,
1315
+ $params: () => $params19,
1316
+ main: () => main25
1041
1317
  });
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(
1318
+ var import_lex25 = require("@atproto/lex");
1319
+ var $nsid25 = "com.atiproto.feed.subscription.put";
1320
+ var main25 = import_lex25.l.procedure(
1321
+ $nsid25,
1322
+ import_lex25.l.params(),
1323
+ import_lex25.l.jsonPayload({
1324
+ uri: import_lex25.l.string({ format: "at-uri" }),
1325
+ record: import_lex25.l.ref(
1050
1326
  (() => main3)
1051
1327
  )
1052
1328
  }),
1053
- import_lex19.l.jsonPayload({
1054
- uri: import_lex19.l.string({ format: "at-uri" }),
1055
- cid: import_lex19.l.string({ format: "cid" })
1329
+ import_lex25.l.jsonPayload({
1330
+ uri: import_lex25.l.string({ format: "at-uri" }),
1331
+ cid: import_lex25.l.string({ format: "cid" })
1332
+ })
1333
+ );
1334
+ var $lxm19 = main25.nsid;
1335
+ var $params19 = main25.parameters;
1336
+ var $input7 = main25.input;
1337
+ var $output19 = main25.output;
1338
+
1339
+ // src/lexicons/com/atiproto/feed/subscription/validate.ts
1340
+ var validate_exports3 = {};
1341
+ __export(validate_exports3, {
1342
+ $defs: () => validate_defs_exports3,
1343
+ $lxm: () => $lxm20,
1344
+ $nsid: () => $nsid26,
1345
+ $output: () => $output20,
1346
+ $params: () => $params20,
1347
+ main: () => main26
1348
+ });
1349
+
1350
+ // src/lexicons/com/atiproto/feed/subscription/validate.defs.ts
1351
+ var validate_defs_exports3 = {};
1352
+ __export(validate_defs_exports3, {
1353
+ $lxm: () => $lxm20,
1354
+ $nsid: () => $nsid26,
1355
+ $output: () => $output20,
1356
+ $params: () => $params20,
1357
+ main: () => main26
1358
+ });
1359
+ var import_lex26 = require("@atproto/lex");
1360
+ var $nsid26 = "com.atiproto.feed.subscription.validate";
1361
+ var main26 = import_lex26.l.query(
1362
+ $nsid26,
1363
+ import_lex26.l.params({
1364
+ subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1365
+ subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1366
+ amount: import_lex26.l.optional(import_lex26.l.integer())
1367
+ }),
1368
+ import_lex26.l.jsonPayload({
1369
+ valid: import_lex26.l.boolean(),
1370
+ amount: import_lex26.l.optional(import_lex26.l.integer()),
1371
+ currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
1372
+ reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
1056
1373
  })
1057
1374
  );
1058
- var $lxm13 = main19.nsid;
1059
- var $params13 = main19.parameters;
1060
- var $input7 = main19.input;
1061
- var $output13 = main19.output;
1375
+ var $lxm20 = main26.nsid;
1376
+ var $params20 = main26.parameters;
1377
+ var $output20 = main26.output;
1062
1378
 
1063
1379
  // src/lexicons/com/atiproto/feed/tip.ts
1064
- var tip_exports = {};
1065
- __export(tip_exports, {
1380
+ var tip_exports2 = {};
1381
+ __export(tip_exports2, {
1066
1382
  create: () => create_exports3,
1067
- get: () => get_exports4,
1068
- list: () => list_exports4,
1069
- put: () => put_exports4
1383
+ get: () => get_exports6,
1384
+ list: () => list_exports6,
1385
+ put: () => put_exports4,
1386
+ validate: () => validate_exports4
1070
1387
  });
1071
1388
 
1072
1389
  // src/lexicons/com/atiproto/feed/tip/create.ts
@@ -1074,161 +1391,203 @@ var create_exports3 = {};
1074
1391
  __export(create_exports3, {
1075
1392
  $defs: () => create_defs_exports3,
1076
1393
  $input: () => $input8,
1077
- $lxm: () => $lxm14,
1078
- $nsid: () => $nsid20,
1079
- $output: () => $output14,
1080
- $params: () => $params14,
1081
- main: () => main20
1394
+ $lxm: () => $lxm21,
1395
+ $nsid: () => $nsid27,
1396
+ $output: () => $output21,
1397
+ $params: () => $params21,
1398
+ main: () => main27
1082
1399
  });
1083
1400
 
1084
1401
  // src/lexicons/com/atiproto/feed/tip/create.defs.ts
1085
1402
  var create_defs_exports3 = {};
1086
1403
  __export(create_defs_exports3, {
1087
1404
  $input: () => $input8,
1088
- $lxm: () => $lxm14,
1089
- $nsid: () => $nsid20,
1090
- $output: () => $output14,
1091
- $params: () => $params14,
1092
- main: () => main20
1405
+ $lxm: () => $lxm21,
1406
+ $nsid: () => $nsid27,
1407
+ $output: () => $output21,
1408
+ $params: () => $params21,
1409
+ main: () => main27
1093
1410
  });
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 }))
1411
+ var import_lex27 = require("@atproto/lex");
1412
+ var $nsid27 = "com.atiproto.feed.tip.create";
1413
+ var main27 = import_lex27.l.procedure(
1414
+ $nsid27,
1415
+ import_lex27.l.params(),
1416
+ import_lex27.l.jsonPayload({
1417
+ subject: import_lex27.l.string({ format: "did" }),
1418
+ recordUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1419
+ amount: import_lex27.l.integer(),
1420
+ currency: import_lex27.l.string({ maxLength: 3 }),
1421
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1422
+ redirectUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" })),
1423
+ message: import_lex27.l.optional(import_lex27.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
1424
+ isPrivate: import_lex27.l.optional(import_lex27.l.boolean())
1107
1425
  }),
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))
1426
+ import_lex27.l.jsonPayload({
1427
+ tipUri: import_lex27.l.string({ format: "at-uri" }),
1428
+ tip: import_lex27.l.ref((() => view2)),
1429
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1430
+ cart: import_lex27.l.optional(
1431
+ import_lex27.l.ref((() => view))
1114
1432
  ),
1115
- checkoutUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" }))
1433
+ checkoutUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" }))
1116
1434
  })
1117
1435
  );
1118
- var $lxm14 = main20.nsid;
1119
- var $params14 = main20.parameters;
1120
- var $input8 = main20.input;
1121
- var $output14 = main20.output;
1436
+ var $lxm21 = main27.nsid;
1437
+ var $params21 = main27.parameters;
1438
+ var $input8 = main27.input;
1439
+ var $output21 = main27.output;
1122
1440
 
1123
1441
  // 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
1442
+ var get_exports6 = {};
1443
+ __export(get_exports6, {
1444
+ $defs: () => get_defs_exports6,
1445
+ $lxm: () => $lxm22,
1446
+ $nsid: () => $nsid28,
1447
+ $output: () => $output22,
1448
+ $params: () => $params22,
1449
+ main: () => main28
1132
1450
  });
1133
1451
 
1134
1452
  // 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
1453
+ var get_defs_exports6 = {};
1454
+ __export(get_defs_exports6, {
1455
+ $lxm: () => $lxm22,
1456
+ $nsid: () => $nsid28,
1457
+ $output: () => $output22,
1458
+ $params: () => $params22,
1459
+ main: () => main28
1142
1460
  });
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))
1461
+ var import_lex28 = require("@atproto/lex");
1462
+ var $nsid28 = "com.atiproto.feed.tip.get";
1463
+ var main28 = import_lex28.l.query(
1464
+ $nsid28,
1465
+ import_lex28.l.params({ uri: import_lex28.l.string({ format: "at-uri" }) }),
1466
+ import_lex28.l.jsonPayload({
1467
+ uri: import_lex28.l.string({ format: "at-uri" }),
1468
+ cid: import_lex28.l.string({ format: "cid" }),
1469
+ value: import_lex28.l.ref((() => view2))
1152
1470
  })
1153
1471
  );
1154
- var $lxm15 = main21.nsid;
1155
- var $params15 = main21.parameters;
1156
- var $output15 = main21.output;
1472
+ var $lxm22 = main28.nsid;
1473
+ var $params22 = main28.parameters;
1474
+ var $output22 = main28.output;
1157
1475
 
1158
1476
  // 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
1477
+ var list_exports6 = {};
1478
+ __export(list_exports6, {
1479
+ $defs: () => list_defs_exports6,
1480
+ $lxm: () => $lxm23,
1481
+ $nsid: () => $nsid29,
1482
+ $output: () => $output23,
1483
+ $params: () => $params23,
1484
+ main: () => main29
1167
1485
  });
1168
1486
 
1169
1487
  // 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 }))
1488
+ var list_defs_exports6 = {};
1489
+ __export(list_defs_exports6, {
1490
+ $lxm: () => $lxm23,
1491
+ $nsid: () => $nsid29,
1492
+ $output: () => $output23,
1493
+ $params: () => $params23,
1494
+ main: () => main29
1495
+ });
1496
+ var import_lex29 = require("@atproto/lex");
1497
+ var $nsid29 = "com.atiproto.feed.tip.list";
1498
+ var main29 = import_lex29.l.query(
1499
+ $nsid29,
1500
+ import_lex29.l.params(),
1501
+ import_lex29.l.jsonPayload({
1502
+ records: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1503
+ cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
1186
1504
  })
1187
1505
  );
1188
- var $lxm16 = main22.nsid;
1189
- var $params16 = main22.parameters;
1190
- var $output16 = main22.output;
1506
+ var $lxm23 = main29.nsid;
1507
+ var $params23 = main29.parameters;
1508
+ var $output23 = main29.output;
1191
1509
 
1192
1510
  // src/lexicons/com/atiproto/feed/tip/put.ts
1193
1511
  var put_exports4 = {};
1194
1512
  __export(put_exports4, {
1195
1513
  $defs: () => put_defs_exports4,
1196
1514
  $input: () => $input9,
1197
- $lxm: () => $lxm17,
1198
- $nsid: () => $nsid23,
1199
- $output: () => $output17,
1200
- $params: () => $params17,
1201
- main: () => main23
1515
+ $lxm: () => $lxm24,
1516
+ $nsid: () => $nsid30,
1517
+ $output: () => $output24,
1518
+ $params: () => $params24,
1519
+ main: () => main30
1202
1520
  });
1203
1521
 
1204
1522
  // src/lexicons/com/atiproto/feed/tip/put.defs.ts
1205
1523
  var put_defs_exports4 = {};
1206
1524
  __export(put_defs_exports4, {
1207
1525
  $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))
1526
+ $lxm: () => $lxm24,
1527
+ $nsid: () => $nsid30,
1528
+ $output: () => $output24,
1529
+ $params: () => $params24,
1530
+ main: () => main30
1531
+ });
1532
+ var import_lex30 = require("@atproto/lex");
1533
+ var $nsid30 = "com.atiproto.feed.tip.put";
1534
+ var main30 = import_lex30.l.procedure(
1535
+ $nsid30,
1536
+ import_lex30.l.params(),
1537
+ import_lex30.l.jsonPayload({
1538
+ uri: import_lex30.l.string({ format: "at-uri" }),
1539
+ record: import_lex30.l.ref((() => main2))
1222
1540
  }),
1223
- import_lex23.l.jsonPayload({
1224
- uri: import_lex23.l.string({ format: "at-uri" }),
1225
- cid: import_lex23.l.string({ format: "cid" })
1541
+ import_lex30.l.jsonPayload({
1542
+ uri: import_lex30.l.string({ format: "at-uri" }),
1543
+ cid: import_lex30.l.string({ format: "cid" })
1226
1544
  })
1227
1545
  );
1228
- var $lxm17 = main23.nsid;
1229
- var $params17 = main23.parameters;
1230
- var $input9 = main23.input;
1231
- var $output17 = main23.output;
1546
+ var $lxm24 = main30.nsid;
1547
+ var $params24 = main30.parameters;
1548
+ var $input9 = main30.input;
1549
+ var $output24 = main30.output;
1550
+
1551
+ // src/lexicons/com/atiproto/feed/tip/validate.ts
1552
+ var validate_exports4 = {};
1553
+ __export(validate_exports4, {
1554
+ $defs: () => validate_defs_exports4,
1555
+ $lxm: () => $lxm25,
1556
+ $nsid: () => $nsid31,
1557
+ $output: () => $output25,
1558
+ $params: () => $params25,
1559
+ main: () => main31
1560
+ });
1561
+
1562
+ // src/lexicons/com/atiproto/feed/tip/validate.defs.ts
1563
+ var validate_defs_exports4 = {};
1564
+ __export(validate_defs_exports4, {
1565
+ $lxm: () => $lxm25,
1566
+ $nsid: () => $nsid31,
1567
+ $output: () => $output25,
1568
+ $params: () => $params25,
1569
+ main: () => main31
1570
+ });
1571
+ var import_lex31 = require("@atproto/lex");
1572
+ var $nsid31 = "com.atiproto.feed.tip.validate";
1573
+ var main31 = import_lex31.l.query(
1574
+ $nsid31,
1575
+ import_lex31.l.params({
1576
+ tipUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1577
+ recordUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1578
+ subject: import_lex31.l.optional(import_lex31.l.string({ format: "did" })),
1579
+ amount: import_lex31.l.optional(import_lex31.l.integer())
1580
+ }),
1581
+ import_lex31.l.jsonPayload({
1582
+ valid: import_lex31.l.boolean(),
1583
+ amount: import_lex31.l.optional(import_lex31.l.integer()),
1584
+ currency: import_lex31.l.optional(import_lex31.l.string({ maxLength: 3 })),
1585
+ reason: import_lex31.l.optional(import_lex31.l.string({ maxLength: 1024 }))
1586
+ })
1587
+ );
1588
+ var $lxm25 = main31.nsid;
1589
+ var $params25 = main31.parameters;
1590
+ var $output25 = main31.output;
1232
1591
 
1233
1592
  // src/lexicons/com/atiproto/profile.ts
1234
1593
  var profile_exports2 = {};
@@ -1255,254 +1614,144 @@ __export(profile_exports2, {
1255
1614
  var repo_exports = {};
1256
1615
  __export(repo_exports, {
1257
1616
  profile: () => profile_exports3,
1258
- subscription: () => subscription_exports2,
1259
- tip: () => tip_exports2
1617
+ subscription: () => subscription_exports3,
1618
+ tip: () => tip_exports3
1260
1619
  });
1261
1620
 
1262
1621
  // src/lexicons/com/atiproto/repo/profile.ts
1263
1622
  var profile_exports3 = {};
1264
1623
  __export(profile_exports3, {
1265
- get: () => get_exports5
1624
+ get: () => get_exports7
1266
1625
  });
1267
1626
 
1268
1627
  // 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
1628
+ var get_exports7 = {};
1629
+ __export(get_exports7, {
1630
+ $defs: () => get_defs_exports7,
1631
+ $lxm: () => $lxm26,
1632
+ $nsid: () => $nsid32,
1633
+ $output: () => $output26,
1634
+ $params: () => $params26,
1635
+ main: () => main32
1277
1636
  });
1278
1637
 
1279
1638
  // 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))
1639
+ var get_defs_exports7 = {};
1640
+ __export(get_defs_exports7, {
1641
+ $lxm: () => $lxm26,
1642
+ $nsid: () => $nsid32,
1643
+ $output: () => $output26,
1644
+ $params: () => $params26,
1645
+ main: () => main32
1646
+ });
1647
+ var import_lex32 = require("@atproto/lex");
1648
+ var $nsid32 = "com.atiproto.repo.profile.get";
1649
+ var main32 = import_lex32.l.query(
1650
+ $nsid32,
1651
+ import_lex32.l.params({ did: import_lex32.l.string({ format: "did" }) }),
1652
+ import_lex32.l.jsonPayload({
1653
+ did: import_lex32.l.string({ format: "did" }),
1654
+ profile: import_lex32.l.ref((() => view4))
1296
1655
  })
1297
1656
  );
1298
- var $lxm18 = main24.nsid;
1299
- var $params18 = main24.parameters;
1300
- var $output18 = main24.output;
1657
+ var $lxm26 = main32.nsid;
1658
+ var $params26 = main32.parameters;
1659
+ var $output26 = main32.output;
1301
1660
 
1302
1661
  // 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())
1662
+ var subscription_exports3 = {};
1663
+ __export(subscription_exports3, {
1664
+ count: () => count_exports
1665
+ });
1666
+
1667
+ // src/lexicons/com/atiproto/repo/subscription/count.ts
1668
+ var count_exports = {};
1669
+ __export(count_exports, {
1670
+ $defs: () => count_defs_exports,
1671
+ $lxm: () => $lxm27,
1672
+ $nsid: () => $nsid33,
1673
+ $output: () => $output27,
1674
+ $params: () => $params27,
1675
+ main: () => main33
1676
+ });
1677
+
1678
+ // src/lexicons/com/atiproto/repo/subscription/count.defs.ts
1679
+ var count_defs_exports = {};
1680
+ __export(count_defs_exports, {
1681
+ $lxm: () => $lxm27,
1682
+ $nsid: () => $nsid33,
1683
+ $output: () => $output27,
1684
+ $params: () => $params27,
1685
+ main: () => main33
1686
+ });
1687
+ var import_lex33 = require("@atproto/lex");
1688
+ var $nsid33 = "com.atiproto.repo.subscription.count";
1689
+ var main33 = import_lex33.l.query(
1690
+ $nsid33,
1691
+ import_lex33.l.params({
1692
+ subject: import_lex33.l.optional(import_lex33.l.string({ format: "did" })),
1693
+ startDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" })),
1694
+ endDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" }))
1392
1695
  }),
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 }))
1696
+ import_lex33.l.jsonPayload({
1697
+ count: import_lex33.l.integer(),
1698
+ amount: import_lex33.l.optional(import_lex33.l.integer()),
1699
+ currency: import_lex33.l.optional(import_lex33.l.string({ maxLength: 3 }))
1398
1700
  })
1399
1701
  );
1400
- var $lxm20 = main26.nsid;
1401
- var $params20 = main26.parameters;
1402
- var $output20 = main26.output;
1702
+ var $lxm27 = main33.nsid;
1703
+ var $params27 = main33.parameters;
1704
+ var $output27 = main33.output;
1403
1705
 
1404
1706
  // 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())
1707
+ var tip_exports3 = {};
1708
+ __export(tip_exports3, {
1709
+ count: () => count_exports2
1710
+ });
1711
+
1712
+ // src/lexicons/com/atiproto/repo/tip/count.ts
1713
+ var count_exports2 = {};
1714
+ __export(count_exports2, {
1715
+ $defs: () => count_defs_exports2,
1716
+ $lxm: () => $lxm28,
1717
+ $nsid: () => $nsid34,
1718
+ $output: () => $output28,
1719
+ $params: () => $params28,
1720
+ main: () => main34
1721
+ });
1722
+
1723
+ // src/lexicons/com/atiproto/repo/tip/count.defs.ts
1724
+ var count_defs_exports2 = {};
1725
+ __export(count_defs_exports2, {
1726
+ $lxm: () => $lxm28,
1727
+ $nsid: () => $nsid34,
1728
+ $output: () => $output28,
1729
+ $params: () => $params28,
1730
+ main: () => main34
1731
+ });
1732
+ var import_lex34 = require("@atproto/lex");
1733
+ var $nsid34 = "com.atiproto.repo.tip.count";
1734
+ var main34 = import_lex34.l.query(
1735
+ $nsid34,
1736
+ import_lex34.l.params({
1737
+ recordUri: import_lex34.l.optional(import_lex34.l.string({ format: "at-uri" })),
1738
+ subject: import_lex34.l.optional(import_lex34.l.string({ format: "did" })),
1739
+ startDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" })),
1740
+ endDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" }))
1491
1741
  }),
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 }))
1742
+ import_lex34.l.jsonPayload({
1743
+ count: import_lex34.l.integer(),
1744
+ amount: import_lex34.l.optional(import_lex34.l.integer()),
1745
+ currency: import_lex34.l.optional(import_lex34.l.string({ maxLength: 3 }))
1497
1746
  })
1498
1747
  );
1499
- var $lxm22 = main28.nsid;
1500
- var $params22 = main28.parameters;
1501
- var $output22 = main28.output;
1748
+ var $lxm28 = main34.nsid;
1749
+ var $params28 = main34.parameters;
1750
+ var $output28 = main34.output;
1502
1751
 
1503
1752
  // src/lexicons/com/atiproto/subscription.ts
1504
- var subscription_exports3 = {};
1505
- __export(subscription_exports3, {
1753
+ var subscription_exports4 = {};
1754
+ __export(subscription_exports4, {
1506
1755
  $assert: () => $assert3,
1507
1756
  $build: () => $build3,
1508
1757
  $cast: () => $cast3,
@@ -1522,8 +1771,8 @@ __export(subscription_exports3, {
1522
1771
  });
1523
1772
 
1524
1773
  // src/lexicons/com/atiproto/tip.ts
1525
- var tip_exports3 = {};
1526
- __export(tip_exports3, {
1774
+ var tip_exports4 = {};
1775
+ __export(tip_exports4, {
1527
1776
  $assert: () => $assert2,
1528
1777
  $build: () => $build2,
1529
1778
  $cast: () => $cast2,
@@ -1619,29 +1868,325 @@ var clone_default = {
1619
1868
  }
1620
1869
  };
1621
1870
 
1622
- // src/schemas/account/cart/create.json
1623
- var create_default = {
1871
+ // src/schemas/account/cart/create.json
1872
+ var create_default = {
1873
+ lexicon: 1,
1874
+ id: "com.atiproto.account.cart.create",
1875
+ defs: {
1876
+ main: {
1877
+ type: "procedure",
1878
+ description: "Create a new empty cart",
1879
+ input: {
1880
+ encoding: "application/json",
1881
+ schema: {
1882
+ type: "object",
1883
+ required: ["currency"],
1884
+ properties: {
1885
+ currency: {
1886
+ type: "string",
1887
+ maxLength: 3,
1888
+ description: "ISO 4217 currency code"
1889
+ },
1890
+ redirectUrl: {
1891
+ type: "string",
1892
+ format: "uri",
1893
+ description: "URI to redirect to after checkout is complete/cancelled"
1894
+ }
1895
+ }
1896
+ }
1897
+ },
1898
+ output: {
1899
+ encoding: "application/json",
1900
+ schema: {
1901
+ type: "object",
1902
+ required: ["cart", "cartUri", "checkoutUrl"],
1903
+ properties: {
1904
+ cart: {
1905
+ type: "ref",
1906
+ ref: "com.atiproto.cart#view",
1907
+ description: "The created cart record"
1908
+ },
1909
+ cartUri: {
1910
+ type: "string",
1911
+ format: "at-uri",
1912
+ description: "URI of the cart record"
1913
+ },
1914
+ checkoutUrl: {
1915
+ type: "string",
1916
+ format: "uri",
1917
+ description: "Checkout URL hosted by atiproto"
1918
+ }
1919
+ }
1920
+ }
1921
+ }
1922
+ }
1923
+ }
1924
+ };
1925
+
1926
+ // src/schemas/account/cart/get.json
1927
+ var get_default = {
1928
+ lexicon: 1,
1929
+ id: "com.atiproto.account.cart.get",
1930
+ defs: {
1931
+ main: {
1932
+ type: "query",
1933
+ description: "Get a specific cart by URI, including resolved tip and subscription records",
1934
+ parameters: {
1935
+ type: "params",
1936
+ required: ["uri"],
1937
+ properties: {
1938
+ uri: {
1939
+ type: "string",
1940
+ format: "at-uri",
1941
+ description: "AT-URI of the cart record"
1942
+ }
1943
+ }
1944
+ },
1945
+ output: {
1946
+ encoding: "application/json",
1947
+ schema: {
1948
+ type: "object",
1949
+ required: ["uri", "cart", "tips", "subscriptions"],
1950
+ properties: {
1951
+ uri: {
1952
+ type: "string",
1953
+ format: "at-uri",
1954
+ description: "Cart record URI"
1955
+ },
1956
+ cid: {
1957
+ type: "string",
1958
+ format: "cid",
1959
+ description: "Cart record CID"
1960
+ },
1961
+ cart: {
1962
+ type: "ref",
1963
+ ref: "com.atiproto.cart#view",
1964
+ description: "The cart record data"
1965
+ },
1966
+ checkoutUrl: {
1967
+ type: "string",
1968
+ format: "uri",
1969
+ description: "Checkout URL, only present when cart status is open"
1970
+ },
1971
+ tips: {
1972
+ type: "array",
1973
+ items: {
1974
+ type: "ref",
1975
+ ref: "com.atiproto.tip#view"
1976
+ },
1977
+ description: "Resolved tip records referenced by this cart"
1978
+ },
1979
+ subscriptions: {
1980
+ type: "array",
1981
+ items: {
1982
+ type: "ref",
1983
+ ref: "com.atiproto.subscription#view"
1984
+ },
1985
+ description: "Resolved subscription records referenced by this cart"
1986
+ }
1987
+ }
1988
+ }
1989
+ }
1990
+ }
1991
+ }
1992
+ };
1993
+
1994
+ // src/schemas/account/cart/list.json
1995
+ var list_default = {
1996
+ lexicon: 1,
1997
+ id: "com.atiproto.account.cart.list",
1998
+ defs: {
1999
+ main: {
2000
+ type: "query",
2001
+ description: "List carts for the authenticated user",
2002
+ input: {
2003
+ encoding: "application/json",
2004
+ schema: {
2005
+ type: "object",
2006
+ properties: {
2007
+ status: {
2008
+ type: "string",
2009
+ maxLength: 64,
2010
+ enum: ["open", "completed", "expired", "abandoned"],
2011
+ description: "Filter by cart status"
2012
+ },
2013
+ cursor: {
2014
+ type: "string",
2015
+ maxLength: 512,
2016
+ description: "Pagination cursor"
2017
+ },
2018
+ limit: {
2019
+ type: "integer",
2020
+ default: 20,
2021
+ minimum: 1,
2022
+ maximum: 100,
2023
+ description: "Results per page (1-100, default: 20)"
2024
+ }
2025
+ }
2026
+ }
2027
+ },
2028
+ output: {
2029
+ encoding: "application/json",
2030
+ schema: {
2031
+ type: "object",
2032
+ properties: {
2033
+ carts: {
2034
+ type: "array",
2035
+ items: {
2036
+ type: "ref",
2037
+ ref: "#cartResponse"
2038
+ }
2039
+ },
2040
+ cursor: {
2041
+ type: "string",
2042
+ maxLength: 512,
2043
+ description: "Pagination cursor for next page"
2044
+ }
2045
+ },
2046
+ required: ["carts"]
2047
+ }
2048
+ }
2049
+ },
2050
+ cartResponse: {
2051
+ type: "object",
2052
+ required: ["uri", "cid", "record"],
2053
+ properties: {
2054
+ uri: {
2055
+ type: "string",
2056
+ format: "at-uri",
2057
+ description: "AT-URI of the cart record"
2058
+ },
2059
+ cid: {
2060
+ type: "string",
2061
+ format: "cid",
2062
+ description: "CID of the cart record"
2063
+ },
2064
+ record: {
2065
+ type: "ref",
2066
+ ref: "com.atiproto.cart#view"
2067
+ }
2068
+ }
2069
+ }
2070
+ }
2071
+ };
2072
+
2073
+ // src/schemas/account/cart/put.json
2074
+ var put_default = {
2075
+ lexicon: 1,
2076
+ id: "com.atiproto.account.cart.put",
2077
+ defs: {
2078
+ main: {
2079
+ type: "procedure",
2080
+ description: "Update a cart. Only open carts can be updated.",
2081
+ input: {
2082
+ encoding: "application/json",
2083
+ schema: {
2084
+ type: "object",
2085
+ required: ["uri", "record"],
2086
+ properties: {
2087
+ uri: {
2088
+ type: "string",
2089
+ format: "at-uri",
2090
+ description: "AT-URI of the cart to update"
2091
+ },
2092
+ record: {
2093
+ type: "ref",
2094
+ ref: "com.atiproto.cart"
2095
+ }
2096
+ }
2097
+ }
2098
+ },
2099
+ output: {
2100
+ encoding: "application/json",
2101
+ schema: {
2102
+ type: "object",
2103
+ required: ["uri", "cid"],
2104
+ properties: {
2105
+ uri: {
2106
+ type: "string",
2107
+ format: "at-uri",
2108
+ description: "Updated cart record URI"
2109
+ },
2110
+ cid: {
2111
+ type: "string",
2112
+ format: "cid",
2113
+ description: "New CID of the updated record"
2114
+ }
2115
+ }
2116
+ }
2117
+ }
2118
+ }
2119
+ }
2120
+ };
2121
+
2122
+ // src/schemas/account/profile/get.json
2123
+ var get_default2 = {
2124
+ lexicon: 1,
2125
+ id: "com.atiproto.account.profile.get",
2126
+ defs: {
2127
+ main: {
2128
+ type: "query",
2129
+ description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2130
+ output: {
2131
+ encoding: "application/json",
2132
+ schema: {
2133
+ type: "object",
2134
+ required: ["profile", "hasProfile", "readyForPayment"],
2135
+ properties: {
2136
+ uri: {
2137
+ type: "string",
2138
+ format: "at-uri",
2139
+ description: "Profile record URI (absent if no profile configured)"
2140
+ },
2141
+ cid: {
2142
+ type: "string",
2143
+ format: "cid",
2144
+ description: "Profile record CID (absent if no profile configured)"
2145
+ },
2146
+ profile: {
2147
+ type: "ref",
2148
+ ref: "com.atiproto.profile#view",
2149
+ description: "The profile record data (defaults if not configured)"
2150
+ },
2151
+ hasProfile: {
2152
+ type: "boolean",
2153
+ description: "Whether the user has saved a profile record"
2154
+ },
2155
+ readyForPayment: {
2156
+ type: "boolean",
2157
+ description: "Whether the user's payment account is set up and enabled"
2158
+ }
2159
+ }
2160
+ }
2161
+ }
2162
+ }
2163
+ }
2164
+ };
2165
+
2166
+ // src/schemas/account/profile/put.json
2167
+ var put_default2 = {
1624
2168
  lexicon: 1,
1625
- id: "com.atiproto.account.cart.create",
2169
+ id: "com.atiproto.account.profile.put",
1626
2170
  defs: {
1627
2171
  main: {
1628
2172
  type: "procedure",
1629
- description: "Create a new empty cart",
2173
+ description: "Create or update the authenticated user's profile settings",
1630
2174
  input: {
1631
2175
  encoding: "application/json",
1632
2176
  schema: {
1633
2177
  type: "object",
1634
- required: ["currency"],
1635
2178
  properties: {
1636
- currency: {
1637
- type: "string",
1638
- maxLength: 3,
1639
- description: "ISO 4217 currency code"
2179
+ acceptsTips: {
2180
+ type: "boolean",
2181
+ description: "Enable accepting tips"
1640
2182
  },
1641
- redirectUrl: {
1642
- type: "string",
1643
- format: "uri",
1644
- description: "URI to redirect to after checkout is complete/cancelled"
2183
+ acceptsSubscriptions: {
2184
+ type: "boolean",
2185
+ description: "Enable accepting subscriptions"
2186
+ },
2187
+ disableReceiptNotifications: {
2188
+ type: "boolean",
2189
+ description: "Opt out of payment receipt DMs"
1645
2190
  }
1646
2191
  }
1647
2192
  }
@@ -1650,22 +2195,36 @@ var create_default = {
1650
2195
  encoding: "application/json",
1651
2196
  schema: {
1652
2197
  type: "object",
1653
- required: ["cart", "cartUri", "checkoutUrl"],
2198
+ required: [
2199
+ "uri",
2200
+ "cid",
2201
+ "profile",
2202
+ "hasProfile",
2203
+ "readyForPayment"
2204
+ ],
1654
2205
  properties: {
1655
- cart: {
1656
- type: "ref",
1657
- ref: "com.atiproto.cart#view",
1658
- description: "The created cart record"
1659
- },
1660
- cartUri: {
2206
+ uri: {
1661
2207
  type: "string",
1662
2208
  format: "at-uri",
1663
- description: "URI of the cart record"
2209
+ description: "Profile record URI"
1664
2210
  },
1665
- checkoutUrl: {
2211
+ cid: {
1666
2212
  type: "string",
1667
- format: "uri",
1668
- description: "Checkout URL hosted by atiproto"
2213
+ format: "cid",
2214
+ description: "Profile record CID"
2215
+ },
2216
+ profile: {
2217
+ type: "ref",
2218
+ ref: "com.atiproto.profile#view",
2219
+ description: "The profile record data"
2220
+ },
2221
+ hasProfile: {
2222
+ type: "boolean",
2223
+ description: "Whether the user has saved a profile record"
2224
+ },
2225
+ readyForPayment: {
2226
+ type: "boolean",
2227
+ description: "Whether the user's payment account is set up and enabled"
1669
2228
  }
1670
2229
  }
1671
2230
  }
@@ -1674,22 +2233,26 @@ var create_default = {
1674
2233
  }
1675
2234
  };
1676
2235
 
1677
- // src/schemas/account/cart/get.json
1678
- var get_default = {
2236
+ // src/schemas/account/subscription/get.json
2237
+ var get_default3 = {
1679
2238
  lexicon: 1,
1680
- id: "com.atiproto.account.cart.get",
2239
+ id: "com.atiproto.account.subscription.get",
1681
2240
  defs: {
1682
2241
  main: {
1683
2242
  type: "query",
1684
- description: "Get a specific cart by URI, including resolved tip and subscription records",
2243
+ 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.",
1685
2244
  parameters: {
1686
2245
  type: "params",
1687
- required: ["uri"],
1688
2246
  properties: {
1689
2247
  uri: {
1690
2248
  type: "string",
1691
2249
  format: "at-uri",
1692
- description: "AT-URI of the cart record"
2250
+ description: "AT-URI of the subscription record. Takes precedence over sender."
2251
+ },
2252
+ sender: {
2253
+ type: "string",
2254
+ format: "did",
2255
+ description: "DID of the subscriber. Ignored if uri is provided."
1693
2256
  }
1694
2257
  }
1695
2258
  },
@@ -1697,43 +2260,12 @@ var get_default = {
1697
2260
  encoding: "application/json",
1698
2261
  schema: {
1699
2262
  type: "object",
1700
- required: ["uri", "cart", "tips", "subscriptions"],
2263
+ required: ["subscription"],
1701
2264
  properties: {
1702
- uri: {
1703
- type: "string",
1704
- format: "at-uri",
1705
- description: "Cart record URI"
1706
- },
1707
- cid: {
1708
- type: "string",
1709
- format: "cid",
1710
- description: "Cart record CID"
1711
- },
1712
- cart: {
2265
+ subscription: {
1713
2266
  type: "ref",
1714
- ref: "com.atiproto.cart#view",
1715
- description: "The cart record data"
1716
- },
1717
- checkoutUrl: {
1718
- type: "string",
1719
- format: "uri",
1720
- description: "Checkout URL, only present when cart status is open"
1721
- },
1722
- tips: {
1723
- type: "array",
1724
- items: {
1725
- type: "ref",
1726
- ref: "com.atiproto.tip#view"
1727
- },
1728
- description: "Resolved tip records referenced by this cart"
1729
- },
1730
- subscriptions: {
1731
- type: "array",
1732
- items: {
1733
- type: "ref",
1734
- ref: "com.atiproto.subscription#view"
1735
- },
1736
- description: "Resolved subscription records referenced by this cart"
2267
+ ref: "com.atiproto.subscription#view",
2268
+ description: "The subscription record data"
1737
2269
  }
1738
2270
  }
1739
2271
  }
@@ -1742,37 +2274,28 @@ var get_default = {
1742
2274
  }
1743
2275
  };
1744
2276
 
1745
- // src/schemas/account/cart/list.json
1746
- var list_default = {
2277
+ // src/schemas/account/subscription/list.json
2278
+ var list_default2 = {
1747
2279
  lexicon: 1,
1748
- id: "com.atiproto.account.cart.list",
2280
+ id: "com.atiproto.account.subscription.list",
1749
2281
  defs: {
1750
2282
  main: {
1751
2283
  type: "query",
1752
- description: "List carts for the authenticated user",
1753
- input: {
1754
- encoding: "application/json",
1755
- schema: {
1756
- type: "object",
1757
- properties: {
1758
- status: {
1759
- type: "string",
1760
- maxLength: 64,
1761
- enum: ["open", "completed", "expired", "abandoned"],
1762
- description: "Filter by cart status"
1763
- },
1764
- cursor: {
1765
- type: "string",
1766
- maxLength: 512,
1767
- description: "Pagination cursor"
1768
- },
1769
- limit: {
1770
- type: "integer",
1771
- default: 20,
1772
- minimum: 1,
1773
- maximum: 100,
1774
- description: "Results per page (1-100, default: 20)"
1775
- }
2284
+ 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.",
2285
+ parameters: {
2286
+ type: "params",
2287
+ properties: {
2288
+ cursor: {
2289
+ type: "string",
2290
+ maxLength: 512,
2291
+ description: "Pagination cursor"
2292
+ },
2293
+ limit: {
2294
+ type: "integer",
2295
+ minimum: 1,
2296
+ maximum: 100,
2297
+ default: 50,
2298
+ description: "Results per page (1-100, default: 50)"
1776
2299
  }
1777
2300
  }
1778
2301
  },
@@ -1780,12 +2303,13 @@ var list_default = {
1780
2303
  encoding: "application/json",
1781
2304
  schema: {
1782
2305
  type: "object",
2306
+ required: ["subscriptions"],
1783
2307
  properties: {
1784
- carts: {
2308
+ subscriptions: {
1785
2309
  type: "array",
1786
2310
  items: {
1787
2311
  type: "ref",
1788
- ref: "#cartResponse"
2312
+ ref: "com.atiproto.subscription#view"
1789
2313
  }
1790
2314
  },
1791
2315
  cursor: {
@@ -1793,75 +2317,109 @@ var list_default = {
1793
2317
  maxLength: 512,
1794
2318
  description: "Pagination cursor for next page"
1795
2319
  }
1796
- },
1797
- required: ["carts"]
1798
- }
1799
- }
1800
- },
1801
- cartResponse: {
1802
- type: "object",
1803
- required: ["uri", "cid", "record"],
1804
- properties: {
1805
- uri: {
1806
- type: "string",
1807
- format: "at-uri",
1808
- description: "AT-URI of the cart record"
1809
- },
1810
- cid: {
1811
- type: "string",
1812
- format: "cid",
1813
- description: "CID of the cart record"
1814
- },
1815
- record: {
1816
- type: "ref",
1817
- ref: "com.atiproto.cart#view"
2320
+ }
1818
2321
  }
1819
2322
  }
1820
2323
  }
1821
2324
  }
1822
2325
  };
1823
2326
 
1824
- // src/schemas/account/cart/put.json
1825
- var put_default = {
2327
+ // src/schemas/account/subscription/validate.json
2328
+ var validate_default = {
1826
2329
  lexicon: 1,
1827
- id: "com.atiproto.account.cart.put",
2330
+ id: "com.atiproto.account.subscription.validate",
1828
2331
  defs: {
1829
2332
  main: {
1830
- type: "procedure",
1831
- description: "Update a cart. Only open carts can be updated.",
1832
- input: {
2333
+ type: "query",
2334
+ 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.",
2335
+ parameters: {
2336
+ type: "params",
2337
+ properties: {
2338
+ subscriptionUri: {
2339
+ type: "string",
2340
+ format: "at-uri",
2341
+ description: "AT-URI of a specific subscription record. Takes precedence over sender."
2342
+ },
2343
+ sender: {
2344
+ type: "string",
2345
+ format: "did",
2346
+ description: "DID of the subscriber. Ignored if subscriptionUri is provided."
2347
+ },
2348
+ amount: {
2349
+ type: "integer",
2350
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
2351
+ }
2352
+ }
2353
+ },
2354
+ output: {
1833
2355
  encoding: "application/json",
1834
2356
  schema: {
1835
2357
  type: "object",
1836
- required: ["uri", "record"],
2358
+ required: ["valid"],
1837
2359
  properties: {
1838
- uri: {
2360
+ valid: {
2361
+ type: "boolean",
2362
+ description: "Whether a sender has an active, verified subscription to the authed recipient"
2363
+ },
2364
+ amount: {
2365
+ type: "integer",
2366
+ description: "Subscription amount in cents"
2367
+ },
2368
+ currency: {
1839
2369
  type: "string",
1840
- format: "at-uri",
1841
- description: "AT-URI of the cart to update"
2370
+ maxLength: 3,
2371
+ description: "Currency of the subscription"
1842
2372
  },
1843
- record: {
1844
- type: "ref",
1845
- ref: "com.atiproto.cart"
2373
+ reason: {
2374
+ type: "string",
2375
+ maxLength: 1024,
2376
+ description: "If invalid, reason for rejection"
1846
2377
  }
1847
2378
  }
1848
2379
  }
2380
+ }
2381
+ }
2382
+ }
2383
+ };
2384
+
2385
+ // src/schemas/account/tip/get.json
2386
+ var get_default4 = {
2387
+ lexicon: 1,
2388
+ id: "com.atiproto.account.tip.get",
2389
+ defs: {
2390
+ main: {
2391
+ type: "query",
2392
+ 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.",
2393
+ parameters: {
2394
+ type: "params",
2395
+ properties: {
2396
+ uri: {
2397
+ type: "string",
2398
+ format: "at-uri",
2399
+ description: "AT-URI of the tip record. Takes precedence over sender and recordUri."
2400
+ },
2401
+ sender: {
2402
+ type: "string",
2403
+ format: "did",
2404
+ description: "DID of the tip sender. Takes precedence over recordUri."
2405
+ },
2406
+ recordUri: {
2407
+ type: "string",
2408
+ format: "at-uri",
2409
+ description: "AT-URI of the record being tipped. Ignored if uri or sender is provided."
2410
+ }
2411
+ }
1849
2412
  },
1850
2413
  output: {
1851
2414
  encoding: "application/json",
1852
2415
  schema: {
1853
2416
  type: "object",
1854
- required: ["uri", "cid"],
2417
+ required: ["tip"],
1855
2418
  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"
2419
+ tip: {
2420
+ type: "ref",
2421
+ ref: "com.atiproto.tip#view",
2422
+ description: "The tip record data"
1865
2423
  }
1866
2424
  }
1867
2425
  }
@@ -1870,42 +2428,58 @@ var put_default = {
1870
2428
  }
1871
2429
  };
1872
2430
 
1873
- // src/schemas/account/profile/get.json
1874
- var get_default2 = {
2431
+ // src/schemas/account/tip/list.json
2432
+ var list_default3 = {
1875
2433
  lexicon: 1,
1876
- id: "com.atiproto.account.profile.get",
2434
+ id: "com.atiproto.account.tip.list",
1877
2435
  defs: {
1878
2436
  main: {
1879
2437
  type: "query",
1880
- description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2438
+ 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.",
2439
+ parameters: {
2440
+ type: "params",
2441
+ properties: {
2442
+ sender: {
2443
+ type: "string",
2444
+ format: "did",
2445
+ description: "Optional: only return tips sent by this DID"
2446
+ },
2447
+ recordUri: {
2448
+ type: "string",
2449
+ format: "at-uri",
2450
+ description: "Optional: only return tips received for this specific record"
2451
+ },
2452
+ cursor: {
2453
+ type: "string",
2454
+ maxLength: 512,
2455
+ description: "Pagination cursor"
2456
+ },
2457
+ limit: {
2458
+ type: "integer",
2459
+ minimum: 1,
2460
+ maximum: 100,
2461
+ default: 50,
2462
+ description: "Results per page (1-100, default: 50)"
2463
+ }
2464
+ }
2465
+ },
1881
2466
  output: {
1882
2467
  encoding: "application/json",
1883
2468
  schema: {
1884
2469
  type: "object",
1885
- required: ["profile", "hasProfile", "readyForPayment"],
2470
+ required: ["tips"],
1886
2471
  properties: {
1887
- uri: {
1888
- type: "string",
1889
- format: "at-uri",
1890
- description: "Profile record URI (absent if no profile configured)"
2472
+ tips: {
2473
+ type: "array",
2474
+ items: {
2475
+ type: "ref",
2476
+ ref: "com.atiproto.tip#view"
2477
+ }
1891
2478
  },
1892
- cid: {
2479
+ cursor: {
1893
2480
  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"
2481
+ maxLength: 512,
2482
+ description: "Pagination cursor for next page"
1909
2483
  }
1910
2484
  }
1911
2485
  }
@@ -1914,31 +2488,35 @@ var get_default2 = {
1914
2488
  }
1915
2489
  };
1916
2490
 
1917
- // src/schemas/account/profile/put.json
1918
- var put_default2 = {
2491
+ // src/schemas/account/tip/validate.json
2492
+ var validate_default2 = {
1919
2493
  lexicon: 1,
1920
- id: "com.atiproto.account.profile.put",
2494
+ id: "com.atiproto.account.tip.validate",
1921
2495
  defs: {
1922
2496
  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
- }
2497
+ type: "query",
2498
+ 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.",
2499
+ parameters: {
2500
+ type: "params",
2501
+ properties: {
2502
+ tipUri: {
2503
+ type: "string",
2504
+ format: "at-uri",
2505
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and sender."
2506
+ },
2507
+ recordUri: {
2508
+ type: "string",
2509
+ format: "at-uri",
2510
+ description: "AT-URI of the record being tipped. Takes precedence over sender."
2511
+ },
2512
+ sender: {
2513
+ type: "string",
2514
+ format: "did",
2515
+ description: "DID of the tip sender. Ignored if tipUri or recordUri is provided."
2516
+ },
2517
+ amount: {
2518
+ type: "integer",
2519
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
1942
2520
  }
1943
2521
  }
1944
2522
  },
@@ -1946,36 +2524,25 @@ var put_default2 = {
1946
2524
  encoding: "application/json",
1947
2525
  schema: {
1948
2526
  type: "object",
1949
- required: [
1950
- "uri",
1951
- "cid",
1952
- "profile",
1953
- "hasProfile",
1954
- "readyForPayment"
1955
- ],
2527
+ required: ["valid"],
1956
2528
  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"
2529
+ valid: {
2530
+ type: "boolean",
2531
+ description: "Whether a sender has completed and verified tip(s) to the authed recipient"
1966
2532
  },
1967
- profile: {
1968
- type: "ref",
1969
- ref: "com.atiproto.profile#view",
1970
- description: "The profile record data"
2533
+ amount: {
2534
+ type: "integer",
2535
+ description: "Sum of all verified completed tip amounts in cents"
1971
2536
  },
1972
- hasProfile: {
1973
- type: "boolean",
1974
- description: "Whether the user has saved a profile record"
2537
+ currency: {
2538
+ type: "string",
2539
+ maxLength: 3,
2540
+ description: "Currency of the tips"
1975
2541
  },
1976
- readyForPayment: {
1977
- type: "boolean",
1978
- description: "Whether the user's payment account is set up and enabled"
2542
+ reason: {
2543
+ type: "string",
2544
+ maxLength: 1024,
2545
+ description: "If invalid, reason for rejection"
1979
2546
  }
1980
2547
  }
1981
2548
  }
@@ -2048,6 +2615,7 @@ var cart_default = {
2048
2615
  type: "object",
2049
2616
  description: "View of a cart record for use in API responses",
2050
2617
  required: [
2618
+ "uri",
2051
2619
  "items",
2052
2620
  "currency",
2053
2621
  "total",
@@ -2056,6 +2624,11 @@ var cart_default = {
2056
2624
  "expiresAt"
2057
2625
  ],
2058
2626
  properties: {
2627
+ uri: {
2628
+ type: "string",
2629
+ format: "at-uri",
2630
+ description: "AT-URI of the cart record"
2631
+ },
2059
2632
  items: {
2060
2633
  type: "array",
2061
2634
  items: {
@@ -2116,7 +2689,7 @@ var cart_default = {
2116
2689
  };
2117
2690
 
2118
2691
  // src/schemas/feed/list.json
2119
- var list_default2 = {
2692
+ var list_default4 = {
2120
2693
  lexicon: 1,
2121
2694
  id: "com.atiproto.feed.list",
2122
2695
  defs: {
@@ -2256,6 +2829,10 @@ var create_default2 = {
2256
2829
  description: "URL to redirect to after checkout completes",
2257
2830
  format: "uri",
2258
2831
  type: "string"
2832
+ },
2833
+ isPrivate: {
2834
+ description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
2835
+ type: "boolean"
2259
2836
  }
2260
2837
  },
2261
2838
  required: ["subject", "currency", "interval"],
@@ -2304,7 +2881,7 @@ var create_default2 = {
2304
2881
  };
2305
2882
 
2306
2883
  // src/schemas/feed/subscription/get.json
2307
- var get_default3 = {
2884
+ var get_default5 = {
2308
2885
  defs: {
2309
2886
  main: {
2310
2887
  description: "Get a specific subscription by URI",
@@ -2351,7 +2928,7 @@ var get_default3 = {
2351
2928
  };
2352
2929
 
2353
2930
  // src/schemas/feed/subscription/list.json
2354
- var list_default3 = {
2931
+ var list_default5 = {
2355
2932
  lexicon: 1,
2356
2933
  id: "com.atiproto.feed.subscription.list",
2357
2934
  defs: {
@@ -2467,6 +3044,64 @@ var put_default3 = {
2467
3044
  }
2468
3045
  };
2469
3046
 
3047
+ // src/schemas/feed/subscription/validate.json
3048
+ var validate_default3 = {
3049
+ lexicon: 1,
3050
+ id: "com.atiproto.feed.subscription.validate",
3051
+ defs: {
3052
+ main: {
3053
+ type: "query",
3054
+ 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.",
3055
+ parameters: {
3056
+ type: "params",
3057
+ properties: {
3058
+ subscriptionUri: {
3059
+ type: "string",
3060
+ format: "at-uri",
3061
+ description: "AT-URI of a specific subscription record. Takes precedence over subject."
3062
+ },
3063
+ subject: {
3064
+ type: "string",
3065
+ format: "did",
3066
+ description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
3067
+ },
3068
+ amount: {
3069
+ type: "integer",
3070
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
3071
+ }
3072
+ }
3073
+ },
3074
+ output: {
3075
+ encoding: "application/json",
3076
+ schema: {
3077
+ type: "object",
3078
+ required: ["valid"],
3079
+ properties: {
3080
+ valid: {
3081
+ type: "boolean",
3082
+ description: "Whether the authed sender has an active, verified subscription"
3083
+ },
3084
+ amount: {
3085
+ type: "integer",
3086
+ description: "Subscription amount in cents"
3087
+ },
3088
+ currency: {
3089
+ type: "string",
3090
+ maxLength: 3,
3091
+ description: "Currency of the subscription"
3092
+ },
3093
+ reason: {
3094
+ type: "string",
3095
+ maxLength: 1024,
3096
+ description: "If invalid, reason for rejection"
3097
+ }
3098
+ }
3099
+ }
3100
+ }
3101
+ }
3102
+ }
3103
+ };
3104
+
2470
3105
  // src/schemas/feed/tip/create.json
2471
3106
  var create_default3 = {
2472
3107
  lexicon: 1,
@@ -2515,6 +3150,10 @@ var create_default3 = {
2515
3150
  description: "Optional message (max 500 chars)",
2516
3151
  maxGraphemes: 500,
2517
3152
  maxLength: 5e3
3153
+ },
3154
+ isPrivate: {
3155
+ type: "boolean",
3156
+ 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
3157
  }
2519
3158
  }
2520
3159
  }
@@ -2558,7 +3197,7 @@ var create_default3 = {
2558
3197
  };
2559
3198
 
2560
3199
  // src/schemas/feed/tip/get.json
2561
- var get_default4 = {
3200
+ var get_default6 = {
2562
3201
  defs: {
2563
3202
  main: {
2564
3203
  description: "Get a specific tip by URI",
@@ -2605,7 +3244,7 @@ var get_default4 = {
2605
3244
  };
2606
3245
 
2607
3246
  // src/schemas/feed/tip/list.json
2608
- var list_default4 = {
3247
+ var list_default6 = {
2609
3248
  lexicon: 1,
2610
3249
  id: "com.atiproto.feed.tip.list",
2611
3250
  defs: {
@@ -2687,17 +3326,80 @@ var put_default4 = {
2687
3326
  encoding: "application/json",
2688
3327
  schema: {
2689
3328
  type: "object",
2690
- required: ["uri", "cid"],
3329
+ required: ["uri", "cid"],
3330
+ properties: {
3331
+ uri: {
3332
+ type: "string",
3333
+ format: "at-uri",
3334
+ description: "Updated tip record URI"
3335
+ },
3336
+ cid: {
3337
+ type: "string",
3338
+ format: "cid",
3339
+ description: "New CID of the updated record"
3340
+ }
3341
+ }
3342
+ }
3343
+ }
3344
+ }
3345
+ }
3346
+ };
3347
+
3348
+ // src/schemas/feed/tip/validate.json
3349
+ var validate_default4 = {
3350
+ lexicon: 1,
3351
+ id: "com.atiproto.feed.tip.validate",
3352
+ defs: {
3353
+ main: {
3354
+ type: "query",
3355
+ 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.",
3356
+ parameters: {
3357
+ type: "params",
3358
+ properties: {
3359
+ tipUri: {
3360
+ type: "string",
3361
+ format: "at-uri",
3362
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
3363
+ },
3364
+ recordUri: {
3365
+ type: "string",
3366
+ format: "at-uri",
3367
+ description: "AT-URI of the record being tipped. Takes precedence over subject."
3368
+ },
3369
+ subject: {
3370
+ type: "string",
3371
+ format: "did",
3372
+ description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3373
+ },
3374
+ amount: {
3375
+ type: "integer",
3376
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3377
+ }
3378
+ }
3379
+ },
3380
+ output: {
3381
+ encoding: "application/json",
3382
+ schema: {
3383
+ type: "object",
3384
+ required: ["valid"],
2691
3385
  properties: {
2692
- uri: {
3386
+ valid: {
3387
+ type: "boolean",
3388
+ description: "Whether the authed sender has completed and verified tip(s)"
3389
+ },
3390
+ amount: {
3391
+ type: "integer",
3392
+ description: "Sum of all verified completed tip amounts in cents"
3393
+ },
3394
+ currency: {
2693
3395
  type: "string",
2694
- format: "at-uri",
2695
- description: "Updated tip record URI"
3396
+ maxLength: 3,
3397
+ description: "Currency of the tips"
2696
3398
  },
2697
- cid: {
3399
+ reason: {
2698
3400
  type: "string",
2699
- format: "cid",
2700
- description: "New CID of the updated record"
3401
+ maxLength: 1024,
3402
+ description: "If invalid, reason for rejection"
2701
3403
  }
2702
3404
  }
2703
3405
  }
@@ -2747,8 +3449,13 @@ var profile_default = {
2747
3449
  view: {
2748
3450
  type: "object",
2749
3451
  description: "View of a user's profile settings for use in API responses",
2750
- required: ["createdAt"],
3452
+ required: ["uri", "createdAt"],
2751
3453
  properties: {
3454
+ uri: {
3455
+ type: "string",
3456
+ format: "at-uri",
3457
+ description: "AT-URI of the profile record"
3458
+ },
2752
3459
  acceptsTips: {
2753
3460
  type: "boolean",
2754
3461
  description: "Whether user accepts tips (default: true)"
@@ -2777,7 +3484,7 @@ var profile_default = {
2777
3484
  };
2778
3485
 
2779
3486
  // src/schemas/repo/profile/get.json
2780
- var get_default5 = {
3487
+ var get_default7 = {
2781
3488
  lexicon: 1,
2782
3489
  id: "com.atiproto.repo.profile.get",
2783
3490
  defs: {
@@ -2818,107 +3525,31 @@ var get_default5 = {
2818
3525
  }
2819
3526
  };
2820
3527
 
2821
- // src/schemas/repo/subscription/search.json
2822
- var search_default = {
3528
+ // src/schemas/repo/subscription/count.json
3529
+ var count_default = {
2823
3530
  lexicon: 1,
2824
- id: "com.atiproto.repo.subscription.search",
3531
+ id: "com.atiproto.repo.subscription.count",
2825
3532
  defs: {
2826
3533
  main: {
2827
3534
  type: "query",
2828
- description: "Search for subscriptions to a user (subscriptions where subject matches the given DID)",
3535
+ 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
3536
  parameters: {
2830
3537
  type: "params",
2831
3538
  properties: {
2832
3539
  subject: {
2833
3540
  type: "string",
2834
3541
  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"
3542
+ description: "DID of the user being subscribed to. If omitted, the query counts subscriptions the authenticated user has active as the subscriber."
2908
3543
  },
2909
- subscriptionUri: {
3544
+ startDate: {
2910
3545
  type: "string",
2911
- format: "at-uri",
2912
- description: "AT-URI of a specific subscription record. Takes precedence over subject."
3546
+ format: "datetime",
3547
+ description: "Only count subscriptions whose billingStartDate is at or after this timestamp"
2913
3548
  },
2914
- subject: {
3549
+ endDate: {
2915
3550
  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."
3551
+ format: "datetime",
3552
+ description: "Only count subscriptions whose billingStartDate is at or before this timestamp"
2922
3553
  }
2923
3554
  }
2924
3555
  },
@@ -2926,126 +3557,39 @@ var validate_default = {
2926
3557
  encoding: "application/json",
2927
3558
  schema: {
2928
3559
  type: "object",
2929
- required: ["valid"],
3560
+ required: ["count"],
2930
3561
  properties: {
2931
- valid: {
2932
- type: "boolean",
2933
- description: "Whether the sender has an active, verified subscription"
3562
+ count: {
3563
+ type: "integer",
3564
+ description: "Number of active subscriptions matching the filter"
2934
3565
  },
2935
3566
  amount: {
2936
3567
  type: "integer",
2937
- description: "Subscription amount in cents"
3568
+ 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
3569
  },
2939
3570
  currency: {
2940
3571
  type: "string",
2941
3572
  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"
3573
+ 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
3574
  }
3005
3575
  }
3006
3576
  }
3007
3577
  }
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
3578
  }
3024
3579
  }
3025
3580
  };
3026
3581
 
3027
- // src/schemas/repo/tip/validate.json
3028
- var validate_default2 = {
3582
+ // src/schemas/repo/tip/count.json
3583
+ var count_default2 = {
3029
3584
  lexicon: 1,
3030
- id: "com.atiproto.repo.tip.validate",
3585
+ id: "com.atiproto.repo.tip.count",
3031
3586
  defs: {
3032
3587
  main: {
3033
3588
  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.",
3589
+ 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
3590
  parameters: {
3036
3591
  type: "params",
3037
- required: ["sender"],
3038
3592
  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
3593
  recordUri: {
3050
3594
  type: "string",
3051
3595
  format: "at-uri",
@@ -3054,11 +3598,17 @@ var validate_default2 = {
3054
3598
  subject: {
3055
3599
  type: "string",
3056
3600
  format: "did",
3057
- description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3601
+ 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
3602
  },
3059
- amount: {
3060
- type: "integer",
3061
- description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3603
+ startDate: {
3604
+ type: "string",
3605
+ format: "datetime",
3606
+ description: "Only count tips completed at or after this timestamp"
3607
+ },
3608
+ endDate: {
3609
+ type: "string",
3610
+ format: "datetime",
3611
+ description: "Only count tips completed at or before this timestamp"
3062
3612
  }
3063
3613
  }
3064
3614
  },
@@ -3066,25 +3616,20 @@ var validate_default2 = {
3066
3616
  encoding: "application/json",
3067
3617
  schema: {
3068
3618
  type: "object",
3069
- required: ["valid"],
3619
+ required: ["count"],
3070
3620
  properties: {
3071
- valid: {
3072
- type: "boolean",
3073
- description: "Whether the sender has completed and verified tip(s)"
3621
+ count: {
3622
+ type: "integer",
3623
+ description: "Number of active (completed) tips matching the filter"
3074
3624
  },
3075
3625
  amount: {
3076
3626
  type: "integer",
3077
- description: "Sum of all verified completed tip amounts in cents"
3627
+ 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
3628
  },
3079
3629
  currency: {
3080
3630
  type: "string",
3081
3631
  maxLength: 3,
3082
- description: "Currency of the tips"
3083
- },
3084
- reason: {
3085
- type: "string",
3086
- maxLength: 1024,
3087
- description: "If invalid, reason for rejection"
3632
+ 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
3633
  }
3089
3634
  }
3090
3635
  }
@@ -3125,21 +3670,27 @@ var authEnhanced_default = {
3125
3670
  "com.atiproto.account.cart.put",
3126
3671
  "com.atiproto.account.profile.get",
3127
3672
  "com.atiproto.account.profile.put",
3673
+ "com.atiproto.account.subscription.get",
3674
+ "com.atiproto.account.subscription.list",
3675
+ "com.atiproto.account.subscription.validate",
3676
+ "com.atiproto.account.tip.get",
3677
+ "com.atiproto.account.tip.list",
3678
+ "com.atiproto.account.tip.validate",
3128
3679
  "com.atiproto.feed.list",
3129
3680
  "com.atiproto.feed.subscription.cancel",
3130
3681
  "com.atiproto.feed.subscription.create",
3131
3682
  "com.atiproto.feed.subscription.get",
3132
3683
  "com.atiproto.feed.subscription.list",
3133
3684
  "com.atiproto.feed.subscription.put",
3685
+ "com.atiproto.feed.subscription.validate",
3134
3686
  "com.atiproto.feed.tip.create",
3135
3687
  "com.atiproto.feed.tip.get",
3136
3688
  "com.atiproto.feed.tip.list",
3137
3689
  "com.atiproto.feed.tip.put",
3690
+ "com.atiproto.feed.tip.validate",
3138
3691
  "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"
3692
+ "com.atiproto.repo.subscription.count",
3693
+ "com.atiproto.repo.tip.count"
3143
3694
  ]
3144
3695
  }
3145
3696
  ]
@@ -3176,21 +3727,27 @@ var authGeneral_default = {
3176
3727
  "com.atiproto.account.cart.get",
3177
3728
  "com.atiproto.account.cart.list",
3178
3729
  "com.atiproto.account.cart.put",
3730
+ "com.atiproto.account.subscription.get",
3731
+ "com.atiproto.account.subscription.list",
3732
+ "com.atiproto.account.subscription.validate",
3733
+ "com.atiproto.account.tip.get",
3734
+ "com.atiproto.account.tip.list",
3735
+ "com.atiproto.account.tip.validate",
3179
3736
  "com.atiproto.feed.list",
3180
3737
  "com.atiproto.feed.subscription.cancel",
3181
3738
  "com.atiproto.feed.subscription.create",
3182
3739
  "com.atiproto.feed.subscription.get",
3183
3740
  "com.atiproto.feed.subscription.list",
3184
3741
  "com.atiproto.feed.subscription.put",
3742
+ "com.atiproto.feed.subscription.validate",
3185
3743
  "com.atiproto.feed.tip.create",
3186
3744
  "com.atiproto.feed.tip.get",
3187
3745
  "com.atiproto.feed.tip.list",
3188
3746
  "com.atiproto.feed.tip.put",
3747
+ "com.atiproto.feed.tip.validate",
3189
3748
  "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"
3749
+ "com.atiproto.repo.subscription.count",
3750
+ "com.atiproto.repo.tip.count"
3194
3751
  ]
3195
3752
  }
3196
3753
  ]
@@ -3271,7 +3828,7 @@ var subscription_default = {
3271
3828
  type: "object",
3272
3829
  description: "View of a subscription record for use in API responses",
3273
3830
  required: [
3274
- "subject",
3831
+ "uri",
3275
3832
  "amount",
3276
3833
  "currency",
3277
3834
  "interval",
@@ -3280,6 +3837,11 @@ var subscription_default = {
3280
3837
  "createdAt"
3281
3838
  ],
3282
3839
  properties: {
3840
+ uri: {
3841
+ description: "AT-URI of the subscription record",
3842
+ format: "at-uri",
3843
+ type: "string"
3844
+ },
3283
3845
  subject: {
3284
3846
  description: "DID of the user being subscribed to",
3285
3847
  format: "did",
@@ -3385,7 +3947,7 @@ var tip_default = {
3385
3947
  type: "string"
3386
3948
  }
3387
3949
  },
3388
- required: ["subject", "amount", "currency", "status", "createdAt"],
3950
+ required: ["amount", "currency", "status", "createdAt"],
3389
3951
  type: "object"
3390
3952
  },
3391
3953
  type: "record"
@@ -3393,8 +3955,13 @@ var tip_default = {
3393
3955
  view: {
3394
3956
  type: "object",
3395
3957
  description: "View of a tip record for use in API responses",
3396
- required: ["subject", "amount", "currency", "status", "createdAt"],
3958
+ required: ["uri", "amount", "currency", "status", "createdAt"],
3397
3959
  properties: {
3960
+ uri: {
3961
+ description: "AT-URI of the tip record",
3962
+ format: "at-uri",
3963
+ type: "string"
3964
+ },
3398
3965
  subject: {
3399
3966
  description: "DID of the user receiving the tip",
3400
3967
  format: "did",
@@ -3453,23 +4020,29 @@ var schemas = [
3453
4020
  put_default,
3454
4021
  get_default2,
3455
4022
  put_default2,
3456
- cart_default,
4023
+ get_default3,
3457
4024
  list_default2,
4025
+ validate_default,
4026
+ get_default4,
4027
+ list_default3,
4028
+ validate_default2,
4029
+ cart_default,
4030
+ list_default4,
3458
4031
  cancel_default,
3459
4032
  create_default2,
3460
- get_default3,
3461
- list_default3,
4033
+ get_default5,
4034
+ list_default5,
3462
4035
  put_default3,
4036
+ validate_default3,
3463
4037
  create_default3,
3464
- get_default4,
3465
- list_default4,
4038
+ get_default6,
4039
+ list_default6,
3466
4040
  put_default4,
4041
+ validate_default4,
3467
4042
  profile_default,
3468
- get_default5,
3469
- search_default,
3470
- validate_default,
3471
- search_default2,
3472
- validate_default2,
4043
+ get_default7,
4044
+ count_default,
4045
+ count_default2,
3473
4046
  authEnhanced_default,
3474
4047
  authGeneral_default,
3475
4048
  subscription_default,