@atiproto/lexicons 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1432 -885
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1432 -885
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
- package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
- package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
- package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
- package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
- package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
- package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
- package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
- package/dist/lexicons/com/atiproto/account.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
- package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
- package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
- package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
- package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
- package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +52 -12
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20,15 +20,17 @@ __export(atiproto_exports, {
|
|
|
20
20
|
feed: () => feed_exports,
|
|
21
21
|
profile: () => profile_exports2,
|
|
22
22
|
repo: () => repo_exports,
|
|
23
|
-
subscription: () =>
|
|
24
|
-
tip: () =>
|
|
23
|
+
subscription: () => subscription_exports4,
|
|
24
|
+
tip: () => tip_exports4
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
// src/lexicons/com/atiproto/account.ts
|
|
28
28
|
var account_exports = {};
|
|
29
29
|
__export(account_exports, {
|
|
30
30
|
cart: () => cart_exports,
|
|
31
|
-
profile: () => profile_exports
|
|
31
|
+
profile: () => profile_exports,
|
|
32
|
+
subscription: () => subscription_exports,
|
|
33
|
+
tip: () => tip_exports
|
|
32
34
|
});
|
|
33
35
|
|
|
34
36
|
// src/lexicons/com/atiproto/account/cart.ts
|
|
@@ -159,7 +161,7 @@ var main2 = l2.record(
|
|
|
159
161
|
"any",
|
|
160
162
|
$nsid2,
|
|
161
163
|
l2.object({
|
|
162
|
-
subject: l2.string({ format: "did" }),
|
|
164
|
+
subject: l2.optional(l2.string({ format: "did" })),
|
|
163
165
|
recordUri: l2.optional(l2.string({ format: "at-uri" })),
|
|
164
166
|
amount: l2.integer({ minimum: 0 }),
|
|
165
167
|
currency: l2.string({ maxLength: 3 }),
|
|
@@ -191,7 +193,7 @@ var view2 = l2.typedObject(
|
|
|
191
193
|
$nsid2,
|
|
192
194
|
"view",
|
|
193
195
|
l2.object({
|
|
194
|
-
subject: l2.string({ format: "did" }),
|
|
196
|
+
subject: l2.optional(l2.string({ format: "did" })),
|
|
195
197
|
recordUri: l2.optional(l2.string({ format: "at-uri" })),
|
|
196
198
|
amount: l2.integer({ minimum: 0 }),
|
|
197
199
|
currency: l2.string({ maxLength: 3 }),
|
|
@@ -260,7 +262,7 @@ var view3 = l3.typedObject(
|
|
|
260
262
|
$nsid3,
|
|
261
263
|
"view",
|
|
262
264
|
l3.object({
|
|
263
|
-
subject: l3.string({ format: "did" }),
|
|
265
|
+
subject: l3.optional(l3.string({ format: "did" })),
|
|
264
266
|
amount: l3.integer({ minimum: 0 }),
|
|
265
267
|
currency: l3.string({ maxLength: 3 }),
|
|
266
268
|
interval: l3.enum(["monthly", "yearly"]),
|
|
@@ -615,26 +617,282 @@ var $params7 = main11.parameters;
|
|
|
615
617
|
var $input4 = main11.input;
|
|
616
618
|
var $output7 = main11.output;
|
|
617
619
|
|
|
620
|
+
// src/lexicons/com/atiproto/account/subscription.ts
|
|
621
|
+
var subscription_exports = {};
|
|
622
|
+
__export(subscription_exports, {
|
|
623
|
+
get: () => get_exports3,
|
|
624
|
+
list: () => list_exports2,
|
|
625
|
+
validate: () => validate_exports
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
// src/lexicons/com/atiproto/account/subscription/get.ts
|
|
629
|
+
var get_exports3 = {};
|
|
630
|
+
__export(get_exports3, {
|
|
631
|
+
$defs: () => get_defs_exports3,
|
|
632
|
+
$lxm: () => $lxm8,
|
|
633
|
+
$nsid: () => $nsid12,
|
|
634
|
+
$output: () => $output8,
|
|
635
|
+
$params: () => $params8,
|
|
636
|
+
main: () => main12
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
// src/lexicons/com/atiproto/account/subscription/get.defs.ts
|
|
640
|
+
var get_defs_exports3 = {};
|
|
641
|
+
__export(get_defs_exports3, {
|
|
642
|
+
$lxm: () => $lxm8,
|
|
643
|
+
$nsid: () => $nsid12,
|
|
644
|
+
$output: () => $output8,
|
|
645
|
+
$params: () => $params8,
|
|
646
|
+
main: () => main12
|
|
647
|
+
});
|
|
648
|
+
import { l as l12 } from "@atproto/lex";
|
|
649
|
+
var $nsid12 = "com.atiproto.account.subscription.get";
|
|
650
|
+
var main12 = l12.query(
|
|
651
|
+
$nsid12,
|
|
652
|
+
l12.params({
|
|
653
|
+
uri: l12.optional(l12.string({ format: "at-uri" })),
|
|
654
|
+
sender: l12.optional(l12.string({ format: "did" }))
|
|
655
|
+
}),
|
|
656
|
+
l12.jsonPayload({
|
|
657
|
+
subscription: l12.ref(
|
|
658
|
+
(() => view3)
|
|
659
|
+
)
|
|
660
|
+
})
|
|
661
|
+
);
|
|
662
|
+
var $lxm8 = main12.nsid;
|
|
663
|
+
var $params8 = main12.parameters;
|
|
664
|
+
var $output8 = main12.output;
|
|
665
|
+
|
|
666
|
+
// src/lexicons/com/atiproto/account/subscription/list.ts
|
|
667
|
+
var list_exports2 = {};
|
|
668
|
+
__export(list_exports2, {
|
|
669
|
+
$defs: () => list_defs_exports2,
|
|
670
|
+
$lxm: () => $lxm9,
|
|
671
|
+
$nsid: () => $nsid13,
|
|
672
|
+
$output: () => $output9,
|
|
673
|
+
$params: () => $params9,
|
|
674
|
+
main: () => main13
|
|
675
|
+
});
|
|
676
|
+
|
|
677
|
+
// src/lexicons/com/atiproto/account/subscription/list.defs.ts
|
|
678
|
+
var list_defs_exports2 = {};
|
|
679
|
+
__export(list_defs_exports2, {
|
|
680
|
+
$lxm: () => $lxm9,
|
|
681
|
+
$nsid: () => $nsid13,
|
|
682
|
+
$output: () => $output9,
|
|
683
|
+
$params: () => $params9,
|
|
684
|
+
main: () => main13
|
|
685
|
+
});
|
|
686
|
+
import { l as l13 } from "@atproto/lex";
|
|
687
|
+
var $nsid13 = "com.atiproto.account.subscription.list";
|
|
688
|
+
var main13 = l13.query(
|
|
689
|
+
$nsid13,
|
|
690
|
+
l13.params({
|
|
691
|
+
cursor: l13.optional(l13.string({ maxLength: 512 })),
|
|
692
|
+
limit: l13.optional(
|
|
693
|
+
l13.withDefault(l13.integer({ minimum: 1, maximum: 100 }), 50)
|
|
694
|
+
)
|
|
695
|
+
}),
|
|
696
|
+
l13.jsonPayload({
|
|
697
|
+
subscriptions: l13.array(
|
|
698
|
+
l13.ref(
|
|
699
|
+
(() => view3)
|
|
700
|
+
)
|
|
701
|
+
),
|
|
702
|
+
cursor: l13.optional(l13.string({ maxLength: 512 }))
|
|
703
|
+
})
|
|
704
|
+
);
|
|
705
|
+
var $lxm9 = main13.nsid;
|
|
706
|
+
var $params9 = main13.parameters;
|
|
707
|
+
var $output9 = main13.output;
|
|
708
|
+
|
|
709
|
+
// src/lexicons/com/atiproto/account/subscription/validate.ts
|
|
710
|
+
var validate_exports = {};
|
|
711
|
+
__export(validate_exports, {
|
|
712
|
+
$defs: () => validate_defs_exports,
|
|
713
|
+
$lxm: () => $lxm10,
|
|
714
|
+
$nsid: () => $nsid14,
|
|
715
|
+
$output: () => $output10,
|
|
716
|
+
$params: () => $params10,
|
|
717
|
+
main: () => main14
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
// src/lexicons/com/atiproto/account/subscription/validate.defs.ts
|
|
721
|
+
var validate_defs_exports = {};
|
|
722
|
+
__export(validate_defs_exports, {
|
|
723
|
+
$lxm: () => $lxm10,
|
|
724
|
+
$nsid: () => $nsid14,
|
|
725
|
+
$output: () => $output10,
|
|
726
|
+
$params: () => $params10,
|
|
727
|
+
main: () => main14
|
|
728
|
+
});
|
|
729
|
+
import { l as l14 } from "@atproto/lex";
|
|
730
|
+
var $nsid14 = "com.atiproto.account.subscription.validate";
|
|
731
|
+
var main14 = l14.query(
|
|
732
|
+
$nsid14,
|
|
733
|
+
l14.params({
|
|
734
|
+
subscriptionUri: l14.optional(l14.string({ format: "at-uri" })),
|
|
735
|
+
sender: l14.optional(l14.string({ format: "did" })),
|
|
736
|
+
amount: l14.optional(l14.integer())
|
|
737
|
+
}),
|
|
738
|
+
l14.jsonPayload({
|
|
739
|
+
valid: l14.boolean(),
|
|
740
|
+
amount: l14.optional(l14.integer()),
|
|
741
|
+
currency: l14.optional(l14.string({ maxLength: 3 })),
|
|
742
|
+
reason: l14.optional(l14.string({ maxLength: 1024 }))
|
|
743
|
+
})
|
|
744
|
+
);
|
|
745
|
+
var $lxm10 = main14.nsid;
|
|
746
|
+
var $params10 = main14.parameters;
|
|
747
|
+
var $output10 = main14.output;
|
|
748
|
+
|
|
749
|
+
// src/lexicons/com/atiproto/account/tip.ts
|
|
750
|
+
var tip_exports = {};
|
|
751
|
+
__export(tip_exports, {
|
|
752
|
+
get: () => get_exports4,
|
|
753
|
+
list: () => list_exports3,
|
|
754
|
+
validate: () => validate_exports2
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
// src/lexicons/com/atiproto/account/tip/get.ts
|
|
758
|
+
var get_exports4 = {};
|
|
759
|
+
__export(get_exports4, {
|
|
760
|
+
$defs: () => get_defs_exports4,
|
|
761
|
+
$lxm: () => $lxm11,
|
|
762
|
+
$nsid: () => $nsid15,
|
|
763
|
+
$output: () => $output11,
|
|
764
|
+
$params: () => $params11,
|
|
765
|
+
main: () => main15
|
|
766
|
+
});
|
|
767
|
+
|
|
768
|
+
// src/lexicons/com/atiproto/account/tip/get.defs.ts
|
|
769
|
+
var get_defs_exports4 = {};
|
|
770
|
+
__export(get_defs_exports4, {
|
|
771
|
+
$lxm: () => $lxm11,
|
|
772
|
+
$nsid: () => $nsid15,
|
|
773
|
+
$output: () => $output11,
|
|
774
|
+
$params: () => $params11,
|
|
775
|
+
main: () => main15
|
|
776
|
+
});
|
|
777
|
+
import { l as l15 } from "@atproto/lex";
|
|
778
|
+
var $nsid15 = "com.atiproto.account.tip.get";
|
|
779
|
+
var main15 = l15.query(
|
|
780
|
+
$nsid15,
|
|
781
|
+
l15.params({
|
|
782
|
+
uri: l15.optional(l15.string({ format: "at-uri" })),
|
|
783
|
+
sender: l15.optional(l15.string({ format: "did" })),
|
|
784
|
+
recordUri: l15.optional(l15.string({ format: "at-uri" }))
|
|
785
|
+
}),
|
|
786
|
+
l15.jsonPayload({
|
|
787
|
+
tip: l15.ref((() => view2))
|
|
788
|
+
})
|
|
789
|
+
);
|
|
790
|
+
var $lxm11 = main15.nsid;
|
|
791
|
+
var $params11 = main15.parameters;
|
|
792
|
+
var $output11 = main15.output;
|
|
793
|
+
|
|
794
|
+
// src/lexicons/com/atiproto/account/tip/list.ts
|
|
795
|
+
var list_exports3 = {};
|
|
796
|
+
__export(list_exports3, {
|
|
797
|
+
$defs: () => list_defs_exports3,
|
|
798
|
+
$lxm: () => $lxm12,
|
|
799
|
+
$nsid: () => $nsid16,
|
|
800
|
+
$output: () => $output12,
|
|
801
|
+
$params: () => $params12,
|
|
802
|
+
main: () => main16
|
|
803
|
+
});
|
|
804
|
+
|
|
805
|
+
// src/lexicons/com/atiproto/account/tip/list.defs.ts
|
|
806
|
+
var list_defs_exports3 = {};
|
|
807
|
+
__export(list_defs_exports3, {
|
|
808
|
+
$lxm: () => $lxm12,
|
|
809
|
+
$nsid: () => $nsid16,
|
|
810
|
+
$output: () => $output12,
|
|
811
|
+
$params: () => $params12,
|
|
812
|
+
main: () => main16
|
|
813
|
+
});
|
|
814
|
+
import { l as l16 } from "@atproto/lex";
|
|
815
|
+
var $nsid16 = "com.atiproto.account.tip.list";
|
|
816
|
+
var main16 = l16.query(
|
|
817
|
+
$nsid16,
|
|
818
|
+
l16.params({
|
|
819
|
+
sender: l16.optional(l16.string({ format: "did" })),
|
|
820
|
+
recordUri: l16.optional(l16.string({ format: "at-uri" })),
|
|
821
|
+
cursor: l16.optional(l16.string({ maxLength: 512 })),
|
|
822
|
+
limit: l16.optional(
|
|
823
|
+
l16.withDefault(l16.integer({ minimum: 1, maximum: 100 }), 50)
|
|
824
|
+
)
|
|
825
|
+
}),
|
|
826
|
+
l16.jsonPayload({
|
|
827
|
+
tips: l16.array(l16.ref((() => view2))),
|
|
828
|
+
cursor: l16.optional(l16.string({ maxLength: 512 }))
|
|
829
|
+
})
|
|
830
|
+
);
|
|
831
|
+
var $lxm12 = main16.nsid;
|
|
832
|
+
var $params12 = main16.parameters;
|
|
833
|
+
var $output12 = main16.output;
|
|
834
|
+
|
|
835
|
+
// src/lexicons/com/atiproto/account/tip/validate.ts
|
|
836
|
+
var validate_exports2 = {};
|
|
837
|
+
__export(validate_exports2, {
|
|
838
|
+
$defs: () => validate_defs_exports2,
|
|
839
|
+
$lxm: () => $lxm13,
|
|
840
|
+
$nsid: () => $nsid17,
|
|
841
|
+
$output: () => $output13,
|
|
842
|
+
$params: () => $params13,
|
|
843
|
+
main: () => main17
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
// src/lexicons/com/atiproto/account/tip/validate.defs.ts
|
|
847
|
+
var validate_defs_exports2 = {};
|
|
848
|
+
__export(validate_defs_exports2, {
|
|
849
|
+
$lxm: () => $lxm13,
|
|
850
|
+
$nsid: () => $nsid17,
|
|
851
|
+
$output: () => $output13,
|
|
852
|
+
$params: () => $params13,
|
|
853
|
+
main: () => main17
|
|
854
|
+
});
|
|
855
|
+
import { l as l17 } from "@atproto/lex";
|
|
856
|
+
var $nsid17 = "com.atiproto.account.tip.validate";
|
|
857
|
+
var main17 = l17.query(
|
|
858
|
+
$nsid17,
|
|
859
|
+
l17.params({
|
|
860
|
+
tipUri: l17.optional(l17.string({ format: "at-uri" })),
|
|
861
|
+
recordUri: l17.optional(l17.string({ format: "at-uri" })),
|
|
862
|
+
sender: l17.optional(l17.string({ format: "did" })),
|
|
863
|
+
amount: l17.optional(l17.integer())
|
|
864
|
+
}),
|
|
865
|
+
l17.jsonPayload({
|
|
866
|
+
valid: l17.boolean(),
|
|
867
|
+
amount: l17.optional(l17.integer()),
|
|
868
|
+
currency: l17.optional(l17.string({ maxLength: 3 })),
|
|
869
|
+
reason: l17.optional(l17.string({ maxLength: 1024 }))
|
|
870
|
+
})
|
|
871
|
+
);
|
|
872
|
+
var $lxm13 = main17.nsid;
|
|
873
|
+
var $params13 = main17.parameters;
|
|
874
|
+
var $output13 = main17.output;
|
|
875
|
+
|
|
618
876
|
// src/lexicons/com/atiproto/authEnhanced.ts
|
|
619
877
|
var authEnhanced_exports = {};
|
|
620
878
|
__export(authEnhanced_exports, {
|
|
621
879
|
$defs: () => authEnhanced_defs_exports,
|
|
622
|
-
$nsid: () => $
|
|
623
|
-
main: () =>
|
|
880
|
+
$nsid: () => $nsid18,
|
|
881
|
+
main: () => main18
|
|
624
882
|
});
|
|
625
883
|
|
|
626
884
|
// src/lexicons/com/atiproto/authEnhanced.defs.ts
|
|
627
885
|
var authEnhanced_defs_exports = {};
|
|
628
886
|
__export(authEnhanced_defs_exports, {
|
|
629
|
-
$nsid: () => $
|
|
630
|
-
main: () =>
|
|
887
|
+
$nsid: () => $nsid18,
|
|
888
|
+
main: () => main18
|
|
631
889
|
});
|
|
632
|
-
import { l as
|
|
633
|
-
var $
|
|
634
|
-
var
|
|
635
|
-
$
|
|
890
|
+
import { l as l18 } from "@atproto/lex";
|
|
891
|
+
var $nsid18 = "com.atiproto.authEnhanced";
|
|
892
|
+
var main18 = l18.permissionSet(
|
|
893
|
+
$nsid18,
|
|
636
894
|
[
|
|
637
|
-
|
|
895
|
+
l18.permission("repo", {
|
|
638
896
|
collection: [
|
|
639
897
|
"com.atiproto.cart",
|
|
640
898
|
"com.atiproto.subscription",
|
|
@@ -642,7 +900,7 @@ var main12 = l12.permissionSet(
|
|
|
642
900
|
"com.atiproto.profile"
|
|
643
901
|
]
|
|
644
902
|
}),
|
|
645
|
-
|
|
903
|
+
l18.permission("rpc", {
|
|
646
904
|
inheritAud: true,
|
|
647
905
|
lxm: [
|
|
648
906
|
"com.atiproto.account.cart.clone",
|
|
@@ -652,21 +910,27 @@ var main12 = l12.permissionSet(
|
|
|
652
910
|
"com.atiproto.account.cart.put",
|
|
653
911
|
"com.atiproto.account.profile.get",
|
|
654
912
|
"com.atiproto.account.profile.put",
|
|
913
|
+
"com.atiproto.account.subscription.get",
|
|
914
|
+
"com.atiproto.account.subscription.list",
|
|
915
|
+
"com.atiproto.account.subscription.validate",
|
|
916
|
+
"com.atiproto.account.tip.get",
|
|
917
|
+
"com.atiproto.account.tip.list",
|
|
918
|
+
"com.atiproto.account.tip.validate",
|
|
655
919
|
"com.atiproto.feed.list",
|
|
656
920
|
"com.atiproto.feed.subscription.cancel",
|
|
657
921
|
"com.atiproto.feed.subscription.create",
|
|
658
922
|
"com.atiproto.feed.subscription.get",
|
|
659
923
|
"com.atiproto.feed.subscription.list",
|
|
660
924
|
"com.atiproto.feed.subscription.put",
|
|
925
|
+
"com.atiproto.feed.subscription.validate",
|
|
661
926
|
"com.atiproto.feed.tip.create",
|
|
662
927
|
"com.atiproto.feed.tip.get",
|
|
663
928
|
"com.atiproto.feed.tip.list",
|
|
664
929
|
"com.atiproto.feed.tip.put",
|
|
930
|
+
"com.atiproto.feed.tip.validate",
|
|
665
931
|
"com.atiproto.repo.profile.get",
|
|
666
|
-
"com.atiproto.repo.subscription.
|
|
667
|
-
"com.atiproto.repo.
|
|
668
|
-
"com.atiproto.repo.tip.search",
|
|
669
|
-
"com.atiproto.repo.tip.validate"
|
|
932
|
+
"com.atiproto.repo.subscription.count",
|
|
933
|
+
"com.atiproto.repo.tip.count"
|
|
670
934
|
]
|
|
671
935
|
})
|
|
672
936
|
],
|
|
@@ -680,29 +944,29 @@ var main12 = l12.permissionSet(
|
|
|
680
944
|
var authGeneral_exports = {};
|
|
681
945
|
__export(authGeneral_exports, {
|
|
682
946
|
$defs: () => authGeneral_defs_exports,
|
|
683
|
-
$nsid: () => $
|
|
684
|
-
main: () =>
|
|
947
|
+
$nsid: () => $nsid19,
|
|
948
|
+
main: () => main19
|
|
685
949
|
});
|
|
686
950
|
|
|
687
951
|
// src/lexicons/com/atiproto/authGeneral.defs.ts
|
|
688
952
|
var authGeneral_defs_exports = {};
|
|
689
953
|
__export(authGeneral_defs_exports, {
|
|
690
|
-
$nsid: () => $
|
|
691
|
-
main: () =>
|
|
954
|
+
$nsid: () => $nsid19,
|
|
955
|
+
main: () => main19
|
|
692
956
|
});
|
|
693
|
-
import { l as
|
|
694
|
-
var $
|
|
695
|
-
var
|
|
696
|
-
$
|
|
957
|
+
import { l as l19 } from "@atproto/lex";
|
|
958
|
+
var $nsid19 = "com.atiproto.authGeneral";
|
|
959
|
+
var main19 = l19.permissionSet(
|
|
960
|
+
$nsid19,
|
|
697
961
|
[
|
|
698
|
-
|
|
962
|
+
l19.permission("repo", {
|
|
699
963
|
collection: [
|
|
700
964
|
"com.atiproto.cart",
|
|
701
965
|
"com.atiproto.subscription",
|
|
702
966
|
"com.atiproto.tip"
|
|
703
967
|
]
|
|
704
968
|
}),
|
|
705
|
-
|
|
969
|
+
l19.permission("rpc", {
|
|
706
970
|
inheritAud: true,
|
|
707
971
|
lxm: [
|
|
708
972
|
"com.atiproto.account.cart.clone",
|
|
@@ -710,21 +974,27 @@ var main13 = l13.permissionSet(
|
|
|
710
974
|
"com.atiproto.account.cart.get",
|
|
711
975
|
"com.atiproto.account.cart.list",
|
|
712
976
|
"com.atiproto.account.cart.put",
|
|
977
|
+
"com.atiproto.account.subscription.get",
|
|
978
|
+
"com.atiproto.account.subscription.list",
|
|
979
|
+
"com.atiproto.account.subscription.validate",
|
|
980
|
+
"com.atiproto.account.tip.get",
|
|
981
|
+
"com.atiproto.account.tip.list",
|
|
982
|
+
"com.atiproto.account.tip.validate",
|
|
713
983
|
"com.atiproto.feed.list",
|
|
714
984
|
"com.atiproto.feed.subscription.cancel",
|
|
715
985
|
"com.atiproto.feed.subscription.create",
|
|
716
986
|
"com.atiproto.feed.subscription.get",
|
|
717
987
|
"com.atiproto.feed.subscription.list",
|
|
718
988
|
"com.atiproto.feed.subscription.put",
|
|
989
|
+
"com.atiproto.feed.subscription.validate",
|
|
719
990
|
"com.atiproto.feed.tip.create",
|
|
720
991
|
"com.atiproto.feed.tip.get",
|
|
721
992
|
"com.atiproto.feed.tip.list",
|
|
722
993
|
"com.atiproto.feed.tip.put",
|
|
994
|
+
"com.atiproto.feed.tip.validate",
|
|
723
995
|
"com.atiproto.repo.profile.get",
|
|
724
|
-
"com.atiproto.repo.subscription.
|
|
725
|
-
"com.atiproto.repo.
|
|
726
|
-
"com.atiproto.repo.tip.search",
|
|
727
|
-
"com.atiproto.repo.tip.validate"
|
|
996
|
+
"com.atiproto.repo.subscription.count",
|
|
997
|
+
"com.atiproto.repo.tip.count"
|
|
728
998
|
]
|
|
729
999
|
})
|
|
730
1000
|
],
|
|
@@ -759,63 +1029,64 @@ __export(cart_exports2, {
|
|
|
759
1029
|
// src/lexicons/com/atiproto/feed.ts
|
|
760
1030
|
var feed_exports = {};
|
|
761
1031
|
__export(feed_exports, {
|
|
762
|
-
list: () =>
|
|
763
|
-
subscription: () =>
|
|
764
|
-
tip: () =>
|
|
1032
|
+
list: () => list_exports4,
|
|
1033
|
+
subscription: () => subscription_exports2,
|
|
1034
|
+
tip: () => tip_exports2
|
|
765
1035
|
});
|
|
766
1036
|
|
|
767
1037
|
// src/lexicons/com/atiproto/feed/list.ts
|
|
768
|
-
var
|
|
769
|
-
__export(
|
|
770
|
-
$defs: () =>
|
|
771
|
-
$lxm: () => $
|
|
772
|
-
$nsid: () => $
|
|
773
|
-
$output: () => $
|
|
774
|
-
$params: () => $
|
|
775
|
-
main: () =>
|
|
1038
|
+
var list_exports4 = {};
|
|
1039
|
+
__export(list_exports4, {
|
|
1040
|
+
$defs: () => list_defs_exports4,
|
|
1041
|
+
$lxm: () => $lxm14,
|
|
1042
|
+
$nsid: () => $nsid20,
|
|
1043
|
+
$output: () => $output14,
|
|
1044
|
+
$params: () => $params14,
|
|
1045
|
+
main: () => main20
|
|
776
1046
|
});
|
|
777
1047
|
|
|
778
1048
|
// src/lexicons/com/atiproto/feed/list.defs.ts
|
|
779
|
-
var
|
|
780
|
-
__export(
|
|
781
|
-
$lxm: () => $
|
|
782
|
-
$nsid: () => $
|
|
783
|
-
$output: () => $
|
|
784
|
-
$params: () => $
|
|
785
|
-
main: () =>
|
|
1049
|
+
var list_defs_exports4 = {};
|
|
1050
|
+
__export(list_defs_exports4, {
|
|
1051
|
+
$lxm: () => $lxm14,
|
|
1052
|
+
$nsid: () => $nsid20,
|
|
1053
|
+
$output: () => $output14,
|
|
1054
|
+
$params: () => $params14,
|
|
1055
|
+
main: () => main20
|
|
786
1056
|
});
|
|
787
|
-
import { l as
|
|
788
|
-
var $
|
|
789
|
-
var
|
|
790
|
-
$
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
items:
|
|
794
|
-
|
|
1057
|
+
import { l as l20 } from "@atproto/lex";
|
|
1058
|
+
var $nsid20 = "com.atiproto.feed.list";
|
|
1059
|
+
var main20 = l20.query(
|
|
1060
|
+
$nsid20,
|
|
1061
|
+
l20.params(),
|
|
1062
|
+
l20.jsonPayload({
|
|
1063
|
+
items: l20.array(
|
|
1064
|
+
l20.typedUnion(
|
|
795
1065
|
[
|
|
796
|
-
|
|
797
|
-
|
|
1066
|
+
l20.typedRef((() => main2)),
|
|
1067
|
+
l20.typedRef(
|
|
798
1068
|
(() => main3)
|
|
799
1069
|
)
|
|
800
1070
|
],
|
|
801
1071
|
false
|
|
802
1072
|
)
|
|
803
1073
|
),
|
|
804
|
-
cursor:
|
|
1074
|
+
cursor: l20.optional(l20.string({ maxLength: 512 }))
|
|
805
1075
|
})
|
|
806
1076
|
);
|
|
807
|
-
var $
|
|
808
|
-
var $
|
|
809
|
-
var $
|
|
1077
|
+
var $lxm14 = main20.nsid;
|
|
1078
|
+
var $params14 = main20.parameters;
|
|
1079
|
+
var $output14 = main20.output;
|
|
810
1080
|
|
|
811
1081
|
// src/lexicons/com/atiproto/feed/subscription.ts
|
|
812
|
-
var
|
|
813
|
-
__export(
|
|
1082
|
+
var subscription_exports2 = {};
|
|
1083
|
+
__export(subscription_exports2, {
|
|
814
1084
|
cancel: () => cancel_exports,
|
|
815
1085
|
create: () => create_exports2,
|
|
816
|
-
get: () =>
|
|
817
|
-
list: () =>
|
|
818
|
-
put: () => put_exports3
|
|
1086
|
+
get: () => get_exports5,
|
|
1087
|
+
list: () => list_exports5,
|
|
1088
|
+
put: () => put_exports3,
|
|
1089
|
+
validate: () => validate_exports3
|
|
819
1090
|
});
|
|
820
1091
|
|
|
821
1092
|
// src/lexicons/com/atiproto/feed/subscription/cancel.ts
|
|
@@ -823,174 +1094,175 @@ var cancel_exports = {};
|
|
|
823
1094
|
__export(cancel_exports, {
|
|
824
1095
|
$defs: () => cancel_defs_exports,
|
|
825
1096
|
$input: () => $input5,
|
|
826
|
-
$lxm: () => $
|
|
827
|
-
$nsid: () => $
|
|
828
|
-
$output: () => $
|
|
829
|
-
$params: () => $
|
|
830
|
-
main: () =>
|
|
1097
|
+
$lxm: () => $lxm15,
|
|
1098
|
+
$nsid: () => $nsid21,
|
|
1099
|
+
$output: () => $output15,
|
|
1100
|
+
$params: () => $params15,
|
|
1101
|
+
main: () => main21
|
|
831
1102
|
});
|
|
832
1103
|
|
|
833
1104
|
// src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
|
|
834
1105
|
var cancel_defs_exports = {};
|
|
835
1106
|
__export(cancel_defs_exports, {
|
|
836
1107
|
$input: () => $input5,
|
|
837
|
-
$lxm: () => $
|
|
838
|
-
$nsid: () => $
|
|
839
|
-
$output: () => $
|
|
840
|
-
$params: () => $
|
|
841
|
-
main: () =>
|
|
1108
|
+
$lxm: () => $lxm15,
|
|
1109
|
+
$nsid: () => $nsid21,
|
|
1110
|
+
$output: () => $output15,
|
|
1111
|
+
$params: () => $params15,
|
|
1112
|
+
main: () => main21
|
|
842
1113
|
});
|
|
843
|
-
import { l as
|
|
844
|
-
var $
|
|
845
|
-
var
|
|
846
|
-
$
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
subscriptionUri:
|
|
851
|
-
subscription:
|
|
1114
|
+
import { l as l21 } from "@atproto/lex";
|
|
1115
|
+
var $nsid21 = "com.atiproto.feed.subscription.cancel";
|
|
1116
|
+
var main21 = l21.procedure(
|
|
1117
|
+
$nsid21,
|
|
1118
|
+
l21.params(),
|
|
1119
|
+
l21.jsonPayload({ subscriptionUri: l21.string({ format: "at-uri" }) }),
|
|
1120
|
+
l21.jsonPayload({
|
|
1121
|
+
subscriptionUri: l21.string({ format: "at-uri" }),
|
|
1122
|
+
subscription: l21.ref(
|
|
852
1123
|
(() => view3)
|
|
853
1124
|
),
|
|
854
|
-
accessUntil:
|
|
1125
|
+
accessUntil: l21.string({ format: "datetime" })
|
|
855
1126
|
})
|
|
856
1127
|
);
|
|
857
|
-
var $
|
|
858
|
-
var $
|
|
859
|
-
var $input5 =
|
|
860
|
-
var $
|
|
1128
|
+
var $lxm15 = main21.nsid;
|
|
1129
|
+
var $params15 = main21.parameters;
|
|
1130
|
+
var $input5 = main21.input;
|
|
1131
|
+
var $output15 = main21.output;
|
|
861
1132
|
|
|
862
1133
|
// src/lexicons/com/atiproto/feed/subscription/create.ts
|
|
863
1134
|
var create_exports2 = {};
|
|
864
1135
|
__export(create_exports2, {
|
|
865
1136
|
$defs: () => create_defs_exports2,
|
|
866
1137
|
$input: () => $input6,
|
|
867
|
-
$lxm: () => $
|
|
868
|
-
$nsid: () => $
|
|
869
|
-
$output: () => $
|
|
870
|
-
$params: () => $
|
|
871
|
-
main: () =>
|
|
1138
|
+
$lxm: () => $lxm16,
|
|
1139
|
+
$nsid: () => $nsid22,
|
|
1140
|
+
$output: () => $output16,
|
|
1141
|
+
$params: () => $params16,
|
|
1142
|
+
main: () => main22
|
|
872
1143
|
});
|
|
873
1144
|
|
|
874
1145
|
// src/lexicons/com/atiproto/feed/subscription/create.defs.ts
|
|
875
1146
|
var create_defs_exports2 = {};
|
|
876
1147
|
__export(create_defs_exports2, {
|
|
877
1148
|
$input: () => $input6,
|
|
878
|
-
$lxm: () => $
|
|
879
|
-
$nsid: () => $
|
|
880
|
-
$output: () => $
|
|
881
|
-
$params: () => $
|
|
882
|
-
main: () =>
|
|
1149
|
+
$lxm: () => $lxm16,
|
|
1150
|
+
$nsid: () => $nsid22,
|
|
1151
|
+
$output: () => $output16,
|
|
1152
|
+
$params: () => $params16,
|
|
1153
|
+
main: () => main22
|
|
883
1154
|
});
|
|
884
|
-
import { l as
|
|
885
|
-
var $
|
|
886
|
-
var
|
|
887
|
-
$
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
subject:
|
|
891
|
-
amount:
|
|
892
|
-
currency:
|
|
893
|
-
interval:
|
|
894
|
-
cartUri:
|
|
895
|
-
redirectUrl:
|
|
1155
|
+
import { l as l22 } from "@atproto/lex";
|
|
1156
|
+
var $nsid22 = "com.atiproto.feed.subscription.create";
|
|
1157
|
+
var main22 = l22.procedure(
|
|
1158
|
+
$nsid22,
|
|
1159
|
+
l22.params(),
|
|
1160
|
+
l22.jsonPayload({
|
|
1161
|
+
subject: l22.string({ format: "did" }),
|
|
1162
|
+
amount: l22.optional(l22.integer()),
|
|
1163
|
+
currency: l22.string({ maxLength: 3 }),
|
|
1164
|
+
interval: l22.enum(["monthly", "yearly"]),
|
|
1165
|
+
cartUri: l22.optional(l22.string({ format: "at-uri" })),
|
|
1166
|
+
redirectUrl: l22.optional(l22.string({ format: "uri" })),
|
|
1167
|
+
isPrivate: l22.optional(l22.boolean())
|
|
896
1168
|
}),
|
|
897
|
-
|
|
898
|
-
subscriptionUri:
|
|
899
|
-
subscription:
|
|
1169
|
+
l22.jsonPayload({
|
|
1170
|
+
subscriptionUri: l22.string({ format: "at-uri" }),
|
|
1171
|
+
subscription: l22.ref(
|
|
900
1172
|
(() => view3)
|
|
901
1173
|
),
|
|
902
|
-
cartUri:
|
|
903
|
-
cart:
|
|
904
|
-
|
|
1174
|
+
cartUri: l22.optional(l22.string({ format: "at-uri" })),
|
|
1175
|
+
cart: l22.optional(
|
|
1176
|
+
l22.ref((() => view))
|
|
905
1177
|
),
|
|
906
|
-
checkoutUrl:
|
|
1178
|
+
checkoutUrl: l22.optional(l22.string({ format: "uri" }))
|
|
907
1179
|
})
|
|
908
1180
|
);
|
|
909
|
-
var $
|
|
910
|
-
var $
|
|
911
|
-
var $input6 =
|
|
912
|
-
var $
|
|
1181
|
+
var $lxm16 = main22.nsid;
|
|
1182
|
+
var $params16 = main22.parameters;
|
|
1183
|
+
var $input6 = main22.input;
|
|
1184
|
+
var $output16 = main22.output;
|
|
913
1185
|
|
|
914
1186
|
// src/lexicons/com/atiproto/feed/subscription/get.ts
|
|
915
|
-
var
|
|
916
|
-
__export(
|
|
917
|
-
$defs: () =>
|
|
918
|
-
$lxm: () => $
|
|
919
|
-
$nsid: () => $
|
|
920
|
-
$output: () => $
|
|
921
|
-
$params: () => $
|
|
922
|
-
main: () =>
|
|
1187
|
+
var get_exports5 = {};
|
|
1188
|
+
__export(get_exports5, {
|
|
1189
|
+
$defs: () => get_defs_exports5,
|
|
1190
|
+
$lxm: () => $lxm17,
|
|
1191
|
+
$nsid: () => $nsid23,
|
|
1192
|
+
$output: () => $output17,
|
|
1193
|
+
$params: () => $params17,
|
|
1194
|
+
main: () => main23
|
|
923
1195
|
});
|
|
924
1196
|
|
|
925
1197
|
// src/lexicons/com/atiproto/feed/subscription/get.defs.ts
|
|
926
|
-
var
|
|
927
|
-
__export(
|
|
928
|
-
$lxm: () => $
|
|
929
|
-
$nsid: () => $
|
|
930
|
-
$output: () => $
|
|
931
|
-
$params: () => $
|
|
932
|
-
main: () =>
|
|
1198
|
+
var get_defs_exports5 = {};
|
|
1199
|
+
__export(get_defs_exports5, {
|
|
1200
|
+
$lxm: () => $lxm17,
|
|
1201
|
+
$nsid: () => $nsid23,
|
|
1202
|
+
$output: () => $output17,
|
|
1203
|
+
$params: () => $params17,
|
|
1204
|
+
main: () => main23
|
|
933
1205
|
});
|
|
934
|
-
import { l as
|
|
935
|
-
var $
|
|
936
|
-
var
|
|
937
|
-
$
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
uri:
|
|
941
|
-
cid:
|
|
942
|
-
record:
|
|
1206
|
+
import { l as l23 } from "@atproto/lex";
|
|
1207
|
+
var $nsid23 = "com.atiproto.feed.subscription.get";
|
|
1208
|
+
var main23 = l23.query(
|
|
1209
|
+
$nsid23,
|
|
1210
|
+
l23.params({ uri: l23.string({ format: "at-uri" }) }),
|
|
1211
|
+
l23.jsonPayload({
|
|
1212
|
+
uri: l23.string({ format: "at-uri" }),
|
|
1213
|
+
cid: l23.string({ format: "cid" }),
|
|
1214
|
+
record: l23.ref(
|
|
943
1215
|
(() => view3)
|
|
944
1216
|
)
|
|
945
1217
|
})
|
|
946
1218
|
);
|
|
947
|
-
var $
|
|
948
|
-
var $
|
|
949
|
-
var $
|
|
1219
|
+
var $lxm17 = main23.nsid;
|
|
1220
|
+
var $params17 = main23.parameters;
|
|
1221
|
+
var $output17 = main23.output;
|
|
950
1222
|
|
|
951
1223
|
// src/lexicons/com/atiproto/feed/subscription/list.ts
|
|
952
|
-
var
|
|
953
|
-
__export(
|
|
954
|
-
$defs: () =>
|
|
955
|
-
$lxm: () => $
|
|
956
|
-
$nsid: () => $
|
|
957
|
-
$output: () => $
|
|
958
|
-
$params: () => $
|
|
959
|
-
main: () =>
|
|
1224
|
+
var list_exports5 = {};
|
|
1225
|
+
__export(list_exports5, {
|
|
1226
|
+
$defs: () => list_defs_exports5,
|
|
1227
|
+
$lxm: () => $lxm18,
|
|
1228
|
+
$nsid: () => $nsid24,
|
|
1229
|
+
$output: () => $output18,
|
|
1230
|
+
$params: () => $params18,
|
|
1231
|
+
main: () => main24,
|
|
960
1232
|
subscriptionResponse: () => subscriptionResponse
|
|
961
1233
|
});
|
|
962
1234
|
|
|
963
1235
|
// src/lexicons/com/atiproto/feed/subscription/list.defs.ts
|
|
964
|
-
var
|
|
965
|
-
__export(
|
|
966
|
-
$lxm: () => $
|
|
967
|
-
$nsid: () => $
|
|
968
|
-
$output: () => $
|
|
969
|
-
$params: () => $
|
|
970
|
-
main: () =>
|
|
1236
|
+
var list_defs_exports5 = {};
|
|
1237
|
+
__export(list_defs_exports5, {
|
|
1238
|
+
$lxm: () => $lxm18,
|
|
1239
|
+
$nsid: () => $nsid24,
|
|
1240
|
+
$output: () => $output18,
|
|
1241
|
+
$params: () => $params18,
|
|
1242
|
+
main: () => main24,
|
|
971
1243
|
subscriptionResponse: () => subscriptionResponse
|
|
972
1244
|
});
|
|
973
|
-
import { l as
|
|
974
|
-
var $
|
|
975
|
-
var
|
|
976
|
-
$
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
subscriptions:
|
|
980
|
-
|
|
1245
|
+
import { l as l24 } from "@atproto/lex";
|
|
1246
|
+
var $nsid24 = "com.atiproto.feed.subscription.list";
|
|
1247
|
+
var main24 = l24.query(
|
|
1248
|
+
$nsid24,
|
|
1249
|
+
l24.params(),
|
|
1250
|
+
l24.jsonPayload({
|
|
1251
|
+
subscriptions: l24.array(
|
|
1252
|
+
l24.ref((() => subscriptionResponse))
|
|
981
1253
|
),
|
|
982
|
-
cursor:
|
|
1254
|
+
cursor: l24.optional(l24.string({ maxLength: 512 }))
|
|
983
1255
|
})
|
|
984
1256
|
);
|
|
985
|
-
var $
|
|
986
|
-
var $
|
|
987
|
-
var $
|
|
988
|
-
var subscriptionResponse =
|
|
989
|
-
$
|
|
1257
|
+
var $lxm18 = main24.nsid;
|
|
1258
|
+
var $params18 = main24.parameters;
|
|
1259
|
+
var $output18 = main24.output;
|
|
1260
|
+
var subscriptionResponse = l24.typedObject(
|
|
1261
|
+
$nsid24,
|
|
990
1262
|
"subscriptionResponse",
|
|
991
|
-
|
|
992
|
-
uri:
|
|
993
|
-
record:
|
|
1263
|
+
l24.object({
|
|
1264
|
+
uri: l24.string({ format: "at-uri" }),
|
|
1265
|
+
record: l24.ref(
|
|
994
1266
|
(() => view3)
|
|
995
1267
|
)
|
|
996
1268
|
})
|
|
@@ -1001,51 +1273,92 @@ var put_exports3 = {};
|
|
|
1001
1273
|
__export(put_exports3, {
|
|
1002
1274
|
$defs: () => put_defs_exports3,
|
|
1003
1275
|
$input: () => $input7,
|
|
1004
|
-
$lxm: () => $
|
|
1005
|
-
$nsid: () => $
|
|
1006
|
-
$output: () => $
|
|
1007
|
-
$params: () => $
|
|
1008
|
-
main: () =>
|
|
1276
|
+
$lxm: () => $lxm19,
|
|
1277
|
+
$nsid: () => $nsid25,
|
|
1278
|
+
$output: () => $output19,
|
|
1279
|
+
$params: () => $params19,
|
|
1280
|
+
main: () => main25
|
|
1009
1281
|
});
|
|
1010
1282
|
|
|
1011
1283
|
// src/lexicons/com/atiproto/feed/subscription/put.defs.ts
|
|
1012
1284
|
var put_defs_exports3 = {};
|
|
1013
1285
|
__export(put_defs_exports3, {
|
|
1014
1286
|
$input: () => $input7,
|
|
1015
|
-
$lxm: () => $
|
|
1016
|
-
$nsid: () => $
|
|
1017
|
-
$output: () => $
|
|
1018
|
-
$params: () => $
|
|
1019
|
-
main: () =>
|
|
1287
|
+
$lxm: () => $lxm19,
|
|
1288
|
+
$nsid: () => $nsid25,
|
|
1289
|
+
$output: () => $output19,
|
|
1290
|
+
$params: () => $params19,
|
|
1291
|
+
main: () => main25
|
|
1020
1292
|
});
|
|
1021
|
-
import { l as
|
|
1022
|
-
var $
|
|
1023
|
-
var
|
|
1024
|
-
$
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
uri:
|
|
1028
|
-
record:
|
|
1293
|
+
import { l as l25 } from "@atproto/lex";
|
|
1294
|
+
var $nsid25 = "com.atiproto.feed.subscription.put";
|
|
1295
|
+
var main25 = l25.procedure(
|
|
1296
|
+
$nsid25,
|
|
1297
|
+
l25.params(),
|
|
1298
|
+
l25.jsonPayload({
|
|
1299
|
+
uri: l25.string({ format: "at-uri" }),
|
|
1300
|
+
record: l25.ref(
|
|
1029
1301
|
(() => main3)
|
|
1030
1302
|
)
|
|
1031
1303
|
}),
|
|
1032
|
-
|
|
1033
|
-
uri:
|
|
1034
|
-
cid:
|
|
1304
|
+
l25.jsonPayload({
|
|
1305
|
+
uri: l25.string({ format: "at-uri" }),
|
|
1306
|
+
cid: l25.string({ format: "cid" })
|
|
1307
|
+
})
|
|
1308
|
+
);
|
|
1309
|
+
var $lxm19 = main25.nsid;
|
|
1310
|
+
var $params19 = main25.parameters;
|
|
1311
|
+
var $input7 = main25.input;
|
|
1312
|
+
var $output19 = main25.output;
|
|
1313
|
+
|
|
1314
|
+
// src/lexicons/com/atiproto/feed/subscription/validate.ts
|
|
1315
|
+
var validate_exports3 = {};
|
|
1316
|
+
__export(validate_exports3, {
|
|
1317
|
+
$defs: () => validate_defs_exports3,
|
|
1318
|
+
$lxm: () => $lxm20,
|
|
1319
|
+
$nsid: () => $nsid26,
|
|
1320
|
+
$output: () => $output20,
|
|
1321
|
+
$params: () => $params20,
|
|
1322
|
+
main: () => main26
|
|
1323
|
+
});
|
|
1324
|
+
|
|
1325
|
+
// src/lexicons/com/atiproto/feed/subscription/validate.defs.ts
|
|
1326
|
+
var validate_defs_exports3 = {};
|
|
1327
|
+
__export(validate_defs_exports3, {
|
|
1328
|
+
$lxm: () => $lxm20,
|
|
1329
|
+
$nsid: () => $nsid26,
|
|
1330
|
+
$output: () => $output20,
|
|
1331
|
+
$params: () => $params20,
|
|
1332
|
+
main: () => main26
|
|
1333
|
+
});
|
|
1334
|
+
import { l as l26 } from "@atproto/lex";
|
|
1335
|
+
var $nsid26 = "com.atiproto.feed.subscription.validate";
|
|
1336
|
+
var main26 = l26.query(
|
|
1337
|
+
$nsid26,
|
|
1338
|
+
l26.params({
|
|
1339
|
+
subscriptionUri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1340
|
+
subject: l26.optional(l26.string({ format: "did" })),
|
|
1341
|
+
amount: l26.optional(l26.integer())
|
|
1342
|
+
}),
|
|
1343
|
+
l26.jsonPayload({
|
|
1344
|
+
valid: l26.boolean(),
|
|
1345
|
+
amount: l26.optional(l26.integer()),
|
|
1346
|
+
currency: l26.optional(l26.string({ maxLength: 3 })),
|
|
1347
|
+
reason: l26.optional(l26.string({ maxLength: 1024 }))
|
|
1035
1348
|
})
|
|
1036
1349
|
);
|
|
1037
|
-
var $
|
|
1038
|
-
var $
|
|
1039
|
-
var $
|
|
1040
|
-
var $output13 = main19.output;
|
|
1350
|
+
var $lxm20 = main26.nsid;
|
|
1351
|
+
var $params20 = main26.parameters;
|
|
1352
|
+
var $output20 = main26.output;
|
|
1041
1353
|
|
|
1042
1354
|
// src/lexicons/com/atiproto/feed/tip.ts
|
|
1043
|
-
var
|
|
1044
|
-
__export(
|
|
1355
|
+
var tip_exports2 = {};
|
|
1356
|
+
__export(tip_exports2, {
|
|
1045
1357
|
create: () => create_exports3,
|
|
1046
|
-
get: () =>
|
|
1047
|
-
list: () =>
|
|
1048
|
-
put: () => put_exports4
|
|
1358
|
+
get: () => get_exports6,
|
|
1359
|
+
list: () => list_exports6,
|
|
1360
|
+
put: () => put_exports4,
|
|
1361
|
+
validate: () => validate_exports4
|
|
1049
1362
|
});
|
|
1050
1363
|
|
|
1051
1364
|
// src/lexicons/com/atiproto/feed/tip/create.ts
|
|
@@ -1053,161 +1366,203 @@ var create_exports3 = {};
|
|
|
1053
1366
|
__export(create_exports3, {
|
|
1054
1367
|
$defs: () => create_defs_exports3,
|
|
1055
1368
|
$input: () => $input8,
|
|
1056
|
-
$lxm: () => $
|
|
1057
|
-
$nsid: () => $
|
|
1058
|
-
$output: () => $
|
|
1059
|
-
$params: () => $
|
|
1060
|
-
main: () =>
|
|
1369
|
+
$lxm: () => $lxm21,
|
|
1370
|
+
$nsid: () => $nsid27,
|
|
1371
|
+
$output: () => $output21,
|
|
1372
|
+
$params: () => $params21,
|
|
1373
|
+
main: () => main27
|
|
1061
1374
|
});
|
|
1062
1375
|
|
|
1063
1376
|
// src/lexicons/com/atiproto/feed/tip/create.defs.ts
|
|
1064
1377
|
var create_defs_exports3 = {};
|
|
1065
1378
|
__export(create_defs_exports3, {
|
|
1066
1379
|
$input: () => $input8,
|
|
1067
|
-
$lxm: () => $
|
|
1068
|
-
$nsid: () => $
|
|
1069
|
-
$output: () => $
|
|
1070
|
-
$params: () => $
|
|
1071
|
-
main: () =>
|
|
1380
|
+
$lxm: () => $lxm21,
|
|
1381
|
+
$nsid: () => $nsid27,
|
|
1382
|
+
$output: () => $output21,
|
|
1383
|
+
$params: () => $params21,
|
|
1384
|
+
main: () => main27
|
|
1072
1385
|
});
|
|
1073
|
-
import { l as
|
|
1074
|
-
var $
|
|
1075
|
-
var
|
|
1076
|
-
$
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
subject:
|
|
1080
|
-
recordUri:
|
|
1081
|
-
amount:
|
|
1082
|
-
currency:
|
|
1083
|
-
cartUri:
|
|
1084
|
-
redirectUrl:
|
|
1085
|
-
message:
|
|
1386
|
+
import { l as l27 } from "@atproto/lex";
|
|
1387
|
+
var $nsid27 = "com.atiproto.feed.tip.create";
|
|
1388
|
+
var main27 = l27.procedure(
|
|
1389
|
+
$nsid27,
|
|
1390
|
+
l27.params(),
|
|
1391
|
+
l27.jsonPayload({
|
|
1392
|
+
subject: l27.string({ format: "did" }),
|
|
1393
|
+
recordUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1394
|
+
amount: l27.integer(),
|
|
1395
|
+
currency: l27.string({ maxLength: 3 }),
|
|
1396
|
+
cartUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1397
|
+
redirectUrl: l27.optional(l27.string({ format: "uri" })),
|
|
1398
|
+
message: l27.optional(l27.string({ maxGraphemes: 500, maxLength: 5e3 })),
|
|
1399
|
+
isPrivate: l27.optional(l27.boolean())
|
|
1086
1400
|
}),
|
|
1087
|
-
|
|
1088
|
-
tipUri:
|
|
1089
|
-
tip:
|
|
1090
|
-
cartUri:
|
|
1091
|
-
cart:
|
|
1092
|
-
|
|
1401
|
+
l27.jsonPayload({
|
|
1402
|
+
tipUri: l27.string({ format: "at-uri" }),
|
|
1403
|
+
tip: l27.ref((() => view2)),
|
|
1404
|
+
cartUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1405
|
+
cart: l27.optional(
|
|
1406
|
+
l27.ref((() => view))
|
|
1093
1407
|
),
|
|
1094
|
-
checkoutUrl:
|
|
1408
|
+
checkoutUrl: l27.optional(l27.string({ format: "uri" }))
|
|
1095
1409
|
})
|
|
1096
1410
|
);
|
|
1097
|
-
var $
|
|
1098
|
-
var $
|
|
1099
|
-
var $input8 =
|
|
1100
|
-
var $
|
|
1411
|
+
var $lxm21 = main27.nsid;
|
|
1412
|
+
var $params21 = main27.parameters;
|
|
1413
|
+
var $input8 = main27.input;
|
|
1414
|
+
var $output21 = main27.output;
|
|
1101
1415
|
|
|
1102
1416
|
// src/lexicons/com/atiproto/feed/tip/get.ts
|
|
1103
|
-
var
|
|
1104
|
-
__export(
|
|
1105
|
-
$defs: () =>
|
|
1106
|
-
$lxm: () => $
|
|
1107
|
-
$nsid: () => $
|
|
1108
|
-
$output: () => $
|
|
1109
|
-
$params: () => $
|
|
1110
|
-
main: () =>
|
|
1417
|
+
var get_exports6 = {};
|
|
1418
|
+
__export(get_exports6, {
|
|
1419
|
+
$defs: () => get_defs_exports6,
|
|
1420
|
+
$lxm: () => $lxm22,
|
|
1421
|
+
$nsid: () => $nsid28,
|
|
1422
|
+
$output: () => $output22,
|
|
1423
|
+
$params: () => $params22,
|
|
1424
|
+
main: () => main28
|
|
1111
1425
|
});
|
|
1112
1426
|
|
|
1113
1427
|
// src/lexicons/com/atiproto/feed/tip/get.defs.ts
|
|
1114
|
-
var
|
|
1115
|
-
__export(
|
|
1116
|
-
$lxm: () => $
|
|
1117
|
-
$nsid: () => $
|
|
1118
|
-
$output: () => $
|
|
1119
|
-
$params: () => $
|
|
1120
|
-
main: () =>
|
|
1428
|
+
var get_defs_exports6 = {};
|
|
1429
|
+
__export(get_defs_exports6, {
|
|
1430
|
+
$lxm: () => $lxm22,
|
|
1431
|
+
$nsid: () => $nsid28,
|
|
1432
|
+
$output: () => $output22,
|
|
1433
|
+
$params: () => $params22,
|
|
1434
|
+
main: () => main28
|
|
1121
1435
|
});
|
|
1122
|
-
import { l as
|
|
1123
|
-
var $
|
|
1124
|
-
var
|
|
1125
|
-
$
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
uri:
|
|
1129
|
-
cid:
|
|
1130
|
-
value:
|
|
1436
|
+
import { l as l28 } from "@atproto/lex";
|
|
1437
|
+
var $nsid28 = "com.atiproto.feed.tip.get";
|
|
1438
|
+
var main28 = l28.query(
|
|
1439
|
+
$nsid28,
|
|
1440
|
+
l28.params({ uri: l28.string({ format: "at-uri" }) }),
|
|
1441
|
+
l28.jsonPayload({
|
|
1442
|
+
uri: l28.string({ format: "at-uri" }),
|
|
1443
|
+
cid: l28.string({ format: "cid" }),
|
|
1444
|
+
value: l28.ref((() => view2))
|
|
1131
1445
|
})
|
|
1132
1446
|
);
|
|
1133
|
-
var $
|
|
1134
|
-
var $
|
|
1135
|
-
var $
|
|
1447
|
+
var $lxm22 = main28.nsid;
|
|
1448
|
+
var $params22 = main28.parameters;
|
|
1449
|
+
var $output22 = main28.output;
|
|
1136
1450
|
|
|
1137
1451
|
// src/lexicons/com/atiproto/feed/tip/list.ts
|
|
1138
|
-
var
|
|
1139
|
-
__export(
|
|
1140
|
-
$defs: () =>
|
|
1141
|
-
$lxm: () => $
|
|
1142
|
-
$nsid: () => $
|
|
1143
|
-
$output: () => $
|
|
1144
|
-
$params: () => $
|
|
1145
|
-
main: () =>
|
|
1452
|
+
var list_exports6 = {};
|
|
1453
|
+
__export(list_exports6, {
|
|
1454
|
+
$defs: () => list_defs_exports6,
|
|
1455
|
+
$lxm: () => $lxm23,
|
|
1456
|
+
$nsid: () => $nsid29,
|
|
1457
|
+
$output: () => $output23,
|
|
1458
|
+
$params: () => $params23,
|
|
1459
|
+
main: () => main29
|
|
1146
1460
|
});
|
|
1147
1461
|
|
|
1148
1462
|
// src/lexicons/com/atiproto/feed/tip/list.defs.ts
|
|
1149
|
-
var
|
|
1150
|
-
__export(
|
|
1151
|
-
$lxm: () => $
|
|
1152
|
-
$nsid: () => $
|
|
1153
|
-
$output: () => $
|
|
1154
|
-
$params: () => $
|
|
1155
|
-
main: () =>
|
|
1156
|
-
});
|
|
1157
|
-
import { l as
|
|
1158
|
-
var $
|
|
1159
|
-
var
|
|
1160
|
-
$
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
records:
|
|
1164
|
-
cursor:
|
|
1463
|
+
var list_defs_exports6 = {};
|
|
1464
|
+
__export(list_defs_exports6, {
|
|
1465
|
+
$lxm: () => $lxm23,
|
|
1466
|
+
$nsid: () => $nsid29,
|
|
1467
|
+
$output: () => $output23,
|
|
1468
|
+
$params: () => $params23,
|
|
1469
|
+
main: () => main29
|
|
1470
|
+
});
|
|
1471
|
+
import { l as l29 } from "@atproto/lex";
|
|
1472
|
+
var $nsid29 = "com.atiproto.feed.tip.list";
|
|
1473
|
+
var main29 = l29.query(
|
|
1474
|
+
$nsid29,
|
|
1475
|
+
l29.params(),
|
|
1476
|
+
l29.jsonPayload({
|
|
1477
|
+
records: l29.array(l29.ref((() => view2))),
|
|
1478
|
+
cursor: l29.optional(l29.string({ maxLength: 512 }))
|
|
1165
1479
|
})
|
|
1166
1480
|
);
|
|
1167
|
-
var $
|
|
1168
|
-
var $
|
|
1169
|
-
var $
|
|
1481
|
+
var $lxm23 = main29.nsid;
|
|
1482
|
+
var $params23 = main29.parameters;
|
|
1483
|
+
var $output23 = main29.output;
|
|
1170
1484
|
|
|
1171
1485
|
// src/lexicons/com/atiproto/feed/tip/put.ts
|
|
1172
1486
|
var put_exports4 = {};
|
|
1173
1487
|
__export(put_exports4, {
|
|
1174
1488
|
$defs: () => put_defs_exports4,
|
|
1175
1489
|
$input: () => $input9,
|
|
1176
|
-
$lxm: () => $
|
|
1177
|
-
$nsid: () => $
|
|
1178
|
-
$output: () => $
|
|
1179
|
-
$params: () => $
|
|
1180
|
-
main: () =>
|
|
1490
|
+
$lxm: () => $lxm24,
|
|
1491
|
+
$nsid: () => $nsid30,
|
|
1492
|
+
$output: () => $output24,
|
|
1493
|
+
$params: () => $params24,
|
|
1494
|
+
main: () => main30
|
|
1181
1495
|
});
|
|
1182
1496
|
|
|
1183
1497
|
// src/lexicons/com/atiproto/feed/tip/put.defs.ts
|
|
1184
1498
|
var put_defs_exports4 = {};
|
|
1185
1499
|
__export(put_defs_exports4, {
|
|
1186
1500
|
$input: () => $input9,
|
|
1187
|
-
$lxm: () => $
|
|
1188
|
-
$nsid: () => $
|
|
1189
|
-
$output: () => $
|
|
1190
|
-
$params: () => $
|
|
1191
|
-
main: () =>
|
|
1192
|
-
});
|
|
1193
|
-
import { l as
|
|
1194
|
-
var $
|
|
1195
|
-
var
|
|
1196
|
-
$
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
uri:
|
|
1200
|
-
record:
|
|
1501
|
+
$lxm: () => $lxm24,
|
|
1502
|
+
$nsid: () => $nsid30,
|
|
1503
|
+
$output: () => $output24,
|
|
1504
|
+
$params: () => $params24,
|
|
1505
|
+
main: () => main30
|
|
1506
|
+
});
|
|
1507
|
+
import { l as l30 } from "@atproto/lex";
|
|
1508
|
+
var $nsid30 = "com.atiproto.feed.tip.put";
|
|
1509
|
+
var main30 = l30.procedure(
|
|
1510
|
+
$nsid30,
|
|
1511
|
+
l30.params(),
|
|
1512
|
+
l30.jsonPayload({
|
|
1513
|
+
uri: l30.string({ format: "at-uri" }),
|
|
1514
|
+
record: l30.ref((() => main2))
|
|
1201
1515
|
}),
|
|
1202
|
-
|
|
1203
|
-
uri:
|
|
1204
|
-
cid:
|
|
1516
|
+
l30.jsonPayload({
|
|
1517
|
+
uri: l30.string({ format: "at-uri" }),
|
|
1518
|
+
cid: l30.string({ format: "cid" })
|
|
1205
1519
|
})
|
|
1206
1520
|
);
|
|
1207
|
-
var $
|
|
1208
|
-
var $
|
|
1209
|
-
var $input9 =
|
|
1210
|
-
var $
|
|
1521
|
+
var $lxm24 = main30.nsid;
|
|
1522
|
+
var $params24 = main30.parameters;
|
|
1523
|
+
var $input9 = main30.input;
|
|
1524
|
+
var $output24 = main30.output;
|
|
1525
|
+
|
|
1526
|
+
// src/lexicons/com/atiproto/feed/tip/validate.ts
|
|
1527
|
+
var validate_exports4 = {};
|
|
1528
|
+
__export(validate_exports4, {
|
|
1529
|
+
$defs: () => validate_defs_exports4,
|
|
1530
|
+
$lxm: () => $lxm25,
|
|
1531
|
+
$nsid: () => $nsid31,
|
|
1532
|
+
$output: () => $output25,
|
|
1533
|
+
$params: () => $params25,
|
|
1534
|
+
main: () => main31
|
|
1535
|
+
});
|
|
1536
|
+
|
|
1537
|
+
// src/lexicons/com/atiproto/feed/tip/validate.defs.ts
|
|
1538
|
+
var validate_defs_exports4 = {};
|
|
1539
|
+
__export(validate_defs_exports4, {
|
|
1540
|
+
$lxm: () => $lxm25,
|
|
1541
|
+
$nsid: () => $nsid31,
|
|
1542
|
+
$output: () => $output25,
|
|
1543
|
+
$params: () => $params25,
|
|
1544
|
+
main: () => main31
|
|
1545
|
+
});
|
|
1546
|
+
import { l as l31 } from "@atproto/lex";
|
|
1547
|
+
var $nsid31 = "com.atiproto.feed.tip.validate";
|
|
1548
|
+
var main31 = l31.query(
|
|
1549
|
+
$nsid31,
|
|
1550
|
+
l31.params({
|
|
1551
|
+
tipUri: l31.optional(l31.string({ format: "at-uri" })),
|
|
1552
|
+
recordUri: l31.optional(l31.string({ format: "at-uri" })),
|
|
1553
|
+
subject: l31.optional(l31.string({ format: "did" })),
|
|
1554
|
+
amount: l31.optional(l31.integer())
|
|
1555
|
+
}),
|
|
1556
|
+
l31.jsonPayload({
|
|
1557
|
+
valid: l31.boolean(),
|
|
1558
|
+
amount: l31.optional(l31.integer()),
|
|
1559
|
+
currency: l31.optional(l31.string({ maxLength: 3 })),
|
|
1560
|
+
reason: l31.optional(l31.string({ maxLength: 1024 }))
|
|
1561
|
+
})
|
|
1562
|
+
);
|
|
1563
|
+
var $lxm25 = main31.nsid;
|
|
1564
|
+
var $params25 = main31.parameters;
|
|
1565
|
+
var $output25 = main31.output;
|
|
1211
1566
|
|
|
1212
1567
|
// src/lexicons/com/atiproto/profile.ts
|
|
1213
1568
|
var profile_exports2 = {};
|
|
@@ -1234,254 +1589,144 @@ __export(profile_exports2, {
|
|
|
1234
1589
|
var repo_exports = {};
|
|
1235
1590
|
__export(repo_exports, {
|
|
1236
1591
|
profile: () => profile_exports3,
|
|
1237
|
-
subscription: () =>
|
|
1238
|
-
tip: () =>
|
|
1592
|
+
subscription: () => subscription_exports3,
|
|
1593
|
+
tip: () => tip_exports3
|
|
1239
1594
|
});
|
|
1240
1595
|
|
|
1241
1596
|
// src/lexicons/com/atiproto/repo/profile.ts
|
|
1242
1597
|
var profile_exports3 = {};
|
|
1243
1598
|
__export(profile_exports3, {
|
|
1244
|
-
get: () =>
|
|
1599
|
+
get: () => get_exports7
|
|
1245
1600
|
});
|
|
1246
1601
|
|
|
1247
1602
|
// src/lexicons/com/atiproto/repo/profile/get.ts
|
|
1248
|
-
var
|
|
1249
|
-
__export(
|
|
1250
|
-
$defs: () =>
|
|
1251
|
-
$lxm: () => $
|
|
1252
|
-
$nsid: () => $
|
|
1253
|
-
$output: () => $
|
|
1254
|
-
$params: () => $
|
|
1255
|
-
main: () =>
|
|
1603
|
+
var get_exports7 = {};
|
|
1604
|
+
__export(get_exports7, {
|
|
1605
|
+
$defs: () => get_defs_exports7,
|
|
1606
|
+
$lxm: () => $lxm26,
|
|
1607
|
+
$nsid: () => $nsid32,
|
|
1608
|
+
$output: () => $output26,
|
|
1609
|
+
$params: () => $params26,
|
|
1610
|
+
main: () => main32
|
|
1256
1611
|
});
|
|
1257
1612
|
|
|
1258
1613
|
// src/lexicons/com/atiproto/repo/profile/get.defs.ts
|
|
1259
|
-
var
|
|
1260
|
-
__export(
|
|
1261
|
-
$lxm: () => $
|
|
1262
|
-
$nsid: () => $
|
|
1263
|
-
$output: () => $
|
|
1264
|
-
$params: () => $
|
|
1265
|
-
main: () =>
|
|
1266
|
-
});
|
|
1267
|
-
import { l as
|
|
1268
|
-
var $
|
|
1269
|
-
var
|
|
1270
|
-
$
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
did:
|
|
1274
|
-
profile:
|
|
1614
|
+
var get_defs_exports7 = {};
|
|
1615
|
+
__export(get_defs_exports7, {
|
|
1616
|
+
$lxm: () => $lxm26,
|
|
1617
|
+
$nsid: () => $nsid32,
|
|
1618
|
+
$output: () => $output26,
|
|
1619
|
+
$params: () => $params26,
|
|
1620
|
+
main: () => main32
|
|
1621
|
+
});
|
|
1622
|
+
import { l as l32 } from "@atproto/lex";
|
|
1623
|
+
var $nsid32 = "com.atiproto.repo.profile.get";
|
|
1624
|
+
var main32 = l32.query(
|
|
1625
|
+
$nsid32,
|
|
1626
|
+
l32.params({ did: l32.string({ format: "did" }) }),
|
|
1627
|
+
l32.jsonPayload({
|
|
1628
|
+
did: l32.string({ format: "did" }),
|
|
1629
|
+
profile: l32.ref((() => view4))
|
|
1275
1630
|
})
|
|
1276
1631
|
);
|
|
1277
|
-
var $
|
|
1278
|
-
var $
|
|
1279
|
-
var $
|
|
1632
|
+
var $lxm26 = main32.nsid;
|
|
1633
|
+
var $params26 = main32.parameters;
|
|
1634
|
+
var $output26 = main32.output;
|
|
1280
1635
|
|
|
1281
1636
|
// src/lexicons/com/atiproto/repo/subscription.ts
|
|
1282
|
-
var
|
|
1283
|
-
__export(
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
$
|
|
1292
|
-
$
|
|
1293
|
-
$
|
|
1294
|
-
$
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
$
|
|
1304
|
-
$
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
subject: l25.string({ format: "did" }),
|
|
1316
|
-
cursor: l25.optional(l25.string({ maxLength: 512 })),
|
|
1317
|
-
limit: l25.optional(
|
|
1318
|
-
l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1319
|
-
)
|
|
1320
|
-
}),
|
|
1321
|
-
l25.jsonPayload({
|
|
1322
|
-
subscriptions: l25.array(
|
|
1323
|
-
l25.ref((() => subscriptionResponse2))
|
|
1324
|
-
),
|
|
1325
|
-
cursor: l25.optional(l25.string({ maxLength: 512 }))
|
|
1326
|
-
})
|
|
1327
|
-
);
|
|
1328
|
-
var $lxm19 = main25.nsid;
|
|
1329
|
-
var $params19 = main25.parameters;
|
|
1330
|
-
var $output19 = main25.output;
|
|
1331
|
-
var subscriptionResponse2 = l25.typedObject(
|
|
1332
|
-
$nsid25,
|
|
1333
|
-
"subscriptionResponse",
|
|
1334
|
-
l25.object({
|
|
1335
|
-
uri: l25.string({ format: "at-uri" }),
|
|
1336
|
-
record: l25.ref(
|
|
1337
|
-
(() => view3)
|
|
1338
|
-
)
|
|
1339
|
-
})
|
|
1340
|
-
);
|
|
1341
|
-
|
|
1342
|
-
// src/lexicons/com/atiproto/repo/subscription/validate.ts
|
|
1343
|
-
var validate_exports = {};
|
|
1344
|
-
__export(validate_exports, {
|
|
1345
|
-
$defs: () => validate_defs_exports,
|
|
1346
|
-
$lxm: () => $lxm20,
|
|
1347
|
-
$nsid: () => $nsid26,
|
|
1348
|
-
$output: () => $output20,
|
|
1349
|
-
$params: () => $params20,
|
|
1350
|
-
main: () => main26
|
|
1351
|
-
});
|
|
1352
|
-
|
|
1353
|
-
// src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
|
|
1354
|
-
var validate_defs_exports = {};
|
|
1355
|
-
__export(validate_defs_exports, {
|
|
1356
|
-
$lxm: () => $lxm20,
|
|
1357
|
-
$nsid: () => $nsid26,
|
|
1358
|
-
$output: () => $output20,
|
|
1359
|
-
$params: () => $params20,
|
|
1360
|
-
main: () => main26
|
|
1361
|
-
});
|
|
1362
|
-
import { l as l26 } from "@atproto/lex";
|
|
1363
|
-
var $nsid26 = "com.atiproto.repo.subscription.validate";
|
|
1364
|
-
var main26 = l26.query(
|
|
1365
|
-
$nsid26,
|
|
1366
|
-
l26.params({
|
|
1367
|
-
sender: l26.string({ format: "did" }),
|
|
1368
|
-
subscriptionUri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1369
|
-
subject: l26.optional(l26.string({ format: "did" })),
|
|
1370
|
-
amount: l26.optional(l26.integer())
|
|
1637
|
+
var subscription_exports3 = {};
|
|
1638
|
+
__export(subscription_exports3, {
|
|
1639
|
+
count: () => count_exports
|
|
1640
|
+
});
|
|
1641
|
+
|
|
1642
|
+
// src/lexicons/com/atiproto/repo/subscription/count.ts
|
|
1643
|
+
var count_exports = {};
|
|
1644
|
+
__export(count_exports, {
|
|
1645
|
+
$defs: () => count_defs_exports,
|
|
1646
|
+
$lxm: () => $lxm27,
|
|
1647
|
+
$nsid: () => $nsid33,
|
|
1648
|
+
$output: () => $output27,
|
|
1649
|
+
$params: () => $params27,
|
|
1650
|
+
main: () => main33
|
|
1651
|
+
});
|
|
1652
|
+
|
|
1653
|
+
// src/lexicons/com/atiproto/repo/subscription/count.defs.ts
|
|
1654
|
+
var count_defs_exports = {};
|
|
1655
|
+
__export(count_defs_exports, {
|
|
1656
|
+
$lxm: () => $lxm27,
|
|
1657
|
+
$nsid: () => $nsid33,
|
|
1658
|
+
$output: () => $output27,
|
|
1659
|
+
$params: () => $params27,
|
|
1660
|
+
main: () => main33
|
|
1661
|
+
});
|
|
1662
|
+
import { l as l33 } from "@atproto/lex";
|
|
1663
|
+
var $nsid33 = "com.atiproto.repo.subscription.count";
|
|
1664
|
+
var main33 = l33.query(
|
|
1665
|
+
$nsid33,
|
|
1666
|
+
l33.params({
|
|
1667
|
+
subject: l33.optional(l33.string({ format: "did" })),
|
|
1668
|
+
startDate: l33.optional(l33.string({ format: "datetime" })),
|
|
1669
|
+
endDate: l33.optional(l33.string({ format: "datetime" }))
|
|
1371
1670
|
}),
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
amount:
|
|
1375
|
-
currency:
|
|
1376
|
-
reason: l26.optional(l26.string({ maxLength: 1024 }))
|
|
1671
|
+
l33.jsonPayload({
|
|
1672
|
+
count: l33.integer(),
|
|
1673
|
+
amount: l33.optional(l33.integer()),
|
|
1674
|
+
currency: l33.optional(l33.string({ maxLength: 3 }))
|
|
1377
1675
|
})
|
|
1378
1676
|
);
|
|
1379
|
-
var $
|
|
1380
|
-
var $
|
|
1381
|
-
var $
|
|
1677
|
+
var $lxm27 = main33.nsid;
|
|
1678
|
+
var $params27 = main33.parameters;
|
|
1679
|
+
var $output27 = main33.output;
|
|
1382
1680
|
|
|
1383
1681
|
// src/lexicons/com/atiproto/repo/tip.ts
|
|
1384
|
-
var
|
|
1385
|
-
__export(
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
$
|
|
1394
|
-
$
|
|
1395
|
-
$
|
|
1396
|
-
$
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
$
|
|
1406
|
-
$
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
cursor: l27.optional(l27.string({ maxLength: 512 })),
|
|
1419
|
-
limit: l27.optional(
|
|
1420
|
-
l27.withDefault(l27.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1421
|
-
)
|
|
1422
|
-
}),
|
|
1423
|
-
l27.jsonPayload({
|
|
1424
|
-
tips: l27.array(l27.ref((() => tipResponse))),
|
|
1425
|
-
cursor: l27.optional(l27.string({ maxLength: 512 }))
|
|
1426
|
-
})
|
|
1427
|
-
);
|
|
1428
|
-
var $lxm21 = main27.nsid;
|
|
1429
|
-
var $params21 = main27.parameters;
|
|
1430
|
-
var $output21 = main27.output;
|
|
1431
|
-
var tipResponse = l27.typedObject(
|
|
1432
|
-
$nsid27,
|
|
1433
|
-
"tipResponse",
|
|
1434
|
-
l27.object({
|
|
1435
|
-
uri: l27.string({ format: "at-uri" }),
|
|
1436
|
-
record: l27.ref((() => view2))
|
|
1437
|
-
})
|
|
1438
|
-
);
|
|
1439
|
-
|
|
1440
|
-
// src/lexicons/com/atiproto/repo/tip/validate.ts
|
|
1441
|
-
var validate_exports2 = {};
|
|
1442
|
-
__export(validate_exports2, {
|
|
1443
|
-
$defs: () => validate_defs_exports2,
|
|
1444
|
-
$lxm: () => $lxm22,
|
|
1445
|
-
$nsid: () => $nsid28,
|
|
1446
|
-
$output: () => $output22,
|
|
1447
|
-
$params: () => $params22,
|
|
1448
|
-
main: () => main28
|
|
1449
|
-
});
|
|
1450
|
-
|
|
1451
|
-
// src/lexicons/com/atiproto/repo/tip/validate.defs.ts
|
|
1452
|
-
var validate_defs_exports2 = {};
|
|
1453
|
-
__export(validate_defs_exports2, {
|
|
1454
|
-
$lxm: () => $lxm22,
|
|
1455
|
-
$nsid: () => $nsid28,
|
|
1456
|
-
$output: () => $output22,
|
|
1457
|
-
$params: () => $params22,
|
|
1458
|
-
main: () => main28
|
|
1459
|
-
});
|
|
1460
|
-
import { l as l28 } from "@atproto/lex";
|
|
1461
|
-
var $nsid28 = "com.atiproto.repo.tip.validate";
|
|
1462
|
-
var main28 = l28.query(
|
|
1463
|
-
$nsid28,
|
|
1464
|
-
l28.params({
|
|
1465
|
-
sender: l28.string({ format: "did" }),
|
|
1466
|
-
tipUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1467
|
-
recordUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1468
|
-
subject: l28.optional(l28.string({ format: "did" })),
|
|
1469
|
-
amount: l28.optional(l28.integer())
|
|
1682
|
+
var tip_exports3 = {};
|
|
1683
|
+
__export(tip_exports3, {
|
|
1684
|
+
count: () => count_exports2
|
|
1685
|
+
});
|
|
1686
|
+
|
|
1687
|
+
// src/lexicons/com/atiproto/repo/tip/count.ts
|
|
1688
|
+
var count_exports2 = {};
|
|
1689
|
+
__export(count_exports2, {
|
|
1690
|
+
$defs: () => count_defs_exports2,
|
|
1691
|
+
$lxm: () => $lxm28,
|
|
1692
|
+
$nsid: () => $nsid34,
|
|
1693
|
+
$output: () => $output28,
|
|
1694
|
+
$params: () => $params28,
|
|
1695
|
+
main: () => main34
|
|
1696
|
+
});
|
|
1697
|
+
|
|
1698
|
+
// src/lexicons/com/atiproto/repo/tip/count.defs.ts
|
|
1699
|
+
var count_defs_exports2 = {};
|
|
1700
|
+
__export(count_defs_exports2, {
|
|
1701
|
+
$lxm: () => $lxm28,
|
|
1702
|
+
$nsid: () => $nsid34,
|
|
1703
|
+
$output: () => $output28,
|
|
1704
|
+
$params: () => $params28,
|
|
1705
|
+
main: () => main34
|
|
1706
|
+
});
|
|
1707
|
+
import { l as l34 } from "@atproto/lex";
|
|
1708
|
+
var $nsid34 = "com.atiproto.repo.tip.count";
|
|
1709
|
+
var main34 = l34.query(
|
|
1710
|
+
$nsid34,
|
|
1711
|
+
l34.params({
|
|
1712
|
+
recordUri: l34.optional(l34.string({ format: "at-uri" })),
|
|
1713
|
+
subject: l34.optional(l34.string({ format: "did" })),
|
|
1714
|
+
startDate: l34.optional(l34.string({ format: "datetime" })),
|
|
1715
|
+
endDate: l34.optional(l34.string({ format: "datetime" }))
|
|
1470
1716
|
}),
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
amount:
|
|
1474
|
-
currency:
|
|
1475
|
-
reason: l28.optional(l28.string({ maxLength: 1024 }))
|
|
1717
|
+
l34.jsonPayload({
|
|
1718
|
+
count: l34.integer(),
|
|
1719
|
+
amount: l34.optional(l34.integer()),
|
|
1720
|
+
currency: l34.optional(l34.string({ maxLength: 3 }))
|
|
1476
1721
|
})
|
|
1477
1722
|
);
|
|
1478
|
-
var $
|
|
1479
|
-
var $
|
|
1480
|
-
var $
|
|
1723
|
+
var $lxm28 = main34.nsid;
|
|
1724
|
+
var $params28 = main34.parameters;
|
|
1725
|
+
var $output28 = main34.output;
|
|
1481
1726
|
|
|
1482
1727
|
// src/lexicons/com/atiproto/subscription.ts
|
|
1483
|
-
var
|
|
1484
|
-
__export(
|
|
1728
|
+
var subscription_exports4 = {};
|
|
1729
|
+
__export(subscription_exports4, {
|
|
1485
1730
|
$assert: () => $assert3,
|
|
1486
1731
|
$build: () => $build3,
|
|
1487
1732
|
$cast: () => $cast3,
|
|
@@ -1501,8 +1746,8 @@ __export(subscription_exports3, {
|
|
|
1501
1746
|
});
|
|
1502
1747
|
|
|
1503
1748
|
// src/lexicons/com/atiproto/tip.ts
|
|
1504
|
-
var
|
|
1505
|
-
__export(
|
|
1749
|
+
var tip_exports4 = {};
|
|
1750
|
+
__export(tip_exports4, {
|
|
1506
1751
|
$assert: () => $assert2,
|
|
1507
1752
|
$build: () => $build2,
|
|
1508
1753
|
$cast: () => $cast2,
|
|
@@ -1800,29 +2045,343 @@ var list_default = {
|
|
|
1800
2045
|
}
|
|
1801
2046
|
};
|
|
1802
2047
|
|
|
1803
|
-
// src/schemas/account/cart/put.json
|
|
1804
|
-
var put_default = {
|
|
2048
|
+
// src/schemas/account/cart/put.json
|
|
2049
|
+
var put_default = {
|
|
2050
|
+
lexicon: 1,
|
|
2051
|
+
id: "com.atiproto.account.cart.put",
|
|
2052
|
+
defs: {
|
|
2053
|
+
main: {
|
|
2054
|
+
type: "procedure",
|
|
2055
|
+
description: "Update a cart. Only open carts can be updated.",
|
|
2056
|
+
input: {
|
|
2057
|
+
encoding: "application/json",
|
|
2058
|
+
schema: {
|
|
2059
|
+
type: "object",
|
|
2060
|
+
required: ["uri", "record"],
|
|
2061
|
+
properties: {
|
|
2062
|
+
uri: {
|
|
2063
|
+
type: "string",
|
|
2064
|
+
format: "at-uri",
|
|
2065
|
+
description: "AT-URI of the cart to update"
|
|
2066
|
+
},
|
|
2067
|
+
record: {
|
|
2068
|
+
type: "ref",
|
|
2069
|
+
ref: "com.atiproto.cart"
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
},
|
|
2074
|
+
output: {
|
|
2075
|
+
encoding: "application/json",
|
|
2076
|
+
schema: {
|
|
2077
|
+
type: "object",
|
|
2078
|
+
required: ["uri", "cid"],
|
|
2079
|
+
properties: {
|
|
2080
|
+
uri: {
|
|
2081
|
+
type: "string",
|
|
2082
|
+
format: "at-uri",
|
|
2083
|
+
description: "Updated cart record URI"
|
|
2084
|
+
},
|
|
2085
|
+
cid: {
|
|
2086
|
+
type: "string",
|
|
2087
|
+
format: "cid",
|
|
2088
|
+
description: "New CID of the updated record"
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
// src/schemas/account/profile/get.json
|
|
2098
|
+
var get_default2 = {
|
|
2099
|
+
lexicon: 1,
|
|
2100
|
+
id: "com.atiproto.account.profile.get",
|
|
2101
|
+
defs: {
|
|
2102
|
+
main: {
|
|
2103
|
+
type: "query",
|
|
2104
|
+
description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
|
|
2105
|
+
output: {
|
|
2106
|
+
encoding: "application/json",
|
|
2107
|
+
schema: {
|
|
2108
|
+
type: "object",
|
|
2109
|
+
required: ["profile", "hasProfile", "readyForPayment"],
|
|
2110
|
+
properties: {
|
|
2111
|
+
uri: {
|
|
2112
|
+
type: "string",
|
|
2113
|
+
format: "at-uri",
|
|
2114
|
+
description: "Profile record URI (absent if no profile configured)"
|
|
2115
|
+
},
|
|
2116
|
+
cid: {
|
|
2117
|
+
type: "string",
|
|
2118
|
+
format: "cid",
|
|
2119
|
+
description: "Profile record CID (absent if no profile configured)"
|
|
2120
|
+
},
|
|
2121
|
+
profile: {
|
|
2122
|
+
type: "ref",
|
|
2123
|
+
ref: "com.atiproto.profile#view",
|
|
2124
|
+
description: "The profile record data (defaults if not configured)"
|
|
2125
|
+
},
|
|
2126
|
+
hasProfile: {
|
|
2127
|
+
type: "boolean",
|
|
2128
|
+
description: "Whether the user has saved a profile record"
|
|
2129
|
+
},
|
|
2130
|
+
readyForPayment: {
|
|
2131
|
+
type: "boolean",
|
|
2132
|
+
description: "Whether the user's payment account is set up and enabled"
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
// src/schemas/account/profile/put.json
|
|
2142
|
+
var put_default2 = {
|
|
2143
|
+
lexicon: 1,
|
|
2144
|
+
id: "com.atiproto.account.profile.put",
|
|
2145
|
+
defs: {
|
|
2146
|
+
main: {
|
|
2147
|
+
type: "procedure",
|
|
2148
|
+
description: "Create or update the authenticated user's profile settings",
|
|
2149
|
+
input: {
|
|
2150
|
+
encoding: "application/json",
|
|
2151
|
+
schema: {
|
|
2152
|
+
type: "object",
|
|
2153
|
+
properties: {
|
|
2154
|
+
acceptsTips: {
|
|
2155
|
+
type: "boolean",
|
|
2156
|
+
description: "Enable accepting tips"
|
|
2157
|
+
},
|
|
2158
|
+
acceptsSubscriptions: {
|
|
2159
|
+
type: "boolean",
|
|
2160
|
+
description: "Enable accepting subscriptions"
|
|
2161
|
+
},
|
|
2162
|
+
disableReceiptNotifications: {
|
|
2163
|
+
type: "boolean",
|
|
2164
|
+
description: "Opt out of payment receipt DMs"
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
},
|
|
2169
|
+
output: {
|
|
2170
|
+
encoding: "application/json",
|
|
2171
|
+
schema: {
|
|
2172
|
+
type: "object",
|
|
2173
|
+
required: [
|
|
2174
|
+
"uri",
|
|
2175
|
+
"cid",
|
|
2176
|
+
"profile",
|
|
2177
|
+
"hasProfile",
|
|
2178
|
+
"readyForPayment"
|
|
2179
|
+
],
|
|
2180
|
+
properties: {
|
|
2181
|
+
uri: {
|
|
2182
|
+
type: "string",
|
|
2183
|
+
format: "at-uri",
|
|
2184
|
+
description: "Profile record URI"
|
|
2185
|
+
},
|
|
2186
|
+
cid: {
|
|
2187
|
+
type: "string",
|
|
2188
|
+
format: "cid",
|
|
2189
|
+
description: "Profile record CID"
|
|
2190
|
+
},
|
|
2191
|
+
profile: {
|
|
2192
|
+
type: "ref",
|
|
2193
|
+
ref: "com.atiproto.profile#view",
|
|
2194
|
+
description: "The profile record data"
|
|
2195
|
+
},
|
|
2196
|
+
hasProfile: {
|
|
2197
|
+
type: "boolean",
|
|
2198
|
+
description: "Whether the user has saved a profile record"
|
|
2199
|
+
},
|
|
2200
|
+
readyForPayment: {
|
|
2201
|
+
type: "boolean",
|
|
2202
|
+
description: "Whether the user's payment account is set up and enabled"
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
// src/schemas/account/subscription/get.json
|
|
2212
|
+
var get_default3 = {
|
|
2213
|
+
lexicon: 1,
|
|
2214
|
+
id: "com.atiproto.account.subscription.get",
|
|
2215
|
+
defs: {
|
|
2216
|
+
main: {
|
|
2217
|
+
type: "query",
|
|
2218
|
+
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.",
|
|
2219
|
+
parameters: {
|
|
2220
|
+
type: "params",
|
|
2221
|
+
properties: {
|
|
2222
|
+
uri: {
|
|
2223
|
+
type: "string",
|
|
2224
|
+
format: "at-uri",
|
|
2225
|
+
description: "AT-URI of the subscription record. Takes precedence over sender."
|
|
2226
|
+
},
|
|
2227
|
+
sender: {
|
|
2228
|
+
type: "string",
|
|
2229
|
+
format: "did",
|
|
2230
|
+
description: "DID of the subscriber. Ignored if uri is provided."
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
output: {
|
|
2235
|
+
encoding: "application/json",
|
|
2236
|
+
schema: {
|
|
2237
|
+
type: "object",
|
|
2238
|
+
required: ["subscription"],
|
|
2239
|
+
properties: {
|
|
2240
|
+
subscription: {
|
|
2241
|
+
type: "ref",
|
|
2242
|
+
ref: "com.atiproto.subscription#view",
|
|
2243
|
+
description: "The subscription record data"
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
// src/schemas/account/subscription/list.json
|
|
2253
|
+
var list_default2 = {
|
|
2254
|
+
lexicon: 1,
|
|
2255
|
+
id: "com.atiproto.account.subscription.list",
|
|
2256
|
+
defs: {
|
|
2257
|
+
main: {
|
|
2258
|
+
type: "query",
|
|
2259
|
+
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.",
|
|
2260
|
+
parameters: {
|
|
2261
|
+
type: "params",
|
|
2262
|
+
properties: {
|
|
2263
|
+
cursor: {
|
|
2264
|
+
type: "string",
|
|
2265
|
+
maxLength: 512,
|
|
2266
|
+
description: "Pagination cursor"
|
|
2267
|
+
},
|
|
2268
|
+
limit: {
|
|
2269
|
+
type: "integer",
|
|
2270
|
+
minimum: 1,
|
|
2271
|
+
maximum: 100,
|
|
2272
|
+
default: 50,
|
|
2273
|
+
description: "Results per page (1-100, default: 50)"
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
},
|
|
2277
|
+
output: {
|
|
2278
|
+
encoding: "application/json",
|
|
2279
|
+
schema: {
|
|
2280
|
+
type: "object",
|
|
2281
|
+
required: ["subscriptions"],
|
|
2282
|
+
properties: {
|
|
2283
|
+
subscriptions: {
|
|
2284
|
+
type: "array",
|
|
2285
|
+
items: {
|
|
2286
|
+
type: "ref",
|
|
2287
|
+
ref: "com.atiproto.subscription#view"
|
|
2288
|
+
}
|
|
2289
|
+
},
|
|
2290
|
+
cursor: {
|
|
2291
|
+
type: "string",
|
|
2292
|
+
maxLength: 512,
|
|
2293
|
+
description: "Pagination cursor for next page"
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
// src/schemas/account/subscription/validate.json
|
|
2303
|
+
var validate_default = {
|
|
2304
|
+
lexicon: 1,
|
|
2305
|
+
id: "com.atiproto.account.subscription.validate",
|
|
2306
|
+
defs: {
|
|
2307
|
+
main: {
|
|
2308
|
+
type: "query",
|
|
2309
|
+
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.",
|
|
2310
|
+
parameters: {
|
|
2311
|
+
type: "params",
|
|
2312
|
+
properties: {
|
|
2313
|
+
subscriptionUri: {
|
|
2314
|
+
type: "string",
|
|
2315
|
+
format: "at-uri",
|
|
2316
|
+
description: "AT-URI of a specific subscription record. Takes precedence over sender."
|
|
2317
|
+
},
|
|
2318
|
+
sender: {
|
|
2319
|
+
type: "string",
|
|
2320
|
+
format: "did",
|
|
2321
|
+
description: "DID of the subscriber. Ignored if subscriptionUri is provided."
|
|
2322
|
+
},
|
|
2323
|
+
amount: {
|
|
2324
|
+
type: "integer",
|
|
2325
|
+
description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
output: {
|
|
2330
|
+
encoding: "application/json",
|
|
2331
|
+
schema: {
|
|
2332
|
+
type: "object",
|
|
2333
|
+
required: ["valid"],
|
|
2334
|
+
properties: {
|
|
2335
|
+
valid: {
|
|
2336
|
+
type: "boolean",
|
|
2337
|
+
description: "Whether a sender has an active, verified subscription to the authed recipient"
|
|
2338
|
+
},
|
|
2339
|
+
amount: {
|
|
2340
|
+
type: "integer",
|
|
2341
|
+
description: "Subscription amount in cents"
|
|
2342
|
+
},
|
|
2343
|
+
currency: {
|
|
2344
|
+
type: "string",
|
|
2345
|
+
maxLength: 3,
|
|
2346
|
+
description: "Currency of the subscription"
|
|
2347
|
+
},
|
|
2348
|
+
reason: {
|
|
2349
|
+
type: "string",
|
|
2350
|
+
maxLength: 1024,
|
|
2351
|
+
description: "If invalid, reason for rejection"
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
// src/schemas/account/tip/get.json
|
|
2361
|
+
var get_default4 = {
|
|
1805
2362
|
lexicon: 1,
|
|
1806
|
-
id: "com.atiproto.account.
|
|
2363
|
+
id: "com.atiproto.account.tip.get",
|
|
1807
2364
|
defs: {
|
|
1808
2365
|
main: {
|
|
1809
|
-
type: "
|
|
1810
|
-
description: "
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
2366
|
+
type: "query",
|
|
2367
|
+
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.",
|
|
2368
|
+
parameters: {
|
|
2369
|
+
type: "params",
|
|
2370
|
+
properties: {
|
|
2371
|
+
uri: {
|
|
2372
|
+
type: "string",
|
|
2373
|
+
format: "at-uri",
|
|
2374
|
+
description: "AT-URI of the tip record. Takes precedence over sender and recordUri."
|
|
2375
|
+
},
|
|
2376
|
+
sender: {
|
|
2377
|
+
type: "string",
|
|
2378
|
+
format: "did",
|
|
2379
|
+
description: "DID of the tip sender. Takes precedence over recordUri."
|
|
2380
|
+
},
|
|
2381
|
+
recordUri: {
|
|
2382
|
+
type: "string",
|
|
2383
|
+
format: "at-uri",
|
|
2384
|
+
description: "AT-URI of the record being tipped. Ignored if uri or sender is provided."
|
|
1826
2385
|
}
|
|
1827
2386
|
}
|
|
1828
2387
|
},
|
|
@@ -1830,17 +2389,12 @@ var put_default = {
|
|
|
1830
2389
|
encoding: "application/json",
|
|
1831
2390
|
schema: {
|
|
1832
2391
|
type: "object",
|
|
1833
|
-
required: ["
|
|
2392
|
+
required: ["tip"],
|
|
1834
2393
|
properties: {
|
|
1835
|
-
|
|
1836
|
-
type: "
|
|
1837
|
-
|
|
1838
|
-
description: "
|
|
1839
|
-
},
|
|
1840
|
-
cid: {
|
|
1841
|
-
type: "string",
|
|
1842
|
-
format: "cid",
|
|
1843
|
-
description: "New CID of the updated record"
|
|
2394
|
+
tip: {
|
|
2395
|
+
type: "ref",
|
|
2396
|
+
ref: "com.atiproto.tip#view",
|
|
2397
|
+
description: "The tip record data"
|
|
1844
2398
|
}
|
|
1845
2399
|
}
|
|
1846
2400
|
}
|
|
@@ -1849,42 +2403,58 @@ var put_default = {
|
|
|
1849
2403
|
}
|
|
1850
2404
|
};
|
|
1851
2405
|
|
|
1852
|
-
// src/schemas/account/
|
|
1853
|
-
var
|
|
2406
|
+
// src/schemas/account/tip/list.json
|
|
2407
|
+
var list_default3 = {
|
|
1854
2408
|
lexicon: 1,
|
|
1855
|
-
id: "com.atiproto.account.
|
|
2409
|
+
id: "com.atiproto.account.tip.list",
|
|
1856
2410
|
defs: {
|
|
1857
2411
|
main: {
|
|
1858
2412
|
type: "query",
|
|
1859
|
-
description: "
|
|
2413
|
+
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.",
|
|
2414
|
+
parameters: {
|
|
2415
|
+
type: "params",
|
|
2416
|
+
properties: {
|
|
2417
|
+
sender: {
|
|
2418
|
+
type: "string",
|
|
2419
|
+
format: "did",
|
|
2420
|
+
description: "Optional: only return tips sent by this DID"
|
|
2421
|
+
},
|
|
2422
|
+
recordUri: {
|
|
2423
|
+
type: "string",
|
|
2424
|
+
format: "at-uri",
|
|
2425
|
+
description: "Optional: only return tips received for this specific record"
|
|
2426
|
+
},
|
|
2427
|
+
cursor: {
|
|
2428
|
+
type: "string",
|
|
2429
|
+
maxLength: 512,
|
|
2430
|
+
description: "Pagination cursor"
|
|
2431
|
+
},
|
|
2432
|
+
limit: {
|
|
2433
|
+
type: "integer",
|
|
2434
|
+
minimum: 1,
|
|
2435
|
+
maximum: 100,
|
|
2436
|
+
default: 50,
|
|
2437
|
+
description: "Results per page (1-100, default: 50)"
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
1860
2441
|
output: {
|
|
1861
2442
|
encoding: "application/json",
|
|
1862
2443
|
schema: {
|
|
1863
2444
|
type: "object",
|
|
1864
|
-
required: ["
|
|
2445
|
+
required: ["tips"],
|
|
1865
2446
|
properties: {
|
|
1866
|
-
|
|
1867
|
-
type: "
|
|
1868
|
-
|
|
1869
|
-
|
|
2447
|
+
tips: {
|
|
2448
|
+
type: "array",
|
|
2449
|
+
items: {
|
|
2450
|
+
type: "ref",
|
|
2451
|
+
ref: "com.atiproto.tip#view"
|
|
2452
|
+
}
|
|
1870
2453
|
},
|
|
1871
|
-
|
|
2454
|
+
cursor: {
|
|
1872
2455
|
type: "string",
|
|
1873
|
-
|
|
1874
|
-
description: "
|
|
1875
|
-
},
|
|
1876
|
-
profile: {
|
|
1877
|
-
type: "ref",
|
|
1878
|
-
ref: "com.atiproto.profile#view",
|
|
1879
|
-
description: "The profile record data (defaults if not configured)"
|
|
1880
|
-
},
|
|
1881
|
-
hasProfile: {
|
|
1882
|
-
type: "boolean",
|
|
1883
|
-
description: "Whether the user has saved a profile record"
|
|
1884
|
-
},
|
|
1885
|
-
readyForPayment: {
|
|
1886
|
-
type: "boolean",
|
|
1887
|
-
description: "Whether the user's payment account is set up and enabled"
|
|
2456
|
+
maxLength: 512,
|
|
2457
|
+
description: "Pagination cursor for next page"
|
|
1888
2458
|
}
|
|
1889
2459
|
}
|
|
1890
2460
|
}
|
|
@@ -1893,31 +2463,35 @@ var get_default2 = {
|
|
|
1893
2463
|
}
|
|
1894
2464
|
};
|
|
1895
2465
|
|
|
1896
|
-
// src/schemas/account/
|
|
1897
|
-
var
|
|
2466
|
+
// src/schemas/account/tip/validate.json
|
|
2467
|
+
var validate_default2 = {
|
|
1898
2468
|
lexicon: 1,
|
|
1899
|
-
id: "com.atiproto.account.
|
|
2469
|
+
id: "com.atiproto.account.tip.validate",
|
|
1900
2470
|
defs: {
|
|
1901
2471
|
main: {
|
|
1902
|
-
type: "
|
|
1903
|
-
description: "
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
2472
|
+
type: "query",
|
|
2473
|
+
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.",
|
|
2474
|
+
parameters: {
|
|
2475
|
+
type: "params",
|
|
2476
|
+
properties: {
|
|
2477
|
+
tipUri: {
|
|
2478
|
+
type: "string",
|
|
2479
|
+
format: "at-uri",
|
|
2480
|
+
description: "AT-URI of a specific tip record. Takes precedence over recordUri and sender."
|
|
2481
|
+
},
|
|
2482
|
+
recordUri: {
|
|
2483
|
+
type: "string",
|
|
2484
|
+
format: "at-uri",
|
|
2485
|
+
description: "AT-URI of the record being tipped. Takes precedence over sender."
|
|
2486
|
+
},
|
|
2487
|
+
sender: {
|
|
2488
|
+
type: "string",
|
|
2489
|
+
format: "did",
|
|
2490
|
+
description: "DID of the tip sender. Ignored if tipUri or recordUri is provided."
|
|
2491
|
+
},
|
|
2492
|
+
amount: {
|
|
2493
|
+
type: "integer",
|
|
2494
|
+
description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
|
|
1921
2495
|
}
|
|
1922
2496
|
}
|
|
1923
2497
|
},
|
|
@@ -1925,36 +2499,25 @@ var put_default2 = {
|
|
|
1925
2499
|
encoding: "application/json",
|
|
1926
2500
|
schema: {
|
|
1927
2501
|
type: "object",
|
|
1928
|
-
required: [
|
|
1929
|
-
"uri",
|
|
1930
|
-
"cid",
|
|
1931
|
-
"profile",
|
|
1932
|
-
"hasProfile",
|
|
1933
|
-
"readyForPayment"
|
|
1934
|
-
],
|
|
2502
|
+
required: ["valid"],
|
|
1935
2503
|
properties: {
|
|
1936
|
-
|
|
1937
|
-
type: "
|
|
1938
|
-
|
|
1939
|
-
description: "Profile record URI"
|
|
1940
|
-
},
|
|
1941
|
-
cid: {
|
|
1942
|
-
type: "string",
|
|
1943
|
-
format: "cid",
|
|
1944
|
-
description: "Profile record CID"
|
|
2504
|
+
valid: {
|
|
2505
|
+
type: "boolean",
|
|
2506
|
+
description: "Whether a sender has completed and verified tip(s) to the authed recipient"
|
|
1945
2507
|
},
|
|
1946
|
-
|
|
1947
|
-
type: "
|
|
1948
|
-
|
|
1949
|
-
description: "The profile record data"
|
|
2508
|
+
amount: {
|
|
2509
|
+
type: "integer",
|
|
2510
|
+
description: "Sum of all verified completed tip amounts in cents"
|
|
1950
2511
|
},
|
|
1951
|
-
|
|
1952
|
-
type: "
|
|
1953
|
-
|
|
2512
|
+
currency: {
|
|
2513
|
+
type: "string",
|
|
2514
|
+
maxLength: 3,
|
|
2515
|
+
description: "Currency of the tips"
|
|
1954
2516
|
},
|
|
1955
|
-
|
|
1956
|
-
type: "
|
|
1957
|
-
|
|
2517
|
+
reason: {
|
|
2518
|
+
type: "string",
|
|
2519
|
+
maxLength: 1024,
|
|
2520
|
+
description: "If invalid, reason for rejection"
|
|
1958
2521
|
}
|
|
1959
2522
|
}
|
|
1960
2523
|
}
|
|
@@ -2095,7 +2658,7 @@ var cart_default = {
|
|
|
2095
2658
|
};
|
|
2096
2659
|
|
|
2097
2660
|
// src/schemas/feed/list.json
|
|
2098
|
-
var
|
|
2661
|
+
var list_default4 = {
|
|
2099
2662
|
lexicon: 1,
|
|
2100
2663
|
id: "com.atiproto.feed.list",
|
|
2101
2664
|
defs: {
|
|
@@ -2235,6 +2798,10 @@ var create_default2 = {
|
|
|
2235
2798
|
description: "URL to redirect to after checkout completes",
|
|
2236
2799
|
format: "uri",
|
|
2237
2800
|
type: "string"
|
|
2801
|
+
},
|
|
2802
|
+
isPrivate: {
|
|
2803
|
+
description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
|
|
2804
|
+
type: "boolean"
|
|
2238
2805
|
}
|
|
2239
2806
|
},
|
|
2240
2807
|
required: ["subject", "currency", "interval"],
|
|
@@ -2283,7 +2850,7 @@ var create_default2 = {
|
|
|
2283
2850
|
};
|
|
2284
2851
|
|
|
2285
2852
|
// src/schemas/feed/subscription/get.json
|
|
2286
|
-
var
|
|
2853
|
+
var get_default5 = {
|
|
2287
2854
|
defs: {
|
|
2288
2855
|
main: {
|
|
2289
2856
|
description: "Get a specific subscription by URI",
|
|
@@ -2330,7 +2897,7 @@ var get_default3 = {
|
|
|
2330
2897
|
};
|
|
2331
2898
|
|
|
2332
2899
|
// src/schemas/feed/subscription/list.json
|
|
2333
|
-
var
|
|
2900
|
+
var list_default5 = {
|
|
2334
2901
|
lexicon: 1,
|
|
2335
2902
|
id: "com.atiproto.feed.subscription.list",
|
|
2336
2903
|
defs: {
|
|
@@ -2446,6 +3013,64 @@ var put_default3 = {
|
|
|
2446
3013
|
}
|
|
2447
3014
|
};
|
|
2448
3015
|
|
|
3016
|
+
// src/schemas/feed/subscription/validate.json
|
|
3017
|
+
var validate_default3 = {
|
|
3018
|
+
lexicon: 1,
|
|
3019
|
+
id: "com.atiproto.feed.subscription.validate",
|
|
3020
|
+
defs: {
|
|
3021
|
+
main: {
|
|
3022
|
+
type: "query",
|
|
3023
|
+
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.",
|
|
3024
|
+
parameters: {
|
|
3025
|
+
type: "params",
|
|
3026
|
+
properties: {
|
|
3027
|
+
subscriptionUri: {
|
|
3028
|
+
type: "string",
|
|
3029
|
+
format: "at-uri",
|
|
3030
|
+
description: "AT-URI of a specific subscription record. Takes precedence over subject."
|
|
3031
|
+
},
|
|
3032
|
+
subject: {
|
|
3033
|
+
type: "string",
|
|
3034
|
+
format: "did",
|
|
3035
|
+
description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
|
|
3036
|
+
},
|
|
3037
|
+
amount: {
|
|
3038
|
+
type: "integer",
|
|
3039
|
+
description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
output: {
|
|
3044
|
+
encoding: "application/json",
|
|
3045
|
+
schema: {
|
|
3046
|
+
type: "object",
|
|
3047
|
+
required: ["valid"],
|
|
3048
|
+
properties: {
|
|
3049
|
+
valid: {
|
|
3050
|
+
type: "boolean",
|
|
3051
|
+
description: "Whether the authed sender has an active, verified subscription"
|
|
3052
|
+
},
|
|
3053
|
+
amount: {
|
|
3054
|
+
type: "integer",
|
|
3055
|
+
description: "Subscription amount in cents"
|
|
3056
|
+
},
|
|
3057
|
+
currency: {
|
|
3058
|
+
type: "string",
|
|
3059
|
+
maxLength: 3,
|
|
3060
|
+
description: "Currency of the subscription"
|
|
3061
|
+
},
|
|
3062
|
+
reason: {
|
|
3063
|
+
type: "string",
|
|
3064
|
+
maxLength: 1024,
|
|
3065
|
+
description: "If invalid, reason for rejection"
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
};
|
|
3073
|
+
|
|
2449
3074
|
// src/schemas/feed/tip/create.json
|
|
2450
3075
|
var create_default3 = {
|
|
2451
3076
|
lexicon: 1,
|
|
@@ -2494,6 +3119,10 @@ var create_default3 = {
|
|
|
2494
3119
|
description: "Optional message (max 500 chars)",
|
|
2495
3120
|
maxGraphemes: 500,
|
|
2496
3121
|
maxLength: 5e3
|
|
3122
|
+
},
|
|
3123
|
+
isPrivate: {
|
|
3124
|
+
type: "boolean",
|
|
3125
|
+
description: "If true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS tip record."
|
|
2497
3126
|
}
|
|
2498
3127
|
}
|
|
2499
3128
|
}
|
|
@@ -2537,7 +3166,7 @@ var create_default3 = {
|
|
|
2537
3166
|
};
|
|
2538
3167
|
|
|
2539
3168
|
// src/schemas/feed/tip/get.json
|
|
2540
|
-
var
|
|
3169
|
+
var get_default6 = {
|
|
2541
3170
|
defs: {
|
|
2542
3171
|
main: {
|
|
2543
3172
|
description: "Get a specific tip by URI",
|
|
@@ -2584,7 +3213,7 @@ var get_default4 = {
|
|
|
2584
3213
|
};
|
|
2585
3214
|
|
|
2586
3215
|
// src/schemas/feed/tip/list.json
|
|
2587
|
-
var
|
|
3216
|
+
var list_default6 = {
|
|
2588
3217
|
lexicon: 1,
|
|
2589
3218
|
id: "com.atiproto.feed.tip.list",
|
|
2590
3219
|
defs: {
|
|
@@ -2685,6 +3314,69 @@ var put_default4 = {
|
|
|
2685
3314
|
}
|
|
2686
3315
|
};
|
|
2687
3316
|
|
|
3317
|
+
// src/schemas/feed/tip/validate.json
|
|
3318
|
+
var validate_default4 = {
|
|
3319
|
+
lexicon: 1,
|
|
3320
|
+
id: "com.atiproto.feed.tip.validate",
|
|
3321
|
+
defs: {
|
|
3322
|
+
main: {
|
|
3323
|
+
type: "query",
|
|
3324
|
+
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.",
|
|
3325
|
+
parameters: {
|
|
3326
|
+
type: "params",
|
|
3327
|
+
properties: {
|
|
3328
|
+
tipUri: {
|
|
3329
|
+
type: "string",
|
|
3330
|
+
format: "at-uri",
|
|
3331
|
+
description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
|
|
3332
|
+
},
|
|
3333
|
+
recordUri: {
|
|
3334
|
+
type: "string",
|
|
3335
|
+
format: "at-uri",
|
|
3336
|
+
description: "AT-URI of the record being tipped. Takes precedence over subject."
|
|
3337
|
+
},
|
|
3338
|
+
subject: {
|
|
3339
|
+
type: "string",
|
|
3340
|
+
format: "did",
|
|
3341
|
+
description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
|
|
3342
|
+
},
|
|
3343
|
+
amount: {
|
|
3344
|
+
type: "integer",
|
|
3345
|
+
description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
output: {
|
|
3350
|
+
encoding: "application/json",
|
|
3351
|
+
schema: {
|
|
3352
|
+
type: "object",
|
|
3353
|
+
required: ["valid"],
|
|
3354
|
+
properties: {
|
|
3355
|
+
valid: {
|
|
3356
|
+
type: "boolean",
|
|
3357
|
+
description: "Whether the authed sender has completed and verified tip(s)"
|
|
3358
|
+
},
|
|
3359
|
+
amount: {
|
|
3360
|
+
type: "integer",
|
|
3361
|
+
description: "Sum of all verified completed tip amounts in cents"
|
|
3362
|
+
},
|
|
3363
|
+
currency: {
|
|
3364
|
+
type: "string",
|
|
3365
|
+
maxLength: 3,
|
|
3366
|
+
description: "Currency of the tips"
|
|
3367
|
+
},
|
|
3368
|
+
reason: {
|
|
3369
|
+
type: "string",
|
|
3370
|
+
maxLength: 1024,
|
|
3371
|
+
description: "If invalid, reason for rejection"
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
};
|
|
3379
|
+
|
|
2688
3380
|
// src/schemas/profile.json
|
|
2689
3381
|
var profile_default = {
|
|
2690
3382
|
lexicon: 1,
|
|
@@ -2756,7 +3448,7 @@ var profile_default = {
|
|
|
2756
3448
|
};
|
|
2757
3449
|
|
|
2758
3450
|
// src/schemas/repo/profile/get.json
|
|
2759
|
-
var
|
|
3451
|
+
var get_default7 = {
|
|
2760
3452
|
lexicon: 1,
|
|
2761
3453
|
id: "com.atiproto.repo.profile.get",
|
|
2762
3454
|
defs: {
|
|
@@ -2797,107 +3489,31 @@ var get_default5 = {
|
|
|
2797
3489
|
}
|
|
2798
3490
|
};
|
|
2799
3491
|
|
|
2800
|
-
// src/schemas/repo/subscription/
|
|
2801
|
-
var
|
|
3492
|
+
// src/schemas/repo/subscription/count.json
|
|
3493
|
+
var count_default = {
|
|
2802
3494
|
lexicon: 1,
|
|
2803
|
-
id: "com.atiproto.repo.subscription.
|
|
3495
|
+
id: "com.atiproto.repo.subscription.count",
|
|
2804
3496
|
defs: {
|
|
2805
3497
|
main: {
|
|
2806
3498
|
type: "query",
|
|
2807
|
-
description: "
|
|
3499
|
+
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.",
|
|
2808
3500
|
parameters: {
|
|
2809
3501
|
type: "params",
|
|
2810
3502
|
properties: {
|
|
2811
3503
|
subject: {
|
|
2812
3504
|
type: "string",
|
|
2813
3505
|
format: "did",
|
|
2814
|
-
description: "DID of the user being subscribed to"
|
|
2815
|
-
},
|
|
2816
|
-
cursor: {
|
|
2817
|
-
type: "string",
|
|
2818
|
-
maxLength: 512,
|
|
2819
|
-
description: "Pagination cursor"
|
|
2820
|
-
},
|
|
2821
|
-
limit: {
|
|
2822
|
-
type: "integer",
|
|
2823
|
-
minimum: 1,
|
|
2824
|
-
maximum: 100,
|
|
2825
|
-
default: 50,
|
|
2826
|
-
description: "Results per page (1-100, default: 50)"
|
|
2827
|
-
}
|
|
2828
|
-
},
|
|
2829
|
-
required: ["subject"]
|
|
2830
|
-
},
|
|
2831
|
-
output: {
|
|
2832
|
-
encoding: "application/json",
|
|
2833
|
-
schema: {
|
|
2834
|
-
type: "object",
|
|
2835
|
-
required: ["subscriptions"],
|
|
2836
|
-
properties: {
|
|
2837
|
-
subscriptions: {
|
|
2838
|
-
type: "array",
|
|
2839
|
-
items: {
|
|
2840
|
-
type: "ref",
|
|
2841
|
-
ref: "#subscriptionResponse"
|
|
2842
|
-
}
|
|
2843
|
-
},
|
|
2844
|
-
cursor: {
|
|
2845
|
-
type: "string",
|
|
2846
|
-
maxLength: 512,
|
|
2847
|
-
description: "Pagination cursor for next page"
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
},
|
|
2853
|
-
subscriptionResponse: {
|
|
2854
|
-
type: "object",
|
|
2855
|
-
required: ["uri", "record"],
|
|
2856
|
-
properties: {
|
|
2857
|
-
uri: {
|
|
2858
|
-
type: "string",
|
|
2859
|
-
format: "at-uri",
|
|
2860
|
-
description: "AT-URI of the subscription record"
|
|
2861
|
-
},
|
|
2862
|
-
record: {
|
|
2863
|
-
type: "ref",
|
|
2864
|
-
ref: "com.atiproto.subscription#view"
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
}
|
|
2869
|
-
};
|
|
2870
|
-
|
|
2871
|
-
// src/schemas/repo/subscription/validate.json
|
|
2872
|
-
var validate_default = {
|
|
2873
|
-
lexicon: 1,
|
|
2874
|
-
id: "com.atiproto.repo.subscription.validate",
|
|
2875
|
-
defs: {
|
|
2876
|
-
main: {
|
|
2877
|
-
type: "query",
|
|
2878
|
-
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.",
|
|
2879
|
-
parameters: {
|
|
2880
|
-
type: "params",
|
|
2881
|
-
required: ["sender"],
|
|
2882
|
-
properties: {
|
|
2883
|
-
sender: {
|
|
2884
|
-
type: "string",
|
|
2885
|
-
format: "did",
|
|
2886
|
-
description: "DID of the subscriber"
|
|
3506
|
+
description: "DID of the user being subscribed to. If omitted, the query counts subscriptions the authenticated user has active as the subscriber."
|
|
2887
3507
|
},
|
|
2888
|
-
|
|
3508
|
+
startDate: {
|
|
2889
3509
|
type: "string",
|
|
2890
|
-
format: "
|
|
2891
|
-
description: "
|
|
3510
|
+
format: "datetime",
|
|
3511
|
+
description: "Only count subscriptions whose billingStartDate is at or after this timestamp"
|
|
2892
3512
|
},
|
|
2893
|
-
|
|
3513
|
+
endDate: {
|
|
2894
3514
|
type: "string",
|
|
2895
|
-
format: "
|
|
2896
|
-
description: "
|
|
2897
|
-
},
|
|
2898
|
-
amount: {
|
|
2899
|
-
type: "integer",
|
|
2900
|
-
description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
|
|
3515
|
+
format: "datetime",
|
|
3516
|
+
description: "Only count subscriptions whose billingStartDate is at or before this timestamp"
|
|
2901
3517
|
}
|
|
2902
3518
|
}
|
|
2903
3519
|
},
|
|
@@ -2905,126 +3521,39 @@ var validate_default = {
|
|
|
2905
3521
|
encoding: "application/json",
|
|
2906
3522
|
schema: {
|
|
2907
3523
|
type: "object",
|
|
2908
|
-
required: ["
|
|
3524
|
+
required: ["count"],
|
|
2909
3525
|
properties: {
|
|
2910
|
-
|
|
2911
|
-
type: "
|
|
2912
|
-
description: "
|
|
3526
|
+
count: {
|
|
3527
|
+
type: "integer",
|
|
3528
|
+
description: "Number of active subscriptions matching the filter"
|
|
2913
3529
|
},
|
|
2914
3530
|
amount: {
|
|
2915
3531
|
type: "integer",
|
|
2916
|
-
description: "
|
|
3532
|
+
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)."
|
|
2917
3533
|
},
|
|
2918
3534
|
currency: {
|
|
2919
3535
|
type: "string",
|
|
2920
3536
|
maxLength: 3,
|
|
2921
|
-
description: "Currency of the
|
|
2922
|
-
},
|
|
2923
|
-
reason: {
|
|
2924
|
-
type: "string",
|
|
2925
|
-
maxLength: 1024,
|
|
2926
|
-
description: "If invalid, reason for rejection"
|
|
2927
|
-
}
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
};
|
|
2934
|
-
|
|
2935
|
-
// src/schemas/repo/tip/search.json
|
|
2936
|
-
var search_default2 = {
|
|
2937
|
-
lexicon: 1,
|
|
2938
|
-
id: "com.atiproto.repo.tip.search",
|
|
2939
|
-
defs: {
|
|
2940
|
-
main: {
|
|
2941
|
-
type: "query",
|
|
2942
|
-
description: "Search for tips sent to a user (tips where subject matches the given DID)",
|
|
2943
|
-
parameters: {
|
|
2944
|
-
type: "params",
|
|
2945
|
-
properties: {
|
|
2946
|
-
subject: {
|
|
2947
|
-
type: "string",
|
|
2948
|
-
format: "did",
|
|
2949
|
-
description: "DID of the user receiving tips"
|
|
2950
|
-
},
|
|
2951
|
-
cursor: {
|
|
2952
|
-
type: "string",
|
|
2953
|
-
maxLength: 512,
|
|
2954
|
-
description: "Pagination cursor"
|
|
2955
|
-
},
|
|
2956
|
-
limit: {
|
|
2957
|
-
type: "integer",
|
|
2958
|
-
minimum: 1,
|
|
2959
|
-
maximum: 100,
|
|
2960
|
-
default: 50,
|
|
2961
|
-
description: "Results per page (1-100, default: 50)"
|
|
2962
|
-
}
|
|
2963
|
-
},
|
|
2964
|
-
required: ["subject"]
|
|
2965
|
-
},
|
|
2966
|
-
output: {
|
|
2967
|
-
encoding: "application/json",
|
|
2968
|
-
schema: {
|
|
2969
|
-
type: "object",
|
|
2970
|
-
required: ["tips"],
|
|
2971
|
-
properties: {
|
|
2972
|
-
tips: {
|
|
2973
|
-
type: "array",
|
|
2974
|
-
items: {
|
|
2975
|
-
type: "ref",
|
|
2976
|
-
ref: "#tipResponse"
|
|
2977
|
-
}
|
|
2978
|
-
},
|
|
2979
|
-
cursor: {
|
|
2980
|
-
type: "string",
|
|
2981
|
-
maxLength: 512,
|
|
2982
|
-
description: "Pagination cursor for next page"
|
|
3537
|
+
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)."
|
|
2983
3538
|
}
|
|
2984
3539
|
}
|
|
2985
3540
|
}
|
|
2986
3541
|
}
|
|
2987
|
-
},
|
|
2988
|
-
tipResponse: {
|
|
2989
|
-
type: "object",
|
|
2990
|
-
required: ["uri", "record"],
|
|
2991
|
-
properties: {
|
|
2992
|
-
uri: {
|
|
2993
|
-
type: "string",
|
|
2994
|
-
format: "at-uri",
|
|
2995
|
-
description: "AT-URI of the tip record"
|
|
2996
|
-
},
|
|
2997
|
-
record: {
|
|
2998
|
-
type: "ref",
|
|
2999
|
-
ref: "com.atiproto.tip#view"
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
3542
|
}
|
|
3003
3543
|
}
|
|
3004
3544
|
};
|
|
3005
3545
|
|
|
3006
|
-
// src/schemas/repo/tip/
|
|
3007
|
-
var
|
|
3546
|
+
// src/schemas/repo/tip/count.json
|
|
3547
|
+
var count_default2 = {
|
|
3008
3548
|
lexicon: 1,
|
|
3009
|
-
id: "com.atiproto.repo.tip.
|
|
3549
|
+
id: "com.atiproto.repo.tip.count",
|
|
3010
3550
|
defs: {
|
|
3011
3551
|
main: {
|
|
3012
3552
|
type: "query",
|
|
3013
|
-
description: "
|
|
3553
|
+
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.",
|
|
3014
3554
|
parameters: {
|
|
3015
3555
|
type: "params",
|
|
3016
|
-
required: ["sender"],
|
|
3017
3556
|
properties: {
|
|
3018
|
-
sender: {
|
|
3019
|
-
type: "string",
|
|
3020
|
-
format: "did",
|
|
3021
|
-
description: "DID of the tip sender"
|
|
3022
|
-
},
|
|
3023
|
-
tipUri: {
|
|
3024
|
-
type: "string",
|
|
3025
|
-
format: "at-uri",
|
|
3026
|
-
description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
|
|
3027
|
-
},
|
|
3028
3557
|
recordUri: {
|
|
3029
3558
|
type: "string",
|
|
3030
3559
|
format: "at-uri",
|
|
@@ -3033,11 +3562,17 @@ var validate_default2 = {
|
|
|
3033
3562
|
subject: {
|
|
3034
3563
|
type: "string",
|
|
3035
3564
|
format: "did",
|
|
3036
|
-
description: "DID of the tip recipient. Ignored if
|
|
3565
|
+
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."
|
|
3037
3566
|
},
|
|
3038
|
-
|
|
3039
|
-
type: "
|
|
3040
|
-
|
|
3567
|
+
startDate: {
|
|
3568
|
+
type: "string",
|
|
3569
|
+
format: "datetime",
|
|
3570
|
+
description: "Only count tips completed at or after this timestamp"
|
|
3571
|
+
},
|
|
3572
|
+
endDate: {
|
|
3573
|
+
type: "string",
|
|
3574
|
+
format: "datetime",
|
|
3575
|
+
description: "Only count tips completed at or before this timestamp"
|
|
3041
3576
|
}
|
|
3042
3577
|
}
|
|
3043
3578
|
},
|
|
@@ -3045,25 +3580,20 @@ var validate_default2 = {
|
|
|
3045
3580
|
encoding: "application/json",
|
|
3046
3581
|
schema: {
|
|
3047
3582
|
type: "object",
|
|
3048
|
-
required: ["
|
|
3583
|
+
required: ["count"],
|
|
3049
3584
|
properties: {
|
|
3050
|
-
|
|
3051
|
-
type: "
|
|
3052
|
-
description: "
|
|
3585
|
+
count: {
|
|
3586
|
+
type: "integer",
|
|
3587
|
+
description: "Number of active (completed) tips matching the filter"
|
|
3053
3588
|
},
|
|
3054
3589
|
amount: {
|
|
3055
3590
|
type: "integer",
|
|
3056
|
-
description: "Sum of all
|
|
3591
|
+
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)."
|
|
3057
3592
|
},
|
|
3058
3593
|
currency: {
|
|
3059
3594
|
type: "string",
|
|
3060
3595
|
maxLength: 3,
|
|
3061
|
-
description: "Currency of the tips"
|
|
3062
|
-
},
|
|
3063
|
-
reason: {
|
|
3064
|
-
type: "string",
|
|
3065
|
-
maxLength: 1024,
|
|
3066
|
-
description: "If invalid, reason for rejection"
|
|
3596
|
+
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)."
|
|
3067
3597
|
}
|
|
3068
3598
|
}
|
|
3069
3599
|
}
|
|
@@ -3104,21 +3634,27 @@ var authEnhanced_default = {
|
|
|
3104
3634
|
"com.atiproto.account.cart.put",
|
|
3105
3635
|
"com.atiproto.account.profile.get",
|
|
3106
3636
|
"com.atiproto.account.profile.put",
|
|
3637
|
+
"com.atiproto.account.subscription.get",
|
|
3638
|
+
"com.atiproto.account.subscription.list",
|
|
3639
|
+
"com.atiproto.account.subscription.validate",
|
|
3640
|
+
"com.atiproto.account.tip.get",
|
|
3641
|
+
"com.atiproto.account.tip.list",
|
|
3642
|
+
"com.atiproto.account.tip.validate",
|
|
3107
3643
|
"com.atiproto.feed.list",
|
|
3108
3644
|
"com.atiproto.feed.subscription.cancel",
|
|
3109
3645
|
"com.atiproto.feed.subscription.create",
|
|
3110
3646
|
"com.atiproto.feed.subscription.get",
|
|
3111
3647
|
"com.atiproto.feed.subscription.list",
|
|
3112
3648
|
"com.atiproto.feed.subscription.put",
|
|
3649
|
+
"com.atiproto.feed.subscription.validate",
|
|
3113
3650
|
"com.atiproto.feed.tip.create",
|
|
3114
3651
|
"com.atiproto.feed.tip.get",
|
|
3115
3652
|
"com.atiproto.feed.tip.list",
|
|
3116
3653
|
"com.atiproto.feed.tip.put",
|
|
3654
|
+
"com.atiproto.feed.tip.validate",
|
|
3117
3655
|
"com.atiproto.repo.profile.get",
|
|
3118
|
-
"com.atiproto.repo.subscription.
|
|
3119
|
-
"com.atiproto.repo.
|
|
3120
|
-
"com.atiproto.repo.tip.search",
|
|
3121
|
-
"com.atiproto.repo.tip.validate"
|
|
3656
|
+
"com.atiproto.repo.subscription.count",
|
|
3657
|
+
"com.atiproto.repo.tip.count"
|
|
3122
3658
|
]
|
|
3123
3659
|
}
|
|
3124
3660
|
]
|
|
@@ -3155,21 +3691,27 @@ var authGeneral_default = {
|
|
|
3155
3691
|
"com.atiproto.account.cart.get",
|
|
3156
3692
|
"com.atiproto.account.cart.list",
|
|
3157
3693
|
"com.atiproto.account.cart.put",
|
|
3694
|
+
"com.atiproto.account.subscription.get",
|
|
3695
|
+
"com.atiproto.account.subscription.list",
|
|
3696
|
+
"com.atiproto.account.subscription.validate",
|
|
3697
|
+
"com.atiproto.account.tip.get",
|
|
3698
|
+
"com.atiproto.account.tip.list",
|
|
3699
|
+
"com.atiproto.account.tip.validate",
|
|
3158
3700
|
"com.atiproto.feed.list",
|
|
3159
3701
|
"com.atiproto.feed.subscription.cancel",
|
|
3160
3702
|
"com.atiproto.feed.subscription.create",
|
|
3161
3703
|
"com.atiproto.feed.subscription.get",
|
|
3162
3704
|
"com.atiproto.feed.subscription.list",
|
|
3163
3705
|
"com.atiproto.feed.subscription.put",
|
|
3706
|
+
"com.atiproto.feed.subscription.validate",
|
|
3164
3707
|
"com.atiproto.feed.tip.create",
|
|
3165
3708
|
"com.atiproto.feed.tip.get",
|
|
3166
3709
|
"com.atiproto.feed.tip.list",
|
|
3167
3710
|
"com.atiproto.feed.tip.put",
|
|
3711
|
+
"com.atiproto.feed.tip.validate",
|
|
3168
3712
|
"com.atiproto.repo.profile.get",
|
|
3169
|
-
"com.atiproto.repo.subscription.
|
|
3170
|
-
"com.atiproto.repo.
|
|
3171
|
-
"com.atiproto.repo.tip.search",
|
|
3172
|
-
"com.atiproto.repo.tip.validate"
|
|
3713
|
+
"com.atiproto.repo.subscription.count",
|
|
3714
|
+
"com.atiproto.repo.tip.count"
|
|
3173
3715
|
]
|
|
3174
3716
|
}
|
|
3175
3717
|
]
|
|
@@ -3250,7 +3792,6 @@ var subscription_default = {
|
|
|
3250
3792
|
type: "object",
|
|
3251
3793
|
description: "View of a subscription record for use in API responses",
|
|
3252
3794
|
required: [
|
|
3253
|
-
"subject",
|
|
3254
3795
|
"amount",
|
|
3255
3796
|
"currency",
|
|
3256
3797
|
"interval",
|
|
@@ -3364,7 +3905,7 @@ var tip_default = {
|
|
|
3364
3905
|
type: "string"
|
|
3365
3906
|
}
|
|
3366
3907
|
},
|
|
3367
|
-
required: ["
|
|
3908
|
+
required: ["amount", "currency", "status", "createdAt"],
|
|
3368
3909
|
type: "object"
|
|
3369
3910
|
},
|
|
3370
3911
|
type: "record"
|
|
@@ -3372,7 +3913,7 @@ var tip_default = {
|
|
|
3372
3913
|
view: {
|
|
3373
3914
|
type: "object",
|
|
3374
3915
|
description: "View of a tip record for use in API responses",
|
|
3375
|
-
required: ["
|
|
3916
|
+
required: ["amount", "currency", "status", "createdAt"],
|
|
3376
3917
|
properties: {
|
|
3377
3918
|
subject: {
|
|
3378
3919
|
description: "DID of the user receiving the tip",
|
|
@@ -3432,23 +3973,29 @@ var schemas = [
|
|
|
3432
3973
|
put_default,
|
|
3433
3974
|
get_default2,
|
|
3434
3975
|
put_default2,
|
|
3435
|
-
|
|
3976
|
+
get_default3,
|
|
3436
3977
|
list_default2,
|
|
3978
|
+
validate_default,
|
|
3979
|
+
get_default4,
|
|
3980
|
+
list_default3,
|
|
3981
|
+
validate_default2,
|
|
3982
|
+
cart_default,
|
|
3983
|
+
list_default4,
|
|
3437
3984
|
cancel_default,
|
|
3438
3985
|
create_default2,
|
|
3439
|
-
|
|
3440
|
-
|
|
3986
|
+
get_default5,
|
|
3987
|
+
list_default5,
|
|
3441
3988
|
put_default3,
|
|
3989
|
+
validate_default3,
|
|
3442
3990
|
create_default3,
|
|
3443
|
-
|
|
3444
|
-
|
|
3991
|
+
get_default6,
|
|
3992
|
+
list_default6,
|
|
3445
3993
|
put_default4,
|
|
3994
|
+
validate_default4,
|
|
3446
3995
|
profile_default,
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
search_default2,
|
|
3451
|
-
validate_default2,
|
|
3996
|
+
get_default7,
|
|
3997
|
+
count_default,
|
|
3998
|
+
count_default2,
|
|
3452
3999
|
authEnhanced_default,
|
|
3453
4000
|
authGeneral_default,
|
|
3454
4001
|
subscription_default,
|