@atiproto/lexicons 0.1.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -14,6 +14,8 @@ __export(com_exports, {
14
14
  var atiproto_exports = {};
15
15
  __export(atiproto_exports, {
16
16
  account: () => account_exports,
17
+ authEnhanced: () => authEnhanced_exports,
18
+ authGeneral: () => authGeneral_exports,
17
19
  cart: () => cart_exports2,
18
20
  feed: () => feed_exports,
19
21
  profile: () => profile_exports2,
@@ -89,9 +91,9 @@ var main = l.record(
89
91
  $nsid,
90
92
  l.object({
91
93
  items: l.array(l.ref((() => cartItem))),
92
- currency: l.string(),
94
+ currency: l.string({ maxLength: 3 }),
93
95
  total: l.integer(),
94
- status: l.string(),
96
+ status: l.enum(["open", "completed", "expired", "abandoned"]),
95
97
  createdAt: l.string({ format: "datetime" }),
96
98
  expiresAt: l.string({ format: "datetime" }),
97
99
  completedAt: l.optional(l.string({ format: "datetime" }))
@@ -145,7 +147,7 @@ var main2 = l2.record(
145
147
  subject: l2.string({ format: "did" }),
146
148
  recordUri: l2.optional(l2.string({ format: "at-uri" })),
147
149
  amount: l2.integer({ minimum: 0 }),
148
- currency: l2.string(),
150
+ currency: l2.string({ maxLength: 3 }),
149
151
  status: l2.enum([
150
152
  "pending",
151
153
  "authorized",
@@ -197,9 +199,9 @@ var main3 = l3.record(
197
199
  l3.object({
198
200
  subject: l3.string({ format: "did" }),
199
201
  amount: l3.integer({ minimum: 0 }),
200
- currency: l3.string(),
201
- interval: l3.string(),
202
- status: l3.string(),
202
+ currency: l3.string({ maxLength: 3 }),
203
+ interval: l3.enum(["monthly", "yearly"]),
204
+ status: l3.enum(["pending", "active", "past_due", "cancelled", "expired"]),
203
205
  billingStartDate: l3.string({ format: "datetime" }),
204
206
  cancelledAt: l3.optional(l3.string({ format: "datetime" })),
205
207
  accessUntil: l3.optional(l3.string({ format: "datetime" })),
@@ -273,7 +275,7 @@ var main5 = l5.procedure(
273
275
  $nsid5,
274
276
  l5.params(),
275
277
  l5.jsonPayload({
276
- currency: l5.string(),
278
+ currency: l5.string({ maxLength: 3 }),
277
279
  redirectUrl: l5.optional(l5.string({ format: "uri" }))
278
280
  }),
279
281
  l5.jsonPayload({
@@ -358,7 +360,7 @@ var main7 = l7.query(
358
360
  l7.params(),
359
361
  l7.jsonPayload({
360
362
  carts: l7.array(l7.ref((() => cartResponse))),
361
- cursor: l7.optional(l7.string())
363
+ cursor: l7.optional(l7.string({ maxLength: 512 }))
362
364
  })
363
365
  );
364
366
  var $lxm4 = main7.nsid;
@@ -550,6 +552,125 @@ var $params7 = main11.parameters;
550
552
  var $input4 = main11.input;
551
553
  var $output7 = main11.output;
552
554
 
555
+ // src/lexicons/com/atiproto/authEnhanced.ts
556
+ var authEnhanced_exports = {};
557
+ __export(authEnhanced_exports, {
558
+ $defs: () => authEnhanced_defs_exports,
559
+ $nsid: () => $nsid12,
560
+ main: () => main12
561
+ });
562
+
563
+ // src/lexicons/com/atiproto/authEnhanced.defs.ts
564
+ var authEnhanced_defs_exports = {};
565
+ __export(authEnhanced_defs_exports, {
566
+ $nsid: () => $nsid12,
567
+ main: () => main12
568
+ });
569
+ import { l as l12 } from "@atproto/lex";
570
+ var $nsid12 = "com.atiproto.authEnhanced";
571
+ var main12 = l12.permissionSet(
572
+ $nsid12,
573
+ [
574
+ l12.permission("repo", {
575
+ collection: [
576
+ "com.atiproto.cart",
577
+ "com.atiproto.subscription",
578
+ "com.atiproto.tip",
579
+ "com.atiproto.profile"
580
+ ]
581
+ }),
582
+ l12.permission("rpc", {
583
+ inheritAud: true,
584
+ lxm: [
585
+ "com.atiproto.account.cart.clone",
586
+ "com.atiproto.account.cart.create",
587
+ "com.atiproto.account.cart.get",
588
+ "com.atiproto.account.cart.list",
589
+ "com.atiproto.account.cart.put",
590
+ "com.atiproto.account.profile.get",
591
+ "com.atiproto.account.profile.put",
592
+ "com.atiproto.feed.list",
593
+ "com.atiproto.feed.subscription.cancel",
594
+ "com.atiproto.feed.subscription.create",
595
+ "com.atiproto.feed.subscription.get",
596
+ "com.atiproto.feed.subscription.list",
597
+ "com.atiproto.feed.subscription.put",
598
+ "com.atiproto.feed.tip.create",
599
+ "com.atiproto.feed.tip.get",
600
+ "com.atiproto.feed.tip.list",
601
+ "com.atiproto.feed.tip.put",
602
+ "com.atiproto.repo.profile.get",
603
+ "com.atiproto.repo.subscription.search",
604
+ "com.atiproto.repo.subscription.validate",
605
+ "com.atiproto.repo.tip.search",
606
+ "com.atiproto.repo.tip.validate"
607
+ ]
608
+ })
609
+ ],
610
+ {
611
+ title: "Enhanced Access",
612
+ detail: "Full atiproto access. Extends general access with write access to the profile record and RPC access to all profile endpoints."
613
+ }
614
+ );
615
+
616
+ // src/lexicons/com/atiproto/authGeneral.ts
617
+ var authGeneral_exports = {};
618
+ __export(authGeneral_exports, {
619
+ $defs: () => authGeneral_defs_exports,
620
+ $nsid: () => $nsid13,
621
+ main: () => main13
622
+ });
623
+
624
+ // src/lexicons/com/atiproto/authGeneral.defs.ts
625
+ var authGeneral_defs_exports = {};
626
+ __export(authGeneral_defs_exports, {
627
+ $nsid: () => $nsid13,
628
+ main: () => main13
629
+ });
630
+ import { l as l13 } from "@atproto/lex";
631
+ var $nsid13 = "com.atiproto.authGeneral";
632
+ var main13 = l13.permissionSet(
633
+ $nsid13,
634
+ [
635
+ l13.permission("repo", {
636
+ collection: [
637
+ "com.atiproto.cart",
638
+ "com.atiproto.subscription",
639
+ "com.atiproto.tip"
640
+ ]
641
+ }),
642
+ l13.permission("rpc", {
643
+ inheritAud: true,
644
+ lxm: [
645
+ "com.atiproto.account.cart.clone",
646
+ "com.atiproto.account.cart.create",
647
+ "com.atiproto.account.cart.get",
648
+ "com.atiproto.account.cart.list",
649
+ "com.atiproto.account.cart.put",
650
+ "com.atiproto.feed.list",
651
+ "com.atiproto.feed.subscription.cancel",
652
+ "com.atiproto.feed.subscription.create",
653
+ "com.atiproto.feed.subscription.get",
654
+ "com.atiproto.feed.subscription.list",
655
+ "com.atiproto.feed.subscription.put",
656
+ "com.atiproto.feed.tip.create",
657
+ "com.atiproto.feed.tip.get",
658
+ "com.atiproto.feed.tip.list",
659
+ "com.atiproto.feed.tip.put",
660
+ "com.atiproto.repo.profile.get",
661
+ "com.atiproto.repo.subscription.search",
662
+ "com.atiproto.repo.subscription.validate",
663
+ "com.atiproto.repo.tip.search",
664
+ "com.atiproto.repo.tip.validate"
665
+ ]
666
+ })
667
+ ],
668
+ {
669
+ title: "General Access",
670
+ detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints."
671
+ }
672
+ );
673
+
553
674
  // src/lexicons/com/atiproto/cart.ts
554
675
  var cart_exports2 = {};
555
676
  __export(cart_exports2, {
@@ -584,44 +705,44 @@ var list_exports2 = {};
584
705
  __export(list_exports2, {
585
706
  $defs: () => list_defs_exports2,
586
707
  $lxm: () => $lxm8,
587
- $nsid: () => $nsid12,
708
+ $nsid: () => $nsid14,
588
709
  $output: () => $output8,
589
710
  $params: () => $params8,
590
- main: () => main12
711
+ main: () => main14
591
712
  });
592
713
 
593
714
  // src/lexicons/com/atiproto/feed/list.defs.ts
594
715
  var list_defs_exports2 = {};
595
716
  __export(list_defs_exports2, {
596
717
  $lxm: () => $lxm8,
597
- $nsid: () => $nsid12,
718
+ $nsid: () => $nsid14,
598
719
  $output: () => $output8,
599
720
  $params: () => $params8,
600
- main: () => main12
721
+ main: () => main14
601
722
  });
602
- import { l as l12 } from "@atproto/lex";
603
- var $nsid12 = "com.atiproto.feed.list";
604
- var main12 = l12.query(
605
- $nsid12,
606
- l12.params(),
607
- l12.jsonPayload({
608
- items: l12.array(
609
- l12.typedUnion(
723
+ import { l as l14 } from "@atproto/lex";
724
+ var $nsid14 = "com.atiproto.feed.list";
725
+ var main14 = l14.query(
726
+ $nsid14,
727
+ l14.params(),
728
+ l14.jsonPayload({
729
+ items: l14.array(
730
+ l14.typedUnion(
610
731
  [
611
- l12.typedRef((() => main2)),
612
- l12.typedRef(
732
+ l14.typedRef((() => main2)),
733
+ l14.typedRef(
613
734
  (() => main3)
614
735
  )
615
736
  ],
616
737
  false
617
738
  )
618
739
  ),
619
- cursor: l12.optional(l12.string())
740
+ cursor: l14.optional(l14.string({ maxLength: 512 }))
620
741
  })
621
742
  );
622
- var $lxm8 = main12.nsid;
623
- var $params8 = main12.parameters;
624
- var $output8 = main12.output;
743
+ var $lxm8 = main14.nsid;
744
+ var $params8 = main14.parameters;
745
+ var $output8 = main14.output;
625
746
 
626
747
  // src/lexicons/com/atiproto/feed/subscription.ts
627
748
  var subscription_exports = {};
@@ -639,10 +760,10 @@ __export(cancel_exports, {
639
760
  $defs: () => cancel_defs_exports,
640
761
  $input: () => $input5,
641
762
  $lxm: () => $lxm9,
642
- $nsid: () => $nsid13,
763
+ $nsid: () => $nsid15,
643
764
  $output: () => $output9,
644
765
  $params: () => $params9,
645
- main: () => main13
766
+ main: () => main15
646
767
  });
647
768
 
648
769
  // src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
@@ -650,29 +771,29 @@ var cancel_defs_exports = {};
650
771
  __export(cancel_defs_exports, {
651
772
  $input: () => $input5,
652
773
  $lxm: () => $lxm9,
653
- $nsid: () => $nsid13,
774
+ $nsid: () => $nsid15,
654
775
  $output: () => $output9,
655
776
  $params: () => $params9,
656
- main: () => main13
777
+ main: () => main15
657
778
  });
658
- import { l as l13 } from "@atproto/lex";
659
- var $nsid13 = "com.atiproto.feed.subscription.cancel";
660
- var main13 = l13.procedure(
661
- $nsid13,
662
- l13.params(),
663
- l13.jsonPayload({ subscriptionUri: l13.string({ format: "at-uri" }) }),
664
- l13.jsonPayload({
665
- subscriptionUri: l13.string({ format: "at-uri" }),
666
- subscription: l13.ref(
779
+ import { l as l15 } from "@atproto/lex";
780
+ var $nsid15 = "com.atiproto.feed.subscription.cancel";
781
+ var main15 = l15.procedure(
782
+ $nsid15,
783
+ l15.params(),
784
+ l15.jsonPayload({ subscriptionUri: l15.string({ format: "at-uri" }) }),
785
+ l15.jsonPayload({
786
+ subscriptionUri: l15.string({ format: "at-uri" }),
787
+ subscription: l15.ref(
667
788
  (() => main3)
668
789
  ),
669
- accessUntil: l13.string({ format: "datetime" })
790
+ accessUntil: l15.string({ format: "datetime" })
670
791
  })
671
792
  );
672
- var $lxm9 = main13.nsid;
673
- var $params9 = main13.parameters;
674
- var $input5 = main13.input;
675
- var $output9 = main13.output;
793
+ var $lxm9 = main15.nsid;
794
+ var $params9 = main15.parameters;
795
+ var $input5 = main15.input;
796
+ var $output9 = main15.output;
676
797
 
677
798
  // src/lexicons/com/atiproto/feed/subscription/create.ts
678
799
  var create_exports2 = {};
@@ -680,10 +801,10 @@ __export(create_exports2, {
680
801
  $defs: () => create_defs_exports2,
681
802
  $input: () => $input6,
682
803
  $lxm: () => $lxm10,
683
- $nsid: () => $nsid14,
804
+ $nsid: () => $nsid16,
684
805
  $output: () => $output10,
685
806
  $params: () => $params10,
686
- main: () => main14
807
+ main: () => main16
687
808
  });
688
809
 
689
810
  // src/lexicons/com/atiproto/feed/subscription/create.defs.ts
@@ -691,83 +812,87 @@ var create_defs_exports2 = {};
691
812
  __export(create_defs_exports2, {
692
813
  $input: () => $input6,
693
814
  $lxm: () => $lxm10,
694
- $nsid: () => $nsid14,
815
+ $nsid: () => $nsid16,
695
816
  $output: () => $output10,
696
817
  $params: () => $params10,
697
- main: () => main14
818
+ main: () => main16
698
819
  });
699
- import { l as l14 } from "@atproto/lex";
700
- var $nsid14 = "com.atiproto.feed.subscription.create";
701
- var main14 = l14.procedure(
702
- $nsid14,
703
- l14.params(),
704
- l14.jsonPayload({
705
- subject: l14.string({ format: "did" }),
706
- amount: l14.optional(l14.integer()),
707
- currency: l14.string(),
708
- interval: l14.string()
820
+ import { l as l16 } from "@atproto/lex";
821
+ var $nsid16 = "com.atiproto.feed.subscription.create";
822
+ var main16 = l16.procedure(
823
+ $nsid16,
824
+ l16.params(),
825
+ l16.jsonPayload({
826
+ subject: l16.string({ format: "did" }),
827
+ amount: l16.optional(l16.integer()),
828
+ currency: l16.string({ maxLength: 3 }),
829
+ interval: l16.enum(["monthly", "yearly"]),
830
+ cartUri: l16.optional(l16.string({ format: "at-uri" })),
831
+ redirectUrl: l16.optional(l16.string({ format: "uri" }))
709
832
  }),
710
- l14.jsonPayload({
711
- subscriptionUri: l14.string({ format: "at-uri" }),
712
- subscription: l14.ref(
833
+ l16.jsonPayload({
834
+ subscriptionUri: l16.string({ format: "at-uri" }),
835
+ subscription: l16.ref(
713
836
  (() => main3)
714
837
  ),
715
- cartUri: l14.string({ format: "at-uri" }),
716
- cart: l14.ref((() => main)),
717
- checkoutUrl: l14.string({ format: "uri" })
838
+ cartUri: l16.optional(l16.string({ format: "at-uri" })),
839
+ cart: l16.optional(
840
+ l16.ref((() => main))
841
+ ),
842
+ checkoutUrl: l16.optional(l16.string({ format: "uri" }))
718
843
  })
719
844
  );
720
- var $lxm10 = main14.nsid;
721
- var $params10 = main14.parameters;
722
- var $input6 = main14.input;
723
- var $output10 = main14.output;
845
+ var $lxm10 = main16.nsid;
846
+ var $params10 = main16.parameters;
847
+ var $input6 = main16.input;
848
+ var $output10 = main16.output;
724
849
 
725
850
  // src/lexicons/com/atiproto/feed/subscription/get.ts
726
851
  var get_exports3 = {};
727
852
  __export(get_exports3, {
728
853
  $defs: () => get_defs_exports3,
729
854
  $lxm: () => $lxm11,
730
- $nsid: () => $nsid15,
855
+ $nsid: () => $nsid17,
731
856
  $output: () => $output11,
732
857
  $params: () => $params11,
733
- main: () => main15
858
+ main: () => main17
734
859
  });
735
860
 
736
861
  // src/lexicons/com/atiproto/feed/subscription/get.defs.ts
737
862
  var get_defs_exports3 = {};
738
863
  __export(get_defs_exports3, {
739
864
  $lxm: () => $lxm11,
740
- $nsid: () => $nsid15,
865
+ $nsid: () => $nsid17,
741
866
  $output: () => $output11,
742
867
  $params: () => $params11,
743
- main: () => main15
868
+ main: () => main17
744
869
  });
745
- import { l as l15 } from "@atproto/lex";
746
- var $nsid15 = "com.atiproto.feed.subscription.get";
747
- var main15 = l15.query(
748
- $nsid15,
749
- l15.params({ uri: l15.string({ format: "at-uri" }) }),
750
- l15.jsonPayload({
751
- uri: l15.string({ format: "at-uri" }),
752
- cid: l15.string({ format: "cid" }),
753
- record: l15.ref(
870
+ import { l as l17 } from "@atproto/lex";
871
+ var $nsid17 = "com.atiproto.feed.subscription.get";
872
+ var main17 = l17.query(
873
+ $nsid17,
874
+ l17.params({ uri: l17.string({ format: "at-uri" }) }),
875
+ l17.jsonPayload({
876
+ uri: l17.string({ format: "at-uri" }),
877
+ cid: l17.string({ format: "cid" }),
878
+ record: l17.ref(
754
879
  (() => main3)
755
880
  )
756
881
  })
757
882
  );
758
- var $lxm11 = main15.nsid;
759
- var $params11 = main15.parameters;
760
- var $output11 = main15.output;
883
+ var $lxm11 = main17.nsid;
884
+ var $params11 = main17.parameters;
885
+ var $output11 = main17.output;
761
886
 
762
887
  // src/lexicons/com/atiproto/feed/subscription/list.ts
763
888
  var list_exports3 = {};
764
889
  __export(list_exports3, {
765
890
  $defs: () => list_defs_exports3,
766
891
  $lxm: () => $lxm12,
767
- $nsid: () => $nsid16,
892
+ $nsid: () => $nsid18,
768
893
  $output: () => $output12,
769
894
  $params: () => $params12,
770
- main: () => main16,
895
+ main: () => main18,
771
896
  subscriptionResponse: () => subscriptionResponse
772
897
  });
773
898
 
@@ -775,33 +900,33 @@ __export(list_exports3, {
775
900
  var list_defs_exports3 = {};
776
901
  __export(list_defs_exports3, {
777
902
  $lxm: () => $lxm12,
778
- $nsid: () => $nsid16,
903
+ $nsid: () => $nsid18,
779
904
  $output: () => $output12,
780
905
  $params: () => $params12,
781
- main: () => main16,
906
+ main: () => main18,
782
907
  subscriptionResponse: () => subscriptionResponse
783
908
  });
784
- import { l as l16 } from "@atproto/lex";
785
- var $nsid16 = "com.atiproto.feed.subscription.list";
786
- var main16 = l16.query(
787
- $nsid16,
788
- l16.params(),
789
- l16.jsonPayload({
790
- subscriptions: l16.array(
791
- l16.ref((() => subscriptionResponse))
909
+ import { l as l18 } from "@atproto/lex";
910
+ var $nsid18 = "com.atiproto.feed.subscription.list";
911
+ var main18 = l18.query(
912
+ $nsid18,
913
+ l18.params(),
914
+ l18.jsonPayload({
915
+ subscriptions: l18.array(
916
+ l18.ref((() => subscriptionResponse))
792
917
  ),
793
- cursor: l16.optional(l16.string())
918
+ cursor: l18.optional(l18.string({ maxLength: 512 }))
794
919
  })
795
920
  );
796
- var $lxm12 = main16.nsid;
797
- var $params12 = main16.parameters;
798
- var $output12 = main16.output;
799
- var subscriptionResponse = l16.typedObject(
800
- $nsid16,
921
+ var $lxm12 = main18.nsid;
922
+ var $params12 = main18.parameters;
923
+ var $output12 = main18.output;
924
+ var subscriptionResponse = l18.typedObject(
925
+ $nsid18,
801
926
  "subscriptionResponse",
802
- l16.object({
803
- uri: l16.string({ format: "at-uri" }),
804
- record: l16.ref(
927
+ l18.object({
928
+ uri: l18.string({ format: "at-uri" }),
929
+ record: l18.ref(
805
930
  (() => main3)
806
931
  )
807
932
  })
@@ -813,10 +938,10 @@ __export(put_exports3, {
813
938
  $defs: () => put_defs_exports3,
814
939
  $input: () => $input7,
815
940
  $lxm: () => $lxm13,
816
- $nsid: () => $nsid17,
941
+ $nsid: () => $nsid19,
817
942
  $output: () => $output13,
818
943
  $params: () => $params13,
819
- main: () => main17
944
+ main: () => main19
820
945
  });
821
946
 
822
947
  // src/lexicons/com/atiproto/feed/subscription/put.defs.ts
@@ -824,31 +949,31 @@ var put_defs_exports3 = {};
824
949
  __export(put_defs_exports3, {
825
950
  $input: () => $input7,
826
951
  $lxm: () => $lxm13,
827
- $nsid: () => $nsid17,
952
+ $nsid: () => $nsid19,
828
953
  $output: () => $output13,
829
954
  $params: () => $params13,
830
- main: () => main17
955
+ main: () => main19
831
956
  });
832
- import { l as l17 } from "@atproto/lex";
833
- var $nsid17 = "com.atiproto.feed.subscription.put";
834
- var main17 = l17.procedure(
835
- $nsid17,
836
- l17.params(),
837
- l17.jsonPayload({
838
- uri: l17.string({ format: "at-uri" }),
839
- record: l17.ref(
957
+ import { l as l19 } from "@atproto/lex";
958
+ var $nsid19 = "com.atiproto.feed.subscription.put";
959
+ var main19 = l19.procedure(
960
+ $nsid19,
961
+ l19.params(),
962
+ l19.jsonPayload({
963
+ uri: l19.string({ format: "at-uri" }),
964
+ record: l19.ref(
840
965
  (() => main3)
841
966
  )
842
967
  }),
843
- l17.jsonPayload({
844
- uri: l17.string({ format: "at-uri" }),
845
- cid: l17.string({ format: "cid" })
968
+ l19.jsonPayload({
969
+ uri: l19.string({ format: "at-uri" }),
970
+ cid: l19.string({ format: "cid" })
846
971
  })
847
972
  );
848
- var $lxm13 = main17.nsid;
849
- var $params13 = main17.parameters;
850
- var $input7 = main17.input;
851
- var $output13 = main17.output;
973
+ var $lxm13 = main19.nsid;
974
+ var $params13 = main19.parameters;
975
+ var $input7 = main19.input;
976
+ var $output13 = main19.output;
852
977
 
853
978
  // src/lexicons/com/atiproto/feed/tip.ts
854
979
  var tip_exports = {};
@@ -865,10 +990,10 @@ __export(create_exports3, {
865
990
  $defs: () => create_defs_exports3,
866
991
  $input: () => $input8,
867
992
  $lxm: () => $lxm14,
868
- $nsid: () => $nsid18,
993
+ $nsid: () => $nsid20,
869
994
  $output: () => $output14,
870
995
  $params: () => $params14,
871
- main: () => main18
996
+ main: () => main20
872
997
  });
873
998
 
874
999
  // src/lexicons/com/atiproto/feed/tip/create.defs.ts
@@ -876,106 +1001,108 @@ var create_defs_exports3 = {};
876
1001
  __export(create_defs_exports3, {
877
1002
  $input: () => $input8,
878
1003
  $lxm: () => $lxm14,
879
- $nsid: () => $nsid18,
1004
+ $nsid: () => $nsid20,
880
1005
  $output: () => $output14,
881
1006
  $params: () => $params14,
882
- main: () => main18
1007
+ main: () => main20
883
1008
  });
884
- import { l as l18 } from "@atproto/lex";
885
- var $nsid18 = "com.atiproto.feed.tip.create";
886
- var main18 = l18.procedure(
887
- $nsid18,
888
- l18.params(),
889
- l18.jsonPayload({
890
- subject: l18.string({ format: "did" }),
891
- recordUri: l18.optional(l18.string({ format: "at-uri" })),
892
- amount: l18.integer(),
893
- currency: l18.string(),
894
- cartUri: l18.optional(l18.string({ format: "at-uri" })),
895
- redirectUrl: l18.optional(l18.string({ format: "uri" })),
896
- message: l18.optional(l18.string({ maxGraphemes: 500, maxLength: 5e3 }))
1009
+ import { l as l20 } from "@atproto/lex";
1010
+ var $nsid20 = "com.atiproto.feed.tip.create";
1011
+ var main20 = l20.procedure(
1012
+ $nsid20,
1013
+ l20.params(),
1014
+ l20.jsonPayload({
1015
+ subject: l20.string({ format: "did" }),
1016
+ recordUri: l20.optional(l20.string({ format: "at-uri" })),
1017
+ amount: l20.integer(),
1018
+ currency: l20.string({ maxLength: 3 }),
1019
+ cartUri: l20.optional(l20.string({ format: "at-uri" })),
1020
+ redirectUrl: l20.optional(l20.string({ format: "uri" })),
1021
+ message: l20.optional(l20.string({ maxGraphemes: 500, maxLength: 5e3 }))
897
1022
  }),
898
- l18.jsonPayload({
899
- tipUri: l18.string({ format: "at-uri" }),
900
- tip: l18.ref((() => main2)),
901
- cartUri: l18.string({ format: "at-uri" }),
902
- cart: l18.ref((() => main)),
903
- checkoutUrl: l18.string({ format: "uri" })
1023
+ l20.jsonPayload({
1024
+ tipUri: l20.string({ format: "at-uri" }),
1025
+ tip: l20.ref((() => main2)),
1026
+ cartUri: l20.optional(l20.string({ format: "at-uri" })),
1027
+ cart: l20.optional(
1028
+ l20.ref((() => main))
1029
+ ),
1030
+ checkoutUrl: l20.optional(l20.string({ format: "uri" }))
904
1031
  })
905
1032
  );
906
- var $lxm14 = main18.nsid;
907
- var $params14 = main18.parameters;
908
- var $input8 = main18.input;
909
- var $output14 = main18.output;
1033
+ var $lxm14 = main20.nsid;
1034
+ var $params14 = main20.parameters;
1035
+ var $input8 = main20.input;
1036
+ var $output14 = main20.output;
910
1037
 
911
1038
  // src/lexicons/com/atiproto/feed/tip/get.ts
912
1039
  var get_exports4 = {};
913
1040
  __export(get_exports4, {
914
1041
  $defs: () => get_defs_exports4,
915
1042
  $lxm: () => $lxm15,
916
- $nsid: () => $nsid19,
1043
+ $nsid: () => $nsid21,
917
1044
  $output: () => $output15,
918
1045
  $params: () => $params15,
919
- main: () => main19
1046
+ main: () => main21
920
1047
  });
921
1048
 
922
1049
  // src/lexicons/com/atiproto/feed/tip/get.defs.ts
923
1050
  var get_defs_exports4 = {};
924
1051
  __export(get_defs_exports4, {
925
1052
  $lxm: () => $lxm15,
926
- $nsid: () => $nsid19,
1053
+ $nsid: () => $nsid21,
927
1054
  $output: () => $output15,
928
1055
  $params: () => $params15,
929
- main: () => main19
1056
+ main: () => main21
930
1057
  });
931
- import { l as l19 } from "@atproto/lex";
932
- var $nsid19 = "com.atiproto.feed.tip.get";
933
- var main19 = l19.query(
934
- $nsid19,
935
- l19.params({ uri: l19.string({ format: "at-uri" }) }),
936
- l19.jsonPayload({
937
- uri: l19.string({ format: "at-uri" }),
938
- cid: l19.string({ format: "cid" }),
939
- value: l19.ref((() => main2))
1058
+ import { l as l21 } from "@atproto/lex";
1059
+ var $nsid21 = "com.atiproto.feed.tip.get";
1060
+ var main21 = l21.query(
1061
+ $nsid21,
1062
+ l21.params({ uri: l21.string({ format: "at-uri" }) }),
1063
+ l21.jsonPayload({
1064
+ uri: l21.string({ format: "at-uri" }),
1065
+ cid: l21.string({ format: "cid" }),
1066
+ value: l21.ref((() => main2))
940
1067
  })
941
1068
  );
942
- var $lxm15 = main19.nsid;
943
- var $params15 = main19.parameters;
944
- var $output15 = main19.output;
1069
+ var $lxm15 = main21.nsid;
1070
+ var $params15 = main21.parameters;
1071
+ var $output15 = main21.output;
945
1072
 
946
1073
  // src/lexicons/com/atiproto/feed/tip/list.ts
947
1074
  var list_exports4 = {};
948
1075
  __export(list_exports4, {
949
1076
  $defs: () => list_defs_exports4,
950
1077
  $lxm: () => $lxm16,
951
- $nsid: () => $nsid20,
1078
+ $nsid: () => $nsid22,
952
1079
  $output: () => $output16,
953
1080
  $params: () => $params16,
954
- main: () => main20
1081
+ main: () => main22
955
1082
  });
956
1083
 
957
1084
  // src/lexicons/com/atiproto/feed/tip/list.defs.ts
958
1085
  var list_defs_exports4 = {};
959
1086
  __export(list_defs_exports4, {
960
1087
  $lxm: () => $lxm16,
961
- $nsid: () => $nsid20,
1088
+ $nsid: () => $nsid22,
962
1089
  $output: () => $output16,
963
1090
  $params: () => $params16,
964
- main: () => main20
1091
+ main: () => main22
965
1092
  });
966
- import { l as l20 } from "@atproto/lex";
967
- var $nsid20 = "com.atiproto.feed.tip.list";
968
- var main20 = l20.query(
969
- $nsid20,
970
- l20.params(),
971
- l20.jsonPayload({
972
- records: l20.array(l20.ref((() => main2))),
973
- cursor: l20.optional(l20.string())
1093
+ import { l as l22 } from "@atproto/lex";
1094
+ var $nsid22 = "com.atiproto.feed.tip.list";
1095
+ var main22 = l22.query(
1096
+ $nsid22,
1097
+ l22.params(),
1098
+ l22.jsonPayload({
1099
+ records: l22.array(l22.ref((() => main2))),
1100
+ cursor: l22.optional(l22.string({ maxLength: 512 }))
974
1101
  })
975
1102
  );
976
- var $lxm16 = main20.nsid;
977
- var $params16 = main20.parameters;
978
- var $output16 = main20.output;
1103
+ var $lxm16 = main22.nsid;
1104
+ var $params16 = main22.parameters;
1105
+ var $output16 = main22.output;
979
1106
 
980
1107
  // src/lexicons/com/atiproto/feed/tip/put.ts
981
1108
  var put_exports4 = {};
@@ -983,10 +1110,10 @@ __export(put_exports4, {
983
1110
  $defs: () => put_defs_exports4,
984
1111
  $input: () => $input9,
985
1112
  $lxm: () => $lxm17,
986
- $nsid: () => $nsid21,
1113
+ $nsid: () => $nsid23,
987
1114
  $output: () => $output17,
988
1115
  $params: () => $params17,
989
- main: () => main21
1116
+ main: () => main23
990
1117
  });
991
1118
 
992
1119
  // src/lexicons/com/atiproto/feed/tip/put.defs.ts
@@ -994,29 +1121,29 @@ var put_defs_exports4 = {};
994
1121
  __export(put_defs_exports4, {
995
1122
  $input: () => $input9,
996
1123
  $lxm: () => $lxm17,
997
- $nsid: () => $nsid21,
1124
+ $nsid: () => $nsid23,
998
1125
  $output: () => $output17,
999
1126
  $params: () => $params17,
1000
- main: () => main21
1127
+ main: () => main23
1001
1128
  });
1002
- import { l as l21 } from "@atproto/lex";
1003
- var $nsid21 = "com.atiproto.feed.tip.put";
1004
- var main21 = l21.procedure(
1005
- $nsid21,
1006
- l21.params(),
1007
- l21.jsonPayload({
1008
- uri: l21.string({ format: "at-uri" }),
1009
- record: l21.ref((() => main2))
1129
+ import { l as l23 } from "@atproto/lex";
1130
+ var $nsid23 = "com.atiproto.feed.tip.put";
1131
+ var main23 = l23.procedure(
1132
+ $nsid23,
1133
+ l23.params(),
1134
+ l23.jsonPayload({
1135
+ uri: l23.string({ format: "at-uri" }),
1136
+ record: l23.ref((() => main2))
1010
1137
  }),
1011
- l21.jsonPayload({
1012
- uri: l21.string({ format: "at-uri" }),
1013
- cid: l21.string({ format: "cid" })
1138
+ l23.jsonPayload({
1139
+ uri: l23.string({ format: "at-uri" }),
1140
+ cid: l23.string({ format: "cid" })
1014
1141
  })
1015
1142
  );
1016
- var $lxm17 = main21.nsid;
1017
- var $params17 = main21.parameters;
1018
- var $input9 = main21.input;
1019
- var $output17 = main21.output;
1143
+ var $lxm17 = main23.nsid;
1144
+ var $params17 = main23.parameters;
1145
+ var $input9 = main23.input;
1146
+ var $output17 = main23.output;
1020
1147
 
1021
1148
  // src/lexicons/com/atiproto/profile.ts
1022
1149
  var profile_exports2 = {};
@@ -1057,34 +1184,34 @@ var get_exports5 = {};
1057
1184
  __export(get_exports5, {
1058
1185
  $defs: () => get_defs_exports5,
1059
1186
  $lxm: () => $lxm18,
1060
- $nsid: () => $nsid22,
1187
+ $nsid: () => $nsid24,
1061
1188
  $output: () => $output18,
1062
1189
  $params: () => $params18,
1063
- main: () => main22
1190
+ main: () => main24
1064
1191
  });
1065
1192
 
1066
1193
  // src/lexicons/com/atiproto/repo/profile/get.defs.ts
1067
1194
  var get_defs_exports5 = {};
1068
1195
  __export(get_defs_exports5, {
1069
1196
  $lxm: () => $lxm18,
1070
- $nsid: () => $nsid22,
1197
+ $nsid: () => $nsid24,
1071
1198
  $output: () => $output18,
1072
1199
  $params: () => $params18,
1073
- main: () => main22
1200
+ main: () => main24
1074
1201
  });
1075
- import { l as l22 } from "@atproto/lex";
1076
- var $nsid22 = "com.atiproto.repo.profile.get";
1077
- var main22 = l22.query(
1078
- $nsid22,
1079
- l22.params({ did: l22.string({ format: "did" }) }),
1080
- l22.jsonPayload({
1081
- did: l22.string({ format: "did" }),
1082
- profile: l22.ref((() => main9))
1202
+ import { l as l24 } from "@atproto/lex";
1203
+ var $nsid24 = "com.atiproto.repo.profile.get";
1204
+ var main24 = l24.query(
1205
+ $nsid24,
1206
+ l24.params({ did: l24.string({ format: "did" }) }),
1207
+ l24.jsonPayload({
1208
+ did: l24.string({ format: "did" }),
1209
+ profile: l24.ref((() => main9))
1083
1210
  })
1084
1211
  );
1085
- var $lxm18 = main22.nsid;
1086
- var $params18 = main22.parameters;
1087
- var $output18 = main22.output;
1212
+ var $lxm18 = main24.nsid;
1213
+ var $params18 = main24.parameters;
1214
+ var $output18 = main24.output;
1088
1215
 
1089
1216
  // src/lexicons/com/atiproto/repo/subscription.ts
1090
1217
  var subscription_exports2 = {};
@@ -1098,10 +1225,10 @@ var search_exports = {};
1098
1225
  __export(search_exports, {
1099
1226
  $defs: () => search_defs_exports,
1100
1227
  $lxm: () => $lxm19,
1101
- $nsid: () => $nsid23,
1228
+ $nsid: () => $nsid25,
1102
1229
  $output: () => $output19,
1103
1230
  $params: () => $params19,
1104
- main: () => main23,
1231
+ main: () => main25,
1105
1232
  subscriptionResponse: () => subscriptionResponse2
1106
1233
  });
1107
1234
 
@@ -1109,39 +1236,39 @@ __export(search_exports, {
1109
1236
  var search_defs_exports = {};
1110
1237
  __export(search_defs_exports, {
1111
1238
  $lxm: () => $lxm19,
1112
- $nsid: () => $nsid23,
1239
+ $nsid: () => $nsid25,
1113
1240
  $output: () => $output19,
1114
1241
  $params: () => $params19,
1115
- main: () => main23,
1242
+ main: () => main25,
1116
1243
  subscriptionResponse: () => subscriptionResponse2
1117
1244
  });
1118
- import { l as l23 } from "@atproto/lex";
1119
- var $nsid23 = "com.atiproto.repo.subscription.search";
1120
- var main23 = l23.query(
1121
- $nsid23,
1122
- l23.params({
1123
- subject: l23.string({ format: "did" }),
1124
- cursor: l23.optional(l23.string()),
1125
- limit: l23.optional(
1126
- l23.withDefault(l23.integer({ minimum: 1, maximum: 100 }), 50)
1245
+ import { l as l25 } from "@atproto/lex";
1246
+ var $nsid25 = "com.atiproto.repo.subscription.search";
1247
+ var main25 = l25.query(
1248
+ $nsid25,
1249
+ l25.params({
1250
+ subject: l25.string({ format: "did" }),
1251
+ cursor: l25.optional(l25.string({ maxLength: 512 })),
1252
+ limit: l25.optional(
1253
+ l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
1127
1254
  )
1128
1255
  }),
1129
- l23.jsonPayload({
1130
- subscriptions: l23.array(
1131
- l23.ref((() => subscriptionResponse2))
1256
+ l25.jsonPayload({
1257
+ subscriptions: l25.array(
1258
+ l25.ref((() => subscriptionResponse2))
1132
1259
  ),
1133
- cursor: l23.optional(l23.string())
1260
+ cursor: l25.optional(l25.string({ maxLength: 512 }))
1134
1261
  })
1135
1262
  );
1136
- var $lxm19 = main23.nsid;
1137
- var $params19 = main23.parameters;
1138
- var $output19 = main23.output;
1139
- var subscriptionResponse2 = l23.typedObject(
1140
- $nsid23,
1263
+ var $lxm19 = main25.nsid;
1264
+ var $params19 = main25.parameters;
1265
+ var $output19 = main25.output;
1266
+ var subscriptionResponse2 = l25.typedObject(
1267
+ $nsid25,
1141
1268
  "subscriptionResponse",
1142
- l23.object({
1143
- uri: l23.string({ format: "at-uri" }),
1144
- record: l23.ref(
1269
+ l25.object({
1270
+ uri: l25.string({ format: "at-uri" }),
1271
+ record: l25.ref(
1145
1272
  (() => main3)
1146
1273
  )
1147
1274
  })
@@ -1152,41 +1279,41 @@ var validate_exports = {};
1152
1279
  __export(validate_exports, {
1153
1280
  $defs: () => validate_defs_exports,
1154
1281
  $lxm: () => $lxm20,
1155
- $nsid: () => $nsid24,
1282
+ $nsid: () => $nsid26,
1156
1283
  $output: () => $output20,
1157
1284
  $params: () => $params20,
1158
- main: () => main24
1285
+ main: () => main26
1159
1286
  });
1160
1287
 
1161
1288
  // src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
1162
1289
  var validate_defs_exports = {};
1163
1290
  __export(validate_defs_exports, {
1164
1291
  $lxm: () => $lxm20,
1165
- $nsid: () => $nsid24,
1292
+ $nsid: () => $nsid26,
1166
1293
  $output: () => $output20,
1167
1294
  $params: () => $params20,
1168
- main: () => main24
1295
+ main: () => main26
1169
1296
  });
1170
- import { l as l24 } from "@atproto/lex";
1171
- var $nsid24 = "com.atiproto.repo.subscription.validate";
1172
- var main24 = l24.query(
1173
- $nsid24,
1174
- l24.params({
1175
- sender: l24.string({ format: "did" }),
1176
- subscriptionUri: l24.optional(l24.string({ format: "at-uri" })),
1177
- subject: l24.optional(l24.string({ format: "did" })),
1178
- amount: l24.optional(l24.integer())
1297
+ import { l as l26 } from "@atproto/lex";
1298
+ var $nsid26 = "com.atiproto.repo.subscription.validate";
1299
+ var main26 = l26.query(
1300
+ $nsid26,
1301
+ l26.params({
1302
+ sender: l26.string({ format: "did" }),
1303
+ subscriptionUri: l26.optional(l26.string({ format: "at-uri" })),
1304
+ subject: l26.optional(l26.string({ format: "did" })),
1305
+ amount: l26.optional(l26.integer())
1179
1306
  }),
1180
- l24.jsonPayload({
1181
- valid: l24.boolean(),
1182
- amount: l24.optional(l24.integer()),
1183
- currency: l24.optional(l24.string()),
1184
- reason: l24.optional(l24.string())
1307
+ l26.jsonPayload({
1308
+ valid: l26.boolean(),
1309
+ amount: l26.optional(l26.integer()),
1310
+ currency: l26.optional(l26.string({ maxLength: 3 })),
1311
+ reason: l26.optional(l26.string({ maxLength: 1024 }))
1185
1312
  })
1186
1313
  );
1187
- var $lxm20 = main24.nsid;
1188
- var $params20 = main24.parameters;
1189
- var $output20 = main24.output;
1314
+ var $lxm20 = main26.nsid;
1315
+ var $params20 = main26.parameters;
1316
+ var $output20 = main26.output;
1190
1317
 
1191
1318
  // src/lexicons/com/atiproto/repo/tip.ts
1192
1319
  var tip_exports2 = {};
@@ -1200,10 +1327,10 @@ var search_exports2 = {};
1200
1327
  __export(search_exports2, {
1201
1328
  $defs: () => search_defs_exports2,
1202
1329
  $lxm: () => $lxm21,
1203
- $nsid: () => $nsid25,
1330
+ $nsid: () => $nsid27,
1204
1331
  $output: () => $output21,
1205
1332
  $params: () => $params21,
1206
- main: () => main25,
1333
+ main: () => main27,
1207
1334
  tipResponse: () => tipResponse
1208
1335
  });
1209
1336
 
@@ -1211,37 +1338,37 @@ __export(search_exports2, {
1211
1338
  var search_defs_exports2 = {};
1212
1339
  __export(search_defs_exports2, {
1213
1340
  $lxm: () => $lxm21,
1214
- $nsid: () => $nsid25,
1341
+ $nsid: () => $nsid27,
1215
1342
  $output: () => $output21,
1216
1343
  $params: () => $params21,
1217
- main: () => main25,
1344
+ main: () => main27,
1218
1345
  tipResponse: () => tipResponse
1219
1346
  });
1220
- import { l as l25 } from "@atproto/lex";
1221
- var $nsid25 = "com.atiproto.repo.tip.search";
1222
- var main25 = l25.query(
1223
- $nsid25,
1224
- l25.params({
1225
- subject: l25.string({ format: "did" }),
1226
- cursor: l25.optional(l25.string()),
1227
- limit: l25.optional(
1228
- l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
1347
+ import { l as l27 } from "@atproto/lex";
1348
+ var $nsid27 = "com.atiproto.repo.tip.search";
1349
+ var main27 = l27.query(
1350
+ $nsid27,
1351
+ l27.params({
1352
+ subject: l27.string({ format: "did" }),
1353
+ cursor: l27.optional(l27.string({ maxLength: 512 })),
1354
+ limit: l27.optional(
1355
+ l27.withDefault(l27.integer({ minimum: 1, maximum: 100 }), 50)
1229
1356
  )
1230
1357
  }),
1231
- l25.jsonPayload({
1232
- tips: l25.array(l25.ref((() => tipResponse))),
1233
- cursor: l25.optional(l25.string())
1358
+ l27.jsonPayload({
1359
+ tips: l27.array(l27.ref((() => tipResponse))),
1360
+ cursor: l27.optional(l27.string({ maxLength: 512 }))
1234
1361
  })
1235
1362
  );
1236
- var $lxm21 = main25.nsid;
1237
- var $params21 = main25.parameters;
1238
- var $output21 = main25.output;
1239
- var tipResponse = l25.typedObject(
1240
- $nsid25,
1363
+ var $lxm21 = main27.nsid;
1364
+ var $params21 = main27.parameters;
1365
+ var $output21 = main27.output;
1366
+ var tipResponse = l27.typedObject(
1367
+ $nsid27,
1241
1368
  "tipResponse",
1242
- l25.object({
1243
- uri: l25.string({ format: "at-uri" }),
1244
- record: l25.ref((() => main2))
1369
+ l27.object({
1370
+ uri: l27.string({ format: "at-uri" }),
1371
+ record: l27.ref((() => main2))
1245
1372
  })
1246
1373
  );
1247
1374
 
@@ -1250,42 +1377,42 @@ var validate_exports2 = {};
1250
1377
  __export(validate_exports2, {
1251
1378
  $defs: () => validate_defs_exports2,
1252
1379
  $lxm: () => $lxm22,
1253
- $nsid: () => $nsid26,
1380
+ $nsid: () => $nsid28,
1254
1381
  $output: () => $output22,
1255
1382
  $params: () => $params22,
1256
- main: () => main26
1383
+ main: () => main28
1257
1384
  });
1258
1385
 
1259
1386
  // src/lexicons/com/atiproto/repo/tip/validate.defs.ts
1260
1387
  var validate_defs_exports2 = {};
1261
1388
  __export(validate_defs_exports2, {
1262
1389
  $lxm: () => $lxm22,
1263
- $nsid: () => $nsid26,
1390
+ $nsid: () => $nsid28,
1264
1391
  $output: () => $output22,
1265
1392
  $params: () => $params22,
1266
- main: () => main26
1267
- });
1268
- import { l as l26 } from "@atproto/lex";
1269
- var $nsid26 = "com.atiproto.repo.tip.validate";
1270
- var main26 = l26.query(
1271
- $nsid26,
1272
- l26.params({
1273
- sender: l26.string({ format: "did" }),
1274
- tipUri: l26.optional(l26.string({ format: "at-uri" })),
1275
- recordUri: l26.optional(l26.string({ format: "at-uri" })),
1276
- subject: l26.optional(l26.string({ format: "did" })),
1277
- amount: l26.optional(l26.integer())
1393
+ main: () => main28
1394
+ });
1395
+ import { l as l28 } from "@atproto/lex";
1396
+ var $nsid28 = "com.atiproto.repo.tip.validate";
1397
+ var main28 = l28.query(
1398
+ $nsid28,
1399
+ l28.params({
1400
+ sender: l28.string({ format: "did" }),
1401
+ tipUri: l28.optional(l28.string({ format: "at-uri" })),
1402
+ recordUri: l28.optional(l28.string({ format: "at-uri" })),
1403
+ subject: l28.optional(l28.string({ format: "did" })),
1404
+ amount: l28.optional(l28.integer())
1278
1405
  }),
1279
- l26.jsonPayload({
1280
- valid: l26.boolean(),
1281
- amount: l26.optional(l26.integer()),
1282
- currency: l26.optional(l26.string()),
1283
- reason: l26.optional(l26.string())
1406
+ l28.jsonPayload({
1407
+ valid: l28.boolean(),
1408
+ amount: l28.optional(l28.integer()),
1409
+ currency: l28.optional(l28.string({ maxLength: 3 })),
1410
+ reason: l28.optional(l28.string({ maxLength: 1024 }))
1284
1411
  })
1285
1412
  );
1286
- var $lxm22 = main26.nsid;
1287
- var $params22 = main26.parameters;
1288
- var $output22 = main26.output;
1413
+ var $lxm22 = main28.nsid;
1414
+ var $params22 = main28.parameters;
1415
+ var $output22 = main28.output;
1289
1416
 
1290
1417
  // src/lexicons/com/atiproto/subscription.ts
1291
1418
  var subscription_exports3 = {};
@@ -1420,6 +1547,7 @@ var create_default = {
1420
1547
  properties: {
1421
1548
  currency: {
1422
1549
  type: "string",
1550
+ maxLength: 3,
1423
1551
  description: "ISO 4217 currency code"
1424
1552
  },
1425
1553
  redirectUrl: {
@@ -1541,10 +1669,13 @@ var list_default = {
1541
1669
  properties: {
1542
1670
  status: {
1543
1671
  type: "string",
1544
- description: "Filter: open, completed, expired, abandoned"
1672
+ maxLength: 64,
1673
+ enum: ["open", "completed", "expired", "abandoned"],
1674
+ description: "Filter by cart status"
1545
1675
  },
1546
1676
  cursor: {
1547
1677
  type: "string",
1678
+ maxLength: 512,
1548
1679
  description: "Pagination cursor"
1549
1680
  },
1550
1681
  limit: {
@@ -1571,6 +1702,7 @@ var list_default = {
1571
1702
  },
1572
1703
  cursor: {
1573
1704
  type: "string",
1705
+ maxLength: 512,
1574
1706
  description: "Pagination cursor for next page"
1575
1707
  }
1576
1708
  },
@@ -1793,6 +1925,7 @@ var cart_default = {
1793
1925
  },
1794
1926
  currency: {
1795
1927
  type: "string",
1928
+ maxLength: 3,
1796
1929
  description: "ISO 4217 currency code"
1797
1930
  },
1798
1931
  total: {
@@ -1801,7 +1934,9 @@ var cart_default = {
1801
1934
  },
1802
1935
  status: {
1803
1936
  type: "string",
1804
- description: "Cart status: open, completed, expired, abandoned"
1937
+ maxLength: 64,
1938
+ enum: ["open", "completed", "expired", "abandoned"],
1939
+ description: "Cart status"
1805
1940
  },
1806
1941
  createdAt: {
1807
1942
  type: "string",
@@ -1827,6 +1962,7 @@ var cart_default = {
1827
1962
  properties: {
1828
1963
  type: {
1829
1964
  type: "string",
1965
+ maxLength: 128,
1830
1966
  description: "Item type: tip or subscription",
1831
1967
  enum: ["com.atiproto.tip", "com.atiproto.subscription"]
1832
1968
  },
@@ -1855,6 +1991,7 @@ var list_default2 = {
1855
1991
  properties: {
1856
1992
  cursor: {
1857
1993
  type: "string",
1994
+ maxLength: 512,
1858
1995
  description: "Pagination cursor"
1859
1996
  },
1860
1997
  limit: {
@@ -1882,6 +2019,7 @@ var list_default2 = {
1882
2019
  },
1883
2020
  cursor: {
1884
2021
  type: "string",
2022
+ maxLength: 512,
1885
2023
  description: "Pagination cursor for next page"
1886
2024
  }
1887
2025
  }
@@ -1961,10 +2099,23 @@ var create_default2 = {
1961
2099
  },
1962
2100
  currency: {
1963
2101
  description: "ISO 4217 currency code",
2102
+ maxLength: 3,
1964
2103
  type: "string"
1965
2104
  },
1966
2105
  interval: {
1967
- description: "Billing interval: monthly or yearly",
2106
+ description: "Billing interval",
2107
+ maxLength: 64,
2108
+ enum: ["monthly", "yearly"],
2109
+ type: "string"
2110
+ },
2111
+ cartUri: {
2112
+ description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created.",
2113
+ format: "at-uri",
2114
+ type: "string"
2115
+ },
2116
+ redirectUrl: {
2117
+ description: "URL to redirect to after checkout completes",
2118
+ format: "uri",
1968
2119
  type: "string"
1969
2120
  }
1970
2121
  },
@@ -2002,13 +2153,7 @@ var create_default2 = {
2002
2153
  type: "string"
2003
2154
  }
2004
2155
  },
2005
- required: [
2006
- "subscriptionUri",
2007
- "subscription",
2008
- "cartUri",
2009
- "cart",
2010
- "checkoutUrl"
2011
- ],
2156
+ required: ["subscriptionUri", "subscription"],
2012
2157
  type: "object"
2013
2158
  }
2014
2159
  },
@@ -2081,6 +2226,7 @@ var list_default3 = {
2081
2226
  properties: {
2082
2227
  cursor: {
2083
2228
  type: "string",
2229
+ maxLength: 512,
2084
2230
  description: "Pagination cursor"
2085
2231
  },
2086
2232
  limit: {
@@ -2108,6 +2254,7 @@ var list_default3 = {
2108
2254
  },
2109
2255
  cursor: {
2110
2256
  type: "string",
2257
+ maxLength: 512,
2111
2258
  description: "Pagination cursor for next page"
2112
2259
  }
2113
2260
  }
@@ -2211,6 +2358,7 @@ var create_default3 = {
2211
2358
  },
2212
2359
  currency: {
2213
2360
  type: "string",
2361
+ maxLength: 3,
2214
2362
  description: "ISO 4217 currency code"
2215
2363
  },
2216
2364
  cartUri: {
@@ -2236,7 +2384,7 @@ var create_default3 = {
2236
2384
  encoding: "application/json",
2237
2385
  schema: {
2238
2386
  type: "object",
2239
- required: ["tipUri", "tip", "cartUri", "cart", "checkoutUrl"],
2387
+ required: ["tipUri", "tip"],
2240
2388
  properties: {
2241
2389
  tipUri: {
2242
2390
  type: "string",
@@ -2332,6 +2480,7 @@ var list_default4 = {
2332
2480
  properties: {
2333
2481
  cursor: {
2334
2482
  type: "string",
2483
+ maxLength: 512,
2335
2484
  description: "Pagination cursor"
2336
2485
  },
2337
2486
  limit: {
@@ -2359,6 +2508,7 @@ var list_default4 = {
2359
2508
  },
2360
2509
  cursor: {
2361
2510
  type: "string",
2511
+ maxLength: 512,
2362
2512
  description: "Pagination cursor for next page"
2363
2513
  }
2364
2514
  }
@@ -2518,6 +2668,7 @@ var search_default = {
2518
2668
  },
2519
2669
  cursor: {
2520
2670
  type: "string",
2671
+ maxLength: 512,
2521
2672
  description: "Pagination cursor"
2522
2673
  },
2523
2674
  limit: {
@@ -2545,6 +2696,7 @@ var search_default = {
2545
2696
  },
2546
2697
  cursor: {
2547
2698
  type: "string",
2699
+ maxLength: 512,
2548
2700
  description: "Pagination cursor for next page"
2549
2701
  }
2550
2702
  }
@@ -2618,10 +2770,12 @@ var validate_default = {
2618
2770
  },
2619
2771
  currency: {
2620
2772
  type: "string",
2773
+ maxLength: 3,
2621
2774
  description: "Currency of the subscription"
2622
2775
  },
2623
2776
  reason: {
2624
2777
  type: "string",
2778
+ maxLength: 1024,
2625
2779
  description: "If invalid, reason for rejection"
2626
2780
  }
2627
2781
  }
@@ -2649,6 +2803,7 @@ var search_default2 = {
2649
2803
  },
2650
2804
  cursor: {
2651
2805
  type: "string",
2806
+ maxLength: 512,
2652
2807
  description: "Pagination cursor"
2653
2808
  },
2654
2809
  limit: {
@@ -2676,6 +2831,7 @@ var search_default2 = {
2676
2831
  },
2677
2832
  cursor: {
2678
2833
  type: "string",
2834
+ maxLength: 512,
2679
2835
  description: "Pagination cursor for next page"
2680
2836
  }
2681
2837
  }
@@ -2754,10 +2910,12 @@ var validate_default2 = {
2754
2910
  },
2755
2911
  currency: {
2756
2912
  type: "string",
2913
+ maxLength: 3,
2757
2914
  description: "Currency of the tips"
2758
2915
  },
2759
2916
  reason: {
2760
2917
  type: "string",
2918
+ maxLength: 1024,
2761
2919
  description: "If invalid, reason for rejection"
2762
2920
  }
2763
2921
  }
@@ -2767,6 +2925,111 @@ var validate_default2 = {
2767
2925
  }
2768
2926
  };
2769
2927
 
2928
+ // src/schemas/authEnhanced.json
2929
+ var authEnhanced_default = {
2930
+ lexicon: 1,
2931
+ id: "com.atiproto.authEnhanced",
2932
+ defs: {
2933
+ main: {
2934
+ type: "permission-set",
2935
+ title: "Enhanced Access",
2936
+ detail: "Full atiproto access. Extends general access with write access to the profile record and RPC access to all profile endpoints.",
2937
+ permissions: [
2938
+ {
2939
+ type: "permission",
2940
+ resource: "repo",
2941
+ collection: [
2942
+ "com.atiproto.cart",
2943
+ "com.atiproto.subscription",
2944
+ "com.atiproto.tip",
2945
+ "com.atiproto.profile"
2946
+ ]
2947
+ },
2948
+ {
2949
+ type: "permission",
2950
+ resource: "rpc",
2951
+ inheritAud: true,
2952
+ lxm: [
2953
+ "com.atiproto.account.cart.clone",
2954
+ "com.atiproto.account.cart.create",
2955
+ "com.atiproto.account.cart.get",
2956
+ "com.atiproto.account.cart.list",
2957
+ "com.atiproto.account.cart.put",
2958
+ "com.atiproto.account.profile.get",
2959
+ "com.atiproto.account.profile.put",
2960
+ "com.atiproto.feed.list",
2961
+ "com.atiproto.feed.subscription.cancel",
2962
+ "com.atiproto.feed.subscription.create",
2963
+ "com.atiproto.feed.subscription.get",
2964
+ "com.atiproto.feed.subscription.list",
2965
+ "com.atiproto.feed.subscription.put",
2966
+ "com.atiproto.feed.tip.create",
2967
+ "com.atiproto.feed.tip.get",
2968
+ "com.atiproto.feed.tip.list",
2969
+ "com.atiproto.feed.tip.put",
2970
+ "com.atiproto.repo.profile.get",
2971
+ "com.atiproto.repo.subscription.search",
2972
+ "com.atiproto.repo.subscription.validate",
2973
+ "com.atiproto.repo.tip.search",
2974
+ "com.atiproto.repo.tip.validate"
2975
+ ]
2976
+ }
2977
+ ]
2978
+ }
2979
+ }
2980
+ };
2981
+
2982
+ // src/schemas/authGeneral.json
2983
+ var authGeneral_default = {
2984
+ lexicon: 1,
2985
+ id: "com.atiproto.authGeneral",
2986
+ defs: {
2987
+ main: {
2988
+ type: "permission-set",
2989
+ title: "General Access",
2990
+ detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints.",
2991
+ permissions: [
2992
+ {
2993
+ type: "permission",
2994
+ resource: "repo",
2995
+ collection: [
2996
+ "com.atiproto.cart",
2997
+ "com.atiproto.subscription",
2998
+ "com.atiproto.tip"
2999
+ ]
3000
+ },
3001
+ {
3002
+ type: "permission",
3003
+ resource: "rpc",
3004
+ inheritAud: true,
3005
+ lxm: [
3006
+ "com.atiproto.account.cart.clone",
3007
+ "com.atiproto.account.cart.create",
3008
+ "com.atiproto.account.cart.get",
3009
+ "com.atiproto.account.cart.list",
3010
+ "com.atiproto.account.cart.put",
3011
+ "com.atiproto.feed.list",
3012
+ "com.atiproto.feed.subscription.cancel",
3013
+ "com.atiproto.feed.subscription.create",
3014
+ "com.atiproto.feed.subscription.get",
3015
+ "com.atiproto.feed.subscription.list",
3016
+ "com.atiproto.feed.subscription.put",
3017
+ "com.atiproto.feed.tip.create",
3018
+ "com.atiproto.feed.tip.get",
3019
+ "com.atiproto.feed.tip.list",
3020
+ "com.atiproto.feed.tip.put",
3021
+ "com.atiproto.repo.profile.get",
3022
+ "com.atiproto.repo.subscription.search",
3023
+ "com.atiproto.repo.subscription.validate",
3024
+ "com.atiproto.repo.tip.search",
3025
+ "com.atiproto.repo.tip.validate"
3026
+ ]
3027
+ }
3028
+ ]
3029
+ }
3030
+ }
3031
+ };
3032
+
2770
3033
  // src/schemas/subscription.json
2771
3034
  var subscription_default = {
2772
3035
  defs: {
@@ -2787,14 +3050,19 @@ var subscription_default = {
2787
3050
  },
2788
3051
  currency: {
2789
3052
  description: "ISO 4217 currency code",
3053
+ maxLength: 3,
2790
3054
  type: "string"
2791
3055
  },
2792
3056
  interval: {
2793
- description: "Billing interval: monthly or yearly",
3057
+ description: "Billing interval",
3058
+ maxLength: 64,
3059
+ enum: ["monthly", "yearly"],
2794
3060
  type: "string"
2795
3061
  },
2796
3062
  status: {
2797
- description: "Subscription status: pending, active, past_due, cancelled, expired",
3063
+ description: "Subscription status",
3064
+ maxLength: 64,
3065
+ enum: ["pending", "active", "past_due", "cancelled", "expired"],
2798
3066
  type: "string"
2799
3067
  },
2800
3068
  billingStartDate: {
@@ -2861,10 +3129,12 @@ var tip_default = {
2861
3129
  },
2862
3130
  currency: {
2863
3131
  description: "ISO 4217 currency code",
3132
+ maxLength: 3,
2864
3133
  type: "string"
2865
3134
  },
2866
3135
  status: {
2867
- description: "Tip status: pending, authorized (payment held), completed, failed, refunded",
3136
+ description: "Tip status",
3137
+ maxLength: 64,
2868
3138
  type: "string",
2869
3139
  enum: ["pending", "authorized", "completed", "failed", "refunded"]
2870
3140
  },
@@ -2921,6 +3191,8 @@ var schemas = [
2921
3191
  validate_default,
2922
3192
  search_default2,
2923
3193
  validate_default2,
3194
+ authEnhanced_default,
3195
+ authGeneral_default,
2924
3196
  subscription_default,
2925
3197
  tip_default
2926
3198
  ];