@atiproto/lexicons 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1575 -1002
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1575 -1002
- 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/cart.defs.d.ts +4 -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/profile.defs.d.ts +4 -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 +5 -1
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +56 -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
|
|
@@ -116,6 +118,7 @@ var view = l.typedObject(
|
|
|
116
118
|
$nsid,
|
|
117
119
|
"view",
|
|
118
120
|
l.object({
|
|
121
|
+
uri: l.string({ format: "at-uri" }),
|
|
119
122
|
items: l.array(l.ref((() => cartItem))),
|
|
120
123
|
currency: l.string({ maxLength: 3 }),
|
|
121
124
|
total: l.integer(),
|
|
@@ -159,7 +162,7 @@ var main2 = l2.record(
|
|
|
159
162
|
"any",
|
|
160
163
|
$nsid2,
|
|
161
164
|
l2.object({
|
|
162
|
-
subject: l2.string({ format: "did" }),
|
|
165
|
+
subject: l2.optional(l2.string({ format: "did" })),
|
|
163
166
|
recordUri: l2.optional(l2.string({ format: "at-uri" })),
|
|
164
167
|
amount: l2.integer({ minimum: 0 }),
|
|
165
168
|
currency: l2.string({ maxLength: 3 }),
|
|
@@ -191,7 +194,8 @@ var view2 = l2.typedObject(
|
|
|
191
194
|
$nsid2,
|
|
192
195
|
"view",
|
|
193
196
|
l2.object({
|
|
194
|
-
|
|
197
|
+
uri: l2.string({ format: "at-uri" }),
|
|
198
|
+
subject: l2.optional(l2.string({ format: "did" })),
|
|
195
199
|
recordUri: l2.optional(l2.string({ format: "at-uri" })),
|
|
196
200
|
amount: l2.integer({ minimum: 0 }),
|
|
197
201
|
currency: l2.string({ maxLength: 3 }),
|
|
@@ -260,7 +264,8 @@ var view3 = l3.typedObject(
|
|
|
260
264
|
$nsid3,
|
|
261
265
|
"view",
|
|
262
266
|
l3.object({
|
|
263
|
-
|
|
267
|
+
uri: l3.string({ format: "at-uri" }),
|
|
268
|
+
subject: l3.optional(l3.string({ format: "did" })),
|
|
264
269
|
amount: l3.integer({ minimum: 0 }),
|
|
265
270
|
currency: l3.string({ maxLength: 3 }),
|
|
266
271
|
interval: l3.enum(["monthly", "yearly"]),
|
|
@@ -545,6 +550,7 @@ var view4 = l9.typedObject(
|
|
|
545
550
|
$nsid9,
|
|
546
551
|
"view",
|
|
547
552
|
l9.object({
|
|
553
|
+
uri: l9.string({ format: "at-uri" }),
|
|
548
554
|
acceptsTips: l9.optional(l9.boolean()),
|
|
549
555
|
acceptsSubscriptions: l9.optional(l9.boolean()),
|
|
550
556
|
disableReceiptNotifications: l9.optional(l9.boolean()),
|
|
@@ -615,26 +621,282 @@ var $params7 = main11.parameters;
|
|
|
615
621
|
var $input4 = main11.input;
|
|
616
622
|
var $output7 = main11.output;
|
|
617
623
|
|
|
624
|
+
// src/lexicons/com/atiproto/account/subscription.ts
|
|
625
|
+
var subscription_exports = {};
|
|
626
|
+
__export(subscription_exports, {
|
|
627
|
+
get: () => get_exports3,
|
|
628
|
+
list: () => list_exports2,
|
|
629
|
+
validate: () => validate_exports
|
|
630
|
+
});
|
|
631
|
+
|
|
632
|
+
// src/lexicons/com/atiproto/account/subscription/get.ts
|
|
633
|
+
var get_exports3 = {};
|
|
634
|
+
__export(get_exports3, {
|
|
635
|
+
$defs: () => get_defs_exports3,
|
|
636
|
+
$lxm: () => $lxm8,
|
|
637
|
+
$nsid: () => $nsid12,
|
|
638
|
+
$output: () => $output8,
|
|
639
|
+
$params: () => $params8,
|
|
640
|
+
main: () => main12
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
// src/lexicons/com/atiproto/account/subscription/get.defs.ts
|
|
644
|
+
var get_defs_exports3 = {};
|
|
645
|
+
__export(get_defs_exports3, {
|
|
646
|
+
$lxm: () => $lxm8,
|
|
647
|
+
$nsid: () => $nsid12,
|
|
648
|
+
$output: () => $output8,
|
|
649
|
+
$params: () => $params8,
|
|
650
|
+
main: () => main12
|
|
651
|
+
});
|
|
652
|
+
import { l as l12 } from "@atproto/lex";
|
|
653
|
+
var $nsid12 = "com.atiproto.account.subscription.get";
|
|
654
|
+
var main12 = l12.query(
|
|
655
|
+
$nsid12,
|
|
656
|
+
l12.params({
|
|
657
|
+
uri: l12.optional(l12.string({ format: "at-uri" })),
|
|
658
|
+
sender: l12.optional(l12.string({ format: "did" }))
|
|
659
|
+
}),
|
|
660
|
+
l12.jsonPayload({
|
|
661
|
+
subscription: l12.ref(
|
|
662
|
+
(() => view3)
|
|
663
|
+
)
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
var $lxm8 = main12.nsid;
|
|
667
|
+
var $params8 = main12.parameters;
|
|
668
|
+
var $output8 = main12.output;
|
|
669
|
+
|
|
670
|
+
// src/lexicons/com/atiproto/account/subscription/list.ts
|
|
671
|
+
var list_exports2 = {};
|
|
672
|
+
__export(list_exports2, {
|
|
673
|
+
$defs: () => list_defs_exports2,
|
|
674
|
+
$lxm: () => $lxm9,
|
|
675
|
+
$nsid: () => $nsid13,
|
|
676
|
+
$output: () => $output9,
|
|
677
|
+
$params: () => $params9,
|
|
678
|
+
main: () => main13
|
|
679
|
+
});
|
|
680
|
+
|
|
681
|
+
// src/lexicons/com/atiproto/account/subscription/list.defs.ts
|
|
682
|
+
var list_defs_exports2 = {};
|
|
683
|
+
__export(list_defs_exports2, {
|
|
684
|
+
$lxm: () => $lxm9,
|
|
685
|
+
$nsid: () => $nsid13,
|
|
686
|
+
$output: () => $output9,
|
|
687
|
+
$params: () => $params9,
|
|
688
|
+
main: () => main13
|
|
689
|
+
});
|
|
690
|
+
import { l as l13 } from "@atproto/lex";
|
|
691
|
+
var $nsid13 = "com.atiproto.account.subscription.list";
|
|
692
|
+
var main13 = l13.query(
|
|
693
|
+
$nsid13,
|
|
694
|
+
l13.params({
|
|
695
|
+
cursor: l13.optional(l13.string({ maxLength: 512 })),
|
|
696
|
+
limit: l13.optional(
|
|
697
|
+
l13.withDefault(l13.integer({ minimum: 1, maximum: 100 }), 50)
|
|
698
|
+
)
|
|
699
|
+
}),
|
|
700
|
+
l13.jsonPayload({
|
|
701
|
+
subscriptions: l13.array(
|
|
702
|
+
l13.ref(
|
|
703
|
+
(() => view3)
|
|
704
|
+
)
|
|
705
|
+
),
|
|
706
|
+
cursor: l13.optional(l13.string({ maxLength: 512 }))
|
|
707
|
+
})
|
|
708
|
+
);
|
|
709
|
+
var $lxm9 = main13.nsid;
|
|
710
|
+
var $params9 = main13.parameters;
|
|
711
|
+
var $output9 = main13.output;
|
|
712
|
+
|
|
713
|
+
// src/lexicons/com/atiproto/account/subscription/validate.ts
|
|
714
|
+
var validate_exports = {};
|
|
715
|
+
__export(validate_exports, {
|
|
716
|
+
$defs: () => validate_defs_exports,
|
|
717
|
+
$lxm: () => $lxm10,
|
|
718
|
+
$nsid: () => $nsid14,
|
|
719
|
+
$output: () => $output10,
|
|
720
|
+
$params: () => $params10,
|
|
721
|
+
main: () => main14
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
// src/lexicons/com/atiproto/account/subscription/validate.defs.ts
|
|
725
|
+
var validate_defs_exports = {};
|
|
726
|
+
__export(validate_defs_exports, {
|
|
727
|
+
$lxm: () => $lxm10,
|
|
728
|
+
$nsid: () => $nsid14,
|
|
729
|
+
$output: () => $output10,
|
|
730
|
+
$params: () => $params10,
|
|
731
|
+
main: () => main14
|
|
732
|
+
});
|
|
733
|
+
import { l as l14 } from "@atproto/lex";
|
|
734
|
+
var $nsid14 = "com.atiproto.account.subscription.validate";
|
|
735
|
+
var main14 = l14.query(
|
|
736
|
+
$nsid14,
|
|
737
|
+
l14.params({
|
|
738
|
+
subscriptionUri: l14.optional(l14.string({ format: "at-uri" })),
|
|
739
|
+
sender: l14.optional(l14.string({ format: "did" })),
|
|
740
|
+
amount: l14.optional(l14.integer())
|
|
741
|
+
}),
|
|
742
|
+
l14.jsonPayload({
|
|
743
|
+
valid: l14.boolean(),
|
|
744
|
+
amount: l14.optional(l14.integer()),
|
|
745
|
+
currency: l14.optional(l14.string({ maxLength: 3 })),
|
|
746
|
+
reason: l14.optional(l14.string({ maxLength: 1024 }))
|
|
747
|
+
})
|
|
748
|
+
);
|
|
749
|
+
var $lxm10 = main14.nsid;
|
|
750
|
+
var $params10 = main14.parameters;
|
|
751
|
+
var $output10 = main14.output;
|
|
752
|
+
|
|
753
|
+
// src/lexicons/com/atiproto/account/tip.ts
|
|
754
|
+
var tip_exports = {};
|
|
755
|
+
__export(tip_exports, {
|
|
756
|
+
get: () => get_exports4,
|
|
757
|
+
list: () => list_exports3,
|
|
758
|
+
validate: () => validate_exports2
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
// src/lexicons/com/atiproto/account/tip/get.ts
|
|
762
|
+
var get_exports4 = {};
|
|
763
|
+
__export(get_exports4, {
|
|
764
|
+
$defs: () => get_defs_exports4,
|
|
765
|
+
$lxm: () => $lxm11,
|
|
766
|
+
$nsid: () => $nsid15,
|
|
767
|
+
$output: () => $output11,
|
|
768
|
+
$params: () => $params11,
|
|
769
|
+
main: () => main15
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
// src/lexicons/com/atiproto/account/tip/get.defs.ts
|
|
773
|
+
var get_defs_exports4 = {};
|
|
774
|
+
__export(get_defs_exports4, {
|
|
775
|
+
$lxm: () => $lxm11,
|
|
776
|
+
$nsid: () => $nsid15,
|
|
777
|
+
$output: () => $output11,
|
|
778
|
+
$params: () => $params11,
|
|
779
|
+
main: () => main15
|
|
780
|
+
});
|
|
781
|
+
import { l as l15 } from "@atproto/lex";
|
|
782
|
+
var $nsid15 = "com.atiproto.account.tip.get";
|
|
783
|
+
var main15 = l15.query(
|
|
784
|
+
$nsid15,
|
|
785
|
+
l15.params({
|
|
786
|
+
uri: l15.optional(l15.string({ format: "at-uri" })),
|
|
787
|
+
sender: l15.optional(l15.string({ format: "did" })),
|
|
788
|
+
recordUri: l15.optional(l15.string({ format: "at-uri" }))
|
|
789
|
+
}),
|
|
790
|
+
l15.jsonPayload({
|
|
791
|
+
tip: l15.ref((() => view2))
|
|
792
|
+
})
|
|
793
|
+
);
|
|
794
|
+
var $lxm11 = main15.nsid;
|
|
795
|
+
var $params11 = main15.parameters;
|
|
796
|
+
var $output11 = main15.output;
|
|
797
|
+
|
|
798
|
+
// src/lexicons/com/atiproto/account/tip/list.ts
|
|
799
|
+
var list_exports3 = {};
|
|
800
|
+
__export(list_exports3, {
|
|
801
|
+
$defs: () => list_defs_exports3,
|
|
802
|
+
$lxm: () => $lxm12,
|
|
803
|
+
$nsid: () => $nsid16,
|
|
804
|
+
$output: () => $output12,
|
|
805
|
+
$params: () => $params12,
|
|
806
|
+
main: () => main16
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
// src/lexicons/com/atiproto/account/tip/list.defs.ts
|
|
810
|
+
var list_defs_exports3 = {};
|
|
811
|
+
__export(list_defs_exports3, {
|
|
812
|
+
$lxm: () => $lxm12,
|
|
813
|
+
$nsid: () => $nsid16,
|
|
814
|
+
$output: () => $output12,
|
|
815
|
+
$params: () => $params12,
|
|
816
|
+
main: () => main16
|
|
817
|
+
});
|
|
818
|
+
import { l as l16 } from "@atproto/lex";
|
|
819
|
+
var $nsid16 = "com.atiproto.account.tip.list";
|
|
820
|
+
var main16 = l16.query(
|
|
821
|
+
$nsid16,
|
|
822
|
+
l16.params({
|
|
823
|
+
sender: l16.optional(l16.string({ format: "did" })),
|
|
824
|
+
recordUri: l16.optional(l16.string({ format: "at-uri" })),
|
|
825
|
+
cursor: l16.optional(l16.string({ maxLength: 512 })),
|
|
826
|
+
limit: l16.optional(
|
|
827
|
+
l16.withDefault(l16.integer({ minimum: 1, maximum: 100 }), 50)
|
|
828
|
+
)
|
|
829
|
+
}),
|
|
830
|
+
l16.jsonPayload({
|
|
831
|
+
tips: l16.array(l16.ref((() => view2))),
|
|
832
|
+
cursor: l16.optional(l16.string({ maxLength: 512 }))
|
|
833
|
+
})
|
|
834
|
+
);
|
|
835
|
+
var $lxm12 = main16.nsid;
|
|
836
|
+
var $params12 = main16.parameters;
|
|
837
|
+
var $output12 = main16.output;
|
|
838
|
+
|
|
839
|
+
// src/lexicons/com/atiproto/account/tip/validate.ts
|
|
840
|
+
var validate_exports2 = {};
|
|
841
|
+
__export(validate_exports2, {
|
|
842
|
+
$defs: () => validate_defs_exports2,
|
|
843
|
+
$lxm: () => $lxm13,
|
|
844
|
+
$nsid: () => $nsid17,
|
|
845
|
+
$output: () => $output13,
|
|
846
|
+
$params: () => $params13,
|
|
847
|
+
main: () => main17
|
|
848
|
+
});
|
|
849
|
+
|
|
850
|
+
// src/lexicons/com/atiproto/account/tip/validate.defs.ts
|
|
851
|
+
var validate_defs_exports2 = {};
|
|
852
|
+
__export(validate_defs_exports2, {
|
|
853
|
+
$lxm: () => $lxm13,
|
|
854
|
+
$nsid: () => $nsid17,
|
|
855
|
+
$output: () => $output13,
|
|
856
|
+
$params: () => $params13,
|
|
857
|
+
main: () => main17
|
|
858
|
+
});
|
|
859
|
+
import { l as l17 } from "@atproto/lex";
|
|
860
|
+
var $nsid17 = "com.atiproto.account.tip.validate";
|
|
861
|
+
var main17 = l17.query(
|
|
862
|
+
$nsid17,
|
|
863
|
+
l17.params({
|
|
864
|
+
tipUri: l17.optional(l17.string({ format: "at-uri" })),
|
|
865
|
+
recordUri: l17.optional(l17.string({ format: "at-uri" })),
|
|
866
|
+
sender: l17.optional(l17.string({ format: "did" })),
|
|
867
|
+
amount: l17.optional(l17.integer())
|
|
868
|
+
}),
|
|
869
|
+
l17.jsonPayload({
|
|
870
|
+
valid: l17.boolean(),
|
|
871
|
+
amount: l17.optional(l17.integer()),
|
|
872
|
+
currency: l17.optional(l17.string({ maxLength: 3 })),
|
|
873
|
+
reason: l17.optional(l17.string({ maxLength: 1024 }))
|
|
874
|
+
})
|
|
875
|
+
);
|
|
876
|
+
var $lxm13 = main17.nsid;
|
|
877
|
+
var $params13 = main17.parameters;
|
|
878
|
+
var $output13 = main17.output;
|
|
879
|
+
|
|
618
880
|
// src/lexicons/com/atiproto/authEnhanced.ts
|
|
619
881
|
var authEnhanced_exports = {};
|
|
620
882
|
__export(authEnhanced_exports, {
|
|
621
883
|
$defs: () => authEnhanced_defs_exports,
|
|
622
|
-
$nsid: () => $
|
|
623
|
-
main: () =>
|
|
884
|
+
$nsid: () => $nsid18,
|
|
885
|
+
main: () => main18
|
|
624
886
|
});
|
|
625
887
|
|
|
626
888
|
// src/lexicons/com/atiproto/authEnhanced.defs.ts
|
|
627
889
|
var authEnhanced_defs_exports = {};
|
|
628
890
|
__export(authEnhanced_defs_exports, {
|
|
629
|
-
$nsid: () => $
|
|
630
|
-
main: () =>
|
|
891
|
+
$nsid: () => $nsid18,
|
|
892
|
+
main: () => main18
|
|
631
893
|
});
|
|
632
|
-
import { l as
|
|
633
|
-
var $
|
|
634
|
-
var
|
|
635
|
-
$
|
|
894
|
+
import { l as l18 } from "@atproto/lex";
|
|
895
|
+
var $nsid18 = "com.atiproto.authEnhanced";
|
|
896
|
+
var main18 = l18.permissionSet(
|
|
897
|
+
$nsid18,
|
|
636
898
|
[
|
|
637
|
-
|
|
899
|
+
l18.permission("repo", {
|
|
638
900
|
collection: [
|
|
639
901
|
"com.atiproto.cart",
|
|
640
902
|
"com.atiproto.subscription",
|
|
@@ -642,7 +904,7 @@ var main12 = l12.permissionSet(
|
|
|
642
904
|
"com.atiproto.profile"
|
|
643
905
|
]
|
|
644
906
|
}),
|
|
645
|
-
|
|
907
|
+
l18.permission("rpc", {
|
|
646
908
|
inheritAud: true,
|
|
647
909
|
lxm: [
|
|
648
910
|
"com.atiproto.account.cart.clone",
|
|
@@ -652,21 +914,27 @@ var main12 = l12.permissionSet(
|
|
|
652
914
|
"com.atiproto.account.cart.put",
|
|
653
915
|
"com.atiproto.account.profile.get",
|
|
654
916
|
"com.atiproto.account.profile.put",
|
|
917
|
+
"com.atiproto.account.subscription.get",
|
|
918
|
+
"com.atiproto.account.subscription.list",
|
|
919
|
+
"com.atiproto.account.subscription.validate",
|
|
920
|
+
"com.atiproto.account.tip.get",
|
|
921
|
+
"com.atiproto.account.tip.list",
|
|
922
|
+
"com.atiproto.account.tip.validate",
|
|
655
923
|
"com.atiproto.feed.list",
|
|
656
924
|
"com.atiproto.feed.subscription.cancel",
|
|
657
925
|
"com.atiproto.feed.subscription.create",
|
|
658
926
|
"com.atiproto.feed.subscription.get",
|
|
659
927
|
"com.atiproto.feed.subscription.list",
|
|
660
928
|
"com.atiproto.feed.subscription.put",
|
|
929
|
+
"com.atiproto.feed.subscription.validate",
|
|
661
930
|
"com.atiproto.feed.tip.create",
|
|
662
931
|
"com.atiproto.feed.tip.get",
|
|
663
932
|
"com.atiproto.feed.tip.list",
|
|
664
933
|
"com.atiproto.feed.tip.put",
|
|
934
|
+
"com.atiproto.feed.tip.validate",
|
|
665
935
|
"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"
|
|
936
|
+
"com.atiproto.repo.subscription.count",
|
|
937
|
+
"com.atiproto.repo.tip.count"
|
|
670
938
|
]
|
|
671
939
|
})
|
|
672
940
|
],
|
|
@@ -680,29 +948,29 @@ var main12 = l12.permissionSet(
|
|
|
680
948
|
var authGeneral_exports = {};
|
|
681
949
|
__export(authGeneral_exports, {
|
|
682
950
|
$defs: () => authGeneral_defs_exports,
|
|
683
|
-
$nsid: () => $
|
|
684
|
-
main: () =>
|
|
951
|
+
$nsid: () => $nsid19,
|
|
952
|
+
main: () => main19
|
|
685
953
|
});
|
|
686
954
|
|
|
687
955
|
// src/lexicons/com/atiproto/authGeneral.defs.ts
|
|
688
956
|
var authGeneral_defs_exports = {};
|
|
689
957
|
__export(authGeneral_defs_exports, {
|
|
690
|
-
$nsid: () => $
|
|
691
|
-
main: () =>
|
|
958
|
+
$nsid: () => $nsid19,
|
|
959
|
+
main: () => main19
|
|
692
960
|
});
|
|
693
|
-
import { l as
|
|
694
|
-
var $
|
|
695
|
-
var
|
|
696
|
-
$
|
|
961
|
+
import { l as l19 } from "@atproto/lex";
|
|
962
|
+
var $nsid19 = "com.atiproto.authGeneral";
|
|
963
|
+
var main19 = l19.permissionSet(
|
|
964
|
+
$nsid19,
|
|
697
965
|
[
|
|
698
|
-
|
|
966
|
+
l19.permission("repo", {
|
|
699
967
|
collection: [
|
|
700
968
|
"com.atiproto.cart",
|
|
701
969
|
"com.atiproto.subscription",
|
|
702
970
|
"com.atiproto.tip"
|
|
703
971
|
]
|
|
704
972
|
}),
|
|
705
|
-
|
|
973
|
+
l19.permission("rpc", {
|
|
706
974
|
inheritAud: true,
|
|
707
975
|
lxm: [
|
|
708
976
|
"com.atiproto.account.cart.clone",
|
|
@@ -710,21 +978,27 @@ var main13 = l13.permissionSet(
|
|
|
710
978
|
"com.atiproto.account.cart.get",
|
|
711
979
|
"com.atiproto.account.cart.list",
|
|
712
980
|
"com.atiproto.account.cart.put",
|
|
981
|
+
"com.atiproto.account.subscription.get",
|
|
982
|
+
"com.atiproto.account.subscription.list",
|
|
983
|
+
"com.atiproto.account.subscription.validate",
|
|
984
|
+
"com.atiproto.account.tip.get",
|
|
985
|
+
"com.atiproto.account.tip.list",
|
|
986
|
+
"com.atiproto.account.tip.validate",
|
|
713
987
|
"com.atiproto.feed.list",
|
|
714
988
|
"com.atiproto.feed.subscription.cancel",
|
|
715
989
|
"com.atiproto.feed.subscription.create",
|
|
716
990
|
"com.atiproto.feed.subscription.get",
|
|
717
991
|
"com.atiproto.feed.subscription.list",
|
|
718
992
|
"com.atiproto.feed.subscription.put",
|
|
993
|
+
"com.atiproto.feed.subscription.validate",
|
|
719
994
|
"com.atiproto.feed.tip.create",
|
|
720
995
|
"com.atiproto.feed.tip.get",
|
|
721
996
|
"com.atiproto.feed.tip.list",
|
|
722
997
|
"com.atiproto.feed.tip.put",
|
|
998
|
+
"com.atiproto.feed.tip.validate",
|
|
723
999
|
"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"
|
|
1000
|
+
"com.atiproto.repo.subscription.count",
|
|
1001
|
+
"com.atiproto.repo.tip.count"
|
|
728
1002
|
]
|
|
729
1003
|
})
|
|
730
1004
|
],
|
|
@@ -759,63 +1033,64 @@ __export(cart_exports2, {
|
|
|
759
1033
|
// src/lexicons/com/atiproto/feed.ts
|
|
760
1034
|
var feed_exports = {};
|
|
761
1035
|
__export(feed_exports, {
|
|
762
|
-
list: () =>
|
|
763
|
-
subscription: () =>
|
|
764
|
-
tip: () =>
|
|
1036
|
+
list: () => list_exports4,
|
|
1037
|
+
subscription: () => subscription_exports2,
|
|
1038
|
+
tip: () => tip_exports2
|
|
765
1039
|
});
|
|
766
1040
|
|
|
767
1041
|
// src/lexicons/com/atiproto/feed/list.ts
|
|
768
|
-
var
|
|
769
|
-
__export(
|
|
770
|
-
$defs: () =>
|
|
771
|
-
$lxm: () => $
|
|
772
|
-
$nsid: () => $
|
|
773
|
-
$output: () => $
|
|
774
|
-
$params: () => $
|
|
775
|
-
main: () =>
|
|
1042
|
+
var list_exports4 = {};
|
|
1043
|
+
__export(list_exports4, {
|
|
1044
|
+
$defs: () => list_defs_exports4,
|
|
1045
|
+
$lxm: () => $lxm14,
|
|
1046
|
+
$nsid: () => $nsid20,
|
|
1047
|
+
$output: () => $output14,
|
|
1048
|
+
$params: () => $params14,
|
|
1049
|
+
main: () => main20
|
|
776
1050
|
});
|
|
777
1051
|
|
|
778
1052
|
// src/lexicons/com/atiproto/feed/list.defs.ts
|
|
779
|
-
var
|
|
780
|
-
__export(
|
|
781
|
-
$lxm: () => $
|
|
782
|
-
$nsid: () => $
|
|
783
|
-
$output: () => $
|
|
784
|
-
$params: () => $
|
|
785
|
-
main: () =>
|
|
1053
|
+
var list_defs_exports4 = {};
|
|
1054
|
+
__export(list_defs_exports4, {
|
|
1055
|
+
$lxm: () => $lxm14,
|
|
1056
|
+
$nsid: () => $nsid20,
|
|
1057
|
+
$output: () => $output14,
|
|
1058
|
+
$params: () => $params14,
|
|
1059
|
+
main: () => main20
|
|
786
1060
|
});
|
|
787
|
-
import { l as
|
|
788
|
-
var $
|
|
789
|
-
var
|
|
790
|
-
$
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
items:
|
|
794
|
-
|
|
1061
|
+
import { l as l20 } from "@atproto/lex";
|
|
1062
|
+
var $nsid20 = "com.atiproto.feed.list";
|
|
1063
|
+
var main20 = l20.query(
|
|
1064
|
+
$nsid20,
|
|
1065
|
+
l20.params(),
|
|
1066
|
+
l20.jsonPayload({
|
|
1067
|
+
items: l20.array(
|
|
1068
|
+
l20.typedUnion(
|
|
795
1069
|
[
|
|
796
|
-
|
|
797
|
-
|
|
1070
|
+
l20.typedRef((() => main2)),
|
|
1071
|
+
l20.typedRef(
|
|
798
1072
|
(() => main3)
|
|
799
1073
|
)
|
|
800
1074
|
],
|
|
801
1075
|
false
|
|
802
1076
|
)
|
|
803
1077
|
),
|
|
804
|
-
cursor:
|
|
1078
|
+
cursor: l20.optional(l20.string({ maxLength: 512 }))
|
|
805
1079
|
})
|
|
806
1080
|
);
|
|
807
|
-
var $
|
|
808
|
-
var $
|
|
809
|
-
var $
|
|
1081
|
+
var $lxm14 = main20.nsid;
|
|
1082
|
+
var $params14 = main20.parameters;
|
|
1083
|
+
var $output14 = main20.output;
|
|
810
1084
|
|
|
811
1085
|
// src/lexicons/com/atiproto/feed/subscription.ts
|
|
812
|
-
var
|
|
813
|
-
__export(
|
|
1086
|
+
var subscription_exports2 = {};
|
|
1087
|
+
__export(subscription_exports2, {
|
|
814
1088
|
cancel: () => cancel_exports,
|
|
815
1089
|
create: () => create_exports2,
|
|
816
|
-
get: () =>
|
|
817
|
-
list: () =>
|
|
818
|
-
put: () => put_exports3
|
|
1090
|
+
get: () => get_exports5,
|
|
1091
|
+
list: () => list_exports5,
|
|
1092
|
+
put: () => put_exports3,
|
|
1093
|
+
validate: () => validate_exports3
|
|
819
1094
|
});
|
|
820
1095
|
|
|
821
1096
|
// src/lexicons/com/atiproto/feed/subscription/cancel.ts
|
|
@@ -823,174 +1098,175 @@ var cancel_exports = {};
|
|
|
823
1098
|
__export(cancel_exports, {
|
|
824
1099
|
$defs: () => cancel_defs_exports,
|
|
825
1100
|
$input: () => $input5,
|
|
826
|
-
$lxm: () => $
|
|
827
|
-
$nsid: () => $
|
|
828
|
-
$output: () => $
|
|
829
|
-
$params: () => $
|
|
830
|
-
main: () =>
|
|
1101
|
+
$lxm: () => $lxm15,
|
|
1102
|
+
$nsid: () => $nsid21,
|
|
1103
|
+
$output: () => $output15,
|
|
1104
|
+
$params: () => $params15,
|
|
1105
|
+
main: () => main21
|
|
831
1106
|
});
|
|
832
1107
|
|
|
833
1108
|
// src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
|
|
834
1109
|
var cancel_defs_exports = {};
|
|
835
1110
|
__export(cancel_defs_exports, {
|
|
836
1111
|
$input: () => $input5,
|
|
837
|
-
$lxm: () => $
|
|
838
|
-
$nsid: () => $
|
|
839
|
-
$output: () => $
|
|
840
|
-
$params: () => $
|
|
841
|
-
main: () =>
|
|
1112
|
+
$lxm: () => $lxm15,
|
|
1113
|
+
$nsid: () => $nsid21,
|
|
1114
|
+
$output: () => $output15,
|
|
1115
|
+
$params: () => $params15,
|
|
1116
|
+
main: () => main21
|
|
842
1117
|
});
|
|
843
|
-
import { l as
|
|
844
|
-
var $
|
|
845
|
-
var
|
|
846
|
-
$
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
subscriptionUri:
|
|
851
|
-
subscription:
|
|
1118
|
+
import { l as l21 } from "@atproto/lex";
|
|
1119
|
+
var $nsid21 = "com.atiproto.feed.subscription.cancel";
|
|
1120
|
+
var main21 = l21.procedure(
|
|
1121
|
+
$nsid21,
|
|
1122
|
+
l21.params(),
|
|
1123
|
+
l21.jsonPayload({ subscriptionUri: l21.string({ format: "at-uri" }) }),
|
|
1124
|
+
l21.jsonPayload({
|
|
1125
|
+
subscriptionUri: l21.string({ format: "at-uri" }),
|
|
1126
|
+
subscription: l21.ref(
|
|
852
1127
|
(() => view3)
|
|
853
1128
|
),
|
|
854
|
-
accessUntil:
|
|
1129
|
+
accessUntil: l21.string({ format: "datetime" })
|
|
855
1130
|
})
|
|
856
1131
|
);
|
|
857
|
-
var $
|
|
858
|
-
var $
|
|
859
|
-
var $input5 =
|
|
860
|
-
var $
|
|
1132
|
+
var $lxm15 = main21.nsid;
|
|
1133
|
+
var $params15 = main21.parameters;
|
|
1134
|
+
var $input5 = main21.input;
|
|
1135
|
+
var $output15 = main21.output;
|
|
861
1136
|
|
|
862
1137
|
// src/lexicons/com/atiproto/feed/subscription/create.ts
|
|
863
1138
|
var create_exports2 = {};
|
|
864
1139
|
__export(create_exports2, {
|
|
865
1140
|
$defs: () => create_defs_exports2,
|
|
866
1141
|
$input: () => $input6,
|
|
867
|
-
$lxm: () => $
|
|
868
|
-
$nsid: () => $
|
|
869
|
-
$output: () => $
|
|
870
|
-
$params: () => $
|
|
871
|
-
main: () =>
|
|
1142
|
+
$lxm: () => $lxm16,
|
|
1143
|
+
$nsid: () => $nsid22,
|
|
1144
|
+
$output: () => $output16,
|
|
1145
|
+
$params: () => $params16,
|
|
1146
|
+
main: () => main22
|
|
872
1147
|
});
|
|
873
1148
|
|
|
874
1149
|
// src/lexicons/com/atiproto/feed/subscription/create.defs.ts
|
|
875
1150
|
var create_defs_exports2 = {};
|
|
876
1151
|
__export(create_defs_exports2, {
|
|
877
1152
|
$input: () => $input6,
|
|
878
|
-
$lxm: () => $
|
|
879
|
-
$nsid: () => $
|
|
880
|
-
$output: () => $
|
|
881
|
-
$params: () => $
|
|
882
|
-
main: () =>
|
|
1153
|
+
$lxm: () => $lxm16,
|
|
1154
|
+
$nsid: () => $nsid22,
|
|
1155
|
+
$output: () => $output16,
|
|
1156
|
+
$params: () => $params16,
|
|
1157
|
+
main: () => main22
|
|
883
1158
|
});
|
|
884
|
-
import { l as
|
|
885
|
-
var $
|
|
886
|
-
var
|
|
887
|
-
$
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
subject:
|
|
891
|
-
amount:
|
|
892
|
-
currency:
|
|
893
|
-
interval:
|
|
894
|
-
cartUri:
|
|
895
|
-
redirectUrl:
|
|
1159
|
+
import { l as l22 } from "@atproto/lex";
|
|
1160
|
+
var $nsid22 = "com.atiproto.feed.subscription.create";
|
|
1161
|
+
var main22 = l22.procedure(
|
|
1162
|
+
$nsid22,
|
|
1163
|
+
l22.params(),
|
|
1164
|
+
l22.jsonPayload({
|
|
1165
|
+
subject: l22.string({ format: "did" }),
|
|
1166
|
+
amount: l22.optional(l22.integer()),
|
|
1167
|
+
currency: l22.string({ maxLength: 3 }),
|
|
1168
|
+
interval: l22.enum(["monthly", "yearly"]),
|
|
1169
|
+
cartUri: l22.optional(l22.string({ format: "at-uri" })),
|
|
1170
|
+
redirectUrl: l22.optional(l22.string({ format: "uri" })),
|
|
1171
|
+
isPrivate: l22.optional(l22.boolean())
|
|
896
1172
|
}),
|
|
897
|
-
|
|
898
|
-
subscriptionUri:
|
|
899
|
-
subscription:
|
|
1173
|
+
l22.jsonPayload({
|
|
1174
|
+
subscriptionUri: l22.string({ format: "at-uri" }),
|
|
1175
|
+
subscription: l22.ref(
|
|
900
1176
|
(() => view3)
|
|
901
1177
|
),
|
|
902
|
-
cartUri:
|
|
903
|
-
cart:
|
|
904
|
-
|
|
1178
|
+
cartUri: l22.optional(l22.string({ format: "at-uri" })),
|
|
1179
|
+
cart: l22.optional(
|
|
1180
|
+
l22.ref((() => view))
|
|
905
1181
|
),
|
|
906
|
-
checkoutUrl:
|
|
1182
|
+
checkoutUrl: l22.optional(l22.string({ format: "uri" }))
|
|
907
1183
|
})
|
|
908
1184
|
);
|
|
909
|
-
var $
|
|
910
|
-
var $
|
|
911
|
-
var $input6 =
|
|
912
|
-
var $
|
|
1185
|
+
var $lxm16 = main22.nsid;
|
|
1186
|
+
var $params16 = main22.parameters;
|
|
1187
|
+
var $input6 = main22.input;
|
|
1188
|
+
var $output16 = main22.output;
|
|
913
1189
|
|
|
914
1190
|
// src/lexicons/com/atiproto/feed/subscription/get.ts
|
|
915
|
-
var
|
|
916
|
-
__export(
|
|
917
|
-
$defs: () =>
|
|
918
|
-
$lxm: () => $
|
|
919
|
-
$nsid: () => $
|
|
920
|
-
$output: () => $
|
|
921
|
-
$params: () => $
|
|
922
|
-
main: () =>
|
|
1191
|
+
var get_exports5 = {};
|
|
1192
|
+
__export(get_exports5, {
|
|
1193
|
+
$defs: () => get_defs_exports5,
|
|
1194
|
+
$lxm: () => $lxm17,
|
|
1195
|
+
$nsid: () => $nsid23,
|
|
1196
|
+
$output: () => $output17,
|
|
1197
|
+
$params: () => $params17,
|
|
1198
|
+
main: () => main23
|
|
923
1199
|
});
|
|
924
1200
|
|
|
925
1201
|
// src/lexicons/com/atiproto/feed/subscription/get.defs.ts
|
|
926
|
-
var
|
|
927
|
-
__export(
|
|
928
|
-
$lxm: () => $
|
|
929
|
-
$nsid: () => $
|
|
930
|
-
$output: () => $
|
|
931
|
-
$params: () => $
|
|
932
|
-
main: () =>
|
|
1202
|
+
var get_defs_exports5 = {};
|
|
1203
|
+
__export(get_defs_exports5, {
|
|
1204
|
+
$lxm: () => $lxm17,
|
|
1205
|
+
$nsid: () => $nsid23,
|
|
1206
|
+
$output: () => $output17,
|
|
1207
|
+
$params: () => $params17,
|
|
1208
|
+
main: () => main23
|
|
933
1209
|
});
|
|
934
|
-
import { l as
|
|
935
|
-
var $
|
|
936
|
-
var
|
|
937
|
-
$
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
uri:
|
|
941
|
-
cid:
|
|
942
|
-
record:
|
|
1210
|
+
import { l as l23 } from "@atproto/lex";
|
|
1211
|
+
var $nsid23 = "com.atiproto.feed.subscription.get";
|
|
1212
|
+
var main23 = l23.query(
|
|
1213
|
+
$nsid23,
|
|
1214
|
+
l23.params({ uri: l23.string({ format: "at-uri" }) }),
|
|
1215
|
+
l23.jsonPayload({
|
|
1216
|
+
uri: l23.string({ format: "at-uri" }),
|
|
1217
|
+
cid: l23.string({ format: "cid" }),
|
|
1218
|
+
record: l23.ref(
|
|
943
1219
|
(() => view3)
|
|
944
1220
|
)
|
|
945
1221
|
})
|
|
946
1222
|
);
|
|
947
|
-
var $
|
|
948
|
-
var $
|
|
949
|
-
var $
|
|
1223
|
+
var $lxm17 = main23.nsid;
|
|
1224
|
+
var $params17 = main23.parameters;
|
|
1225
|
+
var $output17 = main23.output;
|
|
950
1226
|
|
|
951
1227
|
// src/lexicons/com/atiproto/feed/subscription/list.ts
|
|
952
|
-
var
|
|
953
|
-
__export(
|
|
954
|
-
$defs: () =>
|
|
955
|
-
$lxm: () => $
|
|
956
|
-
$nsid: () => $
|
|
957
|
-
$output: () => $
|
|
958
|
-
$params: () => $
|
|
959
|
-
main: () =>
|
|
1228
|
+
var list_exports5 = {};
|
|
1229
|
+
__export(list_exports5, {
|
|
1230
|
+
$defs: () => list_defs_exports5,
|
|
1231
|
+
$lxm: () => $lxm18,
|
|
1232
|
+
$nsid: () => $nsid24,
|
|
1233
|
+
$output: () => $output18,
|
|
1234
|
+
$params: () => $params18,
|
|
1235
|
+
main: () => main24,
|
|
960
1236
|
subscriptionResponse: () => subscriptionResponse
|
|
961
1237
|
});
|
|
962
1238
|
|
|
963
1239
|
// src/lexicons/com/atiproto/feed/subscription/list.defs.ts
|
|
964
|
-
var
|
|
965
|
-
__export(
|
|
966
|
-
$lxm: () => $
|
|
967
|
-
$nsid: () => $
|
|
968
|
-
$output: () => $
|
|
969
|
-
$params: () => $
|
|
970
|
-
main: () =>
|
|
1240
|
+
var list_defs_exports5 = {};
|
|
1241
|
+
__export(list_defs_exports5, {
|
|
1242
|
+
$lxm: () => $lxm18,
|
|
1243
|
+
$nsid: () => $nsid24,
|
|
1244
|
+
$output: () => $output18,
|
|
1245
|
+
$params: () => $params18,
|
|
1246
|
+
main: () => main24,
|
|
971
1247
|
subscriptionResponse: () => subscriptionResponse
|
|
972
1248
|
});
|
|
973
|
-
import { l as
|
|
974
|
-
var $
|
|
975
|
-
var
|
|
976
|
-
$
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
subscriptions:
|
|
980
|
-
|
|
1249
|
+
import { l as l24 } from "@atproto/lex";
|
|
1250
|
+
var $nsid24 = "com.atiproto.feed.subscription.list";
|
|
1251
|
+
var main24 = l24.query(
|
|
1252
|
+
$nsid24,
|
|
1253
|
+
l24.params(),
|
|
1254
|
+
l24.jsonPayload({
|
|
1255
|
+
subscriptions: l24.array(
|
|
1256
|
+
l24.ref((() => subscriptionResponse))
|
|
981
1257
|
),
|
|
982
|
-
cursor:
|
|
1258
|
+
cursor: l24.optional(l24.string({ maxLength: 512 }))
|
|
983
1259
|
})
|
|
984
1260
|
);
|
|
985
|
-
var $
|
|
986
|
-
var $
|
|
987
|
-
var $
|
|
988
|
-
var subscriptionResponse =
|
|
989
|
-
$
|
|
1261
|
+
var $lxm18 = main24.nsid;
|
|
1262
|
+
var $params18 = main24.parameters;
|
|
1263
|
+
var $output18 = main24.output;
|
|
1264
|
+
var subscriptionResponse = l24.typedObject(
|
|
1265
|
+
$nsid24,
|
|
990
1266
|
"subscriptionResponse",
|
|
991
|
-
|
|
992
|
-
uri:
|
|
993
|
-
record:
|
|
1267
|
+
l24.object({
|
|
1268
|
+
uri: l24.string({ format: "at-uri" }),
|
|
1269
|
+
record: l24.ref(
|
|
994
1270
|
(() => view3)
|
|
995
1271
|
)
|
|
996
1272
|
})
|
|
@@ -1001,51 +1277,92 @@ var put_exports3 = {};
|
|
|
1001
1277
|
__export(put_exports3, {
|
|
1002
1278
|
$defs: () => put_defs_exports3,
|
|
1003
1279
|
$input: () => $input7,
|
|
1004
|
-
$lxm: () => $
|
|
1005
|
-
$nsid: () => $
|
|
1006
|
-
$output: () => $
|
|
1007
|
-
$params: () => $
|
|
1008
|
-
main: () =>
|
|
1280
|
+
$lxm: () => $lxm19,
|
|
1281
|
+
$nsid: () => $nsid25,
|
|
1282
|
+
$output: () => $output19,
|
|
1283
|
+
$params: () => $params19,
|
|
1284
|
+
main: () => main25
|
|
1009
1285
|
});
|
|
1010
1286
|
|
|
1011
1287
|
// src/lexicons/com/atiproto/feed/subscription/put.defs.ts
|
|
1012
1288
|
var put_defs_exports3 = {};
|
|
1013
1289
|
__export(put_defs_exports3, {
|
|
1014
1290
|
$input: () => $input7,
|
|
1015
|
-
$lxm: () => $
|
|
1016
|
-
$nsid: () => $
|
|
1017
|
-
$output: () => $
|
|
1018
|
-
$params: () => $
|
|
1019
|
-
main: () =>
|
|
1291
|
+
$lxm: () => $lxm19,
|
|
1292
|
+
$nsid: () => $nsid25,
|
|
1293
|
+
$output: () => $output19,
|
|
1294
|
+
$params: () => $params19,
|
|
1295
|
+
main: () => main25
|
|
1020
1296
|
});
|
|
1021
|
-
import { l as
|
|
1022
|
-
var $
|
|
1023
|
-
var
|
|
1024
|
-
$
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
uri:
|
|
1028
|
-
record:
|
|
1297
|
+
import { l as l25 } from "@atproto/lex";
|
|
1298
|
+
var $nsid25 = "com.atiproto.feed.subscription.put";
|
|
1299
|
+
var main25 = l25.procedure(
|
|
1300
|
+
$nsid25,
|
|
1301
|
+
l25.params(),
|
|
1302
|
+
l25.jsonPayload({
|
|
1303
|
+
uri: l25.string({ format: "at-uri" }),
|
|
1304
|
+
record: l25.ref(
|
|
1029
1305
|
(() => main3)
|
|
1030
1306
|
)
|
|
1031
1307
|
}),
|
|
1032
|
-
|
|
1033
|
-
uri:
|
|
1034
|
-
cid:
|
|
1308
|
+
l25.jsonPayload({
|
|
1309
|
+
uri: l25.string({ format: "at-uri" }),
|
|
1310
|
+
cid: l25.string({ format: "cid" })
|
|
1311
|
+
})
|
|
1312
|
+
);
|
|
1313
|
+
var $lxm19 = main25.nsid;
|
|
1314
|
+
var $params19 = main25.parameters;
|
|
1315
|
+
var $input7 = main25.input;
|
|
1316
|
+
var $output19 = main25.output;
|
|
1317
|
+
|
|
1318
|
+
// src/lexicons/com/atiproto/feed/subscription/validate.ts
|
|
1319
|
+
var validate_exports3 = {};
|
|
1320
|
+
__export(validate_exports3, {
|
|
1321
|
+
$defs: () => validate_defs_exports3,
|
|
1322
|
+
$lxm: () => $lxm20,
|
|
1323
|
+
$nsid: () => $nsid26,
|
|
1324
|
+
$output: () => $output20,
|
|
1325
|
+
$params: () => $params20,
|
|
1326
|
+
main: () => main26
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
// src/lexicons/com/atiproto/feed/subscription/validate.defs.ts
|
|
1330
|
+
var validate_defs_exports3 = {};
|
|
1331
|
+
__export(validate_defs_exports3, {
|
|
1332
|
+
$lxm: () => $lxm20,
|
|
1333
|
+
$nsid: () => $nsid26,
|
|
1334
|
+
$output: () => $output20,
|
|
1335
|
+
$params: () => $params20,
|
|
1336
|
+
main: () => main26
|
|
1337
|
+
});
|
|
1338
|
+
import { l as l26 } from "@atproto/lex";
|
|
1339
|
+
var $nsid26 = "com.atiproto.feed.subscription.validate";
|
|
1340
|
+
var main26 = l26.query(
|
|
1341
|
+
$nsid26,
|
|
1342
|
+
l26.params({
|
|
1343
|
+
subscriptionUri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1344
|
+
subject: l26.optional(l26.string({ format: "did" })),
|
|
1345
|
+
amount: l26.optional(l26.integer())
|
|
1346
|
+
}),
|
|
1347
|
+
l26.jsonPayload({
|
|
1348
|
+
valid: l26.boolean(),
|
|
1349
|
+
amount: l26.optional(l26.integer()),
|
|
1350
|
+
currency: l26.optional(l26.string({ maxLength: 3 })),
|
|
1351
|
+
reason: l26.optional(l26.string({ maxLength: 1024 }))
|
|
1035
1352
|
})
|
|
1036
1353
|
);
|
|
1037
|
-
var $
|
|
1038
|
-
var $
|
|
1039
|
-
var $
|
|
1040
|
-
var $output13 = main19.output;
|
|
1354
|
+
var $lxm20 = main26.nsid;
|
|
1355
|
+
var $params20 = main26.parameters;
|
|
1356
|
+
var $output20 = main26.output;
|
|
1041
1357
|
|
|
1042
1358
|
// src/lexicons/com/atiproto/feed/tip.ts
|
|
1043
|
-
var
|
|
1044
|
-
__export(
|
|
1359
|
+
var tip_exports2 = {};
|
|
1360
|
+
__export(tip_exports2, {
|
|
1045
1361
|
create: () => create_exports3,
|
|
1046
|
-
get: () =>
|
|
1047
|
-
list: () =>
|
|
1048
|
-
put: () => put_exports4
|
|
1362
|
+
get: () => get_exports6,
|
|
1363
|
+
list: () => list_exports6,
|
|
1364
|
+
put: () => put_exports4,
|
|
1365
|
+
validate: () => validate_exports4
|
|
1049
1366
|
});
|
|
1050
1367
|
|
|
1051
1368
|
// src/lexicons/com/atiproto/feed/tip/create.ts
|
|
@@ -1053,161 +1370,203 @@ var create_exports3 = {};
|
|
|
1053
1370
|
__export(create_exports3, {
|
|
1054
1371
|
$defs: () => create_defs_exports3,
|
|
1055
1372
|
$input: () => $input8,
|
|
1056
|
-
$lxm: () => $
|
|
1057
|
-
$nsid: () => $
|
|
1058
|
-
$output: () => $
|
|
1059
|
-
$params: () => $
|
|
1060
|
-
main: () =>
|
|
1373
|
+
$lxm: () => $lxm21,
|
|
1374
|
+
$nsid: () => $nsid27,
|
|
1375
|
+
$output: () => $output21,
|
|
1376
|
+
$params: () => $params21,
|
|
1377
|
+
main: () => main27
|
|
1061
1378
|
});
|
|
1062
1379
|
|
|
1063
1380
|
// src/lexicons/com/atiproto/feed/tip/create.defs.ts
|
|
1064
1381
|
var create_defs_exports3 = {};
|
|
1065
1382
|
__export(create_defs_exports3, {
|
|
1066
1383
|
$input: () => $input8,
|
|
1067
|
-
$lxm: () => $
|
|
1068
|
-
$nsid: () => $
|
|
1069
|
-
$output: () => $
|
|
1070
|
-
$params: () => $
|
|
1071
|
-
main: () =>
|
|
1384
|
+
$lxm: () => $lxm21,
|
|
1385
|
+
$nsid: () => $nsid27,
|
|
1386
|
+
$output: () => $output21,
|
|
1387
|
+
$params: () => $params21,
|
|
1388
|
+
main: () => main27
|
|
1072
1389
|
});
|
|
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:
|
|
1390
|
+
import { l as l27 } from "@atproto/lex";
|
|
1391
|
+
var $nsid27 = "com.atiproto.feed.tip.create";
|
|
1392
|
+
var main27 = l27.procedure(
|
|
1393
|
+
$nsid27,
|
|
1394
|
+
l27.params(),
|
|
1395
|
+
l27.jsonPayload({
|
|
1396
|
+
subject: l27.string({ format: "did" }),
|
|
1397
|
+
recordUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1398
|
+
amount: l27.integer(),
|
|
1399
|
+
currency: l27.string({ maxLength: 3 }),
|
|
1400
|
+
cartUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1401
|
+
redirectUrl: l27.optional(l27.string({ format: "uri" })),
|
|
1402
|
+
message: l27.optional(l27.string({ maxGraphemes: 500, maxLength: 5e3 })),
|
|
1403
|
+
isPrivate: l27.optional(l27.boolean())
|
|
1086
1404
|
}),
|
|
1087
|
-
|
|
1088
|
-
tipUri:
|
|
1089
|
-
tip:
|
|
1090
|
-
cartUri:
|
|
1091
|
-
cart:
|
|
1092
|
-
|
|
1405
|
+
l27.jsonPayload({
|
|
1406
|
+
tipUri: l27.string({ format: "at-uri" }),
|
|
1407
|
+
tip: l27.ref((() => view2)),
|
|
1408
|
+
cartUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1409
|
+
cart: l27.optional(
|
|
1410
|
+
l27.ref((() => view))
|
|
1093
1411
|
),
|
|
1094
|
-
checkoutUrl:
|
|
1412
|
+
checkoutUrl: l27.optional(l27.string({ format: "uri" }))
|
|
1095
1413
|
})
|
|
1096
1414
|
);
|
|
1097
|
-
var $
|
|
1098
|
-
var $
|
|
1099
|
-
var $input8 =
|
|
1100
|
-
var $
|
|
1415
|
+
var $lxm21 = main27.nsid;
|
|
1416
|
+
var $params21 = main27.parameters;
|
|
1417
|
+
var $input8 = main27.input;
|
|
1418
|
+
var $output21 = main27.output;
|
|
1101
1419
|
|
|
1102
1420
|
// src/lexicons/com/atiproto/feed/tip/get.ts
|
|
1103
|
-
var
|
|
1104
|
-
__export(
|
|
1105
|
-
$defs: () =>
|
|
1106
|
-
$lxm: () => $
|
|
1107
|
-
$nsid: () => $
|
|
1108
|
-
$output: () => $
|
|
1109
|
-
$params: () => $
|
|
1110
|
-
main: () =>
|
|
1421
|
+
var get_exports6 = {};
|
|
1422
|
+
__export(get_exports6, {
|
|
1423
|
+
$defs: () => get_defs_exports6,
|
|
1424
|
+
$lxm: () => $lxm22,
|
|
1425
|
+
$nsid: () => $nsid28,
|
|
1426
|
+
$output: () => $output22,
|
|
1427
|
+
$params: () => $params22,
|
|
1428
|
+
main: () => main28
|
|
1111
1429
|
});
|
|
1112
1430
|
|
|
1113
1431
|
// src/lexicons/com/atiproto/feed/tip/get.defs.ts
|
|
1114
|
-
var
|
|
1115
|
-
__export(
|
|
1116
|
-
$lxm: () => $
|
|
1117
|
-
$nsid: () => $
|
|
1118
|
-
$output: () => $
|
|
1119
|
-
$params: () => $
|
|
1120
|
-
main: () =>
|
|
1432
|
+
var get_defs_exports6 = {};
|
|
1433
|
+
__export(get_defs_exports6, {
|
|
1434
|
+
$lxm: () => $lxm22,
|
|
1435
|
+
$nsid: () => $nsid28,
|
|
1436
|
+
$output: () => $output22,
|
|
1437
|
+
$params: () => $params22,
|
|
1438
|
+
main: () => main28
|
|
1121
1439
|
});
|
|
1122
|
-
import { l as
|
|
1123
|
-
var $
|
|
1124
|
-
var
|
|
1125
|
-
$
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
uri:
|
|
1129
|
-
cid:
|
|
1130
|
-
value:
|
|
1440
|
+
import { l as l28 } from "@atproto/lex";
|
|
1441
|
+
var $nsid28 = "com.atiproto.feed.tip.get";
|
|
1442
|
+
var main28 = l28.query(
|
|
1443
|
+
$nsid28,
|
|
1444
|
+
l28.params({ uri: l28.string({ format: "at-uri" }) }),
|
|
1445
|
+
l28.jsonPayload({
|
|
1446
|
+
uri: l28.string({ format: "at-uri" }),
|
|
1447
|
+
cid: l28.string({ format: "cid" }),
|
|
1448
|
+
value: l28.ref((() => view2))
|
|
1131
1449
|
})
|
|
1132
1450
|
);
|
|
1133
|
-
var $
|
|
1134
|
-
var $
|
|
1135
|
-
var $
|
|
1451
|
+
var $lxm22 = main28.nsid;
|
|
1452
|
+
var $params22 = main28.parameters;
|
|
1453
|
+
var $output22 = main28.output;
|
|
1136
1454
|
|
|
1137
1455
|
// src/lexicons/com/atiproto/feed/tip/list.ts
|
|
1138
|
-
var
|
|
1139
|
-
__export(
|
|
1140
|
-
$defs: () =>
|
|
1141
|
-
$lxm: () => $
|
|
1142
|
-
$nsid: () => $
|
|
1143
|
-
$output: () => $
|
|
1144
|
-
$params: () => $
|
|
1145
|
-
main: () =>
|
|
1456
|
+
var list_exports6 = {};
|
|
1457
|
+
__export(list_exports6, {
|
|
1458
|
+
$defs: () => list_defs_exports6,
|
|
1459
|
+
$lxm: () => $lxm23,
|
|
1460
|
+
$nsid: () => $nsid29,
|
|
1461
|
+
$output: () => $output23,
|
|
1462
|
+
$params: () => $params23,
|
|
1463
|
+
main: () => main29
|
|
1146
1464
|
});
|
|
1147
1465
|
|
|
1148
1466
|
// 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:
|
|
1467
|
+
var list_defs_exports6 = {};
|
|
1468
|
+
__export(list_defs_exports6, {
|
|
1469
|
+
$lxm: () => $lxm23,
|
|
1470
|
+
$nsid: () => $nsid29,
|
|
1471
|
+
$output: () => $output23,
|
|
1472
|
+
$params: () => $params23,
|
|
1473
|
+
main: () => main29
|
|
1474
|
+
});
|
|
1475
|
+
import { l as l29 } from "@atproto/lex";
|
|
1476
|
+
var $nsid29 = "com.atiproto.feed.tip.list";
|
|
1477
|
+
var main29 = l29.query(
|
|
1478
|
+
$nsid29,
|
|
1479
|
+
l29.params(),
|
|
1480
|
+
l29.jsonPayload({
|
|
1481
|
+
records: l29.array(l29.ref((() => view2))),
|
|
1482
|
+
cursor: l29.optional(l29.string({ maxLength: 512 }))
|
|
1165
1483
|
})
|
|
1166
1484
|
);
|
|
1167
|
-
var $
|
|
1168
|
-
var $
|
|
1169
|
-
var $
|
|
1485
|
+
var $lxm23 = main29.nsid;
|
|
1486
|
+
var $params23 = main29.parameters;
|
|
1487
|
+
var $output23 = main29.output;
|
|
1170
1488
|
|
|
1171
1489
|
// src/lexicons/com/atiproto/feed/tip/put.ts
|
|
1172
1490
|
var put_exports4 = {};
|
|
1173
1491
|
__export(put_exports4, {
|
|
1174
1492
|
$defs: () => put_defs_exports4,
|
|
1175
1493
|
$input: () => $input9,
|
|
1176
|
-
$lxm: () => $
|
|
1177
|
-
$nsid: () => $
|
|
1178
|
-
$output: () => $
|
|
1179
|
-
$params: () => $
|
|
1180
|
-
main: () =>
|
|
1494
|
+
$lxm: () => $lxm24,
|
|
1495
|
+
$nsid: () => $nsid30,
|
|
1496
|
+
$output: () => $output24,
|
|
1497
|
+
$params: () => $params24,
|
|
1498
|
+
main: () => main30
|
|
1181
1499
|
});
|
|
1182
1500
|
|
|
1183
1501
|
// src/lexicons/com/atiproto/feed/tip/put.defs.ts
|
|
1184
1502
|
var put_defs_exports4 = {};
|
|
1185
1503
|
__export(put_defs_exports4, {
|
|
1186
1504
|
$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:
|
|
1505
|
+
$lxm: () => $lxm24,
|
|
1506
|
+
$nsid: () => $nsid30,
|
|
1507
|
+
$output: () => $output24,
|
|
1508
|
+
$params: () => $params24,
|
|
1509
|
+
main: () => main30
|
|
1510
|
+
});
|
|
1511
|
+
import { l as l30 } from "@atproto/lex";
|
|
1512
|
+
var $nsid30 = "com.atiproto.feed.tip.put";
|
|
1513
|
+
var main30 = l30.procedure(
|
|
1514
|
+
$nsid30,
|
|
1515
|
+
l30.params(),
|
|
1516
|
+
l30.jsonPayload({
|
|
1517
|
+
uri: l30.string({ format: "at-uri" }),
|
|
1518
|
+
record: l30.ref((() => main2))
|
|
1201
1519
|
}),
|
|
1202
|
-
|
|
1203
|
-
uri:
|
|
1204
|
-
cid:
|
|
1520
|
+
l30.jsonPayload({
|
|
1521
|
+
uri: l30.string({ format: "at-uri" }),
|
|
1522
|
+
cid: l30.string({ format: "cid" })
|
|
1205
1523
|
})
|
|
1206
1524
|
);
|
|
1207
|
-
var $
|
|
1208
|
-
var $
|
|
1209
|
-
var $input9 =
|
|
1210
|
-
var $
|
|
1525
|
+
var $lxm24 = main30.nsid;
|
|
1526
|
+
var $params24 = main30.parameters;
|
|
1527
|
+
var $input9 = main30.input;
|
|
1528
|
+
var $output24 = main30.output;
|
|
1529
|
+
|
|
1530
|
+
// src/lexicons/com/atiproto/feed/tip/validate.ts
|
|
1531
|
+
var validate_exports4 = {};
|
|
1532
|
+
__export(validate_exports4, {
|
|
1533
|
+
$defs: () => validate_defs_exports4,
|
|
1534
|
+
$lxm: () => $lxm25,
|
|
1535
|
+
$nsid: () => $nsid31,
|
|
1536
|
+
$output: () => $output25,
|
|
1537
|
+
$params: () => $params25,
|
|
1538
|
+
main: () => main31
|
|
1539
|
+
});
|
|
1540
|
+
|
|
1541
|
+
// src/lexicons/com/atiproto/feed/tip/validate.defs.ts
|
|
1542
|
+
var validate_defs_exports4 = {};
|
|
1543
|
+
__export(validate_defs_exports4, {
|
|
1544
|
+
$lxm: () => $lxm25,
|
|
1545
|
+
$nsid: () => $nsid31,
|
|
1546
|
+
$output: () => $output25,
|
|
1547
|
+
$params: () => $params25,
|
|
1548
|
+
main: () => main31
|
|
1549
|
+
});
|
|
1550
|
+
import { l as l31 } from "@atproto/lex";
|
|
1551
|
+
var $nsid31 = "com.atiproto.feed.tip.validate";
|
|
1552
|
+
var main31 = l31.query(
|
|
1553
|
+
$nsid31,
|
|
1554
|
+
l31.params({
|
|
1555
|
+
tipUri: l31.optional(l31.string({ format: "at-uri" })),
|
|
1556
|
+
recordUri: l31.optional(l31.string({ format: "at-uri" })),
|
|
1557
|
+
subject: l31.optional(l31.string({ format: "did" })),
|
|
1558
|
+
amount: l31.optional(l31.integer())
|
|
1559
|
+
}),
|
|
1560
|
+
l31.jsonPayload({
|
|
1561
|
+
valid: l31.boolean(),
|
|
1562
|
+
amount: l31.optional(l31.integer()),
|
|
1563
|
+
currency: l31.optional(l31.string({ maxLength: 3 })),
|
|
1564
|
+
reason: l31.optional(l31.string({ maxLength: 1024 }))
|
|
1565
|
+
})
|
|
1566
|
+
);
|
|
1567
|
+
var $lxm25 = main31.nsid;
|
|
1568
|
+
var $params25 = main31.parameters;
|
|
1569
|
+
var $output25 = main31.output;
|
|
1211
1570
|
|
|
1212
1571
|
// src/lexicons/com/atiproto/profile.ts
|
|
1213
1572
|
var profile_exports2 = {};
|
|
@@ -1234,254 +1593,144 @@ __export(profile_exports2, {
|
|
|
1234
1593
|
var repo_exports = {};
|
|
1235
1594
|
__export(repo_exports, {
|
|
1236
1595
|
profile: () => profile_exports3,
|
|
1237
|
-
subscription: () =>
|
|
1238
|
-
tip: () =>
|
|
1596
|
+
subscription: () => subscription_exports3,
|
|
1597
|
+
tip: () => tip_exports3
|
|
1239
1598
|
});
|
|
1240
1599
|
|
|
1241
1600
|
// src/lexicons/com/atiproto/repo/profile.ts
|
|
1242
1601
|
var profile_exports3 = {};
|
|
1243
1602
|
__export(profile_exports3, {
|
|
1244
|
-
get: () =>
|
|
1603
|
+
get: () => get_exports7
|
|
1245
1604
|
});
|
|
1246
1605
|
|
|
1247
1606
|
// src/lexicons/com/atiproto/repo/profile/get.ts
|
|
1248
|
-
var
|
|
1249
|
-
__export(
|
|
1250
|
-
$defs: () =>
|
|
1251
|
-
$lxm: () => $
|
|
1252
|
-
$nsid: () => $
|
|
1253
|
-
$output: () => $
|
|
1254
|
-
$params: () => $
|
|
1255
|
-
main: () =>
|
|
1607
|
+
var get_exports7 = {};
|
|
1608
|
+
__export(get_exports7, {
|
|
1609
|
+
$defs: () => get_defs_exports7,
|
|
1610
|
+
$lxm: () => $lxm26,
|
|
1611
|
+
$nsid: () => $nsid32,
|
|
1612
|
+
$output: () => $output26,
|
|
1613
|
+
$params: () => $params26,
|
|
1614
|
+
main: () => main32
|
|
1256
1615
|
});
|
|
1257
1616
|
|
|
1258
1617
|
// 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:
|
|
1618
|
+
var get_defs_exports7 = {};
|
|
1619
|
+
__export(get_defs_exports7, {
|
|
1620
|
+
$lxm: () => $lxm26,
|
|
1621
|
+
$nsid: () => $nsid32,
|
|
1622
|
+
$output: () => $output26,
|
|
1623
|
+
$params: () => $params26,
|
|
1624
|
+
main: () => main32
|
|
1625
|
+
});
|
|
1626
|
+
import { l as l32 } from "@atproto/lex";
|
|
1627
|
+
var $nsid32 = "com.atiproto.repo.profile.get";
|
|
1628
|
+
var main32 = l32.query(
|
|
1629
|
+
$nsid32,
|
|
1630
|
+
l32.params({ did: l32.string({ format: "did" }) }),
|
|
1631
|
+
l32.jsonPayload({
|
|
1632
|
+
did: l32.string({ format: "did" }),
|
|
1633
|
+
profile: l32.ref((() => view4))
|
|
1275
1634
|
})
|
|
1276
1635
|
);
|
|
1277
|
-
var $
|
|
1278
|
-
var $
|
|
1279
|
-
var $
|
|
1636
|
+
var $lxm26 = main32.nsid;
|
|
1637
|
+
var $params26 = main32.parameters;
|
|
1638
|
+
var $output26 = main32.output;
|
|
1280
1639
|
|
|
1281
1640
|
// 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())
|
|
1641
|
+
var subscription_exports3 = {};
|
|
1642
|
+
__export(subscription_exports3, {
|
|
1643
|
+
count: () => count_exports
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1646
|
+
// src/lexicons/com/atiproto/repo/subscription/count.ts
|
|
1647
|
+
var count_exports = {};
|
|
1648
|
+
__export(count_exports, {
|
|
1649
|
+
$defs: () => count_defs_exports,
|
|
1650
|
+
$lxm: () => $lxm27,
|
|
1651
|
+
$nsid: () => $nsid33,
|
|
1652
|
+
$output: () => $output27,
|
|
1653
|
+
$params: () => $params27,
|
|
1654
|
+
main: () => main33
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1657
|
+
// src/lexicons/com/atiproto/repo/subscription/count.defs.ts
|
|
1658
|
+
var count_defs_exports = {};
|
|
1659
|
+
__export(count_defs_exports, {
|
|
1660
|
+
$lxm: () => $lxm27,
|
|
1661
|
+
$nsid: () => $nsid33,
|
|
1662
|
+
$output: () => $output27,
|
|
1663
|
+
$params: () => $params27,
|
|
1664
|
+
main: () => main33
|
|
1665
|
+
});
|
|
1666
|
+
import { l as l33 } from "@atproto/lex";
|
|
1667
|
+
var $nsid33 = "com.atiproto.repo.subscription.count";
|
|
1668
|
+
var main33 = l33.query(
|
|
1669
|
+
$nsid33,
|
|
1670
|
+
l33.params({
|
|
1671
|
+
subject: l33.optional(l33.string({ format: "did" })),
|
|
1672
|
+
startDate: l33.optional(l33.string({ format: "datetime" })),
|
|
1673
|
+
endDate: l33.optional(l33.string({ format: "datetime" }))
|
|
1371
1674
|
}),
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
amount:
|
|
1375
|
-
currency:
|
|
1376
|
-
reason: l26.optional(l26.string({ maxLength: 1024 }))
|
|
1675
|
+
l33.jsonPayload({
|
|
1676
|
+
count: l33.integer(),
|
|
1677
|
+
amount: l33.optional(l33.integer()),
|
|
1678
|
+
currency: l33.optional(l33.string({ maxLength: 3 }))
|
|
1377
1679
|
})
|
|
1378
1680
|
);
|
|
1379
|
-
var $
|
|
1380
|
-
var $
|
|
1381
|
-
var $
|
|
1681
|
+
var $lxm27 = main33.nsid;
|
|
1682
|
+
var $params27 = main33.parameters;
|
|
1683
|
+
var $output27 = main33.output;
|
|
1382
1684
|
|
|
1383
1685
|
// 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())
|
|
1686
|
+
var tip_exports3 = {};
|
|
1687
|
+
__export(tip_exports3, {
|
|
1688
|
+
count: () => count_exports2
|
|
1689
|
+
});
|
|
1690
|
+
|
|
1691
|
+
// src/lexicons/com/atiproto/repo/tip/count.ts
|
|
1692
|
+
var count_exports2 = {};
|
|
1693
|
+
__export(count_exports2, {
|
|
1694
|
+
$defs: () => count_defs_exports2,
|
|
1695
|
+
$lxm: () => $lxm28,
|
|
1696
|
+
$nsid: () => $nsid34,
|
|
1697
|
+
$output: () => $output28,
|
|
1698
|
+
$params: () => $params28,
|
|
1699
|
+
main: () => main34
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1702
|
+
// src/lexicons/com/atiproto/repo/tip/count.defs.ts
|
|
1703
|
+
var count_defs_exports2 = {};
|
|
1704
|
+
__export(count_defs_exports2, {
|
|
1705
|
+
$lxm: () => $lxm28,
|
|
1706
|
+
$nsid: () => $nsid34,
|
|
1707
|
+
$output: () => $output28,
|
|
1708
|
+
$params: () => $params28,
|
|
1709
|
+
main: () => main34
|
|
1710
|
+
});
|
|
1711
|
+
import { l as l34 } from "@atproto/lex";
|
|
1712
|
+
var $nsid34 = "com.atiproto.repo.tip.count";
|
|
1713
|
+
var main34 = l34.query(
|
|
1714
|
+
$nsid34,
|
|
1715
|
+
l34.params({
|
|
1716
|
+
recordUri: l34.optional(l34.string({ format: "at-uri" })),
|
|
1717
|
+
subject: l34.optional(l34.string({ format: "did" })),
|
|
1718
|
+
startDate: l34.optional(l34.string({ format: "datetime" })),
|
|
1719
|
+
endDate: l34.optional(l34.string({ format: "datetime" }))
|
|
1470
1720
|
}),
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
amount:
|
|
1474
|
-
currency:
|
|
1475
|
-
reason: l28.optional(l28.string({ maxLength: 1024 }))
|
|
1721
|
+
l34.jsonPayload({
|
|
1722
|
+
count: l34.integer(),
|
|
1723
|
+
amount: l34.optional(l34.integer()),
|
|
1724
|
+
currency: l34.optional(l34.string({ maxLength: 3 }))
|
|
1476
1725
|
})
|
|
1477
1726
|
);
|
|
1478
|
-
var $
|
|
1479
|
-
var $
|
|
1480
|
-
var $
|
|
1727
|
+
var $lxm28 = main34.nsid;
|
|
1728
|
+
var $params28 = main34.parameters;
|
|
1729
|
+
var $output28 = main34.output;
|
|
1481
1730
|
|
|
1482
1731
|
// src/lexicons/com/atiproto/subscription.ts
|
|
1483
|
-
var
|
|
1484
|
-
__export(
|
|
1732
|
+
var subscription_exports4 = {};
|
|
1733
|
+
__export(subscription_exports4, {
|
|
1485
1734
|
$assert: () => $assert3,
|
|
1486
1735
|
$build: () => $build3,
|
|
1487
1736
|
$cast: () => $cast3,
|
|
@@ -1501,8 +1750,8 @@ __export(subscription_exports3, {
|
|
|
1501
1750
|
});
|
|
1502
1751
|
|
|
1503
1752
|
// src/lexicons/com/atiproto/tip.ts
|
|
1504
|
-
var
|
|
1505
|
-
__export(
|
|
1753
|
+
var tip_exports4 = {};
|
|
1754
|
+
__export(tip_exports4, {
|
|
1506
1755
|
$assert: () => $assert2,
|
|
1507
1756
|
$build: () => $build2,
|
|
1508
1757
|
$cast: () => $cast2,
|
|
@@ -1598,29 +1847,325 @@ var clone_default = {
|
|
|
1598
1847
|
}
|
|
1599
1848
|
};
|
|
1600
1849
|
|
|
1601
|
-
// src/schemas/account/cart/create.json
|
|
1602
|
-
var create_default = {
|
|
1850
|
+
// src/schemas/account/cart/create.json
|
|
1851
|
+
var create_default = {
|
|
1852
|
+
lexicon: 1,
|
|
1853
|
+
id: "com.atiproto.account.cart.create",
|
|
1854
|
+
defs: {
|
|
1855
|
+
main: {
|
|
1856
|
+
type: "procedure",
|
|
1857
|
+
description: "Create a new empty cart",
|
|
1858
|
+
input: {
|
|
1859
|
+
encoding: "application/json",
|
|
1860
|
+
schema: {
|
|
1861
|
+
type: "object",
|
|
1862
|
+
required: ["currency"],
|
|
1863
|
+
properties: {
|
|
1864
|
+
currency: {
|
|
1865
|
+
type: "string",
|
|
1866
|
+
maxLength: 3,
|
|
1867
|
+
description: "ISO 4217 currency code"
|
|
1868
|
+
},
|
|
1869
|
+
redirectUrl: {
|
|
1870
|
+
type: "string",
|
|
1871
|
+
format: "uri",
|
|
1872
|
+
description: "URI to redirect to after checkout is complete/cancelled"
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
output: {
|
|
1878
|
+
encoding: "application/json",
|
|
1879
|
+
schema: {
|
|
1880
|
+
type: "object",
|
|
1881
|
+
required: ["cart", "cartUri", "checkoutUrl"],
|
|
1882
|
+
properties: {
|
|
1883
|
+
cart: {
|
|
1884
|
+
type: "ref",
|
|
1885
|
+
ref: "com.atiproto.cart#view",
|
|
1886
|
+
description: "The created cart record"
|
|
1887
|
+
},
|
|
1888
|
+
cartUri: {
|
|
1889
|
+
type: "string",
|
|
1890
|
+
format: "at-uri",
|
|
1891
|
+
description: "URI of the cart record"
|
|
1892
|
+
},
|
|
1893
|
+
checkoutUrl: {
|
|
1894
|
+
type: "string",
|
|
1895
|
+
format: "uri",
|
|
1896
|
+
description: "Checkout URL hosted by atiproto"
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
// src/schemas/account/cart/get.json
|
|
1906
|
+
var get_default = {
|
|
1907
|
+
lexicon: 1,
|
|
1908
|
+
id: "com.atiproto.account.cart.get",
|
|
1909
|
+
defs: {
|
|
1910
|
+
main: {
|
|
1911
|
+
type: "query",
|
|
1912
|
+
description: "Get a specific cart by URI, including resolved tip and subscription records",
|
|
1913
|
+
parameters: {
|
|
1914
|
+
type: "params",
|
|
1915
|
+
required: ["uri"],
|
|
1916
|
+
properties: {
|
|
1917
|
+
uri: {
|
|
1918
|
+
type: "string",
|
|
1919
|
+
format: "at-uri",
|
|
1920
|
+
description: "AT-URI of the cart record"
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
output: {
|
|
1925
|
+
encoding: "application/json",
|
|
1926
|
+
schema: {
|
|
1927
|
+
type: "object",
|
|
1928
|
+
required: ["uri", "cart", "tips", "subscriptions"],
|
|
1929
|
+
properties: {
|
|
1930
|
+
uri: {
|
|
1931
|
+
type: "string",
|
|
1932
|
+
format: "at-uri",
|
|
1933
|
+
description: "Cart record URI"
|
|
1934
|
+
},
|
|
1935
|
+
cid: {
|
|
1936
|
+
type: "string",
|
|
1937
|
+
format: "cid",
|
|
1938
|
+
description: "Cart record CID"
|
|
1939
|
+
},
|
|
1940
|
+
cart: {
|
|
1941
|
+
type: "ref",
|
|
1942
|
+
ref: "com.atiproto.cart#view",
|
|
1943
|
+
description: "The cart record data"
|
|
1944
|
+
},
|
|
1945
|
+
checkoutUrl: {
|
|
1946
|
+
type: "string",
|
|
1947
|
+
format: "uri",
|
|
1948
|
+
description: "Checkout URL, only present when cart status is open"
|
|
1949
|
+
},
|
|
1950
|
+
tips: {
|
|
1951
|
+
type: "array",
|
|
1952
|
+
items: {
|
|
1953
|
+
type: "ref",
|
|
1954
|
+
ref: "com.atiproto.tip#view"
|
|
1955
|
+
},
|
|
1956
|
+
description: "Resolved tip records referenced by this cart"
|
|
1957
|
+
},
|
|
1958
|
+
subscriptions: {
|
|
1959
|
+
type: "array",
|
|
1960
|
+
items: {
|
|
1961
|
+
type: "ref",
|
|
1962
|
+
ref: "com.atiproto.subscription#view"
|
|
1963
|
+
},
|
|
1964
|
+
description: "Resolved subscription records referenced by this cart"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
// src/schemas/account/cart/list.json
|
|
1974
|
+
var list_default = {
|
|
1975
|
+
lexicon: 1,
|
|
1976
|
+
id: "com.atiproto.account.cart.list",
|
|
1977
|
+
defs: {
|
|
1978
|
+
main: {
|
|
1979
|
+
type: "query",
|
|
1980
|
+
description: "List carts for the authenticated user",
|
|
1981
|
+
input: {
|
|
1982
|
+
encoding: "application/json",
|
|
1983
|
+
schema: {
|
|
1984
|
+
type: "object",
|
|
1985
|
+
properties: {
|
|
1986
|
+
status: {
|
|
1987
|
+
type: "string",
|
|
1988
|
+
maxLength: 64,
|
|
1989
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
1990
|
+
description: "Filter by cart status"
|
|
1991
|
+
},
|
|
1992
|
+
cursor: {
|
|
1993
|
+
type: "string",
|
|
1994
|
+
maxLength: 512,
|
|
1995
|
+
description: "Pagination cursor"
|
|
1996
|
+
},
|
|
1997
|
+
limit: {
|
|
1998
|
+
type: "integer",
|
|
1999
|
+
default: 20,
|
|
2000
|
+
minimum: 1,
|
|
2001
|
+
maximum: 100,
|
|
2002
|
+
description: "Results per page (1-100, default: 20)"
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
},
|
|
2007
|
+
output: {
|
|
2008
|
+
encoding: "application/json",
|
|
2009
|
+
schema: {
|
|
2010
|
+
type: "object",
|
|
2011
|
+
properties: {
|
|
2012
|
+
carts: {
|
|
2013
|
+
type: "array",
|
|
2014
|
+
items: {
|
|
2015
|
+
type: "ref",
|
|
2016
|
+
ref: "#cartResponse"
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
cursor: {
|
|
2020
|
+
type: "string",
|
|
2021
|
+
maxLength: 512,
|
|
2022
|
+
description: "Pagination cursor for next page"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
required: ["carts"]
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
cartResponse: {
|
|
2030
|
+
type: "object",
|
|
2031
|
+
required: ["uri", "cid", "record"],
|
|
2032
|
+
properties: {
|
|
2033
|
+
uri: {
|
|
2034
|
+
type: "string",
|
|
2035
|
+
format: "at-uri",
|
|
2036
|
+
description: "AT-URI of the cart record"
|
|
2037
|
+
},
|
|
2038
|
+
cid: {
|
|
2039
|
+
type: "string",
|
|
2040
|
+
format: "cid",
|
|
2041
|
+
description: "CID of the cart record"
|
|
2042
|
+
},
|
|
2043
|
+
record: {
|
|
2044
|
+
type: "ref",
|
|
2045
|
+
ref: "com.atiproto.cart#view"
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
// src/schemas/account/cart/put.json
|
|
2053
|
+
var put_default = {
|
|
2054
|
+
lexicon: 1,
|
|
2055
|
+
id: "com.atiproto.account.cart.put",
|
|
2056
|
+
defs: {
|
|
2057
|
+
main: {
|
|
2058
|
+
type: "procedure",
|
|
2059
|
+
description: "Update a cart. Only open carts can be updated.",
|
|
2060
|
+
input: {
|
|
2061
|
+
encoding: "application/json",
|
|
2062
|
+
schema: {
|
|
2063
|
+
type: "object",
|
|
2064
|
+
required: ["uri", "record"],
|
|
2065
|
+
properties: {
|
|
2066
|
+
uri: {
|
|
2067
|
+
type: "string",
|
|
2068
|
+
format: "at-uri",
|
|
2069
|
+
description: "AT-URI of the cart to update"
|
|
2070
|
+
},
|
|
2071
|
+
record: {
|
|
2072
|
+
type: "ref",
|
|
2073
|
+
ref: "com.atiproto.cart"
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
output: {
|
|
2079
|
+
encoding: "application/json",
|
|
2080
|
+
schema: {
|
|
2081
|
+
type: "object",
|
|
2082
|
+
required: ["uri", "cid"],
|
|
2083
|
+
properties: {
|
|
2084
|
+
uri: {
|
|
2085
|
+
type: "string",
|
|
2086
|
+
format: "at-uri",
|
|
2087
|
+
description: "Updated cart record URI"
|
|
2088
|
+
},
|
|
2089
|
+
cid: {
|
|
2090
|
+
type: "string",
|
|
2091
|
+
format: "cid",
|
|
2092
|
+
description: "New CID of the updated record"
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
// src/schemas/account/profile/get.json
|
|
2102
|
+
var get_default2 = {
|
|
2103
|
+
lexicon: 1,
|
|
2104
|
+
id: "com.atiproto.account.profile.get",
|
|
2105
|
+
defs: {
|
|
2106
|
+
main: {
|
|
2107
|
+
type: "query",
|
|
2108
|
+
description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
|
|
2109
|
+
output: {
|
|
2110
|
+
encoding: "application/json",
|
|
2111
|
+
schema: {
|
|
2112
|
+
type: "object",
|
|
2113
|
+
required: ["profile", "hasProfile", "readyForPayment"],
|
|
2114
|
+
properties: {
|
|
2115
|
+
uri: {
|
|
2116
|
+
type: "string",
|
|
2117
|
+
format: "at-uri",
|
|
2118
|
+
description: "Profile record URI (absent if no profile configured)"
|
|
2119
|
+
},
|
|
2120
|
+
cid: {
|
|
2121
|
+
type: "string",
|
|
2122
|
+
format: "cid",
|
|
2123
|
+
description: "Profile record CID (absent if no profile configured)"
|
|
2124
|
+
},
|
|
2125
|
+
profile: {
|
|
2126
|
+
type: "ref",
|
|
2127
|
+
ref: "com.atiproto.profile#view",
|
|
2128
|
+
description: "The profile record data (defaults if not configured)"
|
|
2129
|
+
},
|
|
2130
|
+
hasProfile: {
|
|
2131
|
+
type: "boolean",
|
|
2132
|
+
description: "Whether the user has saved a profile record"
|
|
2133
|
+
},
|
|
2134
|
+
readyForPayment: {
|
|
2135
|
+
type: "boolean",
|
|
2136
|
+
description: "Whether the user's payment account is set up and enabled"
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
// src/schemas/account/profile/put.json
|
|
2146
|
+
var put_default2 = {
|
|
1603
2147
|
lexicon: 1,
|
|
1604
|
-
id: "com.atiproto.account.
|
|
2148
|
+
id: "com.atiproto.account.profile.put",
|
|
1605
2149
|
defs: {
|
|
1606
2150
|
main: {
|
|
1607
2151
|
type: "procedure",
|
|
1608
|
-
description: "Create
|
|
2152
|
+
description: "Create or update the authenticated user's profile settings",
|
|
1609
2153
|
input: {
|
|
1610
2154
|
encoding: "application/json",
|
|
1611
2155
|
schema: {
|
|
1612
2156
|
type: "object",
|
|
1613
|
-
required: ["currency"],
|
|
1614
2157
|
properties: {
|
|
1615
|
-
|
|
1616
|
-
type: "
|
|
1617
|
-
|
|
1618
|
-
description: "ISO 4217 currency code"
|
|
2158
|
+
acceptsTips: {
|
|
2159
|
+
type: "boolean",
|
|
2160
|
+
description: "Enable accepting tips"
|
|
1619
2161
|
},
|
|
1620
|
-
|
|
1621
|
-
type: "
|
|
1622
|
-
|
|
1623
|
-
|
|
2162
|
+
acceptsSubscriptions: {
|
|
2163
|
+
type: "boolean",
|
|
2164
|
+
description: "Enable accepting subscriptions"
|
|
2165
|
+
},
|
|
2166
|
+
disableReceiptNotifications: {
|
|
2167
|
+
type: "boolean",
|
|
2168
|
+
description: "Opt out of payment receipt DMs"
|
|
1624
2169
|
}
|
|
1625
2170
|
}
|
|
1626
2171
|
}
|
|
@@ -1629,22 +2174,36 @@ var create_default = {
|
|
|
1629
2174
|
encoding: "application/json",
|
|
1630
2175
|
schema: {
|
|
1631
2176
|
type: "object",
|
|
1632
|
-
required: [
|
|
2177
|
+
required: [
|
|
2178
|
+
"uri",
|
|
2179
|
+
"cid",
|
|
2180
|
+
"profile",
|
|
2181
|
+
"hasProfile",
|
|
2182
|
+
"readyForPayment"
|
|
2183
|
+
],
|
|
1633
2184
|
properties: {
|
|
1634
|
-
|
|
1635
|
-
type: "ref",
|
|
1636
|
-
ref: "com.atiproto.cart#view",
|
|
1637
|
-
description: "The created cart record"
|
|
1638
|
-
},
|
|
1639
|
-
cartUri: {
|
|
2185
|
+
uri: {
|
|
1640
2186
|
type: "string",
|
|
1641
2187
|
format: "at-uri",
|
|
1642
|
-
description: "
|
|
2188
|
+
description: "Profile record URI"
|
|
1643
2189
|
},
|
|
1644
|
-
|
|
2190
|
+
cid: {
|
|
1645
2191
|
type: "string",
|
|
1646
|
-
format: "
|
|
1647
|
-
description: "
|
|
2192
|
+
format: "cid",
|
|
2193
|
+
description: "Profile record CID"
|
|
2194
|
+
},
|
|
2195
|
+
profile: {
|
|
2196
|
+
type: "ref",
|
|
2197
|
+
ref: "com.atiproto.profile#view",
|
|
2198
|
+
description: "The profile record data"
|
|
2199
|
+
},
|
|
2200
|
+
hasProfile: {
|
|
2201
|
+
type: "boolean",
|
|
2202
|
+
description: "Whether the user has saved a profile record"
|
|
2203
|
+
},
|
|
2204
|
+
readyForPayment: {
|
|
2205
|
+
type: "boolean",
|
|
2206
|
+
description: "Whether the user's payment account is set up and enabled"
|
|
1648
2207
|
}
|
|
1649
2208
|
}
|
|
1650
2209
|
}
|
|
@@ -1653,22 +2212,26 @@ var create_default = {
|
|
|
1653
2212
|
}
|
|
1654
2213
|
};
|
|
1655
2214
|
|
|
1656
|
-
// src/schemas/account/
|
|
1657
|
-
var
|
|
2215
|
+
// src/schemas/account/subscription/get.json
|
|
2216
|
+
var get_default3 = {
|
|
1658
2217
|
lexicon: 1,
|
|
1659
|
-
id: "com.atiproto.account.
|
|
2218
|
+
id: "com.atiproto.account.subscription.get",
|
|
1660
2219
|
defs: {
|
|
1661
2220
|
main: {
|
|
1662
2221
|
type: "query",
|
|
1663
|
-
description: "Get a specific
|
|
2222
|
+
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.",
|
|
1664
2223
|
parameters: {
|
|
1665
2224
|
type: "params",
|
|
1666
|
-
required: ["uri"],
|
|
1667
2225
|
properties: {
|
|
1668
2226
|
uri: {
|
|
1669
2227
|
type: "string",
|
|
1670
2228
|
format: "at-uri",
|
|
1671
|
-
description: "AT-URI of the
|
|
2229
|
+
description: "AT-URI of the subscription record. Takes precedence over sender."
|
|
2230
|
+
},
|
|
2231
|
+
sender: {
|
|
2232
|
+
type: "string",
|
|
2233
|
+
format: "did",
|
|
2234
|
+
description: "DID of the subscriber. Ignored if uri is provided."
|
|
1672
2235
|
}
|
|
1673
2236
|
}
|
|
1674
2237
|
},
|
|
@@ -1676,43 +2239,12 @@ var get_default = {
|
|
|
1676
2239
|
encoding: "application/json",
|
|
1677
2240
|
schema: {
|
|
1678
2241
|
type: "object",
|
|
1679
|
-
required: ["
|
|
2242
|
+
required: ["subscription"],
|
|
1680
2243
|
properties: {
|
|
1681
|
-
|
|
1682
|
-
type: "string",
|
|
1683
|
-
format: "at-uri",
|
|
1684
|
-
description: "Cart record URI"
|
|
1685
|
-
},
|
|
1686
|
-
cid: {
|
|
1687
|
-
type: "string",
|
|
1688
|
-
format: "cid",
|
|
1689
|
-
description: "Cart record CID"
|
|
1690
|
-
},
|
|
1691
|
-
cart: {
|
|
2244
|
+
subscription: {
|
|
1692
2245
|
type: "ref",
|
|
1693
|
-
ref: "com.atiproto.
|
|
1694
|
-
description: "The
|
|
1695
|
-
},
|
|
1696
|
-
checkoutUrl: {
|
|
1697
|
-
type: "string",
|
|
1698
|
-
format: "uri",
|
|
1699
|
-
description: "Checkout URL, only present when cart status is open"
|
|
1700
|
-
},
|
|
1701
|
-
tips: {
|
|
1702
|
-
type: "array",
|
|
1703
|
-
items: {
|
|
1704
|
-
type: "ref",
|
|
1705
|
-
ref: "com.atiproto.tip#view"
|
|
1706
|
-
},
|
|
1707
|
-
description: "Resolved tip records referenced by this cart"
|
|
1708
|
-
},
|
|
1709
|
-
subscriptions: {
|
|
1710
|
-
type: "array",
|
|
1711
|
-
items: {
|
|
1712
|
-
type: "ref",
|
|
1713
|
-
ref: "com.atiproto.subscription#view"
|
|
1714
|
-
},
|
|
1715
|
-
description: "Resolved subscription records referenced by this cart"
|
|
2246
|
+
ref: "com.atiproto.subscription#view",
|
|
2247
|
+
description: "The subscription record data"
|
|
1716
2248
|
}
|
|
1717
2249
|
}
|
|
1718
2250
|
}
|
|
@@ -1721,37 +2253,28 @@ var get_default = {
|
|
|
1721
2253
|
}
|
|
1722
2254
|
};
|
|
1723
2255
|
|
|
1724
|
-
// src/schemas/account/
|
|
1725
|
-
var
|
|
2256
|
+
// src/schemas/account/subscription/list.json
|
|
2257
|
+
var list_default2 = {
|
|
1726
2258
|
lexicon: 1,
|
|
1727
|
-
id: "com.atiproto.account.
|
|
2259
|
+
id: "com.atiproto.account.subscription.list",
|
|
1728
2260
|
defs: {
|
|
1729
2261
|
main: {
|
|
1730
2262
|
type: "query",
|
|
1731
|
-
description: "List
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
description: "Pagination cursor"
|
|
1747
|
-
},
|
|
1748
|
-
limit: {
|
|
1749
|
-
type: "integer",
|
|
1750
|
-
default: 20,
|
|
1751
|
-
minimum: 1,
|
|
1752
|
-
maximum: 100,
|
|
1753
|
-
description: "Results per page (1-100, default: 20)"
|
|
1754
|
-
}
|
|
2263
|
+
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.",
|
|
2264
|
+
parameters: {
|
|
2265
|
+
type: "params",
|
|
2266
|
+
properties: {
|
|
2267
|
+
cursor: {
|
|
2268
|
+
type: "string",
|
|
2269
|
+
maxLength: 512,
|
|
2270
|
+
description: "Pagination cursor"
|
|
2271
|
+
},
|
|
2272
|
+
limit: {
|
|
2273
|
+
type: "integer",
|
|
2274
|
+
minimum: 1,
|
|
2275
|
+
maximum: 100,
|
|
2276
|
+
default: 50,
|
|
2277
|
+
description: "Results per page (1-100, default: 50)"
|
|
1755
2278
|
}
|
|
1756
2279
|
}
|
|
1757
2280
|
},
|
|
@@ -1759,12 +2282,13 @@ var list_default = {
|
|
|
1759
2282
|
encoding: "application/json",
|
|
1760
2283
|
schema: {
|
|
1761
2284
|
type: "object",
|
|
2285
|
+
required: ["subscriptions"],
|
|
1762
2286
|
properties: {
|
|
1763
|
-
|
|
2287
|
+
subscriptions: {
|
|
1764
2288
|
type: "array",
|
|
1765
2289
|
items: {
|
|
1766
2290
|
type: "ref",
|
|
1767
|
-
ref: "#
|
|
2291
|
+
ref: "com.atiproto.subscription#view"
|
|
1768
2292
|
}
|
|
1769
2293
|
},
|
|
1770
2294
|
cursor: {
|
|
@@ -1772,75 +2296,109 @@ var list_default = {
|
|
|
1772
2296
|
maxLength: 512,
|
|
1773
2297
|
description: "Pagination cursor for next page"
|
|
1774
2298
|
}
|
|
1775
|
-
}
|
|
1776
|
-
required: ["carts"]
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
},
|
|
1780
|
-
cartResponse: {
|
|
1781
|
-
type: "object",
|
|
1782
|
-
required: ["uri", "cid", "record"],
|
|
1783
|
-
properties: {
|
|
1784
|
-
uri: {
|
|
1785
|
-
type: "string",
|
|
1786
|
-
format: "at-uri",
|
|
1787
|
-
description: "AT-URI of the cart record"
|
|
1788
|
-
},
|
|
1789
|
-
cid: {
|
|
1790
|
-
type: "string",
|
|
1791
|
-
format: "cid",
|
|
1792
|
-
description: "CID of the cart record"
|
|
1793
|
-
},
|
|
1794
|
-
record: {
|
|
1795
|
-
type: "ref",
|
|
1796
|
-
ref: "com.atiproto.cart#view"
|
|
2299
|
+
}
|
|
1797
2300
|
}
|
|
1798
2301
|
}
|
|
1799
2302
|
}
|
|
1800
2303
|
}
|
|
1801
2304
|
};
|
|
1802
2305
|
|
|
1803
|
-
// src/schemas/account/
|
|
1804
|
-
var
|
|
2306
|
+
// src/schemas/account/subscription/validate.json
|
|
2307
|
+
var validate_default = {
|
|
1805
2308
|
lexicon: 1,
|
|
1806
|
-
id: "com.atiproto.account.
|
|
2309
|
+
id: "com.atiproto.account.subscription.validate",
|
|
1807
2310
|
defs: {
|
|
1808
2311
|
main: {
|
|
1809
|
-
type: "
|
|
1810
|
-
description: "
|
|
1811
|
-
|
|
2312
|
+
type: "query",
|
|
2313
|
+
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.",
|
|
2314
|
+
parameters: {
|
|
2315
|
+
type: "params",
|
|
2316
|
+
properties: {
|
|
2317
|
+
subscriptionUri: {
|
|
2318
|
+
type: "string",
|
|
2319
|
+
format: "at-uri",
|
|
2320
|
+
description: "AT-URI of a specific subscription record. Takes precedence over sender."
|
|
2321
|
+
},
|
|
2322
|
+
sender: {
|
|
2323
|
+
type: "string",
|
|
2324
|
+
format: "did",
|
|
2325
|
+
description: "DID of the subscriber. Ignored if subscriptionUri is provided."
|
|
2326
|
+
},
|
|
2327
|
+
amount: {
|
|
2328
|
+
type: "integer",
|
|
2329
|
+
description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2333
|
+
output: {
|
|
1812
2334
|
encoding: "application/json",
|
|
1813
2335
|
schema: {
|
|
1814
2336
|
type: "object",
|
|
1815
|
-
required: ["
|
|
2337
|
+
required: ["valid"],
|
|
1816
2338
|
properties: {
|
|
1817
|
-
|
|
2339
|
+
valid: {
|
|
2340
|
+
type: "boolean",
|
|
2341
|
+
description: "Whether a sender has an active, verified subscription to the authed recipient"
|
|
2342
|
+
},
|
|
2343
|
+
amount: {
|
|
2344
|
+
type: "integer",
|
|
2345
|
+
description: "Subscription amount in cents"
|
|
2346
|
+
},
|
|
2347
|
+
currency: {
|
|
1818
2348
|
type: "string",
|
|
1819
|
-
|
|
1820
|
-
description: "
|
|
2349
|
+
maxLength: 3,
|
|
2350
|
+
description: "Currency of the subscription"
|
|
1821
2351
|
},
|
|
1822
|
-
|
|
1823
|
-
type: "
|
|
1824
|
-
|
|
2352
|
+
reason: {
|
|
2353
|
+
type: "string",
|
|
2354
|
+
maxLength: 1024,
|
|
2355
|
+
description: "If invalid, reason for rejection"
|
|
1825
2356
|
}
|
|
1826
2357
|
}
|
|
1827
2358
|
}
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
// src/schemas/account/tip/get.json
|
|
2365
|
+
var get_default4 = {
|
|
2366
|
+
lexicon: 1,
|
|
2367
|
+
id: "com.atiproto.account.tip.get",
|
|
2368
|
+
defs: {
|
|
2369
|
+
main: {
|
|
2370
|
+
type: "query",
|
|
2371
|
+
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.",
|
|
2372
|
+
parameters: {
|
|
2373
|
+
type: "params",
|
|
2374
|
+
properties: {
|
|
2375
|
+
uri: {
|
|
2376
|
+
type: "string",
|
|
2377
|
+
format: "at-uri",
|
|
2378
|
+
description: "AT-URI of the tip record. Takes precedence over sender and recordUri."
|
|
2379
|
+
},
|
|
2380
|
+
sender: {
|
|
2381
|
+
type: "string",
|
|
2382
|
+
format: "did",
|
|
2383
|
+
description: "DID of the tip sender. Takes precedence over recordUri."
|
|
2384
|
+
},
|
|
2385
|
+
recordUri: {
|
|
2386
|
+
type: "string",
|
|
2387
|
+
format: "at-uri",
|
|
2388
|
+
description: "AT-URI of the record being tipped. Ignored if uri or sender is provided."
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
1828
2391
|
},
|
|
1829
2392
|
output: {
|
|
1830
2393
|
encoding: "application/json",
|
|
1831
2394
|
schema: {
|
|
1832
2395
|
type: "object",
|
|
1833
|
-
required: ["
|
|
2396
|
+
required: ["tip"],
|
|
1834
2397
|
properties: {
|
|
1835
|
-
|
|
1836
|
-
type: "
|
|
1837
|
-
|
|
1838
|
-
description: "
|
|
1839
|
-
},
|
|
1840
|
-
cid: {
|
|
1841
|
-
type: "string",
|
|
1842
|
-
format: "cid",
|
|
1843
|
-
description: "New CID of the updated record"
|
|
2398
|
+
tip: {
|
|
2399
|
+
type: "ref",
|
|
2400
|
+
ref: "com.atiproto.tip#view",
|
|
2401
|
+
description: "The tip record data"
|
|
1844
2402
|
}
|
|
1845
2403
|
}
|
|
1846
2404
|
}
|
|
@@ -1849,42 +2407,58 @@ var put_default = {
|
|
|
1849
2407
|
}
|
|
1850
2408
|
};
|
|
1851
2409
|
|
|
1852
|
-
// src/schemas/account/
|
|
1853
|
-
var
|
|
2410
|
+
// src/schemas/account/tip/list.json
|
|
2411
|
+
var list_default3 = {
|
|
1854
2412
|
lexicon: 1,
|
|
1855
|
-
id: "com.atiproto.account.
|
|
2413
|
+
id: "com.atiproto.account.tip.list",
|
|
1856
2414
|
defs: {
|
|
1857
2415
|
main: {
|
|
1858
2416
|
type: "query",
|
|
1859
|
-
description: "
|
|
2417
|
+
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.",
|
|
2418
|
+
parameters: {
|
|
2419
|
+
type: "params",
|
|
2420
|
+
properties: {
|
|
2421
|
+
sender: {
|
|
2422
|
+
type: "string",
|
|
2423
|
+
format: "did",
|
|
2424
|
+
description: "Optional: only return tips sent by this DID"
|
|
2425
|
+
},
|
|
2426
|
+
recordUri: {
|
|
2427
|
+
type: "string",
|
|
2428
|
+
format: "at-uri",
|
|
2429
|
+
description: "Optional: only return tips received for this specific record"
|
|
2430
|
+
},
|
|
2431
|
+
cursor: {
|
|
2432
|
+
type: "string",
|
|
2433
|
+
maxLength: 512,
|
|
2434
|
+
description: "Pagination cursor"
|
|
2435
|
+
},
|
|
2436
|
+
limit: {
|
|
2437
|
+
type: "integer",
|
|
2438
|
+
minimum: 1,
|
|
2439
|
+
maximum: 100,
|
|
2440
|
+
default: 50,
|
|
2441
|
+
description: "Results per page (1-100, default: 50)"
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
1860
2445
|
output: {
|
|
1861
2446
|
encoding: "application/json",
|
|
1862
2447
|
schema: {
|
|
1863
2448
|
type: "object",
|
|
1864
|
-
required: ["
|
|
2449
|
+
required: ["tips"],
|
|
1865
2450
|
properties: {
|
|
1866
|
-
|
|
1867
|
-
type: "
|
|
1868
|
-
|
|
1869
|
-
|
|
2451
|
+
tips: {
|
|
2452
|
+
type: "array",
|
|
2453
|
+
items: {
|
|
2454
|
+
type: "ref",
|
|
2455
|
+
ref: "com.atiproto.tip#view"
|
|
2456
|
+
}
|
|
1870
2457
|
},
|
|
1871
|
-
|
|
2458
|
+
cursor: {
|
|
1872
2459
|
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"
|
|
2460
|
+
maxLength: 512,
|
|
2461
|
+
description: "Pagination cursor for next page"
|
|
1888
2462
|
}
|
|
1889
2463
|
}
|
|
1890
2464
|
}
|
|
@@ -1893,31 +2467,35 @@ var get_default2 = {
|
|
|
1893
2467
|
}
|
|
1894
2468
|
};
|
|
1895
2469
|
|
|
1896
|
-
// src/schemas/account/
|
|
1897
|
-
var
|
|
2470
|
+
// src/schemas/account/tip/validate.json
|
|
2471
|
+
var validate_default2 = {
|
|
1898
2472
|
lexicon: 1,
|
|
1899
|
-
id: "com.atiproto.account.
|
|
2473
|
+
id: "com.atiproto.account.tip.validate",
|
|
1900
2474
|
defs: {
|
|
1901
2475
|
main: {
|
|
1902
|
-
type: "
|
|
1903
|
-
description: "
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
2476
|
+
type: "query",
|
|
2477
|
+
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.",
|
|
2478
|
+
parameters: {
|
|
2479
|
+
type: "params",
|
|
2480
|
+
properties: {
|
|
2481
|
+
tipUri: {
|
|
2482
|
+
type: "string",
|
|
2483
|
+
format: "at-uri",
|
|
2484
|
+
description: "AT-URI of a specific tip record. Takes precedence over recordUri and sender."
|
|
2485
|
+
},
|
|
2486
|
+
recordUri: {
|
|
2487
|
+
type: "string",
|
|
2488
|
+
format: "at-uri",
|
|
2489
|
+
description: "AT-URI of the record being tipped. Takes precedence over sender."
|
|
2490
|
+
},
|
|
2491
|
+
sender: {
|
|
2492
|
+
type: "string",
|
|
2493
|
+
format: "did",
|
|
2494
|
+
description: "DID of the tip sender. Ignored if tipUri or recordUri is provided."
|
|
2495
|
+
},
|
|
2496
|
+
amount: {
|
|
2497
|
+
type: "integer",
|
|
2498
|
+
description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
|
|
1921
2499
|
}
|
|
1922
2500
|
}
|
|
1923
2501
|
},
|
|
@@ -1925,36 +2503,25 @@ var put_default2 = {
|
|
|
1925
2503
|
encoding: "application/json",
|
|
1926
2504
|
schema: {
|
|
1927
2505
|
type: "object",
|
|
1928
|
-
required: [
|
|
1929
|
-
"uri",
|
|
1930
|
-
"cid",
|
|
1931
|
-
"profile",
|
|
1932
|
-
"hasProfile",
|
|
1933
|
-
"readyForPayment"
|
|
1934
|
-
],
|
|
2506
|
+
required: ["valid"],
|
|
1935
2507
|
properties: {
|
|
1936
|
-
|
|
1937
|
-
type: "
|
|
1938
|
-
|
|
1939
|
-
description: "Profile record URI"
|
|
1940
|
-
},
|
|
1941
|
-
cid: {
|
|
1942
|
-
type: "string",
|
|
1943
|
-
format: "cid",
|
|
1944
|
-
description: "Profile record CID"
|
|
2508
|
+
valid: {
|
|
2509
|
+
type: "boolean",
|
|
2510
|
+
description: "Whether a sender has completed and verified tip(s) to the authed recipient"
|
|
1945
2511
|
},
|
|
1946
|
-
|
|
1947
|
-
type: "
|
|
1948
|
-
|
|
1949
|
-
description: "The profile record data"
|
|
2512
|
+
amount: {
|
|
2513
|
+
type: "integer",
|
|
2514
|
+
description: "Sum of all verified completed tip amounts in cents"
|
|
1950
2515
|
},
|
|
1951
|
-
|
|
1952
|
-
type: "
|
|
1953
|
-
|
|
2516
|
+
currency: {
|
|
2517
|
+
type: "string",
|
|
2518
|
+
maxLength: 3,
|
|
2519
|
+
description: "Currency of the tips"
|
|
1954
2520
|
},
|
|
1955
|
-
|
|
1956
|
-
type: "
|
|
1957
|
-
|
|
2521
|
+
reason: {
|
|
2522
|
+
type: "string",
|
|
2523
|
+
maxLength: 1024,
|
|
2524
|
+
description: "If invalid, reason for rejection"
|
|
1958
2525
|
}
|
|
1959
2526
|
}
|
|
1960
2527
|
}
|
|
@@ -2027,6 +2594,7 @@ var cart_default = {
|
|
|
2027
2594
|
type: "object",
|
|
2028
2595
|
description: "View of a cart record for use in API responses",
|
|
2029
2596
|
required: [
|
|
2597
|
+
"uri",
|
|
2030
2598
|
"items",
|
|
2031
2599
|
"currency",
|
|
2032
2600
|
"total",
|
|
@@ -2035,6 +2603,11 @@ var cart_default = {
|
|
|
2035
2603
|
"expiresAt"
|
|
2036
2604
|
],
|
|
2037
2605
|
properties: {
|
|
2606
|
+
uri: {
|
|
2607
|
+
type: "string",
|
|
2608
|
+
format: "at-uri",
|
|
2609
|
+
description: "AT-URI of the cart record"
|
|
2610
|
+
},
|
|
2038
2611
|
items: {
|
|
2039
2612
|
type: "array",
|
|
2040
2613
|
items: {
|
|
@@ -2095,7 +2668,7 @@ var cart_default = {
|
|
|
2095
2668
|
};
|
|
2096
2669
|
|
|
2097
2670
|
// src/schemas/feed/list.json
|
|
2098
|
-
var
|
|
2671
|
+
var list_default4 = {
|
|
2099
2672
|
lexicon: 1,
|
|
2100
2673
|
id: "com.atiproto.feed.list",
|
|
2101
2674
|
defs: {
|
|
@@ -2235,6 +2808,10 @@ var create_default2 = {
|
|
|
2235
2808
|
description: "URL to redirect to after checkout completes",
|
|
2236
2809
|
format: "uri",
|
|
2237
2810
|
type: "string"
|
|
2811
|
+
},
|
|
2812
|
+
isPrivate: {
|
|
2813
|
+
description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
|
|
2814
|
+
type: "boolean"
|
|
2238
2815
|
}
|
|
2239
2816
|
},
|
|
2240
2817
|
required: ["subject", "currency", "interval"],
|
|
@@ -2283,7 +2860,7 @@ var create_default2 = {
|
|
|
2283
2860
|
};
|
|
2284
2861
|
|
|
2285
2862
|
// src/schemas/feed/subscription/get.json
|
|
2286
|
-
var
|
|
2863
|
+
var get_default5 = {
|
|
2287
2864
|
defs: {
|
|
2288
2865
|
main: {
|
|
2289
2866
|
description: "Get a specific subscription by URI",
|
|
@@ -2330,7 +2907,7 @@ var get_default3 = {
|
|
|
2330
2907
|
};
|
|
2331
2908
|
|
|
2332
2909
|
// src/schemas/feed/subscription/list.json
|
|
2333
|
-
var
|
|
2910
|
+
var list_default5 = {
|
|
2334
2911
|
lexicon: 1,
|
|
2335
2912
|
id: "com.atiproto.feed.subscription.list",
|
|
2336
2913
|
defs: {
|
|
@@ -2446,6 +3023,64 @@ var put_default3 = {
|
|
|
2446
3023
|
}
|
|
2447
3024
|
};
|
|
2448
3025
|
|
|
3026
|
+
// src/schemas/feed/subscription/validate.json
|
|
3027
|
+
var validate_default3 = {
|
|
3028
|
+
lexicon: 1,
|
|
3029
|
+
id: "com.atiproto.feed.subscription.validate",
|
|
3030
|
+
defs: {
|
|
3031
|
+
main: {
|
|
3032
|
+
type: "query",
|
|
3033
|
+
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.",
|
|
3034
|
+
parameters: {
|
|
3035
|
+
type: "params",
|
|
3036
|
+
properties: {
|
|
3037
|
+
subscriptionUri: {
|
|
3038
|
+
type: "string",
|
|
3039
|
+
format: "at-uri",
|
|
3040
|
+
description: "AT-URI of a specific subscription record. Takes precedence over subject."
|
|
3041
|
+
},
|
|
3042
|
+
subject: {
|
|
3043
|
+
type: "string",
|
|
3044
|
+
format: "did",
|
|
3045
|
+
description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
|
|
3046
|
+
},
|
|
3047
|
+
amount: {
|
|
3048
|
+
type: "integer",
|
|
3049
|
+
description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
output: {
|
|
3054
|
+
encoding: "application/json",
|
|
3055
|
+
schema: {
|
|
3056
|
+
type: "object",
|
|
3057
|
+
required: ["valid"],
|
|
3058
|
+
properties: {
|
|
3059
|
+
valid: {
|
|
3060
|
+
type: "boolean",
|
|
3061
|
+
description: "Whether the authed sender has an active, verified subscription"
|
|
3062
|
+
},
|
|
3063
|
+
amount: {
|
|
3064
|
+
type: "integer",
|
|
3065
|
+
description: "Subscription amount in cents"
|
|
3066
|
+
},
|
|
3067
|
+
currency: {
|
|
3068
|
+
type: "string",
|
|
3069
|
+
maxLength: 3,
|
|
3070
|
+
description: "Currency of the subscription"
|
|
3071
|
+
},
|
|
3072
|
+
reason: {
|
|
3073
|
+
type: "string",
|
|
3074
|
+
maxLength: 1024,
|
|
3075
|
+
description: "If invalid, reason for rejection"
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
};
|
|
3083
|
+
|
|
2449
3084
|
// src/schemas/feed/tip/create.json
|
|
2450
3085
|
var create_default3 = {
|
|
2451
3086
|
lexicon: 1,
|
|
@@ -2494,6 +3129,10 @@ var create_default3 = {
|
|
|
2494
3129
|
description: "Optional message (max 500 chars)",
|
|
2495
3130
|
maxGraphemes: 500,
|
|
2496
3131
|
maxLength: 5e3
|
|
3132
|
+
},
|
|
3133
|
+
isPrivate: {
|
|
3134
|
+
type: "boolean",
|
|
3135
|
+
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
3136
|
}
|
|
2498
3137
|
}
|
|
2499
3138
|
}
|
|
@@ -2537,7 +3176,7 @@ var create_default3 = {
|
|
|
2537
3176
|
};
|
|
2538
3177
|
|
|
2539
3178
|
// src/schemas/feed/tip/get.json
|
|
2540
|
-
var
|
|
3179
|
+
var get_default6 = {
|
|
2541
3180
|
defs: {
|
|
2542
3181
|
main: {
|
|
2543
3182
|
description: "Get a specific tip by URI",
|
|
@@ -2584,7 +3223,7 @@ var get_default4 = {
|
|
|
2584
3223
|
};
|
|
2585
3224
|
|
|
2586
3225
|
// src/schemas/feed/tip/list.json
|
|
2587
|
-
var
|
|
3226
|
+
var list_default6 = {
|
|
2588
3227
|
lexicon: 1,
|
|
2589
3228
|
id: "com.atiproto.feed.tip.list",
|
|
2590
3229
|
defs: {
|
|
@@ -2666,17 +3305,80 @@ var put_default4 = {
|
|
|
2666
3305
|
encoding: "application/json",
|
|
2667
3306
|
schema: {
|
|
2668
3307
|
type: "object",
|
|
2669
|
-
required: ["uri", "cid"],
|
|
3308
|
+
required: ["uri", "cid"],
|
|
3309
|
+
properties: {
|
|
3310
|
+
uri: {
|
|
3311
|
+
type: "string",
|
|
3312
|
+
format: "at-uri",
|
|
3313
|
+
description: "Updated tip record URI"
|
|
3314
|
+
},
|
|
3315
|
+
cid: {
|
|
3316
|
+
type: "string",
|
|
3317
|
+
format: "cid",
|
|
3318
|
+
description: "New CID of the updated record"
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
// src/schemas/feed/tip/validate.json
|
|
3328
|
+
var validate_default4 = {
|
|
3329
|
+
lexicon: 1,
|
|
3330
|
+
id: "com.atiproto.feed.tip.validate",
|
|
3331
|
+
defs: {
|
|
3332
|
+
main: {
|
|
3333
|
+
type: "query",
|
|
3334
|
+
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.",
|
|
3335
|
+
parameters: {
|
|
3336
|
+
type: "params",
|
|
3337
|
+
properties: {
|
|
3338
|
+
tipUri: {
|
|
3339
|
+
type: "string",
|
|
3340
|
+
format: "at-uri",
|
|
3341
|
+
description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
|
|
3342
|
+
},
|
|
3343
|
+
recordUri: {
|
|
3344
|
+
type: "string",
|
|
3345
|
+
format: "at-uri",
|
|
3346
|
+
description: "AT-URI of the record being tipped. Takes precedence over subject."
|
|
3347
|
+
},
|
|
3348
|
+
subject: {
|
|
3349
|
+
type: "string",
|
|
3350
|
+
format: "did",
|
|
3351
|
+
description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
|
|
3352
|
+
},
|
|
3353
|
+
amount: {
|
|
3354
|
+
type: "integer",
|
|
3355
|
+
description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
output: {
|
|
3360
|
+
encoding: "application/json",
|
|
3361
|
+
schema: {
|
|
3362
|
+
type: "object",
|
|
3363
|
+
required: ["valid"],
|
|
2670
3364
|
properties: {
|
|
2671
|
-
|
|
3365
|
+
valid: {
|
|
3366
|
+
type: "boolean",
|
|
3367
|
+
description: "Whether the authed sender has completed and verified tip(s)"
|
|
3368
|
+
},
|
|
3369
|
+
amount: {
|
|
3370
|
+
type: "integer",
|
|
3371
|
+
description: "Sum of all verified completed tip amounts in cents"
|
|
3372
|
+
},
|
|
3373
|
+
currency: {
|
|
2672
3374
|
type: "string",
|
|
2673
|
-
|
|
2674
|
-
description: "
|
|
3375
|
+
maxLength: 3,
|
|
3376
|
+
description: "Currency of the tips"
|
|
2675
3377
|
},
|
|
2676
|
-
|
|
3378
|
+
reason: {
|
|
2677
3379
|
type: "string",
|
|
2678
|
-
|
|
2679
|
-
description: "
|
|
3380
|
+
maxLength: 1024,
|
|
3381
|
+
description: "If invalid, reason for rejection"
|
|
2680
3382
|
}
|
|
2681
3383
|
}
|
|
2682
3384
|
}
|
|
@@ -2726,8 +3428,13 @@ var profile_default = {
|
|
|
2726
3428
|
view: {
|
|
2727
3429
|
type: "object",
|
|
2728
3430
|
description: "View of a user's profile settings for use in API responses",
|
|
2729
|
-
required: ["createdAt"],
|
|
3431
|
+
required: ["uri", "createdAt"],
|
|
2730
3432
|
properties: {
|
|
3433
|
+
uri: {
|
|
3434
|
+
type: "string",
|
|
3435
|
+
format: "at-uri",
|
|
3436
|
+
description: "AT-URI of the profile record"
|
|
3437
|
+
},
|
|
2731
3438
|
acceptsTips: {
|
|
2732
3439
|
type: "boolean",
|
|
2733
3440
|
description: "Whether user accepts tips (default: true)"
|
|
@@ -2756,7 +3463,7 @@ var profile_default = {
|
|
|
2756
3463
|
};
|
|
2757
3464
|
|
|
2758
3465
|
// src/schemas/repo/profile/get.json
|
|
2759
|
-
var
|
|
3466
|
+
var get_default7 = {
|
|
2760
3467
|
lexicon: 1,
|
|
2761
3468
|
id: "com.atiproto.repo.profile.get",
|
|
2762
3469
|
defs: {
|
|
@@ -2797,107 +3504,31 @@ var get_default5 = {
|
|
|
2797
3504
|
}
|
|
2798
3505
|
};
|
|
2799
3506
|
|
|
2800
|
-
// src/schemas/repo/subscription/
|
|
2801
|
-
var
|
|
3507
|
+
// src/schemas/repo/subscription/count.json
|
|
3508
|
+
var count_default = {
|
|
2802
3509
|
lexicon: 1,
|
|
2803
|
-
id: "com.atiproto.repo.subscription.
|
|
3510
|
+
id: "com.atiproto.repo.subscription.count",
|
|
2804
3511
|
defs: {
|
|
2805
3512
|
main: {
|
|
2806
3513
|
type: "query",
|
|
2807
|
-
description: "
|
|
3514
|
+
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
3515
|
parameters: {
|
|
2809
3516
|
type: "params",
|
|
2810
3517
|
properties: {
|
|
2811
3518
|
subject: {
|
|
2812
3519
|
type: "string",
|
|
2813
3520
|
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"
|
|
3521
|
+
description: "DID of the user being subscribed to. If omitted, the query counts subscriptions the authenticated user has active as the subscriber."
|
|
2887
3522
|
},
|
|
2888
|
-
|
|
3523
|
+
startDate: {
|
|
2889
3524
|
type: "string",
|
|
2890
|
-
format: "
|
|
2891
|
-
description: "
|
|
3525
|
+
format: "datetime",
|
|
3526
|
+
description: "Only count subscriptions whose billingStartDate is at or after this timestamp"
|
|
2892
3527
|
},
|
|
2893
|
-
|
|
3528
|
+
endDate: {
|
|
2894
3529
|
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."
|
|
3530
|
+
format: "datetime",
|
|
3531
|
+
description: "Only count subscriptions whose billingStartDate is at or before this timestamp"
|
|
2901
3532
|
}
|
|
2902
3533
|
}
|
|
2903
3534
|
},
|
|
@@ -2905,126 +3536,39 @@ var validate_default = {
|
|
|
2905
3536
|
encoding: "application/json",
|
|
2906
3537
|
schema: {
|
|
2907
3538
|
type: "object",
|
|
2908
|
-
required: ["
|
|
3539
|
+
required: ["count"],
|
|
2909
3540
|
properties: {
|
|
2910
|
-
|
|
2911
|
-
type: "
|
|
2912
|
-
description: "
|
|
3541
|
+
count: {
|
|
3542
|
+
type: "integer",
|
|
3543
|
+
description: "Number of active subscriptions matching the filter"
|
|
2913
3544
|
},
|
|
2914
3545
|
amount: {
|
|
2915
3546
|
type: "integer",
|
|
2916
|
-
description: "
|
|
3547
|
+
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
3548
|
},
|
|
2918
3549
|
currency: {
|
|
2919
3550
|
type: "string",
|
|
2920
3551
|
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"
|
|
3552
|
+
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
3553
|
}
|
|
2984
3554
|
}
|
|
2985
3555
|
}
|
|
2986
3556
|
}
|
|
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
3557
|
}
|
|
3003
3558
|
}
|
|
3004
3559
|
};
|
|
3005
3560
|
|
|
3006
|
-
// src/schemas/repo/tip/
|
|
3007
|
-
var
|
|
3561
|
+
// src/schemas/repo/tip/count.json
|
|
3562
|
+
var count_default2 = {
|
|
3008
3563
|
lexicon: 1,
|
|
3009
|
-
id: "com.atiproto.repo.tip.
|
|
3564
|
+
id: "com.atiproto.repo.tip.count",
|
|
3010
3565
|
defs: {
|
|
3011
3566
|
main: {
|
|
3012
3567
|
type: "query",
|
|
3013
|
-
description: "
|
|
3568
|
+
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
3569
|
parameters: {
|
|
3015
3570
|
type: "params",
|
|
3016
|
-
required: ["sender"],
|
|
3017
3571
|
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
3572
|
recordUri: {
|
|
3029
3573
|
type: "string",
|
|
3030
3574
|
format: "at-uri",
|
|
@@ -3033,11 +3577,17 @@ var validate_default2 = {
|
|
|
3033
3577
|
subject: {
|
|
3034
3578
|
type: "string",
|
|
3035
3579
|
format: "did",
|
|
3036
|
-
description: "DID of the tip recipient. Ignored if
|
|
3580
|
+
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
3581
|
},
|
|
3038
|
-
|
|
3039
|
-
type: "
|
|
3040
|
-
|
|
3582
|
+
startDate: {
|
|
3583
|
+
type: "string",
|
|
3584
|
+
format: "datetime",
|
|
3585
|
+
description: "Only count tips completed at or after this timestamp"
|
|
3586
|
+
},
|
|
3587
|
+
endDate: {
|
|
3588
|
+
type: "string",
|
|
3589
|
+
format: "datetime",
|
|
3590
|
+
description: "Only count tips completed at or before this timestamp"
|
|
3041
3591
|
}
|
|
3042
3592
|
}
|
|
3043
3593
|
},
|
|
@@ -3045,25 +3595,20 @@ var validate_default2 = {
|
|
|
3045
3595
|
encoding: "application/json",
|
|
3046
3596
|
schema: {
|
|
3047
3597
|
type: "object",
|
|
3048
|
-
required: ["
|
|
3598
|
+
required: ["count"],
|
|
3049
3599
|
properties: {
|
|
3050
|
-
|
|
3051
|
-
type: "
|
|
3052
|
-
description: "
|
|
3600
|
+
count: {
|
|
3601
|
+
type: "integer",
|
|
3602
|
+
description: "Number of active (completed) tips matching the filter"
|
|
3053
3603
|
},
|
|
3054
3604
|
amount: {
|
|
3055
3605
|
type: "integer",
|
|
3056
|
-
description: "Sum of all
|
|
3606
|
+
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
3607
|
},
|
|
3058
3608
|
currency: {
|
|
3059
3609
|
type: "string",
|
|
3060
3610
|
maxLength: 3,
|
|
3061
|
-
description: "Currency of the tips"
|
|
3062
|
-
},
|
|
3063
|
-
reason: {
|
|
3064
|
-
type: "string",
|
|
3065
|
-
maxLength: 1024,
|
|
3066
|
-
description: "If invalid, reason for rejection"
|
|
3611
|
+
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
3612
|
}
|
|
3068
3613
|
}
|
|
3069
3614
|
}
|
|
@@ -3104,21 +3649,27 @@ var authEnhanced_default = {
|
|
|
3104
3649
|
"com.atiproto.account.cart.put",
|
|
3105
3650
|
"com.atiproto.account.profile.get",
|
|
3106
3651
|
"com.atiproto.account.profile.put",
|
|
3652
|
+
"com.atiproto.account.subscription.get",
|
|
3653
|
+
"com.atiproto.account.subscription.list",
|
|
3654
|
+
"com.atiproto.account.subscription.validate",
|
|
3655
|
+
"com.atiproto.account.tip.get",
|
|
3656
|
+
"com.atiproto.account.tip.list",
|
|
3657
|
+
"com.atiproto.account.tip.validate",
|
|
3107
3658
|
"com.atiproto.feed.list",
|
|
3108
3659
|
"com.atiproto.feed.subscription.cancel",
|
|
3109
3660
|
"com.atiproto.feed.subscription.create",
|
|
3110
3661
|
"com.atiproto.feed.subscription.get",
|
|
3111
3662
|
"com.atiproto.feed.subscription.list",
|
|
3112
3663
|
"com.atiproto.feed.subscription.put",
|
|
3664
|
+
"com.atiproto.feed.subscription.validate",
|
|
3113
3665
|
"com.atiproto.feed.tip.create",
|
|
3114
3666
|
"com.atiproto.feed.tip.get",
|
|
3115
3667
|
"com.atiproto.feed.tip.list",
|
|
3116
3668
|
"com.atiproto.feed.tip.put",
|
|
3669
|
+
"com.atiproto.feed.tip.validate",
|
|
3117
3670
|
"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"
|
|
3671
|
+
"com.atiproto.repo.subscription.count",
|
|
3672
|
+
"com.atiproto.repo.tip.count"
|
|
3122
3673
|
]
|
|
3123
3674
|
}
|
|
3124
3675
|
]
|
|
@@ -3155,21 +3706,27 @@ var authGeneral_default = {
|
|
|
3155
3706
|
"com.atiproto.account.cart.get",
|
|
3156
3707
|
"com.atiproto.account.cart.list",
|
|
3157
3708
|
"com.atiproto.account.cart.put",
|
|
3709
|
+
"com.atiproto.account.subscription.get",
|
|
3710
|
+
"com.atiproto.account.subscription.list",
|
|
3711
|
+
"com.atiproto.account.subscription.validate",
|
|
3712
|
+
"com.atiproto.account.tip.get",
|
|
3713
|
+
"com.atiproto.account.tip.list",
|
|
3714
|
+
"com.atiproto.account.tip.validate",
|
|
3158
3715
|
"com.atiproto.feed.list",
|
|
3159
3716
|
"com.atiproto.feed.subscription.cancel",
|
|
3160
3717
|
"com.atiproto.feed.subscription.create",
|
|
3161
3718
|
"com.atiproto.feed.subscription.get",
|
|
3162
3719
|
"com.atiproto.feed.subscription.list",
|
|
3163
3720
|
"com.atiproto.feed.subscription.put",
|
|
3721
|
+
"com.atiproto.feed.subscription.validate",
|
|
3164
3722
|
"com.atiproto.feed.tip.create",
|
|
3165
3723
|
"com.atiproto.feed.tip.get",
|
|
3166
3724
|
"com.atiproto.feed.tip.list",
|
|
3167
3725
|
"com.atiproto.feed.tip.put",
|
|
3726
|
+
"com.atiproto.feed.tip.validate",
|
|
3168
3727
|
"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"
|
|
3728
|
+
"com.atiproto.repo.subscription.count",
|
|
3729
|
+
"com.atiproto.repo.tip.count"
|
|
3173
3730
|
]
|
|
3174
3731
|
}
|
|
3175
3732
|
]
|
|
@@ -3250,7 +3807,7 @@ var subscription_default = {
|
|
|
3250
3807
|
type: "object",
|
|
3251
3808
|
description: "View of a subscription record for use in API responses",
|
|
3252
3809
|
required: [
|
|
3253
|
-
"
|
|
3810
|
+
"uri",
|
|
3254
3811
|
"amount",
|
|
3255
3812
|
"currency",
|
|
3256
3813
|
"interval",
|
|
@@ -3259,6 +3816,11 @@ var subscription_default = {
|
|
|
3259
3816
|
"createdAt"
|
|
3260
3817
|
],
|
|
3261
3818
|
properties: {
|
|
3819
|
+
uri: {
|
|
3820
|
+
description: "AT-URI of the subscription record",
|
|
3821
|
+
format: "at-uri",
|
|
3822
|
+
type: "string"
|
|
3823
|
+
},
|
|
3262
3824
|
subject: {
|
|
3263
3825
|
description: "DID of the user being subscribed to",
|
|
3264
3826
|
format: "did",
|
|
@@ -3364,7 +3926,7 @@ var tip_default = {
|
|
|
3364
3926
|
type: "string"
|
|
3365
3927
|
}
|
|
3366
3928
|
},
|
|
3367
|
-
required: ["
|
|
3929
|
+
required: ["amount", "currency", "status", "createdAt"],
|
|
3368
3930
|
type: "object"
|
|
3369
3931
|
},
|
|
3370
3932
|
type: "record"
|
|
@@ -3372,8 +3934,13 @@ var tip_default = {
|
|
|
3372
3934
|
view: {
|
|
3373
3935
|
type: "object",
|
|
3374
3936
|
description: "View of a tip record for use in API responses",
|
|
3375
|
-
required: ["
|
|
3937
|
+
required: ["uri", "amount", "currency", "status", "createdAt"],
|
|
3376
3938
|
properties: {
|
|
3939
|
+
uri: {
|
|
3940
|
+
description: "AT-URI of the tip record",
|
|
3941
|
+
format: "at-uri",
|
|
3942
|
+
type: "string"
|
|
3943
|
+
},
|
|
3377
3944
|
subject: {
|
|
3378
3945
|
description: "DID of the user receiving the tip",
|
|
3379
3946
|
format: "did",
|
|
@@ -3432,23 +3999,29 @@ var schemas = [
|
|
|
3432
3999
|
put_default,
|
|
3433
4000
|
get_default2,
|
|
3434
4001
|
put_default2,
|
|
3435
|
-
|
|
4002
|
+
get_default3,
|
|
3436
4003
|
list_default2,
|
|
4004
|
+
validate_default,
|
|
4005
|
+
get_default4,
|
|
4006
|
+
list_default3,
|
|
4007
|
+
validate_default2,
|
|
4008
|
+
cart_default,
|
|
4009
|
+
list_default4,
|
|
3437
4010
|
cancel_default,
|
|
3438
4011
|
create_default2,
|
|
3439
|
-
|
|
3440
|
-
|
|
4012
|
+
get_default5,
|
|
4013
|
+
list_default5,
|
|
3441
4014
|
put_default3,
|
|
4015
|
+
validate_default3,
|
|
3442
4016
|
create_default3,
|
|
3443
|
-
|
|
3444
|
-
|
|
4017
|
+
get_default6,
|
|
4018
|
+
list_default6,
|
|
3445
4019
|
put_default4,
|
|
4020
|
+
validate_default4,
|
|
3446
4021
|
profile_default,
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
search_default2,
|
|
3451
|
-
validate_default2,
|
|
4022
|
+
get_default7,
|
|
4023
|
+
count_default,
|
|
4024
|
+
count_default2,
|
|
3452
4025
|
authEnhanced_default,
|
|
3453
4026
|
authGeneral_default,
|
|
3454
4027
|
subscription_default,
|