@atiproto/lexicons 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.js +2940 -19
  2. package/dist/index.js.map +1 -0
  3. package/dist/index.mjs +2919 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/dist/lexicons/com/atiproto/profile.defs.d.ts +10 -10
  6. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
  7. package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
  8. package/package.json +6 -3
  9. package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
  10. package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
  11. package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
  12. package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
  13. package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
  14. package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
  15. package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
  16. package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
  17. package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
  18. package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
  19. package/dist/lexicons/com/atiproto/account/cart.js +0 -44
  20. package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
  21. package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
  22. package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -57
  23. package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
  24. package/dist/lexicons/com/atiproto/account/profile.js +0 -41
  25. package/dist/lexicons/com/atiproto/account.js +0 -41
  26. package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
  27. package/dist/lexicons/com/atiproto/cart.js +0 -44
  28. package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
  29. package/dist/lexicons/com/atiproto/feed/list.js +0 -44
  30. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
  31. package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
  32. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
  33. package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
  34. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
  35. package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
  36. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
  37. package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
  38. package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
  39. package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
  40. package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
  41. package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
  42. package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
  43. package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
  44. package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
  45. package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
  46. package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
  47. package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
  48. package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
  49. package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
  50. package/dist/lexicons/com/atiproto/feed.js +0 -42
  51. package/dist/lexicons/com/atiproto/profile.defs.js +0 -20
  52. package/dist/lexicons/com/atiproto/profile.js +0 -44
  53. package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
  54. package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
  55. package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
  56. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
  57. package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
  58. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
  59. package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
  60. package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
  61. package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
  62. package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
  63. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
  64. package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
  65. package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
  66. package/dist/lexicons/com/atiproto/repo.js +0 -42
  67. package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
  68. package/dist/lexicons/com/atiproto/subscription.js +0 -44
  69. package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
  70. package/dist/lexicons/com/atiproto/tip.js +0 -44
  71. package/dist/lexicons/com/atiproto.js +0 -46
  72. package/dist/lexicons/com.js +0 -40
  73. package/dist/lexicons/index.js +0 -40
  74. package/dist/schemas/account/cart/clone.json +0 -75
  75. package/dist/schemas/account/cart/create.json +0 -52
  76. package/dist/schemas/account/cart/get.json +0 -66
  77. package/dist/schemas/account/cart/list.json +0 -73
  78. package/dist/schemas/account/cart/put.json +0 -47
  79. package/dist/schemas/account/profile/get.json +0 -42
  80. package/dist/schemas/account/profile/put.json +0 -68
  81. package/dist/schemas/cart.json +0 -74
  82. package/dist/schemas/feed/list.json +0 -49
  83. package/dist/schemas/feed/subscription/cancel.json +0 -48
  84. package/dist/schemas/feed/subscription/create.json +0 -76
  85. package/dist/schemas/feed/subscription/get.json +0 -45
  86. package/dist/schemas/feed/subscription/list.json +0 -64
  87. package/dist/schemas/feed/subscription/put.json +0 -47
  88. package/dist/schemas/feed/tip/create.json +0 -87
  89. package/dist/schemas/feed/tip/get.json +0 -45
  90. package/dist/schemas/feed/tip/list.json +0 -49
  91. package/dist/schemas/feed/tip/put.json +0 -47
  92. package/dist/schemas/profile.json +0 -39
  93. package/dist/schemas/repo/profile/get.json +0 -40
  94. package/dist/schemas/repo/subscription/search.json +0 -67
  95. package/dist/schemas/repo/subscription/validate.json +0 -55
  96. package/dist/schemas/repo/tip/search.json +0 -67
  97. package/dist/schemas/repo/tip/validate.json +0 -60
  98. package/dist/schemas/subscription.json +0 -67
  99. package/dist/schemas/tip.json +0 -57
  100. package/dist/schemas.js +0 -60
package/dist/index.mjs ADDED
@@ -0,0 +1,2919 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/lexicons/com.ts
8
+ var com_exports = {};
9
+ __export(com_exports, {
10
+ atiproto: () => atiproto_exports
11
+ });
12
+
13
+ // src/lexicons/com/atiproto.ts
14
+ var atiproto_exports = {};
15
+ __export(atiproto_exports, {
16
+ account: () => account_exports,
17
+ cart: () => cart_exports2,
18
+ feed: () => feed_exports,
19
+ profile: () => profile_exports2,
20
+ repo: () => repo_exports,
21
+ subscription: () => subscription_exports3,
22
+ tip: () => tip_exports3
23
+ });
24
+
25
+ // src/lexicons/com/atiproto/account.ts
26
+ var account_exports = {};
27
+ __export(account_exports, {
28
+ cart: () => cart_exports,
29
+ profile: () => profile_exports
30
+ });
31
+
32
+ // src/lexicons/com/atiproto/account/cart.ts
33
+ var cart_exports = {};
34
+ __export(cart_exports, {
35
+ clone: () => clone_exports,
36
+ create: () => create_exports,
37
+ get: () => get_exports,
38
+ list: () => list_exports,
39
+ put: () => put_exports
40
+ });
41
+
42
+ // src/lexicons/com/atiproto/account/cart/clone.ts
43
+ var clone_exports = {};
44
+ __export(clone_exports, {
45
+ $defs: () => clone_defs_exports,
46
+ $input: () => $input,
47
+ $lxm: () => $lxm,
48
+ $nsid: () => $nsid4,
49
+ $output: () => $output,
50
+ $params: () => $params,
51
+ main: () => main4
52
+ });
53
+
54
+ // src/lexicons/com/atiproto/account/cart/clone.defs.ts
55
+ var clone_defs_exports = {};
56
+ __export(clone_defs_exports, {
57
+ $input: () => $input,
58
+ $lxm: () => $lxm,
59
+ $nsid: () => $nsid4,
60
+ $output: () => $output,
61
+ $params: () => $params,
62
+ main: () => main4
63
+ });
64
+ import { l as l4 } from "@atproto/lex";
65
+
66
+ // src/lexicons/com/atiproto/cart.defs.ts
67
+ var cart_defs_exports = {};
68
+ __export(cart_defs_exports, {
69
+ $assert: () => $assert,
70
+ $build: () => $build,
71
+ $cast: () => $cast,
72
+ $check: () => $check,
73
+ $ifMatches: () => $ifMatches,
74
+ $isTypeOf: () => $isTypeOf,
75
+ $matches: () => $matches,
76
+ $nsid: () => $nsid,
77
+ $parse: () => $parse,
78
+ $safeParse: () => $safeParse,
79
+ $safeValidate: () => $safeValidate,
80
+ $type: () => $type,
81
+ $validate: () => $validate,
82
+ cartItem: () => cartItem,
83
+ main: () => main
84
+ });
85
+ import { l } from "@atproto/lex";
86
+ var $nsid = "com.atiproto.cart";
87
+ var main = l.record(
88
+ "any",
89
+ $nsid,
90
+ l.object({
91
+ items: l.array(l.ref((() => cartItem))),
92
+ currency: l.string(),
93
+ total: l.integer(),
94
+ status: l.string(),
95
+ createdAt: l.string({ format: "datetime" }),
96
+ expiresAt: l.string({ format: "datetime" }),
97
+ completedAt: l.optional(l.string({ format: "datetime" }))
98
+ })
99
+ );
100
+ var $isTypeOf = /* @__PURE__ */ main.isTypeOf.bind(main);
101
+ var $build = /* @__PURE__ */ main.build.bind(main);
102
+ var $type = main.$type;
103
+ var $assert = /* @__PURE__ */ main.assert.bind(main);
104
+ var $check = /* @__PURE__ */ main.check.bind(main);
105
+ var $cast = /* @__PURE__ */ main.cast.bind(main);
106
+ var $ifMatches = /* @__PURE__ */ main.ifMatches.bind(main);
107
+ var $matches = /* @__PURE__ */ main.matches.bind(main);
108
+ var $parse = /* @__PURE__ */ main.parse.bind(main);
109
+ var $safeParse = /* @__PURE__ */ main.safeParse.bind(main);
110
+ var $validate = /* @__PURE__ */ main.validate.bind(main);
111
+ var $safeValidate = /* @__PURE__ */ main.safeValidate.bind(main);
112
+ var cartItem = l.typedObject(
113
+ $nsid,
114
+ "cartItem",
115
+ l.object({
116
+ type: l.enum(["com.atiproto.tip", "com.atiproto.subscription"]),
117
+ recordUri: l.string({ format: "at-uri" })
118
+ })
119
+ );
120
+
121
+ // src/lexicons/com/atiproto/tip.defs.ts
122
+ var tip_defs_exports = {};
123
+ __export(tip_defs_exports, {
124
+ $assert: () => $assert2,
125
+ $build: () => $build2,
126
+ $cast: () => $cast2,
127
+ $check: () => $check2,
128
+ $ifMatches: () => $ifMatches2,
129
+ $isTypeOf: () => $isTypeOf2,
130
+ $matches: () => $matches2,
131
+ $nsid: () => $nsid2,
132
+ $parse: () => $parse2,
133
+ $safeParse: () => $safeParse2,
134
+ $safeValidate: () => $safeValidate2,
135
+ $type: () => $type2,
136
+ $validate: () => $validate2,
137
+ main: () => main2
138
+ });
139
+ import { l as l2 } from "@atproto/lex";
140
+ var $nsid2 = "com.atiproto.tip";
141
+ var main2 = l2.record(
142
+ "any",
143
+ $nsid2,
144
+ l2.object({
145
+ subject: l2.string({ format: "did" }),
146
+ recordUri: l2.optional(l2.string({ format: "at-uri" })),
147
+ amount: l2.integer({ minimum: 0 }),
148
+ currency: l2.string(),
149
+ status: l2.enum([
150
+ "pending",
151
+ "authorized",
152
+ "completed",
153
+ "failed",
154
+ "refunded"
155
+ ]),
156
+ message: l2.optional(l2.string({ maxGraphemes: 500, maxLength: 5e3 })),
157
+ createdAt: l2.string({ format: "datetime" }),
158
+ completedAt: l2.optional(l2.string({ format: "datetime" }))
159
+ })
160
+ );
161
+ var $isTypeOf2 = /* @__PURE__ */ main2.isTypeOf.bind(main2);
162
+ var $build2 = /* @__PURE__ */ main2.build.bind(main2);
163
+ var $type2 = main2.$type;
164
+ var $assert2 = /* @__PURE__ */ main2.assert.bind(main2);
165
+ var $check2 = /* @__PURE__ */ main2.check.bind(main2);
166
+ var $cast2 = /* @__PURE__ */ main2.cast.bind(main2);
167
+ var $ifMatches2 = /* @__PURE__ */ main2.ifMatches.bind(main2);
168
+ var $matches2 = /* @__PURE__ */ main2.matches.bind(main2);
169
+ var $parse2 = /* @__PURE__ */ main2.parse.bind(main2);
170
+ var $safeParse2 = /* @__PURE__ */ main2.safeParse.bind(main2);
171
+ var $validate2 = /* @__PURE__ */ main2.validate.bind(main2);
172
+ var $safeValidate2 = /* @__PURE__ */ main2.safeValidate.bind(main2);
173
+
174
+ // src/lexicons/com/atiproto/subscription.defs.ts
175
+ var subscription_defs_exports = {};
176
+ __export(subscription_defs_exports, {
177
+ $assert: () => $assert3,
178
+ $build: () => $build3,
179
+ $cast: () => $cast3,
180
+ $check: () => $check3,
181
+ $ifMatches: () => $ifMatches3,
182
+ $isTypeOf: () => $isTypeOf3,
183
+ $matches: () => $matches3,
184
+ $nsid: () => $nsid3,
185
+ $parse: () => $parse3,
186
+ $safeParse: () => $safeParse3,
187
+ $safeValidate: () => $safeValidate3,
188
+ $type: () => $type3,
189
+ $validate: () => $validate3,
190
+ main: () => main3
191
+ });
192
+ import { l as l3 } from "@atproto/lex";
193
+ var $nsid3 = "com.atiproto.subscription";
194
+ var main3 = l3.record(
195
+ "any",
196
+ $nsid3,
197
+ l3.object({
198
+ subject: l3.string({ format: "did" }),
199
+ amount: l3.integer({ minimum: 0 }),
200
+ currency: l3.string(),
201
+ interval: l3.string(),
202
+ status: l3.string(),
203
+ billingStartDate: l3.string({ format: "datetime" }),
204
+ cancelledAt: l3.optional(l3.string({ format: "datetime" })),
205
+ accessUntil: l3.optional(l3.string({ format: "datetime" })),
206
+ createdAt: l3.string({ format: "datetime" })
207
+ })
208
+ );
209
+ var $isTypeOf3 = /* @__PURE__ */ main3.isTypeOf.bind(main3);
210
+ var $build3 = /* @__PURE__ */ main3.build.bind(main3);
211
+ var $type3 = main3.$type;
212
+ var $assert3 = /* @__PURE__ */ main3.assert.bind(main3);
213
+ var $check3 = /* @__PURE__ */ main3.check.bind(main3);
214
+ var $cast3 = /* @__PURE__ */ main3.cast.bind(main3);
215
+ var $ifMatches3 = /* @__PURE__ */ main3.ifMatches.bind(main3);
216
+ var $matches3 = /* @__PURE__ */ main3.matches.bind(main3);
217
+ var $parse3 = /* @__PURE__ */ main3.parse.bind(main3);
218
+ var $safeParse3 = /* @__PURE__ */ main3.safeParse.bind(main3);
219
+ var $validate3 = /* @__PURE__ */ main3.validate.bind(main3);
220
+ var $safeValidate3 = /* @__PURE__ */ main3.safeValidate.bind(main3);
221
+
222
+ // src/lexicons/com/atiproto/account/cart/clone.defs.ts
223
+ var $nsid4 = "com.atiproto.account.cart.clone";
224
+ var main4 = l4.procedure(
225
+ $nsid4,
226
+ l4.params(),
227
+ l4.jsonPayload({
228
+ uri: l4.string({ format: "at-uri" }),
229
+ redirectUrl: l4.optional(l4.string({ format: "uri" }))
230
+ }),
231
+ l4.jsonPayload({
232
+ cart: l4.ref((() => main)),
233
+ cartUri: l4.string({ format: "at-uri" }),
234
+ checkoutUrl: l4.string({ format: "uri" }),
235
+ tips: l4.array(l4.ref((() => main2))),
236
+ subscriptions: l4.array(
237
+ l4.ref(
238
+ (() => main3)
239
+ )
240
+ )
241
+ })
242
+ );
243
+ var $lxm = main4.nsid;
244
+ var $params = main4.parameters;
245
+ var $input = main4.input;
246
+ var $output = main4.output;
247
+
248
+ // src/lexicons/com/atiproto/account/cart/create.ts
249
+ var create_exports = {};
250
+ __export(create_exports, {
251
+ $defs: () => create_defs_exports,
252
+ $input: () => $input2,
253
+ $lxm: () => $lxm2,
254
+ $nsid: () => $nsid5,
255
+ $output: () => $output2,
256
+ $params: () => $params2,
257
+ main: () => main5
258
+ });
259
+
260
+ // src/lexicons/com/atiproto/account/cart/create.defs.ts
261
+ var create_defs_exports = {};
262
+ __export(create_defs_exports, {
263
+ $input: () => $input2,
264
+ $lxm: () => $lxm2,
265
+ $nsid: () => $nsid5,
266
+ $output: () => $output2,
267
+ $params: () => $params2,
268
+ main: () => main5
269
+ });
270
+ import { l as l5 } from "@atproto/lex";
271
+ var $nsid5 = "com.atiproto.account.cart.create";
272
+ var main5 = l5.procedure(
273
+ $nsid5,
274
+ l5.params(),
275
+ l5.jsonPayload({
276
+ currency: l5.string(),
277
+ redirectUrl: l5.optional(l5.string({ format: "uri" }))
278
+ }),
279
+ l5.jsonPayload({
280
+ cart: l5.ref((() => main)),
281
+ cartUri: l5.string({ format: "at-uri" }),
282
+ checkoutUrl: l5.string({ format: "uri" })
283
+ })
284
+ );
285
+ var $lxm2 = main5.nsid;
286
+ var $params2 = main5.parameters;
287
+ var $input2 = main5.input;
288
+ var $output2 = main5.output;
289
+
290
+ // src/lexicons/com/atiproto/account/cart/get.ts
291
+ var get_exports = {};
292
+ __export(get_exports, {
293
+ $defs: () => get_defs_exports,
294
+ $lxm: () => $lxm3,
295
+ $nsid: () => $nsid6,
296
+ $output: () => $output3,
297
+ $params: () => $params3,
298
+ main: () => main6
299
+ });
300
+
301
+ // src/lexicons/com/atiproto/account/cart/get.defs.ts
302
+ var get_defs_exports = {};
303
+ __export(get_defs_exports, {
304
+ $lxm: () => $lxm3,
305
+ $nsid: () => $nsid6,
306
+ $output: () => $output3,
307
+ $params: () => $params3,
308
+ main: () => main6
309
+ });
310
+ import { l as l6 } from "@atproto/lex";
311
+ var $nsid6 = "com.atiproto.account.cart.get";
312
+ var main6 = l6.query(
313
+ $nsid6,
314
+ l6.params({ uri: l6.string({ format: "at-uri" }) }),
315
+ l6.jsonPayload({
316
+ uri: l6.string({ format: "at-uri" }),
317
+ cid: l6.optional(l6.string({ format: "cid" })),
318
+ cart: l6.ref((() => main)),
319
+ checkoutUrl: l6.optional(l6.string({ format: "uri" })),
320
+ tips: l6.array(l6.ref((() => main2))),
321
+ subscriptions: l6.array(
322
+ l6.ref(
323
+ (() => main3)
324
+ )
325
+ )
326
+ })
327
+ );
328
+ var $lxm3 = main6.nsid;
329
+ var $params3 = main6.parameters;
330
+ var $output3 = main6.output;
331
+
332
+ // src/lexicons/com/atiproto/account/cart/list.ts
333
+ var list_exports = {};
334
+ __export(list_exports, {
335
+ $defs: () => list_defs_exports,
336
+ $lxm: () => $lxm4,
337
+ $nsid: () => $nsid7,
338
+ $output: () => $output4,
339
+ $params: () => $params4,
340
+ cartResponse: () => cartResponse,
341
+ main: () => main7
342
+ });
343
+
344
+ // src/lexicons/com/atiproto/account/cart/list.defs.ts
345
+ var list_defs_exports = {};
346
+ __export(list_defs_exports, {
347
+ $lxm: () => $lxm4,
348
+ $nsid: () => $nsid7,
349
+ $output: () => $output4,
350
+ $params: () => $params4,
351
+ cartResponse: () => cartResponse,
352
+ main: () => main7
353
+ });
354
+ import { l as l7 } from "@atproto/lex";
355
+ var $nsid7 = "com.atiproto.account.cart.list";
356
+ var main7 = l7.query(
357
+ $nsid7,
358
+ l7.params(),
359
+ l7.jsonPayload({
360
+ carts: l7.array(l7.ref((() => cartResponse))),
361
+ cursor: l7.optional(l7.string())
362
+ })
363
+ );
364
+ var $lxm4 = main7.nsid;
365
+ var $params4 = main7.parameters;
366
+ var $output4 = main7.output;
367
+ var cartResponse = l7.typedObject(
368
+ $nsid7,
369
+ "cartResponse",
370
+ l7.object({
371
+ uri: l7.string({ format: "at-uri" }),
372
+ cid: l7.string({ format: "cid" }),
373
+ record: l7.ref((() => main))
374
+ })
375
+ );
376
+
377
+ // src/lexicons/com/atiproto/account/cart/put.ts
378
+ var put_exports = {};
379
+ __export(put_exports, {
380
+ $defs: () => put_defs_exports,
381
+ $input: () => $input3,
382
+ $lxm: () => $lxm5,
383
+ $nsid: () => $nsid8,
384
+ $output: () => $output5,
385
+ $params: () => $params5,
386
+ main: () => main8
387
+ });
388
+
389
+ // src/lexicons/com/atiproto/account/cart/put.defs.ts
390
+ var put_defs_exports = {};
391
+ __export(put_defs_exports, {
392
+ $input: () => $input3,
393
+ $lxm: () => $lxm5,
394
+ $nsid: () => $nsid8,
395
+ $output: () => $output5,
396
+ $params: () => $params5,
397
+ main: () => main8
398
+ });
399
+ import { l as l8 } from "@atproto/lex";
400
+ var $nsid8 = "com.atiproto.account.cart.put";
401
+ var main8 = l8.procedure(
402
+ $nsid8,
403
+ l8.params(),
404
+ l8.jsonPayload({
405
+ uri: l8.string({ format: "at-uri" }),
406
+ record: l8.ref((() => main))
407
+ }),
408
+ l8.jsonPayload({
409
+ uri: l8.string({ format: "at-uri" }),
410
+ cid: l8.string({ format: "cid" })
411
+ })
412
+ );
413
+ var $lxm5 = main8.nsid;
414
+ var $params5 = main8.parameters;
415
+ var $input3 = main8.input;
416
+ var $output5 = main8.output;
417
+
418
+ // src/lexicons/com/atiproto/account/profile.ts
419
+ var profile_exports = {};
420
+ __export(profile_exports, {
421
+ get: () => get_exports2,
422
+ put: () => put_exports2
423
+ });
424
+
425
+ // src/lexicons/com/atiproto/account/profile/get.ts
426
+ var get_exports2 = {};
427
+ __export(get_exports2, {
428
+ $defs: () => get_defs_exports2,
429
+ $lxm: () => $lxm6,
430
+ $nsid: () => $nsid10,
431
+ $output: () => $output6,
432
+ $params: () => $params6,
433
+ main: () => main10
434
+ });
435
+
436
+ // src/lexicons/com/atiproto/account/profile/get.defs.ts
437
+ var get_defs_exports2 = {};
438
+ __export(get_defs_exports2, {
439
+ $lxm: () => $lxm6,
440
+ $nsid: () => $nsid10,
441
+ $output: () => $output6,
442
+ $params: () => $params6,
443
+ main: () => main10
444
+ });
445
+ import { l as l10 } from "@atproto/lex";
446
+
447
+ // src/lexicons/com/atiproto/profile.defs.ts
448
+ var profile_defs_exports = {};
449
+ __export(profile_defs_exports, {
450
+ $assert: () => $assert4,
451
+ $build: () => $build4,
452
+ $cast: () => $cast4,
453
+ $check: () => $check4,
454
+ $ifMatches: () => $ifMatches4,
455
+ $isTypeOf: () => $isTypeOf4,
456
+ $matches: () => $matches4,
457
+ $nsid: () => $nsid9,
458
+ $parse: () => $parse4,
459
+ $safeParse: () => $safeParse4,
460
+ $safeValidate: () => $safeValidate4,
461
+ $type: () => $type4,
462
+ $validate: () => $validate4,
463
+ main: () => main9
464
+ });
465
+ import { l as l9 } from "@atproto/lex";
466
+ var $nsid9 = "com.atiproto.profile";
467
+ var main9 = l9.record(
468
+ "literal:self",
469
+ $nsid9,
470
+ l9.object({
471
+ acceptsTips: l9.optional(l9.boolean()),
472
+ acceptsSubscriptions: l9.optional(l9.boolean()),
473
+ disableReceiptNotifications: l9.optional(l9.boolean()),
474
+ createdAt: l9.string({ format: "datetime" }),
475
+ updatedAt: l9.optional(l9.string({ format: "datetime" }))
476
+ })
477
+ );
478
+ var $isTypeOf4 = /* @__PURE__ */ main9.isTypeOf.bind(main9);
479
+ var $build4 = /* @__PURE__ */ main9.build.bind(main9);
480
+ var $type4 = main9.$type;
481
+ var $assert4 = /* @__PURE__ */ main9.assert.bind(main9);
482
+ var $check4 = /* @__PURE__ */ main9.check.bind(main9);
483
+ var $cast4 = /* @__PURE__ */ main9.cast.bind(main9);
484
+ var $ifMatches4 = /* @__PURE__ */ main9.ifMatches.bind(main9);
485
+ var $matches4 = /* @__PURE__ */ main9.matches.bind(main9);
486
+ var $parse4 = /* @__PURE__ */ main9.parse.bind(main9);
487
+ var $safeParse4 = /* @__PURE__ */ main9.safeParse.bind(main9);
488
+ var $validate4 = /* @__PURE__ */ main9.validate.bind(main9);
489
+ var $safeValidate4 = /* @__PURE__ */ main9.safeValidate.bind(main9);
490
+
491
+ // src/lexicons/com/atiproto/account/profile/get.defs.ts
492
+ var $nsid10 = "com.atiproto.account.profile.get";
493
+ var main10 = l10.query(
494
+ $nsid10,
495
+ l10.params(),
496
+ l10.jsonPayload({
497
+ uri: l10.optional(l10.string({ format: "at-uri" })),
498
+ cid: l10.optional(l10.string({ format: "cid" })),
499
+ profile: l10.ref((() => main9)),
500
+ hasProfile: l10.boolean(),
501
+ readyForPayment: l10.boolean()
502
+ })
503
+ );
504
+ var $lxm6 = main10.nsid;
505
+ var $params6 = main10.parameters;
506
+ var $output6 = main10.output;
507
+
508
+ // src/lexicons/com/atiproto/account/profile/put.ts
509
+ var put_exports2 = {};
510
+ __export(put_exports2, {
511
+ $defs: () => put_defs_exports2,
512
+ $input: () => $input4,
513
+ $lxm: () => $lxm7,
514
+ $nsid: () => $nsid11,
515
+ $output: () => $output7,
516
+ $params: () => $params7,
517
+ main: () => main11
518
+ });
519
+
520
+ // src/lexicons/com/atiproto/account/profile/put.defs.ts
521
+ var put_defs_exports2 = {};
522
+ __export(put_defs_exports2, {
523
+ $input: () => $input4,
524
+ $lxm: () => $lxm7,
525
+ $nsid: () => $nsid11,
526
+ $output: () => $output7,
527
+ $params: () => $params7,
528
+ main: () => main11
529
+ });
530
+ import { l as l11 } from "@atproto/lex";
531
+ var $nsid11 = "com.atiproto.account.profile.put";
532
+ var main11 = l11.procedure(
533
+ $nsid11,
534
+ l11.params(),
535
+ l11.jsonPayload({
536
+ acceptsTips: l11.optional(l11.boolean()),
537
+ acceptsSubscriptions: l11.optional(l11.boolean()),
538
+ disableReceiptNotifications: l11.optional(l11.boolean())
539
+ }),
540
+ l11.jsonPayload({
541
+ uri: l11.string({ format: "at-uri" }),
542
+ cid: l11.string({ format: "cid" }),
543
+ profile: l11.ref((() => main9)),
544
+ hasProfile: l11.boolean(),
545
+ readyForPayment: l11.boolean()
546
+ })
547
+ );
548
+ var $lxm7 = main11.nsid;
549
+ var $params7 = main11.parameters;
550
+ var $input4 = main11.input;
551
+ var $output7 = main11.output;
552
+
553
+ // src/lexicons/com/atiproto/cart.ts
554
+ var cart_exports2 = {};
555
+ __export(cart_exports2, {
556
+ $assert: () => $assert,
557
+ $build: () => $build,
558
+ $cast: () => $cast,
559
+ $check: () => $check,
560
+ $defs: () => cart_defs_exports,
561
+ $ifMatches: () => $ifMatches,
562
+ $isTypeOf: () => $isTypeOf,
563
+ $matches: () => $matches,
564
+ $nsid: () => $nsid,
565
+ $parse: () => $parse,
566
+ $safeParse: () => $safeParse,
567
+ $safeValidate: () => $safeValidate,
568
+ $type: () => $type,
569
+ $validate: () => $validate,
570
+ cartItem: () => cartItem,
571
+ main: () => main
572
+ });
573
+
574
+ // src/lexicons/com/atiproto/feed.ts
575
+ var feed_exports = {};
576
+ __export(feed_exports, {
577
+ list: () => list_exports2,
578
+ subscription: () => subscription_exports,
579
+ tip: () => tip_exports
580
+ });
581
+
582
+ // src/lexicons/com/atiproto/feed/list.ts
583
+ var list_exports2 = {};
584
+ __export(list_exports2, {
585
+ $defs: () => list_defs_exports2,
586
+ $lxm: () => $lxm8,
587
+ $nsid: () => $nsid12,
588
+ $output: () => $output8,
589
+ $params: () => $params8,
590
+ main: () => main12
591
+ });
592
+
593
+ // src/lexicons/com/atiproto/feed/list.defs.ts
594
+ var list_defs_exports2 = {};
595
+ __export(list_defs_exports2, {
596
+ $lxm: () => $lxm8,
597
+ $nsid: () => $nsid12,
598
+ $output: () => $output8,
599
+ $params: () => $params8,
600
+ main: () => main12
601
+ });
602
+ import { l as l12 } from "@atproto/lex";
603
+ var $nsid12 = "com.atiproto.feed.list";
604
+ var main12 = l12.query(
605
+ $nsid12,
606
+ l12.params(),
607
+ l12.jsonPayload({
608
+ items: l12.array(
609
+ l12.typedUnion(
610
+ [
611
+ l12.typedRef((() => main2)),
612
+ l12.typedRef(
613
+ (() => main3)
614
+ )
615
+ ],
616
+ false
617
+ )
618
+ ),
619
+ cursor: l12.optional(l12.string())
620
+ })
621
+ );
622
+ var $lxm8 = main12.nsid;
623
+ var $params8 = main12.parameters;
624
+ var $output8 = main12.output;
625
+
626
+ // src/lexicons/com/atiproto/feed/subscription.ts
627
+ var subscription_exports = {};
628
+ __export(subscription_exports, {
629
+ cancel: () => cancel_exports,
630
+ create: () => create_exports2,
631
+ get: () => get_exports3,
632
+ list: () => list_exports3,
633
+ put: () => put_exports3
634
+ });
635
+
636
+ // src/lexicons/com/atiproto/feed/subscription/cancel.ts
637
+ var cancel_exports = {};
638
+ __export(cancel_exports, {
639
+ $defs: () => cancel_defs_exports,
640
+ $input: () => $input5,
641
+ $lxm: () => $lxm9,
642
+ $nsid: () => $nsid13,
643
+ $output: () => $output9,
644
+ $params: () => $params9,
645
+ main: () => main13
646
+ });
647
+
648
+ // src/lexicons/com/atiproto/feed/subscription/cancel.defs.ts
649
+ var cancel_defs_exports = {};
650
+ __export(cancel_defs_exports, {
651
+ $input: () => $input5,
652
+ $lxm: () => $lxm9,
653
+ $nsid: () => $nsid13,
654
+ $output: () => $output9,
655
+ $params: () => $params9,
656
+ main: () => main13
657
+ });
658
+ import { l as l13 } from "@atproto/lex";
659
+ var $nsid13 = "com.atiproto.feed.subscription.cancel";
660
+ var main13 = l13.procedure(
661
+ $nsid13,
662
+ l13.params(),
663
+ l13.jsonPayload({ subscriptionUri: l13.string({ format: "at-uri" }) }),
664
+ l13.jsonPayload({
665
+ subscriptionUri: l13.string({ format: "at-uri" }),
666
+ subscription: l13.ref(
667
+ (() => main3)
668
+ ),
669
+ accessUntil: l13.string({ format: "datetime" })
670
+ })
671
+ );
672
+ var $lxm9 = main13.nsid;
673
+ var $params9 = main13.parameters;
674
+ var $input5 = main13.input;
675
+ var $output9 = main13.output;
676
+
677
+ // src/lexicons/com/atiproto/feed/subscription/create.ts
678
+ var create_exports2 = {};
679
+ __export(create_exports2, {
680
+ $defs: () => create_defs_exports2,
681
+ $input: () => $input6,
682
+ $lxm: () => $lxm10,
683
+ $nsid: () => $nsid14,
684
+ $output: () => $output10,
685
+ $params: () => $params10,
686
+ main: () => main14
687
+ });
688
+
689
+ // src/lexicons/com/atiproto/feed/subscription/create.defs.ts
690
+ var create_defs_exports2 = {};
691
+ __export(create_defs_exports2, {
692
+ $input: () => $input6,
693
+ $lxm: () => $lxm10,
694
+ $nsid: () => $nsid14,
695
+ $output: () => $output10,
696
+ $params: () => $params10,
697
+ main: () => main14
698
+ });
699
+ import { l as l14 } from "@atproto/lex";
700
+ var $nsid14 = "com.atiproto.feed.subscription.create";
701
+ var main14 = l14.procedure(
702
+ $nsid14,
703
+ l14.params(),
704
+ l14.jsonPayload({
705
+ subject: l14.string({ format: "did" }),
706
+ amount: l14.optional(l14.integer()),
707
+ currency: l14.string(),
708
+ interval: l14.string()
709
+ }),
710
+ l14.jsonPayload({
711
+ subscriptionUri: l14.string({ format: "at-uri" }),
712
+ subscription: l14.ref(
713
+ (() => main3)
714
+ ),
715
+ cartUri: l14.string({ format: "at-uri" }),
716
+ cart: l14.ref((() => main)),
717
+ checkoutUrl: l14.string({ format: "uri" })
718
+ })
719
+ );
720
+ var $lxm10 = main14.nsid;
721
+ var $params10 = main14.parameters;
722
+ var $input6 = main14.input;
723
+ var $output10 = main14.output;
724
+
725
+ // src/lexicons/com/atiproto/feed/subscription/get.ts
726
+ var get_exports3 = {};
727
+ __export(get_exports3, {
728
+ $defs: () => get_defs_exports3,
729
+ $lxm: () => $lxm11,
730
+ $nsid: () => $nsid15,
731
+ $output: () => $output11,
732
+ $params: () => $params11,
733
+ main: () => main15
734
+ });
735
+
736
+ // src/lexicons/com/atiproto/feed/subscription/get.defs.ts
737
+ var get_defs_exports3 = {};
738
+ __export(get_defs_exports3, {
739
+ $lxm: () => $lxm11,
740
+ $nsid: () => $nsid15,
741
+ $output: () => $output11,
742
+ $params: () => $params11,
743
+ main: () => main15
744
+ });
745
+ import { l as l15 } from "@atproto/lex";
746
+ var $nsid15 = "com.atiproto.feed.subscription.get";
747
+ var main15 = l15.query(
748
+ $nsid15,
749
+ l15.params({ uri: l15.string({ format: "at-uri" }) }),
750
+ l15.jsonPayload({
751
+ uri: l15.string({ format: "at-uri" }),
752
+ cid: l15.string({ format: "cid" }),
753
+ record: l15.ref(
754
+ (() => main3)
755
+ )
756
+ })
757
+ );
758
+ var $lxm11 = main15.nsid;
759
+ var $params11 = main15.parameters;
760
+ var $output11 = main15.output;
761
+
762
+ // src/lexicons/com/atiproto/feed/subscription/list.ts
763
+ var list_exports3 = {};
764
+ __export(list_exports3, {
765
+ $defs: () => list_defs_exports3,
766
+ $lxm: () => $lxm12,
767
+ $nsid: () => $nsid16,
768
+ $output: () => $output12,
769
+ $params: () => $params12,
770
+ main: () => main16,
771
+ subscriptionResponse: () => subscriptionResponse
772
+ });
773
+
774
+ // src/lexicons/com/atiproto/feed/subscription/list.defs.ts
775
+ var list_defs_exports3 = {};
776
+ __export(list_defs_exports3, {
777
+ $lxm: () => $lxm12,
778
+ $nsid: () => $nsid16,
779
+ $output: () => $output12,
780
+ $params: () => $params12,
781
+ main: () => main16,
782
+ subscriptionResponse: () => subscriptionResponse
783
+ });
784
+ import { l as l16 } from "@atproto/lex";
785
+ var $nsid16 = "com.atiproto.feed.subscription.list";
786
+ var main16 = l16.query(
787
+ $nsid16,
788
+ l16.params(),
789
+ l16.jsonPayload({
790
+ subscriptions: l16.array(
791
+ l16.ref((() => subscriptionResponse))
792
+ ),
793
+ cursor: l16.optional(l16.string())
794
+ })
795
+ );
796
+ var $lxm12 = main16.nsid;
797
+ var $params12 = main16.parameters;
798
+ var $output12 = main16.output;
799
+ var subscriptionResponse = l16.typedObject(
800
+ $nsid16,
801
+ "subscriptionResponse",
802
+ l16.object({
803
+ uri: l16.string({ format: "at-uri" }),
804
+ record: l16.ref(
805
+ (() => main3)
806
+ )
807
+ })
808
+ );
809
+
810
+ // src/lexicons/com/atiproto/feed/subscription/put.ts
811
+ var put_exports3 = {};
812
+ __export(put_exports3, {
813
+ $defs: () => put_defs_exports3,
814
+ $input: () => $input7,
815
+ $lxm: () => $lxm13,
816
+ $nsid: () => $nsid17,
817
+ $output: () => $output13,
818
+ $params: () => $params13,
819
+ main: () => main17
820
+ });
821
+
822
+ // src/lexicons/com/atiproto/feed/subscription/put.defs.ts
823
+ var put_defs_exports3 = {};
824
+ __export(put_defs_exports3, {
825
+ $input: () => $input7,
826
+ $lxm: () => $lxm13,
827
+ $nsid: () => $nsid17,
828
+ $output: () => $output13,
829
+ $params: () => $params13,
830
+ main: () => main17
831
+ });
832
+ import { l as l17 } from "@atproto/lex";
833
+ var $nsid17 = "com.atiproto.feed.subscription.put";
834
+ var main17 = l17.procedure(
835
+ $nsid17,
836
+ l17.params(),
837
+ l17.jsonPayload({
838
+ uri: l17.string({ format: "at-uri" }),
839
+ record: l17.ref(
840
+ (() => main3)
841
+ )
842
+ }),
843
+ l17.jsonPayload({
844
+ uri: l17.string({ format: "at-uri" }),
845
+ cid: l17.string({ format: "cid" })
846
+ })
847
+ );
848
+ var $lxm13 = main17.nsid;
849
+ var $params13 = main17.parameters;
850
+ var $input7 = main17.input;
851
+ var $output13 = main17.output;
852
+
853
+ // src/lexicons/com/atiproto/feed/tip.ts
854
+ var tip_exports = {};
855
+ __export(tip_exports, {
856
+ create: () => create_exports3,
857
+ get: () => get_exports4,
858
+ list: () => list_exports4,
859
+ put: () => put_exports4
860
+ });
861
+
862
+ // src/lexicons/com/atiproto/feed/tip/create.ts
863
+ var create_exports3 = {};
864
+ __export(create_exports3, {
865
+ $defs: () => create_defs_exports3,
866
+ $input: () => $input8,
867
+ $lxm: () => $lxm14,
868
+ $nsid: () => $nsid18,
869
+ $output: () => $output14,
870
+ $params: () => $params14,
871
+ main: () => main18
872
+ });
873
+
874
+ // src/lexicons/com/atiproto/feed/tip/create.defs.ts
875
+ var create_defs_exports3 = {};
876
+ __export(create_defs_exports3, {
877
+ $input: () => $input8,
878
+ $lxm: () => $lxm14,
879
+ $nsid: () => $nsid18,
880
+ $output: () => $output14,
881
+ $params: () => $params14,
882
+ main: () => main18
883
+ });
884
+ import { l as l18 } from "@atproto/lex";
885
+ var $nsid18 = "com.atiproto.feed.tip.create";
886
+ var main18 = l18.procedure(
887
+ $nsid18,
888
+ l18.params(),
889
+ l18.jsonPayload({
890
+ subject: l18.string({ format: "did" }),
891
+ recordUri: l18.optional(l18.string({ format: "at-uri" })),
892
+ amount: l18.integer(),
893
+ currency: l18.string(),
894
+ cartUri: l18.optional(l18.string({ format: "at-uri" })),
895
+ redirectUrl: l18.optional(l18.string({ format: "uri" })),
896
+ message: l18.optional(l18.string({ maxGraphemes: 500, maxLength: 5e3 }))
897
+ }),
898
+ l18.jsonPayload({
899
+ tipUri: l18.string({ format: "at-uri" }),
900
+ tip: l18.ref((() => main2)),
901
+ cartUri: l18.string({ format: "at-uri" }),
902
+ cart: l18.ref((() => main)),
903
+ checkoutUrl: l18.string({ format: "uri" })
904
+ })
905
+ );
906
+ var $lxm14 = main18.nsid;
907
+ var $params14 = main18.parameters;
908
+ var $input8 = main18.input;
909
+ var $output14 = main18.output;
910
+
911
+ // src/lexicons/com/atiproto/feed/tip/get.ts
912
+ var get_exports4 = {};
913
+ __export(get_exports4, {
914
+ $defs: () => get_defs_exports4,
915
+ $lxm: () => $lxm15,
916
+ $nsid: () => $nsid19,
917
+ $output: () => $output15,
918
+ $params: () => $params15,
919
+ main: () => main19
920
+ });
921
+
922
+ // src/lexicons/com/atiproto/feed/tip/get.defs.ts
923
+ var get_defs_exports4 = {};
924
+ __export(get_defs_exports4, {
925
+ $lxm: () => $lxm15,
926
+ $nsid: () => $nsid19,
927
+ $output: () => $output15,
928
+ $params: () => $params15,
929
+ main: () => main19
930
+ });
931
+ import { l as l19 } from "@atproto/lex";
932
+ var $nsid19 = "com.atiproto.feed.tip.get";
933
+ var main19 = l19.query(
934
+ $nsid19,
935
+ l19.params({ uri: l19.string({ format: "at-uri" }) }),
936
+ l19.jsonPayload({
937
+ uri: l19.string({ format: "at-uri" }),
938
+ cid: l19.string({ format: "cid" }),
939
+ value: l19.ref((() => main2))
940
+ })
941
+ );
942
+ var $lxm15 = main19.nsid;
943
+ var $params15 = main19.parameters;
944
+ var $output15 = main19.output;
945
+
946
+ // src/lexicons/com/atiproto/feed/tip/list.ts
947
+ var list_exports4 = {};
948
+ __export(list_exports4, {
949
+ $defs: () => list_defs_exports4,
950
+ $lxm: () => $lxm16,
951
+ $nsid: () => $nsid20,
952
+ $output: () => $output16,
953
+ $params: () => $params16,
954
+ main: () => main20
955
+ });
956
+
957
+ // src/lexicons/com/atiproto/feed/tip/list.defs.ts
958
+ var list_defs_exports4 = {};
959
+ __export(list_defs_exports4, {
960
+ $lxm: () => $lxm16,
961
+ $nsid: () => $nsid20,
962
+ $output: () => $output16,
963
+ $params: () => $params16,
964
+ main: () => main20
965
+ });
966
+ import { l as l20 } from "@atproto/lex";
967
+ var $nsid20 = "com.atiproto.feed.tip.list";
968
+ var main20 = l20.query(
969
+ $nsid20,
970
+ l20.params(),
971
+ l20.jsonPayload({
972
+ records: l20.array(l20.ref((() => main2))),
973
+ cursor: l20.optional(l20.string())
974
+ })
975
+ );
976
+ var $lxm16 = main20.nsid;
977
+ var $params16 = main20.parameters;
978
+ var $output16 = main20.output;
979
+
980
+ // src/lexicons/com/atiproto/feed/tip/put.ts
981
+ var put_exports4 = {};
982
+ __export(put_exports4, {
983
+ $defs: () => put_defs_exports4,
984
+ $input: () => $input9,
985
+ $lxm: () => $lxm17,
986
+ $nsid: () => $nsid21,
987
+ $output: () => $output17,
988
+ $params: () => $params17,
989
+ main: () => main21
990
+ });
991
+
992
+ // src/lexicons/com/atiproto/feed/tip/put.defs.ts
993
+ var put_defs_exports4 = {};
994
+ __export(put_defs_exports4, {
995
+ $input: () => $input9,
996
+ $lxm: () => $lxm17,
997
+ $nsid: () => $nsid21,
998
+ $output: () => $output17,
999
+ $params: () => $params17,
1000
+ main: () => main21
1001
+ });
1002
+ import { l as l21 } from "@atproto/lex";
1003
+ var $nsid21 = "com.atiproto.feed.tip.put";
1004
+ var main21 = l21.procedure(
1005
+ $nsid21,
1006
+ l21.params(),
1007
+ l21.jsonPayload({
1008
+ uri: l21.string({ format: "at-uri" }),
1009
+ record: l21.ref((() => main2))
1010
+ }),
1011
+ l21.jsonPayload({
1012
+ uri: l21.string({ format: "at-uri" }),
1013
+ cid: l21.string({ format: "cid" })
1014
+ })
1015
+ );
1016
+ var $lxm17 = main21.nsid;
1017
+ var $params17 = main21.parameters;
1018
+ var $input9 = main21.input;
1019
+ var $output17 = main21.output;
1020
+
1021
+ // src/lexicons/com/atiproto/profile.ts
1022
+ var profile_exports2 = {};
1023
+ __export(profile_exports2, {
1024
+ $assert: () => $assert4,
1025
+ $build: () => $build4,
1026
+ $cast: () => $cast4,
1027
+ $check: () => $check4,
1028
+ $defs: () => profile_defs_exports,
1029
+ $ifMatches: () => $ifMatches4,
1030
+ $isTypeOf: () => $isTypeOf4,
1031
+ $matches: () => $matches4,
1032
+ $nsid: () => $nsid9,
1033
+ $parse: () => $parse4,
1034
+ $safeParse: () => $safeParse4,
1035
+ $safeValidate: () => $safeValidate4,
1036
+ $type: () => $type4,
1037
+ $validate: () => $validate4,
1038
+ main: () => main9
1039
+ });
1040
+
1041
+ // src/lexicons/com/atiproto/repo.ts
1042
+ var repo_exports = {};
1043
+ __export(repo_exports, {
1044
+ profile: () => profile_exports3,
1045
+ subscription: () => subscription_exports2,
1046
+ tip: () => tip_exports2
1047
+ });
1048
+
1049
+ // src/lexicons/com/atiproto/repo/profile.ts
1050
+ var profile_exports3 = {};
1051
+ __export(profile_exports3, {
1052
+ get: () => get_exports5
1053
+ });
1054
+
1055
+ // src/lexicons/com/atiproto/repo/profile/get.ts
1056
+ var get_exports5 = {};
1057
+ __export(get_exports5, {
1058
+ $defs: () => get_defs_exports5,
1059
+ $lxm: () => $lxm18,
1060
+ $nsid: () => $nsid22,
1061
+ $output: () => $output18,
1062
+ $params: () => $params18,
1063
+ main: () => main22
1064
+ });
1065
+
1066
+ // src/lexicons/com/atiproto/repo/profile/get.defs.ts
1067
+ var get_defs_exports5 = {};
1068
+ __export(get_defs_exports5, {
1069
+ $lxm: () => $lxm18,
1070
+ $nsid: () => $nsid22,
1071
+ $output: () => $output18,
1072
+ $params: () => $params18,
1073
+ main: () => main22
1074
+ });
1075
+ import { l as l22 } from "@atproto/lex";
1076
+ var $nsid22 = "com.atiproto.repo.profile.get";
1077
+ var main22 = l22.query(
1078
+ $nsid22,
1079
+ l22.params({ did: l22.string({ format: "did" }) }),
1080
+ l22.jsonPayload({
1081
+ did: l22.string({ format: "did" }),
1082
+ profile: l22.ref((() => main9))
1083
+ })
1084
+ );
1085
+ var $lxm18 = main22.nsid;
1086
+ var $params18 = main22.parameters;
1087
+ var $output18 = main22.output;
1088
+
1089
+ // src/lexicons/com/atiproto/repo/subscription.ts
1090
+ var subscription_exports2 = {};
1091
+ __export(subscription_exports2, {
1092
+ search: () => search_exports,
1093
+ validate: () => validate_exports
1094
+ });
1095
+
1096
+ // src/lexicons/com/atiproto/repo/subscription/search.ts
1097
+ var search_exports = {};
1098
+ __export(search_exports, {
1099
+ $defs: () => search_defs_exports,
1100
+ $lxm: () => $lxm19,
1101
+ $nsid: () => $nsid23,
1102
+ $output: () => $output19,
1103
+ $params: () => $params19,
1104
+ main: () => main23,
1105
+ subscriptionResponse: () => subscriptionResponse2
1106
+ });
1107
+
1108
+ // src/lexicons/com/atiproto/repo/subscription/search.defs.ts
1109
+ var search_defs_exports = {};
1110
+ __export(search_defs_exports, {
1111
+ $lxm: () => $lxm19,
1112
+ $nsid: () => $nsid23,
1113
+ $output: () => $output19,
1114
+ $params: () => $params19,
1115
+ main: () => main23,
1116
+ subscriptionResponse: () => subscriptionResponse2
1117
+ });
1118
+ import { l as l23 } from "@atproto/lex";
1119
+ var $nsid23 = "com.atiproto.repo.subscription.search";
1120
+ var main23 = l23.query(
1121
+ $nsid23,
1122
+ l23.params({
1123
+ subject: l23.string({ format: "did" }),
1124
+ cursor: l23.optional(l23.string()),
1125
+ limit: l23.optional(
1126
+ l23.withDefault(l23.integer({ minimum: 1, maximum: 100 }), 50)
1127
+ )
1128
+ }),
1129
+ l23.jsonPayload({
1130
+ subscriptions: l23.array(
1131
+ l23.ref((() => subscriptionResponse2))
1132
+ ),
1133
+ cursor: l23.optional(l23.string())
1134
+ })
1135
+ );
1136
+ var $lxm19 = main23.nsid;
1137
+ var $params19 = main23.parameters;
1138
+ var $output19 = main23.output;
1139
+ var subscriptionResponse2 = l23.typedObject(
1140
+ $nsid23,
1141
+ "subscriptionResponse",
1142
+ l23.object({
1143
+ uri: l23.string({ format: "at-uri" }),
1144
+ record: l23.ref(
1145
+ (() => main3)
1146
+ )
1147
+ })
1148
+ );
1149
+
1150
+ // src/lexicons/com/atiproto/repo/subscription/validate.ts
1151
+ var validate_exports = {};
1152
+ __export(validate_exports, {
1153
+ $defs: () => validate_defs_exports,
1154
+ $lxm: () => $lxm20,
1155
+ $nsid: () => $nsid24,
1156
+ $output: () => $output20,
1157
+ $params: () => $params20,
1158
+ main: () => main24
1159
+ });
1160
+
1161
+ // src/lexicons/com/atiproto/repo/subscription/validate.defs.ts
1162
+ var validate_defs_exports = {};
1163
+ __export(validate_defs_exports, {
1164
+ $lxm: () => $lxm20,
1165
+ $nsid: () => $nsid24,
1166
+ $output: () => $output20,
1167
+ $params: () => $params20,
1168
+ main: () => main24
1169
+ });
1170
+ import { l as l24 } from "@atproto/lex";
1171
+ var $nsid24 = "com.atiproto.repo.subscription.validate";
1172
+ var main24 = l24.query(
1173
+ $nsid24,
1174
+ l24.params({
1175
+ sender: l24.string({ format: "did" }),
1176
+ subject: l24.string({ format: "did" }),
1177
+ amount: l24.optional(l24.integer())
1178
+ }),
1179
+ l24.jsonPayload({
1180
+ valid: l24.boolean(),
1181
+ amount: l24.optional(l24.integer()),
1182
+ currency: l24.optional(l24.string()),
1183
+ reason: l24.optional(l24.string())
1184
+ })
1185
+ );
1186
+ var $lxm20 = main24.nsid;
1187
+ var $params20 = main24.parameters;
1188
+ var $output20 = main24.output;
1189
+
1190
+ // src/lexicons/com/atiproto/repo/tip.ts
1191
+ var tip_exports2 = {};
1192
+ __export(tip_exports2, {
1193
+ search: () => search_exports2,
1194
+ validate: () => validate_exports2
1195
+ });
1196
+
1197
+ // src/lexicons/com/atiproto/repo/tip/search.ts
1198
+ var search_exports2 = {};
1199
+ __export(search_exports2, {
1200
+ $defs: () => search_defs_exports2,
1201
+ $lxm: () => $lxm21,
1202
+ $nsid: () => $nsid25,
1203
+ $output: () => $output21,
1204
+ $params: () => $params21,
1205
+ main: () => main25,
1206
+ tipResponse: () => tipResponse
1207
+ });
1208
+
1209
+ // src/lexicons/com/atiproto/repo/tip/search.defs.ts
1210
+ var search_defs_exports2 = {};
1211
+ __export(search_defs_exports2, {
1212
+ $lxm: () => $lxm21,
1213
+ $nsid: () => $nsid25,
1214
+ $output: () => $output21,
1215
+ $params: () => $params21,
1216
+ main: () => main25,
1217
+ tipResponse: () => tipResponse
1218
+ });
1219
+ import { l as l25 } from "@atproto/lex";
1220
+ var $nsid25 = "com.atiproto.repo.tip.search";
1221
+ var main25 = l25.query(
1222
+ $nsid25,
1223
+ l25.params({
1224
+ subject: l25.string({ format: "did" }),
1225
+ cursor: l25.optional(l25.string()),
1226
+ limit: l25.optional(
1227
+ l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
1228
+ )
1229
+ }),
1230
+ l25.jsonPayload({
1231
+ tips: l25.array(l25.ref((() => tipResponse))),
1232
+ cursor: l25.optional(l25.string())
1233
+ })
1234
+ );
1235
+ var $lxm21 = main25.nsid;
1236
+ var $params21 = main25.parameters;
1237
+ var $output21 = main25.output;
1238
+ var tipResponse = l25.typedObject(
1239
+ $nsid25,
1240
+ "tipResponse",
1241
+ l25.object({
1242
+ uri: l25.string({ format: "at-uri" }),
1243
+ record: l25.ref((() => main2))
1244
+ })
1245
+ );
1246
+
1247
+ // src/lexicons/com/atiproto/repo/tip/validate.ts
1248
+ var validate_exports2 = {};
1249
+ __export(validate_exports2, {
1250
+ $defs: () => validate_defs_exports2,
1251
+ $lxm: () => $lxm22,
1252
+ $nsid: () => $nsid26,
1253
+ $output: () => $output22,
1254
+ $params: () => $params22,
1255
+ main: () => main26
1256
+ });
1257
+
1258
+ // src/lexicons/com/atiproto/repo/tip/validate.defs.ts
1259
+ var validate_defs_exports2 = {};
1260
+ __export(validate_defs_exports2, {
1261
+ $lxm: () => $lxm22,
1262
+ $nsid: () => $nsid26,
1263
+ $output: () => $output22,
1264
+ $params: () => $params22,
1265
+ main: () => main26
1266
+ });
1267
+ import { l as l26 } from "@atproto/lex";
1268
+ var $nsid26 = "com.atiproto.repo.tip.validate";
1269
+ var main26 = l26.query(
1270
+ $nsid26,
1271
+ l26.params({
1272
+ sender: l26.string({ format: "did" }),
1273
+ subject: l26.optional(l26.string({ format: "did" })),
1274
+ recordUri: l26.optional(l26.string({ format: "at-uri" })),
1275
+ amount: l26.optional(l26.integer())
1276
+ }),
1277
+ l26.jsonPayload({
1278
+ valid: l26.boolean(),
1279
+ amount: l26.optional(l26.integer()),
1280
+ currency: l26.optional(l26.string()),
1281
+ reason: l26.optional(l26.string())
1282
+ })
1283
+ );
1284
+ var $lxm22 = main26.nsid;
1285
+ var $params22 = main26.parameters;
1286
+ var $output22 = main26.output;
1287
+
1288
+ // src/lexicons/com/atiproto/subscription.ts
1289
+ var subscription_exports3 = {};
1290
+ __export(subscription_exports3, {
1291
+ $assert: () => $assert3,
1292
+ $build: () => $build3,
1293
+ $cast: () => $cast3,
1294
+ $check: () => $check3,
1295
+ $defs: () => subscription_defs_exports,
1296
+ $ifMatches: () => $ifMatches3,
1297
+ $isTypeOf: () => $isTypeOf3,
1298
+ $matches: () => $matches3,
1299
+ $nsid: () => $nsid3,
1300
+ $parse: () => $parse3,
1301
+ $safeParse: () => $safeParse3,
1302
+ $safeValidate: () => $safeValidate3,
1303
+ $type: () => $type3,
1304
+ $validate: () => $validate3,
1305
+ main: () => main3
1306
+ });
1307
+
1308
+ // src/lexicons/com/atiproto/tip.ts
1309
+ var tip_exports3 = {};
1310
+ __export(tip_exports3, {
1311
+ $assert: () => $assert2,
1312
+ $build: () => $build2,
1313
+ $cast: () => $cast2,
1314
+ $check: () => $check2,
1315
+ $defs: () => tip_defs_exports,
1316
+ $ifMatches: () => $ifMatches2,
1317
+ $isTypeOf: () => $isTypeOf2,
1318
+ $matches: () => $matches2,
1319
+ $nsid: () => $nsid2,
1320
+ $parse: () => $parse2,
1321
+ $safeParse: () => $safeParse2,
1322
+ $safeValidate: () => $safeValidate2,
1323
+ $type: () => $type2,
1324
+ $validate: () => $validate2,
1325
+ main: () => main2
1326
+ });
1327
+
1328
+ // src/schemas/account/cart/clone.json
1329
+ var clone_default = {
1330
+ lexicon: 1,
1331
+ id: "com.atiproto.account.cart.clone",
1332
+ defs: {
1333
+ main: {
1334
+ type: "procedure",
1335
+ description: "Clone an existing cart, creating new tip and subscription records. Useful for reopening expired carts or repeating tips.",
1336
+ input: {
1337
+ encoding: "application/json",
1338
+ schema: {
1339
+ type: "object",
1340
+ required: ["uri"],
1341
+ properties: {
1342
+ uri: {
1343
+ type: "string",
1344
+ format: "at-uri",
1345
+ description: "AT-URI of the cart to clone"
1346
+ },
1347
+ redirectUrl: {
1348
+ type: "string",
1349
+ format: "uri",
1350
+ description: "URI to redirect to after checkout is complete/cancelled"
1351
+ }
1352
+ }
1353
+ }
1354
+ },
1355
+ output: {
1356
+ encoding: "application/json",
1357
+ schema: {
1358
+ type: "object",
1359
+ required: [
1360
+ "cart",
1361
+ "cartUri",
1362
+ "checkoutUrl",
1363
+ "tips",
1364
+ "subscriptions"
1365
+ ],
1366
+ properties: {
1367
+ cart: {
1368
+ type: "ref",
1369
+ ref: "com.atiproto.cart",
1370
+ description: "The new cart record"
1371
+ },
1372
+ cartUri: {
1373
+ type: "string",
1374
+ format: "at-uri",
1375
+ description: "URI of the new cart record"
1376
+ },
1377
+ checkoutUrl: {
1378
+ type: "string",
1379
+ format: "uri",
1380
+ description: "Checkout URL for the new cart"
1381
+ },
1382
+ tips: {
1383
+ type: "array",
1384
+ items: {
1385
+ type: "ref",
1386
+ ref: "com.atiproto.tip"
1387
+ },
1388
+ description: "Newly created tip records"
1389
+ },
1390
+ subscriptions: {
1391
+ type: "array",
1392
+ items: {
1393
+ type: "ref",
1394
+ ref: "com.atiproto.subscription"
1395
+ },
1396
+ description: "Newly created subscription records"
1397
+ }
1398
+ }
1399
+ }
1400
+ }
1401
+ }
1402
+ }
1403
+ };
1404
+
1405
+ // src/schemas/account/cart/create.json
1406
+ var create_default = {
1407
+ lexicon: 1,
1408
+ id: "com.atiproto.account.cart.create",
1409
+ defs: {
1410
+ main: {
1411
+ type: "procedure",
1412
+ description: "Create a new empty cart",
1413
+ input: {
1414
+ encoding: "application/json",
1415
+ schema: {
1416
+ type: "object",
1417
+ required: ["currency"],
1418
+ properties: {
1419
+ currency: {
1420
+ type: "string",
1421
+ description: "ISO 4217 currency code"
1422
+ },
1423
+ redirectUrl: {
1424
+ type: "string",
1425
+ format: "uri",
1426
+ description: "URI to redirect to after checkout is complete/cancelled"
1427
+ }
1428
+ }
1429
+ }
1430
+ },
1431
+ output: {
1432
+ encoding: "application/json",
1433
+ schema: {
1434
+ type: "object",
1435
+ required: ["cart", "cartUri", "checkoutUrl"],
1436
+ properties: {
1437
+ cart: {
1438
+ type: "ref",
1439
+ ref: "com.atiproto.cart",
1440
+ description: "The created cart record"
1441
+ },
1442
+ cartUri: {
1443
+ type: "string",
1444
+ format: "at-uri",
1445
+ description: "URI of the cart record"
1446
+ },
1447
+ checkoutUrl: {
1448
+ type: "string",
1449
+ format: "uri",
1450
+ description: "Checkout URL hosted by atiproto"
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ }
1456
+ }
1457
+ };
1458
+
1459
+ // src/schemas/account/cart/get.json
1460
+ var get_default = {
1461
+ lexicon: 1,
1462
+ id: "com.atiproto.account.cart.get",
1463
+ defs: {
1464
+ main: {
1465
+ type: "query",
1466
+ description: "Get a specific cart by URI, including resolved tip and subscription records",
1467
+ parameters: {
1468
+ type: "params",
1469
+ required: ["uri"],
1470
+ properties: {
1471
+ uri: {
1472
+ type: "string",
1473
+ format: "at-uri",
1474
+ description: "AT-URI of the cart record"
1475
+ }
1476
+ }
1477
+ },
1478
+ output: {
1479
+ encoding: "application/json",
1480
+ schema: {
1481
+ type: "object",
1482
+ required: ["uri", "cart", "tips", "subscriptions"],
1483
+ properties: {
1484
+ uri: {
1485
+ type: "string",
1486
+ format: "at-uri",
1487
+ description: "Cart record URI"
1488
+ },
1489
+ cid: {
1490
+ type: "string",
1491
+ format: "cid",
1492
+ description: "Cart record CID"
1493
+ },
1494
+ cart: {
1495
+ type: "ref",
1496
+ ref: "com.atiproto.cart",
1497
+ description: "The cart record data"
1498
+ },
1499
+ checkoutUrl: {
1500
+ type: "string",
1501
+ format: "uri",
1502
+ description: "Checkout URL, only present when cart status is open"
1503
+ },
1504
+ tips: {
1505
+ type: "array",
1506
+ items: {
1507
+ type: "ref",
1508
+ ref: "com.atiproto.tip"
1509
+ },
1510
+ description: "Resolved tip records referenced by this cart"
1511
+ },
1512
+ subscriptions: {
1513
+ type: "array",
1514
+ items: {
1515
+ type: "ref",
1516
+ ref: "com.atiproto.subscription"
1517
+ },
1518
+ description: "Resolved subscription records referenced by this cart"
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ }
1525
+ };
1526
+
1527
+ // src/schemas/account/cart/list.json
1528
+ var list_default = {
1529
+ lexicon: 1,
1530
+ id: "com.atiproto.account.cart.list",
1531
+ defs: {
1532
+ main: {
1533
+ type: "query",
1534
+ description: "List carts for the authenticated user",
1535
+ input: {
1536
+ encoding: "application/json",
1537
+ schema: {
1538
+ type: "object",
1539
+ properties: {
1540
+ status: {
1541
+ type: "string",
1542
+ description: "Filter: open, completed, expired, abandoned"
1543
+ },
1544
+ cursor: {
1545
+ type: "string",
1546
+ description: "Pagination cursor"
1547
+ },
1548
+ limit: {
1549
+ type: "integer",
1550
+ default: 20,
1551
+ minimum: 1,
1552
+ maximum: 100,
1553
+ description: "Results per page (1-100, default: 20)"
1554
+ }
1555
+ }
1556
+ }
1557
+ },
1558
+ output: {
1559
+ encoding: "application/json",
1560
+ schema: {
1561
+ type: "object",
1562
+ properties: {
1563
+ carts: {
1564
+ type: "array",
1565
+ items: {
1566
+ type: "ref",
1567
+ ref: "#cartResponse"
1568
+ }
1569
+ },
1570
+ cursor: {
1571
+ type: "string",
1572
+ description: "Pagination cursor for next page"
1573
+ }
1574
+ },
1575
+ required: ["carts"]
1576
+ }
1577
+ }
1578
+ },
1579
+ cartResponse: {
1580
+ type: "object",
1581
+ required: ["uri", "cid", "record"],
1582
+ properties: {
1583
+ uri: {
1584
+ type: "string",
1585
+ format: "at-uri",
1586
+ description: "AT-URI of the cart record"
1587
+ },
1588
+ cid: {
1589
+ type: "string",
1590
+ format: "cid",
1591
+ description: "CID of the cart record"
1592
+ },
1593
+ record: {
1594
+ type: "ref",
1595
+ ref: "com.atiproto.cart"
1596
+ }
1597
+ }
1598
+ }
1599
+ }
1600
+ };
1601
+
1602
+ // src/schemas/account/cart/put.json
1603
+ var put_default = {
1604
+ lexicon: 1,
1605
+ id: "com.atiproto.account.cart.put",
1606
+ defs: {
1607
+ main: {
1608
+ type: "procedure",
1609
+ description: "Update a cart. Only open carts can be updated.",
1610
+ input: {
1611
+ encoding: "application/json",
1612
+ schema: {
1613
+ type: "object",
1614
+ required: ["uri", "record"],
1615
+ properties: {
1616
+ uri: {
1617
+ type: "string",
1618
+ format: "at-uri",
1619
+ description: "AT-URI of the cart to update"
1620
+ },
1621
+ record: {
1622
+ type: "ref",
1623
+ ref: "com.atiproto.cart"
1624
+ }
1625
+ }
1626
+ }
1627
+ },
1628
+ output: {
1629
+ encoding: "application/json",
1630
+ schema: {
1631
+ type: "object",
1632
+ required: ["uri", "cid"],
1633
+ properties: {
1634
+ uri: {
1635
+ type: "string",
1636
+ format: "at-uri",
1637
+ description: "Updated cart record URI"
1638
+ },
1639
+ cid: {
1640
+ type: "string",
1641
+ format: "cid",
1642
+ description: "New CID of the updated record"
1643
+ }
1644
+ }
1645
+ }
1646
+ }
1647
+ }
1648
+ }
1649
+ };
1650
+
1651
+ // src/schemas/account/profile/get.json
1652
+ var get_default2 = {
1653
+ lexicon: 1,
1654
+ id: "com.atiproto.account.profile.get",
1655
+ defs: {
1656
+ main: {
1657
+ type: "query",
1658
+ description: "Get the authenticated user's profile settings. Returns defaults if no profile exists.",
1659
+ output: {
1660
+ encoding: "application/json",
1661
+ schema: {
1662
+ type: "object",
1663
+ required: ["profile", "hasProfile", "readyForPayment"],
1664
+ properties: {
1665
+ uri: {
1666
+ type: "string",
1667
+ format: "at-uri",
1668
+ description: "Profile record URI (absent if no profile configured)"
1669
+ },
1670
+ cid: {
1671
+ type: "string",
1672
+ format: "cid",
1673
+ description: "Profile record CID (absent if no profile configured)"
1674
+ },
1675
+ profile: {
1676
+ type: "ref",
1677
+ ref: "com.atiproto.profile",
1678
+ description: "The profile record data (defaults if not configured)"
1679
+ },
1680
+ hasProfile: {
1681
+ type: "boolean",
1682
+ description: "Whether the user has saved a profile record"
1683
+ },
1684
+ readyForPayment: {
1685
+ type: "boolean",
1686
+ description: "Whether the user's payment account is set up and enabled"
1687
+ }
1688
+ }
1689
+ }
1690
+ }
1691
+ }
1692
+ }
1693
+ };
1694
+
1695
+ // src/schemas/account/profile/put.json
1696
+ var put_default2 = {
1697
+ lexicon: 1,
1698
+ id: "com.atiproto.account.profile.put",
1699
+ defs: {
1700
+ main: {
1701
+ type: "procedure",
1702
+ description: "Create or update the authenticated user's profile settings",
1703
+ input: {
1704
+ encoding: "application/json",
1705
+ schema: {
1706
+ type: "object",
1707
+ properties: {
1708
+ acceptsTips: {
1709
+ type: "boolean",
1710
+ description: "Enable accepting tips"
1711
+ },
1712
+ acceptsSubscriptions: {
1713
+ type: "boolean",
1714
+ description: "Enable accepting subscriptions"
1715
+ },
1716
+ disableReceiptNotifications: {
1717
+ type: "boolean",
1718
+ description: "Opt out of payment receipt DMs"
1719
+ }
1720
+ }
1721
+ }
1722
+ },
1723
+ output: {
1724
+ encoding: "application/json",
1725
+ schema: {
1726
+ type: "object",
1727
+ required: [
1728
+ "uri",
1729
+ "cid",
1730
+ "profile",
1731
+ "hasProfile",
1732
+ "readyForPayment"
1733
+ ],
1734
+ properties: {
1735
+ uri: {
1736
+ type: "string",
1737
+ format: "at-uri",
1738
+ description: "Profile record URI"
1739
+ },
1740
+ cid: {
1741
+ type: "string",
1742
+ format: "cid",
1743
+ description: "Profile record CID"
1744
+ },
1745
+ profile: {
1746
+ type: "ref",
1747
+ ref: "com.atiproto.profile",
1748
+ description: "The profile record data"
1749
+ },
1750
+ hasProfile: {
1751
+ type: "boolean",
1752
+ description: "Whether the user has saved a profile record"
1753
+ },
1754
+ readyForPayment: {
1755
+ type: "boolean",
1756
+ description: "Whether the user's payment account is set up and enabled"
1757
+ }
1758
+ }
1759
+ }
1760
+ }
1761
+ }
1762
+ }
1763
+ };
1764
+
1765
+ // src/schemas/cart.json
1766
+ var cart_default = {
1767
+ lexicon: 1,
1768
+ id: "com.atiproto.cart",
1769
+ defs: {
1770
+ main: {
1771
+ type: "record",
1772
+ description: "A record representing a shopping cart for tips/subscriptions",
1773
+ key: "any",
1774
+ record: {
1775
+ type: "object",
1776
+ required: [
1777
+ "items",
1778
+ "currency",
1779
+ "total",
1780
+ "status",
1781
+ "createdAt",
1782
+ "expiresAt"
1783
+ ],
1784
+ properties: {
1785
+ items: {
1786
+ type: "array",
1787
+ items: {
1788
+ type: "ref",
1789
+ ref: "#cartItem"
1790
+ }
1791
+ },
1792
+ currency: {
1793
+ type: "string",
1794
+ description: "ISO 4217 currency code"
1795
+ },
1796
+ total: {
1797
+ type: "integer",
1798
+ description: "Total amount in cents"
1799
+ },
1800
+ status: {
1801
+ type: "string",
1802
+ description: "Cart status: open, completed, expired, abandoned"
1803
+ },
1804
+ createdAt: {
1805
+ type: "string",
1806
+ format: "datetime",
1807
+ description: "Creation timestamp"
1808
+ },
1809
+ expiresAt: {
1810
+ type: "string",
1811
+ format: "datetime",
1812
+ description: "Expiration timestamp"
1813
+ },
1814
+ completedAt: {
1815
+ type: "string",
1816
+ format: "datetime",
1817
+ description: "Completion timestamp"
1818
+ }
1819
+ }
1820
+ }
1821
+ },
1822
+ cartItem: {
1823
+ type: "object",
1824
+ required: ["type", "recordUri"],
1825
+ properties: {
1826
+ type: {
1827
+ type: "string",
1828
+ description: "Item type: tip or subscription",
1829
+ enum: ["com.atiproto.tip", "com.atiproto.subscription"]
1830
+ },
1831
+ recordUri: {
1832
+ type: "string",
1833
+ format: "at-uri",
1834
+ description: "AT-URI for tip on record"
1835
+ }
1836
+ }
1837
+ }
1838
+ }
1839
+ };
1840
+
1841
+ // src/schemas/feed/list.json
1842
+ var list_default2 = {
1843
+ lexicon: 1,
1844
+ id: "com.atiproto.feed.list",
1845
+ defs: {
1846
+ main: {
1847
+ type: "query",
1848
+ description: "List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created.",
1849
+ input: {
1850
+ encoding: "application/json",
1851
+ schema: {
1852
+ type: "object",
1853
+ properties: {
1854
+ cursor: {
1855
+ type: "string",
1856
+ description: "Pagination cursor"
1857
+ },
1858
+ limit: {
1859
+ type: "integer",
1860
+ minimum: 1,
1861
+ maximum: 100,
1862
+ default: 50,
1863
+ description: "Results per page (1-100)"
1864
+ }
1865
+ }
1866
+ }
1867
+ },
1868
+ output: {
1869
+ encoding: "application/json",
1870
+ schema: {
1871
+ type: "object",
1872
+ required: ["items"],
1873
+ properties: {
1874
+ items: {
1875
+ type: "array",
1876
+ items: {
1877
+ type: "union",
1878
+ refs: ["com.atiproto.tip", "com.atiproto.subscription"]
1879
+ }
1880
+ },
1881
+ cursor: {
1882
+ type: "string",
1883
+ description: "Pagination cursor for next page"
1884
+ }
1885
+ }
1886
+ }
1887
+ }
1888
+ }
1889
+ }
1890
+ };
1891
+
1892
+ // src/schemas/feed/subscription/cancel.json
1893
+ var cancel_default = {
1894
+ lexicon: 1,
1895
+ id: "com.atiproto.feed.subscription.cancel",
1896
+ defs: {
1897
+ main: {
1898
+ type: "procedure",
1899
+ description: "Cancel an active subscription",
1900
+ input: {
1901
+ encoding: "application/json",
1902
+ schema: {
1903
+ type: "object",
1904
+ required: ["subscriptionUri"],
1905
+ properties: {
1906
+ subscriptionUri: {
1907
+ type: "string",
1908
+ format: "at-uri",
1909
+ description: "AT-URI of the subscription to cancel"
1910
+ }
1911
+ }
1912
+ }
1913
+ },
1914
+ output: {
1915
+ encoding: "application/json",
1916
+ schema: {
1917
+ type: "object",
1918
+ required: ["subscriptionUri", "subscription", "accessUntil"],
1919
+ properties: {
1920
+ subscriptionUri: {
1921
+ type: "string",
1922
+ format: "at-uri",
1923
+ description: "URI of the updated subscription record"
1924
+ },
1925
+ subscription: {
1926
+ type: "ref",
1927
+ ref: "com.atiproto.subscription",
1928
+ description: "Updated subscription record"
1929
+ },
1930
+ accessUntil: {
1931
+ type: "string",
1932
+ format: "datetime",
1933
+ description: "Timestamp when access expires"
1934
+ }
1935
+ }
1936
+ }
1937
+ }
1938
+ }
1939
+ }
1940
+ };
1941
+
1942
+ // src/schemas/feed/subscription/create.json
1943
+ var create_default2 = {
1944
+ defs: {
1945
+ main: {
1946
+ description: "Create a subscription to a user. Returns a one-off cart with checkout URL.",
1947
+ input: {
1948
+ encoding: "application/json",
1949
+ schema: {
1950
+ properties: {
1951
+ subject: {
1952
+ description: "DID of the user to subscribe to",
1953
+ format: "did",
1954
+ type: "string"
1955
+ },
1956
+ amount: {
1957
+ description: "Custom amount in cents (if pay-as-you-want enabled)",
1958
+ type: "integer"
1959
+ },
1960
+ currency: {
1961
+ description: "ISO 4217 currency code",
1962
+ type: "string"
1963
+ },
1964
+ interval: {
1965
+ description: "Billing interval: monthly or yearly",
1966
+ type: "string"
1967
+ }
1968
+ },
1969
+ required: ["subject", "currency", "interval"],
1970
+ type: "object"
1971
+ }
1972
+ },
1973
+ output: {
1974
+ encoding: "application/json",
1975
+ schema: {
1976
+ properties: {
1977
+ subscriptionUri: {
1978
+ description: "URI of the subscription record in PDS",
1979
+ format: "at-uri",
1980
+ type: "string"
1981
+ },
1982
+ subscription: {
1983
+ description: "The created subscription record (status: pending)",
1984
+ type: "ref",
1985
+ ref: "com.atiproto.subscription"
1986
+ },
1987
+ cartUri: {
1988
+ description: "URI of the cart record in PDS",
1989
+ format: "at-uri",
1990
+ type: "string"
1991
+ },
1992
+ cart: {
1993
+ description: "The created cart record (status: open)",
1994
+ type: "ref",
1995
+ ref: "com.atiproto.cart"
1996
+ },
1997
+ checkoutUrl: {
1998
+ description: "Checkout URL hosted by atiproto",
1999
+ format: "uri",
2000
+ type: "string"
2001
+ }
2002
+ },
2003
+ required: [
2004
+ "subscriptionUri",
2005
+ "subscription",
2006
+ "cartUri",
2007
+ "cart",
2008
+ "checkoutUrl"
2009
+ ],
2010
+ type: "object"
2011
+ }
2012
+ },
2013
+ type: "procedure"
2014
+ }
2015
+ },
2016
+ id: "com.atiproto.feed.subscription.create",
2017
+ lexicon: 1
2018
+ };
2019
+
2020
+ // src/schemas/feed/subscription/get.json
2021
+ var get_default3 = {
2022
+ defs: {
2023
+ main: {
2024
+ description: "Get a specific subscription by URI",
2025
+ parameters: {
2026
+ properties: {
2027
+ uri: {
2028
+ description: "AT-URI of the subscription record",
2029
+ format: "at-uri",
2030
+ type: "string"
2031
+ }
2032
+ },
2033
+ required: ["uri"],
2034
+ type: "params"
2035
+ },
2036
+ output: {
2037
+ encoding: "application/json",
2038
+ schema: {
2039
+ properties: {
2040
+ uri: {
2041
+ description: "Subscription record URI",
2042
+ format: "at-uri",
2043
+ type: "string"
2044
+ },
2045
+ cid: {
2046
+ description: "Subscription record CID",
2047
+ format: "cid",
2048
+ type: "string"
2049
+ },
2050
+ record: {
2051
+ description: "The subscription record data",
2052
+ type: "ref",
2053
+ ref: "com.atiproto.subscription"
2054
+ }
2055
+ },
2056
+ required: ["uri", "cid", "record"],
2057
+ type: "object"
2058
+ }
2059
+ },
2060
+ type: "query"
2061
+ }
2062
+ },
2063
+ id: "com.atiproto.feed.subscription.get",
2064
+ lexicon: 1
2065
+ };
2066
+
2067
+ // src/schemas/feed/subscription/list.json
2068
+ var list_default3 = {
2069
+ lexicon: 1,
2070
+ id: "com.atiproto.feed.subscription.list",
2071
+ defs: {
2072
+ main: {
2073
+ type: "query",
2074
+ description: "List subscriptions for the authenticated user",
2075
+ input: {
2076
+ encoding: "application/json",
2077
+ schema: {
2078
+ type: "object",
2079
+ properties: {
2080
+ cursor: {
2081
+ type: "string",
2082
+ description: "Pagination cursor"
2083
+ },
2084
+ limit: {
2085
+ type: "integer",
2086
+ minimum: 1,
2087
+ maximum: 100,
2088
+ default: 50,
2089
+ description: "Results per page (1-100, default: 50)"
2090
+ }
2091
+ }
2092
+ }
2093
+ },
2094
+ output: {
2095
+ encoding: "application/json",
2096
+ schema: {
2097
+ type: "object",
2098
+ required: ["subscriptions"],
2099
+ properties: {
2100
+ subscriptions: {
2101
+ type: "array",
2102
+ items: {
2103
+ type: "ref",
2104
+ ref: "#subscriptionResponse"
2105
+ }
2106
+ },
2107
+ cursor: {
2108
+ type: "string",
2109
+ description: "Pagination cursor for next page"
2110
+ }
2111
+ }
2112
+ }
2113
+ }
2114
+ },
2115
+ subscriptionResponse: {
2116
+ type: "object",
2117
+ required: ["uri", "record"],
2118
+ properties: {
2119
+ uri: {
2120
+ type: "string",
2121
+ format: "at-uri",
2122
+ description: "AT-URI of the subscription record"
2123
+ },
2124
+ record: {
2125
+ type: "ref",
2126
+ ref: "com.atiproto.subscription"
2127
+ }
2128
+ }
2129
+ }
2130
+ }
2131
+ };
2132
+
2133
+ // src/schemas/feed/subscription/put.json
2134
+ var put_default3 = {
2135
+ lexicon: 1,
2136
+ id: "com.atiproto.feed.subscription.put",
2137
+ defs: {
2138
+ main: {
2139
+ type: "procedure",
2140
+ description: "Update a pending subscription. Only pending subscriptions can be updated.",
2141
+ input: {
2142
+ encoding: "application/json",
2143
+ schema: {
2144
+ type: "object",
2145
+ required: ["uri", "record"],
2146
+ properties: {
2147
+ uri: {
2148
+ type: "string",
2149
+ format: "at-uri",
2150
+ description: "AT-URI of the subscription record to update"
2151
+ },
2152
+ record: {
2153
+ type: "ref",
2154
+ ref: "com.atiproto.subscription"
2155
+ }
2156
+ }
2157
+ }
2158
+ },
2159
+ output: {
2160
+ encoding: "application/json",
2161
+ schema: {
2162
+ type: "object",
2163
+ required: ["uri", "cid"],
2164
+ properties: {
2165
+ uri: {
2166
+ type: "string",
2167
+ format: "at-uri",
2168
+ description: "Updated subscription record URI"
2169
+ },
2170
+ cid: {
2171
+ type: "string",
2172
+ format: "cid",
2173
+ description: "New CID of the updated record"
2174
+ }
2175
+ }
2176
+ }
2177
+ }
2178
+ }
2179
+ }
2180
+ };
2181
+
2182
+ // src/schemas/feed/tip/create.json
2183
+ var create_default3 = {
2184
+ lexicon: 1,
2185
+ id: "com.atiproto.feed.tip.create",
2186
+ defs: {
2187
+ main: {
2188
+ type: "procedure",
2189
+ description: "Create a tip on a DID or specific record. Creates or adds to a cart and returns a checkout URL.",
2190
+ input: {
2191
+ encoding: "application/json",
2192
+ schema: {
2193
+ type: "object",
2194
+ required: ["subject", "amount", "currency"],
2195
+ properties: {
2196
+ subject: {
2197
+ type: "string",
2198
+ format: "did",
2199
+ description: "DID of the user being tipped"
2200
+ },
2201
+ recordUri: {
2202
+ type: "string",
2203
+ format: "at-uri",
2204
+ description: "AT-URI of specific record being tipped"
2205
+ },
2206
+ amount: {
2207
+ type: "integer",
2208
+ description: "Tip amount in cents"
2209
+ },
2210
+ currency: {
2211
+ type: "string",
2212
+ description: "ISO 4217 currency code"
2213
+ },
2214
+ cartUri: {
2215
+ type: "string",
2216
+ format: "at-uri",
2217
+ description: "AT-URI of an existing cart to add this tip to. If omitted, a new cart is created."
2218
+ },
2219
+ redirectUrl: {
2220
+ type: "string",
2221
+ format: "uri",
2222
+ description: "URL to redirect to after checkout completes"
2223
+ },
2224
+ message: {
2225
+ type: "string",
2226
+ description: "Optional message (max 500 chars)",
2227
+ maxGraphemes: 500,
2228
+ maxLength: 5e3
2229
+ }
2230
+ }
2231
+ }
2232
+ },
2233
+ output: {
2234
+ encoding: "application/json",
2235
+ schema: {
2236
+ type: "object",
2237
+ required: ["tipUri", "tip", "cartUri", "cart", "checkoutUrl"],
2238
+ properties: {
2239
+ tipUri: {
2240
+ type: "string",
2241
+ format: "at-uri",
2242
+ description: "URI of the tip record in PDS"
2243
+ },
2244
+ tip: {
2245
+ type: "ref",
2246
+ ref: "com.atiproto.tip",
2247
+ description: "The created tip record (status: pending)"
2248
+ },
2249
+ cartUri: {
2250
+ type: "string",
2251
+ format: "at-uri",
2252
+ description: "URI of the cart record in PDS"
2253
+ },
2254
+ cart: {
2255
+ type: "ref",
2256
+ ref: "com.atiproto.cart",
2257
+ description: "The cart record (new or updated)"
2258
+ },
2259
+ checkoutUrl: {
2260
+ type: "string",
2261
+ format: "uri",
2262
+ description: "Checkout URL hosted by atiproto"
2263
+ }
2264
+ }
2265
+ }
2266
+ }
2267
+ }
2268
+ }
2269
+ };
2270
+
2271
+ // src/schemas/feed/tip/get.json
2272
+ var get_default4 = {
2273
+ defs: {
2274
+ main: {
2275
+ description: "Get a specific tip by URI",
2276
+ parameters: {
2277
+ properties: {
2278
+ uri: {
2279
+ description: "AT-URI of the tip record",
2280
+ format: "at-uri",
2281
+ type: "string"
2282
+ }
2283
+ },
2284
+ required: ["uri"],
2285
+ type: "params"
2286
+ },
2287
+ output: {
2288
+ encoding: "application/json",
2289
+ schema: {
2290
+ properties: {
2291
+ uri: {
2292
+ description: "Tip record URI",
2293
+ format: "at-uri",
2294
+ type: "string"
2295
+ },
2296
+ cid: {
2297
+ description: "Tip record CID",
2298
+ format: "cid",
2299
+ type: "string"
2300
+ },
2301
+ value: {
2302
+ description: "The tip record data",
2303
+ type: "ref",
2304
+ ref: "com.atiproto.tip"
2305
+ }
2306
+ },
2307
+ required: ["uri", "cid", "value"],
2308
+ type: "object"
2309
+ }
2310
+ },
2311
+ type: "query"
2312
+ }
2313
+ },
2314
+ id: "com.atiproto.feed.tip.get",
2315
+ lexicon: 1
2316
+ };
2317
+
2318
+ // src/schemas/feed/tip/list.json
2319
+ var list_default4 = {
2320
+ lexicon: 1,
2321
+ id: "com.atiproto.feed.tip.list",
2322
+ defs: {
2323
+ main: {
2324
+ type: "query",
2325
+ description: "List tips for the authenticated user",
2326
+ input: {
2327
+ encoding: "application/json",
2328
+ schema: {
2329
+ type: "object",
2330
+ properties: {
2331
+ cursor: {
2332
+ type: "string",
2333
+ description: "Pagination cursor"
2334
+ },
2335
+ limit: {
2336
+ type: "integer",
2337
+ minimum: 1,
2338
+ maximum: 100,
2339
+ default: 50,
2340
+ description: "Results per page (1-100, default: 50)"
2341
+ }
2342
+ }
2343
+ }
2344
+ },
2345
+ output: {
2346
+ encoding: "application/json",
2347
+ schema: {
2348
+ type: "object",
2349
+ required: ["records"],
2350
+ properties: {
2351
+ records: {
2352
+ type: "array",
2353
+ items: {
2354
+ type: "ref",
2355
+ ref: "com.atiproto.tip"
2356
+ }
2357
+ },
2358
+ cursor: {
2359
+ type: "string",
2360
+ description: "Pagination cursor for next page"
2361
+ }
2362
+ }
2363
+ }
2364
+ }
2365
+ }
2366
+ }
2367
+ };
2368
+
2369
+ // src/schemas/feed/tip/put.json
2370
+ var put_default4 = {
2371
+ lexicon: 1,
2372
+ id: "com.atiproto.feed.tip.put",
2373
+ defs: {
2374
+ main: {
2375
+ type: "procedure",
2376
+ description: "Update a pending tip. Only pending tips can be updated.",
2377
+ input: {
2378
+ encoding: "application/json",
2379
+ schema: {
2380
+ type: "object",
2381
+ required: ["uri", "record"],
2382
+ properties: {
2383
+ uri: {
2384
+ type: "string",
2385
+ format: "at-uri",
2386
+ description: "AT-URI of the tip record to update"
2387
+ },
2388
+ record: {
2389
+ type: "ref",
2390
+ ref: "com.atiproto.tip"
2391
+ }
2392
+ }
2393
+ }
2394
+ },
2395
+ output: {
2396
+ encoding: "application/json",
2397
+ schema: {
2398
+ type: "object",
2399
+ required: ["uri", "cid"],
2400
+ properties: {
2401
+ uri: {
2402
+ type: "string",
2403
+ format: "at-uri",
2404
+ description: "Updated tip record URI"
2405
+ },
2406
+ cid: {
2407
+ type: "string",
2408
+ format: "cid",
2409
+ description: "New CID of the updated record"
2410
+ }
2411
+ }
2412
+ }
2413
+ }
2414
+ }
2415
+ }
2416
+ };
2417
+
2418
+ // src/schemas/profile.json
2419
+ var profile_default = {
2420
+ lexicon: 1,
2421
+ id: "com.atiproto.profile",
2422
+ defs: {
2423
+ main: {
2424
+ type: "record",
2425
+ description: "A record representing a user's tipping/subscription settings",
2426
+ key: "literal:self",
2427
+ record: {
2428
+ type: "object",
2429
+ required: ["createdAt"],
2430
+ properties: {
2431
+ acceptsTips: {
2432
+ type: "boolean",
2433
+ description: "Whether user accepts tips (default: true)"
2434
+ },
2435
+ acceptsSubscriptions: {
2436
+ type: "boolean",
2437
+ description: "Whether user accepts subscriptions (default: true)"
2438
+ },
2439
+ disableReceiptNotifications: {
2440
+ type: "boolean",
2441
+ description: "Opt out of payment receipt DMs (default: false)"
2442
+ },
2443
+ createdAt: {
2444
+ type: "string",
2445
+ format: "datetime",
2446
+ description: "Creation timestamp"
2447
+ },
2448
+ updatedAt: {
2449
+ type: "string",
2450
+ format: "datetime",
2451
+ description: "Last update timestamp"
2452
+ }
2453
+ }
2454
+ }
2455
+ }
2456
+ }
2457
+ };
2458
+
2459
+ // src/schemas/repo/profile/get.json
2460
+ var get_default5 = {
2461
+ lexicon: 1,
2462
+ id: "com.atiproto.repo.profile.get",
2463
+ defs: {
2464
+ main: {
2465
+ type: "query",
2466
+ description: "Look up public profile information for any user",
2467
+ parameters: {
2468
+ type: "params",
2469
+ required: ["did"],
2470
+ properties: {
2471
+ did: {
2472
+ type: "string",
2473
+ format: "did",
2474
+ description: "DID of the user to look up"
2475
+ }
2476
+ }
2477
+ },
2478
+ output: {
2479
+ encoding: "application/json",
2480
+ schema: {
2481
+ type: "object",
2482
+ required: ["did", "profile"],
2483
+ properties: {
2484
+ did: {
2485
+ type: "string",
2486
+ format: "did",
2487
+ description: "User's DID"
2488
+ },
2489
+ profile: {
2490
+ type: "ref",
2491
+ ref: "com.atiproto.profile",
2492
+ description: "Public profile data"
2493
+ }
2494
+ }
2495
+ }
2496
+ }
2497
+ }
2498
+ }
2499
+ };
2500
+
2501
+ // src/schemas/repo/subscription/search.json
2502
+ var search_default = {
2503
+ lexicon: 1,
2504
+ id: "com.atiproto.repo.subscription.search",
2505
+ defs: {
2506
+ main: {
2507
+ type: "query",
2508
+ description: "Search for subscriptions to a user (subscriptions where subject matches the given DID)",
2509
+ parameters: {
2510
+ type: "params",
2511
+ properties: {
2512
+ subject: {
2513
+ type: "string",
2514
+ format: "did",
2515
+ description: "DID of the user being subscribed to"
2516
+ },
2517
+ cursor: {
2518
+ type: "string",
2519
+ description: "Pagination cursor"
2520
+ },
2521
+ limit: {
2522
+ type: "integer",
2523
+ minimum: 1,
2524
+ maximum: 100,
2525
+ default: 50,
2526
+ description: "Results per page (1-100, default: 50)"
2527
+ }
2528
+ },
2529
+ required: ["subject"]
2530
+ },
2531
+ output: {
2532
+ encoding: "application/json",
2533
+ schema: {
2534
+ type: "object",
2535
+ required: ["subscriptions"],
2536
+ properties: {
2537
+ subscriptions: {
2538
+ type: "array",
2539
+ items: {
2540
+ type: "ref",
2541
+ ref: "#subscriptionResponse"
2542
+ }
2543
+ },
2544
+ cursor: {
2545
+ type: "string",
2546
+ description: "Pagination cursor for next page"
2547
+ }
2548
+ }
2549
+ }
2550
+ }
2551
+ },
2552
+ subscriptionResponse: {
2553
+ type: "object",
2554
+ required: ["uri", "record"],
2555
+ properties: {
2556
+ uri: {
2557
+ type: "string",
2558
+ format: "at-uri",
2559
+ description: "AT-URI of the subscription record"
2560
+ },
2561
+ record: {
2562
+ type: "ref",
2563
+ ref: "com.atiproto.subscription"
2564
+ }
2565
+ }
2566
+ }
2567
+ }
2568
+ };
2569
+
2570
+ // src/schemas/repo/subscription/validate.json
2571
+ var validate_default = {
2572
+ lexicon: 1,
2573
+ id: "com.atiproto.repo.subscription.validate",
2574
+ defs: {
2575
+ main: {
2576
+ type: "query",
2577
+ description: "Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check the subscription amount.",
2578
+ parameters: {
2579
+ type: "params",
2580
+ required: ["sender", "subject"],
2581
+ properties: {
2582
+ sender: {
2583
+ type: "string",
2584
+ format: "did",
2585
+ description: "DID of the subscriber"
2586
+ },
2587
+ subject: {
2588
+ type: "string",
2589
+ format: "did",
2590
+ description: "DID of the creator being subscribed to"
2591
+ },
2592
+ amount: {
2593
+ type: "integer",
2594
+ description: "Expected subscription amount in cents. If omitted, only checks that a subscription exists."
2595
+ }
2596
+ }
2597
+ },
2598
+ output: {
2599
+ encoding: "application/json",
2600
+ schema: {
2601
+ type: "object",
2602
+ required: ["valid"],
2603
+ properties: {
2604
+ valid: {
2605
+ type: "boolean",
2606
+ description: "Whether the sender has an active, verified subscription"
2607
+ },
2608
+ amount: {
2609
+ type: "integer",
2610
+ description: "Subscription amount in cents"
2611
+ },
2612
+ currency: {
2613
+ type: "string",
2614
+ description: "Currency of the subscription"
2615
+ },
2616
+ reason: {
2617
+ type: "string",
2618
+ description: "If invalid, reason for rejection"
2619
+ }
2620
+ }
2621
+ }
2622
+ }
2623
+ }
2624
+ }
2625
+ };
2626
+
2627
+ // src/schemas/repo/tip/search.json
2628
+ var search_default2 = {
2629
+ lexicon: 1,
2630
+ id: "com.atiproto.repo.tip.search",
2631
+ defs: {
2632
+ main: {
2633
+ type: "query",
2634
+ description: "Search for tips sent to a user (tips where subject matches the given DID)",
2635
+ parameters: {
2636
+ type: "params",
2637
+ properties: {
2638
+ subject: {
2639
+ type: "string",
2640
+ format: "did",
2641
+ description: "DID of the user receiving tips"
2642
+ },
2643
+ cursor: {
2644
+ type: "string",
2645
+ description: "Pagination cursor"
2646
+ },
2647
+ limit: {
2648
+ type: "integer",
2649
+ minimum: 1,
2650
+ maximum: 100,
2651
+ default: 50,
2652
+ description: "Results per page (1-100, default: 50)"
2653
+ }
2654
+ },
2655
+ required: ["subject"]
2656
+ },
2657
+ output: {
2658
+ encoding: "application/json",
2659
+ schema: {
2660
+ type: "object",
2661
+ required: ["tips"],
2662
+ properties: {
2663
+ tips: {
2664
+ type: "array",
2665
+ items: {
2666
+ type: "ref",
2667
+ ref: "#tipResponse"
2668
+ }
2669
+ },
2670
+ cursor: {
2671
+ type: "string",
2672
+ description: "Pagination cursor for next page"
2673
+ }
2674
+ }
2675
+ }
2676
+ }
2677
+ },
2678
+ tipResponse: {
2679
+ type: "object",
2680
+ required: ["uri", "record"],
2681
+ properties: {
2682
+ uri: {
2683
+ type: "string",
2684
+ format: "at-uri",
2685
+ description: "AT-URI of the tip record"
2686
+ },
2687
+ record: {
2688
+ type: "ref",
2689
+ ref: "com.atiproto.tip"
2690
+ }
2691
+ }
2692
+ }
2693
+ }
2694
+ };
2695
+
2696
+ // src/schemas/repo/tip/validate.json
2697
+ var validate_default2 = {
2698
+ lexicon: 1,
2699
+ id: "com.atiproto.repo.tip.validate",
2700
+ defs: {
2701
+ main: {
2702
+ type: "query",
2703
+ description: "Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or by subject (recipient DID). These are mutually exclusive; if recordUri is provided, subject is ignored.",
2704
+ parameters: {
2705
+ type: "params",
2706
+ required: ["sender"],
2707
+ properties: {
2708
+ sender: {
2709
+ type: "string",
2710
+ format: "did",
2711
+ description: "DID of the tip sender"
2712
+ },
2713
+ subject: {
2714
+ type: "string",
2715
+ format: "did",
2716
+ description: "DID of the tip recipient. Ignored if recordUri is provided."
2717
+ },
2718
+ recordUri: {
2719
+ type: "string",
2720
+ format: "at-uri",
2721
+ description: "AT-URI of the record being tipped. Takes precedence over subject."
2722
+ },
2723
+ amount: {
2724
+ type: "integer",
2725
+ description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
2726
+ }
2727
+ }
2728
+ },
2729
+ output: {
2730
+ encoding: "application/json",
2731
+ schema: {
2732
+ type: "object",
2733
+ required: ["valid"],
2734
+ properties: {
2735
+ valid: {
2736
+ type: "boolean",
2737
+ description: "Whether the sender has completed and verified tip(s)"
2738
+ },
2739
+ amount: {
2740
+ type: "integer",
2741
+ description: "Sum of all verified completed tip amounts in cents"
2742
+ },
2743
+ currency: {
2744
+ type: "string",
2745
+ description: "Currency of the tips"
2746
+ },
2747
+ reason: {
2748
+ type: "string",
2749
+ description: "If invalid, reason for rejection"
2750
+ }
2751
+ }
2752
+ }
2753
+ }
2754
+ }
2755
+ }
2756
+ };
2757
+
2758
+ // src/schemas/subscription.json
2759
+ var subscription_default = {
2760
+ defs: {
2761
+ main: {
2762
+ description: "A record representing a subscription from one user to another",
2763
+ key: "any",
2764
+ record: {
2765
+ properties: {
2766
+ subject: {
2767
+ description: "DID of the user being subscribed to",
2768
+ format: "did",
2769
+ type: "string"
2770
+ },
2771
+ amount: {
2772
+ description: "Subscription amount in cents (0 for free subscriptions)",
2773
+ minimum: 0,
2774
+ type: "integer"
2775
+ },
2776
+ currency: {
2777
+ description: "ISO 4217 currency code",
2778
+ type: "string"
2779
+ },
2780
+ interval: {
2781
+ description: "Billing interval: monthly or yearly",
2782
+ type: "string"
2783
+ },
2784
+ status: {
2785
+ description: "Subscription status: pending, active, past_due, cancelled, expired",
2786
+ type: "string"
2787
+ },
2788
+ billingStartDate: {
2789
+ description: "First billing period, can be used to determine recurrence",
2790
+ format: "datetime",
2791
+ type: "string"
2792
+ },
2793
+ cancelledAt: {
2794
+ description: "Cancellation timestamp",
2795
+ format: "datetime",
2796
+ type: "string"
2797
+ },
2798
+ accessUntil: {
2799
+ description: "Date until which the subscriber retains access after cancellation",
2800
+ format: "datetime",
2801
+ type: "string"
2802
+ },
2803
+ createdAt: {
2804
+ description: "Creation timestamp",
2805
+ format: "datetime",
2806
+ type: "string"
2807
+ }
2808
+ },
2809
+ required: [
2810
+ "subject",
2811
+ "amount",
2812
+ "currency",
2813
+ "interval",
2814
+ "status",
2815
+ "billingStartDate",
2816
+ "createdAt"
2817
+ ],
2818
+ type: "object"
2819
+ },
2820
+ type: "record"
2821
+ }
2822
+ },
2823
+ id: "com.atiproto.subscription",
2824
+ lexicon: 1
2825
+ };
2826
+
2827
+ // src/schemas/tip.json
2828
+ var tip_default = {
2829
+ defs: {
2830
+ main: {
2831
+ description: "A record representing a tip given by one user to another",
2832
+ key: "any",
2833
+ record: {
2834
+ properties: {
2835
+ subject: {
2836
+ description: "DID of the user receiving the tip",
2837
+ format: "did",
2838
+ type: "string"
2839
+ },
2840
+ recordUri: {
2841
+ description: "AT-URI of specific record being tipped",
2842
+ format: "at-uri",
2843
+ type: "string"
2844
+ },
2845
+ amount: {
2846
+ description: "Tip amount in cents (0 when recipient allows zero tips)",
2847
+ minimum: 0,
2848
+ type: "integer"
2849
+ },
2850
+ currency: {
2851
+ description: "ISO 4217 currency code",
2852
+ type: "string"
2853
+ },
2854
+ status: {
2855
+ description: "Tip status: pending, authorized (payment held), completed, failed, refunded",
2856
+ type: "string",
2857
+ enum: ["pending", "authorized", "completed", "failed", "refunded"]
2858
+ },
2859
+ message: {
2860
+ description: "Optional message (max 500 chars)",
2861
+ maxGraphemes: 500,
2862
+ maxLength: 5e3,
2863
+ type: "string"
2864
+ },
2865
+ createdAt: {
2866
+ description: "Creation timestamp",
2867
+ format: "datetime",
2868
+ type: "string"
2869
+ },
2870
+ completedAt: {
2871
+ description: "Completion timestamp",
2872
+ format: "datetime",
2873
+ type: "string"
2874
+ }
2875
+ },
2876
+ required: ["subject", "amount", "currency", "status", "createdAt"],
2877
+ type: "object"
2878
+ },
2879
+ type: "record"
2880
+ }
2881
+ },
2882
+ id: "com.atiproto.tip",
2883
+ lexicon: 1
2884
+ };
2885
+
2886
+ // src/schemas.ts
2887
+ var schemas = [
2888
+ clone_default,
2889
+ create_default,
2890
+ get_default,
2891
+ list_default,
2892
+ put_default,
2893
+ get_default2,
2894
+ put_default2,
2895
+ cart_default,
2896
+ list_default2,
2897
+ cancel_default,
2898
+ create_default2,
2899
+ get_default3,
2900
+ list_default3,
2901
+ put_default3,
2902
+ create_default3,
2903
+ get_default4,
2904
+ list_default4,
2905
+ put_default4,
2906
+ profile_default,
2907
+ get_default5,
2908
+ search_default,
2909
+ validate_default,
2910
+ search_default2,
2911
+ validate_default2,
2912
+ subscription_default,
2913
+ tip_default
2914
+ ];
2915
+ export {
2916
+ com_exports as com,
2917
+ schemas
2918
+ };
2919
+ //# sourceMappingURL=index.mjs.map