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