@atiproto/lexicons 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +595 -323
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +595 -323
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/authEnhanced.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authEnhanced.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/authGeneral.d.ts +2 -0
- package/dist/lexicons/com/atiproto/authGeneral.defs.d.ts +5 -0
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +12 -12
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +30 -14
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +16 -12
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +6 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +12 -4
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +24 -24
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto.d.ts +2 -0
- package/package.json +8 -1
package/dist/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __export(com_exports, {
|
|
|
35
35
|
var atiproto_exports = {};
|
|
36
36
|
__export(atiproto_exports, {
|
|
37
37
|
account: () => account_exports,
|
|
38
|
+
authEnhanced: () => authEnhanced_exports,
|
|
39
|
+
authGeneral: () => authGeneral_exports,
|
|
38
40
|
cart: () => cart_exports2,
|
|
39
41
|
feed: () => feed_exports,
|
|
40
42
|
profile: () => profile_exports2,
|
|
@@ -110,9 +112,9 @@ var main = import_lex.l.record(
|
|
|
110
112
|
$nsid,
|
|
111
113
|
import_lex.l.object({
|
|
112
114
|
items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
|
|
113
|
-
currency: import_lex.l.string(),
|
|
115
|
+
currency: import_lex.l.string({ maxLength: 3 }),
|
|
114
116
|
total: import_lex.l.integer(),
|
|
115
|
-
status: import_lex.l.
|
|
117
|
+
status: import_lex.l.enum(["open", "completed", "expired", "abandoned"]),
|
|
116
118
|
createdAt: import_lex.l.string({ format: "datetime" }),
|
|
117
119
|
expiresAt: import_lex.l.string({ format: "datetime" }),
|
|
118
120
|
completedAt: import_lex.l.optional(import_lex.l.string({ format: "datetime" }))
|
|
@@ -166,7 +168,7 @@ var main2 = import_lex2.l.record(
|
|
|
166
168
|
subject: import_lex2.l.string({ format: "did" }),
|
|
167
169
|
recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
|
|
168
170
|
amount: import_lex2.l.integer({ minimum: 0 }),
|
|
169
|
-
currency: import_lex2.l.string(),
|
|
171
|
+
currency: import_lex2.l.string({ maxLength: 3 }),
|
|
170
172
|
status: import_lex2.l.enum([
|
|
171
173
|
"pending",
|
|
172
174
|
"authorized",
|
|
@@ -218,9 +220,9 @@ var main3 = import_lex3.l.record(
|
|
|
218
220
|
import_lex3.l.object({
|
|
219
221
|
subject: import_lex3.l.string({ format: "did" }),
|
|
220
222
|
amount: import_lex3.l.integer({ minimum: 0 }),
|
|
221
|
-
currency: import_lex3.l.string(),
|
|
222
|
-
interval: import_lex3.l.
|
|
223
|
-
status: import_lex3.l.
|
|
223
|
+
currency: import_lex3.l.string({ maxLength: 3 }),
|
|
224
|
+
interval: import_lex3.l.enum(["monthly", "yearly"]),
|
|
225
|
+
status: import_lex3.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
|
|
224
226
|
billingStartDate: import_lex3.l.string({ format: "datetime" }),
|
|
225
227
|
cancelledAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
|
|
226
228
|
accessUntil: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
|
|
@@ -294,7 +296,7 @@ var main5 = import_lex5.l.procedure(
|
|
|
294
296
|
$nsid5,
|
|
295
297
|
import_lex5.l.params(),
|
|
296
298
|
import_lex5.l.jsonPayload({
|
|
297
|
-
currency: import_lex5.l.string(),
|
|
299
|
+
currency: import_lex5.l.string({ maxLength: 3 }),
|
|
298
300
|
redirectUrl: import_lex5.l.optional(import_lex5.l.string({ format: "uri" }))
|
|
299
301
|
}),
|
|
300
302
|
import_lex5.l.jsonPayload({
|
|
@@ -379,7 +381,7 @@ var main7 = import_lex7.l.query(
|
|
|
379
381
|
import_lex7.l.params(),
|
|
380
382
|
import_lex7.l.jsonPayload({
|
|
381
383
|
carts: import_lex7.l.array(import_lex7.l.ref((() => cartResponse))),
|
|
382
|
-
cursor: import_lex7.l.optional(import_lex7.l.string())
|
|
384
|
+
cursor: import_lex7.l.optional(import_lex7.l.string({ maxLength: 512 }))
|
|
383
385
|
})
|
|
384
386
|
);
|
|
385
387
|
var $lxm4 = main7.nsid;
|
|
@@ -571,6 +573,125 @@ var $params7 = main11.parameters;
|
|
|
571
573
|
var $input4 = main11.input;
|
|
572
574
|
var $output7 = main11.output;
|
|
573
575
|
|
|
576
|
+
// src/lexicons/com/atiproto/authEnhanced.ts
|
|
577
|
+
var authEnhanced_exports = {};
|
|
578
|
+
__export(authEnhanced_exports, {
|
|
579
|
+
$defs: () => authEnhanced_defs_exports,
|
|
580
|
+
$nsid: () => $nsid12,
|
|
581
|
+
main: () => main12
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// src/lexicons/com/atiproto/authEnhanced.defs.ts
|
|
585
|
+
var authEnhanced_defs_exports = {};
|
|
586
|
+
__export(authEnhanced_defs_exports, {
|
|
587
|
+
$nsid: () => $nsid12,
|
|
588
|
+
main: () => main12
|
|
589
|
+
});
|
|
590
|
+
var import_lex12 = require("@atproto/lex");
|
|
591
|
+
var $nsid12 = "com.atiproto.authEnhanced";
|
|
592
|
+
var main12 = import_lex12.l.permissionSet(
|
|
593
|
+
$nsid12,
|
|
594
|
+
[
|
|
595
|
+
import_lex12.l.permission("repo", {
|
|
596
|
+
collection: [
|
|
597
|
+
"com.atiproto.cart",
|
|
598
|
+
"com.atiproto.subscription",
|
|
599
|
+
"com.atiproto.tip",
|
|
600
|
+
"com.atiproto.profile"
|
|
601
|
+
]
|
|
602
|
+
}),
|
|
603
|
+
import_lex12.l.permission("rpc", {
|
|
604
|
+
inheritAud: true,
|
|
605
|
+
lxm: [
|
|
606
|
+
"com.atiproto.account.cart.clone",
|
|
607
|
+
"com.atiproto.account.cart.create",
|
|
608
|
+
"com.atiproto.account.cart.get",
|
|
609
|
+
"com.atiproto.account.cart.list",
|
|
610
|
+
"com.atiproto.account.cart.put",
|
|
611
|
+
"com.atiproto.account.profile.get",
|
|
612
|
+
"com.atiproto.account.profile.put",
|
|
613
|
+
"com.atiproto.feed.list",
|
|
614
|
+
"com.atiproto.feed.subscription.cancel",
|
|
615
|
+
"com.atiproto.feed.subscription.create",
|
|
616
|
+
"com.atiproto.feed.subscription.get",
|
|
617
|
+
"com.atiproto.feed.subscription.list",
|
|
618
|
+
"com.atiproto.feed.subscription.put",
|
|
619
|
+
"com.atiproto.feed.tip.create",
|
|
620
|
+
"com.atiproto.feed.tip.get",
|
|
621
|
+
"com.atiproto.feed.tip.list",
|
|
622
|
+
"com.atiproto.feed.tip.put",
|
|
623
|
+
"com.atiproto.repo.profile.get",
|
|
624
|
+
"com.atiproto.repo.subscription.search",
|
|
625
|
+
"com.atiproto.repo.subscription.validate",
|
|
626
|
+
"com.atiproto.repo.tip.search",
|
|
627
|
+
"com.atiproto.repo.tip.validate"
|
|
628
|
+
]
|
|
629
|
+
})
|
|
630
|
+
],
|
|
631
|
+
{
|
|
632
|
+
title: "Enhanced Access",
|
|
633
|
+
detail: "Full atiproto access. Extends general access with write access to the profile record and RPC access to all profile endpoints."
|
|
634
|
+
}
|
|
635
|
+
);
|
|
636
|
+
|
|
637
|
+
// src/lexicons/com/atiproto/authGeneral.ts
|
|
638
|
+
var authGeneral_exports = {};
|
|
639
|
+
__export(authGeneral_exports, {
|
|
640
|
+
$defs: () => authGeneral_defs_exports,
|
|
641
|
+
$nsid: () => $nsid13,
|
|
642
|
+
main: () => main13
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
// src/lexicons/com/atiproto/authGeneral.defs.ts
|
|
646
|
+
var authGeneral_defs_exports = {};
|
|
647
|
+
__export(authGeneral_defs_exports, {
|
|
648
|
+
$nsid: () => $nsid13,
|
|
649
|
+
main: () => main13
|
|
650
|
+
});
|
|
651
|
+
var import_lex13 = require("@atproto/lex");
|
|
652
|
+
var $nsid13 = "com.atiproto.authGeneral";
|
|
653
|
+
var main13 = import_lex13.l.permissionSet(
|
|
654
|
+
$nsid13,
|
|
655
|
+
[
|
|
656
|
+
import_lex13.l.permission("repo", {
|
|
657
|
+
collection: [
|
|
658
|
+
"com.atiproto.cart",
|
|
659
|
+
"com.atiproto.subscription",
|
|
660
|
+
"com.atiproto.tip"
|
|
661
|
+
]
|
|
662
|
+
}),
|
|
663
|
+
import_lex13.l.permission("rpc", {
|
|
664
|
+
inheritAud: true,
|
|
665
|
+
lxm: [
|
|
666
|
+
"com.atiproto.account.cart.clone",
|
|
667
|
+
"com.atiproto.account.cart.create",
|
|
668
|
+
"com.atiproto.account.cart.get",
|
|
669
|
+
"com.atiproto.account.cart.list",
|
|
670
|
+
"com.atiproto.account.cart.put",
|
|
671
|
+
"com.atiproto.feed.list",
|
|
672
|
+
"com.atiproto.feed.subscription.cancel",
|
|
673
|
+
"com.atiproto.feed.subscription.create",
|
|
674
|
+
"com.atiproto.feed.subscription.get",
|
|
675
|
+
"com.atiproto.feed.subscription.list",
|
|
676
|
+
"com.atiproto.feed.subscription.put",
|
|
677
|
+
"com.atiproto.feed.tip.create",
|
|
678
|
+
"com.atiproto.feed.tip.get",
|
|
679
|
+
"com.atiproto.feed.tip.list",
|
|
680
|
+
"com.atiproto.feed.tip.put",
|
|
681
|
+
"com.atiproto.repo.profile.get",
|
|
682
|
+
"com.atiproto.repo.subscription.search",
|
|
683
|
+
"com.atiproto.repo.subscription.validate",
|
|
684
|
+
"com.atiproto.repo.tip.search",
|
|
685
|
+
"com.atiproto.repo.tip.validate"
|
|
686
|
+
]
|
|
687
|
+
})
|
|
688
|
+
],
|
|
689
|
+
{
|
|
690
|
+
title: "General Access",
|
|
691
|
+
detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints."
|
|
692
|
+
}
|
|
693
|
+
);
|
|
694
|
+
|
|
574
695
|
// src/lexicons/com/atiproto/cart.ts
|
|
575
696
|
var cart_exports2 = {};
|
|
576
697
|
__export(cart_exports2, {
|
|
@@ -605,44 +726,44 @@ var list_exports2 = {};
|
|
|
605
726
|
__export(list_exports2, {
|
|
606
727
|
$defs: () => list_defs_exports2,
|
|
607
728
|
$lxm: () => $lxm8,
|
|
608
|
-
$nsid: () => $
|
|
729
|
+
$nsid: () => $nsid14,
|
|
609
730
|
$output: () => $output8,
|
|
610
731
|
$params: () => $params8,
|
|
611
|
-
main: () =>
|
|
732
|
+
main: () => main14
|
|
612
733
|
});
|
|
613
734
|
|
|
614
735
|
// src/lexicons/com/atiproto/feed/list.defs.ts
|
|
615
736
|
var list_defs_exports2 = {};
|
|
616
737
|
__export(list_defs_exports2, {
|
|
617
738
|
$lxm: () => $lxm8,
|
|
618
|
-
$nsid: () => $
|
|
739
|
+
$nsid: () => $nsid14,
|
|
619
740
|
$output: () => $output8,
|
|
620
741
|
$params: () => $params8,
|
|
621
|
-
main: () =>
|
|
742
|
+
main: () => main14
|
|
622
743
|
});
|
|
623
|
-
var
|
|
624
|
-
var $
|
|
625
|
-
var
|
|
626
|
-
$
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
items:
|
|
630
|
-
|
|
744
|
+
var import_lex14 = require("@atproto/lex");
|
|
745
|
+
var $nsid14 = "com.atiproto.feed.list";
|
|
746
|
+
var main14 = import_lex14.l.query(
|
|
747
|
+
$nsid14,
|
|
748
|
+
import_lex14.l.params(),
|
|
749
|
+
import_lex14.l.jsonPayload({
|
|
750
|
+
items: import_lex14.l.array(
|
|
751
|
+
import_lex14.l.typedUnion(
|
|
631
752
|
[
|
|
632
|
-
|
|
633
|
-
|
|
753
|
+
import_lex14.l.typedRef((() => main2)),
|
|
754
|
+
import_lex14.l.typedRef(
|
|
634
755
|
(() => main3)
|
|
635
756
|
)
|
|
636
757
|
],
|
|
637
758
|
false
|
|
638
759
|
)
|
|
639
760
|
),
|
|
640
|
-
cursor:
|
|
761
|
+
cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 }))
|
|
641
762
|
})
|
|
642
763
|
);
|
|
643
|
-
var $lxm8 =
|
|
644
|
-
var $params8 =
|
|
645
|
-
var $output8 =
|
|
764
|
+
var $lxm8 = main14.nsid;
|
|
765
|
+
var $params8 = main14.parameters;
|
|
766
|
+
var $output8 = main14.output;
|
|
646
767
|
|
|
647
768
|
// src/lexicons/com/atiproto/feed/subscription.ts
|
|
648
769
|
var subscription_exports = {};
|
|
@@ -660,10 +781,10 @@ __export(cancel_exports, {
|
|
|
660
781
|
$defs: () => cancel_defs_exports,
|
|
661
782
|
$input: () => $input5,
|
|
662
783
|
$lxm: () => $lxm9,
|
|
663
|
-
$nsid: () => $
|
|
784
|
+
$nsid: () => $nsid15,
|
|
664
785
|
$output: () => $output9,
|
|
665
786
|
$params: () => $params9,
|
|
666
|
-
main: () =>
|
|
787
|
+
main: () => main15
|
|
667
788
|
});
|
|
668
789
|
|
|
669
790
|
// src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
|
|
@@ -671,29 +792,29 @@ var cancel_defs_exports = {};
|
|
|
671
792
|
__export(cancel_defs_exports, {
|
|
672
793
|
$input: () => $input5,
|
|
673
794
|
$lxm: () => $lxm9,
|
|
674
|
-
$nsid: () => $
|
|
795
|
+
$nsid: () => $nsid15,
|
|
675
796
|
$output: () => $output9,
|
|
676
797
|
$params: () => $params9,
|
|
677
|
-
main: () =>
|
|
798
|
+
main: () => main15
|
|
678
799
|
});
|
|
679
|
-
var
|
|
680
|
-
var $
|
|
681
|
-
var
|
|
682
|
-
$
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
subscriptionUri:
|
|
687
|
-
subscription:
|
|
800
|
+
var import_lex15 = require("@atproto/lex");
|
|
801
|
+
var $nsid15 = "com.atiproto.feed.subscription.cancel";
|
|
802
|
+
var main15 = import_lex15.l.procedure(
|
|
803
|
+
$nsid15,
|
|
804
|
+
import_lex15.l.params(),
|
|
805
|
+
import_lex15.l.jsonPayload({ subscriptionUri: import_lex15.l.string({ format: "at-uri" }) }),
|
|
806
|
+
import_lex15.l.jsonPayload({
|
|
807
|
+
subscriptionUri: import_lex15.l.string({ format: "at-uri" }),
|
|
808
|
+
subscription: import_lex15.l.ref(
|
|
688
809
|
(() => main3)
|
|
689
810
|
),
|
|
690
|
-
accessUntil:
|
|
811
|
+
accessUntil: import_lex15.l.string({ format: "datetime" })
|
|
691
812
|
})
|
|
692
813
|
);
|
|
693
|
-
var $lxm9 =
|
|
694
|
-
var $params9 =
|
|
695
|
-
var $input5 =
|
|
696
|
-
var $output9 =
|
|
814
|
+
var $lxm9 = main15.nsid;
|
|
815
|
+
var $params9 = main15.parameters;
|
|
816
|
+
var $input5 = main15.input;
|
|
817
|
+
var $output9 = main15.output;
|
|
697
818
|
|
|
698
819
|
// src/lexicons/com/atiproto/feed/subscription/create.ts
|
|
699
820
|
var create_exports2 = {};
|
|
@@ -701,10 +822,10 @@ __export(create_exports2, {
|
|
|
701
822
|
$defs: () => create_defs_exports2,
|
|
702
823
|
$input: () => $input6,
|
|
703
824
|
$lxm: () => $lxm10,
|
|
704
|
-
$nsid: () => $
|
|
825
|
+
$nsid: () => $nsid16,
|
|
705
826
|
$output: () => $output10,
|
|
706
827
|
$params: () => $params10,
|
|
707
|
-
main: () =>
|
|
828
|
+
main: () => main16
|
|
708
829
|
});
|
|
709
830
|
|
|
710
831
|
// src/lexicons/com/atiproto/feed/subscription/create.defs.ts
|
|
@@ -712,83 +833,87 @@ var create_defs_exports2 = {};
|
|
|
712
833
|
__export(create_defs_exports2, {
|
|
713
834
|
$input: () => $input6,
|
|
714
835
|
$lxm: () => $lxm10,
|
|
715
|
-
$nsid: () => $
|
|
836
|
+
$nsid: () => $nsid16,
|
|
716
837
|
$output: () => $output10,
|
|
717
838
|
$params: () => $params10,
|
|
718
|
-
main: () =>
|
|
839
|
+
main: () => main16
|
|
719
840
|
});
|
|
720
|
-
var
|
|
721
|
-
var $
|
|
722
|
-
var
|
|
723
|
-
$
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
subject:
|
|
727
|
-
amount:
|
|
728
|
-
currency:
|
|
729
|
-
interval:
|
|
841
|
+
var import_lex16 = require("@atproto/lex");
|
|
842
|
+
var $nsid16 = "com.atiproto.feed.subscription.create";
|
|
843
|
+
var main16 = import_lex16.l.procedure(
|
|
844
|
+
$nsid16,
|
|
845
|
+
import_lex16.l.params(),
|
|
846
|
+
import_lex16.l.jsonPayload({
|
|
847
|
+
subject: import_lex16.l.string({ format: "did" }),
|
|
848
|
+
amount: import_lex16.l.optional(import_lex16.l.integer()),
|
|
849
|
+
currency: import_lex16.l.string({ maxLength: 3 }),
|
|
850
|
+
interval: import_lex16.l.enum(["monthly", "yearly"]),
|
|
851
|
+
cartUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
|
|
852
|
+
redirectUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
|
|
730
853
|
}),
|
|
731
|
-
|
|
732
|
-
subscriptionUri:
|
|
733
|
-
subscription:
|
|
854
|
+
import_lex16.l.jsonPayload({
|
|
855
|
+
subscriptionUri: import_lex16.l.string({ format: "at-uri" }),
|
|
856
|
+
subscription: import_lex16.l.ref(
|
|
734
857
|
(() => main3)
|
|
735
858
|
),
|
|
736
|
-
cartUri:
|
|
737
|
-
cart:
|
|
738
|
-
|
|
859
|
+
cartUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
|
|
860
|
+
cart: import_lex16.l.optional(
|
|
861
|
+
import_lex16.l.ref((() => main))
|
|
862
|
+
),
|
|
863
|
+
checkoutUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
|
|
739
864
|
})
|
|
740
865
|
);
|
|
741
|
-
var $lxm10 =
|
|
742
|
-
var $params10 =
|
|
743
|
-
var $input6 =
|
|
744
|
-
var $output10 =
|
|
866
|
+
var $lxm10 = main16.nsid;
|
|
867
|
+
var $params10 = main16.parameters;
|
|
868
|
+
var $input6 = main16.input;
|
|
869
|
+
var $output10 = main16.output;
|
|
745
870
|
|
|
746
871
|
// src/lexicons/com/atiproto/feed/subscription/get.ts
|
|
747
872
|
var get_exports3 = {};
|
|
748
873
|
__export(get_exports3, {
|
|
749
874
|
$defs: () => get_defs_exports3,
|
|
750
875
|
$lxm: () => $lxm11,
|
|
751
|
-
$nsid: () => $
|
|
876
|
+
$nsid: () => $nsid17,
|
|
752
877
|
$output: () => $output11,
|
|
753
878
|
$params: () => $params11,
|
|
754
|
-
main: () =>
|
|
879
|
+
main: () => main17
|
|
755
880
|
});
|
|
756
881
|
|
|
757
882
|
// src/lexicons/com/atiproto/feed/subscription/get.defs.ts
|
|
758
883
|
var get_defs_exports3 = {};
|
|
759
884
|
__export(get_defs_exports3, {
|
|
760
885
|
$lxm: () => $lxm11,
|
|
761
|
-
$nsid: () => $
|
|
886
|
+
$nsid: () => $nsid17,
|
|
762
887
|
$output: () => $output11,
|
|
763
888
|
$params: () => $params11,
|
|
764
|
-
main: () =>
|
|
889
|
+
main: () => main17
|
|
765
890
|
});
|
|
766
|
-
var
|
|
767
|
-
var $
|
|
768
|
-
var
|
|
769
|
-
$
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
uri:
|
|
773
|
-
cid:
|
|
774
|
-
record:
|
|
891
|
+
var import_lex17 = require("@atproto/lex");
|
|
892
|
+
var $nsid17 = "com.atiproto.feed.subscription.get";
|
|
893
|
+
var main17 = import_lex17.l.query(
|
|
894
|
+
$nsid17,
|
|
895
|
+
import_lex17.l.params({ uri: import_lex17.l.string({ format: "at-uri" }) }),
|
|
896
|
+
import_lex17.l.jsonPayload({
|
|
897
|
+
uri: import_lex17.l.string({ format: "at-uri" }),
|
|
898
|
+
cid: import_lex17.l.string({ format: "cid" }),
|
|
899
|
+
record: import_lex17.l.ref(
|
|
775
900
|
(() => main3)
|
|
776
901
|
)
|
|
777
902
|
})
|
|
778
903
|
);
|
|
779
|
-
var $lxm11 =
|
|
780
|
-
var $params11 =
|
|
781
|
-
var $output11 =
|
|
904
|
+
var $lxm11 = main17.nsid;
|
|
905
|
+
var $params11 = main17.parameters;
|
|
906
|
+
var $output11 = main17.output;
|
|
782
907
|
|
|
783
908
|
// src/lexicons/com/atiproto/feed/subscription/list.ts
|
|
784
909
|
var list_exports3 = {};
|
|
785
910
|
__export(list_exports3, {
|
|
786
911
|
$defs: () => list_defs_exports3,
|
|
787
912
|
$lxm: () => $lxm12,
|
|
788
|
-
$nsid: () => $
|
|
913
|
+
$nsid: () => $nsid18,
|
|
789
914
|
$output: () => $output12,
|
|
790
915
|
$params: () => $params12,
|
|
791
|
-
main: () =>
|
|
916
|
+
main: () => main18,
|
|
792
917
|
subscriptionResponse: () => subscriptionResponse
|
|
793
918
|
});
|
|
794
919
|
|
|
@@ -796,33 +921,33 @@ __export(list_exports3, {
|
|
|
796
921
|
var list_defs_exports3 = {};
|
|
797
922
|
__export(list_defs_exports3, {
|
|
798
923
|
$lxm: () => $lxm12,
|
|
799
|
-
$nsid: () => $
|
|
924
|
+
$nsid: () => $nsid18,
|
|
800
925
|
$output: () => $output12,
|
|
801
926
|
$params: () => $params12,
|
|
802
|
-
main: () =>
|
|
927
|
+
main: () => main18,
|
|
803
928
|
subscriptionResponse: () => subscriptionResponse
|
|
804
929
|
});
|
|
805
|
-
var
|
|
806
|
-
var $
|
|
807
|
-
var
|
|
808
|
-
$
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
subscriptions:
|
|
812
|
-
|
|
930
|
+
var import_lex18 = require("@atproto/lex");
|
|
931
|
+
var $nsid18 = "com.atiproto.feed.subscription.list";
|
|
932
|
+
var main18 = import_lex18.l.query(
|
|
933
|
+
$nsid18,
|
|
934
|
+
import_lex18.l.params(),
|
|
935
|
+
import_lex18.l.jsonPayload({
|
|
936
|
+
subscriptions: import_lex18.l.array(
|
|
937
|
+
import_lex18.l.ref((() => subscriptionResponse))
|
|
813
938
|
),
|
|
814
|
-
cursor:
|
|
939
|
+
cursor: import_lex18.l.optional(import_lex18.l.string({ maxLength: 512 }))
|
|
815
940
|
})
|
|
816
941
|
);
|
|
817
|
-
var $lxm12 =
|
|
818
|
-
var $params12 =
|
|
819
|
-
var $output12 =
|
|
820
|
-
var subscriptionResponse =
|
|
821
|
-
$
|
|
942
|
+
var $lxm12 = main18.nsid;
|
|
943
|
+
var $params12 = main18.parameters;
|
|
944
|
+
var $output12 = main18.output;
|
|
945
|
+
var subscriptionResponse = import_lex18.l.typedObject(
|
|
946
|
+
$nsid18,
|
|
822
947
|
"subscriptionResponse",
|
|
823
|
-
|
|
824
|
-
uri:
|
|
825
|
-
record:
|
|
948
|
+
import_lex18.l.object({
|
|
949
|
+
uri: import_lex18.l.string({ format: "at-uri" }),
|
|
950
|
+
record: import_lex18.l.ref(
|
|
826
951
|
(() => main3)
|
|
827
952
|
)
|
|
828
953
|
})
|
|
@@ -834,10 +959,10 @@ __export(put_exports3, {
|
|
|
834
959
|
$defs: () => put_defs_exports3,
|
|
835
960
|
$input: () => $input7,
|
|
836
961
|
$lxm: () => $lxm13,
|
|
837
|
-
$nsid: () => $
|
|
962
|
+
$nsid: () => $nsid19,
|
|
838
963
|
$output: () => $output13,
|
|
839
964
|
$params: () => $params13,
|
|
840
|
-
main: () =>
|
|
965
|
+
main: () => main19
|
|
841
966
|
});
|
|
842
967
|
|
|
843
968
|
// src/lexicons/com/atiproto/feed/subscription/put.defs.ts
|
|
@@ -845,31 +970,31 @@ var put_defs_exports3 = {};
|
|
|
845
970
|
__export(put_defs_exports3, {
|
|
846
971
|
$input: () => $input7,
|
|
847
972
|
$lxm: () => $lxm13,
|
|
848
|
-
$nsid: () => $
|
|
973
|
+
$nsid: () => $nsid19,
|
|
849
974
|
$output: () => $output13,
|
|
850
975
|
$params: () => $params13,
|
|
851
|
-
main: () =>
|
|
976
|
+
main: () => main19
|
|
852
977
|
});
|
|
853
|
-
var
|
|
854
|
-
var $
|
|
855
|
-
var
|
|
856
|
-
$
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
uri:
|
|
860
|
-
record:
|
|
978
|
+
var import_lex19 = require("@atproto/lex");
|
|
979
|
+
var $nsid19 = "com.atiproto.feed.subscription.put";
|
|
980
|
+
var main19 = import_lex19.l.procedure(
|
|
981
|
+
$nsid19,
|
|
982
|
+
import_lex19.l.params(),
|
|
983
|
+
import_lex19.l.jsonPayload({
|
|
984
|
+
uri: import_lex19.l.string({ format: "at-uri" }),
|
|
985
|
+
record: import_lex19.l.ref(
|
|
861
986
|
(() => main3)
|
|
862
987
|
)
|
|
863
988
|
}),
|
|
864
|
-
|
|
865
|
-
uri:
|
|
866
|
-
cid:
|
|
989
|
+
import_lex19.l.jsonPayload({
|
|
990
|
+
uri: import_lex19.l.string({ format: "at-uri" }),
|
|
991
|
+
cid: import_lex19.l.string({ format: "cid" })
|
|
867
992
|
})
|
|
868
993
|
);
|
|
869
|
-
var $lxm13 =
|
|
870
|
-
var $params13 =
|
|
871
|
-
var $input7 =
|
|
872
|
-
var $output13 =
|
|
994
|
+
var $lxm13 = main19.nsid;
|
|
995
|
+
var $params13 = main19.parameters;
|
|
996
|
+
var $input7 = main19.input;
|
|
997
|
+
var $output13 = main19.output;
|
|
873
998
|
|
|
874
999
|
// src/lexicons/com/atiproto/feed/tip.ts
|
|
875
1000
|
var tip_exports = {};
|
|
@@ -886,10 +1011,10 @@ __export(create_exports3, {
|
|
|
886
1011
|
$defs: () => create_defs_exports3,
|
|
887
1012
|
$input: () => $input8,
|
|
888
1013
|
$lxm: () => $lxm14,
|
|
889
|
-
$nsid: () => $
|
|
1014
|
+
$nsid: () => $nsid20,
|
|
890
1015
|
$output: () => $output14,
|
|
891
1016
|
$params: () => $params14,
|
|
892
|
-
main: () =>
|
|
1017
|
+
main: () => main20
|
|
893
1018
|
});
|
|
894
1019
|
|
|
895
1020
|
// src/lexicons/com/atiproto/feed/tip/create.defs.ts
|
|
@@ -897,106 +1022,108 @@ var create_defs_exports3 = {};
|
|
|
897
1022
|
__export(create_defs_exports3, {
|
|
898
1023
|
$input: () => $input8,
|
|
899
1024
|
$lxm: () => $lxm14,
|
|
900
|
-
$nsid: () => $
|
|
1025
|
+
$nsid: () => $nsid20,
|
|
901
1026
|
$output: () => $output14,
|
|
902
1027
|
$params: () => $params14,
|
|
903
|
-
main: () =>
|
|
1028
|
+
main: () => main20
|
|
904
1029
|
});
|
|
905
|
-
var
|
|
906
|
-
var $
|
|
907
|
-
var
|
|
908
|
-
$
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
subject:
|
|
912
|
-
recordUri:
|
|
913
|
-
amount:
|
|
914
|
-
currency:
|
|
915
|
-
cartUri:
|
|
916
|
-
redirectUrl:
|
|
917
|
-
message:
|
|
1030
|
+
var import_lex20 = require("@atproto/lex");
|
|
1031
|
+
var $nsid20 = "com.atiproto.feed.tip.create";
|
|
1032
|
+
var main20 = import_lex20.l.procedure(
|
|
1033
|
+
$nsid20,
|
|
1034
|
+
import_lex20.l.params(),
|
|
1035
|
+
import_lex20.l.jsonPayload({
|
|
1036
|
+
subject: import_lex20.l.string({ format: "did" }),
|
|
1037
|
+
recordUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
|
|
1038
|
+
amount: import_lex20.l.integer(),
|
|
1039
|
+
currency: import_lex20.l.string({ maxLength: 3 }),
|
|
1040
|
+
cartUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
|
|
1041
|
+
redirectUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" })),
|
|
1042
|
+
message: import_lex20.l.optional(import_lex20.l.string({ maxGraphemes: 500, maxLength: 5e3 }))
|
|
918
1043
|
}),
|
|
919
|
-
|
|
920
|
-
tipUri:
|
|
921
|
-
tip:
|
|
922
|
-
cartUri:
|
|
923
|
-
cart:
|
|
924
|
-
|
|
1044
|
+
import_lex20.l.jsonPayload({
|
|
1045
|
+
tipUri: import_lex20.l.string({ format: "at-uri" }),
|
|
1046
|
+
tip: import_lex20.l.ref((() => main2)),
|
|
1047
|
+
cartUri: import_lex20.l.optional(import_lex20.l.string({ format: "at-uri" })),
|
|
1048
|
+
cart: import_lex20.l.optional(
|
|
1049
|
+
import_lex20.l.ref((() => main))
|
|
1050
|
+
),
|
|
1051
|
+
checkoutUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" }))
|
|
925
1052
|
})
|
|
926
1053
|
);
|
|
927
|
-
var $lxm14 =
|
|
928
|
-
var $params14 =
|
|
929
|
-
var $input8 =
|
|
930
|
-
var $output14 =
|
|
1054
|
+
var $lxm14 = main20.nsid;
|
|
1055
|
+
var $params14 = main20.parameters;
|
|
1056
|
+
var $input8 = main20.input;
|
|
1057
|
+
var $output14 = main20.output;
|
|
931
1058
|
|
|
932
1059
|
// src/lexicons/com/atiproto/feed/tip/get.ts
|
|
933
1060
|
var get_exports4 = {};
|
|
934
1061
|
__export(get_exports4, {
|
|
935
1062
|
$defs: () => get_defs_exports4,
|
|
936
1063
|
$lxm: () => $lxm15,
|
|
937
|
-
$nsid: () => $
|
|
1064
|
+
$nsid: () => $nsid21,
|
|
938
1065
|
$output: () => $output15,
|
|
939
1066
|
$params: () => $params15,
|
|
940
|
-
main: () =>
|
|
1067
|
+
main: () => main21
|
|
941
1068
|
});
|
|
942
1069
|
|
|
943
1070
|
// src/lexicons/com/atiproto/feed/tip/get.defs.ts
|
|
944
1071
|
var get_defs_exports4 = {};
|
|
945
1072
|
__export(get_defs_exports4, {
|
|
946
1073
|
$lxm: () => $lxm15,
|
|
947
|
-
$nsid: () => $
|
|
1074
|
+
$nsid: () => $nsid21,
|
|
948
1075
|
$output: () => $output15,
|
|
949
1076
|
$params: () => $params15,
|
|
950
|
-
main: () =>
|
|
1077
|
+
main: () => main21
|
|
951
1078
|
});
|
|
952
|
-
var
|
|
953
|
-
var $
|
|
954
|
-
var
|
|
955
|
-
$
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
uri:
|
|
959
|
-
cid:
|
|
960
|
-
value:
|
|
1079
|
+
var import_lex21 = require("@atproto/lex");
|
|
1080
|
+
var $nsid21 = "com.atiproto.feed.tip.get";
|
|
1081
|
+
var main21 = import_lex21.l.query(
|
|
1082
|
+
$nsid21,
|
|
1083
|
+
import_lex21.l.params({ uri: import_lex21.l.string({ format: "at-uri" }) }),
|
|
1084
|
+
import_lex21.l.jsonPayload({
|
|
1085
|
+
uri: import_lex21.l.string({ format: "at-uri" }),
|
|
1086
|
+
cid: import_lex21.l.string({ format: "cid" }),
|
|
1087
|
+
value: import_lex21.l.ref((() => main2))
|
|
961
1088
|
})
|
|
962
1089
|
);
|
|
963
|
-
var $lxm15 =
|
|
964
|
-
var $params15 =
|
|
965
|
-
var $output15 =
|
|
1090
|
+
var $lxm15 = main21.nsid;
|
|
1091
|
+
var $params15 = main21.parameters;
|
|
1092
|
+
var $output15 = main21.output;
|
|
966
1093
|
|
|
967
1094
|
// src/lexicons/com/atiproto/feed/tip/list.ts
|
|
968
1095
|
var list_exports4 = {};
|
|
969
1096
|
__export(list_exports4, {
|
|
970
1097
|
$defs: () => list_defs_exports4,
|
|
971
1098
|
$lxm: () => $lxm16,
|
|
972
|
-
$nsid: () => $
|
|
1099
|
+
$nsid: () => $nsid22,
|
|
973
1100
|
$output: () => $output16,
|
|
974
1101
|
$params: () => $params16,
|
|
975
|
-
main: () =>
|
|
1102
|
+
main: () => main22
|
|
976
1103
|
});
|
|
977
1104
|
|
|
978
1105
|
// src/lexicons/com/atiproto/feed/tip/list.defs.ts
|
|
979
1106
|
var list_defs_exports4 = {};
|
|
980
1107
|
__export(list_defs_exports4, {
|
|
981
1108
|
$lxm: () => $lxm16,
|
|
982
|
-
$nsid: () => $
|
|
1109
|
+
$nsid: () => $nsid22,
|
|
983
1110
|
$output: () => $output16,
|
|
984
1111
|
$params: () => $params16,
|
|
985
|
-
main: () =>
|
|
1112
|
+
main: () => main22
|
|
986
1113
|
});
|
|
987
|
-
var
|
|
988
|
-
var $
|
|
989
|
-
var
|
|
990
|
-
$
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
records:
|
|
994
|
-
cursor:
|
|
1114
|
+
var import_lex22 = require("@atproto/lex");
|
|
1115
|
+
var $nsid22 = "com.atiproto.feed.tip.list";
|
|
1116
|
+
var main22 = import_lex22.l.query(
|
|
1117
|
+
$nsid22,
|
|
1118
|
+
import_lex22.l.params(),
|
|
1119
|
+
import_lex22.l.jsonPayload({
|
|
1120
|
+
records: import_lex22.l.array(import_lex22.l.ref((() => main2))),
|
|
1121
|
+
cursor: import_lex22.l.optional(import_lex22.l.string({ maxLength: 512 }))
|
|
995
1122
|
})
|
|
996
1123
|
);
|
|
997
|
-
var $lxm16 =
|
|
998
|
-
var $params16 =
|
|
999
|
-
var $output16 =
|
|
1124
|
+
var $lxm16 = main22.nsid;
|
|
1125
|
+
var $params16 = main22.parameters;
|
|
1126
|
+
var $output16 = main22.output;
|
|
1000
1127
|
|
|
1001
1128
|
// src/lexicons/com/atiproto/feed/tip/put.ts
|
|
1002
1129
|
var put_exports4 = {};
|
|
@@ -1004,10 +1131,10 @@ __export(put_exports4, {
|
|
|
1004
1131
|
$defs: () => put_defs_exports4,
|
|
1005
1132
|
$input: () => $input9,
|
|
1006
1133
|
$lxm: () => $lxm17,
|
|
1007
|
-
$nsid: () => $
|
|
1134
|
+
$nsid: () => $nsid23,
|
|
1008
1135
|
$output: () => $output17,
|
|
1009
1136
|
$params: () => $params17,
|
|
1010
|
-
main: () =>
|
|
1137
|
+
main: () => main23
|
|
1011
1138
|
});
|
|
1012
1139
|
|
|
1013
1140
|
// src/lexicons/com/atiproto/feed/tip/put.defs.ts
|
|
@@ -1015,29 +1142,29 @@ var put_defs_exports4 = {};
|
|
|
1015
1142
|
__export(put_defs_exports4, {
|
|
1016
1143
|
$input: () => $input9,
|
|
1017
1144
|
$lxm: () => $lxm17,
|
|
1018
|
-
$nsid: () => $
|
|
1145
|
+
$nsid: () => $nsid23,
|
|
1019
1146
|
$output: () => $output17,
|
|
1020
1147
|
$params: () => $params17,
|
|
1021
|
-
main: () =>
|
|
1148
|
+
main: () => main23
|
|
1022
1149
|
});
|
|
1023
|
-
var
|
|
1024
|
-
var $
|
|
1025
|
-
var
|
|
1026
|
-
$
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
uri:
|
|
1030
|
-
record:
|
|
1150
|
+
var import_lex23 = require("@atproto/lex");
|
|
1151
|
+
var $nsid23 = "com.atiproto.feed.tip.put";
|
|
1152
|
+
var main23 = import_lex23.l.procedure(
|
|
1153
|
+
$nsid23,
|
|
1154
|
+
import_lex23.l.params(),
|
|
1155
|
+
import_lex23.l.jsonPayload({
|
|
1156
|
+
uri: import_lex23.l.string({ format: "at-uri" }),
|
|
1157
|
+
record: import_lex23.l.ref((() => main2))
|
|
1031
1158
|
}),
|
|
1032
|
-
|
|
1033
|
-
uri:
|
|
1034
|
-
cid:
|
|
1159
|
+
import_lex23.l.jsonPayload({
|
|
1160
|
+
uri: import_lex23.l.string({ format: "at-uri" }),
|
|
1161
|
+
cid: import_lex23.l.string({ format: "cid" })
|
|
1035
1162
|
})
|
|
1036
1163
|
);
|
|
1037
|
-
var $lxm17 =
|
|
1038
|
-
var $params17 =
|
|
1039
|
-
var $input9 =
|
|
1040
|
-
var $output17 =
|
|
1164
|
+
var $lxm17 = main23.nsid;
|
|
1165
|
+
var $params17 = main23.parameters;
|
|
1166
|
+
var $input9 = main23.input;
|
|
1167
|
+
var $output17 = main23.output;
|
|
1041
1168
|
|
|
1042
1169
|
// src/lexicons/com/atiproto/profile.ts
|
|
1043
1170
|
var profile_exports2 = {};
|
|
@@ -1078,34 +1205,34 @@ var get_exports5 = {};
|
|
|
1078
1205
|
__export(get_exports5, {
|
|
1079
1206
|
$defs: () => get_defs_exports5,
|
|
1080
1207
|
$lxm: () => $lxm18,
|
|
1081
|
-
$nsid: () => $
|
|
1208
|
+
$nsid: () => $nsid24,
|
|
1082
1209
|
$output: () => $output18,
|
|
1083
1210
|
$params: () => $params18,
|
|
1084
|
-
main: () =>
|
|
1211
|
+
main: () => main24
|
|
1085
1212
|
});
|
|
1086
1213
|
|
|
1087
1214
|
// src/lexicons/com/atiproto/repo/profile/get.defs.ts
|
|
1088
1215
|
var get_defs_exports5 = {};
|
|
1089
1216
|
__export(get_defs_exports5, {
|
|
1090
1217
|
$lxm: () => $lxm18,
|
|
1091
|
-
$nsid: () => $
|
|
1218
|
+
$nsid: () => $nsid24,
|
|
1092
1219
|
$output: () => $output18,
|
|
1093
1220
|
$params: () => $params18,
|
|
1094
|
-
main: () =>
|
|
1221
|
+
main: () => main24
|
|
1095
1222
|
});
|
|
1096
|
-
var
|
|
1097
|
-
var $
|
|
1098
|
-
var
|
|
1099
|
-
$
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
did:
|
|
1103
|
-
profile:
|
|
1223
|
+
var import_lex24 = require("@atproto/lex");
|
|
1224
|
+
var $nsid24 = "com.atiproto.repo.profile.get";
|
|
1225
|
+
var main24 = import_lex24.l.query(
|
|
1226
|
+
$nsid24,
|
|
1227
|
+
import_lex24.l.params({ did: import_lex24.l.string({ format: "did" }) }),
|
|
1228
|
+
import_lex24.l.jsonPayload({
|
|
1229
|
+
did: import_lex24.l.string({ format: "did" }),
|
|
1230
|
+
profile: import_lex24.l.ref((() => main9))
|
|
1104
1231
|
})
|
|
1105
1232
|
);
|
|
1106
|
-
var $lxm18 =
|
|
1107
|
-
var $params18 =
|
|
1108
|
-
var $output18 =
|
|
1233
|
+
var $lxm18 = main24.nsid;
|
|
1234
|
+
var $params18 = main24.parameters;
|
|
1235
|
+
var $output18 = main24.output;
|
|
1109
1236
|
|
|
1110
1237
|
// src/lexicons/com/atiproto/repo/subscription.ts
|
|
1111
1238
|
var subscription_exports2 = {};
|
|
@@ -1119,10 +1246,10 @@ var search_exports = {};
|
|
|
1119
1246
|
__export(search_exports, {
|
|
1120
1247
|
$defs: () => search_defs_exports,
|
|
1121
1248
|
$lxm: () => $lxm19,
|
|
1122
|
-
$nsid: () => $
|
|
1249
|
+
$nsid: () => $nsid25,
|
|
1123
1250
|
$output: () => $output19,
|
|
1124
1251
|
$params: () => $params19,
|
|
1125
|
-
main: () =>
|
|
1252
|
+
main: () => main25,
|
|
1126
1253
|
subscriptionResponse: () => subscriptionResponse2
|
|
1127
1254
|
});
|
|
1128
1255
|
|
|
@@ -1130,39 +1257,39 @@ __export(search_exports, {
|
|
|
1130
1257
|
var search_defs_exports = {};
|
|
1131
1258
|
__export(search_defs_exports, {
|
|
1132
1259
|
$lxm: () => $lxm19,
|
|
1133
|
-
$nsid: () => $
|
|
1260
|
+
$nsid: () => $nsid25,
|
|
1134
1261
|
$output: () => $output19,
|
|
1135
1262
|
$params: () => $params19,
|
|
1136
|
-
main: () =>
|
|
1263
|
+
main: () => main25,
|
|
1137
1264
|
subscriptionResponse: () => subscriptionResponse2
|
|
1138
1265
|
});
|
|
1139
|
-
var
|
|
1140
|
-
var $
|
|
1141
|
-
var
|
|
1142
|
-
$
|
|
1143
|
-
|
|
1144
|
-
subject:
|
|
1145
|
-
cursor:
|
|
1146
|
-
limit:
|
|
1147
|
-
|
|
1266
|
+
var import_lex25 = require("@atproto/lex");
|
|
1267
|
+
var $nsid25 = "com.atiproto.repo.subscription.search";
|
|
1268
|
+
var main25 = import_lex25.l.query(
|
|
1269
|
+
$nsid25,
|
|
1270
|
+
import_lex25.l.params({
|
|
1271
|
+
subject: import_lex25.l.string({ format: "did" }),
|
|
1272
|
+
cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 })),
|
|
1273
|
+
limit: import_lex25.l.optional(
|
|
1274
|
+
import_lex25.l.withDefault(import_lex25.l.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1148
1275
|
)
|
|
1149
1276
|
}),
|
|
1150
|
-
|
|
1151
|
-
subscriptions:
|
|
1152
|
-
|
|
1277
|
+
import_lex25.l.jsonPayload({
|
|
1278
|
+
subscriptions: import_lex25.l.array(
|
|
1279
|
+
import_lex25.l.ref((() => subscriptionResponse2))
|
|
1153
1280
|
),
|
|
1154
|
-
cursor:
|
|
1281
|
+
cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 }))
|
|
1155
1282
|
})
|
|
1156
1283
|
);
|
|
1157
|
-
var $lxm19 =
|
|
1158
|
-
var $params19 =
|
|
1159
|
-
var $output19 =
|
|
1160
|
-
var subscriptionResponse2 =
|
|
1161
|
-
$
|
|
1284
|
+
var $lxm19 = main25.nsid;
|
|
1285
|
+
var $params19 = main25.parameters;
|
|
1286
|
+
var $output19 = main25.output;
|
|
1287
|
+
var subscriptionResponse2 = import_lex25.l.typedObject(
|
|
1288
|
+
$nsid25,
|
|
1162
1289
|
"subscriptionResponse",
|
|
1163
|
-
|
|
1164
|
-
uri:
|
|
1165
|
-
record:
|
|
1290
|
+
import_lex25.l.object({
|
|
1291
|
+
uri: import_lex25.l.string({ format: "at-uri" }),
|
|
1292
|
+
record: import_lex25.l.ref(
|
|
1166
1293
|
(() => main3)
|
|
1167
1294
|
)
|
|
1168
1295
|
})
|
|
@@ -1173,41 +1300,41 @@ var validate_exports = {};
|
|
|
1173
1300
|
__export(validate_exports, {
|
|
1174
1301
|
$defs: () => validate_defs_exports,
|
|
1175
1302
|
$lxm: () => $lxm20,
|
|
1176
|
-
$nsid: () => $
|
|
1303
|
+
$nsid: () => $nsid26,
|
|
1177
1304
|
$output: () => $output20,
|
|
1178
1305
|
$params: () => $params20,
|
|
1179
|
-
main: () =>
|
|
1306
|
+
main: () => main26
|
|
1180
1307
|
});
|
|
1181
1308
|
|
|
1182
1309
|
// src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
|
|
1183
1310
|
var validate_defs_exports = {};
|
|
1184
1311
|
__export(validate_defs_exports, {
|
|
1185
1312
|
$lxm: () => $lxm20,
|
|
1186
|
-
$nsid: () => $
|
|
1313
|
+
$nsid: () => $nsid26,
|
|
1187
1314
|
$output: () => $output20,
|
|
1188
1315
|
$params: () => $params20,
|
|
1189
|
-
main: () =>
|
|
1316
|
+
main: () => main26
|
|
1190
1317
|
});
|
|
1191
|
-
var
|
|
1192
|
-
var $
|
|
1193
|
-
var
|
|
1194
|
-
$
|
|
1195
|
-
|
|
1196
|
-
sender:
|
|
1197
|
-
subscriptionUri:
|
|
1198
|
-
subject:
|
|
1199
|
-
amount:
|
|
1318
|
+
var import_lex26 = require("@atproto/lex");
|
|
1319
|
+
var $nsid26 = "com.atiproto.repo.subscription.validate";
|
|
1320
|
+
var main26 = import_lex26.l.query(
|
|
1321
|
+
$nsid26,
|
|
1322
|
+
import_lex26.l.params({
|
|
1323
|
+
sender: import_lex26.l.string({ format: "did" }),
|
|
1324
|
+
subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
|
|
1325
|
+
subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
|
|
1326
|
+
amount: import_lex26.l.optional(import_lex26.l.integer())
|
|
1200
1327
|
}),
|
|
1201
|
-
|
|
1202
|
-
valid:
|
|
1203
|
-
amount:
|
|
1204
|
-
currency:
|
|
1205
|
-
reason:
|
|
1328
|
+
import_lex26.l.jsonPayload({
|
|
1329
|
+
valid: import_lex26.l.boolean(),
|
|
1330
|
+
amount: import_lex26.l.optional(import_lex26.l.integer()),
|
|
1331
|
+
currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
|
|
1332
|
+
reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
|
|
1206
1333
|
})
|
|
1207
1334
|
);
|
|
1208
|
-
var $lxm20 =
|
|
1209
|
-
var $params20 =
|
|
1210
|
-
var $output20 =
|
|
1335
|
+
var $lxm20 = main26.nsid;
|
|
1336
|
+
var $params20 = main26.parameters;
|
|
1337
|
+
var $output20 = main26.output;
|
|
1211
1338
|
|
|
1212
1339
|
// src/lexicons/com/atiproto/repo/tip.ts
|
|
1213
1340
|
var tip_exports2 = {};
|
|
@@ -1221,10 +1348,10 @@ var search_exports2 = {};
|
|
|
1221
1348
|
__export(search_exports2, {
|
|
1222
1349
|
$defs: () => search_defs_exports2,
|
|
1223
1350
|
$lxm: () => $lxm21,
|
|
1224
|
-
$nsid: () => $
|
|
1351
|
+
$nsid: () => $nsid27,
|
|
1225
1352
|
$output: () => $output21,
|
|
1226
1353
|
$params: () => $params21,
|
|
1227
|
-
main: () =>
|
|
1354
|
+
main: () => main27,
|
|
1228
1355
|
tipResponse: () => tipResponse
|
|
1229
1356
|
});
|
|
1230
1357
|
|
|
@@ -1232,37 +1359,37 @@ __export(search_exports2, {
|
|
|
1232
1359
|
var search_defs_exports2 = {};
|
|
1233
1360
|
__export(search_defs_exports2, {
|
|
1234
1361
|
$lxm: () => $lxm21,
|
|
1235
|
-
$nsid: () => $
|
|
1362
|
+
$nsid: () => $nsid27,
|
|
1236
1363
|
$output: () => $output21,
|
|
1237
1364
|
$params: () => $params21,
|
|
1238
|
-
main: () =>
|
|
1365
|
+
main: () => main27,
|
|
1239
1366
|
tipResponse: () => tipResponse
|
|
1240
1367
|
});
|
|
1241
|
-
var
|
|
1242
|
-
var $
|
|
1243
|
-
var
|
|
1244
|
-
$
|
|
1245
|
-
|
|
1246
|
-
subject:
|
|
1247
|
-
cursor:
|
|
1248
|
-
limit:
|
|
1249
|
-
|
|
1368
|
+
var import_lex27 = require("@atproto/lex");
|
|
1369
|
+
var $nsid27 = "com.atiproto.repo.tip.search";
|
|
1370
|
+
var main27 = import_lex27.l.query(
|
|
1371
|
+
$nsid27,
|
|
1372
|
+
import_lex27.l.params({
|
|
1373
|
+
subject: import_lex27.l.string({ format: "did" }),
|
|
1374
|
+
cursor: import_lex27.l.optional(import_lex27.l.string({ maxLength: 512 })),
|
|
1375
|
+
limit: import_lex27.l.optional(
|
|
1376
|
+
import_lex27.l.withDefault(import_lex27.l.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1250
1377
|
)
|
|
1251
1378
|
}),
|
|
1252
|
-
|
|
1253
|
-
tips:
|
|
1254
|
-
cursor:
|
|
1379
|
+
import_lex27.l.jsonPayload({
|
|
1380
|
+
tips: import_lex27.l.array(import_lex27.l.ref((() => tipResponse))),
|
|
1381
|
+
cursor: import_lex27.l.optional(import_lex27.l.string({ maxLength: 512 }))
|
|
1255
1382
|
})
|
|
1256
1383
|
);
|
|
1257
|
-
var $lxm21 =
|
|
1258
|
-
var $params21 =
|
|
1259
|
-
var $output21 =
|
|
1260
|
-
var tipResponse =
|
|
1261
|
-
$
|
|
1384
|
+
var $lxm21 = main27.nsid;
|
|
1385
|
+
var $params21 = main27.parameters;
|
|
1386
|
+
var $output21 = main27.output;
|
|
1387
|
+
var tipResponse = import_lex27.l.typedObject(
|
|
1388
|
+
$nsid27,
|
|
1262
1389
|
"tipResponse",
|
|
1263
|
-
|
|
1264
|
-
uri:
|
|
1265
|
-
record:
|
|
1390
|
+
import_lex27.l.object({
|
|
1391
|
+
uri: import_lex27.l.string({ format: "at-uri" }),
|
|
1392
|
+
record: import_lex27.l.ref((() => main2))
|
|
1266
1393
|
})
|
|
1267
1394
|
);
|
|
1268
1395
|
|
|
@@ -1271,42 +1398,42 @@ var validate_exports2 = {};
|
|
|
1271
1398
|
__export(validate_exports2, {
|
|
1272
1399
|
$defs: () => validate_defs_exports2,
|
|
1273
1400
|
$lxm: () => $lxm22,
|
|
1274
|
-
$nsid: () => $
|
|
1401
|
+
$nsid: () => $nsid28,
|
|
1275
1402
|
$output: () => $output22,
|
|
1276
1403
|
$params: () => $params22,
|
|
1277
|
-
main: () =>
|
|
1404
|
+
main: () => main28
|
|
1278
1405
|
});
|
|
1279
1406
|
|
|
1280
1407
|
// src/lexicons/com/atiproto/repo/tip/validate.defs.ts
|
|
1281
1408
|
var validate_defs_exports2 = {};
|
|
1282
1409
|
__export(validate_defs_exports2, {
|
|
1283
1410
|
$lxm: () => $lxm22,
|
|
1284
|
-
$nsid: () => $
|
|
1411
|
+
$nsid: () => $nsid28,
|
|
1285
1412
|
$output: () => $output22,
|
|
1286
1413
|
$params: () => $params22,
|
|
1287
|
-
main: () =>
|
|
1288
|
-
});
|
|
1289
|
-
var
|
|
1290
|
-
var $
|
|
1291
|
-
var
|
|
1292
|
-
$
|
|
1293
|
-
|
|
1294
|
-
sender:
|
|
1295
|
-
tipUri:
|
|
1296
|
-
recordUri:
|
|
1297
|
-
subject:
|
|
1298
|
-
amount:
|
|
1414
|
+
main: () => main28
|
|
1415
|
+
});
|
|
1416
|
+
var import_lex28 = require("@atproto/lex");
|
|
1417
|
+
var $nsid28 = "com.atiproto.repo.tip.validate";
|
|
1418
|
+
var main28 = import_lex28.l.query(
|
|
1419
|
+
$nsid28,
|
|
1420
|
+
import_lex28.l.params({
|
|
1421
|
+
sender: import_lex28.l.string({ format: "did" }),
|
|
1422
|
+
tipUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
|
|
1423
|
+
recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
|
|
1424
|
+
subject: import_lex28.l.optional(import_lex28.l.string({ format: "did" })),
|
|
1425
|
+
amount: import_lex28.l.optional(import_lex28.l.integer())
|
|
1299
1426
|
}),
|
|
1300
|
-
|
|
1301
|
-
valid:
|
|
1302
|
-
amount:
|
|
1303
|
-
currency:
|
|
1304
|
-
reason:
|
|
1427
|
+
import_lex28.l.jsonPayload({
|
|
1428
|
+
valid: import_lex28.l.boolean(),
|
|
1429
|
+
amount: import_lex28.l.optional(import_lex28.l.integer()),
|
|
1430
|
+
currency: import_lex28.l.optional(import_lex28.l.string({ maxLength: 3 })),
|
|
1431
|
+
reason: import_lex28.l.optional(import_lex28.l.string({ maxLength: 1024 }))
|
|
1305
1432
|
})
|
|
1306
1433
|
);
|
|
1307
|
-
var $lxm22 =
|
|
1308
|
-
var $params22 =
|
|
1309
|
-
var $output22 =
|
|
1434
|
+
var $lxm22 = main28.nsid;
|
|
1435
|
+
var $params22 = main28.parameters;
|
|
1436
|
+
var $output22 = main28.output;
|
|
1310
1437
|
|
|
1311
1438
|
// src/lexicons/com/atiproto/subscription.ts
|
|
1312
1439
|
var subscription_exports3 = {};
|
|
@@ -1441,6 +1568,7 @@ var create_default = {
|
|
|
1441
1568
|
properties: {
|
|
1442
1569
|
currency: {
|
|
1443
1570
|
type: "string",
|
|
1571
|
+
maxLength: 3,
|
|
1444
1572
|
description: "ISO 4217 currency code"
|
|
1445
1573
|
},
|
|
1446
1574
|
redirectUrl: {
|
|
@@ -1562,10 +1690,13 @@ var list_default = {
|
|
|
1562
1690
|
properties: {
|
|
1563
1691
|
status: {
|
|
1564
1692
|
type: "string",
|
|
1565
|
-
|
|
1693
|
+
maxLength: 64,
|
|
1694
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
1695
|
+
description: "Filter by cart status"
|
|
1566
1696
|
},
|
|
1567
1697
|
cursor: {
|
|
1568
1698
|
type: "string",
|
|
1699
|
+
maxLength: 512,
|
|
1569
1700
|
description: "Pagination cursor"
|
|
1570
1701
|
},
|
|
1571
1702
|
limit: {
|
|
@@ -1592,6 +1723,7 @@ var list_default = {
|
|
|
1592
1723
|
},
|
|
1593
1724
|
cursor: {
|
|
1594
1725
|
type: "string",
|
|
1726
|
+
maxLength: 512,
|
|
1595
1727
|
description: "Pagination cursor for next page"
|
|
1596
1728
|
}
|
|
1597
1729
|
},
|
|
@@ -1814,6 +1946,7 @@ var cart_default = {
|
|
|
1814
1946
|
},
|
|
1815
1947
|
currency: {
|
|
1816
1948
|
type: "string",
|
|
1949
|
+
maxLength: 3,
|
|
1817
1950
|
description: "ISO 4217 currency code"
|
|
1818
1951
|
},
|
|
1819
1952
|
total: {
|
|
@@ -1822,7 +1955,9 @@ var cart_default = {
|
|
|
1822
1955
|
},
|
|
1823
1956
|
status: {
|
|
1824
1957
|
type: "string",
|
|
1825
|
-
|
|
1958
|
+
maxLength: 64,
|
|
1959
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
1960
|
+
description: "Cart status"
|
|
1826
1961
|
},
|
|
1827
1962
|
createdAt: {
|
|
1828
1963
|
type: "string",
|
|
@@ -1848,6 +1983,7 @@ var cart_default = {
|
|
|
1848
1983
|
properties: {
|
|
1849
1984
|
type: {
|
|
1850
1985
|
type: "string",
|
|
1986
|
+
maxLength: 128,
|
|
1851
1987
|
description: "Item type: tip or subscription",
|
|
1852
1988
|
enum: ["com.atiproto.tip", "com.atiproto.subscription"]
|
|
1853
1989
|
},
|
|
@@ -1876,6 +2012,7 @@ var list_default2 = {
|
|
|
1876
2012
|
properties: {
|
|
1877
2013
|
cursor: {
|
|
1878
2014
|
type: "string",
|
|
2015
|
+
maxLength: 512,
|
|
1879
2016
|
description: "Pagination cursor"
|
|
1880
2017
|
},
|
|
1881
2018
|
limit: {
|
|
@@ -1903,6 +2040,7 @@ var list_default2 = {
|
|
|
1903
2040
|
},
|
|
1904
2041
|
cursor: {
|
|
1905
2042
|
type: "string",
|
|
2043
|
+
maxLength: 512,
|
|
1906
2044
|
description: "Pagination cursor for next page"
|
|
1907
2045
|
}
|
|
1908
2046
|
}
|
|
@@ -1982,10 +2120,23 @@ var create_default2 = {
|
|
|
1982
2120
|
},
|
|
1983
2121
|
currency: {
|
|
1984
2122
|
description: "ISO 4217 currency code",
|
|
2123
|
+
maxLength: 3,
|
|
1985
2124
|
type: "string"
|
|
1986
2125
|
},
|
|
1987
2126
|
interval: {
|
|
1988
|
-
description: "Billing interval
|
|
2127
|
+
description: "Billing interval",
|
|
2128
|
+
maxLength: 64,
|
|
2129
|
+
enum: ["monthly", "yearly"],
|
|
2130
|
+
type: "string"
|
|
2131
|
+
},
|
|
2132
|
+
cartUri: {
|
|
2133
|
+
description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created.",
|
|
2134
|
+
format: "at-uri",
|
|
2135
|
+
type: "string"
|
|
2136
|
+
},
|
|
2137
|
+
redirectUrl: {
|
|
2138
|
+
description: "URL to redirect to after checkout completes",
|
|
2139
|
+
format: "uri",
|
|
1989
2140
|
type: "string"
|
|
1990
2141
|
}
|
|
1991
2142
|
},
|
|
@@ -2023,13 +2174,7 @@ var create_default2 = {
|
|
|
2023
2174
|
type: "string"
|
|
2024
2175
|
}
|
|
2025
2176
|
},
|
|
2026
|
-
required: [
|
|
2027
|
-
"subscriptionUri",
|
|
2028
|
-
"subscription",
|
|
2029
|
-
"cartUri",
|
|
2030
|
-
"cart",
|
|
2031
|
-
"checkoutUrl"
|
|
2032
|
-
],
|
|
2177
|
+
required: ["subscriptionUri", "subscription"],
|
|
2033
2178
|
type: "object"
|
|
2034
2179
|
}
|
|
2035
2180
|
},
|
|
@@ -2102,6 +2247,7 @@ var list_default3 = {
|
|
|
2102
2247
|
properties: {
|
|
2103
2248
|
cursor: {
|
|
2104
2249
|
type: "string",
|
|
2250
|
+
maxLength: 512,
|
|
2105
2251
|
description: "Pagination cursor"
|
|
2106
2252
|
},
|
|
2107
2253
|
limit: {
|
|
@@ -2129,6 +2275,7 @@ var list_default3 = {
|
|
|
2129
2275
|
},
|
|
2130
2276
|
cursor: {
|
|
2131
2277
|
type: "string",
|
|
2278
|
+
maxLength: 512,
|
|
2132
2279
|
description: "Pagination cursor for next page"
|
|
2133
2280
|
}
|
|
2134
2281
|
}
|
|
@@ -2232,6 +2379,7 @@ var create_default3 = {
|
|
|
2232
2379
|
},
|
|
2233
2380
|
currency: {
|
|
2234
2381
|
type: "string",
|
|
2382
|
+
maxLength: 3,
|
|
2235
2383
|
description: "ISO 4217 currency code"
|
|
2236
2384
|
},
|
|
2237
2385
|
cartUri: {
|
|
@@ -2257,7 +2405,7 @@ var create_default3 = {
|
|
|
2257
2405
|
encoding: "application/json",
|
|
2258
2406
|
schema: {
|
|
2259
2407
|
type: "object",
|
|
2260
|
-
required: ["tipUri", "tip"
|
|
2408
|
+
required: ["tipUri", "tip"],
|
|
2261
2409
|
properties: {
|
|
2262
2410
|
tipUri: {
|
|
2263
2411
|
type: "string",
|
|
@@ -2353,6 +2501,7 @@ var list_default4 = {
|
|
|
2353
2501
|
properties: {
|
|
2354
2502
|
cursor: {
|
|
2355
2503
|
type: "string",
|
|
2504
|
+
maxLength: 512,
|
|
2356
2505
|
description: "Pagination cursor"
|
|
2357
2506
|
},
|
|
2358
2507
|
limit: {
|
|
@@ -2380,6 +2529,7 @@ var list_default4 = {
|
|
|
2380
2529
|
},
|
|
2381
2530
|
cursor: {
|
|
2382
2531
|
type: "string",
|
|
2532
|
+
maxLength: 512,
|
|
2383
2533
|
description: "Pagination cursor for next page"
|
|
2384
2534
|
}
|
|
2385
2535
|
}
|
|
@@ -2539,6 +2689,7 @@ var search_default = {
|
|
|
2539
2689
|
},
|
|
2540
2690
|
cursor: {
|
|
2541
2691
|
type: "string",
|
|
2692
|
+
maxLength: 512,
|
|
2542
2693
|
description: "Pagination cursor"
|
|
2543
2694
|
},
|
|
2544
2695
|
limit: {
|
|
@@ -2566,6 +2717,7 @@ var search_default = {
|
|
|
2566
2717
|
},
|
|
2567
2718
|
cursor: {
|
|
2568
2719
|
type: "string",
|
|
2720
|
+
maxLength: 512,
|
|
2569
2721
|
description: "Pagination cursor for next page"
|
|
2570
2722
|
}
|
|
2571
2723
|
}
|
|
@@ -2639,10 +2791,12 @@ var validate_default = {
|
|
|
2639
2791
|
},
|
|
2640
2792
|
currency: {
|
|
2641
2793
|
type: "string",
|
|
2794
|
+
maxLength: 3,
|
|
2642
2795
|
description: "Currency of the subscription"
|
|
2643
2796
|
},
|
|
2644
2797
|
reason: {
|
|
2645
2798
|
type: "string",
|
|
2799
|
+
maxLength: 1024,
|
|
2646
2800
|
description: "If invalid, reason for rejection"
|
|
2647
2801
|
}
|
|
2648
2802
|
}
|
|
@@ -2670,6 +2824,7 @@ var search_default2 = {
|
|
|
2670
2824
|
},
|
|
2671
2825
|
cursor: {
|
|
2672
2826
|
type: "string",
|
|
2827
|
+
maxLength: 512,
|
|
2673
2828
|
description: "Pagination cursor"
|
|
2674
2829
|
},
|
|
2675
2830
|
limit: {
|
|
@@ -2697,6 +2852,7 @@ var search_default2 = {
|
|
|
2697
2852
|
},
|
|
2698
2853
|
cursor: {
|
|
2699
2854
|
type: "string",
|
|
2855
|
+
maxLength: 512,
|
|
2700
2856
|
description: "Pagination cursor for next page"
|
|
2701
2857
|
}
|
|
2702
2858
|
}
|
|
@@ -2775,10 +2931,12 @@ var validate_default2 = {
|
|
|
2775
2931
|
},
|
|
2776
2932
|
currency: {
|
|
2777
2933
|
type: "string",
|
|
2934
|
+
maxLength: 3,
|
|
2778
2935
|
description: "Currency of the tips"
|
|
2779
2936
|
},
|
|
2780
2937
|
reason: {
|
|
2781
2938
|
type: "string",
|
|
2939
|
+
maxLength: 1024,
|
|
2782
2940
|
description: "If invalid, reason for rejection"
|
|
2783
2941
|
}
|
|
2784
2942
|
}
|
|
@@ -2788,6 +2946,111 @@ var validate_default2 = {
|
|
|
2788
2946
|
}
|
|
2789
2947
|
};
|
|
2790
2948
|
|
|
2949
|
+
// src/schemas/authEnhanced.json
|
|
2950
|
+
var authEnhanced_default = {
|
|
2951
|
+
lexicon: 1,
|
|
2952
|
+
id: "com.atiproto.authEnhanced",
|
|
2953
|
+
defs: {
|
|
2954
|
+
main: {
|
|
2955
|
+
type: "permission-set",
|
|
2956
|
+
title: "Enhanced Access",
|
|
2957
|
+
detail: "Full atiproto access. Extends general access with write access to the profile record and RPC access to all profile endpoints.",
|
|
2958
|
+
permissions: [
|
|
2959
|
+
{
|
|
2960
|
+
type: "permission",
|
|
2961
|
+
resource: "repo",
|
|
2962
|
+
collection: [
|
|
2963
|
+
"com.atiproto.cart",
|
|
2964
|
+
"com.atiproto.subscription",
|
|
2965
|
+
"com.atiproto.tip",
|
|
2966
|
+
"com.atiproto.profile"
|
|
2967
|
+
]
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
type: "permission",
|
|
2971
|
+
resource: "rpc",
|
|
2972
|
+
inheritAud: true,
|
|
2973
|
+
lxm: [
|
|
2974
|
+
"com.atiproto.account.cart.clone",
|
|
2975
|
+
"com.atiproto.account.cart.create",
|
|
2976
|
+
"com.atiproto.account.cart.get",
|
|
2977
|
+
"com.atiproto.account.cart.list",
|
|
2978
|
+
"com.atiproto.account.cart.put",
|
|
2979
|
+
"com.atiproto.account.profile.get",
|
|
2980
|
+
"com.atiproto.account.profile.put",
|
|
2981
|
+
"com.atiproto.feed.list",
|
|
2982
|
+
"com.atiproto.feed.subscription.cancel",
|
|
2983
|
+
"com.atiproto.feed.subscription.create",
|
|
2984
|
+
"com.atiproto.feed.subscription.get",
|
|
2985
|
+
"com.atiproto.feed.subscription.list",
|
|
2986
|
+
"com.atiproto.feed.subscription.put",
|
|
2987
|
+
"com.atiproto.feed.tip.create",
|
|
2988
|
+
"com.atiproto.feed.tip.get",
|
|
2989
|
+
"com.atiproto.feed.tip.list",
|
|
2990
|
+
"com.atiproto.feed.tip.put",
|
|
2991
|
+
"com.atiproto.repo.profile.get",
|
|
2992
|
+
"com.atiproto.repo.subscription.search",
|
|
2993
|
+
"com.atiproto.repo.subscription.validate",
|
|
2994
|
+
"com.atiproto.repo.tip.search",
|
|
2995
|
+
"com.atiproto.repo.tip.validate"
|
|
2996
|
+
]
|
|
2997
|
+
}
|
|
2998
|
+
]
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
// src/schemas/authGeneral.json
|
|
3004
|
+
var authGeneral_default = {
|
|
3005
|
+
lexicon: 1,
|
|
3006
|
+
id: "com.atiproto.authGeneral",
|
|
3007
|
+
defs: {
|
|
3008
|
+
main: {
|
|
3009
|
+
type: "permission-set",
|
|
3010
|
+
title: "General Access",
|
|
3011
|
+
detail: "Write access to cart, subscription, and tip records, plus RPC access to payment, feed, and public profile lookup endpoints.",
|
|
3012
|
+
permissions: [
|
|
3013
|
+
{
|
|
3014
|
+
type: "permission",
|
|
3015
|
+
resource: "repo",
|
|
3016
|
+
collection: [
|
|
3017
|
+
"com.atiproto.cart",
|
|
3018
|
+
"com.atiproto.subscription",
|
|
3019
|
+
"com.atiproto.tip"
|
|
3020
|
+
]
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
type: "permission",
|
|
3024
|
+
resource: "rpc",
|
|
3025
|
+
inheritAud: true,
|
|
3026
|
+
lxm: [
|
|
3027
|
+
"com.atiproto.account.cart.clone",
|
|
3028
|
+
"com.atiproto.account.cart.create",
|
|
3029
|
+
"com.atiproto.account.cart.get",
|
|
3030
|
+
"com.atiproto.account.cart.list",
|
|
3031
|
+
"com.atiproto.account.cart.put",
|
|
3032
|
+
"com.atiproto.feed.list",
|
|
3033
|
+
"com.atiproto.feed.subscription.cancel",
|
|
3034
|
+
"com.atiproto.feed.subscription.create",
|
|
3035
|
+
"com.atiproto.feed.subscription.get",
|
|
3036
|
+
"com.atiproto.feed.subscription.list",
|
|
3037
|
+
"com.atiproto.feed.subscription.put",
|
|
3038
|
+
"com.atiproto.feed.tip.create",
|
|
3039
|
+
"com.atiproto.feed.tip.get",
|
|
3040
|
+
"com.atiproto.feed.tip.list",
|
|
3041
|
+
"com.atiproto.feed.tip.put",
|
|
3042
|
+
"com.atiproto.repo.profile.get",
|
|
3043
|
+
"com.atiproto.repo.subscription.search",
|
|
3044
|
+
"com.atiproto.repo.subscription.validate",
|
|
3045
|
+
"com.atiproto.repo.tip.search",
|
|
3046
|
+
"com.atiproto.repo.tip.validate"
|
|
3047
|
+
]
|
|
3048
|
+
}
|
|
3049
|
+
]
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
};
|
|
3053
|
+
|
|
2791
3054
|
// src/schemas/subscription.json
|
|
2792
3055
|
var subscription_default = {
|
|
2793
3056
|
defs: {
|
|
@@ -2808,14 +3071,19 @@ var subscription_default = {
|
|
|
2808
3071
|
},
|
|
2809
3072
|
currency: {
|
|
2810
3073
|
description: "ISO 4217 currency code",
|
|
3074
|
+
maxLength: 3,
|
|
2811
3075
|
type: "string"
|
|
2812
3076
|
},
|
|
2813
3077
|
interval: {
|
|
2814
|
-
description: "Billing interval
|
|
3078
|
+
description: "Billing interval",
|
|
3079
|
+
maxLength: 64,
|
|
3080
|
+
enum: ["monthly", "yearly"],
|
|
2815
3081
|
type: "string"
|
|
2816
3082
|
},
|
|
2817
3083
|
status: {
|
|
2818
|
-
description: "Subscription status
|
|
3084
|
+
description: "Subscription status",
|
|
3085
|
+
maxLength: 64,
|
|
3086
|
+
enum: ["pending", "active", "past_due", "cancelled", "expired"],
|
|
2819
3087
|
type: "string"
|
|
2820
3088
|
},
|
|
2821
3089
|
billingStartDate: {
|
|
@@ -2882,10 +3150,12 @@ var tip_default = {
|
|
|
2882
3150
|
},
|
|
2883
3151
|
currency: {
|
|
2884
3152
|
description: "ISO 4217 currency code",
|
|
3153
|
+
maxLength: 3,
|
|
2885
3154
|
type: "string"
|
|
2886
3155
|
},
|
|
2887
3156
|
status: {
|
|
2888
|
-
description: "Tip status
|
|
3157
|
+
description: "Tip status",
|
|
3158
|
+
maxLength: 64,
|
|
2889
3159
|
type: "string",
|
|
2890
3160
|
enum: ["pending", "authorized", "completed", "failed", "refunded"]
|
|
2891
3161
|
},
|
|
@@ -2942,6 +3212,8 @@ var schemas = [
|
|
|
2942
3212
|
validate_default,
|
|
2943
3213
|
search_default2,
|
|
2944
3214
|
validate_default2,
|
|
3215
|
+
authEnhanced_default,
|
|
3216
|
+
authGeneral_default,
|
|
2945
3217
|
subscription_default,
|
|
2946
3218
|
tip_default
|
|
2947
3219
|
];
|