@atiproto/lexicons 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.js +1855 -1050
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1855 -1050
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +6 -6
  6. package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +2 -2
  7. package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +6 -6
  8. package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +1 -1
  9. package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +2 -2
  10. package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -2
  11. package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
  12. package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
  13. package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
  14. package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
  15. package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
  16. package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
  17. package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
  18. package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
  19. package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
  20. package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
  21. package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
  22. package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
  23. package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
  24. package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
  25. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/cart.defs.d.ts +33 -0
  27. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +2 -2
  28. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +6 -4
  29. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +2 -2
  30. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +1 -1
  31. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  32. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  33. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  34. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +6 -4
  35. package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +2 -2
  36. package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +2 -2
  37. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  38. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  39. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  40. package/dist/lexicons/com/atiproto/profile.defs.d.ts +28 -0
  41. package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +2 -2
  42. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  43. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  44. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +1 -1
  45. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  46. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  47. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  48. package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +1 -1
  49. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  50. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +44 -0
  51. package/dist/lexicons/com/atiproto/tip.defs.d.ts +91 -11
  52. 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: () => subscription_exports3,
45
- tip: () => tip_exports3
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
@@ -103,7 +105,8 @@ __export(cart_defs_exports, {
103
105
  $type: () => $type,
104
106
  $validate: () => $validate,
105
107
  cartItem: () => cartItem,
106
- main: () => main
108
+ main: () => main,
109
+ view: () => view
107
110
  });
108
111
  var import_lex = require("@atproto/lex");
109
112
  var $nsid = "com.atiproto.cart";
@@ -132,6 +135,19 @@ var $parse = /* @__PURE__ */ main.parse.bind(main);
132
135
  var $safeParse = /* @__PURE__ */ main.safeParse.bind(main);
133
136
  var $validate = /* @__PURE__ */ main.validate.bind(main);
134
137
  var $safeValidate = /* @__PURE__ */ main.safeValidate.bind(main);
138
+ var view = import_lex.l.typedObject(
139
+ $nsid,
140
+ "view",
141
+ import_lex.l.object({
142
+ items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
143
+ currency: import_lex.l.string({ maxLength: 3 }),
144
+ total: import_lex.l.integer(),
145
+ status: import_lex.l.enum(["open", "completed", "expired", "abandoned"]),
146
+ createdAt: import_lex.l.string({ format: "datetime" }),
147
+ expiresAt: import_lex.l.string({ format: "datetime" }),
148
+ completedAt: import_lex.l.optional(import_lex.l.string({ format: "datetime" }))
149
+ })
150
+ );
135
151
  var cartItem = import_lex.l.typedObject(
136
152
  $nsid,
137
153
  "cartItem",
@@ -157,7 +173,8 @@ __export(tip_defs_exports, {
157
173
  $safeValidate: () => $safeValidate2,
158
174
  $type: () => $type2,
159
175
  $validate: () => $validate2,
160
- main: () => main2
176
+ main: () => main2,
177
+ view: () => view2
161
178
  });
162
179
  var import_lex2 = require("@atproto/lex");
163
180
  var $nsid2 = "com.atiproto.tip";
@@ -165,7 +182,7 @@ var main2 = import_lex2.l.record(
165
182
  "any",
166
183
  $nsid2,
167
184
  import_lex2.l.object({
168
- subject: import_lex2.l.string({ format: "did" }),
185
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
169
186
  recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
170
187
  amount: import_lex2.l.integer({ minimum: 0 }),
171
188
  currency: import_lex2.l.string({ maxLength: 3 }),
@@ -193,6 +210,26 @@ var $parse2 = /* @__PURE__ */ main2.parse.bind(main2);
193
210
  var $safeParse2 = /* @__PURE__ */ main2.safeParse.bind(main2);
194
211
  var $validate2 = /* @__PURE__ */ main2.validate.bind(main2);
195
212
  var $safeValidate2 = /* @__PURE__ */ main2.safeValidate.bind(main2);
213
+ var view2 = import_lex2.l.typedObject(
214
+ $nsid2,
215
+ "view",
216
+ import_lex2.l.object({
217
+ subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
218
+ recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
219
+ amount: import_lex2.l.integer({ minimum: 0 }),
220
+ currency: import_lex2.l.string({ maxLength: 3 }),
221
+ status: import_lex2.l.enum([
222
+ "pending",
223
+ "authorized",
224
+ "completed",
225
+ "failed",
226
+ "refunded"
227
+ ]),
228
+ message: import_lex2.l.optional(import_lex2.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
229
+ createdAt: import_lex2.l.string({ format: "datetime" }),
230
+ completedAt: import_lex2.l.optional(import_lex2.l.string({ format: "datetime" }))
231
+ })
232
+ );
196
233
 
197
234
  // src/lexicons/com/atiproto/subscription.defs.ts
198
235
  var subscription_defs_exports = {};
@@ -210,7 +247,8 @@ __export(subscription_defs_exports, {
210
247
  $safeValidate: () => $safeValidate3,
211
248
  $type: () => $type3,
212
249
  $validate: () => $validate3,
213
- main: () => main3
250
+ main: () => main3,
251
+ view: () => view3
214
252
  });
215
253
  var import_lex3 = require("@atproto/lex");
216
254
  var $nsid3 = "com.atiproto.subscription";
@@ -241,6 +279,21 @@ var $parse3 = /* @__PURE__ */ main3.parse.bind(main3);
241
279
  var $safeParse3 = /* @__PURE__ */ main3.safeParse.bind(main3);
242
280
  var $validate3 = /* @__PURE__ */ main3.validate.bind(main3);
243
281
  var $safeValidate3 = /* @__PURE__ */ main3.safeValidate.bind(main3);
282
+ var view3 = import_lex3.l.typedObject(
283
+ $nsid3,
284
+ "view",
285
+ import_lex3.l.object({
286
+ subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
287
+ amount: import_lex3.l.integer({ minimum: 0 }),
288
+ currency: import_lex3.l.string({ maxLength: 3 }),
289
+ interval: import_lex3.l.enum(["monthly", "yearly"]),
290
+ status: import_lex3.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
291
+ billingStartDate: import_lex3.l.string({ format: "datetime" }),
292
+ cancelledAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
293
+ accessUntil: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
294
+ createdAt: import_lex3.l.string({ format: "datetime" })
295
+ })
296
+ );
244
297
 
245
298
  // src/lexicons/com/atiproto/account/cart/clone.defs.ts
246
299
  var $nsid4 = "com.atiproto.account.cart.clone";
@@ -252,13 +305,13 @@ var main4 = import_lex4.l.procedure(
252
305
  redirectUrl: import_lex4.l.optional(import_lex4.l.string({ format: "uri" }))
253
306
  }),
254
307
  import_lex4.l.jsonPayload({
255
- cart: import_lex4.l.ref((() => main)),
308
+ cart: import_lex4.l.ref((() => view)),
256
309
  cartUri: import_lex4.l.string({ format: "at-uri" }),
257
310
  checkoutUrl: import_lex4.l.string({ format: "uri" }),
258
- tips: import_lex4.l.array(import_lex4.l.ref((() => main2))),
311
+ tips: import_lex4.l.array(import_lex4.l.ref((() => view2))),
259
312
  subscriptions: import_lex4.l.array(
260
313
  import_lex4.l.ref(
261
- (() => main3)
314
+ (() => view3)
262
315
  )
263
316
  )
264
317
  })
@@ -300,7 +353,7 @@ var main5 = import_lex5.l.procedure(
300
353
  redirectUrl: import_lex5.l.optional(import_lex5.l.string({ format: "uri" }))
301
354
  }),
302
355
  import_lex5.l.jsonPayload({
303
- cart: import_lex5.l.ref((() => main)),
356
+ cart: import_lex5.l.ref((() => view)),
304
357
  cartUri: import_lex5.l.string({ format: "at-uri" }),
305
358
  checkoutUrl: import_lex5.l.string({ format: "uri" })
306
359
  })
@@ -338,12 +391,12 @@ var main6 = import_lex6.l.query(
338
391
  import_lex6.l.jsonPayload({
339
392
  uri: import_lex6.l.string({ format: "at-uri" }),
340
393
  cid: import_lex6.l.optional(import_lex6.l.string({ format: "cid" })),
341
- cart: import_lex6.l.ref((() => main)),
394
+ cart: import_lex6.l.ref((() => view)),
342
395
  checkoutUrl: import_lex6.l.optional(import_lex6.l.string({ format: "uri" })),
343
- tips: import_lex6.l.array(import_lex6.l.ref((() => main2))),
396
+ tips: import_lex6.l.array(import_lex6.l.ref((() => view2))),
344
397
  subscriptions: import_lex6.l.array(
345
398
  import_lex6.l.ref(
346
- (() => main3)
399
+ (() => view3)
347
400
  )
348
401
  )
349
402
  })
@@ -393,7 +446,7 @@ var cartResponse = import_lex7.l.typedObject(
393
446
  import_lex7.l.object({
394
447
  uri: import_lex7.l.string({ format: "at-uri" }),
395
448
  cid: import_lex7.l.string({ format: "cid" }),
396
- record: import_lex7.l.ref((() => main))
449
+ record: import_lex7.l.ref((() => view))
397
450
  })
398
451
  );
399
452
 
@@ -483,7 +536,8 @@ __export(profile_defs_exports, {
483
536
  $safeValidate: () => $safeValidate4,
484
537
  $type: () => $type4,
485
538
  $validate: () => $validate4,
486
- main: () => main9
539
+ main: () => main9,
540
+ view: () => view4
487
541
  });
488
542
  var import_lex9 = require("@atproto/lex");
489
543
  var $nsid9 = "com.atiproto.profile";
@@ -510,6 +564,17 @@ var $parse4 = /* @__PURE__ */ main9.parse.bind(main9);
510
564
  var $safeParse4 = /* @__PURE__ */ main9.safeParse.bind(main9);
511
565
  var $validate4 = /* @__PURE__ */ main9.validate.bind(main9);
512
566
  var $safeValidate4 = /* @__PURE__ */ main9.safeValidate.bind(main9);
567
+ var view4 = import_lex9.l.typedObject(
568
+ $nsid9,
569
+ "view",
570
+ import_lex9.l.object({
571
+ acceptsTips: import_lex9.l.optional(import_lex9.l.boolean()),
572
+ acceptsSubscriptions: import_lex9.l.optional(import_lex9.l.boolean()),
573
+ disableReceiptNotifications: import_lex9.l.optional(import_lex9.l.boolean()),
574
+ createdAt: import_lex9.l.string({ format: "datetime" }),
575
+ updatedAt: import_lex9.l.optional(import_lex9.l.string({ format: "datetime" }))
576
+ })
577
+ );
513
578
 
514
579
  // src/lexicons/com/atiproto/account/profile/get.defs.ts
515
580
  var $nsid10 = "com.atiproto.account.profile.get";
@@ -519,7 +584,7 @@ var main10 = import_lex10.l.query(
519
584
  import_lex10.l.jsonPayload({
520
585
  uri: import_lex10.l.optional(import_lex10.l.string({ format: "at-uri" })),
521
586
  cid: import_lex10.l.optional(import_lex10.l.string({ format: "cid" })),
522
- profile: import_lex10.l.ref((() => main9)),
587
+ profile: import_lex10.l.ref((() => view4)),
523
588
  hasProfile: import_lex10.l.boolean(),
524
589
  readyForPayment: import_lex10.l.boolean()
525
590
  })
@@ -563,7 +628,7 @@ var main11 = import_lex11.l.procedure(
563
628
  import_lex11.l.jsonPayload({
564
629
  uri: import_lex11.l.string({ format: "at-uri" }),
565
630
  cid: import_lex11.l.string({ format: "cid" }),
566
- profile: import_lex11.l.ref((() => main9)),
631
+ profile: import_lex11.l.ref((() => view4)),
567
632
  hasProfile: import_lex11.l.boolean(),
568
633
  readyForPayment: import_lex11.l.boolean()
569
634
  })
@@ -573,26 +638,282 @@ var $params7 = main11.parameters;
573
638
  var $input4 = main11.input;
574
639
  var $output7 = main11.output;
575
640
 
641
+ // src/lexicons/com/atiproto/account/subscription.ts
642
+ var subscription_exports = {};
643
+ __export(subscription_exports, {
644
+ get: () => get_exports3,
645
+ list: () => list_exports2,
646
+ validate: () => validate_exports
647
+ });
648
+
649
+ // src/lexicons/com/atiproto/account/subscription/get.ts
650
+ var get_exports3 = {};
651
+ __export(get_exports3, {
652
+ $defs: () => get_defs_exports3,
653
+ $lxm: () => $lxm8,
654
+ $nsid: () => $nsid12,
655
+ $output: () => $output8,
656
+ $params: () => $params8,
657
+ main: () => main12
658
+ });
659
+
660
+ // src/lexicons/com/atiproto/account/subscription/get.defs.ts
661
+ var get_defs_exports3 = {};
662
+ __export(get_defs_exports3, {
663
+ $lxm: () => $lxm8,
664
+ $nsid: () => $nsid12,
665
+ $output: () => $output8,
666
+ $params: () => $params8,
667
+ main: () => main12
668
+ });
669
+ var import_lex12 = require("@atproto/lex");
670
+ var $nsid12 = "com.atiproto.account.subscription.get";
671
+ var main12 = import_lex12.l.query(
672
+ $nsid12,
673
+ import_lex12.l.params({
674
+ uri: import_lex12.l.optional(import_lex12.l.string({ format: "at-uri" })),
675
+ sender: import_lex12.l.optional(import_lex12.l.string({ format: "did" }))
676
+ }),
677
+ import_lex12.l.jsonPayload({
678
+ subscription: import_lex12.l.ref(
679
+ (() => view3)
680
+ )
681
+ })
682
+ );
683
+ var $lxm8 = main12.nsid;
684
+ var $params8 = main12.parameters;
685
+ var $output8 = main12.output;
686
+
687
+ // src/lexicons/com/atiproto/account/subscription/list.ts
688
+ var list_exports2 = {};
689
+ __export(list_exports2, {
690
+ $defs: () => list_defs_exports2,
691
+ $lxm: () => $lxm9,
692
+ $nsid: () => $nsid13,
693
+ $output: () => $output9,
694
+ $params: () => $params9,
695
+ main: () => main13
696
+ });
697
+
698
+ // src/lexicons/com/atiproto/account/subscription/list.defs.ts
699
+ var list_defs_exports2 = {};
700
+ __export(list_defs_exports2, {
701
+ $lxm: () => $lxm9,
702
+ $nsid: () => $nsid13,
703
+ $output: () => $output9,
704
+ $params: () => $params9,
705
+ main: () => main13
706
+ });
707
+ var import_lex13 = require("@atproto/lex");
708
+ var $nsid13 = "com.atiproto.account.subscription.list";
709
+ var main13 = import_lex13.l.query(
710
+ $nsid13,
711
+ import_lex13.l.params({
712
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 })),
713
+ limit: import_lex13.l.optional(
714
+ import_lex13.l.withDefault(import_lex13.l.integer({ minimum: 1, maximum: 100 }), 50)
715
+ )
716
+ }),
717
+ import_lex13.l.jsonPayload({
718
+ subscriptions: import_lex13.l.array(
719
+ import_lex13.l.ref(
720
+ (() => view3)
721
+ )
722
+ ),
723
+ cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 }))
724
+ })
725
+ );
726
+ var $lxm9 = main13.nsid;
727
+ var $params9 = main13.parameters;
728
+ var $output9 = main13.output;
729
+
730
+ // src/lexicons/com/atiproto/account/subscription/validate.ts
731
+ var validate_exports = {};
732
+ __export(validate_exports, {
733
+ $defs: () => validate_defs_exports,
734
+ $lxm: () => $lxm10,
735
+ $nsid: () => $nsid14,
736
+ $output: () => $output10,
737
+ $params: () => $params10,
738
+ main: () => main14
739
+ });
740
+
741
+ // src/lexicons/com/atiproto/account/subscription/validate.defs.ts
742
+ var validate_defs_exports = {};
743
+ __export(validate_defs_exports, {
744
+ $lxm: () => $lxm10,
745
+ $nsid: () => $nsid14,
746
+ $output: () => $output10,
747
+ $params: () => $params10,
748
+ main: () => main14
749
+ });
750
+ var import_lex14 = require("@atproto/lex");
751
+ var $nsid14 = "com.atiproto.account.subscription.validate";
752
+ var main14 = import_lex14.l.query(
753
+ $nsid14,
754
+ import_lex14.l.params({
755
+ subscriptionUri: import_lex14.l.optional(import_lex14.l.string({ format: "at-uri" })),
756
+ sender: import_lex14.l.optional(import_lex14.l.string({ format: "did" })),
757
+ amount: import_lex14.l.optional(import_lex14.l.integer())
758
+ }),
759
+ import_lex14.l.jsonPayload({
760
+ valid: import_lex14.l.boolean(),
761
+ amount: import_lex14.l.optional(import_lex14.l.integer()),
762
+ currency: import_lex14.l.optional(import_lex14.l.string({ maxLength: 3 })),
763
+ reason: import_lex14.l.optional(import_lex14.l.string({ maxLength: 1024 }))
764
+ })
765
+ );
766
+ var $lxm10 = main14.nsid;
767
+ var $params10 = main14.parameters;
768
+ var $output10 = main14.output;
769
+
770
+ // src/lexicons/com/atiproto/account/tip.ts
771
+ var tip_exports = {};
772
+ __export(tip_exports, {
773
+ get: () => get_exports4,
774
+ list: () => list_exports3,
775
+ validate: () => validate_exports2
776
+ });
777
+
778
+ // src/lexicons/com/atiproto/account/tip/get.ts
779
+ var get_exports4 = {};
780
+ __export(get_exports4, {
781
+ $defs: () => get_defs_exports4,
782
+ $lxm: () => $lxm11,
783
+ $nsid: () => $nsid15,
784
+ $output: () => $output11,
785
+ $params: () => $params11,
786
+ main: () => main15
787
+ });
788
+
789
+ // src/lexicons/com/atiproto/account/tip/get.defs.ts
790
+ var get_defs_exports4 = {};
791
+ __export(get_defs_exports4, {
792
+ $lxm: () => $lxm11,
793
+ $nsid: () => $nsid15,
794
+ $output: () => $output11,
795
+ $params: () => $params11,
796
+ main: () => main15
797
+ });
798
+ var import_lex15 = require("@atproto/lex");
799
+ var $nsid15 = "com.atiproto.account.tip.get";
800
+ var main15 = import_lex15.l.query(
801
+ $nsid15,
802
+ import_lex15.l.params({
803
+ uri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" })),
804
+ sender: import_lex15.l.optional(import_lex15.l.string({ format: "did" })),
805
+ recordUri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" }))
806
+ }),
807
+ import_lex15.l.jsonPayload({
808
+ tip: import_lex15.l.ref((() => view2))
809
+ })
810
+ );
811
+ var $lxm11 = main15.nsid;
812
+ var $params11 = main15.parameters;
813
+ var $output11 = main15.output;
814
+
815
+ // src/lexicons/com/atiproto/account/tip/list.ts
816
+ var list_exports3 = {};
817
+ __export(list_exports3, {
818
+ $defs: () => list_defs_exports3,
819
+ $lxm: () => $lxm12,
820
+ $nsid: () => $nsid16,
821
+ $output: () => $output12,
822
+ $params: () => $params12,
823
+ main: () => main16
824
+ });
825
+
826
+ // src/lexicons/com/atiproto/account/tip/list.defs.ts
827
+ var list_defs_exports3 = {};
828
+ __export(list_defs_exports3, {
829
+ $lxm: () => $lxm12,
830
+ $nsid: () => $nsid16,
831
+ $output: () => $output12,
832
+ $params: () => $params12,
833
+ main: () => main16
834
+ });
835
+ var import_lex16 = require("@atproto/lex");
836
+ var $nsid16 = "com.atiproto.account.tip.list";
837
+ var main16 = import_lex16.l.query(
838
+ $nsid16,
839
+ import_lex16.l.params({
840
+ sender: import_lex16.l.optional(import_lex16.l.string({ format: "did" })),
841
+ recordUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
842
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 })),
843
+ limit: import_lex16.l.optional(
844
+ import_lex16.l.withDefault(import_lex16.l.integer({ minimum: 1, maximum: 100 }), 50)
845
+ )
846
+ }),
847
+ import_lex16.l.jsonPayload({
848
+ tips: import_lex16.l.array(import_lex16.l.ref((() => view2))),
849
+ cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 }))
850
+ })
851
+ );
852
+ var $lxm12 = main16.nsid;
853
+ var $params12 = main16.parameters;
854
+ var $output12 = main16.output;
855
+
856
+ // src/lexicons/com/atiproto/account/tip/validate.ts
857
+ var validate_exports2 = {};
858
+ __export(validate_exports2, {
859
+ $defs: () => validate_defs_exports2,
860
+ $lxm: () => $lxm13,
861
+ $nsid: () => $nsid17,
862
+ $output: () => $output13,
863
+ $params: () => $params13,
864
+ main: () => main17
865
+ });
866
+
867
+ // src/lexicons/com/atiproto/account/tip/validate.defs.ts
868
+ var validate_defs_exports2 = {};
869
+ __export(validate_defs_exports2, {
870
+ $lxm: () => $lxm13,
871
+ $nsid: () => $nsid17,
872
+ $output: () => $output13,
873
+ $params: () => $params13,
874
+ main: () => main17
875
+ });
876
+ var import_lex17 = require("@atproto/lex");
877
+ var $nsid17 = "com.atiproto.account.tip.validate";
878
+ var main17 = import_lex17.l.query(
879
+ $nsid17,
880
+ import_lex17.l.params({
881
+ tipUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
882
+ recordUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
883
+ sender: import_lex17.l.optional(import_lex17.l.string({ format: "did" })),
884
+ amount: import_lex17.l.optional(import_lex17.l.integer())
885
+ }),
886
+ import_lex17.l.jsonPayload({
887
+ valid: import_lex17.l.boolean(),
888
+ amount: import_lex17.l.optional(import_lex17.l.integer()),
889
+ currency: import_lex17.l.optional(import_lex17.l.string({ maxLength: 3 })),
890
+ reason: import_lex17.l.optional(import_lex17.l.string({ maxLength: 1024 }))
891
+ })
892
+ );
893
+ var $lxm13 = main17.nsid;
894
+ var $params13 = main17.parameters;
895
+ var $output13 = main17.output;
896
+
576
897
  // src/lexicons/com/atiproto/authEnhanced.ts
577
898
  var authEnhanced_exports = {};
578
899
  __export(authEnhanced_exports, {
579
900
  $defs: () => authEnhanced_defs_exports,
580
- $nsid: () => $nsid12,
581
- main: () => main12
901
+ $nsid: () => $nsid18,
902
+ main: () => main18
582
903
  });
583
904
 
584
905
  // src/lexicons/com/atiproto/authEnhanced.defs.ts
585
906
  var authEnhanced_defs_exports = {};
586
907
  __export(authEnhanced_defs_exports, {
587
- $nsid: () => $nsid12,
588
- main: () => main12
908
+ $nsid: () => $nsid18,
909
+ main: () => main18
589
910
  });
590
- var import_lex12 = require("@atproto/lex");
591
- var $nsid12 = "com.atiproto.authEnhanced";
592
- var main12 = import_lex12.l.permissionSet(
593
- $nsid12,
911
+ var import_lex18 = require("@atproto/lex");
912
+ var $nsid18 = "com.atiproto.authEnhanced";
913
+ var main18 = import_lex18.l.permissionSet(
914
+ $nsid18,
594
915
  [
595
- import_lex12.l.permission("repo", {
916
+ import_lex18.l.permission("repo", {
596
917
  collection: [
597
918
  "com.atiproto.cart",
598
919
  "com.atiproto.subscription",
@@ -600,7 +921,7 @@ var main12 = import_lex12.l.permissionSet(
600
921
  "com.atiproto.profile"
601
922
  ]
602
923
  }),
603
- import_lex12.l.permission("rpc", {
924
+ import_lex18.l.permission("rpc", {
604
925
  inheritAud: true,
605
926
  lxm: [
606
927
  "com.atiproto.account.cart.clone",
@@ -610,21 +931,27 @@ var main12 = import_lex12.l.permissionSet(
610
931
  "com.atiproto.account.cart.put",
611
932
  "com.atiproto.account.profile.get",
612
933
  "com.atiproto.account.profile.put",
934
+ "com.atiproto.account.subscription.get",
935
+ "com.atiproto.account.subscription.list",
936
+ "com.atiproto.account.subscription.validate",
937
+ "com.atiproto.account.tip.get",
938
+ "com.atiproto.account.tip.list",
939
+ "com.atiproto.account.tip.validate",
613
940
  "com.atiproto.feed.list",
614
941
  "com.atiproto.feed.subscription.cancel",
615
942
  "com.atiproto.feed.subscription.create",
616
943
  "com.atiproto.feed.subscription.get",
617
944
  "com.atiproto.feed.subscription.list",
618
945
  "com.atiproto.feed.subscription.put",
946
+ "com.atiproto.feed.subscription.validate",
619
947
  "com.atiproto.feed.tip.create",
620
948
  "com.atiproto.feed.tip.get",
621
949
  "com.atiproto.feed.tip.list",
622
950
  "com.atiproto.feed.tip.put",
951
+ "com.atiproto.feed.tip.validate",
623
952
  "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"
953
+ "com.atiproto.repo.subscription.count",
954
+ "com.atiproto.repo.tip.count"
628
955
  ]
629
956
  })
630
957
  ],
@@ -638,29 +965,29 @@ var main12 = import_lex12.l.permissionSet(
638
965
  var authGeneral_exports = {};
639
966
  __export(authGeneral_exports, {
640
967
  $defs: () => authGeneral_defs_exports,
641
- $nsid: () => $nsid13,
642
- main: () => main13
968
+ $nsid: () => $nsid19,
969
+ main: () => main19
643
970
  });
644
971
 
645
972
  // src/lexicons/com/atiproto/authGeneral.defs.ts
646
973
  var authGeneral_defs_exports = {};
647
974
  __export(authGeneral_defs_exports, {
648
- $nsid: () => $nsid13,
649
- main: () => main13
975
+ $nsid: () => $nsid19,
976
+ main: () => main19
650
977
  });
651
- var import_lex13 = require("@atproto/lex");
652
- var $nsid13 = "com.atiproto.authGeneral";
653
- var main13 = import_lex13.l.permissionSet(
654
- $nsid13,
978
+ var import_lex19 = require("@atproto/lex");
979
+ var $nsid19 = "com.atiproto.authGeneral";
980
+ var main19 = import_lex19.l.permissionSet(
981
+ $nsid19,
655
982
  [
656
- import_lex13.l.permission("repo", {
983
+ import_lex19.l.permission("repo", {
657
984
  collection: [
658
985
  "com.atiproto.cart",
659
986
  "com.atiproto.subscription",
660
987
  "com.atiproto.tip"
661
988
  ]
662
989
  }),
663
- import_lex13.l.permission("rpc", {
990
+ import_lex19.l.permission("rpc", {
664
991
  inheritAud: true,
665
992
  lxm: [
666
993
  "com.atiproto.account.cart.clone",
@@ -668,21 +995,27 @@ var main13 = import_lex13.l.permissionSet(
668
995
  "com.atiproto.account.cart.get",
669
996
  "com.atiproto.account.cart.list",
670
997
  "com.atiproto.account.cart.put",
998
+ "com.atiproto.account.subscription.get",
999
+ "com.atiproto.account.subscription.list",
1000
+ "com.atiproto.account.subscription.validate",
1001
+ "com.atiproto.account.tip.get",
1002
+ "com.atiproto.account.tip.list",
1003
+ "com.atiproto.account.tip.validate",
671
1004
  "com.atiproto.feed.list",
672
1005
  "com.atiproto.feed.subscription.cancel",
673
1006
  "com.atiproto.feed.subscription.create",
674
1007
  "com.atiproto.feed.subscription.get",
675
1008
  "com.atiproto.feed.subscription.list",
676
1009
  "com.atiproto.feed.subscription.put",
1010
+ "com.atiproto.feed.subscription.validate",
677
1011
  "com.atiproto.feed.tip.create",
678
1012
  "com.atiproto.feed.tip.get",
679
1013
  "com.atiproto.feed.tip.list",
680
1014
  "com.atiproto.feed.tip.put",
1015
+ "com.atiproto.feed.tip.validate",
681
1016
  "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"
1017
+ "com.atiproto.repo.subscription.count",
1018
+ "com.atiproto.repo.tip.count"
686
1019
  ]
687
1020
  })
688
1021
  ],
@@ -710,69 +1043,71 @@ __export(cart_exports2, {
710
1043
  $type: () => $type,
711
1044
  $validate: () => $validate,
712
1045
  cartItem: () => cartItem,
713
- main: () => main
1046
+ main: () => main,
1047
+ view: () => view
714
1048
  });
715
1049
 
716
1050
  // src/lexicons/com/atiproto/feed.ts
717
1051
  var feed_exports = {};
718
1052
  __export(feed_exports, {
719
- list: () => list_exports2,
720
- subscription: () => subscription_exports,
721
- tip: () => tip_exports
1053
+ list: () => list_exports4,
1054
+ subscription: () => subscription_exports2,
1055
+ tip: () => tip_exports2
722
1056
  });
723
1057
 
724
1058
  // src/lexicons/com/atiproto/feed/list.ts
725
- var list_exports2 = {};
726
- __export(list_exports2, {
727
- $defs: () => list_defs_exports2,
728
- $lxm: () => $lxm8,
729
- $nsid: () => $nsid14,
730
- $output: () => $output8,
731
- $params: () => $params8,
732
- main: () => main14
1059
+ var list_exports4 = {};
1060
+ __export(list_exports4, {
1061
+ $defs: () => list_defs_exports4,
1062
+ $lxm: () => $lxm14,
1063
+ $nsid: () => $nsid20,
1064
+ $output: () => $output14,
1065
+ $params: () => $params14,
1066
+ main: () => main20
733
1067
  });
734
1068
 
735
1069
  // src/lexicons/com/atiproto/feed/list.defs.ts
736
- var list_defs_exports2 = {};
737
- __export(list_defs_exports2, {
738
- $lxm: () => $lxm8,
739
- $nsid: () => $nsid14,
740
- $output: () => $output8,
741
- $params: () => $params8,
742
- main: () => main14
1070
+ var list_defs_exports4 = {};
1071
+ __export(list_defs_exports4, {
1072
+ $lxm: () => $lxm14,
1073
+ $nsid: () => $nsid20,
1074
+ $output: () => $output14,
1075
+ $params: () => $params14,
1076
+ main: () => main20
743
1077
  });
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(
1078
+ var import_lex20 = require("@atproto/lex");
1079
+ var $nsid20 = "com.atiproto.feed.list";
1080
+ var main20 = import_lex20.l.query(
1081
+ $nsid20,
1082
+ import_lex20.l.params(),
1083
+ import_lex20.l.jsonPayload({
1084
+ items: import_lex20.l.array(
1085
+ import_lex20.l.typedUnion(
752
1086
  [
753
- import_lex14.l.typedRef((() => main2)),
754
- import_lex14.l.typedRef(
1087
+ import_lex20.l.typedRef((() => main2)),
1088
+ import_lex20.l.typedRef(
755
1089
  (() => main3)
756
1090
  )
757
1091
  ],
758
1092
  false
759
1093
  )
760
1094
  ),
761
- cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 }))
1095
+ cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 }))
762
1096
  })
763
1097
  );
764
- var $lxm8 = main14.nsid;
765
- var $params8 = main14.parameters;
766
- var $output8 = main14.output;
1098
+ var $lxm14 = main20.nsid;
1099
+ var $params14 = main20.parameters;
1100
+ var $output14 = main20.output;
767
1101
 
768
1102
  // src/lexicons/com/atiproto/feed/subscription.ts
769
- var subscription_exports = {};
770
- __export(subscription_exports, {
1103
+ var subscription_exports2 = {};
1104
+ __export(subscription_exports2, {
771
1105
  cancel: () => cancel_exports,
772
1106
  create: () => create_exports2,
773
- get: () => get_exports3,
774
- list: () => list_exports3,
775
- put: () => put_exports3
1107
+ get: () => get_exports5,
1108
+ list: () => list_exports5,
1109
+ put: () => put_exports3,
1110
+ validate: () => validate_exports3
776
1111
  });
777
1112
 
778
1113
  // src/lexicons/com/atiproto/feed/subscription/cancel.ts
@@ -780,175 +1115,176 @@ var cancel_exports = {};
780
1115
  __export(cancel_exports, {
781
1116
  $defs: () => cancel_defs_exports,
782
1117
  $input: () => $input5,
783
- $lxm: () => $lxm9,
784
- $nsid: () => $nsid15,
785
- $output: () => $output9,
786
- $params: () => $params9,
787
- main: () => main15
1118
+ $lxm: () => $lxm15,
1119
+ $nsid: () => $nsid21,
1120
+ $output: () => $output15,
1121
+ $params: () => $params15,
1122
+ main: () => main21
788
1123
  });
789
1124
 
790
1125
  // src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
791
1126
  var cancel_defs_exports = {};
792
1127
  __export(cancel_defs_exports, {
793
1128
  $input: () => $input5,
794
- $lxm: () => $lxm9,
795
- $nsid: () => $nsid15,
796
- $output: () => $output9,
797
- $params: () => $params9,
798
- main: () => main15
1129
+ $lxm: () => $lxm15,
1130
+ $nsid: () => $nsid21,
1131
+ $output: () => $output15,
1132
+ $params: () => $params15,
1133
+ main: () => main21
799
1134
  });
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(
809
- (() => main3)
1135
+ var import_lex21 = require("@atproto/lex");
1136
+ var $nsid21 = "com.atiproto.feed.subscription.cancel";
1137
+ var main21 = import_lex21.l.procedure(
1138
+ $nsid21,
1139
+ import_lex21.l.params(),
1140
+ import_lex21.l.jsonPayload({ subscriptionUri: import_lex21.l.string({ format: "at-uri" }) }),
1141
+ import_lex21.l.jsonPayload({
1142
+ subscriptionUri: import_lex21.l.string({ format: "at-uri" }),
1143
+ subscription: import_lex21.l.ref(
1144
+ (() => view3)
810
1145
  ),
811
- accessUntil: import_lex15.l.string({ format: "datetime" })
1146
+ accessUntil: import_lex21.l.string({ format: "datetime" })
812
1147
  })
813
1148
  );
814
- var $lxm9 = main15.nsid;
815
- var $params9 = main15.parameters;
816
- var $input5 = main15.input;
817
- var $output9 = main15.output;
1149
+ var $lxm15 = main21.nsid;
1150
+ var $params15 = main21.parameters;
1151
+ var $input5 = main21.input;
1152
+ var $output15 = main21.output;
818
1153
 
819
1154
  // src/lexicons/com/atiproto/feed/subscription/create.ts
820
1155
  var create_exports2 = {};
821
1156
  __export(create_exports2, {
822
1157
  $defs: () => create_defs_exports2,
823
1158
  $input: () => $input6,
824
- $lxm: () => $lxm10,
825
- $nsid: () => $nsid16,
826
- $output: () => $output10,
827
- $params: () => $params10,
828
- main: () => main16
1159
+ $lxm: () => $lxm16,
1160
+ $nsid: () => $nsid22,
1161
+ $output: () => $output16,
1162
+ $params: () => $params16,
1163
+ main: () => main22
829
1164
  });
830
1165
 
831
1166
  // src/lexicons/com/atiproto/feed/subscription/create.defs.ts
832
1167
  var create_defs_exports2 = {};
833
1168
  __export(create_defs_exports2, {
834
1169
  $input: () => $input6,
835
- $lxm: () => $lxm10,
836
- $nsid: () => $nsid16,
837
- $output: () => $output10,
838
- $params: () => $params10,
839
- main: () => main16
1170
+ $lxm: () => $lxm16,
1171
+ $nsid: () => $nsid22,
1172
+ $output: () => $output16,
1173
+ $params: () => $params16,
1174
+ main: () => main22
840
1175
  });
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" }))
1176
+ var import_lex22 = require("@atproto/lex");
1177
+ var $nsid22 = "com.atiproto.feed.subscription.create";
1178
+ var main22 = import_lex22.l.procedure(
1179
+ $nsid22,
1180
+ import_lex22.l.params(),
1181
+ import_lex22.l.jsonPayload({
1182
+ subject: import_lex22.l.string({ format: "did" }),
1183
+ amount: import_lex22.l.optional(import_lex22.l.integer()),
1184
+ currency: import_lex22.l.string({ maxLength: 3 }),
1185
+ interval: import_lex22.l.enum(["monthly", "yearly"]),
1186
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1187
+ redirectUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" })),
1188
+ isPrivate: import_lex22.l.optional(import_lex22.l.boolean())
853
1189
  }),
854
- import_lex16.l.jsonPayload({
855
- subscriptionUri: import_lex16.l.string({ format: "at-uri" }),
856
- subscription: import_lex16.l.ref(
857
- (() => main3)
1190
+ import_lex22.l.jsonPayload({
1191
+ subscriptionUri: import_lex22.l.string({ format: "at-uri" }),
1192
+ subscription: import_lex22.l.ref(
1193
+ (() => view3)
858
1194
  ),
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))
1195
+ cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1196
+ cart: import_lex22.l.optional(
1197
+ import_lex22.l.ref((() => view))
862
1198
  ),
863
- checkoutUrl: import_lex16.l.optional(import_lex16.l.string({ format: "uri" }))
1199
+ checkoutUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" }))
864
1200
  })
865
1201
  );
866
- var $lxm10 = main16.nsid;
867
- var $params10 = main16.parameters;
868
- var $input6 = main16.input;
869
- var $output10 = main16.output;
1202
+ var $lxm16 = main22.nsid;
1203
+ var $params16 = main22.parameters;
1204
+ var $input6 = main22.input;
1205
+ var $output16 = main22.output;
870
1206
 
871
1207
  // src/lexicons/com/atiproto/feed/subscription/get.ts
872
- var get_exports3 = {};
873
- __export(get_exports3, {
874
- $defs: () => get_defs_exports3,
875
- $lxm: () => $lxm11,
876
- $nsid: () => $nsid17,
877
- $output: () => $output11,
878
- $params: () => $params11,
879
- main: () => main17
1208
+ var get_exports5 = {};
1209
+ __export(get_exports5, {
1210
+ $defs: () => get_defs_exports5,
1211
+ $lxm: () => $lxm17,
1212
+ $nsid: () => $nsid23,
1213
+ $output: () => $output17,
1214
+ $params: () => $params17,
1215
+ main: () => main23
880
1216
  });
881
1217
 
882
1218
  // src/lexicons/com/atiproto/feed/subscription/get.defs.ts
883
- var get_defs_exports3 = {};
884
- __export(get_defs_exports3, {
885
- $lxm: () => $lxm11,
886
- $nsid: () => $nsid17,
887
- $output: () => $output11,
888
- $params: () => $params11,
889
- main: () => main17
1219
+ var get_defs_exports5 = {};
1220
+ __export(get_defs_exports5, {
1221
+ $lxm: () => $lxm17,
1222
+ $nsid: () => $nsid23,
1223
+ $output: () => $output17,
1224
+ $params: () => $params17,
1225
+ main: () => main23
890
1226
  });
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(
900
- (() => main3)
1227
+ var import_lex23 = require("@atproto/lex");
1228
+ var $nsid23 = "com.atiproto.feed.subscription.get";
1229
+ var main23 = import_lex23.l.query(
1230
+ $nsid23,
1231
+ import_lex23.l.params({ uri: import_lex23.l.string({ format: "at-uri" }) }),
1232
+ import_lex23.l.jsonPayload({
1233
+ uri: import_lex23.l.string({ format: "at-uri" }),
1234
+ cid: import_lex23.l.string({ format: "cid" }),
1235
+ record: import_lex23.l.ref(
1236
+ (() => view3)
901
1237
  )
902
1238
  })
903
1239
  );
904
- var $lxm11 = main17.nsid;
905
- var $params11 = main17.parameters;
906
- var $output11 = main17.output;
1240
+ var $lxm17 = main23.nsid;
1241
+ var $params17 = main23.parameters;
1242
+ var $output17 = main23.output;
907
1243
 
908
1244
  // src/lexicons/com/atiproto/feed/subscription/list.ts
909
- var list_exports3 = {};
910
- __export(list_exports3, {
911
- $defs: () => list_defs_exports3,
912
- $lxm: () => $lxm12,
913
- $nsid: () => $nsid18,
914
- $output: () => $output12,
915
- $params: () => $params12,
916
- main: () => main18,
1245
+ var list_exports5 = {};
1246
+ __export(list_exports5, {
1247
+ $defs: () => list_defs_exports5,
1248
+ $lxm: () => $lxm18,
1249
+ $nsid: () => $nsid24,
1250
+ $output: () => $output18,
1251
+ $params: () => $params18,
1252
+ main: () => main24,
917
1253
  subscriptionResponse: () => subscriptionResponse
918
1254
  });
919
1255
 
920
1256
  // src/lexicons/com/atiproto/feed/subscription/list.defs.ts
921
- var list_defs_exports3 = {};
922
- __export(list_defs_exports3, {
923
- $lxm: () => $lxm12,
924
- $nsid: () => $nsid18,
925
- $output: () => $output12,
926
- $params: () => $params12,
927
- main: () => main18,
1257
+ var list_defs_exports5 = {};
1258
+ __export(list_defs_exports5, {
1259
+ $lxm: () => $lxm18,
1260
+ $nsid: () => $nsid24,
1261
+ $output: () => $output18,
1262
+ $params: () => $params18,
1263
+ main: () => main24,
928
1264
  subscriptionResponse: () => subscriptionResponse
929
1265
  });
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))
1266
+ var import_lex24 = require("@atproto/lex");
1267
+ var $nsid24 = "com.atiproto.feed.subscription.list";
1268
+ var main24 = import_lex24.l.query(
1269
+ $nsid24,
1270
+ import_lex24.l.params(),
1271
+ import_lex24.l.jsonPayload({
1272
+ subscriptions: import_lex24.l.array(
1273
+ import_lex24.l.ref((() => subscriptionResponse))
938
1274
  ),
939
- cursor: import_lex18.l.optional(import_lex18.l.string({ maxLength: 512 }))
1275
+ cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 }))
940
1276
  })
941
1277
  );
942
- var $lxm12 = main18.nsid;
943
- var $params12 = main18.parameters;
944
- var $output12 = main18.output;
945
- var subscriptionResponse = import_lex18.l.typedObject(
946
- $nsid18,
1278
+ var $lxm18 = main24.nsid;
1279
+ var $params18 = main24.parameters;
1280
+ var $output18 = main24.output;
1281
+ var subscriptionResponse = import_lex24.l.typedObject(
1282
+ $nsid24,
947
1283
  "subscriptionResponse",
948
- import_lex18.l.object({
949
- uri: import_lex18.l.string({ format: "at-uri" }),
950
- record: import_lex18.l.ref(
951
- (() => main3)
1284
+ import_lex24.l.object({
1285
+ uri: import_lex24.l.string({ format: "at-uri" }),
1286
+ record: import_lex24.l.ref(
1287
+ (() => view3)
952
1288
  )
953
1289
  })
954
1290
  );
@@ -958,51 +1294,92 @@ var put_exports3 = {};
958
1294
  __export(put_exports3, {
959
1295
  $defs: () => put_defs_exports3,
960
1296
  $input: () => $input7,
961
- $lxm: () => $lxm13,
962
- $nsid: () => $nsid19,
963
- $output: () => $output13,
964
- $params: () => $params13,
965
- main: () => main19
1297
+ $lxm: () => $lxm19,
1298
+ $nsid: () => $nsid25,
1299
+ $output: () => $output19,
1300
+ $params: () => $params19,
1301
+ main: () => main25
966
1302
  });
967
1303
 
968
1304
  // src/lexicons/com/atiproto/feed/subscription/put.defs.ts
969
1305
  var put_defs_exports3 = {};
970
1306
  __export(put_defs_exports3, {
971
1307
  $input: () => $input7,
972
- $lxm: () => $lxm13,
973
- $nsid: () => $nsid19,
974
- $output: () => $output13,
975
- $params: () => $params13,
976
- main: () => main19
1308
+ $lxm: () => $lxm19,
1309
+ $nsid: () => $nsid25,
1310
+ $output: () => $output19,
1311
+ $params: () => $params19,
1312
+ main: () => main25
977
1313
  });
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(
1314
+ var import_lex25 = require("@atproto/lex");
1315
+ var $nsid25 = "com.atiproto.feed.subscription.put";
1316
+ var main25 = import_lex25.l.procedure(
1317
+ $nsid25,
1318
+ import_lex25.l.params(),
1319
+ import_lex25.l.jsonPayload({
1320
+ uri: import_lex25.l.string({ format: "at-uri" }),
1321
+ record: import_lex25.l.ref(
986
1322
  (() => main3)
987
1323
  )
988
1324
  }),
989
- import_lex19.l.jsonPayload({
990
- uri: import_lex19.l.string({ format: "at-uri" }),
991
- cid: import_lex19.l.string({ format: "cid" })
1325
+ import_lex25.l.jsonPayload({
1326
+ uri: import_lex25.l.string({ format: "at-uri" }),
1327
+ cid: import_lex25.l.string({ format: "cid" })
1328
+ })
1329
+ );
1330
+ var $lxm19 = main25.nsid;
1331
+ var $params19 = main25.parameters;
1332
+ var $input7 = main25.input;
1333
+ var $output19 = main25.output;
1334
+
1335
+ // src/lexicons/com/atiproto/feed/subscription/validate.ts
1336
+ var validate_exports3 = {};
1337
+ __export(validate_exports3, {
1338
+ $defs: () => validate_defs_exports3,
1339
+ $lxm: () => $lxm20,
1340
+ $nsid: () => $nsid26,
1341
+ $output: () => $output20,
1342
+ $params: () => $params20,
1343
+ main: () => main26
1344
+ });
1345
+
1346
+ // src/lexicons/com/atiproto/feed/subscription/validate.defs.ts
1347
+ var validate_defs_exports3 = {};
1348
+ __export(validate_defs_exports3, {
1349
+ $lxm: () => $lxm20,
1350
+ $nsid: () => $nsid26,
1351
+ $output: () => $output20,
1352
+ $params: () => $params20,
1353
+ main: () => main26
1354
+ });
1355
+ var import_lex26 = require("@atproto/lex");
1356
+ var $nsid26 = "com.atiproto.feed.subscription.validate";
1357
+ var main26 = import_lex26.l.query(
1358
+ $nsid26,
1359
+ import_lex26.l.params({
1360
+ subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1361
+ subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1362
+ amount: import_lex26.l.optional(import_lex26.l.integer())
1363
+ }),
1364
+ import_lex26.l.jsonPayload({
1365
+ valid: import_lex26.l.boolean(),
1366
+ amount: import_lex26.l.optional(import_lex26.l.integer()),
1367
+ currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
1368
+ reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
992
1369
  })
993
1370
  );
994
- var $lxm13 = main19.nsid;
995
- var $params13 = main19.parameters;
996
- var $input7 = main19.input;
997
- var $output13 = main19.output;
1371
+ var $lxm20 = main26.nsid;
1372
+ var $params20 = main26.parameters;
1373
+ var $output20 = main26.output;
998
1374
 
999
1375
  // src/lexicons/com/atiproto/feed/tip.ts
1000
- var tip_exports = {};
1001
- __export(tip_exports, {
1376
+ var tip_exports2 = {};
1377
+ __export(tip_exports2, {
1002
1378
  create: () => create_exports3,
1003
- get: () => get_exports4,
1004
- list: () => list_exports4,
1005
- put: () => put_exports4
1379
+ get: () => get_exports6,
1380
+ list: () => list_exports6,
1381
+ put: () => put_exports4,
1382
+ validate: () => validate_exports4
1006
1383
  });
1007
1384
 
1008
1385
  // src/lexicons/com/atiproto/feed/tip/create.ts
@@ -1010,161 +1387,203 @@ var create_exports3 = {};
1010
1387
  __export(create_exports3, {
1011
1388
  $defs: () => create_defs_exports3,
1012
1389
  $input: () => $input8,
1013
- $lxm: () => $lxm14,
1014
- $nsid: () => $nsid20,
1015
- $output: () => $output14,
1016
- $params: () => $params14,
1017
- main: () => main20
1390
+ $lxm: () => $lxm21,
1391
+ $nsid: () => $nsid27,
1392
+ $output: () => $output21,
1393
+ $params: () => $params21,
1394
+ main: () => main27
1018
1395
  });
1019
1396
 
1020
1397
  // src/lexicons/com/atiproto/feed/tip/create.defs.ts
1021
1398
  var create_defs_exports3 = {};
1022
1399
  __export(create_defs_exports3, {
1023
1400
  $input: () => $input8,
1024
- $lxm: () => $lxm14,
1025
- $nsid: () => $nsid20,
1026
- $output: () => $output14,
1027
- $params: () => $params14,
1028
- main: () => main20
1401
+ $lxm: () => $lxm21,
1402
+ $nsid: () => $nsid27,
1403
+ $output: () => $output21,
1404
+ $params: () => $params21,
1405
+ main: () => main27
1029
1406
  });
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 }))
1407
+ var import_lex27 = require("@atproto/lex");
1408
+ var $nsid27 = "com.atiproto.feed.tip.create";
1409
+ var main27 = import_lex27.l.procedure(
1410
+ $nsid27,
1411
+ import_lex27.l.params(),
1412
+ import_lex27.l.jsonPayload({
1413
+ subject: import_lex27.l.string({ format: "did" }),
1414
+ recordUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1415
+ amount: import_lex27.l.integer(),
1416
+ currency: import_lex27.l.string({ maxLength: 3 }),
1417
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1418
+ redirectUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" })),
1419
+ message: import_lex27.l.optional(import_lex27.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
1420
+ isPrivate: import_lex27.l.optional(import_lex27.l.boolean())
1043
1421
  }),
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))
1422
+ import_lex27.l.jsonPayload({
1423
+ tipUri: import_lex27.l.string({ format: "at-uri" }),
1424
+ tip: import_lex27.l.ref((() => view2)),
1425
+ cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1426
+ cart: import_lex27.l.optional(
1427
+ import_lex27.l.ref((() => view))
1050
1428
  ),
1051
- checkoutUrl: import_lex20.l.optional(import_lex20.l.string({ format: "uri" }))
1429
+ checkoutUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" }))
1052
1430
  })
1053
1431
  );
1054
- var $lxm14 = main20.nsid;
1055
- var $params14 = main20.parameters;
1056
- var $input8 = main20.input;
1057
- var $output14 = main20.output;
1432
+ var $lxm21 = main27.nsid;
1433
+ var $params21 = main27.parameters;
1434
+ var $input8 = main27.input;
1435
+ var $output21 = main27.output;
1058
1436
 
1059
1437
  // src/lexicons/com/atiproto/feed/tip/get.ts
1060
- var get_exports4 = {};
1061
- __export(get_exports4, {
1062
- $defs: () => get_defs_exports4,
1063
- $lxm: () => $lxm15,
1064
- $nsid: () => $nsid21,
1065
- $output: () => $output15,
1066
- $params: () => $params15,
1067
- main: () => main21
1438
+ var get_exports6 = {};
1439
+ __export(get_exports6, {
1440
+ $defs: () => get_defs_exports6,
1441
+ $lxm: () => $lxm22,
1442
+ $nsid: () => $nsid28,
1443
+ $output: () => $output22,
1444
+ $params: () => $params22,
1445
+ main: () => main28
1068
1446
  });
1069
1447
 
1070
1448
  // src/lexicons/com/atiproto/feed/tip/get.defs.ts
1071
- var get_defs_exports4 = {};
1072
- __export(get_defs_exports4, {
1073
- $lxm: () => $lxm15,
1074
- $nsid: () => $nsid21,
1075
- $output: () => $output15,
1076
- $params: () => $params15,
1077
- main: () => main21
1449
+ var get_defs_exports6 = {};
1450
+ __export(get_defs_exports6, {
1451
+ $lxm: () => $lxm22,
1452
+ $nsid: () => $nsid28,
1453
+ $output: () => $output22,
1454
+ $params: () => $params22,
1455
+ main: () => main28
1078
1456
  });
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))
1457
+ var import_lex28 = require("@atproto/lex");
1458
+ var $nsid28 = "com.atiproto.feed.tip.get";
1459
+ var main28 = import_lex28.l.query(
1460
+ $nsid28,
1461
+ import_lex28.l.params({ uri: import_lex28.l.string({ format: "at-uri" }) }),
1462
+ import_lex28.l.jsonPayload({
1463
+ uri: import_lex28.l.string({ format: "at-uri" }),
1464
+ cid: import_lex28.l.string({ format: "cid" }),
1465
+ value: import_lex28.l.ref((() => view2))
1088
1466
  })
1089
1467
  );
1090
- var $lxm15 = main21.nsid;
1091
- var $params15 = main21.parameters;
1092
- var $output15 = main21.output;
1468
+ var $lxm22 = main28.nsid;
1469
+ var $params22 = main28.parameters;
1470
+ var $output22 = main28.output;
1093
1471
 
1094
1472
  // src/lexicons/com/atiproto/feed/tip/list.ts
1095
- var list_exports4 = {};
1096
- __export(list_exports4, {
1097
- $defs: () => list_defs_exports4,
1098
- $lxm: () => $lxm16,
1099
- $nsid: () => $nsid22,
1100
- $output: () => $output16,
1101
- $params: () => $params16,
1102
- main: () => main22
1473
+ var list_exports6 = {};
1474
+ __export(list_exports6, {
1475
+ $defs: () => list_defs_exports6,
1476
+ $lxm: () => $lxm23,
1477
+ $nsid: () => $nsid29,
1478
+ $output: () => $output23,
1479
+ $params: () => $params23,
1480
+ main: () => main29
1103
1481
  });
1104
1482
 
1105
1483
  // src/lexicons/com/atiproto/feed/tip/list.defs.ts
1106
- var list_defs_exports4 = {};
1107
- __export(list_defs_exports4, {
1108
- $lxm: () => $lxm16,
1109
- $nsid: () => $nsid22,
1110
- $output: () => $output16,
1111
- $params: () => $params16,
1112
- main: () => main22
1113
- });
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 }))
1484
+ var list_defs_exports6 = {};
1485
+ __export(list_defs_exports6, {
1486
+ $lxm: () => $lxm23,
1487
+ $nsid: () => $nsid29,
1488
+ $output: () => $output23,
1489
+ $params: () => $params23,
1490
+ main: () => main29
1491
+ });
1492
+ var import_lex29 = require("@atproto/lex");
1493
+ var $nsid29 = "com.atiproto.feed.tip.list";
1494
+ var main29 = import_lex29.l.query(
1495
+ $nsid29,
1496
+ import_lex29.l.params(),
1497
+ import_lex29.l.jsonPayload({
1498
+ records: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1499
+ cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
1122
1500
  })
1123
1501
  );
1124
- var $lxm16 = main22.nsid;
1125
- var $params16 = main22.parameters;
1126
- var $output16 = main22.output;
1502
+ var $lxm23 = main29.nsid;
1503
+ var $params23 = main29.parameters;
1504
+ var $output23 = main29.output;
1127
1505
 
1128
1506
  // src/lexicons/com/atiproto/feed/tip/put.ts
1129
1507
  var put_exports4 = {};
1130
1508
  __export(put_exports4, {
1131
1509
  $defs: () => put_defs_exports4,
1132
1510
  $input: () => $input9,
1133
- $lxm: () => $lxm17,
1134
- $nsid: () => $nsid23,
1135
- $output: () => $output17,
1136
- $params: () => $params17,
1137
- main: () => main23
1511
+ $lxm: () => $lxm24,
1512
+ $nsid: () => $nsid30,
1513
+ $output: () => $output24,
1514
+ $params: () => $params24,
1515
+ main: () => main30
1138
1516
  });
1139
1517
 
1140
1518
  // src/lexicons/com/atiproto/feed/tip/put.defs.ts
1141
1519
  var put_defs_exports4 = {};
1142
1520
  __export(put_defs_exports4, {
1143
1521
  $input: () => $input9,
1144
- $lxm: () => $lxm17,
1145
- $nsid: () => $nsid23,
1146
- $output: () => $output17,
1147
- $params: () => $params17,
1148
- main: () => main23
1149
- });
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))
1522
+ $lxm: () => $lxm24,
1523
+ $nsid: () => $nsid30,
1524
+ $output: () => $output24,
1525
+ $params: () => $params24,
1526
+ main: () => main30
1527
+ });
1528
+ var import_lex30 = require("@atproto/lex");
1529
+ var $nsid30 = "com.atiproto.feed.tip.put";
1530
+ var main30 = import_lex30.l.procedure(
1531
+ $nsid30,
1532
+ import_lex30.l.params(),
1533
+ import_lex30.l.jsonPayload({
1534
+ uri: import_lex30.l.string({ format: "at-uri" }),
1535
+ record: import_lex30.l.ref((() => main2))
1158
1536
  }),
1159
- import_lex23.l.jsonPayload({
1160
- uri: import_lex23.l.string({ format: "at-uri" }),
1161
- cid: import_lex23.l.string({ format: "cid" })
1537
+ import_lex30.l.jsonPayload({
1538
+ uri: import_lex30.l.string({ format: "at-uri" }),
1539
+ cid: import_lex30.l.string({ format: "cid" })
1162
1540
  })
1163
1541
  );
1164
- var $lxm17 = main23.nsid;
1165
- var $params17 = main23.parameters;
1166
- var $input9 = main23.input;
1167
- var $output17 = main23.output;
1542
+ var $lxm24 = main30.nsid;
1543
+ var $params24 = main30.parameters;
1544
+ var $input9 = main30.input;
1545
+ var $output24 = main30.output;
1546
+
1547
+ // src/lexicons/com/atiproto/feed/tip/validate.ts
1548
+ var validate_exports4 = {};
1549
+ __export(validate_exports4, {
1550
+ $defs: () => validate_defs_exports4,
1551
+ $lxm: () => $lxm25,
1552
+ $nsid: () => $nsid31,
1553
+ $output: () => $output25,
1554
+ $params: () => $params25,
1555
+ main: () => main31
1556
+ });
1557
+
1558
+ // src/lexicons/com/atiproto/feed/tip/validate.defs.ts
1559
+ var validate_defs_exports4 = {};
1560
+ __export(validate_defs_exports4, {
1561
+ $lxm: () => $lxm25,
1562
+ $nsid: () => $nsid31,
1563
+ $output: () => $output25,
1564
+ $params: () => $params25,
1565
+ main: () => main31
1566
+ });
1567
+ var import_lex31 = require("@atproto/lex");
1568
+ var $nsid31 = "com.atiproto.feed.tip.validate";
1569
+ var main31 = import_lex31.l.query(
1570
+ $nsid31,
1571
+ import_lex31.l.params({
1572
+ tipUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1573
+ recordUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1574
+ subject: import_lex31.l.optional(import_lex31.l.string({ format: "did" })),
1575
+ amount: import_lex31.l.optional(import_lex31.l.integer())
1576
+ }),
1577
+ import_lex31.l.jsonPayload({
1578
+ valid: import_lex31.l.boolean(),
1579
+ amount: import_lex31.l.optional(import_lex31.l.integer()),
1580
+ currency: import_lex31.l.optional(import_lex31.l.string({ maxLength: 3 })),
1581
+ reason: import_lex31.l.optional(import_lex31.l.string({ maxLength: 1024 }))
1582
+ })
1583
+ );
1584
+ var $lxm25 = main31.nsid;
1585
+ var $params25 = main31.parameters;
1586
+ var $output25 = main31.output;
1168
1587
 
1169
1588
  // src/lexicons/com/atiproto/profile.ts
1170
1589
  var profile_exports2 = {};
@@ -1183,296 +1602,189 @@ __export(profile_exports2, {
1183
1602
  $safeValidate: () => $safeValidate4,
1184
1603
  $type: () => $type4,
1185
1604
  $validate: () => $validate4,
1186
- main: () => main9
1605
+ main: () => main9,
1606
+ view: () => view4
1187
1607
  });
1188
1608
 
1189
1609
  // src/lexicons/com/atiproto/repo.ts
1190
1610
  var repo_exports = {};
1191
1611
  __export(repo_exports, {
1192
1612
  profile: () => profile_exports3,
1193
- subscription: () => subscription_exports2,
1194
- tip: () => tip_exports2
1613
+ subscription: () => subscription_exports3,
1614
+ tip: () => tip_exports3
1195
1615
  });
1196
1616
 
1197
1617
  // src/lexicons/com/atiproto/repo/profile.ts
1198
1618
  var profile_exports3 = {};
1199
1619
  __export(profile_exports3, {
1200
- get: () => get_exports5
1620
+ get: () => get_exports7
1201
1621
  });
1202
1622
 
1203
1623
  // src/lexicons/com/atiproto/repo/profile/get.ts
1204
- var get_exports5 = {};
1205
- __export(get_exports5, {
1206
- $defs: () => get_defs_exports5,
1207
- $lxm: () => $lxm18,
1208
- $nsid: () => $nsid24,
1209
- $output: () => $output18,
1210
- $params: () => $params18,
1211
- main: () => main24
1624
+ var get_exports7 = {};
1625
+ __export(get_exports7, {
1626
+ $defs: () => get_defs_exports7,
1627
+ $lxm: () => $lxm26,
1628
+ $nsid: () => $nsid32,
1629
+ $output: () => $output26,
1630
+ $params: () => $params26,
1631
+ main: () => main32
1212
1632
  });
1213
1633
 
1214
1634
  // src/lexicons/com/atiproto/repo/profile/get.defs.ts
1215
- var get_defs_exports5 = {};
1216
- __export(get_defs_exports5, {
1217
- $lxm: () => $lxm18,
1218
- $nsid: () => $nsid24,
1219
- $output: () => $output18,
1220
- $params: () => $params18,
1221
- main: () => main24
1222
- });
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))
1635
+ var get_defs_exports7 = {};
1636
+ __export(get_defs_exports7, {
1637
+ $lxm: () => $lxm26,
1638
+ $nsid: () => $nsid32,
1639
+ $output: () => $output26,
1640
+ $params: () => $params26,
1641
+ main: () => main32
1642
+ });
1643
+ var import_lex32 = require("@atproto/lex");
1644
+ var $nsid32 = "com.atiproto.repo.profile.get";
1645
+ var main32 = import_lex32.l.query(
1646
+ $nsid32,
1647
+ import_lex32.l.params({ did: import_lex32.l.string({ format: "did" }) }),
1648
+ import_lex32.l.jsonPayload({
1649
+ did: import_lex32.l.string({ format: "did" }),
1650
+ profile: import_lex32.l.ref((() => view4))
1231
1651
  })
1232
1652
  );
1233
- var $lxm18 = main24.nsid;
1234
- var $params18 = main24.parameters;
1235
- var $output18 = main24.output;
1653
+ var $lxm26 = main32.nsid;
1654
+ var $params26 = main32.parameters;
1655
+ var $output26 = main32.output;
1236
1656
 
1237
1657
  // src/lexicons/com/atiproto/repo/subscription.ts
1238
- var subscription_exports2 = {};
1239
- __export(subscription_exports2, {
1240
- search: () => search_exports,
1241
- validate: () => validate_exports
1242
- });
1243
-
1244
- // src/lexicons/com/atiproto/repo/subscription/search.ts
1245
- var search_exports = {};
1246
- __export(search_exports, {
1247
- $defs: () => search_defs_exports,
1248
- $lxm: () => $lxm19,
1249
- $nsid: () => $nsid25,
1250
- $output: () => $output19,
1251
- $params: () => $params19,
1252
- main: () => main25,
1253
- subscriptionResponse: () => subscriptionResponse2
1254
- });
1255
-
1256
- // src/lexicons/com/atiproto/repo/subscription/search.defs.ts
1257
- var search_defs_exports = {};
1258
- __export(search_defs_exports, {
1259
- $lxm: () => $lxm19,
1260
- $nsid: () => $nsid25,
1261
- $output: () => $output19,
1262
- $params: () => $params19,
1263
- main: () => main25,
1264
- subscriptionResponse: () => subscriptionResponse2
1265
- });
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)
1275
- )
1658
+ var subscription_exports3 = {};
1659
+ __export(subscription_exports3, {
1660
+ count: () => count_exports
1661
+ });
1662
+
1663
+ // src/lexicons/com/atiproto/repo/subscription/count.ts
1664
+ var count_exports = {};
1665
+ __export(count_exports, {
1666
+ $defs: () => count_defs_exports,
1667
+ $lxm: () => $lxm27,
1668
+ $nsid: () => $nsid33,
1669
+ $output: () => $output27,
1670
+ $params: () => $params27,
1671
+ main: () => main33
1672
+ });
1673
+
1674
+ // src/lexicons/com/atiproto/repo/subscription/count.defs.ts
1675
+ var count_defs_exports = {};
1676
+ __export(count_defs_exports, {
1677
+ $lxm: () => $lxm27,
1678
+ $nsid: () => $nsid33,
1679
+ $output: () => $output27,
1680
+ $params: () => $params27,
1681
+ main: () => main33
1682
+ });
1683
+ var import_lex33 = require("@atproto/lex");
1684
+ var $nsid33 = "com.atiproto.repo.subscription.count";
1685
+ var main33 = import_lex33.l.query(
1686
+ $nsid33,
1687
+ import_lex33.l.params({
1688
+ subject: import_lex33.l.optional(import_lex33.l.string({ format: "did" })),
1689
+ startDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" })),
1690
+ endDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" }))
1276
1691
  }),
1277
- import_lex25.l.jsonPayload({
1278
- subscriptions: import_lex25.l.array(
1279
- import_lex25.l.ref((() => subscriptionResponse2))
1280
- ),
1281
- cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 }))
1282
- })
1283
- );
1284
- var $lxm19 = main25.nsid;
1285
- var $params19 = main25.parameters;
1286
- var $output19 = main25.output;
1287
- var subscriptionResponse2 = import_lex25.l.typedObject(
1288
- $nsid25,
1289
- "subscriptionResponse",
1290
- import_lex25.l.object({
1291
- uri: import_lex25.l.string({ format: "at-uri" }),
1292
- record: import_lex25.l.ref(
1293
- (() => main3)
1294
- )
1692
+ import_lex33.l.jsonPayload({
1693
+ count: import_lex33.l.integer(),
1694
+ amount: import_lex33.l.optional(import_lex33.l.integer()),
1695
+ currency: import_lex33.l.optional(import_lex33.l.string({ maxLength: 3 }))
1295
1696
  })
1296
1697
  );
1698
+ var $lxm27 = main33.nsid;
1699
+ var $params27 = main33.parameters;
1700
+ var $output27 = main33.output;
1297
1701
 
1298
- // src/lexicons/com/atiproto/repo/subscription/validate.ts
1299
- var validate_exports = {};
1300
- __export(validate_exports, {
1301
- $defs: () => validate_defs_exports,
1302
- $lxm: () => $lxm20,
1303
- $nsid: () => $nsid26,
1304
- $output: () => $output20,
1305
- $params: () => $params20,
1306
- main: () => main26
1307
- });
1308
-
1309
- // src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
1310
- var validate_defs_exports = {};
1311
- __export(validate_defs_exports, {
1312
- $lxm: () => $lxm20,
1313
- $nsid: () => $nsid26,
1314
- $output: () => $output20,
1315
- $params: () => $params20,
1316
- main: () => main26
1317
- });
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())
1702
+ // src/lexicons/com/atiproto/repo/tip.ts
1703
+ var tip_exports3 = {};
1704
+ __export(tip_exports3, {
1705
+ count: () => count_exports2
1706
+ });
1707
+
1708
+ // src/lexicons/com/atiproto/repo/tip/count.ts
1709
+ var count_exports2 = {};
1710
+ __export(count_exports2, {
1711
+ $defs: () => count_defs_exports2,
1712
+ $lxm: () => $lxm28,
1713
+ $nsid: () => $nsid34,
1714
+ $output: () => $output28,
1715
+ $params: () => $params28,
1716
+ main: () => main34
1717
+ });
1718
+
1719
+ // src/lexicons/com/atiproto/repo/tip/count.defs.ts
1720
+ var count_defs_exports2 = {};
1721
+ __export(count_defs_exports2, {
1722
+ $lxm: () => $lxm28,
1723
+ $nsid: () => $nsid34,
1724
+ $output: () => $output28,
1725
+ $params: () => $params28,
1726
+ main: () => main34
1727
+ });
1728
+ var import_lex34 = require("@atproto/lex");
1729
+ var $nsid34 = "com.atiproto.repo.tip.count";
1730
+ var main34 = import_lex34.l.query(
1731
+ $nsid34,
1732
+ import_lex34.l.params({
1733
+ recordUri: import_lex34.l.optional(import_lex34.l.string({ format: "at-uri" })),
1734
+ subject: import_lex34.l.optional(import_lex34.l.string({ format: "did" })),
1735
+ startDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" })),
1736
+ endDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" }))
1327
1737
  }),
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 }))
1738
+ import_lex34.l.jsonPayload({
1739
+ count: import_lex34.l.integer(),
1740
+ amount: import_lex34.l.optional(import_lex34.l.integer()),
1741
+ currency: import_lex34.l.optional(import_lex34.l.string({ maxLength: 3 }))
1333
1742
  })
1334
1743
  );
1335
- var $lxm20 = main26.nsid;
1336
- var $params20 = main26.parameters;
1337
- var $output20 = main26.output;
1744
+ var $lxm28 = main34.nsid;
1745
+ var $params28 = main34.parameters;
1746
+ var $output28 = main34.output;
1338
1747
 
1339
- // src/lexicons/com/atiproto/repo/tip.ts
1340
- var tip_exports2 = {};
1341
- __export(tip_exports2, {
1342
- search: () => search_exports2,
1343
- validate: () => validate_exports2
1748
+ // src/lexicons/com/atiproto/subscription.ts
1749
+ var subscription_exports4 = {};
1750
+ __export(subscription_exports4, {
1751
+ $assert: () => $assert3,
1752
+ $build: () => $build3,
1753
+ $cast: () => $cast3,
1754
+ $check: () => $check3,
1755
+ $defs: () => subscription_defs_exports,
1756
+ $ifMatches: () => $ifMatches3,
1757
+ $isTypeOf: () => $isTypeOf3,
1758
+ $matches: () => $matches3,
1759
+ $nsid: () => $nsid3,
1760
+ $parse: () => $parse3,
1761
+ $safeParse: () => $safeParse3,
1762
+ $safeValidate: () => $safeValidate3,
1763
+ $type: () => $type3,
1764
+ $validate: () => $validate3,
1765
+ main: () => main3,
1766
+ view: () => view3
1344
1767
  });
1345
1768
 
1346
- // src/lexicons/com/atiproto/repo/tip/search.ts
1347
- var search_exports2 = {};
1348
- __export(search_exports2, {
1349
- $defs: () => search_defs_exports2,
1350
- $lxm: () => $lxm21,
1351
- $nsid: () => $nsid27,
1352
- $output: () => $output21,
1353
- $params: () => $params21,
1354
- main: () => main27,
1355
- tipResponse: () => tipResponse
1356
- });
1357
-
1358
- // src/lexicons/com/atiproto/repo/tip/search.defs.ts
1359
- var search_defs_exports2 = {};
1360
- __export(search_defs_exports2, {
1361
- $lxm: () => $lxm21,
1362
- $nsid: () => $nsid27,
1363
- $output: () => $output21,
1364
- $params: () => $params21,
1365
- main: () => main27,
1366
- tipResponse: () => tipResponse
1367
- });
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)
1377
- )
1378
- }),
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 }))
1382
- })
1383
- );
1384
- var $lxm21 = main27.nsid;
1385
- var $params21 = main27.parameters;
1386
- var $output21 = main27.output;
1387
- var tipResponse = import_lex27.l.typedObject(
1388
- $nsid27,
1389
- "tipResponse",
1390
- import_lex27.l.object({
1391
- uri: import_lex27.l.string({ format: "at-uri" }),
1392
- record: import_lex27.l.ref((() => main2))
1393
- })
1394
- );
1395
-
1396
- // src/lexicons/com/atiproto/repo/tip/validate.ts
1397
- var validate_exports2 = {};
1398
- __export(validate_exports2, {
1399
- $defs: () => validate_defs_exports2,
1400
- $lxm: () => $lxm22,
1401
- $nsid: () => $nsid28,
1402
- $output: () => $output22,
1403
- $params: () => $params22,
1404
- main: () => main28
1405
- });
1406
-
1407
- // src/lexicons/com/atiproto/repo/tip/validate.defs.ts
1408
- var validate_defs_exports2 = {};
1409
- __export(validate_defs_exports2, {
1410
- $lxm: () => $lxm22,
1411
- $nsid: () => $nsid28,
1412
- $output: () => $output22,
1413
- $params: () => $params22,
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())
1426
- }),
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 }))
1432
- })
1433
- );
1434
- var $lxm22 = main28.nsid;
1435
- var $params22 = main28.parameters;
1436
- var $output22 = main28.output;
1437
-
1438
- // src/lexicons/com/atiproto/subscription.ts
1439
- var subscription_exports3 = {};
1440
- __export(subscription_exports3, {
1441
- $assert: () => $assert3,
1442
- $build: () => $build3,
1443
- $cast: () => $cast3,
1444
- $check: () => $check3,
1445
- $defs: () => subscription_defs_exports,
1446
- $ifMatches: () => $ifMatches3,
1447
- $isTypeOf: () => $isTypeOf3,
1448
- $matches: () => $matches3,
1449
- $nsid: () => $nsid3,
1450
- $parse: () => $parse3,
1451
- $safeParse: () => $safeParse3,
1452
- $safeValidate: () => $safeValidate3,
1453
- $type: () => $type3,
1454
- $validate: () => $validate3,
1455
- main: () => main3
1456
- });
1457
-
1458
- // src/lexicons/com/atiproto/tip.ts
1459
- var tip_exports3 = {};
1460
- __export(tip_exports3, {
1461
- $assert: () => $assert2,
1462
- $build: () => $build2,
1463
- $cast: () => $cast2,
1464
- $check: () => $check2,
1465
- $defs: () => tip_defs_exports,
1466
- $ifMatches: () => $ifMatches2,
1467
- $isTypeOf: () => $isTypeOf2,
1468
- $matches: () => $matches2,
1469
- $nsid: () => $nsid2,
1470
- $parse: () => $parse2,
1471
- $safeParse: () => $safeParse2,
1472
- $safeValidate: () => $safeValidate2,
1473
- $type: () => $type2,
1474
- $validate: () => $validate2,
1475
- main: () => main2
1769
+ // src/lexicons/com/atiproto/tip.ts
1770
+ var tip_exports4 = {};
1771
+ __export(tip_exports4, {
1772
+ $assert: () => $assert2,
1773
+ $build: () => $build2,
1774
+ $cast: () => $cast2,
1775
+ $check: () => $check2,
1776
+ $defs: () => tip_defs_exports,
1777
+ $ifMatches: () => $ifMatches2,
1778
+ $isTypeOf: () => $isTypeOf2,
1779
+ $matches: () => $matches2,
1780
+ $nsid: () => $nsid2,
1781
+ $parse: () => $parse2,
1782
+ $safeParse: () => $safeParse2,
1783
+ $safeValidate: () => $safeValidate2,
1784
+ $type: () => $type2,
1785
+ $validate: () => $validate2,
1786
+ main: () => main2,
1787
+ view: () => view2
1476
1788
  });
1477
1789
 
1478
1790
  // src/schemas/account/cart/clone.json
@@ -1516,7 +1828,7 @@ var clone_default = {
1516
1828
  properties: {
1517
1829
  cart: {
1518
1830
  type: "ref",
1519
- ref: "com.atiproto.cart",
1831
+ ref: "com.atiproto.cart#view",
1520
1832
  description: "The new cart record"
1521
1833
  },
1522
1834
  cartUri: {
@@ -1533,7 +1845,7 @@ var clone_default = {
1533
1845
  type: "array",
1534
1846
  items: {
1535
1847
  type: "ref",
1536
- ref: "com.atiproto.tip"
1848
+ ref: "com.atiproto.tip#view"
1537
1849
  },
1538
1850
  description: "Newly created tip records"
1539
1851
  },
@@ -1541,7 +1853,7 @@ var clone_default = {
1541
1853
  type: "array",
1542
1854
  items: {
1543
1855
  type: "ref",
1544
- ref: "com.atiproto.subscription"
1856
+ ref: "com.atiproto.subscription#view"
1545
1857
  },
1546
1858
  description: "Newly created subscription records"
1547
1859
  }
@@ -1583,22 +1895,332 @@ var create_default = {
1583
1895
  encoding: "application/json",
1584
1896
  schema: {
1585
1897
  type: "object",
1586
- required: ["cart", "cartUri", "checkoutUrl"],
1898
+ required: ["cart", "cartUri", "checkoutUrl"],
1899
+ properties: {
1900
+ cart: {
1901
+ type: "ref",
1902
+ ref: "com.atiproto.cart#view",
1903
+ description: "The created cart record"
1904
+ },
1905
+ cartUri: {
1906
+ type: "string",
1907
+ format: "at-uri",
1908
+ description: "URI of the cart record"
1909
+ },
1910
+ checkoutUrl: {
1911
+ type: "string",
1912
+ format: "uri",
1913
+ description: "Checkout URL hosted by atiproto"
1914
+ }
1915
+ }
1916
+ }
1917
+ }
1918
+ }
1919
+ }
1920
+ };
1921
+
1922
+ // src/schemas/account/cart/get.json
1923
+ var get_default = {
1924
+ lexicon: 1,
1925
+ id: "com.atiproto.account.cart.get",
1926
+ defs: {
1927
+ main: {
1928
+ type: "query",
1929
+ description: "Get a specific cart by URI, including resolved tip and subscription records",
1930
+ parameters: {
1931
+ type: "params",
1932
+ required: ["uri"],
1933
+ properties: {
1934
+ uri: {
1935
+ type: "string",
1936
+ format: "at-uri",
1937
+ description: "AT-URI of the cart record"
1938
+ }
1939
+ }
1940
+ },
1941
+ output: {
1942
+ encoding: "application/json",
1943
+ schema: {
1944
+ type: "object",
1945
+ required: ["uri", "cart", "tips", "subscriptions"],
1946
+ properties: {
1947
+ uri: {
1948
+ type: "string",
1949
+ format: "at-uri",
1950
+ description: "Cart record URI"
1951
+ },
1952
+ cid: {
1953
+ type: "string",
1954
+ format: "cid",
1955
+ description: "Cart record CID"
1956
+ },
1957
+ cart: {
1958
+ type: "ref",
1959
+ ref: "com.atiproto.cart#view",
1960
+ description: "The cart record data"
1961
+ },
1962
+ checkoutUrl: {
1963
+ type: "string",
1964
+ format: "uri",
1965
+ description: "Checkout URL, only present when cart status is open"
1966
+ },
1967
+ tips: {
1968
+ type: "array",
1969
+ items: {
1970
+ type: "ref",
1971
+ ref: "com.atiproto.tip#view"
1972
+ },
1973
+ description: "Resolved tip records referenced by this cart"
1974
+ },
1975
+ subscriptions: {
1976
+ type: "array",
1977
+ items: {
1978
+ type: "ref",
1979
+ ref: "com.atiproto.subscription#view"
1980
+ },
1981
+ description: "Resolved subscription records referenced by this cart"
1982
+ }
1983
+ }
1984
+ }
1985
+ }
1986
+ }
1987
+ }
1988
+ };
1989
+
1990
+ // src/schemas/account/cart/list.json
1991
+ var list_default = {
1992
+ lexicon: 1,
1993
+ id: "com.atiproto.account.cart.list",
1994
+ defs: {
1995
+ main: {
1996
+ type: "query",
1997
+ description: "List carts for the authenticated user",
1998
+ input: {
1999
+ encoding: "application/json",
2000
+ schema: {
2001
+ type: "object",
2002
+ properties: {
2003
+ status: {
2004
+ type: "string",
2005
+ maxLength: 64,
2006
+ enum: ["open", "completed", "expired", "abandoned"],
2007
+ description: "Filter by cart status"
2008
+ },
2009
+ cursor: {
2010
+ type: "string",
2011
+ maxLength: 512,
2012
+ description: "Pagination cursor"
2013
+ },
2014
+ limit: {
2015
+ type: "integer",
2016
+ default: 20,
2017
+ minimum: 1,
2018
+ maximum: 100,
2019
+ description: "Results per page (1-100, default: 20)"
2020
+ }
2021
+ }
2022
+ }
2023
+ },
2024
+ output: {
2025
+ encoding: "application/json",
2026
+ schema: {
2027
+ type: "object",
2028
+ properties: {
2029
+ carts: {
2030
+ type: "array",
2031
+ items: {
2032
+ type: "ref",
2033
+ ref: "#cartResponse"
2034
+ }
2035
+ },
2036
+ cursor: {
2037
+ type: "string",
2038
+ maxLength: 512,
2039
+ description: "Pagination cursor for next page"
2040
+ }
2041
+ },
2042
+ required: ["carts"]
2043
+ }
2044
+ }
2045
+ },
2046
+ cartResponse: {
2047
+ type: "object",
2048
+ required: ["uri", "cid", "record"],
2049
+ properties: {
2050
+ uri: {
2051
+ type: "string",
2052
+ format: "at-uri",
2053
+ description: "AT-URI of the cart record"
2054
+ },
2055
+ cid: {
2056
+ type: "string",
2057
+ format: "cid",
2058
+ description: "CID of the cart record"
2059
+ },
2060
+ record: {
2061
+ type: "ref",
2062
+ ref: "com.atiproto.cart#view"
2063
+ }
2064
+ }
2065
+ }
2066
+ }
2067
+ };
2068
+
2069
+ // src/schemas/account/cart/put.json
2070
+ var put_default = {
2071
+ lexicon: 1,
2072
+ id: "com.atiproto.account.cart.put",
2073
+ defs: {
2074
+ main: {
2075
+ type: "procedure",
2076
+ description: "Update a cart. Only open carts can be updated.",
2077
+ input: {
2078
+ encoding: "application/json",
2079
+ schema: {
2080
+ type: "object",
2081
+ required: ["uri", "record"],
2082
+ properties: {
2083
+ uri: {
2084
+ type: "string",
2085
+ format: "at-uri",
2086
+ description: "AT-URI of the cart to update"
2087
+ },
2088
+ record: {
2089
+ type: "ref",
2090
+ ref: "com.atiproto.cart"
2091
+ }
2092
+ }
2093
+ }
2094
+ },
2095
+ output: {
2096
+ encoding: "application/json",
2097
+ schema: {
2098
+ type: "object",
2099
+ required: ["uri", "cid"],
2100
+ properties: {
2101
+ uri: {
2102
+ type: "string",
2103
+ format: "at-uri",
2104
+ description: "Updated cart record URI"
2105
+ },
2106
+ cid: {
2107
+ type: "string",
2108
+ format: "cid",
2109
+ description: "New CID of the updated record"
2110
+ }
2111
+ }
2112
+ }
2113
+ }
2114
+ }
2115
+ }
2116
+ };
2117
+
2118
+ // src/schemas/account/profile/get.json
2119
+ var get_default2 = {
2120
+ lexicon: 1,
2121
+ id: "com.atiproto.account.profile.get",
2122
+ defs: {
2123
+ main: {
2124
+ type: "query",
2125
+ description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2126
+ output: {
2127
+ encoding: "application/json",
2128
+ schema: {
2129
+ type: "object",
2130
+ required: ["profile", "hasProfile", "readyForPayment"],
2131
+ properties: {
2132
+ uri: {
2133
+ type: "string",
2134
+ format: "at-uri",
2135
+ description: "Profile record URI (absent if no profile configured)"
2136
+ },
2137
+ cid: {
2138
+ type: "string",
2139
+ format: "cid",
2140
+ description: "Profile record CID (absent if no profile configured)"
2141
+ },
2142
+ profile: {
2143
+ type: "ref",
2144
+ ref: "com.atiproto.profile#view",
2145
+ description: "The profile record data (defaults if not configured)"
2146
+ },
2147
+ hasProfile: {
2148
+ type: "boolean",
2149
+ description: "Whether the user has saved a profile record"
2150
+ },
2151
+ readyForPayment: {
2152
+ type: "boolean",
2153
+ description: "Whether the user's payment account is set up and enabled"
2154
+ }
2155
+ }
2156
+ }
2157
+ }
2158
+ }
2159
+ }
2160
+ };
2161
+
2162
+ // src/schemas/account/profile/put.json
2163
+ var put_default2 = {
2164
+ lexicon: 1,
2165
+ id: "com.atiproto.account.profile.put",
2166
+ defs: {
2167
+ main: {
2168
+ type: "procedure",
2169
+ description: "Create or update the authenticated user's profile settings",
2170
+ input: {
2171
+ encoding: "application/json",
2172
+ schema: {
2173
+ type: "object",
2174
+ properties: {
2175
+ acceptsTips: {
2176
+ type: "boolean",
2177
+ description: "Enable accepting tips"
2178
+ },
2179
+ acceptsSubscriptions: {
2180
+ type: "boolean",
2181
+ description: "Enable accepting subscriptions"
2182
+ },
2183
+ disableReceiptNotifications: {
2184
+ type: "boolean",
2185
+ description: "Opt out of payment receipt DMs"
2186
+ }
2187
+ }
2188
+ }
2189
+ },
2190
+ output: {
2191
+ encoding: "application/json",
2192
+ schema: {
2193
+ type: "object",
2194
+ required: [
2195
+ "uri",
2196
+ "cid",
2197
+ "profile",
2198
+ "hasProfile",
2199
+ "readyForPayment"
2200
+ ],
1587
2201
  properties: {
1588
- cart: {
1589
- type: "ref",
1590
- ref: "com.atiproto.cart",
1591
- description: "The created cart record"
1592
- },
1593
- cartUri: {
2202
+ uri: {
1594
2203
  type: "string",
1595
2204
  format: "at-uri",
1596
- description: "URI of the cart record"
2205
+ description: "Profile record URI"
1597
2206
  },
1598
- checkoutUrl: {
2207
+ cid: {
1599
2208
  type: "string",
1600
- format: "uri",
1601
- description: "Checkout URL hosted by atiproto"
2209
+ format: "cid",
2210
+ description: "Profile record CID"
2211
+ },
2212
+ profile: {
2213
+ type: "ref",
2214
+ ref: "com.atiproto.profile#view",
2215
+ description: "The profile record data"
2216
+ },
2217
+ hasProfile: {
2218
+ type: "boolean",
2219
+ description: "Whether the user has saved a profile record"
2220
+ },
2221
+ readyForPayment: {
2222
+ type: "boolean",
2223
+ description: "Whether the user's payment account is set up and enabled"
1602
2224
  }
1603
2225
  }
1604
2226
  }
@@ -1607,22 +2229,26 @@ var create_default = {
1607
2229
  }
1608
2230
  };
1609
2231
 
1610
- // src/schemas/account/cart/get.json
1611
- var get_default = {
2232
+ // src/schemas/account/subscription/get.json
2233
+ var get_default3 = {
1612
2234
  lexicon: 1,
1613
- id: "com.atiproto.account.cart.get",
2235
+ id: "com.atiproto.account.subscription.get",
1614
2236
  defs: {
1615
2237
  main: {
1616
2238
  type: "query",
1617
- description: "Get a specific cart by URI, including resolved tip and subscription records",
2239
+ 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.",
1618
2240
  parameters: {
1619
2241
  type: "params",
1620
- required: ["uri"],
1621
2242
  properties: {
1622
2243
  uri: {
1623
2244
  type: "string",
1624
2245
  format: "at-uri",
1625
- description: "AT-URI of the cart record"
2246
+ description: "AT-URI of the subscription record. Takes precedence over sender."
2247
+ },
2248
+ sender: {
2249
+ type: "string",
2250
+ format: "did",
2251
+ description: "DID of the subscriber. Ignored if uri is provided."
1626
2252
  }
1627
2253
  }
1628
2254
  },
@@ -1630,43 +2256,12 @@ var get_default = {
1630
2256
  encoding: "application/json",
1631
2257
  schema: {
1632
2258
  type: "object",
1633
- required: ["uri", "cart", "tips", "subscriptions"],
2259
+ required: ["subscription"],
1634
2260
  properties: {
1635
- uri: {
1636
- type: "string",
1637
- format: "at-uri",
1638
- description: "Cart record URI"
1639
- },
1640
- cid: {
1641
- type: "string",
1642
- format: "cid",
1643
- description: "Cart record CID"
1644
- },
1645
- cart: {
2261
+ subscription: {
1646
2262
  type: "ref",
1647
- ref: "com.atiproto.cart",
1648
- description: "The cart record data"
1649
- },
1650
- checkoutUrl: {
1651
- type: "string",
1652
- format: "uri",
1653
- description: "Checkout URL, only present when cart status is open"
1654
- },
1655
- tips: {
1656
- type: "array",
1657
- items: {
1658
- type: "ref",
1659
- ref: "com.atiproto.tip"
1660
- },
1661
- description: "Resolved tip records referenced by this cart"
1662
- },
1663
- subscriptions: {
1664
- type: "array",
1665
- items: {
1666
- type: "ref",
1667
- ref: "com.atiproto.subscription"
1668
- },
1669
- description: "Resolved subscription records referenced by this cart"
2263
+ ref: "com.atiproto.subscription#view",
2264
+ description: "The subscription record data"
1670
2265
  }
1671
2266
  }
1672
2267
  }
@@ -1675,37 +2270,28 @@ var get_default = {
1675
2270
  }
1676
2271
  };
1677
2272
 
1678
- // src/schemas/account/cart/list.json
1679
- var list_default = {
2273
+ // src/schemas/account/subscription/list.json
2274
+ var list_default2 = {
1680
2275
  lexicon: 1,
1681
- id: "com.atiproto.account.cart.list",
2276
+ id: "com.atiproto.account.subscription.list",
1682
2277
  defs: {
1683
2278
  main: {
1684
2279
  type: "query",
1685
- description: "List carts for the authenticated user",
1686
- input: {
1687
- encoding: "application/json",
1688
- schema: {
1689
- type: "object",
1690
- properties: {
1691
- status: {
1692
- type: "string",
1693
- maxLength: 64,
1694
- enum: ["open", "completed", "expired", "abandoned"],
1695
- description: "Filter by cart status"
1696
- },
1697
- cursor: {
1698
- type: "string",
1699
- maxLength: 512,
1700
- description: "Pagination cursor"
1701
- },
1702
- limit: {
1703
- type: "integer",
1704
- default: 20,
1705
- minimum: 1,
1706
- maximum: 100,
1707
- description: "Results per page (1-100, default: 20)"
1708
- }
2280
+ 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.",
2281
+ parameters: {
2282
+ type: "params",
2283
+ properties: {
2284
+ cursor: {
2285
+ type: "string",
2286
+ maxLength: 512,
2287
+ description: "Pagination cursor"
2288
+ },
2289
+ limit: {
2290
+ type: "integer",
2291
+ minimum: 1,
2292
+ maximum: 100,
2293
+ default: 50,
2294
+ description: "Results per page (1-100, default: 50)"
1709
2295
  }
1710
2296
  }
1711
2297
  },
@@ -1713,12 +2299,13 @@ var list_default = {
1713
2299
  encoding: "application/json",
1714
2300
  schema: {
1715
2301
  type: "object",
2302
+ required: ["subscriptions"],
1716
2303
  properties: {
1717
- carts: {
2304
+ subscriptions: {
1718
2305
  type: "array",
1719
2306
  items: {
1720
2307
  type: "ref",
1721
- ref: "#cartResponse"
2308
+ ref: "com.atiproto.subscription#view"
1722
2309
  }
1723
2310
  },
1724
2311
  cursor: {
@@ -1726,75 +2313,109 @@ var list_default = {
1726
2313
  maxLength: 512,
1727
2314
  description: "Pagination cursor for next page"
1728
2315
  }
1729
- },
1730
- required: ["carts"]
1731
- }
1732
- }
1733
- },
1734
- cartResponse: {
1735
- type: "object",
1736
- required: ["uri", "cid", "record"],
1737
- properties: {
1738
- uri: {
1739
- type: "string",
1740
- format: "at-uri",
1741
- description: "AT-URI of the cart record"
1742
- },
1743
- cid: {
1744
- type: "string",
1745
- format: "cid",
1746
- description: "CID of the cart record"
1747
- },
1748
- record: {
1749
- type: "ref",
1750
- ref: "com.atiproto.cart"
2316
+ }
1751
2317
  }
1752
2318
  }
1753
2319
  }
1754
2320
  }
1755
2321
  };
1756
2322
 
1757
- // src/schemas/account/cart/put.json
1758
- var put_default = {
2323
+ // src/schemas/account/subscription/validate.json
2324
+ var validate_default = {
1759
2325
  lexicon: 1,
1760
- id: "com.atiproto.account.cart.put",
2326
+ id: "com.atiproto.account.subscription.validate",
1761
2327
  defs: {
1762
2328
  main: {
1763
- type: "procedure",
1764
- description: "Update a cart. Only open carts can be updated.",
1765
- input: {
2329
+ type: "query",
2330
+ 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.",
2331
+ parameters: {
2332
+ type: "params",
2333
+ properties: {
2334
+ subscriptionUri: {
2335
+ type: "string",
2336
+ format: "at-uri",
2337
+ description: "AT-URI of a specific subscription record. Takes precedence over sender."
2338
+ },
2339
+ sender: {
2340
+ type: "string",
2341
+ format: "did",
2342
+ description: "DID of the subscriber. Ignored if subscriptionUri is provided."
2343
+ },
2344
+ amount: {
2345
+ type: "integer",
2346
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
2347
+ }
2348
+ }
2349
+ },
2350
+ output: {
1766
2351
  encoding: "application/json",
1767
2352
  schema: {
1768
2353
  type: "object",
1769
- required: ["uri", "record"],
2354
+ required: ["valid"],
1770
2355
  properties: {
1771
- uri: {
2356
+ valid: {
2357
+ type: "boolean",
2358
+ description: "Whether a sender has an active, verified subscription to the authed recipient"
2359
+ },
2360
+ amount: {
2361
+ type: "integer",
2362
+ description: "Subscription amount in cents"
2363
+ },
2364
+ currency: {
1772
2365
  type: "string",
1773
- format: "at-uri",
1774
- description: "AT-URI of the cart to update"
2366
+ maxLength: 3,
2367
+ description: "Currency of the subscription"
1775
2368
  },
1776
- record: {
1777
- type: "ref",
1778
- ref: "com.atiproto.cart"
2369
+ reason: {
2370
+ type: "string",
2371
+ maxLength: 1024,
2372
+ description: "If invalid, reason for rejection"
1779
2373
  }
1780
2374
  }
1781
2375
  }
2376
+ }
2377
+ }
2378
+ }
2379
+ };
2380
+
2381
+ // src/schemas/account/tip/get.json
2382
+ var get_default4 = {
2383
+ lexicon: 1,
2384
+ id: "com.atiproto.account.tip.get",
2385
+ defs: {
2386
+ main: {
2387
+ type: "query",
2388
+ 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.",
2389
+ parameters: {
2390
+ type: "params",
2391
+ properties: {
2392
+ uri: {
2393
+ type: "string",
2394
+ format: "at-uri",
2395
+ description: "AT-URI of the tip record. Takes precedence over sender and recordUri."
2396
+ },
2397
+ sender: {
2398
+ type: "string",
2399
+ format: "did",
2400
+ description: "DID of the tip sender. Takes precedence over recordUri."
2401
+ },
2402
+ recordUri: {
2403
+ type: "string",
2404
+ format: "at-uri",
2405
+ description: "AT-URI of the record being tipped. Ignored if uri or sender is provided."
2406
+ }
2407
+ }
1782
2408
  },
1783
2409
  output: {
1784
2410
  encoding: "application/json",
1785
2411
  schema: {
1786
2412
  type: "object",
1787
- required: ["uri", "cid"],
2413
+ required: ["tip"],
1788
2414
  properties: {
1789
- uri: {
1790
- type: "string",
1791
- format: "at-uri",
1792
- description: "Updated cart record URI"
1793
- },
1794
- cid: {
1795
- type: "string",
1796
- format: "cid",
1797
- description: "New CID of the updated record"
2415
+ tip: {
2416
+ type: "ref",
2417
+ ref: "com.atiproto.tip#view",
2418
+ description: "The tip record data"
1798
2419
  }
1799
2420
  }
1800
2421
  }
@@ -1803,42 +2424,58 @@ var put_default = {
1803
2424
  }
1804
2425
  };
1805
2426
 
1806
- // src/schemas/account/profile/get.json
1807
- var get_default2 = {
2427
+ // src/schemas/account/tip/list.json
2428
+ var list_default3 = {
1808
2429
  lexicon: 1,
1809
- id: "com.atiproto.account.profile.get",
2430
+ id: "com.atiproto.account.tip.list",
1810
2431
  defs: {
1811
2432
  main: {
1812
2433
  type: "query",
1813
- description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
2434
+ 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.",
2435
+ parameters: {
2436
+ type: "params",
2437
+ properties: {
2438
+ sender: {
2439
+ type: "string",
2440
+ format: "did",
2441
+ description: "Optional: only return tips sent by this DID"
2442
+ },
2443
+ recordUri: {
2444
+ type: "string",
2445
+ format: "at-uri",
2446
+ description: "Optional: only return tips received for this specific record"
2447
+ },
2448
+ cursor: {
2449
+ type: "string",
2450
+ maxLength: 512,
2451
+ description: "Pagination cursor"
2452
+ },
2453
+ limit: {
2454
+ type: "integer",
2455
+ minimum: 1,
2456
+ maximum: 100,
2457
+ default: 50,
2458
+ description: "Results per page (1-100, default: 50)"
2459
+ }
2460
+ }
2461
+ },
1814
2462
  output: {
1815
2463
  encoding: "application/json",
1816
2464
  schema: {
1817
2465
  type: "object",
1818
- required: ["profile", "hasProfile", "readyForPayment"],
2466
+ required: ["tips"],
1819
2467
  properties: {
1820
- uri: {
1821
- type: "string",
1822
- format: "at-uri",
1823
- description: "Profile record URI (absent if no profile configured)"
2468
+ tips: {
2469
+ type: "array",
2470
+ items: {
2471
+ type: "ref",
2472
+ ref: "com.atiproto.tip#view"
2473
+ }
1824
2474
  },
1825
- cid: {
2475
+ cursor: {
1826
2476
  type: "string",
1827
- format: "cid",
1828
- description: "Profile record CID (absent if no profile configured)"
1829
- },
1830
- profile: {
1831
- type: "ref",
1832
- ref: "com.atiproto.profile",
1833
- description: "The profile record data (defaults if not configured)"
1834
- },
1835
- hasProfile: {
1836
- type: "boolean",
1837
- description: "Whether the user has saved a profile record"
1838
- },
1839
- readyForPayment: {
1840
- type: "boolean",
1841
- description: "Whether the user's payment account is set up and enabled"
2477
+ maxLength: 512,
2478
+ description: "Pagination cursor for next page"
1842
2479
  }
1843
2480
  }
1844
2481
  }
@@ -1847,31 +2484,35 @@ var get_default2 = {
1847
2484
  }
1848
2485
  };
1849
2486
 
1850
- // src/schemas/account/profile/put.json
1851
- var put_default2 = {
2487
+ // src/schemas/account/tip/validate.json
2488
+ var validate_default2 = {
1852
2489
  lexicon: 1,
1853
- id: "com.atiproto.account.profile.put",
2490
+ id: "com.atiproto.account.tip.validate",
1854
2491
  defs: {
1855
2492
  main: {
1856
- type: "procedure",
1857
- description: "Create or update the authenticated user's profile settings",
1858
- input: {
1859
- encoding: "application/json",
1860
- schema: {
1861
- type: "object",
1862
- properties: {
1863
- acceptsTips: {
1864
- type: "boolean",
1865
- description: "Enable accepting tips"
1866
- },
1867
- acceptsSubscriptions: {
1868
- type: "boolean",
1869
- description: "Enable accepting subscriptions"
1870
- },
1871
- disableReceiptNotifications: {
1872
- type: "boolean",
1873
- description: "Opt out of payment receipt DMs"
1874
- }
2493
+ type: "query",
2494
+ 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.",
2495
+ parameters: {
2496
+ type: "params",
2497
+ properties: {
2498
+ tipUri: {
2499
+ type: "string",
2500
+ format: "at-uri",
2501
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and sender."
2502
+ },
2503
+ recordUri: {
2504
+ type: "string",
2505
+ format: "at-uri",
2506
+ description: "AT-URI of the record being tipped. Takes precedence over sender."
2507
+ },
2508
+ sender: {
2509
+ type: "string",
2510
+ format: "did",
2511
+ description: "DID of the tip sender. Ignored if tipUri or recordUri is provided."
2512
+ },
2513
+ amount: {
2514
+ type: "integer",
2515
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
1875
2516
  }
1876
2517
  }
1877
2518
  },
@@ -1879,36 +2520,25 @@ var put_default2 = {
1879
2520
  encoding: "application/json",
1880
2521
  schema: {
1881
2522
  type: "object",
1882
- required: [
1883
- "uri",
1884
- "cid",
1885
- "profile",
1886
- "hasProfile",
1887
- "readyForPayment"
1888
- ],
2523
+ required: ["valid"],
1889
2524
  properties: {
1890
- uri: {
1891
- type: "string",
1892
- format: "at-uri",
1893
- description: "Profile record URI"
1894
- },
1895
- cid: {
1896
- type: "string",
1897
- format: "cid",
1898
- description: "Profile record CID"
2525
+ valid: {
2526
+ type: "boolean",
2527
+ description: "Whether a sender has completed and verified tip(s) to the authed recipient"
1899
2528
  },
1900
- profile: {
1901
- type: "ref",
1902
- ref: "com.atiproto.profile",
1903
- description: "The profile record data"
2529
+ amount: {
2530
+ type: "integer",
2531
+ description: "Sum of all verified completed tip amounts in cents"
1904
2532
  },
1905
- hasProfile: {
1906
- type: "boolean",
1907
- description: "Whether the user has saved a profile record"
2533
+ currency: {
2534
+ type: "string",
2535
+ maxLength: 3,
2536
+ description: "Currency of the tips"
1908
2537
  },
1909
- readyForPayment: {
1910
- type: "boolean",
1911
- description: "Whether the user's payment account is set up and enabled"
2538
+ reason: {
2539
+ type: "string",
2540
+ maxLength: 1024,
2541
+ description: "If invalid, reason for rejection"
1912
2542
  }
1913
2543
  }
1914
2544
  }
@@ -1977,6 +2607,57 @@ var cart_default = {
1977
2607
  }
1978
2608
  }
1979
2609
  },
2610
+ view: {
2611
+ type: "object",
2612
+ description: "View of a cart record for use in API responses",
2613
+ required: [
2614
+ "items",
2615
+ "currency",
2616
+ "total",
2617
+ "status",
2618
+ "createdAt",
2619
+ "expiresAt"
2620
+ ],
2621
+ properties: {
2622
+ items: {
2623
+ type: "array",
2624
+ items: {
2625
+ type: "ref",
2626
+ ref: "#cartItem"
2627
+ }
2628
+ },
2629
+ currency: {
2630
+ type: "string",
2631
+ maxLength: 3,
2632
+ description: "ISO 4217 currency code"
2633
+ },
2634
+ total: {
2635
+ type: "integer",
2636
+ description: "Total amount in cents"
2637
+ },
2638
+ status: {
2639
+ type: "string",
2640
+ maxLength: 64,
2641
+ enum: ["open", "completed", "expired", "abandoned"],
2642
+ description: "Cart status"
2643
+ },
2644
+ createdAt: {
2645
+ type: "string",
2646
+ format: "datetime",
2647
+ description: "Creation timestamp"
2648
+ },
2649
+ expiresAt: {
2650
+ type: "string",
2651
+ format: "datetime",
2652
+ description: "Expiration timestamp"
2653
+ },
2654
+ completedAt: {
2655
+ type: "string",
2656
+ format: "datetime",
2657
+ description: "Completion timestamp"
2658
+ }
2659
+ }
2660
+ },
1980
2661
  cartItem: {
1981
2662
  type: "object",
1982
2663
  required: ["type", "recordUri"],
@@ -1998,7 +2679,7 @@ var cart_default = {
1998
2679
  };
1999
2680
 
2000
2681
  // src/schemas/feed/list.json
2001
- var list_default2 = {
2682
+ var list_default4 = {
2002
2683
  lexicon: 1,
2003
2684
  id: "com.atiproto.feed.list",
2004
2685
  defs: {
@@ -2085,7 +2766,7 @@ var cancel_default = {
2085
2766
  },
2086
2767
  subscription: {
2087
2768
  type: "ref",
2088
- ref: "com.atiproto.subscription",
2769
+ ref: "com.atiproto.subscription#view",
2089
2770
  description: "Updated subscription record"
2090
2771
  },
2091
2772
  accessUntil: {
@@ -2138,6 +2819,10 @@ var create_default2 = {
2138
2819
  description: "URL to redirect to after checkout completes",
2139
2820
  format: "uri",
2140
2821
  type: "string"
2822
+ },
2823
+ isPrivate: {
2824
+ description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
2825
+ type: "boolean"
2141
2826
  }
2142
2827
  },
2143
2828
  required: ["subject", "currency", "interval"],
@@ -2156,7 +2841,7 @@ var create_default2 = {
2156
2841
  subscription: {
2157
2842
  description: "The created subscription record (status: pending)",
2158
2843
  type: "ref",
2159
- ref: "com.atiproto.subscription"
2844
+ ref: "com.atiproto.subscription#view"
2160
2845
  },
2161
2846
  cartUri: {
2162
2847
  description: "URI of the cart record in PDS",
@@ -2166,7 +2851,7 @@ var create_default2 = {
2166
2851
  cart: {
2167
2852
  description: "The created cart record (status: open)",
2168
2853
  type: "ref",
2169
- ref: "com.atiproto.cart"
2854
+ ref: "com.atiproto.cart#view"
2170
2855
  },
2171
2856
  checkoutUrl: {
2172
2857
  description: "Checkout URL hosted by atiproto",
@@ -2186,7 +2871,7 @@ var create_default2 = {
2186
2871
  };
2187
2872
 
2188
2873
  // src/schemas/feed/subscription/get.json
2189
- var get_default3 = {
2874
+ var get_default5 = {
2190
2875
  defs: {
2191
2876
  main: {
2192
2877
  description: "Get a specific subscription by URI",
@@ -2218,7 +2903,7 @@ var get_default3 = {
2218
2903
  record: {
2219
2904
  description: "The subscription record data",
2220
2905
  type: "ref",
2221
- ref: "com.atiproto.subscription"
2906
+ ref: "com.atiproto.subscription#view"
2222
2907
  }
2223
2908
  },
2224
2909
  required: ["uri", "cid", "record"],
@@ -2233,7 +2918,7 @@ var get_default3 = {
2233
2918
  };
2234
2919
 
2235
2920
  // src/schemas/feed/subscription/list.json
2236
- var list_default3 = {
2921
+ var list_default5 = {
2237
2922
  lexicon: 1,
2238
2923
  id: "com.atiproto.feed.subscription.list",
2239
2924
  defs: {
@@ -2293,7 +2978,7 @@ var list_default3 = {
2293
2978
  },
2294
2979
  record: {
2295
2980
  type: "ref",
2296
- ref: "com.atiproto.subscription"
2981
+ ref: "com.atiproto.subscription#view"
2297
2982
  }
2298
2983
  }
2299
2984
  }
@@ -2349,6 +3034,64 @@ var put_default3 = {
2349
3034
  }
2350
3035
  };
2351
3036
 
3037
+ // src/schemas/feed/subscription/validate.json
3038
+ var validate_default3 = {
3039
+ lexicon: 1,
3040
+ id: "com.atiproto.feed.subscription.validate",
3041
+ defs: {
3042
+ main: {
3043
+ type: "query",
3044
+ 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.",
3045
+ parameters: {
3046
+ type: "params",
3047
+ properties: {
3048
+ subscriptionUri: {
3049
+ type: "string",
3050
+ format: "at-uri",
3051
+ description: "AT-URI of a specific subscription record. Takes precedence over subject."
3052
+ },
3053
+ subject: {
3054
+ type: "string",
3055
+ format: "did",
3056
+ description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
3057
+ },
3058
+ amount: {
3059
+ type: "integer",
3060
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
3061
+ }
3062
+ }
3063
+ },
3064
+ output: {
3065
+ encoding: "application/json",
3066
+ schema: {
3067
+ type: "object",
3068
+ required: ["valid"],
3069
+ properties: {
3070
+ valid: {
3071
+ type: "boolean",
3072
+ description: "Whether the authed sender has an active, verified subscription"
3073
+ },
3074
+ amount: {
3075
+ type: "integer",
3076
+ description: "Subscription amount in cents"
3077
+ },
3078
+ currency: {
3079
+ type: "string",
3080
+ maxLength: 3,
3081
+ description: "Currency of the subscription"
3082
+ },
3083
+ reason: {
3084
+ type: "string",
3085
+ maxLength: 1024,
3086
+ description: "If invalid, reason for rejection"
3087
+ }
3088
+ }
3089
+ }
3090
+ }
3091
+ }
3092
+ }
3093
+ };
3094
+
2352
3095
  // src/schemas/feed/tip/create.json
2353
3096
  var create_default3 = {
2354
3097
  lexicon: 1,
@@ -2397,6 +3140,10 @@ var create_default3 = {
2397
3140
  description: "Optional message (max 500 chars)",
2398
3141
  maxGraphemes: 500,
2399
3142
  maxLength: 5e3
3143
+ },
3144
+ isPrivate: {
3145
+ type: "boolean",
3146
+ description: "If true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS tip record."
2400
3147
  }
2401
3148
  }
2402
3149
  }
@@ -2414,7 +3161,7 @@ var create_default3 = {
2414
3161
  },
2415
3162
  tip: {
2416
3163
  type: "ref",
2417
- ref: "com.atiproto.tip",
3164
+ ref: "com.atiproto.tip#view",
2418
3165
  description: "The created tip record (status: pending)"
2419
3166
  },
2420
3167
  cartUri: {
@@ -2424,7 +3171,7 @@ var create_default3 = {
2424
3171
  },
2425
3172
  cart: {
2426
3173
  type: "ref",
2427
- ref: "com.atiproto.cart",
3174
+ ref: "com.atiproto.cart#view",
2428
3175
  description: "The cart record (new or updated)"
2429
3176
  },
2430
3177
  checkoutUrl: {
@@ -2440,7 +3187,7 @@ var create_default3 = {
2440
3187
  };
2441
3188
 
2442
3189
  // src/schemas/feed/tip/get.json
2443
- var get_default4 = {
3190
+ var get_default6 = {
2444
3191
  defs: {
2445
3192
  main: {
2446
3193
  description: "Get a specific tip by URI",
@@ -2472,7 +3219,7 @@ var get_default4 = {
2472
3219
  value: {
2473
3220
  description: "The tip record data",
2474
3221
  type: "ref",
2475
- ref: "com.atiproto.tip"
3222
+ ref: "com.atiproto.tip#view"
2476
3223
  }
2477
3224
  },
2478
3225
  required: ["uri", "cid", "value"],
@@ -2487,7 +3234,7 @@ var get_default4 = {
2487
3234
  };
2488
3235
 
2489
3236
  // src/schemas/feed/tip/list.json
2490
- var list_default4 = {
3237
+ var list_default6 = {
2491
3238
  lexicon: 1,
2492
3239
  id: "com.atiproto.feed.tip.list",
2493
3240
  defs: {
@@ -2524,7 +3271,7 @@ var list_default4 = {
2524
3271
  type: "array",
2525
3272
  items: {
2526
3273
  type: "ref",
2527
- ref: "com.atiproto.tip"
3274
+ ref: "com.atiproto.tip#view"
2528
3275
  }
2529
3276
  },
2530
3277
  cursor: {
@@ -2569,17 +3316,80 @@ var put_default4 = {
2569
3316
  encoding: "application/json",
2570
3317
  schema: {
2571
3318
  type: "object",
2572
- required: ["uri", "cid"],
3319
+ required: ["uri", "cid"],
3320
+ properties: {
3321
+ uri: {
3322
+ type: "string",
3323
+ format: "at-uri",
3324
+ description: "Updated tip record URI"
3325
+ },
3326
+ cid: {
3327
+ type: "string",
3328
+ format: "cid",
3329
+ description: "New CID of the updated record"
3330
+ }
3331
+ }
3332
+ }
3333
+ }
3334
+ }
3335
+ }
3336
+ };
3337
+
3338
+ // src/schemas/feed/tip/validate.json
3339
+ var validate_default4 = {
3340
+ lexicon: 1,
3341
+ id: "com.atiproto.feed.tip.validate",
3342
+ defs: {
3343
+ main: {
3344
+ type: "query",
3345
+ 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.",
3346
+ parameters: {
3347
+ type: "params",
3348
+ properties: {
3349
+ tipUri: {
3350
+ type: "string",
3351
+ format: "at-uri",
3352
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
3353
+ },
3354
+ recordUri: {
3355
+ type: "string",
3356
+ format: "at-uri",
3357
+ description: "AT-URI of the record being tipped. Takes precedence over subject."
3358
+ },
3359
+ subject: {
3360
+ type: "string",
3361
+ format: "did",
3362
+ description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3363
+ },
3364
+ amount: {
3365
+ type: "integer",
3366
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3367
+ }
3368
+ }
3369
+ },
3370
+ output: {
3371
+ encoding: "application/json",
3372
+ schema: {
3373
+ type: "object",
3374
+ required: ["valid"],
2573
3375
  properties: {
2574
- uri: {
3376
+ valid: {
3377
+ type: "boolean",
3378
+ description: "Whether the authed sender has completed and verified tip(s)"
3379
+ },
3380
+ amount: {
3381
+ type: "integer",
3382
+ description: "Sum of all verified completed tip amounts in cents"
3383
+ },
3384
+ currency: {
2575
3385
  type: "string",
2576
- format: "at-uri",
2577
- description: "Updated tip record URI"
3386
+ maxLength: 3,
3387
+ description: "Currency of the tips"
2578
3388
  },
2579
- cid: {
3389
+ reason: {
2580
3390
  type: "string",
2581
- format: "cid",
2582
- description: "New CID of the updated record"
3391
+ maxLength: 1024,
3392
+ description: "If invalid, reason for rejection"
2583
3393
  }
2584
3394
  }
2585
3395
  }
@@ -2625,12 +3435,41 @@ var profile_default = {
2625
3435
  }
2626
3436
  }
2627
3437
  }
3438
+ },
3439
+ view: {
3440
+ type: "object",
3441
+ description: "View of a user's profile settings for use in API responses",
3442
+ required: ["createdAt"],
3443
+ properties: {
3444
+ acceptsTips: {
3445
+ type: "boolean",
3446
+ description: "Whether user accepts tips (default: true)"
3447
+ },
3448
+ acceptsSubscriptions: {
3449
+ type: "boolean",
3450
+ description: "Whether user accepts subscriptions (default: true)"
3451
+ },
3452
+ disableReceiptNotifications: {
3453
+ type: "boolean",
3454
+ description: "Opt out of payment receipt DMs (default: false)"
3455
+ },
3456
+ createdAt: {
3457
+ type: "string",
3458
+ format: "datetime",
3459
+ description: "Creation timestamp"
3460
+ },
3461
+ updatedAt: {
3462
+ type: "string",
3463
+ format: "datetime",
3464
+ description: "Last update timestamp"
3465
+ }
3466
+ }
2628
3467
  }
2629
3468
  }
2630
3469
  };
2631
3470
 
2632
3471
  // src/schemas/repo/profile/get.json
2633
- var get_default5 = {
3472
+ var get_default7 = {
2634
3473
  lexicon: 1,
2635
3474
  id: "com.atiproto.repo.profile.get",
2636
3475
  defs: {
@@ -2661,7 +3500,7 @@ var get_default5 = {
2661
3500
  },
2662
3501
  profile: {
2663
3502
  type: "ref",
2664
- ref: "com.atiproto.profile",
3503
+ ref: "com.atiproto.profile#view",
2665
3504
  description: "Public profile data"
2666
3505
  }
2667
3506
  }
@@ -2671,107 +3510,31 @@ var get_default5 = {
2671
3510
  }
2672
3511
  };
2673
3512
 
2674
- // src/schemas/repo/subscription/search.json
2675
- var search_default = {
3513
+ // src/schemas/repo/subscription/count.json
3514
+ var count_default = {
2676
3515
  lexicon: 1,
2677
- id: "com.atiproto.repo.subscription.search",
3516
+ id: "com.atiproto.repo.subscription.count",
2678
3517
  defs: {
2679
3518
  main: {
2680
3519
  type: "query",
2681
- description: "Search for subscriptions to a user (subscriptions where subject matches the given DID)",
3520
+ 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.",
2682
3521
  parameters: {
2683
3522
  type: "params",
2684
3523
  properties: {
2685
3524
  subject: {
2686
3525
  type: "string",
2687
3526
  format: "did",
2688
- description: "DID of the user being subscribed to"
2689
- },
2690
- cursor: {
2691
- type: "string",
2692
- maxLength: 512,
2693
- description: "Pagination cursor"
2694
- },
2695
- limit: {
2696
- type: "integer",
2697
- minimum: 1,
2698
- maximum: 100,
2699
- default: 50,
2700
- description: "Results per page (1-100, default: 50)"
2701
- }
2702
- },
2703
- required: ["subject"]
2704
- },
2705
- output: {
2706
- encoding: "application/json",
2707
- schema: {
2708
- type: "object",
2709
- required: ["subscriptions"],
2710
- properties: {
2711
- subscriptions: {
2712
- type: "array",
2713
- items: {
2714
- type: "ref",
2715
- ref: "#subscriptionResponse"
2716
- }
2717
- },
2718
- cursor: {
2719
- type: "string",
2720
- maxLength: 512,
2721
- description: "Pagination cursor for next page"
2722
- }
2723
- }
2724
- }
2725
- }
2726
- },
2727
- subscriptionResponse: {
2728
- type: "object",
2729
- required: ["uri", "record"],
2730
- properties: {
2731
- uri: {
2732
- type: "string",
2733
- format: "at-uri",
2734
- description: "AT-URI of the subscription record"
2735
- },
2736
- record: {
2737
- type: "ref",
2738
- ref: "com.atiproto.subscription"
2739
- }
2740
- }
2741
- }
2742
- }
2743
- };
2744
-
2745
- // src/schemas/repo/subscription/validate.json
2746
- var validate_default = {
2747
- lexicon: 1,
2748
- id: "com.atiproto.repo.subscription.validate",
2749
- defs: {
2750
- main: {
2751
- type: "query",
2752
- 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.",
2753
- parameters: {
2754
- type: "params",
2755
- required: ["sender"],
2756
- properties: {
2757
- sender: {
2758
- type: "string",
2759
- format: "did",
2760
- description: "DID of the subscriber"
3527
+ description: "DID of the user being subscribed to. If omitted, the query counts subscriptions the authenticated user has active as the subscriber."
2761
3528
  },
2762
- subscriptionUri: {
3529
+ startDate: {
2763
3530
  type: "string",
2764
- format: "at-uri",
2765
- description: "AT-URI of a specific subscription record. Takes precedence over subject."
3531
+ format: "datetime",
3532
+ description: "Only count subscriptions whose billingStartDate is at or after this timestamp"
2766
3533
  },
2767
- subject: {
3534
+ endDate: {
2768
3535
  type: "string",
2769
- format: "did",
2770
- description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
2771
- },
2772
- amount: {
2773
- type: "integer",
2774
- description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
3536
+ format: "datetime",
3537
+ description: "Only count subscriptions whose billingStartDate is at or before this timestamp"
2775
3538
  }
2776
3539
  }
2777
3540
  },
@@ -2779,126 +3542,39 @@ var validate_default = {
2779
3542
  encoding: "application/json",
2780
3543
  schema: {
2781
3544
  type: "object",
2782
- required: ["valid"],
3545
+ required: ["count"],
2783
3546
  properties: {
2784
- valid: {
2785
- type: "boolean",
2786
- description: "Whether the sender has an active, verified subscription"
3547
+ count: {
3548
+ type: "integer",
3549
+ description: "Number of active subscriptions matching the filter"
2787
3550
  },
2788
3551
  amount: {
2789
3552
  type: "integer",
2790
- description: "Subscription amount in cents"
3553
+ 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)."
2791
3554
  },
2792
3555
  currency: {
2793
3556
  type: "string",
2794
3557
  maxLength: 3,
2795
- description: "Currency of the subscription"
2796
- },
2797
- reason: {
2798
- type: "string",
2799
- maxLength: 1024,
2800
- description: "If invalid, reason for rejection"
2801
- }
2802
- }
2803
- }
2804
- }
2805
- }
2806
- }
2807
- };
2808
-
2809
- // src/schemas/repo/tip/search.json
2810
- var search_default2 = {
2811
- lexicon: 1,
2812
- id: "com.atiproto.repo.tip.search",
2813
- defs: {
2814
- main: {
2815
- type: "query",
2816
- description: "Search for tips sent to a user (tips where subject matches the given DID)",
2817
- parameters: {
2818
- type: "params",
2819
- properties: {
2820
- subject: {
2821
- type: "string",
2822
- format: "did",
2823
- description: "DID of the user receiving tips"
2824
- },
2825
- cursor: {
2826
- type: "string",
2827
- maxLength: 512,
2828
- description: "Pagination cursor"
2829
- },
2830
- limit: {
2831
- type: "integer",
2832
- minimum: 1,
2833
- maximum: 100,
2834
- default: 50,
2835
- description: "Results per page (1-100, default: 50)"
2836
- }
2837
- },
2838
- required: ["subject"]
2839
- },
2840
- output: {
2841
- encoding: "application/json",
2842
- schema: {
2843
- type: "object",
2844
- required: ["tips"],
2845
- properties: {
2846
- tips: {
2847
- type: "array",
2848
- items: {
2849
- type: "ref",
2850
- ref: "#tipResponse"
2851
- }
2852
- },
2853
- cursor: {
2854
- type: "string",
2855
- maxLength: 512,
2856
- description: "Pagination cursor for next page"
3558
+ 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)."
2857
3559
  }
2858
3560
  }
2859
3561
  }
2860
3562
  }
2861
- },
2862
- tipResponse: {
2863
- type: "object",
2864
- required: ["uri", "record"],
2865
- properties: {
2866
- uri: {
2867
- type: "string",
2868
- format: "at-uri",
2869
- description: "AT-URI of the tip record"
2870
- },
2871
- record: {
2872
- type: "ref",
2873
- ref: "com.atiproto.tip"
2874
- }
2875
- }
2876
3563
  }
2877
3564
  }
2878
3565
  };
2879
3566
 
2880
- // src/schemas/repo/tip/validate.json
2881
- var validate_default2 = {
3567
+ // src/schemas/repo/tip/count.json
3568
+ var count_default2 = {
2882
3569
  lexicon: 1,
2883
- id: "com.atiproto.repo.tip.validate",
3570
+ id: "com.atiproto.repo.tip.count",
2884
3571
  defs: {
2885
3572
  main: {
2886
3573
  type: "query",
2887
- description: "Validate that a 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.",
3574
+ 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.",
2888
3575
  parameters: {
2889
3576
  type: "params",
2890
- required: ["sender"],
2891
3577
  properties: {
2892
- sender: {
2893
- type: "string",
2894
- format: "did",
2895
- description: "DID of the tip sender"
2896
- },
2897
- tipUri: {
2898
- type: "string",
2899
- format: "at-uri",
2900
- description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
2901
- },
2902
3578
  recordUri: {
2903
3579
  type: "string",
2904
3580
  format: "at-uri",
@@ -2907,11 +3583,17 @@ var validate_default2 = {
2907
3583
  subject: {
2908
3584
  type: "string",
2909
3585
  format: "did",
2910
- description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
3586
+ 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."
2911
3587
  },
2912
- amount: {
2913
- type: "integer",
2914
- description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
3588
+ startDate: {
3589
+ type: "string",
3590
+ format: "datetime",
3591
+ description: "Only count tips completed at or after this timestamp"
3592
+ },
3593
+ endDate: {
3594
+ type: "string",
3595
+ format: "datetime",
3596
+ description: "Only count tips completed at or before this timestamp"
2915
3597
  }
2916
3598
  }
2917
3599
  },
@@ -2919,25 +3601,20 @@ var validate_default2 = {
2919
3601
  encoding: "application/json",
2920
3602
  schema: {
2921
3603
  type: "object",
2922
- required: ["valid"],
3604
+ required: ["count"],
2923
3605
  properties: {
2924
- valid: {
2925
- type: "boolean",
2926
- description: "Whether the sender has completed and verified tip(s)"
3606
+ count: {
3607
+ type: "integer",
3608
+ description: "Number of active (completed) tips matching the filter"
2927
3609
  },
2928
3610
  amount: {
2929
3611
  type: "integer",
2930
- description: "Sum of all verified completed tip amounts in cents"
3612
+ 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)."
2931
3613
  },
2932
3614
  currency: {
2933
3615
  type: "string",
2934
3616
  maxLength: 3,
2935
- description: "Currency of the tips"
2936
- },
2937
- reason: {
2938
- type: "string",
2939
- maxLength: 1024,
2940
- description: "If invalid, reason for rejection"
3617
+ 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)."
2941
3618
  }
2942
3619
  }
2943
3620
  }
@@ -2978,21 +3655,27 @@ var authEnhanced_default = {
2978
3655
  "com.atiproto.account.cart.put",
2979
3656
  "com.atiproto.account.profile.get",
2980
3657
  "com.atiproto.account.profile.put",
3658
+ "com.atiproto.account.subscription.get",
3659
+ "com.atiproto.account.subscription.list",
3660
+ "com.atiproto.account.subscription.validate",
3661
+ "com.atiproto.account.tip.get",
3662
+ "com.atiproto.account.tip.list",
3663
+ "com.atiproto.account.tip.validate",
2981
3664
  "com.atiproto.feed.list",
2982
3665
  "com.atiproto.feed.subscription.cancel",
2983
3666
  "com.atiproto.feed.subscription.create",
2984
3667
  "com.atiproto.feed.subscription.get",
2985
3668
  "com.atiproto.feed.subscription.list",
2986
3669
  "com.atiproto.feed.subscription.put",
3670
+ "com.atiproto.feed.subscription.validate",
2987
3671
  "com.atiproto.feed.tip.create",
2988
3672
  "com.atiproto.feed.tip.get",
2989
3673
  "com.atiproto.feed.tip.list",
2990
3674
  "com.atiproto.feed.tip.put",
3675
+ "com.atiproto.feed.tip.validate",
2991
3676
  "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"
3677
+ "com.atiproto.repo.subscription.count",
3678
+ "com.atiproto.repo.tip.count"
2996
3679
  ]
2997
3680
  }
2998
3681
  ]
@@ -3029,21 +3712,27 @@ var authGeneral_default = {
3029
3712
  "com.atiproto.account.cart.get",
3030
3713
  "com.atiproto.account.cart.list",
3031
3714
  "com.atiproto.account.cart.put",
3715
+ "com.atiproto.account.subscription.get",
3716
+ "com.atiproto.account.subscription.list",
3717
+ "com.atiproto.account.subscription.validate",
3718
+ "com.atiproto.account.tip.get",
3719
+ "com.atiproto.account.tip.list",
3720
+ "com.atiproto.account.tip.validate",
3032
3721
  "com.atiproto.feed.list",
3033
3722
  "com.atiproto.feed.subscription.cancel",
3034
3723
  "com.atiproto.feed.subscription.create",
3035
3724
  "com.atiproto.feed.subscription.get",
3036
3725
  "com.atiproto.feed.subscription.list",
3037
3726
  "com.atiproto.feed.subscription.put",
3727
+ "com.atiproto.feed.subscription.validate",
3038
3728
  "com.atiproto.feed.tip.create",
3039
3729
  "com.atiproto.feed.tip.get",
3040
3730
  "com.atiproto.feed.tip.list",
3041
3731
  "com.atiproto.feed.tip.put",
3732
+ "com.atiproto.feed.tip.validate",
3042
3733
  "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"
3734
+ "com.atiproto.repo.subscription.count",
3735
+ "com.atiproto.repo.tip.count"
3047
3736
  ]
3048
3737
  }
3049
3738
  ]
@@ -3119,6 +3808,67 @@ var subscription_default = {
3119
3808
  type: "object"
3120
3809
  },
3121
3810
  type: "record"
3811
+ },
3812
+ view: {
3813
+ type: "object",
3814
+ description: "View of a subscription record for use in API responses",
3815
+ required: [
3816
+ "amount",
3817
+ "currency",
3818
+ "interval",
3819
+ "status",
3820
+ "billingStartDate",
3821
+ "createdAt"
3822
+ ],
3823
+ properties: {
3824
+ subject: {
3825
+ description: "DID of the user being subscribed to",
3826
+ format: "did",
3827
+ type: "string"
3828
+ },
3829
+ amount: {
3830
+ description: "Subscription amount in cents (0 for free subscriptions)",
3831
+ minimum: 0,
3832
+ type: "integer"
3833
+ },
3834
+ currency: {
3835
+ description: "ISO 4217 currency code",
3836
+ maxLength: 3,
3837
+ type: "string"
3838
+ },
3839
+ interval: {
3840
+ description: "Billing interval",
3841
+ maxLength: 64,
3842
+ enum: ["monthly", "yearly"],
3843
+ type: "string"
3844
+ },
3845
+ status: {
3846
+ description: "Subscription status",
3847
+ maxLength: 64,
3848
+ enum: ["pending", "active", "past_due", "cancelled", "expired"],
3849
+ type: "string"
3850
+ },
3851
+ billingStartDate: {
3852
+ description: "First billing period, can be used to determine recurrence",
3853
+ format: "datetime",
3854
+ type: "string"
3855
+ },
3856
+ cancelledAt: {
3857
+ description: "Cancellation timestamp",
3858
+ format: "datetime",
3859
+ type: "string"
3860
+ },
3861
+ accessUntil: {
3862
+ description: "Date until which the subscriber retains access after cancellation",
3863
+ format: "datetime",
3864
+ type: "string"
3865
+ },
3866
+ createdAt: {
3867
+ description: "Creation timestamp",
3868
+ format: "datetime",
3869
+ type: "string"
3870
+ }
3871
+ }
3122
3872
  }
3123
3873
  },
3124
3874
  id: "com.atiproto.subscription",
@@ -3176,10 +3926,59 @@ var tip_default = {
3176
3926
  type: "string"
3177
3927
  }
3178
3928
  },
3179
- required: ["subject", "amount", "currency", "status", "createdAt"],
3929
+ required: ["amount", "currency", "status", "createdAt"],
3180
3930
  type: "object"
3181
3931
  },
3182
3932
  type: "record"
3933
+ },
3934
+ view: {
3935
+ type: "object",
3936
+ description: "View of a tip record for use in API responses",
3937
+ required: ["amount", "currency", "status", "createdAt"],
3938
+ properties: {
3939
+ subject: {
3940
+ description: "DID of the user receiving the tip",
3941
+ format: "did",
3942
+ type: "string"
3943
+ },
3944
+ recordUri: {
3945
+ description: "AT-URI of specific record being tipped",
3946
+ format: "at-uri",
3947
+ type: "string"
3948
+ },
3949
+ amount: {
3950
+ description: "Tip amount in cents (0 when recipient allows zero tips)",
3951
+ minimum: 0,
3952
+ type: "integer"
3953
+ },
3954
+ currency: {
3955
+ description: "ISO 4217 currency code",
3956
+ maxLength: 3,
3957
+ type: "string"
3958
+ },
3959
+ status: {
3960
+ description: "Tip status",
3961
+ maxLength: 64,
3962
+ type: "string",
3963
+ enum: ["pending", "authorized", "completed", "failed", "refunded"]
3964
+ },
3965
+ message: {
3966
+ description: "Optional message (max 500 chars)",
3967
+ maxGraphemes: 500,
3968
+ maxLength: 5e3,
3969
+ type: "string"
3970
+ },
3971
+ createdAt: {
3972
+ description: "Creation timestamp",
3973
+ format: "datetime",
3974
+ type: "string"
3975
+ },
3976
+ completedAt: {
3977
+ description: "Completion timestamp",
3978
+ format: "datetime",
3979
+ type: "string"
3980
+ }
3981
+ }
3183
3982
  }
3184
3983
  },
3185
3984
  id: "com.atiproto.tip",
@@ -3195,23 +3994,29 @@ var schemas = [
3195
3994
  put_default,
3196
3995
  get_default2,
3197
3996
  put_default2,
3198
- cart_default,
3997
+ get_default3,
3199
3998
  list_default2,
3999
+ validate_default,
4000
+ get_default4,
4001
+ list_default3,
4002
+ validate_default2,
4003
+ cart_default,
4004
+ list_default4,
3200
4005
  cancel_default,
3201
4006
  create_default2,
3202
- get_default3,
3203
- list_default3,
4007
+ get_default5,
4008
+ list_default5,
3204
4009
  put_default3,
4010
+ validate_default3,
3205
4011
  create_default3,
3206
- get_default4,
3207
- list_default4,
4012
+ get_default6,
4013
+ list_default6,
3208
4014
  put_default4,
4015
+ validate_default4,
3209
4016
  profile_default,
3210
- get_default5,
3211
- search_default,
3212
- validate_default,
3213
- search_default2,
3214
- validate_default2,
4017
+ get_default7,
4018
+ count_default,
4019
+ count_default2,
3215
4020
  authEnhanced_default,
3216
4021
  authGeneral_default,
3217
4022
  subscription_default,