@atiproto/lexicons 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -35,6 +35,7 @@ __export(com_exports, {
35
35
  var atiproto_exports = {};
36
36
  __export(atiproto_exports, {
37
37
  account: () => account_exports,
38
+ actions: () => actions_exports,
38
39
  authEnhanced: () => authEnhanced_exports,
39
40
  authGeneral: () => authGeneral_exports,
40
41
  cart: () => cart_exports2,
@@ -70,7 +71,7 @@ __export(clone_exports, {
70
71
  $defs: () => clone_defs_exports,
71
72
  $input: () => $input,
72
73
  $lxm: () => $lxm,
73
- $nsid: () => $nsid4,
74
+ $nsid: () => $nsid5,
74
75
  $output: () => $output,
75
76
  $params: () => $params,
76
77
  main: () => main4
@@ -81,12 +82,125 @@ var clone_defs_exports = {};
81
82
  __export(clone_defs_exports, {
82
83
  $input: () => $input,
83
84
  $lxm: () => $lxm,
84
- $nsid: () => $nsid4,
85
+ $nsid: () => $nsid5,
85
86
  $output: () => $output,
86
87
  $params: () => $params,
87
88
  main: () => main4
88
89
  });
89
- var import_lex4 = require("@atproto/lex");
90
+ var import_lex5 = require("@atproto/lex");
91
+
92
+ // src/lexicons/com/atiproto/actions.defs.ts
93
+ var actions_defs_exports = {};
94
+ __export(actions_defs_exports, {
95
+ $nsid: () => $nsid,
96
+ create: () => create,
97
+ delete: () => delete$0,
98
+ error: () => error,
99
+ inboundWorkflow: () => inboundWorkflow,
100
+ outboundWorkflow: () => outboundWorkflow,
101
+ raise: () => raise,
102
+ recordResult: () => recordResult,
103
+ response: () => response,
104
+ update: () => update
105
+ });
106
+ var import_lex = require("@atproto/lex");
107
+ var $nsid = "com.atiproto.actions";
108
+ var create = import_lex.l.typedObject(
109
+ $nsid,
110
+ "create",
111
+ import_lex.l.object({
112
+ repo: import_lex.l.string({ format: "did" }),
113
+ name: import_lex.l.string({ maxLength: 64 }),
114
+ collection: import_lex.l.string({ format: "nsid" }),
115
+ rkey: import_lex.l.optional(import_lex.l.string({ maxLength: 128 })),
116
+ record: import_lex.l.lexMap()
117
+ })
118
+ );
119
+ var update = import_lex.l.typedObject(
120
+ $nsid,
121
+ "update",
122
+ import_lex.l.object({
123
+ repo: import_lex.l.string({ format: "did" }),
124
+ name: import_lex.l.string({ maxLength: 64 }),
125
+ collection: import_lex.l.string({ format: "nsid" }),
126
+ rkey: import_lex.l.string({ maxLength: 128 }),
127
+ record: import_lex.l.lexMap(),
128
+ swapCommit: import_lex.l.optional(import_lex.l.string({ format: "cid" }))
129
+ })
130
+ );
131
+ var delete$0 = import_lex.l.typedObject(
132
+ $nsid,
133
+ "delete",
134
+ import_lex.l.object({
135
+ repo: import_lex.l.string({ format: "did" }),
136
+ name: import_lex.l.string({ maxLength: 64 }),
137
+ collection: import_lex.l.string({ format: "nsid" }),
138
+ rkey: import_lex.l.string({ maxLength: 128 }),
139
+ swapCommit: import_lex.l.optional(import_lex.l.string({ format: "cid" }))
140
+ })
141
+ );
142
+ var raise = import_lex.l.typedObject(
143
+ $nsid,
144
+ "raise",
145
+ import_lex.l.object({
146
+ message: import_lex.l.string({ maxLength: 1024 }),
147
+ code: import_lex.l.optional(import_lex.l.string({ maxLength: 64 }))
148
+ })
149
+ );
150
+ var response = import_lex.l.typedObject(
151
+ $nsid,
152
+ "response",
153
+ import_lex.l.object({
154
+ action: import_lex.l.string({ maxLength: 32 }),
155
+ name: import_lex.l.string({ maxLength: 64 }),
156
+ result: import_lex.l.ref((() => recordResult))
157
+ })
158
+ );
159
+ var recordResult = import_lex.l.typedObject(
160
+ $nsid,
161
+ "recordResult",
162
+ import_lex.l.object({
163
+ uri: import_lex.l.string({ format: "at-uri" }),
164
+ cid: import_lex.l.optional(import_lex.l.string({ format: "cid" }))
165
+ })
166
+ );
167
+ var error = import_lex.l.typedObject(
168
+ $nsid,
169
+ "error",
170
+ import_lex.l.object({
171
+ action: import_lex.l.string({ maxLength: 32 }),
172
+ name: import_lex.l.optional(import_lex.l.string({ maxLength: 64 })),
173
+ message: import_lex.l.string({ maxLength: 1024 }),
174
+ code: import_lex.l.optional(import_lex.l.string({ maxLength: 64 }))
175
+ })
176
+ );
177
+ var inboundWorkflow = import_lex.l.typedObject(
178
+ $nsid,
179
+ "inboundWorkflow",
180
+ import_lex.l.object({
181
+ intent: import_lex.l.string({ maxLength: 64 }),
182
+ responses: import_lex.l.array(import_lex.l.ref((() => response))),
183
+ error: import_lex.l.optional(import_lex.l.ref((() => error)))
184
+ })
185
+ );
186
+ var outboundWorkflow = import_lex.l.typedObject(
187
+ $nsid,
188
+ "outboundWorkflow",
189
+ import_lex.l.object({
190
+ intent: import_lex.l.string({ maxLength: 64 }),
191
+ actions: import_lex.l.array(
192
+ import_lex.l.typedUnion(
193
+ [
194
+ import_lex.l.typedRef((() => create)),
195
+ import_lex.l.typedRef((() => update)),
196
+ import_lex.l.typedRef((() => delete$0)),
197
+ import_lex.l.typedRef((() => raise))
198
+ ],
199
+ false
200
+ )
201
+ )
202
+ })
203
+ );
90
204
 
91
205
  // src/lexicons/com/atiproto/cart.defs.ts
92
206
  var cart_defs_exports = {};
@@ -98,7 +212,7 @@ __export(cart_defs_exports, {
98
212
  $ifMatches: () => $ifMatches,
99
213
  $isTypeOf: () => $isTypeOf,
100
214
  $matches: () => $matches,
101
- $nsid: () => $nsid,
215
+ $nsid: () => $nsid2,
102
216
  $parse: () => $parse,
103
217
  $safeParse: () => $safeParse,
104
218
  $safeValidate: () => $safeValidate,
@@ -108,19 +222,19 @@ __export(cart_defs_exports, {
108
222
  main: () => main,
109
223
  view: () => view
110
224
  });
111
- var import_lex = require("@atproto/lex");
112
- var $nsid = "com.atiproto.cart";
113
- var main = import_lex.l.record(
225
+ var import_lex2 = require("@atproto/lex");
226
+ var $nsid2 = "com.atiproto.cart";
227
+ var main = import_lex2.l.record(
114
228
  "any",
115
- $nsid,
116
- import_lex.l.object({
117
- items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
118
- currency: import_lex.l.string({ maxLength: 3 }),
119
- total: import_lex.l.integer(),
120
- status: import_lex.l.enum(["open", "completed", "expired", "abandoned"]),
121
- createdAt: import_lex.l.string({ format: "datetime" }),
122
- expiresAt: import_lex.l.string({ format: "datetime" }),
123
- completedAt: import_lex.l.optional(import_lex.l.string({ format: "datetime" }))
229
+ $nsid2,
230
+ import_lex2.l.object({
231
+ items: import_lex2.l.array(import_lex2.l.ref((() => cartItem))),
232
+ currency: import_lex2.l.string({ maxLength: 3 }),
233
+ total: import_lex2.l.integer(),
234
+ status: import_lex2.l.enum(["open", "completed", "expired", "abandoned"]),
235
+ createdAt: import_lex2.l.string({ format: "datetime" }),
236
+ expiresAt: import_lex2.l.string({ format: "datetime" }),
237
+ completedAt: import_lex2.l.optional(import_lex2.l.string({ format: "datetime" }))
124
238
  })
125
239
  );
126
240
  var $isTypeOf = /* @__PURE__ */ main.isTypeOf.bind(main);
@@ -135,26 +249,26 @@ var $parse = /* @__PURE__ */ main.parse.bind(main);
135
249
  var $safeParse = /* @__PURE__ */ main.safeParse.bind(main);
136
250
  var $validate = /* @__PURE__ */ main.validate.bind(main);
137
251
  var $safeValidate = /* @__PURE__ */ main.safeValidate.bind(main);
138
- var view = import_lex.l.typedObject(
139
- $nsid,
252
+ var view = import_lex2.l.typedObject(
253
+ $nsid2,
140
254
  "view",
141
- import_lex.l.object({
142
- uri: import_lex.l.string({ format: "at-uri" }),
143
- items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
144
- currency: import_lex.l.string({ maxLength: 3 }),
145
- total: import_lex.l.integer(),
146
- status: import_lex.l.enum(["open", "completed", "expired", "abandoned"]),
147
- createdAt: import_lex.l.string({ format: "datetime" }),
148
- expiresAt: import_lex.l.string({ format: "datetime" }),
149
- completedAt: import_lex.l.optional(import_lex.l.string({ format: "datetime" }))
255
+ import_lex2.l.object({
256
+ uri: import_lex2.l.string({ format: "at-uri" }),
257
+ items: import_lex2.l.array(import_lex2.l.ref((() => cartItem))),
258
+ currency: import_lex2.l.string({ maxLength: 3 }),
259
+ total: import_lex2.l.integer(),
260
+ status: import_lex2.l.enum(["open", "completed", "expired", "abandoned"]),
261
+ createdAt: import_lex2.l.string({ format: "datetime" }),
262
+ expiresAt: import_lex2.l.string({ format: "datetime" }),
263
+ completedAt: import_lex2.l.optional(import_lex2.l.string({ format: "datetime" }))
150
264
  })
151
265
  );
152
- var cartItem = import_lex.l.typedObject(
153
- $nsid,
266
+ var cartItem = import_lex2.l.typedObject(
267
+ $nsid2,
154
268
  "cartItem",
155
- import_lex.l.object({
156
- type: import_lex.l.enum(["com.atiproto.tip", "com.atiproto.subscription"]),
157
- recordUri: import_lex.l.string({ format: "at-uri" })
269
+ import_lex2.l.object({
270
+ type: import_lex2.l.enum(["com.atiproto.tip", "com.atiproto.subscription"]),
271
+ recordUri: import_lex2.l.string({ format: "at-uri" })
158
272
  })
159
273
  );
160
274
 
@@ -168,7 +282,7 @@ __export(tip_defs_exports, {
168
282
  $ifMatches: () => $ifMatches2,
169
283
  $isTypeOf: () => $isTypeOf2,
170
284
  $matches: () => $matches2,
171
- $nsid: () => $nsid2,
285
+ $nsid: () => $nsid3,
172
286
  $parse: () => $parse2,
173
287
  $safeParse: () => $safeParse2,
174
288
  $safeValidate: () => $safeValidate2,
@@ -177,26 +291,26 @@ __export(tip_defs_exports, {
177
291
  main: () => main2,
178
292
  view: () => view2
179
293
  });
180
- var import_lex2 = require("@atproto/lex");
181
- var $nsid2 = "com.atiproto.tip";
182
- var main2 = import_lex2.l.record(
294
+ var import_lex3 = require("@atproto/lex");
295
+ var $nsid3 = "com.atiproto.tip";
296
+ var main2 = import_lex3.l.record(
183
297
  "any",
184
- $nsid2,
185
- import_lex2.l.object({
186
- subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
187
- recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
188
- amount: import_lex2.l.integer({ minimum: 0 }),
189
- currency: import_lex2.l.string({ maxLength: 3 }),
190
- status: import_lex2.l.enum([
298
+ $nsid3,
299
+ import_lex3.l.object({
300
+ subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
301
+ recordUri: import_lex3.l.optional(import_lex3.l.string({ format: "at-uri" })),
302
+ amount: import_lex3.l.integer({ minimum: 0 }),
303
+ currency: import_lex3.l.string({ maxLength: 3 }),
304
+ status: import_lex3.l.enum([
191
305
  "pending",
192
306
  "authorized",
193
307
  "completed",
194
308
  "failed",
195
309
  "refunded"
196
310
  ]),
197
- message: import_lex2.l.optional(import_lex2.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
198
- createdAt: import_lex2.l.string({ format: "datetime" }),
199
- completedAt: import_lex2.l.optional(import_lex2.l.string({ format: "datetime" }))
311
+ message: import_lex3.l.optional(import_lex3.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
312
+ createdAt: import_lex3.l.string({ format: "datetime" }),
313
+ completedAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" }))
200
314
  })
201
315
  );
202
316
  var $isTypeOf2 = /* @__PURE__ */ main2.isTypeOf.bind(main2);
@@ -211,25 +325,25 @@ var $parse2 = /* @__PURE__ */ main2.parse.bind(main2);
211
325
  var $safeParse2 = /* @__PURE__ */ main2.safeParse.bind(main2);
212
326
  var $validate2 = /* @__PURE__ */ main2.validate.bind(main2);
213
327
  var $safeValidate2 = /* @__PURE__ */ main2.safeValidate.bind(main2);
214
- var view2 = import_lex2.l.typedObject(
215
- $nsid2,
328
+ var view2 = import_lex3.l.typedObject(
329
+ $nsid3,
216
330
  "view",
217
- import_lex2.l.object({
218
- uri: import_lex2.l.string({ format: "at-uri" }),
219
- subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
220
- recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
221
- amount: import_lex2.l.integer({ minimum: 0 }),
222
- currency: import_lex2.l.string({ maxLength: 3 }),
223
- status: import_lex2.l.enum([
331
+ import_lex3.l.object({
332
+ uri: import_lex3.l.string({ format: "at-uri" }),
333
+ subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
334
+ recordUri: import_lex3.l.optional(import_lex3.l.string({ format: "at-uri" })),
335
+ amount: import_lex3.l.integer({ minimum: 0 }),
336
+ currency: import_lex3.l.string({ maxLength: 3 }),
337
+ status: import_lex3.l.enum([
224
338
  "pending",
225
339
  "authorized",
226
340
  "completed",
227
341
  "failed",
228
342
  "refunded"
229
343
  ]),
230
- message: import_lex2.l.optional(import_lex2.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
231
- createdAt: import_lex2.l.string({ format: "datetime" }),
232
- completedAt: import_lex2.l.optional(import_lex2.l.string({ format: "datetime" }))
344
+ message: import_lex3.l.optional(import_lex3.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
345
+ createdAt: import_lex3.l.string({ format: "datetime" }),
346
+ completedAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" }))
233
347
  })
234
348
  );
235
349
 
@@ -243,7 +357,7 @@ __export(subscription_defs_exports, {
243
357
  $ifMatches: () => $ifMatches3,
244
358
  $isTypeOf: () => $isTypeOf3,
245
359
  $matches: () => $matches3,
246
- $nsid: () => $nsid3,
360
+ $nsid: () => $nsid4,
247
361
  $parse: () => $parse3,
248
362
  $safeParse: () => $safeParse3,
249
363
  $safeValidate: () => $safeValidate3,
@@ -252,21 +366,21 @@ __export(subscription_defs_exports, {
252
366
  main: () => main3,
253
367
  view: () => view3
254
368
  });
255
- var import_lex3 = require("@atproto/lex");
256
- var $nsid3 = "com.atiproto.subscription";
257
- var main3 = import_lex3.l.record(
369
+ var import_lex4 = require("@atproto/lex");
370
+ var $nsid4 = "com.atiproto.subscription";
371
+ var main3 = import_lex4.l.record(
258
372
  "any",
259
- $nsid3,
260
- import_lex3.l.object({
261
- subject: import_lex3.l.string({ format: "did" }),
262
- amount: import_lex3.l.integer({ minimum: 0 }),
263
- currency: import_lex3.l.string({ maxLength: 3 }),
264
- interval: import_lex3.l.enum(["monthly", "yearly"]),
265
- status: import_lex3.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
266
- billingStartDate: import_lex3.l.string({ format: "datetime" }),
267
- cancelledAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
268
- accessUntil: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
269
- createdAt: import_lex3.l.string({ format: "datetime" })
373
+ $nsid4,
374
+ import_lex4.l.object({
375
+ subject: import_lex4.l.string({ format: "did" }),
376
+ amount: import_lex4.l.integer({ minimum: 0 }),
377
+ currency: import_lex4.l.string({ maxLength: 3 }),
378
+ interval: import_lex4.l.enum(["monthly", "yearly"]),
379
+ status: import_lex4.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
380
+ billingStartDate: import_lex4.l.string({ format: "datetime" }),
381
+ cancelledAt: import_lex4.l.optional(import_lex4.l.string({ format: "datetime" })),
382
+ accessUntil: import_lex4.l.optional(import_lex4.l.string({ format: "datetime" })),
383
+ createdAt: import_lex4.l.string({ format: "datetime" })
270
384
  })
271
385
  );
272
386
  var $isTypeOf3 = /* @__PURE__ */ main3.isTypeOf.bind(main3);
@@ -281,40 +395,56 @@ var $parse3 = /* @__PURE__ */ main3.parse.bind(main3);
281
395
  var $safeParse3 = /* @__PURE__ */ main3.safeParse.bind(main3);
282
396
  var $validate3 = /* @__PURE__ */ main3.validate.bind(main3);
283
397
  var $safeValidate3 = /* @__PURE__ */ main3.safeValidate.bind(main3);
284
- var view3 = import_lex3.l.typedObject(
285
- $nsid3,
398
+ var view3 = import_lex4.l.typedObject(
399
+ $nsid4,
286
400
  "view",
287
- import_lex3.l.object({
288
- uri: import_lex3.l.string({ format: "at-uri" }),
289
- subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
290
- amount: import_lex3.l.integer({ minimum: 0 }),
291
- currency: import_lex3.l.string({ maxLength: 3 }),
292
- interval: import_lex3.l.enum(["monthly", "yearly"]),
293
- status: import_lex3.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
294
- billingStartDate: import_lex3.l.string({ format: "datetime" }),
295
- cancelledAt: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
296
- accessUntil: import_lex3.l.optional(import_lex3.l.string({ format: "datetime" })),
297
- createdAt: import_lex3.l.string({ format: "datetime" })
401
+ import_lex4.l.object({
402
+ uri: import_lex4.l.string({ format: "at-uri" }),
403
+ subject: import_lex4.l.optional(import_lex4.l.string({ format: "did" })),
404
+ amount: import_lex4.l.integer({ minimum: 0 }),
405
+ currency: import_lex4.l.string({ maxLength: 3 }),
406
+ interval: import_lex4.l.enum(["monthly", "yearly"]),
407
+ status: import_lex4.l.enum(["pending", "active", "past_due", "cancelled", "expired"]),
408
+ billingStartDate: import_lex4.l.string({ format: "datetime" }),
409
+ cancelledAt: import_lex4.l.optional(import_lex4.l.string({ format: "datetime" })),
410
+ accessUntil: import_lex4.l.optional(import_lex4.l.string({ format: "datetime" })),
411
+ createdAt: import_lex4.l.string({ format: "datetime" })
298
412
  })
299
413
  );
300
414
 
301
415
  // src/lexicons/com/atiproto/account/cart/clone.defs.ts
302
- var $nsid4 = "com.atiproto.account.cart.clone";
303
- var main4 = import_lex4.l.procedure(
304
- $nsid4,
305
- import_lex4.l.params(),
306
- import_lex4.l.jsonPayload({
307
- uri: import_lex4.l.string({ format: "at-uri" }),
308
- redirectUrl: import_lex4.l.optional(import_lex4.l.string({ format: "uri" }))
416
+ var $nsid5 = "com.atiproto.account.cart.clone";
417
+ var main4 = import_lex5.l.procedure(
418
+ $nsid5,
419
+ import_lex5.l.params(),
420
+ import_lex5.l.jsonPayload({
421
+ uri: import_lex5.l.string({ format: "at-uri" }),
422
+ redirectUrl: import_lex5.l.optional(import_lex5.l.string({ format: "uri" })),
423
+ workflow: import_lex5.l.optional(
424
+ import_lex5.l.ref(
425
+ (() => inboundWorkflow)
426
+ )
427
+ )
309
428
  }),
310
- import_lex4.l.jsonPayload({
311
- cart: import_lex4.l.ref((() => view)),
312
- cartUri: import_lex4.l.string({ format: "at-uri" }),
313
- checkoutUrl: import_lex4.l.string({ format: "uri" }),
314
- tips: import_lex4.l.array(import_lex4.l.ref((() => view2))),
315
- subscriptions: import_lex4.l.array(
316
- import_lex4.l.ref(
317
- (() => view3)
429
+ import_lex5.l.jsonPayload({
430
+ workflow: import_lex5.l.optional(
431
+ import_lex5.l.ref(
432
+ (() => outboundWorkflow)
433
+ )
434
+ ),
435
+ cart: import_lex5.l.optional(
436
+ import_lex5.l.ref((() => view))
437
+ ),
438
+ cartUri: import_lex5.l.optional(import_lex5.l.string({ format: "at-uri" })),
439
+ checkoutUrl: import_lex5.l.optional(import_lex5.l.string({ format: "uri" })),
440
+ tips: import_lex5.l.optional(
441
+ import_lex5.l.array(import_lex5.l.ref((() => view2)))
442
+ ),
443
+ subscriptions: import_lex5.l.optional(
444
+ import_lex5.l.array(
445
+ import_lex5.l.ref(
446
+ (() => view3)
447
+ )
318
448
  )
319
449
  )
320
450
  })
@@ -330,7 +460,7 @@ __export(create_exports, {
330
460
  $defs: () => create_defs_exports,
331
461
  $input: () => $input2,
332
462
  $lxm: () => $lxm2,
333
- $nsid: () => $nsid5,
463
+ $nsid: () => $nsid6,
334
464
  $output: () => $output2,
335
465
  $params: () => $params2,
336
466
  main: () => main5
@@ -341,24 +471,36 @@ var create_defs_exports = {};
341
471
  __export(create_defs_exports, {
342
472
  $input: () => $input2,
343
473
  $lxm: () => $lxm2,
344
- $nsid: () => $nsid5,
474
+ $nsid: () => $nsid6,
345
475
  $output: () => $output2,
346
476
  $params: () => $params2,
347
477
  main: () => main5
348
478
  });
349
- var import_lex5 = require("@atproto/lex");
350
- var $nsid5 = "com.atiproto.account.cart.create";
351
- var main5 = import_lex5.l.procedure(
352
- $nsid5,
353
- import_lex5.l.params(),
354
- import_lex5.l.jsonPayload({
355
- currency: import_lex5.l.string({ maxLength: 3 }),
356
- redirectUrl: import_lex5.l.optional(import_lex5.l.string({ format: "uri" }))
479
+ var import_lex6 = require("@atproto/lex");
480
+ var $nsid6 = "com.atiproto.account.cart.create";
481
+ var main5 = import_lex6.l.procedure(
482
+ $nsid6,
483
+ import_lex6.l.params(),
484
+ import_lex6.l.jsonPayload({
485
+ currency: import_lex6.l.string({ maxLength: 3 }),
486
+ redirectUrl: import_lex6.l.optional(import_lex6.l.string({ format: "uri" })),
487
+ workflow: import_lex6.l.optional(
488
+ import_lex6.l.ref(
489
+ (() => inboundWorkflow)
490
+ )
491
+ )
357
492
  }),
358
- import_lex5.l.jsonPayload({
359
- cart: import_lex5.l.ref((() => view)),
360
- cartUri: import_lex5.l.string({ format: "at-uri" }),
361
- checkoutUrl: import_lex5.l.string({ format: "uri" })
493
+ import_lex6.l.jsonPayload({
494
+ workflow: import_lex6.l.optional(
495
+ import_lex6.l.ref(
496
+ (() => outboundWorkflow)
497
+ )
498
+ ),
499
+ cart: import_lex6.l.optional(
500
+ import_lex6.l.ref((() => view))
501
+ ),
502
+ cartUri: import_lex6.l.optional(import_lex6.l.string({ format: "at-uri" })),
503
+ checkoutUrl: import_lex6.l.optional(import_lex6.l.string({ format: "uri" }))
362
504
  })
363
505
  );
364
506
  var $lxm2 = main5.nsid;
@@ -371,7 +513,7 @@ var get_exports = {};
371
513
  __export(get_exports, {
372
514
  $defs: () => get_defs_exports,
373
515
  $lxm: () => $lxm3,
374
- $nsid: () => $nsid6,
516
+ $nsid: () => $nsid7,
375
517
  $output: () => $output3,
376
518
  $params: () => $params3,
377
519
  main: () => main6
@@ -381,24 +523,24 @@ __export(get_exports, {
381
523
  var get_defs_exports = {};
382
524
  __export(get_defs_exports, {
383
525
  $lxm: () => $lxm3,
384
- $nsid: () => $nsid6,
526
+ $nsid: () => $nsid7,
385
527
  $output: () => $output3,
386
528
  $params: () => $params3,
387
529
  main: () => main6
388
530
  });
389
- var import_lex6 = require("@atproto/lex");
390
- var $nsid6 = "com.atiproto.account.cart.get";
391
- var main6 = import_lex6.l.query(
392
- $nsid6,
393
- import_lex6.l.params({ uri: import_lex6.l.string({ format: "at-uri" }) }),
394
- import_lex6.l.jsonPayload({
395
- uri: import_lex6.l.string({ format: "at-uri" }),
396
- cid: import_lex6.l.optional(import_lex6.l.string({ format: "cid" })),
397
- cart: import_lex6.l.ref((() => view)),
398
- checkoutUrl: import_lex6.l.optional(import_lex6.l.string({ format: "uri" })),
399
- tips: import_lex6.l.array(import_lex6.l.ref((() => view2))),
400
- subscriptions: import_lex6.l.array(
401
- import_lex6.l.ref(
531
+ var import_lex7 = require("@atproto/lex");
532
+ var $nsid7 = "com.atiproto.account.cart.get";
533
+ var main6 = import_lex7.l.query(
534
+ $nsid7,
535
+ import_lex7.l.params({ uri: import_lex7.l.string({ format: "at-uri" }) }),
536
+ import_lex7.l.jsonPayload({
537
+ uri: import_lex7.l.string({ format: "at-uri" }),
538
+ cid: import_lex7.l.optional(import_lex7.l.string({ format: "cid" })),
539
+ cart: import_lex7.l.ref((() => view)),
540
+ checkoutUrl: import_lex7.l.optional(import_lex7.l.string({ format: "uri" })),
541
+ tips: import_lex7.l.array(import_lex7.l.ref((() => view2))),
542
+ subscriptions: import_lex7.l.array(
543
+ import_lex7.l.ref(
402
544
  (() => view3)
403
545
  )
404
546
  )
@@ -413,7 +555,7 @@ var list_exports = {};
413
555
  __export(list_exports, {
414
556
  $defs: () => list_defs_exports,
415
557
  $lxm: () => $lxm4,
416
- $nsid: () => $nsid7,
558
+ $nsid: () => $nsid8,
417
559
  $output: () => $output4,
418
560
  $params: () => $params4,
419
561
  cartResponse: () => cartResponse,
@@ -424,38 +566,38 @@ __export(list_exports, {
424
566
  var list_defs_exports = {};
425
567
  __export(list_defs_exports, {
426
568
  $lxm: () => $lxm4,
427
- $nsid: () => $nsid7,
569
+ $nsid: () => $nsid8,
428
570
  $output: () => $output4,
429
571
  $params: () => $params4,
430
572
  cartResponse: () => cartResponse,
431
573
  main: () => main7
432
574
  });
433
- var import_lex7 = require("@atproto/lex");
434
- var $nsid7 = "com.atiproto.account.cart.list";
435
- var main7 = import_lex7.l.query(
436
- $nsid7,
437
- import_lex7.l.params({
438
- status: import_lex7.l.optional(import_lex7.l.enum(["open", "completed", "expired", "abandoned"])),
439
- cursor: import_lex7.l.optional(import_lex7.l.string({ maxLength: 512 })),
440
- limit: import_lex7.l.optional(
441
- import_lex7.l.withDefault(import_lex7.l.integer({ minimum: 1, maximum: 100 }), 20)
575
+ var import_lex8 = require("@atproto/lex");
576
+ var $nsid8 = "com.atiproto.account.cart.list";
577
+ var main7 = import_lex8.l.query(
578
+ $nsid8,
579
+ import_lex8.l.params({
580
+ status: import_lex8.l.optional(import_lex8.l.enum(["open", "completed", "expired", "abandoned"])),
581
+ cursor: import_lex8.l.optional(import_lex8.l.string({ maxLength: 512 })),
582
+ limit: import_lex8.l.optional(
583
+ import_lex8.l.withDefault(import_lex8.l.integer({ minimum: 1, maximum: 100 }), 20)
442
584
  )
443
585
  }),
444
- import_lex7.l.jsonPayload({
445
- carts: import_lex7.l.array(import_lex7.l.ref((() => cartResponse))),
446
- cursor: import_lex7.l.optional(import_lex7.l.string({ maxLength: 512 }))
586
+ import_lex8.l.jsonPayload({
587
+ carts: import_lex8.l.array(import_lex8.l.ref((() => cartResponse))),
588
+ cursor: import_lex8.l.optional(import_lex8.l.string({ maxLength: 512 }))
447
589
  })
448
590
  );
449
591
  var $lxm4 = main7.nsid;
450
592
  var $params4 = main7.parameters;
451
593
  var $output4 = main7.output;
452
- var cartResponse = import_lex7.l.typedObject(
453
- $nsid7,
594
+ var cartResponse = import_lex8.l.typedObject(
595
+ $nsid8,
454
596
  "cartResponse",
455
- import_lex7.l.object({
456
- uri: import_lex7.l.string({ format: "at-uri" }),
457
- cid: import_lex7.l.string({ format: "cid" }),
458
- record: import_lex7.l.ref((() => view))
597
+ import_lex8.l.object({
598
+ uri: import_lex8.l.string({ format: "at-uri" }),
599
+ cid: import_lex8.l.string({ format: "cid" }),
600
+ record: import_lex8.l.ref((() => view))
459
601
  })
460
602
  );
461
603
 
@@ -465,7 +607,7 @@ __export(put_exports, {
465
607
  $defs: () => put_defs_exports,
466
608
  $input: () => $input3,
467
609
  $lxm: () => $lxm5,
468
- $nsid: () => $nsid8,
610
+ $nsid: () => $nsid9,
469
611
  $output: () => $output5,
470
612
  $params: () => $params5,
471
613
  main: () => main8
@@ -476,23 +618,33 @@ var put_defs_exports = {};
476
618
  __export(put_defs_exports, {
477
619
  $input: () => $input3,
478
620
  $lxm: () => $lxm5,
479
- $nsid: () => $nsid8,
621
+ $nsid: () => $nsid9,
480
622
  $output: () => $output5,
481
623
  $params: () => $params5,
482
624
  main: () => main8
483
625
  });
484
- var import_lex8 = require("@atproto/lex");
485
- var $nsid8 = "com.atiproto.account.cart.put";
486
- var main8 = import_lex8.l.procedure(
487
- $nsid8,
488
- import_lex8.l.params(),
489
- import_lex8.l.jsonPayload({
490
- uri: import_lex8.l.string({ format: "at-uri" }),
491
- record: import_lex8.l.ref((() => main))
626
+ var import_lex9 = require("@atproto/lex");
627
+ var $nsid9 = "com.atiproto.account.cart.put";
628
+ var main8 = import_lex9.l.procedure(
629
+ $nsid9,
630
+ import_lex9.l.params(),
631
+ import_lex9.l.jsonPayload({
632
+ uri: import_lex9.l.string({ format: "at-uri" }),
633
+ record: import_lex9.l.ref((() => main)),
634
+ workflow: import_lex9.l.optional(
635
+ import_lex9.l.ref(
636
+ (() => inboundWorkflow)
637
+ )
638
+ )
492
639
  }),
493
- import_lex8.l.jsonPayload({
494
- uri: import_lex8.l.string({ format: "at-uri" }),
495
- cid: import_lex8.l.string({ format: "cid" })
640
+ import_lex9.l.jsonPayload({
641
+ workflow: import_lex9.l.optional(
642
+ import_lex9.l.ref(
643
+ (() => outboundWorkflow)
644
+ )
645
+ ),
646
+ uri: import_lex9.l.optional(import_lex9.l.string({ format: "at-uri" })),
647
+ cid: import_lex9.l.optional(import_lex9.l.string({ format: "cid" }))
496
648
  })
497
649
  );
498
650
  var $lxm5 = main8.nsid;
@@ -512,7 +664,7 @@ var get_exports2 = {};
512
664
  __export(get_exports2, {
513
665
  $defs: () => get_defs_exports2,
514
666
  $lxm: () => $lxm6,
515
- $nsid: () => $nsid10,
667
+ $nsid: () => $nsid11,
516
668
  $output: () => $output6,
517
669
  $params: () => $params6,
518
670
  main: () => main10
@@ -522,12 +674,12 @@ __export(get_exports2, {
522
674
  var get_defs_exports2 = {};
523
675
  __export(get_defs_exports2, {
524
676
  $lxm: () => $lxm6,
525
- $nsid: () => $nsid10,
677
+ $nsid: () => $nsid11,
526
678
  $output: () => $output6,
527
679
  $params: () => $params6,
528
680
  main: () => main10
529
681
  });
530
- var import_lex10 = require("@atproto/lex");
682
+ var import_lex11 = require("@atproto/lex");
531
683
 
532
684
  // src/lexicons/com/atiproto/profile.defs.ts
533
685
  var profile_defs_exports = {};
@@ -539,7 +691,7 @@ __export(profile_defs_exports, {
539
691
  $ifMatches: () => $ifMatches4,
540
692
  $isTypeOf: () => $isTypeOf4,
541
693
  $matches: () => $matches4,
542
- $nsid: () => $nsid9,
694
+ $nsid: () => $nsid10,
543
695
  $parse: () => $parse4,
544
696
  $safeParse: () => $safeParse4,
545
697
  $safeValidate: () => $safeValidate4,
@@ -548,17 +700,17 @@ __export(profile_defs_exports, {
548
700
  main: () => main9,
549
701
  view: () => view4
550
702
  });
551
- var import_lex9 = require("@atproto/lex");
552
- var $nsid9 = "com.atiproto.profile";
553
- var main9 = import_lex9.l.record(
703
+ var import_lex10 = require("@atproto/lex");
704
+ var $nsid10 = "com.atiproto.profile";
705
+ var main9 = import_lex10.l.record(
554
706
  "literal:self",
555
- $nsid9,
556
- import_lex9.l.object({
557
- acceptsTips: import_lex9.l.optional(import_lex9.l.boolean()),
558
- acceptsSubscriptions: import_lex9.l.optional(import_lex9.l.boolean()),
559
- disableReceiptNotifications: import_lex9.l.optional(import_lex9.l.boolean()),
560
- createdAt: import_lex9.l.string({ format: "datetime" }),
561
- updatedAt: import_lex9.l.optional(import_lex9.l.string({ format: "datetime" }))
707
+ $nsid10,
708
+ import_lex10.l.object({
709
+ acceptsTips: import_lex10.l.optional(import_lex10.l.boolean()),
710
+ acceptsSubscriptions: import_lex10.l.optional(import_lex10.l.boolean()),
711
+ disableReceiptNotifications: import_lex10.l.optional(import_lex10.l.boolean()),
712
+ createdAt: import_lex10.l.string({ format: "datetime" }),
713
+ updatedAt: import_lex10.l.optional(import_lex10.l.string({ format: "datetime" }))
562
714
  })
563
715
  );
564
716
  var $isTypeOf4 = /* @__PURE__ */ main9.isTypeOf.bind(main9);
@@ -573,30 +725,30 @@ var $parse4 = /* @__PURE__ */ main9.parse.bind(main9);
573
725
  var $safeParse4 = /* @__PURE__ */ main9.safeParse.bind(main9);
574
726
  var $validate4 = /* @__PURE__ */ main9.validate.bind(main9);
575
727
  var $safeValidate4 = /* @__PURE__ */ main9.safeValidate.bind(main9);
576
- var view4 = import_lex9.l.typedObject(
577
- $nsid9,
728
+ var view4 = import_lex10.l.typedObject(
729
+ $nsid10,
578
730
  "view",
579
- import_lex9.l.object({
580
- uri: import_lex9.l.string({ format: "at-uri" }),
581
- acceptsTips: import_lex9.l.optional(import_lex9.l.boolean()),
582
- acceptsSubscriptions: import_lex9.l.optional(import_lex9.l.boolean()),
583
- disableReceiptNotifications: import_lex9.l.optional(import_lex9.l.boolean()),
584
- createdAt: import_lex9.l.string({ format: "datetime" }),
585
- updatedAt: import_lex9.l.optional(import_lex9.l.string({ format: "datetime" }))
731
+ import_lex10.l.object({
732
+ uri: import_lex10.l.string({ format: "at-uri" }),
733
+ acceptsTips: import_lex10.l.optional(import_lex10.l.boolean()),
734
+ acceptsSubscriptions: import_lex10.l.optional(import_lex10.l.boolean()),
735
+ disableReceiptNotifications: import_lex10.l.optional(import_lex10.l.boolean()),
736
+ createdAt: import_lex10.l.string({ format: "datetime" }),
737
+ updatedAt: import_lex10.l.optional(import_lex10.l.string({ format: "datetime" }))
586
738
  })
587
739
  );
588
740
 
589
741
  // src/lexicons/com/atiproto/account/profile/get.defs.ts
590
- var $nsid10 = "com.atiproto.account.profile.get";
591
- var main10 = import_lex10.l.query(
592
- $nsid10,
593
- import_lex10.l.params(),
594
- import_lex10.l.jsonPayload({
595
- uri: import_lex10.l.optional(import_lex10.l.string({ format: "at-uri" })),
596
- cid: import_lex10.l.optional(import_lex10.l.string({ format: "cid" })),
597
- profile: import_lex10.l.ref((() => view4)),
598
- hasProfile: import_lex10.l.boolean(),
599
- readyForPayment: import_lex10.l.boolean()
742
+ var $nsid11 = "com.atiproto.account.profile.get";
743
+ var main10 = import_lex11.l.query(
744
+ $nsid11,
745
+ import_lex11.l.params(),
746
+ import_lex11.l.jsonPayload({
747
+ uri: import_lex11.l.optional(import_lex11.l.string({ format: "at-uri" })),
748
+ cid: import_lex11.l.optional(import_lex11.l.string({ format: "cid" })),
749
+ profile: import_lex11.l.ref((() => view4)),
750
+ hasProfile: import_lex11.l.boolean(),
751
+ readyForPayment: import_lex11.l.boolean()
600
752
  })
601
753
  );
602
754
  var $lxm6 = main10.nsid;
@@ -609,7 +761,7 @@ __export(put_exports2, {
609
761
  $defs: () => put_defs_exports2,
610
762
  $input: () => $input4,
611
763
  $lxm: () => $lxm7,
612
- $nsid: () => $nsid11,
764
+ $nsid: () => $nsid12,
613
765
  $output: () => $output7,
614
766
  $params: () => $params7,
615
767
  main: () => main11
@@ -620,27 +772,39 @@ var put_defs_exports2 = {};
620
772
  __export(put_defs_exports2, {
621
773
  $input: () => $input4,
622
774
  $lxm: () => $lxm7,
623
- $nsid: () => $nsid11,
775
+ $nsid: () => $nsid12,
624
776
  $output: () => $output7,
625
777
  $params: () => $params7,
626
778
  main: () => main11
627
779
  });
628
- var import_lex11 = require("@atproto/lex");
629
- var $nsid11 = "com.atiproto.account.profile.put";
630
- var main11 = import_lex11.l.procedure(
631
- $nsid11,
632
- import_lex11.l.params(),
633
- import_lex11.l.jsonPayload({
634
- acceptsTips: import_lex11.l.optional(import_lex11.l.boolean()),
635
- acceptsSubscriptions: import_lex11.l.optional(import_lex11.l.boolean()),
636
- disableReceiptNotifications: import_lex11.l.optional(import_lex11.l.boolean())
780
+ var import_lex12 = require("@atproto/lex");
781
+ var $nsid12 = "com.atiproto.account.profile.put";
782
+ var main11 = import_lex12.l.procedure(
783
+ $nsid12,
784
+ import_lex12.l.params(),
785
+ import_lex12.l.jsonPayload({
786
+ acceptsTips: import_lex12.l.optional(import_lex12.l.boolean()),
787
+ acceptsSubscriptions: import_lex12.l.optional(import_lex12.l.boolean()),
788
+ disableReceiptNotifications: import_lex12.l.optional(import_lex12.l.boolean()),
789
+ workflow: import_lex12.l.optional(
790
+ import_lex12.l.ref(
791
+ (() => inboundWorkflow)
792
+ )
793
+ )
637
794
  }),
638
- import_lex11.l.jsonPayload({
639
- uri: import_lex11.l.string({ format: "at-uri" }),
640
- cid: import_lex11.l.string({ format: "cid" }),
641
- profile: import_lex11.l.ref((() => view4)),
642
- hasProfile: import_lex11.l.boolean(),
643
- readyForPayment: import_lex11.l.boolean()
795
+ import_lex12.l.jsonPayload({
796
+ workflow: import_lex12.l.optional(
797
+ import_lex12.l.ref(
798
+ (() => outboundWorkflow)
799
+ )
800
+ ),
801
+ uri: import_lex12.l.optional(import_lex12.l.string({ format: "at-uri" })),
802
+ cid: import_lex12.l.optional(import_lex12.l.string({ format: "cid" })),
803
+ profile: import_lex12.l.optional(
804
+ import_lex12.l.ref((() => view4))
805
+ ),
806
+ hasProfile: import_lex12.l.optional(import_lex12.l.boolean()),
807
+ readyForPayment: import_lex12.l.optional(import_lex12.l.boolean())
644
808
  })
645
809
  );
646
810
  var $lxm7 = main11.nsid;
@@ -661,7 +825,7 @@ var get_exports3 = {};
661
825
  __export(get_exports3, {
662
826
  $defs: () => get_defs_exports3,
663
827
  $lxm: () => $lxm8,
664
- $nsid: () => $nsid12,
828
+ $nsid: () => $nsid13,
665
829
  $output: () => $output8,
666
830
  $params: () => $params8,
667
831
  main: () => main12
@@ -671,21 +835,21 @@ __export(get_exports3, {
671
835
  var get_defs_exports3 = {};
672
836
  __export(get_defs_exports3, {
673
837
  $lxm: () => $lxm8,
674
- $nsid: () => $nsid12,
838
+ $nsid: () => $nsid13,
675
839
  $output: () => $output8,
676
840
  $params: () => $params8,
677
841
  main: () => main12
678
842
  });
679
- var import_lex12 = require("@atproto/lex");
680
- var $nsid12 = "com.atiproto.account.subscription.get";
681
- var main12 = import_lex12.l.query(
682
- $nsid12,
683
- import_lex12.l.params({
684
- uri: import_lex12.l.optional(import_lex12.l.string({ format: "at-uri" })),
685
- sender: import_lex12.l.optional(import_lex12.l.string({ format: "did" }))
843
+ var import_lex13 = require("@atproto/lex");
844
+ var $nsid13 = "com.atiproto.account.subscription.get";
845
+ var main12 = import_lex13.l.query(
846
+ $nsid13,
847
+ import_lex13.l.params({
848
+ uri: import_lex13.l.optional(import_lex13.l.string({ format: "at-uri" })),
849
+ sender: import_lex13.l.optional(import_lex13.l.string({ format: "did" }))
686
850
  }),
687
- import_lex12.l.jsonPayload({
688
- subscription: import_lex12.l.ref(
851
+ import_lex13.l.jsonPayload({
852
+ subscription: import_lex13.l.ref(
689
853
  (() => view3)
690
854
  )
691
855
  })
@@ -699,7 +863,7 @@ var list_exports2 = {};
699
863
  __export(list_exports2, {
700
864
  $defs: () => list_defs_exports2,
701
865
  $lxm: () => $lxm9,
702
- $nsid: () => $nsid13,
866
+ $nsid: () => $nsid14,
703
867
  $output: () => $output9,
704
868
  $params: () => $params9,
705
869
  main: () => main13
@@ -709,28 +873,28 @@ __export(list_exports2, {
709
873
  var list_defs_exports2 = {};
710
874
  __export(list_defs_exports2, {
711
875
  $lxm: () => $lxm9,
712
- $nsid: () => $nsid13,
876
+ $nsid: () => $nsid14,
713
877
  $output: () => $output9,
714
878
  $params: () => $params9,
715
879
  main: () => main13
716
880
  });
717
- var import_lex13 = require("@atproto/lex");
718
- var $nsid13 = "com.atiproto.account.subscription.list";
719
- var main13 = import_lex13.l.query(
720
- $nsid13,
721
- import_lex13.l.params({
722
- cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 })),
723
- limit: import_lex13.l.optional(
724
- import_lex13.l.withDefault(import_lex13.l.integer({ minimum: 1, maximum: 100 }), 50)
881
+ var import_lex14 = require("@atproto/lex");
882
+ var $nsid14 = "com.atiproto.account.subscription.list";
883
+ var main13 = import_lex14.l.query(
884
+ $nsid14,
885
+ import_lex14.l.params({
886
+ cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 })),
887
+ limit: import_lex14.l.optional(
888
+ import_lex14.l.withDefault(import_lex14.l.integer({ minimum: 1, maximum: 100 }), 50)
725
889
  )
726
890
  }),
727
- import_lex13.l.jsonPayload({
728
- subscriptions: import_lex13.l.array(
729
- import_lex13.l.ref(
891
+ import_lex14.l.jsonPayload({
892
+ subscriptions: import_lex14.l.array(
893
+ import_lex14.l.ref(
730
894
  (() => view3)
731
895
  )
732
896
  ),
733
- cursor: import_lex13.l.optional(import_lex13.l.string({ maxLength: 512 }))
897
+ cursor: import_lex14.l.optional(import_lex14.l.string({ maxLength: 512 }))
734
898
  })
735
899
  );
736
900
  var $lxm9 = main13.nsid;
@@ -742,7 +906,7 @@ var validate_exports = {};
742
906
  __export(validate_exports, {
743
907
  $defs: () => validate_defs_exports,
744
908
  $lxm: () => $lxm10,
745
- $nsid: () => $nsid14,
909
+ $nsid: () => $nsid15,
746
910
  $output: () => $output10,
747
911
  $params: () => $params10,
748
912
  main: () => main14
@@ -752,25 +916,25 @@ __export(validate_exports, {
752
916
  var validate_defs_exports = {};
753
917
  __export(validate_defs_exports, {
754
918
  $lxm: () => $lxm10,
755
- $nsid: () => $nsid14,
919
+ $nsid: () => $nsid15,
756
920
  $output: () => $output10,
757
921
  $params: () => $params10,
758
922
  main: () => main14
759
923
  });
760
- var import_lex14 = require("@atproto/lex");
761
- var $nsid14 = "com.atiproto.account.subscription.validate";
762
- var main14 = import_lex14.l.query(
763
- $nsid14,
764
- import_lex14.l.params({
765
- subscriptionUri: import_lex14.l.optional(import_lex14.l.string({ format: "at-uri" })),
766
- sender: import_lex14.l.optional(import_lex14.l.string({ format: "did" })),
767
- amount: import_lex14.l.optional(import_lex14.l.integer())
924
+ var import_lex15 = require("@atproto/lex");
925
+ var $nsid15 = "com.atiproto.account.subscription.validate";
926
+ var main14 = import_lex15.l.query(
927
+ $nsid15,
928
+ import_lex15.l.params({
929
+ subscriptionUri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" })),
930
+ sender: import_lex15.l.optional(import_lex15.l.string({ format: "did" })),
931
+ amount: import_lex15.l.optional(import_lex15.l.integer())
768
932
  }),
769
- import_lex14.l.jsonPayload({
770
- valid: import_lex14.l.boolean(),
771
- amount: import_lex14.l.optional(import_lex14.l.integer()),
772
- currency: import_lex14.l.optional(import_lex14.l.string({ maxLength: 3 })),
773
- reason: import_lex14.l.optional(import_lex14.l.string({ maxLength: 1024 }))
933
+ import_lex15.l.jsonPayload({
934
+ valid: import_lex15.l.boolean(),
935
+ amount: import_lex15.l.optional(import_lex15.l.integer()),
936
+ currency: import_lex15.l.optional(import_lex15.l.string({ maxLength: 3 })),
937
+ reason: import_lex15.l.optional(import_lex15.l.string({ maxLength: 1024 }))
774
938
  })
775
939
  );
776
940
  var $lxm10 = main14.nsid;
@@ -790,7 +954,7 @@ var get_exports4 = {};
790
954
  __export(get_exports4, {
791
955
  $defs: () => get_defs_exports4,
792
956
  $lxm: () => $lxm11,
793
- $nsid: () => $nsid15,
957
+ $nsid: () => $nsid16,
794
958
  $output: () => $output11,
795
959
  $params: () => $params11,
796
960
  main: () => main15
@@ -800,22 +964,22 @@ __export(get_exports4, {
800
964
  var get_defs_exports4 = {};
801
965
  __export(get_defs_exports4, {
802
966
  $lxm: () => $lxm11,
803
- $nsid: () => $nsid15,
967
+ $nsid: () => $nsid16,
804
968
  $output: () => $output11,
805
969
  $params: () => $params11,
806
970
  main: () => main15
807
971
  });
808
- var import_lex15 = require("@atproto/lex");
809
- var $nsid15 = "com.atiproto.account.tip.get";
810
- var main15 = import_lex15.l.query(
811
- $nsid15,
812
- import_lex15.l.params({
813
- uri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" })),
814
- sender: import_lex15.l.optional(import_lex15.l.string({ format: "did" })),
815
- recordUri: import_lex15.l.optional(import_lex15.l.string({ format: "at-uri" }))
972
+ var import_lex16 = require("@atproto/lex");
973
+ var $nsid16 = "com.atiproto.account.tip.get";
974
+ var main15 = import_lex16.l.query(
975
+ $nsid16,
976
+ import_lex16.l.params({
977
+ uri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
978
+ sender: import_lex16.l.optional(import_lex16.l.string({ format: "did" })),
979
+ recordUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" }))
816
980
  }),
817
- import_lex15.l.jsonPayload({
818
- tip: import_lex15.l.ref((() => view2))
981
+ import_lex16.l.jsonPayload({
982
+ tip: import_lex16.l.ref((() => view2))
819
983
  })
820
984
  );
821
985
  var $lxm11 = main15.nsid;
@@ -827,7 +991,7 @@ var list_exports3 = {};
827
991
  __export(list_exports3, {
828
992
  $defs: () => list_defs_exports3,
829
993
  $lxm: () => $lxm12,
830
- $nsid: () => $nsid16,
994
+ $nsid: () => $nsid17,
831
995
  $output: () => $output12,
832
996
  $params: () => $params12,
833
997
  main: () => main16
@@ -837,26 +1001,26 @@ __export(list_exports3, {
837
1001
  var list_defs_exports3 = {};
838
1002
  __export(list_defs_exports3, {
839
1003
  $lxm: () => $lxm12,
840
- $nsid: () => $nsid16,
1004
+ $nsid: () => $nsid17,
841
1005
  $output: () => $output12,
842
1006
  $params: () => $params12,
843
1007
  main: () => main16
844
1008
  });
845
- var import_lex16 = require("@atproto/lex");
846
- var $nsid16 = "com.atiproto.account.tip.list";
847
- var main16 = import_lex16.l.query(
848
- $nsid16,
849
- import_lex16.l.params({
850
- sender: import_lex16.l.optional(import_lex16.l.string({ format: "did" })),
851
- recordUri: import_lex16.l.optional(import_lex16.l.string({ format: "at-uri" })),
852
- cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 })),
853
- limit: import_lex16.l.optional(
854
- import_lex16.l.withDefault(import_lex16.l.integer({ minimum: 1, maximum: 100 }), 50)
1009
+ var import_lex17 = require("@atproto/lex");
1010
+ var $nsid17 = "com.atiproto.account.tip.list";
1011
+ var main16 = import_lex17.l.query(
1012
+ $nsid17,
1013
+ import_lex17.l.params({
1014
+ sender: import_lex17.l.optional(import_lex17.l.string({ format: "did" })),
1015
+ recordUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
1016
+ cursor: import_lex17.l.optional(import_lex17.l.string({ maxLength: 512 })),
1017
+ limit: import_lex17.l.optional(
1018
+ import_lex17.l.withDefault(import_lex17.l.integer({ minimum: 1, maximum: 100 }), 50)
855
1019
  )
856
1020
  }),
857
- import_lex16.l.jsonPayload({
858
- tips: import_lex16.l.array(import_lex16.l.ref((() => view2))),
859
- cursor: import_lex16.l.optional(import_lex16.l.string({ maxLength: 512 }))
1021
+ import_lex17.l.jsonPayload({
1022
+ tips: import_lex17.l.array(import_lex17.l.ref((() => view2))),
1023
+ cursor: import_lex17.l.optional(import_lex17.l.string({ maxLength: 512 }))
860
1024
  })
861
1025
  );
862
1026
  var $lxm12 = main16.nsid;
@@ -868,7 +1032,7 @@ var validate_exports2 = {};
868
1032
  __export(validate_exports2, {
869
1033
  $defs: () => validate_defs_exports2,
870
1034
  $lxm: () => $lxm13,
871
- $nsid: () => $nsid17,
1035
+ $nsid: () => $nsid18,
872
1036
  $output: () => $output13,
873
1037
  $params: () => $params13,
874
1038
  main: () => main17
@@ -878,52 +1042,68 @@ __export(validate_exports2, {
878
1042
  var validate_defs_exports2 = {};
879
1043
  __export(validate_defs_exports2, {
880
1044
  $lxm: () => $lxm13,
881
- $nsid: () => $nsid17,
1045
+ $nsid: () => $nsid18,
882
1046
  $output: () => $output13,
883
1047
  $params: () => $params13,
884
1048
  main: () => main17
885
1049
  });
886
- var import_lex17 = require("@atproto/lex");
887
- var $nsid17 = "com.atiproto.account.tip.validate";
888
- var main17 = import_lex17.l.query(
889
- $nsid17,
890
- import_lex17.l.params({
891
- tipUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
892
- recordUri: import_lex17.l.optional(import_lex17.l.string({ format: "at-uri" })),
893
- sender: import_lex17.l.optional(import_lex17.l.string({ format: "did" })),
894
- amount: import_lex17.l.optional(import_lex17.l.integer())
1050
+ var import_lex18 = require("@atproto/lex");
1051
+ var $nsid18 = "com.atiproto.account.tip.validate";
1052
+ var main17 = import_lex18.l.query(
1053
+ $nsid18,
1054
+ import_lex18.l.params({
1055
+ tipUri: import_lex18.l.optional(import_lex18.l.string({ format: "at-uri" })),
1056
+ recordUri: import_lex18.l.optional(import_lex18.l.string({ format: "at-uri" })),
1057
+ sender: import_lex18.l.optional(import_lex18.l.string({ format: "did" })),
1058
+ amount: import_lex18.l.optional(import_lex18.l.integer())
895
1059
  }),
896
- import_lex17.l.jsonPayload({
897
- valid: import_lex17.l.boolean(),
898
- amount: import_lex17.l.optional(import_lex17.l.integer()),
899
- currency: import_lex17.l.optional(import_lex17.l.string({ maxLength: 3 })),
900
- reason: import_lex17.l.optional(import_lex17.l.string({ maxLength: 1024 }))
1060
+ import_lex18.l.jsonPayload({
1061
+ valid: import_lex18.l.boolean(),
1062
+ amount: import_lex18.l.optional(import_lex18.l.integer()),
1063
+ currency: import_lex18.l.optional(import_lex18.l.string({ maxLength: 3 })),
1064
+ reason: import_lex18.l.optional(import_lex18.l.string({ maxLength: 1024 }))
901
1065
  })
902
1066
  );
903
1067
  var $lxm13 = main17.nsid;
904
1068
  var $params13 = main17.parameters;
905
1069
  var $output13 = main17.output;
906
1070
 
1071
+ // src/lexicons/com/atiproto/actions.ts
1072
+ var actions_exports = {};
1073
+ __export(actions_exports, {
1074
+ $defs: () => actions_defs_exports,
1075
+ $nsid: () => $nsid,
1076
+ create: () => create,
1077
+ delete: () => delete$0,
1078
+ error: () => error,
1079
+ inboundWorkflow: () => inboundWorkflow,
1080
+ outboundWorkflow: () => outboundWorkflow,
1081
+ raise: () => raise,
1082
+ recordResult: () => recordResult,
1083
+ response: () => response,
1084
+ update: () => update
1085
+ });
1086
+
907
1087
  // src/lexicons/com/atiproto/authEnhanced.ts
908
1088
  var authEnhanced_exports = {};
909
1089
  __export(authEnhanced_exports, {
910
1090
  $defs: () => authEnhanced_defs_exports,
911
- $nsid: () => $nsid18,
1091
+ $nsid: () => $nsid19,
912
1092
  main: () => main18
913
1093
  });
914
1094
 
915
1095
  // src/lexicons/com/atiproto/authEnhanced.defs.ts
916
1096
  var authEnhanced_defs_exports = {};
917
1097
  __export(authEnhanced_defs_exports, {
918
- $nsid: () => $nsid18,
1098
+ $nsid: () => $nsid19,
919
1099
  main: () => main18
920
1100
  });
921
- var import_lex18 = require("@atproto/lex");
922
- var $nsid18 = "com.atiproto.authEnhanced";
923
- var main18 = import_lex18.l.permissionSet(
924
- $nsid18,
1101
+ var import_lex19 = require("@atproto/lex");
1102
+ var $nsid19 = "com.atiproto.authEnhanced";
1103
+ var main18 = import_lex19.l.permissionSet(
1104
+ $nsid19,
925
1105
  [
926
- import_lex18.l.permission("repo", {
1106
+ import_lex19.l.permission("repo", {
927
1107
  collection: [
928
1108
  "com.atiproto.cart",
929
1109
  "com.atiproto.subscription",
@@ -931,7 +1111,7 @@ var main18 = import_lex18.l.permissionSet(
931
1111
  "com.atiproto.profile"
932
1112
  ]
933
1113
  }),
934
- import_lex18.l.permission("rpc", {
1114
+ import_lex19.l.permission("rpc", {
935
1115
  aud: "*",
936
1116
  lxm: [
937
1117
  "com.atiproto.account.cart.clone",
@@ -975,29 +1155,29 @@ var main18 = import_lex18.l.permissionSet(
975
1155
  var authGeneral_exports = {};
976
1156
  __export(authGeneral_exports, {
977
1157
  $defs: () => authGeneral_defs_exports,
978
- $nsid: () => $nsid19,
1158
+ $nsid: () => $nsid20,
979
1159
  main: () => main19
980
1160
  });
981
1161
 
982
1162
  // src/lexicons/com/atiproto/authGeneral.defs.ts
983
1163
  var authGeneral_defs_exports = {};
984
1164
  __export(authGeneral_defs_exports, {
985
- $nsid: () => $nsid19,
1165
+ $nsid: () => $nsid20,
986
1166
  main: () => main19
987
1167
  });
988
- var import_lex19 = require("@atproto/lex");
989
- var $nsid19 = "com.atiproto.authGeneral";
990
- var main19 = import_lex19.l.permissionSet(
991
- $nsid19,
1168
+ var import_lex20 = require("@atproto/lex");
1169
+ var $nsid20 = "com.atiproto.authGeneral";
1170
+ var main19 = import_lex20.l.permissionSet(
1171
+ $nsid20,
992
1172
  [
993
- import_lex19.l.permission("repo", {
1173
+ import_lex20.l.permission("repo", {
994
1174
  collection: [
995
1175
  "com.atiproto.cart",
996
1176
  "com.atiproto.subscription",
997
1177
  "com.atiproto.tip"
998
1178
  ]
999
1179
  }),
1000
- import_lex19.l.permission("rpc", {
1180
+ import_lex20.l.permission("rpc", {
1001
1181
  aud: "*",
1002
1182
  lxm: [
1003
1183
  "com.atiproto.account.cart.clone",
@@ -1046,7 +1226,7 @@ __export(cart_exports2, {
1046
1226
  $ifMatches: () => $ifMatches,
1047
1227
  $isTypeOf: () => $isTypeOf,
1048
1228
  $matches: () => $matches,
1049
- $nsid: () => $nsid,
1229
+ $nsid: () => $nsid2,
1050
1230
  $parse: () => $parse,
1051
1231
  $safeParse: () => $safeParse,
1052
1232
  $safeValidate: () => $safeValidate,
@@ -1070,7 +1250,7 @@ var list_exports4 = {};
1070
1250
  __export(list_exports4, {
1071
1251
  $defs: () => list_defs_exports4,
1072
1252
  $lxm: () => $lxm14,
1073
- $nsid: () => $nsid20,
1253
+ $nsid: () => $nsid21,
1074
1254
  $output: () => $output14,
1075
1255
  $params: () => $params14,
1076
1256
  main: () => main20
@@ -1080,34 +1260,34 @@ __export(list_exports4, {
1080
1260
  var list_defs_exports4 = {};
1081
1261
  __export(list_defs_exports4, {
1082
1262
  $lxm: () => $lxm14,
1083
- $nsid: () => $nsid20,
1263
+ $nsid: () => $nsid21,
1084
1264
  $output: () => $output14,
1085
1265
  $params: () => $params14,
1086
1266
  main: () => main20
1087
1267
  });
1088
- var import_lex20 = require("@atproto/lex");
1089
- var $nsid20 = "com.atiproto.feed.list";
1090
- var main20 = import_lex20.l.query(
1091
- $nsid20,
1092
- import_lex20.l.params({
1093
- cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 })),
1094
- limit: import_lex20.l.optional(
1095
- import_lex20.l.withDefault(import_lex20.l.integer({ minimum: 1, maximum: 100 }), 50)
1268
+ var import_lex21 = require("@atproto/lex");
1269
+ var $nsid21 = "com.atiproto.feed.list";
1270
+ var main20 = import_lex21.l.query(
1271
+ $nsid21,
1272
+ import_lex21.l.params({
1273
+ cursor: import_lex21.l.optional(import_lex21.l.string({ maxLength: 512 })),
1274
+ limit: import_lex21.l.optional(
1275
+ import_lex21.l.withDefault(import_lex21.l.integer({ minimum: 1, maximum: 100 }), 50)
1096
1276
  )
1097
1277
  }),
1098
- import_lex20.l.jsonPayload({
1099
- items: import_lex20.l.array(
1100
- import_lex20.l.typedUnion(
1278
+ import_lex21.l.jsonPayload({
1279
+ items: import_lex21.l.array(
1280
+ import_lex21.l.typedUnion(
1101
1281
  [
1102
- import_lex20.l.typedRef((() => main2)),
1103
- import_lex20.l.typedRef(
1104
- (() => main3)
1282
+ import_lex21.l.typedRef((() => view2)),
1283
+ import_lex21.l.typedRef(
1284
+ (() => view3)
1105
1285
  )
1106
1286
  ],
1107
1287
  false
1108
1288
  )
1109
1289
  ),
1110
- cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 }))
1290
+ cursor: import_lex21.l.optional(import_lex21.l.string({ maxLength: 512 }))
1111
1291
  })
1112
1292
  );
1113
1293
  var $lxm14 = main20.nsid;
@@ -1131,7 +1311,7 @@ __export(cancel_exports, {
1131
1311
  $defs: () => cancel_defs_exports,
1132
1312
  $input: () => $input5,
1133
1313
  $lxm: () => $lxm15,
1134
- $nsid: () => $nsid21,
1314
+ $nsid: () => $nsid22,
1135
1315
  $output: () => $output15,
1136
1316
  $params: () => $params15,
1137
1317
  main: () => main21
@@ -1142,23 +1322,37 @@ var cancel_defs_exports = {};
1142
1322
  __export(cancel_defs_exports, {
1143
1323
  $input: () => $input5,
1144
1324
  $lxm: () => $lxm15,
1145
- $nsid: () => $nsid21,
1325
+ $nsid: () => $nsid22,
1146
1326
  $output: () => $output15,
1147
1327
  $params: () => $params15,
1148
1328
  main: () => main21
1149
1329
  });
1150
- var import_lex21 = require("@atproto/lex");
1151
- var $nsid21 = "com.atiproto.feed.subscription.cancel";
1152
- var main21 = import_lex21.l.procedure(
1153
- $nsid21,
1154
- import_lex21.l.params(),
1155
- import_lex21.l.jsonPayload({ subscriptionUri: import_lex21.l.string({ format: "at-uri" }) }),
1156
- import_lex21.l.jsonPayload({
1157
- subscriptionUri: import_lex21.l.string({ format: "at-uri" }),
1158
- subscription: import_lex21.l.ref(
1159
- (() => view3)
1330
+ var import_lex22 = require("@atproto/lex");
1331
+ var $nsid22 = "com.atiproto.feed.subscription.cancel";
1332
+ var main21 = import_lex22.l.procedure(
1333
+ $nsid22,
1334
+ import_lex22.l.params(),
1335
+ import_lex22.l.jsonPayload({
1336
+ subscriptionUri: import_lex22.l.string({ format: "at-uri" }),
1337
+ workflow: import_lex22.l.optional(
1338
+ import_lex22.l.ref(
1339
+ (() => inboundWorkflow)
1340
+ )
1341
+ )
1342
+ }),
1343
+ import_lex22.l.jsonPayload({
1344
+ workflow: import_lex22.l.optional(
1345
+ import_lex22.l.ref(
1346
+ (() => outboundWorkflow)
1347
+ )
1160
1348
  ),
1161
- accessUntil: import_lex21.l.string({ format: "datetime" })
1349
+ subscriptionUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1350
+ subscription: import_lex22.l.optional(
1351
+ import_lex22.l.ref(
1352
+ (() => view3)
1353
+ )
1354
+ ),
1355
+ accessUntil: import_lex22.l.optional(import_lex22.l.string({ format: "datetime" }))
1162
1356
  })
1163
1357
  );
1164
1358
  var $lxm15 = main21.nsid;
@@ -1172,7 +1366,7 @@ __export(create_exports2, {
1172
1366
  $defs: () => create_defs_exports2,
1173
1367
  $input: () => $input6,
1174
1368
  $lxm: () => $lxm16,
1175
- $nsid: () => $nsid22,
1369
+ $nsid: () => $nsid23,
1176
1370
  $output: () => $output16,
1177
1371
  $params: () => $params16,
1178
1372
  main: () => main22
@@ -1183,35 +1377,47 @@ var create_defs_exports2 = {};
1183
1377
  __export(create_defs_exports2, {
1184
1378
  $input: () => $input6,
1185
1379
  $lxm: () => $lxm16,
1186
- $nsid: () => $nsid22,
1380
+ $nsid: () => $nsid23,
1187
1381
  $output: () => $output16,
1188
1382
  $params: () => $params16,
1189
1383
  main: () => main22
1190
1384
  });
1191
- var import_lex22 = require("@atproto/lex");
1192
- var $nsid22 = "com.atiproto.feed.subscription.create";
1193
- var main22 = import_lex22.l.procedure(
1194
- $nsid22,
1195
- import_lex22.l.params(),
1196
- import_lex22.l.jsonPayload({
1197
- subject: import_lex22.l.string({ format: "did" }),
1198
- amount: import_lex22.l.optional(import_lex22.l.integer()),
1199
- currency: import_lex22.l.string({ maxLength: 3 }),
1200
- interval: import_lex22.l.enum(["monthly", "yearly"]),
1201
- cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1202
- redirectUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" })),
1203
- isPrivate: import_lex22.l.optional(import_lex22.l.boolean())
1385
+ var import_lex23 = require("@atproto/lex");
1386
+ var $nsid23 = "com.atiproto.feed.subscription.create";
1387
+ var main22 = import_lex23.l.procedure(
1388
+ $nsid23,
1389
+ import_lex23.l.params(),
1390
+ import_lex23.l.jsonPayload({
1391
+ subject: import_lex23.l.string({ format: "did" }),
1392
+ amount: import_lex23.l.optional(import_lex23.l.integer()),
1393
+ currency: import_lex23.l.string({ maxLength: 3 }),
1394
+ interval: import_lex23.l.enum(["monthly", "yearly"]),
1395
+ cartUri: import_lex23.l.optional(import_lex23.l.string({ format: "at-uri" })),
1396
+ redirectUrl: import_lex23.l.optional(import_lex23.l.string({ format: "uri" })),
1397
+ isPrivate: import_lex23.l.optional(import_lex23.l.boolean()),
1398
+ workflow: import_lex23.l.optional(
1399
+ import_lex23.l.ref(
1400
+ (() => inboundWorkflow)
1401
+ )
1402
+ )
1204
1403
  }),
1205
- import_lex22.l.jsonPayload({
1206
- subscriptionUri: import_lex22.l.string({ format: "at-uri" }),
1207
- subscription: import_lex22.l.ref(
1208
- (() => view3)
1404
+ import_lex23.l.jsonPayload({
1405
+ workflow: import_lex23.l.optional(
1406
+ import_lex23.l.ref(
1407
+ (() => outboundWorkflow)
1408
+ )
1409
+ ),
1410
+ subscriptionUri: import_lex23.l.optional(import_lex23.l.string({ format: "at-uri" })),
1411
+ subscription: import_lex23.l.optional(
1412
+ import_lex23.l.ref(
1413
+ (() => view3)
1414
+ )
1209
1415
  ),
1210
- cartUri: import_lex22.l.optional(import_lex22.l.string({ format: "at-uri" })),
1211
- cart: import_lex22.l.optional(
1212
- import_lex22.l.ref((() => view))
1416
+ cartUri: import_lex23.l.optional(import_lex23.l.string({ format: "at-uri" })),
1417
+ cart: import_lex23.l.optional(
1418
+ import_lex23.l.ref((() => view))
1213
1419
  ),
1214
- checkoutUrl: import_lex22.l.optional(import_lex22.l.string({ format: "uri" }))
1420
+ checkoutUrl: import_lex23.l.optional(import_lex23.l.string({ format: "uri" }))
1215
1421
  })
1216
1422
  );
1217
1423
  var $lxm16 = main22.nsid;
@@ -1224,7 +1430,7 @@ var get_exports5 = {};
1224
1430
  __export(get_exports5, {
1225
1431
  $defs: () => get_defs_exports5,
1226
1432
  $lxm: () => $lxm17,
1227
- $nsid: () => $nsid23,
1433
+ $nsid: () => $nsid24,
1228
1434
  $output: () => $output17,
1229
1435
  $params: () => $params17,
1230
1436
  main: () => main23
@@ -1234,21 +1440,21 @@ __export(get_exports5, {
1234
1440
  var get_defs_exports5 = {};
1235
1441
  __export(get_defs_exports5, {
1236
1442
  $lxm: () => $lxm17,
1237
- $nsid: () => $nsid23,
1443
+ $nsid: () => $nsid24,
1238
1444
  $output: () => $output17,
1239
1445
  $params: () => $params17,
1240
1446
  main: () => main23
1241
1447
  });
1242
- var import_lex23 = require("@atproto/lex");
1243
- var $nsid23 = "com.atiproto.feed.subscription.get";
1244
- var main23 = import_lex23.l.query(
1245
- $nsid23,
1246
- import_lex23.l.params({
1247
- uri: import_lex23.l.optional(import_lex23.l.string({ format: "at-uri" })),
1248
- subject: import_lex23.l.optional(import_lex23.l.string({ format: "did" }))
1448
+ var import_lex24 = require("@atproto/lex");
1449
+ var $nsid24 = "com.atiproto.feed.subscription.get";
1450
+ var main23 = import_lex24.l.query(
1451
+ $nsid24,
1452
+ import_lex24.l.params({
1453
+ uri: import_lex24.l.optional(import_lex24.l.string({ format: "at-uri" })),
1454
+ subject: import_lex24.l.optional(import_lex24.l.string({ format: "did" }))
1249
1455
  }),
1250
- import_lex23.l.jsonPayload({
1251
- subscription: import_lex23.l.ref(
1456
+ import_lex24.l.jsonPayload({
1457
+ subscription: import_lex24.l.ref(
1252
1458
  (() => view3)
1253
1459
  )
1254
1460
  })
@@ -1262,7 +1468,7 @@ var list_exports5 = {};
1262
1468
  __export(list_exports5, {
1263
1469
  $defs: () => list_defs_exports5,
1264
1470
  $lxm: () => $lxm18,
1265
- $nsid: () => $nsid24,
1471
+ $nsid: () => $nsid25,
1266
1472
  $output: () => $output18,
1267
1473
  $params: () => $params18,
1268
1474
  main: () => main24
@@ -1272,28 +1478,28 @@ __export(list_exports5, {
1272
1478
  var list_defs_exports5 = {};
1273
1479
  __export(list_defs_exports5, {
1274
1480
  $lxm: () => $lxm18,
1275
- $nsid: () => $nsid24,
1481
+ $nsid: () => $nsid25,
1276
1482
  $output: () => $output18,
1277
1483
  $params: () => $params18,
1278
1484
  main: () => main24
1279
1485
  });
1280
- var import_lex24 = require("@atproto/lex");
1281
- var $nsid24 = "com.atiproto.feed.subscription.list";
1282
- var main24 = import_lex24.l.query(
1283
- $nsid24,
1284
- import_lex24.l.params({
1285
- cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 })),
1286
- limit: import_lex24.l.optional(
1287
- import_lex24.l.withDefault(import_lex24.l.integer({ minimum: 1, maximum: 100 }), 50)
1486
+ var import_lex25 = require("@atproto/lex");
1487
+ var $nsid25 = "com.atiproto.feed.subscription.list";
1488
+ var main24 = import_lex25.l.query(
1489
+ $nsid25,
1490
+ import_lex25.l.params({
1491
+ cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 })),
1492
+ limit: import_lex25.l.optional(
1493
+ import_lex25.l.withDefault(import_lex25.l.integer({ minimum: 1, maximum: 100 }), 50)
1288
1494
  )
1289
1495
  }),
1290
- import_lex24.l.jsonPayload({
1291
- subscriptions: import_lex24.l.array(
1292
- import_lex24.l.ref(
1496
+ import_lex25.l.jsonPayload({
1497
+ subscriptions: import_lex25.l.array(
1498
+ import_lex25.l.ref(
1293
1499
  (() => view3)
1294
1500
  )
1295
1501
  ),
1296
- cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 }))
1502
+ cursor: import_lex25.l.optional(import_lex25.l.string({ maxLength: 512 }))
1297
1503
  })
1298
1504
  );
1299
1505
  var $lxm18 = main24.nsid;
@@ -1306,7 +1512,7 @@ __export(put_exports3, {
1306
1512
  $defs: () => put_defs_exports3,
1307
1513
  $input: () => $input7,
1308
1514
  $lxm: () => $lxm19,
1309
- $nsid: () => $nsid25,
1515
+ $nsid: () => $nsid26,
1310
1516
  $output: () => $output19,
1311
1517
  $params: () => $params19,
1312
1518
  main: () => main25
@@ -1317,25 +1523,35 @@ var put_defs_exports3 = {};
1317
1523
  __export(put_defs_exports3, {
1318
1524
  $input: () => $input7,
1319
1525
  $lxm: () => $lxm19,
1320
- $nsid: () => $nsid25,
1526
+ $nsid: () => $nsid26,
1321
1527
  $output: () => $output19,
1322
1528
  $params: () => $params19,
1323
1529
  main: () => main25
1324
1530
  });
1325
- var import_lex25 = require("@atproto/lex");
1326
- var $nsid25 = "com.atiproto.feed.subscription.put";
1327
- var main25 = import_lex25.l.procedure(
1328
- $nsid25,
1329
- import_lex25.l.params(),
1330
- import_lex25.l.jsonPayload({
1331
- uri: import_lex25.l.string({ format: "at-uri" }),
1332
- record: import_lex25.l.ref(
1531
+ var import_lex26 = require("@atproto/lex");
1532
+ var $nsid26 = "com.atiproto.feed.subscription.put";
1533
+ var main25 = import_lex26.l.procedure(
1534
+ $nsid26,
1535
+ import_lex26.l.params(),
1536
+ import_lex26.l.jsonPayload({
1537
+ uri: import_lex26.l.string({ format: "at-uri" }),
1538
+ record: import_lex26.l.ref(
1333
1539
  (() => main3)
1540
+ ),
1541
+ workflow: import_lex26.l.optional(
1542
+ import_lex26.l.ref(
1543
+ (() => inboundWorkflow)
1544
+ )
1334
1545
  )
1335
1546
  }),
1336
- import_lex25.l.jsonPayload({
1337
- uri: import_lex25.l.string({ format: "at-uri" }),
1338
- cid: import_lex25.l.string({ format: "cid" })
1547
+ import_lex26.l.jsonPayload({
1548
+ workflow: import_lex26.l.optional(
1549
+ import_lex26.l.ref(
1550
+ (() => outboundWorkflow)
1551
+ )
1552
+ ),
1553
+ uri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1554
+ cid: import_lex26.l.optional(import_lex26.l.string({ format: "cid" }))
1339
1555
  })
1340
1556
  );
1341
1557
  var $lxm19 = main25.nsid;
@@ -1348,7 +1564,7 @@ var validate_exports3 = {};
1348
1564
  __export(validate_exports3, {
1349
1565
  $defs: () => validate_defs_exports3,
1350
1566
  $lxm: () => $lxm20,
1351
- $nsid: () => $nsid26,
1567
+ $nsid: () => $nsid27,
1352
1568
  $output: () => $output20,
1353
1569
  $params: () => $params20,
1354
1570
  main: () => main26
@@ -1358,25 +1574,25 @@ __export(validate_exports3, {
1358
1574
  var validate_defs_exports3 = {};
1359
1575
  __export(validate_defs_exports3, {
1360
1576
  $lxm: () => $lxm20,
1361
- $nsid: () => $nsid26,
1577
+ $nsid: () => $nsid27,
1362
1578
  $output: () => $output20,
1363
1579
  $params: () => $params20,
1364
1580
  main: () => main26
1365
1581
  });
1366
- var import_lex26 = require("@atproto/lex");
1367
- var $nsid26 = "com.atiproto.feed.subscription.validate";
1368
- var main26 = import_lex26.l.query(
1369
- $nsid26,
1370
- import_lex26.l.params({
1371
- subscriptionUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1372
- subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1373
- amount: import_lex26.l.optional(import_lex26.l.integer())
1582
+ var import_lex27 = require("@atproto/lex");
1583
+ var $nsid27 = "com.atiproto.feed.subscription.validate";
1584
+ var main26 = import_lex27.l.query(
1585
+ $nsid27,
1586
+ import_lex27.l.params({
1587
+ subscriptionUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1588
+ subject: import_lex27.l.optional(import_lex27.l.string({ format: "did" })),
1589
+ amount: import_lex27.l.optional(import_lex27.l.integer())
1374
1590
  }),
1375
- import_lex26.l.jsonPayload({
1376
- valid: import_lex26.l.boolean(),
1377
- amount: import_lex26.l.optional(import_lex26.l.integer()),
1378
- currency: import_lex26.l.optional(import_lex26.l.string({ maxLength: 3 })),
1379
- reason: import_lex26.l.optional(import_lex26.l.string({ maxLength: 1024 }))
1591
+ import_lex27.l.jsonPayload({
1592
+ valid: import_lex27.l.boolean(),
1593
+ amount: import_lex27.l.optional(import_lex27.l.integer()),
1594
+ currency: import_lex27.l.optional(import_lex27.l.string({ maxLength: 3 })),
1595
+ reason: import_lex27.l.optional(import_lex27.l.string({ maxLength: 1024 }))
1380
1596
  })
1381
1597
  );
1382
1598
  var $lxm20 = main26.nsid;
@@ -1399,7 +1615,7 @@ __export(create_exports3, {
1399
1615
  $defs: () => create_defs_exports3,
1400
1616
  $input: () => $input8,
1401
1617
  $lxm: () => $lxm21,
1402
- $nsid: () => $nsid27,
1618
+ $nsid: () => $nsid28,
1403
1619
  $output: () => $output21,
1404
1620
  $params: () => $params21,
1405
1621
  main: () => main27
@@ -1410,34 +1626,44 @@ var create_defs_exports3 = {};
1410
1626
  __export(create_defs_exports3, {
1411
1627
  $input: () => $input8,
1412
1628
  $lxm: () => $lxm21,
1413
- $nsid: () => $nsid27,
1629
+ $nsid: () => $nsid28,
1414
1630
  $output: () => $output21,
1415
1631
  $params: () => $params21,
1416
1632
  main: () => main27
1417
1633
  });
1418
- var import_lex27 = require("@atproto/lex");
1419
- var $nsid27 = "com.atiproto.feed.tip.create";
1420
- var main27 = import_lex27.l.procedure(
1421
- $nsid27,
1422
- import_lex27.l.params(),
1423
- import_lex27.l.jsonPayload({
1424
- subject: import_lex27.l.string({ format: "did" }),
1425
- recordUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1426
- amount: import_lex27.l.integer(),
1427
- currency: import_lex27.l.string({ maxLength: 3 }),
1428
- cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1429
- redirectUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" })),
1430
- message: import_lex27.l.optional(import_lex27.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
1431
- isPrivate: import_lex27.l.optional(import_lex27.l.boolean())
1634
+ var import_lex28 = require("@atproto/lex");
1635
+ var $nsid28 = "com.atiproto.feed.tip.create";
1636
+ var main27 = import_lex28.l.procedure(
1637
+ $nsid28,
1638
+ import_lex28.l.params(),
1639
+ import_lex28.l.jsonPayload({
1640
+ subject: import_lex28.l.string({ format: "did" }),
1641
+ recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1642
+ amount: import_lex28.l.integer(),
1643
+ currency: import_lex28.l.string({ maxLength: 3 }),
1644
+ cartUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1645
+ redirectUrl: import_lex28.l.optional(import_lex28.l.string({ format: "uri" })),
1646
+ message: import_lex28.l.optional(import_lex28.l.string({ maxGraphemes: 500, maxLength: 5e3 })),
1647
+ isPrivate: import_lex28.l.optional(import_lex28.l.boolean()),
1648
+ workflow: import_lex28.l.optional(
1649
+ import_lex28.l.ref(
1650
+ (() => inboundWorkflow)
1651
+ )
1652
+ )
1432
1653
  }),
1433
- import_lex27.l.jsonPayload({
1434
- tipUri: import_lex27.l.string({ format: "at-uri" }),
1435
- tip: import_lex27.l.ref((() => view2)),
1436
- cartUri: import_lex27.l.optional(import_lex27.l.string({ format: "at-uri" })),
1437
- cart: import_lex27.l.optional(
1438
- import_lex27.l.ref((() => view))
1654
+ import_lex28.l.jsonPayload({
1655
+ workflow: import_lex28.l.optional(
1656
+ import_lex28.l.ref(
1657
+ (() => outboundWorkflow)
1658
+ )
1659
+ ),
1660
+ tipUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1661
+ tip: import_lex28.l.optional(import_lex28.l.ref((() => view2))),
1662
+ cartUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1663
+ cart: import_lex28.l.optional(
1664
+ import_lex28.l.ref((() => view))
1439
1665
  ),
1440
- checkoutUrl: import_lex27.l.optional(import_lex27.l.string({ format: "uri" }))
1666
+ checkoutUrl: import_lex28.l.optional(import_lex28.l.string({ format: "uri" }))
1441
1667
  })
1442
1668
  );
1443
1669
  var $lxm21 = main27.nsid;
@@ -1450,7 +1676,7 @@ var get_exports6 = {};
1450
1676
  __export(get_exports6, {
1451
1677
  $defs: () => get_defs_exports6,
1452
1678
  $lxm: () => $lxm22,
1453
- $nsid: () => $nsid28,
1679
+ $nsid: () => $nsid29,
1454
1680
  $output: () => $output22,
1455
1681
  $params: () => $params22,
1456
1682
  main: () => main28
@@ -1460,22 +1686,22 @@ __export(get_exports6, {
1460
1686
  var get_defs_exports6 = {};
1461
1687
  __export(get_defs_exports6, {
1462
1688
  $lxm: () => $lxm22,
1463
- $nsid: () => $nsid28,
1689
+ $nsid: () => $nsid29,
1464
1690
  $output: () => $output22,
1465
1691
  $params: () => $params22,
1466
1692
  main: () => main28
1467
1693
  });
1468
- var import_lex28 = require("@atproto/lex");
1469
- var $nsid28 = "com.atiproto.feed.tip.get";
1470
- var main28 = import_lex28.l.query(
1471
- $nsid28,
1472
- import_lex28.l.params({
1473
- uri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1474
- subject: import_lex28.l.optional(import_lex28.l.string({ format: "did" })),
1475
- recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" }))
1694
+ var import_lex29 = require("@atproto/lex");
1695
+ var $nsid29 = "com.atiproto.feed.tip.get";
1696
+ var main28 = import_lex29.l.query(
1697
+ $nsid29,
1698
+ import_lex29.l.params({
1699
+ uri: import_lex29.l.optional(import_lex29.l.string({ format: "at-uri" })),
1700
+ subject: import_lex29.l.optional(import_lex29.l.string({ format: "did" })),
1701
+ recordUri: import_lex29.l.optional(import_lex29.l.string({ format: "at-uri" }))
1476
1702
  }),
1477
- import_lex28.l.jsonPayload({
1478
- tip: import_lex28.l.ref((() => view2))
1703
+ import_lex29.l.jsonPayload({
1704
+ tip: import_lex29.l.ref((() => view2))
1479
1705
  })
1480
1706
  );
1481
1707
  var $lxm22 = main28.nsid;
@@ -1487,7 +1713,7 @@ var list_exports6 = {};
1487
1713
  __export(list_exports6, {
1488
1714
  $defs: () => list_defs_exports6,
1489
1715
  $lxm: () => $lxm23,
1490
- $nsid: () => $nsid29,
1716
+ $nsid: () => $nsid30,
1491
1717
  $output: () => $output23,
1492
1718
  $params: () => $params23,
1493
1719
  main: () => main29
@@ -1497,26 +1723,26 @@ __export(list_exports6, {
1497
1723
  var list_defs_exports6 = {};
1498
1724
  __export(list_defs_exports6, {
1499
1725
  $lxm: () => $lxm23,
1500
- $nsid: () => $nsid29,
1726
+ $nsid: () => $nsid30,
1501
1727
  $output: () => $output23,
1502
1728
  $params: () => $params23,
1503
1729
  main: () => main29
1504
1730
  });
1505
- var import_lex29 = require("@atproto/lex");
1506
- var $nsid29 = "com.atiproto.feed.tip.list";
1507
- var main29 = import_lex29.l.query(
1508
- $nsid29,
1509
- import_lex29.l.params({
1510
- subject: import_lex29.l.optional(import_lex29.l.string({ format: "did" })),
1511
- recordUri: import_lex29.l.optional(import_lex29.l.string({ format: "at-uri" })),
1512
- cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 })),
1513
- limit: import_lex29.l.optional(
1514
- import_lex29.l.withDefault(import_lex29.l.integer({ minimum: 1, maximum: 100 }), 50)
1731
+ var import_lex30 = require("@atproto/lex");
1732
+ var $nsid30 = "com.atiproto.feed.tip.list";
1733
+ var main29 = import_lex30.l.query(
1734
+ $nsid30,
1735
+ import_lex30.l.params({
1736
+ subject: import_lex30.l.optional(import_lex30.l.string({ format: "did" })),
1737
+ recordUri: import_lex30.l.optional(import_lex30.l.string({ format: "at-uri" })),
1738
+ cursor: import_lex30.l.optional(import_lex30.l.string({ maxLength: 512 })),
1739
+ limit: import_lex30.l.optional(
1740
+ import_lex30.l.withDefault(import_lex30.l.integer({ minimum: 1, maximum: 100 }), 50)
1515
1741
  )
1516
1742
  }),
1517
- import_lex29.l.jsonPayload({
1518
- tips: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1519
- cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
1743
+ import_lex30.l.jsonPayload({
1744
+ tips: import_lex30.l.array(import_lex30.l.ref((() => view2))),
1745
+ cursor: import_lex30.l.optional(import_lex30.l.string({ maxLength: 512 }))
1520
1746
  })
1521
1747
  );
1522
1748
  var $lxm23 = main29.nsid;
@@ -1529,7 +1755,7 @@ __export(put_exports4, {
1529
1755
  $defs: () => put_defs_exports4,
1530
1756
  $input: () => $input9,
1531
1757
  $lxm: () => $lxm24,
1532
- $nsid: () => $nsid30,
1758
+ $nsid: () => $nsid31,
1533
1759
  $output: () => $output24,
1534
1760
  $params: () => $params24,
1535
1761
  main: () => main30
@@ -1540,23 +1766,33 @@ var put_defs_exports4 = {};
1540
1766
  __export(put_defs_exports4, {
1541
1767
  $input: () => $input9,
1542
1768
  $lxm: () => $lxm24,
1543
- $nsid: () => $nsid30,
1769
+ $nsid: () => $nsid31,
1544
1770
  $output: () => $output24,
1545
1771
  $params: () => $params24,
1546
1772
  main: () => main30
1547
1773
  });
1548
- var import_lex30 = require("@atproto/lex");
1549
- var $nsid30 = "com.atiproto.feed.tip.put";
1550
- var main30 = import_lex30.l.procedure(
1551
- $nsid30,
1552
- import_lex30.l.params(),
1553
- import_lex30.l.jsonPayload({
1554
- uri: import_lex30.l.string({ format: "at-uri" }),
1555
- record: import_lex30.l.ref((() => main2))
1774
+ var import_lex31 = require("@atproto/lex");
1775
+ var $nsid31 = "com.atiproto.feed.tip.put";
1776
+ var main30 = import_lex31.l.procedure(
1777
+ $nsid31,
1778
+ import_lex31.l.params(),
1779
+ import_lex31.l.jsonPayload({
1780
+ uri: import_lex31.l.string({ format: "at-uri" }),
1781
+ record: import_lex31.l.ref((() => main2)),
1782
+ workflow: import_lex31.l.optional(
1783
+ import_lex31.l.ref(
1784
+ (() => inboundWorkflow)
1785
+ )
1786
+ )
1556
1787
  }),
1557
- import_lex30.l.jsonPayload({
1558
- uri: import_lex30.l.string({ format: "at-uri" }),
1559
- cid: import_lex30.l.string({ format: "cid" })
1788
+ import_lex31.l.jsonPayload({
1789
+ workflow: import_lex31.l.optional(
1790
+ import_lex31.l.ref(
1791
+ (() => outboundWorkflow)
1792
+ )
1793
+ ),
1794
+ uri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1795
+ cid: import_lex31.l.optional(import_lex31.l.string({ format: "cid" }))
1560
1796
  })
1561
1797
  );
1562
1798
  var $lxm24 = main30.nsid;
@@ -1569,7 +1805,7 @@ var validate_exports4 = {};
1569
1805
  __export(validate_exports4, {
1570
1806
  $defs: () => validate_defs_exports4,
1571
1807
  $lxm: () => $lxm25,
1572
- $nsid: () => $nsid31,
1808
+ $nsid: () => $nsid32,
1573
1809
  $output: () => $output25,
1574
1810
  $params: () => $params25,
1575
1811
  main: () => main31
@@ -1579,26 +1815,26 @@ __export(validate_exports4, {
1579
1815
  var validate_defs_exports4 = {};
1580
1816
  __export(validate_defs_exports4, {
1581
1817
  $lxm: () => $lxm25,
1582
- $nsid: () => $nsid31,
1818
+ $nsid: () => $nsid32,
1583
1819
  $output: () => $output25,
1584
1820
  $params: () => $params25,
1585
1821
  main: () => main31
1586
1822
  });
1587
- var import_lex31 = require("@atproto/lex");
1588
- var $nsid31 = "com.atiproto.feed.tip.validate";
1589
- var main31 = import_lex31.l.query(
1590
- $nsid31,
1591
- import_lex31.l.params({
1592
- tipUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1593
- recordUri: import_lex31.l.optional(import_lex31.l.string({ format: "at-uri" })),
1594
- subject: import_lex31.l.optional(import_lex31.l.string({ format: "did" })),
1595
- amount: import_lex31.l.optional(import_lex31.l.integer())
1823
+ var import_lex32 = require("@atproto/lex");
1824
+ var $nsid32 = "com.atiproto.feed.tip.validate";
1825
+ var main31 = import_lex32.l.query(
1826
+ $nsid32,
1827
+ import_lex32.l.params({
1828
+ tipUri: import_lex32.l.optional(import_lex32.l.string({ format: "at-uri" })),
1829
+ recordUri: import_lex32.l.optional(import_lex32.l.string({ format: "at-uri" })),
1830
+ subject: import_lex32.l.optional(import_lex32.l.string({ format: "did" })),
1831
+ amount: import_lex32.l.optional(import_lex32.l.integer())
1596
1832
  }),
1597
- import_lex31.l.jsonPayload({
1598
- valid: import_lex31.l.boolean(),
1599
- amount: import_lex31.l.optional(import_lex31.l.integer()),
1600
- currency: import_lex31.l.optional(import_lex31.l.string({ maxLength: 3 })),
1601
- reason: import_lex31.l.optional(import_lex31.l.string({ maxLength: 1024 }))
1833
+ import_lex32.l.jsonPayload({
1834
+ valid: import_lex32.l.boolean(),
1835
+ amount: import_lex32.l.optional(import_lex32.l.integer()),
1836
+ currency: import_lex32.l.optional(import_lex32.l.string({ maxLength: 3 })),
1837
+ reason: import_lex32.l.optional(import_lex32.l.string({ maxLength: 1024 }))
1602
1838
  })
1603
1839
  );
1604
1840
  var $lxm25 = main31.nsid;
@@ -1616,7 +1852,7 @@ __export(profile_exports2, {
1616
1852
  $ifMatches: () => $ifMatches4,
1617
1853
  $isTypeOf: () => $isTypeOf4,
1618
1854
  $matches: () => $matches4,
1619
- $nsid: () => $nsid9,
1855
+ $nsid: () => $nsid10,
1620
1856
  $parse: () => $parse4,
1621
1857
  $safeParse: () => $safeParse4,
1622
1858
  $safeValidate: () => $safeValidate4,
@@ -1645,7 +1881,7 @@ var get_exports7 = {};
1645
1881
  __export(get_exports7, {
1646
1882
  $defs: () => get_defs_exports7,
1647
1883
  $lxm: () => $lxm26,
1648
- $nsid: () => $nsid32,
1884
+ $nsid: () => $nsid33,
1649
1885
  $output: () => $output26,
1650
1886
  $params: () => $params26,
1651
1887
  main: () => main32
@@ -1655,19 +1891,19 @@ __export(get_exports7, {
1655
1891
  var get_defs_exports7 = {};
1656
1892
  __export(get_defs_exports7, {
1657
1893
  $lxm: () => $lxm26,
1658
- $nsid: () => $nsid32,
1894
+ $nsid: () => $nsid33,
1659
1895
  $output: () => $output26,
1660
1896
  $params: () => $params26,
1661
1897
  main: () => main32
1662
1898
  });
1663
- var import_lex32 = require("@atproto/lex");
1664
- var $nsid32 = "com.atiproto.repo.profile.get";
1665
- var main32 = import_lex32.l.query(
1666
- $nsid32,
1667
- import_lex32.l.params({ did: import_lex32.l.string({ format: "did" }) }),
1668
- import_lex32.l.jsonPayload({
1669
- did: import_lex32.l.string({ format: "did" }),
1670
- profile: import_lex32.l.ref((() => view4))
1899
+ var import_lex33 = require("@atproto/lex");
1900
+ var $nsid33 = "com.atiproto.repo.profile.get";
1901
+ var main32 = import_lex33.l.query(
1902
+ $nsid33,
1903
+ import_lex33.l.params({ did: import_lex33.l.string({ format: "did" }) }),
1904
+ import_lex33.l.jsonPayload({
1905
+ did: import_lex33.l.string({ format: "did" }),
1906
+ profile: import_lex33.l.ref((() => view4))
1671
1907
  })
1672
1908
  );
1673
1909
  var $lxm26 = main32.nsid;
@@ -1685,7 +1921,7 @@ var count_exports = {};
1685
1921
  __export(count_exports, {
1686
1922
  $defs: () => count_defs_exports,
1687
1923
  $lxm: () => $lxm27,
1688
- $nsid: () => $nsid33,
1924
+ $nsid: () => $nsid34,
1689
1925
  $output: () => $output27,
1690
1926
  $params: () => $params27,
1691
1927
  main: () => main33
@@ -1695,24 +1931,24 @@ __export(count_exports, {
1695
1931
  var count_defs_exports = {};
1696
1932
  __export(count_defs_exports, {
1697
1933
  $lxm: () => $lxm27,
1698
- $nsid: () => $nsid33,
1934
+ $nsid: () => $nsid34,
1699
1935
  $output: () => $output27,
1700
1936
  $params: () => $params27,
1701
1937
  main: () => main33
1702
1938
  });
1703
- var import_lex33 = require("@atproto/lex");
1704
- var $nsid33 = "com.atiproto.repo.subscription.count";
1705
- var main33 = import_lex33.l.query(
1706
- $nsid33,
1707
- import_lex33.l.params({
1708
- subject: import_lex33.l.optional(import_lex33.l.string({ format: "did" })),
1709
- startDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" })),
1710
- endDate: import_lex33.l.optional(import_lex33.l.string({ format: "datetime" }))
1939
+ var import_lex34 = require("@atproto/lex");
1940
+ var $nsid34 = "com.atiproto.repo.subscription.count";
1941
+ var main33 = import_lex34.l.query(
1942
+ $nsid34,
1943
+ import_lex34.l.params({
1944
+ subject: import_lex34.l.optional(import_lex34.l.string({ format: "did" })),
1945
+ startDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" })),
1946
+ endDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" }))
1711
1947
  }),
1712
- import_lex33.l.jsonPayload({
1713
- count: import_lex33.l.integer(),
1714
- amount: import_lex33.l.optional(import_lex33.l.integer()),
1715
- currency: import_lex33.l.optional(import_lex33.l.string({ maxLength: 3 }))
1948
+ import_lex34.l.jsonPayload({
1949
+ count: import_lex34.l.integer(),
1950
+ amount: import_lex34.l.optional(import_lex34.l.integer()),
1951
+ currency: import_lex34.l.optional(import_lex34.l.string({ maxLength: 3 }))
1716
1952
  })
1717
1953
  );
1718
1954
  var $lxm27 = main33.nsid;
@@ -1730,7 +1966,7 @@ var count_exports2 = {};
1730
1966
  __export(count_exports2, {
1731
1967
  $defs: () => count_defs_exports2,
1732
1968
  $lxm: () => $lxm28,
1733
- $nsid: () => $nsid34,
1969
+ $nsid: () => $nsid35,
1734
1970
  $output: () => $output28,
1735
1971
  $params: () => $params28,
1736
1972
  main: () => main34
@@ -1740,25 +1976,25 @@ __export(count_exports2, {
1740
1976
  var count_defs_exports2 = {};
1741
1977
  __export(count_defs_exports2, {
1742
1978
  $lxm: () => $lxm28,
1743
- $nsid: () => $nsid34,
1979
+ $nsid: () => $nsid35,
1744
1980
  $output: () => $output28,
1745
1981
  $params: () => $params28,
1746
1982
  main: () => main34
1747
1983
  });
1748
- var import_lex34 = require("@atproto/lex");
1749
- var $nsid34 = "com.atiproto.repo.tip.count";
1750
- var main34 = import_lex34.l.query(
1751
- $nsid34,
1752
- import_lex34.l.params({
1753
- recordUri: import_lex34.l.optional(import_lex34.l.string({ format: "at-uri" })),
1754
- subject: import_lex34.l.optional(import_lex34.l.string({ format: "did" })),
1755
- startDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" })),
1756
- endDate: import_lex34.l.optional(import_lex34.l.string({ format: "datetime" }))
1984
+ var import_lex35 = require("@atproto/lex");
1985
+ var $nsid35 = "com.atiproto.repo.tip.count";
1986
+ var main34 = import_lex35.l.query(
1987
+ $nsid35,
1988
+ import_lex35.l.params({
1989
+ recordUri: import_lex35.l.optional(import_lex35.l.string({ format: "at-uri" })),
1990
+ subject: import_lex35.l.optional(import_lex35.l.string({ format: "did" })),
1991
+ startDate: import_lex35.l.optional(import_lex35.l.string({ format: "datetime" })),
1992
+ endDate: import_lex35.l.optional(import_lex35.l.string({ format: "datetime" }))
1757
1993
  }),
1758
- import_lex34.l.jsonPayload({
1759
- count: import_lex34.l.integer(),
1760
- amount: import_lex34.l.optional(import_lex34.l.integer()),
1761
- currency: import_lex34.l.optional(import_lex34.l.string({ maxLength: 3 }))
1994
+ import_lex35.l.jsonPayload({
1995
+ count: import_lex35.l.integer(),
1996
+ amount: import_lex35.l.optional(import_lex35.l.integer()),
1997
+ currency: import_lex35.l.optional(import_lex35.l.string({ maxLength: 3 }))
1762
1998
  })
1763
1999
  );
1764
2000
  var $lxm28 = main34.nsid;
@@ -1776,7 +2012,7 @@ __export(subscription_exports4, {
1776
2012
  $ifMatches: () => $ifMatches3,
1777
2013
  $isTypeOf: () => $isTypeOf3,
1778
2014
  $matches: () => $matches3,
1779
- $nsid: () => $nsid3,
2015
+ $nsid: () => $nsid4,
1780
2016
  $parse: () => $parse3,
1781
2017
  $safeParse: () => $safeParse3,
1782
2018
  $safeValidate: () => $safeValidate3,
@@ -1797,7 +2033,7 @@ __export(tip_exports4, {
1797
2033
  $ifMatches: () => $ifMatches2,
1798
2034
  $isTypeOf: () => $isTypeOf2,
1799
2035
  $matches: () => $matches2,
1800
- $nsid: () => $nsid2,
2036
+ $nsid: () => $nsid3,
1801
2037
  $parse: () => $parse2,
1802
2038
  $safeParse: () => $safeParse2,
1803
2039
  $safeValidate: () => $safeValidate2,
@@ -1807,6 +2043,215 @@ __export(tip_exports4, {
1807
2043
  view: () => view2
1808
2044
  });
1809
2045
 
2046
+ // src/schemas/actions.json
2047
+ var actions_default = {
2048
+ lexicon: 1,
2049
+ id: "com.atiproto.actions",
2050
+ description: "Workflow envelope shared between atiproto XRPC endpoints and the agent interpreter. The server emits an outboundWorkflow when it needs the agent to execute repo writes against the user's PDS; the agent runs the actions and calls back with an inboundWorkflow.",
2051
+ defs: {
2052
+ create: {
2053
+ type: "object",
2054
+ description: "Instructs the agent to call com.atproto.repo.createRecord on the user's PDS.",
2055
+ required: ["repo", "name", "collection", "record"],
2056
+ properties: {
2057
+ repo: {
2058
+ type: "string",
2059
+ format: "did",
2060
+ description: "DID of the repo to write to. The PDS auth check is the source of truth for whether the write is allowed."
2061
+ },
2062
+ name: {
2063
+ type: "string",
2064
+ maxLength: 64,
2065
+ description: "Server-assigned name for this action; echoed back on the corresponding response so the server can correlate."
2066
+ },
2067
+ collection: {
2068
+ type: "string",
2069
+ format: "nsid"
2070
+ },
2071
+ rkey: {
2072
+ type: "string",
2073
+ maxLength: 128,
2074
+ description: "Optional. When omitted (the default), the PDS generates the rkey and returns the resulting URI on the response. Server-assigned rkeys are reserved for fixed-rkey records like com.atiproto.profile/self."
2075
+ },
2076
+ record: {
2077
+ type: "unknown"
2078
+ }
2079
+ }
2080
+ },
2081
+ update: {
2082
+ type: "object",
2083
+ description: "Instructs the agent to call com.atproto.repo.putRecord on the user's PDS.",
2084
+ required: ["repo", "name", "collection", "rkey", "record"],
2085
+ properties: {
2086
+ repo: {
2087
+ type: "string",
2088
+ format: "did"
2089
+ },
2090
+ name: {
2091
+ type: "string",
2092
+ maxLength: 64
2093
+ },
2094
+ collection: {
2095
+ type: "string",
2096
+ format: "nsid"
2097
+ },
2098
+ rkey: {
2099
+ type: "string",
2100
+ maxLength: 128
2101
+ },
2102
+ record: {
2103
+ type: "unknown"
2104
+ },
2105
+ swapCommit: {
2106
+ type: "string",
2107
+ format: "cid"
2108
+ }
2109
+ }
2110
+ },
2111
+ delete: {
2112
+ type: "object",
2113
+ description: "Instructs the agent to call com.atproto.repo.deleteRecord on the user's PDS.",
2114
+ required: ["repo", "name", "collection", "rkey"],
2115
+ properties: {
2116
+ repo: {
2117
+ type: "string",
2118
+ format: "did"
2119
+ },
2120
+ name: {
2121
+ type: "string",
2122
+ maxLength: 64
2123
+ },
2124
+ collection: {
2125
+ type: "string",
2126
+ format: "nsid"
2127
+ },
2128
+ rkey: {
2129
+ type: "string",
2130
+ maxLength: 128
2131
+ },
2132
+ swapCommit: {
2133
+ type: "string",
2134
+ format: "cid"
2135
+ }
2136
+ }
2137
+ },
2138
+ raise: {
2139
+ type: "object",
2140
+ description: "Terminal action: the agent throws a WorkflowRaisedError carrying message and code. Subsequent actions in the same batch are not executed.",
2141
+ required: ["message"],
2142
+ properties: {
2143
+ message: {
2144
+ type: "string",
2145
+ maxLength: 1024
2146
+ },
2147
+ code: {
2148
+ type: "string",
2149
+ maxLength: 64
2150
+ }
2151
+ }
2152
+ },
2153
+ response: {
2154
+ type: "object",
2155
+ description: "Result of executing one action. Carries the verb (so the server can branch without inspecting result shape) plus the action name and the resulting record reference.",
2156
+ required: ["action", "name", "result"],
2157
+ properties: {
2158
+ action: {
2159
+ type: "string",
2160
+ maxLength: 32,
2161
+ knownValues: ["create", "update", "delete"]
2162
+ },
2163
+ name: {
2164
+ type: "string",
2165
+ maxLength: 64
2166
+ },
2167
+ result: {
2168
+ type: "ref",
2169
+ ref: "#recordResult"
2170
+ }
2171
+ }
2172
+ },
2173
+ recordResult: {
2174
+ type: "object",
2175
+ required: ["uri"],
2176
+ properties: {
2177
+ uri: {
2178
+ type: "string",
2179
+ format: "at-uri"
2180
+ },
2181
+ cid: {
2182
+ type: "string",
2183
+ format: "cid",
2184
+ description: "Present on create/update responses; absent on delete (the record is gone)."
2185
+ }
2186
+ }
2187
+ },
2188
+ error: {
2189
+ type: "object",
2190
+ description: "Populated by the agent when an action fails. The server's error branch uses this to construct compensating actions and a final raise.",
2191
+ required: ["action", "message"],
2192
+ properties: {
2193
+ action: {
2194
+ type: "string",
2195
+ maxLength: 32,
2196
+ description: "The verb of the action that failed (create/update/delete)."
2197
+ },
2198
+ name: {
2199
+ type: "string",
2200
+ maxLength: 64
2201
+ },
2202
+ message: {
2203
+ type: "string",
2204
+ maxLength: 1024
2205
+ },
2206
+ code: {
2207
+ type: "string",
2208
+ maxLength: 64
2209
+ }
2210
+ }
2211
+ },
2212
+ inboundWorkflow: {
2213
+ type: "object",
2214
+ description: `Agent \u2192 server callback envelope. Echoes the server's intent verbatim, except when the agent overrides to "error" after an action failure.`,
2215
+ required: ["intent", "responses"],
2216
+ properties: {
2217
+ intent: {
2218
+ type: "string",
2219
+ maxLength: 64
2220
+ },
2221
+ responses: {
2222
+ type: "array",
2223
+ items: {
2224
+ type: "ref",
2225
+ ref: "#response"
2226
+ }
2227
+ },
2228
+ error: {
2229
+ type: "ref",
2230
+ ref: "#error"
2231
+ }
2232
+ }
2233
+ },
2234
+ outboundWorkflow: {
2235
+ type: "object",
2236
+ description: "Server \u2192 agent envelope. Server-defined intent string acts as a phase marker; the agent treats it as opaque. Each item in `actions` is discriminated by `$type` against `#create` / `#update` / `#delete` / `#raise`.",
2237
+ required: ["intent", "actions"],
2238
+ properties: {
2239
+ intent: {
2240
+ type: "string",
2241
+ maxLength: 64
2242
+ },
2243
+ actions: {
2244
+ type: "array",
2245
+ items: {
2246
+ type: "union",
2247
+ refs: ["#create", "#update", "#delete", "#raise"]
2248
+ }
2249
+ }
2250
+ }
2251
+ }
2252
+ }
2253
+ };
2254
+
1810
2255
  // src/schemas/account/cart/clone.json
1811
2256
  var clone_default = {
1812
2257
  lexicon: 1,
@@ -1830,6 +2275,11 @@ var clone_default = {
1830
2275
  type: "string",
1831
2276
  format: "uri",
1832
2277
  description: "URI to redirect to after checkout is complete/cancelled"
2278
+ },
2279
+ workflow: {
2280
+ type: "ref",
2281
+ ref: "com.atiproto.actions#inboundWorkflow",
2282
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
1833
2283
  }
1834
2284
  }
1835
2285
  }
@@ -1838,14 +2288,12 @@ var clone_default = {
1838
2288
  encoding: "application/json",
1839
2289
  schema: {
1840
2290
  type: "object",
1841
- required: [
1842
- "cart",
1843
- "cartUri",
1844
- "checkoutUrl",
1845
- "tips",
1846
- "subscriptions"
1847
- ],
1848
2291
  properties: {
2292
+ workflow: {
2293
+ type: "ref",
2294
+ ref: "com.atiproto.actions#outboundWorkflow",
2295
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
2296
+ },
1849
2297
  cart: {
1850
2298
  type: "ref",
1851
2299
  ref: "com.atiproto.cart#view",
@@ -1907,6 +2355,11 @@ var create_default = {
1907
2355
  type: "string",
1908
2356
  format: "uri",
1909
2357
  description: "URI to redirect to after checkout is complete/cancelled"
2358
+ },
2359
+ workflow: {
2360
+ type: "ref",
2361
+ ref: "com.atiproto.actions#inboundWorkflow",
2362
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
1910
2363
  }
1911
2364
  }
1912
2365
  }
@@ -1915,8 +2368,12 @@ var create_default = {
1915
2368
  encoding: "application/json",
1916
2369
  schema: {
1917
2370
  type: "object",
1918
- required: ["cart", "cartUri", "checkoutUrl"],
1919
2371
  properties: {
2372
+ workflow: {
2373
+ type: "ref",
2374
+ ref: "com.atiproto.actions#outboundWorkflow",
2375
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
2376
+ },
1920
2377
  cart: {
1921
2378
  type: "ref",
1922
2379
  ref: "com.atiproto.cart#view",
@@ -2105,6 +2562,11 @@ var put_default = {
2105
2562
  record: {
2106
2563
  type: "ref",
2107
2564
  ref: "com.atiproto.cart"
2565
+ },
2566
+ workflow: {
2567
+ type: "ref",
2568
+ ref: "com.atiproto.actions#inboundWorkflow",
2569
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
2108
2570
  }
2109
2571
  }
2110
2572
  }
@@ -2113,8 +2575,12 @@ var put_default = {
2113
2575
  encoding: "application/json",
2114
2576
  schema: {
2115
2577
  type: "object",
2116
- required: ["uri", "cid"],
2117
2578
  properties: {
2579
+ workflow: {
2580
+ type: "ref",
2581
+ ref: "com.atiproto.actions#outboundWorkflow",
2582
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
2583
+ },
2118
2584
  uri: {
2119
2585
  type: "string",
2120
2586
  format: "at-uri",
@@ -2200,6 +2666,11 @@ var put_default2 = {
2200
2666
  disableReceiptNotifications: {
2201
2667
  type: "boolean",
2202
2668
  description: "Opt out of payment receipt DMs"
2669
+ },
2670
+ workflow: {
2671
+ type: "ref",
2672
+ ref: "com.atiproto.actions#inboundWorkflow",
2673
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
2203
2674
  }
2204
2675
  }
2205
2676
  }
@@ -2208,14 +2679,12 @@ var put_default2 = {
2208
2679
  encoding: "application/json",
2209
2680
  schema: {
2210
2681
  type: "object",
2211
- required: [
2212
- "uri",
2213
- "cid",
2214
- "profile",
2215
- "hasProfile",
2216
- "readyForPayment"
2217
- ],
2218
2682
  properties: {
2683
+ workflow: {
2684
+ type: "ref",
2685
+ ref: "com.atiproto.actions#outboundWorkflow",
2686
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
2687
+ },
2219
2688
  uri: {
2220
2689
  type: "string",
2221
2690
  format: "at-uri",
@@ -2736,7 +3205,10 @@ var list_default4 = {
2736
3205
  type: "array",
2737
3206
  items: {
2738
3207
  type: "union",
2739
- refs: ["com.atiproto.tip", "com.atiproto.subscription"]
3208
+ refs: [
3209
+ "com.atiproto.tip#view",
3210
+ "com.atiproto.subscription#view"
3211
+ ]
2740
3212
  }
2741
3213
  },
2742
3214
  cursor: {
@@ -2769,6 +3241,11 @@ var cancel_default = {
2769
3241
  type: "string",
2770
3242
  format: "at-uri",
2771
3243
  description: "AT-URI of the subscription to cancel"
3244
+ },
3245
+ workflow: {
3246
+ type: "ref",
3247
+ ref: "com.atiproto.actions#inboundWorkflow",
3248
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
2772
3249
  }
2773
3250
  }
2774
3251
  }
@@ -2777,8 +3254,12 @@ var cancel_default = {
2777
3254
  encoding: "application/json",
2778
3255
  schema: {
2779
3256
  type: "object",
2780
- required: ["subscriptionUri", "subscription", "accessUntil"],
2781
3257
  properties: {
3258
+ workflow: {
3259
+ type: "ref",
3260
+ ref: "com.atiproto.actions#outboundWorkflow",
3261
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
3262
+ },
2782
3263
  subscriptionUri: {
2783
3264
  type: "string",
2784
3265
  format: "at-uri",
@@ -2803,91 +3284,100 @@ var cancel_default = {
2803
3284
 
2804
3285
  // src/schemas/feed/subscription/create.json
2805
3286
  var create_default2 = {
3287
+ lexicon: 1,
3288
+ id: "com.atiproto.feed.subscription.create",
2806
3289
  defs: {
2807
3290
  main: {
3291
+ type: "procedure",
2808
3292
  description: "Create a subscription to a user. Returns a one-off cart with checkout URL.",
2809
3293
  input: {
2810
3294
  encoding: "application/json",
2811
3295
  schema: {
3296
+ type: "object",
3297
+ required: ["subject", "currency", "interval"],
2812
3298
  properties: {
2813
3299
  subject: {
2814
- description: "DID of the user to subscribe to",
3300
+ type: "string",
2815
3301
  format: "did",
2816
- type: "string"
3302
+ description: "DID of the user to subscribe to"
2817
3303
  },
2818
3304
  amount: {
2819
- description: "Custom amount in cents (if pay-as-you-want enabled)",
2820
- type: "integer"
3305
+ type: "integer",
3306
+ description: "Custom amount in cents (if pay-as-you-want enabled)"
2821
3307
  },
2822
3308
  currency: {
2823
- description: "ISO 4217 currency code",
3309
+ type: "string",
2824
3310
  maxLength: 3,
2825
- type: "string"
3311
+ description: "ISO 4217 currency code"
2826
3312
  },
2827
3313
  interval: {
2828
- description: "Billing interval",
3314
+ type: "string",
2829
3315
  maxLength: 64,
2830
3316
  enum: ["monthly", "yearly"],
2831
- type: "string"
3317
+ description: "Billing interval"
2832
3318
  },
2833
3319
  cartUri: {
2834
- description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created.",
3320
+ type: "string",
2835
3321
  format: "at-uri",
2836
- type: "string"
3322
+ description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created."
2837
3323
  },
2838
3324
  redirectUrl: {
2839
- description: "URL to redirect to after checkout completes",
3325
+ type: "string",
2840
3326
  format: "uri",
2841
- type: "string"
3327
+ description: "URL to redirect to after checkout completes"
2842
3328
  },
2843
3329
  isPrivate: {
2844
- description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record.",
2845
- type: "boolean"
3330
+ type: "boolean",
3331
+ description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record."
3332
+ },
3333
+ workflow: {
3334
+ type: "ref",
3335
+ ref: "com.atiproto.actions#inboundWorkflow",
3336
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
2846
3337
  }
2847
- },
2848
- required: ["subject", "currency", "interval"],
2849
- type: "object"
3338
+ }
2850
3339
  }
2851
3340
  },
2852
3341
  output: {
2853
3342
  encoding: "application/json",
2854
3343
  schema: {
3344
+ type: "object",
2855
3345
  properties: {
3346
+ workflow: {
3347
+ type: "ref",
3348
+ ref: "com.atiproto.actions#outboundWorkflow",
3349
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
3350
+ },
2856
3351
  subscriptionUri: {
2857
- description: "URI of the subscription record in PDS",
3352
+ type: "string",
2858
3353
  format: "at-uri",
2859
- type: "string"
3354
+ description: "URI of the subscription record in PDS"
2860
3355
  },
2861
3356
  subscription: {
2862
- description: "The created subscription record (status: pending)",
2863
3357
  type: "ref",
2864
- ref: "com.atiproto.subscription#view"
3358
+ ref: "com.atiproto.subscription#view",
3359
+ description: "The created subscription record (status: pending)"
2865
3360
  },
2866
3361
  cartUri: {
2867
- description: "URI of the cart record in PDS",
3362
+ type: "string",
2868
3363
  format: "at-uri",
2869
- type: "string"
3364
+ description: "URI of the cart record in PDS"
2870
3365
  },
2871
3366
  cart: {
2872
- description: "The created cart record (status: open)",
2873
3367
  type: "ref",
2874
- ref: "com.atiproto.cart#view"
3368
+ ref: "com.atiproto.cart#view",
3369
+ description: "The created cart record (status: open)"
2875
3370
  },
2876
3371
  checkoutUrl: {
2877
- description: "Checkout URL hosted by atiproto",
3372
+ type: "string",
2878
3373
  format: "uri",
2879
- type: "string"
3374
+ description: "Checkout URL hosted by atiproto"
2880
3375
  }
2881
- },
2882
- required: ["subscriptionUri", "subscription"],
2883
- type: "object"
3376
+ }
2884
3377
  }
2885
- },
2886
- type: "procedure"
3378
+ }
2887
3379
  }
2888
- },
2889
- id: "com.atiproto.feed.subscription.create",
2890
- lexicon: 1
3380
+ }
2891
3381
  };
2892
3382
 
2893
3383
  // src/schemas/feed/subscription/get.json
@@ -3003,6 +3493,11 @@ var put_default3 = {
3003
3493
  record: {
3004
3494
  type: "ref",
3005
3495
  ref: "com.atiproto.subscription"
3496
+ },
3497
+ workflow: {
3498
+ type: "ref",
3499
+ ref: "com.atiproto.actions#inboundWorkflow",
3500
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
3006
3501
  }
3007
3502
  }
3008
3503
  }
@@ -3011,8 +3506,12 @@ var put_default3 = {
3011
3506
  encoding: "application/json",
3012
3507
  schema: {
3013
3508
  type: "object",
3014
- required: ["uri", "cid"],
3015
3509
  properties: {
3510
+ workflow: {
3511
+ type: "ref",
3512
+ ref: "com.atiproto.actions#outboundWorkflow",
3513
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
3514
+ },
3016
3515
  uri: {
3017
3516
  type: "string",
3018
3517
  format: "at-uri",
@@ -3140,6 +3639,11 @@ var create_default3 = {
3140
3639
  isPrivate: {
3141
3640
  type: "boolean",
3142
3641
  description: "If true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS tip record."
3642
+ },
3643
+ workflow: {
3644
+ type: "ref",
3645
+ ref: "com.atiproto.actions#inboundWorkflow",
3646
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
3143
3647
  }
3144
3648
  }
3145
3649
  }
@@ -3148,8 +3652,12 @@ var create_default3 = {
3148
3652
  encoding: "application/json",
3149
3653
  schema: {
3150
3654
  type: "object",
3151
- required: ["tipUri", "tip"],
3152
3655
  properties: {
3656
+ workflow: {
3657
+ type: "ref",
3658
+ ref: "com.atiproto.actions#outboundWorkflow",
3659
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
3660
+ },
3153
3661
  tipUri: {
3154
3662
  type: "string",
3155
3663
  format: "at-uri",
@@ -3310,6 +3818,11 @@ var put_default4 = {
3310
3818
  record: {
3311
3819
  type: "ref",
3312
3820
  ref: "com.atiproto.tip"
3821
+ },
3822
+ workflow: {
3823
+ type: "ref",
3824
+ ref: "com.atiproto.actions#inboundWorkflow",
3825
+ description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
3313
3826
  }
3314
3827
  }
3315
3828
  }
@@ -3318,8 +3831,12 @@ var put_default4 = {
3318
3831
  encoding: "application/json",
3319
3832
  schema: {
3320
3833
  type: "object",
3321
- required: ["uri", "cid"],
3322
3834
  properties: {
3835
+ workflow: {
3836
+ type: "ref",
3837
+ ref: "com.atiproto.actions#outboundWorkflow",
3838
+ description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
3839
+ },
3323
3840
  uri: {
3324
3841
  type: "string",
3325
3842
  format: "at-uri",
@@ -4005,6 +4522,7 @@ var tip_default = {
4005
4522
 
4006
4523
  // src/schemas.ts
4007
4524
  var schemas = [
4525
+ actions_default,
4008
4526
  clone_default,
4009
4527
  create_default,
4010
4528
  get_default,