@atiproto/lexicons 0.1.0 → 0.1.2

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