@atiproto/lexicons 0.7.2 → 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 +1109 -594
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1109 -594
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/actions.d.ts +2 -0
- package/dist/lexicons/com/atiproto/actions.defs.d.ts +120 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +27 -27
- package/dist/lexicons/com/atiproto.d.ts +1 -0
- package/package.json +1 -1
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: () => $
|
|
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: () => $
|
|
85
|
+
$nsid: () => $nsid5,
|
|
85
86
|
$output: () => $output,
|
|
86
87
|
$params: () => $params,
|
|
87
88
|
main: () => main4
|
|
88
89
|
});
|
|
89
|
-
var
|
|
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: () => $
|
|
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
|
|
112
|
-
var $
|
|
113
|
-
var main =
|
|
225
|
+
var import_lex2 = require("@atproto/lex");
|
|
226
|
+
var $nsid2 = "com.atiproto.cart";
|
|
227
|
+
var main = import_lex2.l.record(
|
|
114
228
|
"any",
|
|
115
|
-
$
|
|
116
|
-
|
|
117
|
-
items:
|
|
118
|
-
currency:
|
|
119
|
-
total:
|
|
120
|
-
status:
|
|
121
|
-
createdAt:
|
|
122
|
-
expiresAt:
|
|
123
|
-
completedAt:
|
|
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 =
|
|
139
|
-
$
|
|
252
|
+
var view = import_lex2.l.typedObject(
|
|
253
|
+
$nsid2,
|
|
140
254
|
"view",
|
|
141
|
-
|
|
142
|
-
uri:
|
|
143
|
-
items:
|
|
144
|
-
currency:
|
|
145
|
-
total:
|
|
146
|
-
status:
|
|
147
|
-
createdAt:
|
|
148
|
-
expiresAt:
|
|
149
|
-
completedAt:
|
|
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 =
|
|
153
|
-
$
|
|
266
|
+
var cartItem = import_lex2.l.typedObject(
|
|
267
|
+
$nsid2,
|
|
154
268
|
"cartItem",
|
|
155
|
-
|
|
156
|
-
type:
|
|
157
|
-
recordUri:
|
|
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: () => $
|
|
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
|
|
181
|
-
var $
|
|
182
|
-
var main2 =
|
|
294
|
+
var import_lex3 = require("@atproto/lex");
|
|
295
|
+
var $nsid3 = "com.atiproto.tip";
|
|
296
|
+
var main2 = import_lex3.l.record(
|
|
183
297
|
"any",
|
|
184
|
-
$
|
|
185
|
-
|
|
186
|
-
subject:
|
|
187
|
-
recordUri:
|
|
188
|
-
amount:
|
|
189
|
-
currency:
|
|
190
|
-
status:
|
|
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:
|
|
198
|
-
createdAt:
|
|
199
|
-
completedAt:
|
|
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 =
|
|
215
|
-
$
|
|
328
|
+
var view2 = import_lex3.l.typedObject(
|
|
329
|
+
$nsid3,
|
|
216
330
|
"view",
|
|
217
|
-
|
|
218
|
-
uri:
|
|
219
|
-
subject:
|
|
220
|
-
recordUri:
|
|
221
|
-
amount:
|
|
222
|
-
currency:
|
|
223
|
-
status:
|
|
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:
|
|
231
|
-
createdAt:
|
|
232
|
-
completedAt:
|
|
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: () => $
|
|
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
|
|
256
|
-
var $
|
|
257
|
-
var main3 =
|
|
369
|
+
var import_lex4 = require("@atproto/lex");
|
|
370
|
+
var $nsid4 = "com.atiproto.subscription";
|
|
371
|
+
var main3 = import_lex4.l.record(
|
|
258
372
|
"any",
|
|
259
|
-
$
|
|
260
|
-
|
|
261
|
-
subject:
|
|
262
|
-
amount:
|
|
263
|
-
currency:
|
|
264
|
-
interval:
|
|
265
|
-
status:
|
|
266
|
-
billingStartDate:
|
|
267
|
-
cancelledAt:
|
|
268
|
-
accessUntil:
|
|
269
|
-
createdAt:
|
|
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 =
|
|
285
|
-
$
|
|
398
|
+
var view3 = import_lex4.l.typedObject(
|
|
399
|
+
$nsid4,
|
|
286
400
|
"view",
|
|
287
|
-
|
|
288
|
-
uri:
|
|
289
|
-
subject:
|
|
290
|
-
amount:
|
|
291
|
-
currency:
|
|
292
|
-
interval:
|
|
293
|
-
status:
|
|
294
|
-
billingStartDate:
|
|
295
|
-
cancelledAt:
|
|
296
|
-
accessUntil:
|
|
297
|
-
createdAt:
|
|
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 $
|
|
303
|
-
var main4 =
|
|
304
|
-
$
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
uri:
|
|
308
|
-
redirectUrl:
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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: () => $
|
|
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: () => $
|
|
474
|
+
$nsid: () => $nsid6,
|
|
345
475
|
$output: () => $output2,
|
|
346
476
|
$params: () => $params2,
|
|
347
477
|
main: () => main5
|
|
348
478
|
});
|
|
349
|
-
var
|
|
350
|
-
var $
|
|
351
|
-
var main5 =
|
|
352
|
-
$
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
currency:
|
|
356
|
-
redirectUrl:
|
|
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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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: () => $
|
|
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: () => $
|
|
526
|
+
$nsid: () => $nsid7,
|
|
385
527
|
$output: () => $output3,
|
|
386
528
|
$params: () => $params3,
|
|
387
529
|
main: () => main6
|
|
388
530
|
});
|
|
389
|
-
var
|
|
390
|
-
var $
|
|
391
|
-
var main6 =
|
|
392
|
-
$
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
uri:
|
|
396
|
-
cid:
|
|
397
|
-
cart:
|
|
398
|
-
checkoutUrl:
|
|
399
|
-
tips:
|
|
400
|
-
subscriptions:
|
|
401
|
-
|
|
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: () => $
|
|
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: () => $
|
|
569
|
+
$nsid: () => $nsid8,
|
|
428
570
|
$output: () => $output4,
|
|
429
571
|
$params: () => $params4,
|
|
430
572
|
cartResponse: () => cartResponse,
|
|
431
573
|
main: () => main7
|
|
432
574
|
});
|
|
433
|
-
var
|
|
434
|
-
var $
|
|
435
|
-
var main7 =
|
|
436
|
-
$
|
|
437
|
-
|
|
438
|
-
status:
|
|
439
|
-
cursor:
|
|
440
|
-
limit:
|
|
441
|
-
|
|
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
|
-
|
|
445
|
-
carts:
|
|
446
|
-
cursor:
|
|
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 =
|
|
453
|
-
$
|
|
594
|
+
var cartResponse = import_lex8.l.typedObject(
|
|
595
|
+
$nsid8,
|
|
454
596
|
"cartResponse",
|
|
455
|
-
|
|
456
|
-
uri:
|
|
457
|
-
cid:
|
|
458
|
-
record:
|
|
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: () => $
|
|
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: () => $
|
|
621
|
+
$nsid: () => $nsid9,
|
|
480
622
|
$output: () => $output5,
|
|
481
623
|
$params: () => $params5,
|
|
482
624
|
main: () => main8
|
|
483
625
|
});
|
|
484
|
-
var
|
|
485
|
-
var $
|
|
486
|
-
var main8 =
|
|
487
|
-
$
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
uri:
|
|
491
|
-
record:
|
|
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
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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: () => $
|
|
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: () => $
|
|
677
|
+
$nsid: () => $nsid11,
|
|
526
678
|
$output: () => $output6,
|
|
527
679
|
$params: () => $params6,
|
|
528
680
|
main: () => main10
|
|
529
681
|
});
|
|
530
|
-
var
|
|
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: () => $
|
|
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
|
|
552
|
-
var $
|
|
553
|
-
var main9 =
|
|
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
|
-
$
|
|
556
|
-
|
|
557
|
-
acceptsTips:
|
|
558
|
-
acceptsSubscriptions:
|
|
559
|
-
disableReceiptNotifications:
|
|
560
|
-
createdAt:
|
|
561
|
-
updatedAt:
|
|
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 =
|
|
577
|
-
$
|
|
728
|
+
var view4 = import_lex10.l.typedObject(
|
|
729
|
+
$nsid10,
|
|
578
730
|
"view",
|
|
579
|
-
|
|
580
|
-
uri:
|
|
581
|
-
acceptsTips:
|
|
582
|
-
acceptsSubscriptions:
|
|
583
|
-
disableReceiptNotifications:
|
|
584
|
-
createdAt:
|
|
585
|
-
updatedAt:
|
|
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 $
|
|
591
|
-
var main10 =
|
|
592
|
-
$
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
uri:
|
|
596
|
-
cid:
|
|
597
|
-
profile:
|
|
598
|
-
hasProfile:
|
|
599
|
-
readyForPayment:
|
|
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: () => $
|
|
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: () => $
|
|
775
|
+
$nsid: () => $nsid12,
|
|
624
776
|
$output: () => $output7,
|
|
625
777
|
$params: () => $params7,
|
|
626
778
|
main: () => main11
|
|
627
779
|
});
|
|
628
|
-
var
|
|
629
|
-
var $
|
|
630
|
-
var main11 =
|
|
631
|
-
$
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
acceptsTips:
|
|
635
|
-
acceptsSubscriptions:
|
|
636
|
-
disableReceiptNotifications:
|
|
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
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
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: () => $
|
|
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: () => $
|
|
838
|
+
$nsid: () => $nsid13,
|
|
675
839
|
$output: () => $output8,
|
|
676
840
|
$params: () => $params8,
|
|
677
841
|
main: () => main12
|
|
678
842
|
});
|
|
679
|
-
var
|
|
680
|
-
var $
|
|
681
|
-
var main12 =
|
|
682
|
-
$
|
|
683
|
-
|
|
684
|
-
uri:
|
|
685
|
-
sender:
|
|
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
|
-
|
|
688
|
-
subscription:
|
|
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: () => $
|
|
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: () => $
|
|
876
|
+
$nsid: () => $nsid14,
|
|
713
877
|
$output: () => $output9,
|
|
714
878
|
$params: () => $params9,
|
|
715
879
|
main: () => main13
|
|
716
880
|
});
|
|
717
|
-
var
|
|
718
|
-
var $
|
|
719
|
-
var main13 =
|
|
720
|
-
$
|
|
721
|
-
|
|
722
|
-
cursor:
|
|
723
|
-
limit:
|
|
724
|
-
|
|
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
|
-
|
|
728
|
-
subscriptions:
|
|
729
|
-
|
|
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:
|
|
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: () => $
|
|
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: () => $
|
|
919
|
+
$nsid: () => $nsid15,
|
|
756
920
|
$output: () => $output10,
|
|
757
921
|
$params: () => $params10,
|
|
758
922
|
main: () => main14
|
|
759
923
|
});
|
|
760
|
-
var
|
|
761
|
-
var $
|
|
762
|
-
var main14 =
|
|
763
|
-
$
|
|
764
|
-
|
|
765
|
-
subscriptionUri:
|
|
766
|
-
sender:
|
|
767
|
-
amount:
|
|
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
|
-
|
|
770
|
-
valid:
|
|
771
|
-
amount:
|
|
772
|
-
currency:
|
|
773
|
-
reason:
|
|
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: () => $
|
|
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: () => $
|
|
967
|
+
$nsid: () => $nsid16,
|
|
804
968
|
$output: () => $output11,
|
|
805
969
|
$params: () => $params11,
|
|
806
970
|
main: () => main15
|
|
807
971
|
});
|
|
808
|
-
var
|
|
809
|
-
var $
|
|
810
|
-
var main15 =
|
|
811
|
-
$
|
|
812
|
-
|
|
813
|
-
uri:
|
|
814
|
-
sender:
|
|
815
|
-
recordUri:
|
|
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
|
-
|
|
818
|
-
tip:
|
|
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: () => $
|
|
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: () => $
|
|
1004
|
+
$nsid: () => $nsid17,
|
|
841
1005
|
$output: () => $output12,
|
|
842
1006
|
$params: () => $params12,
|
|
843
1007
|
main: () => main16
|
|
844
1008
|
});
|
|
845
|
-
var
|
|
846
|
-
var $
|
|
847
|
-
var main16 =
|
|
848
|
-
$
|
|
849
|
-
|
|
850
|
-
sender:
|
|
851
|
-
recordUri:
|
|
852
|
-
cursor:
|
|
853
|
-
limit:
|
|
854
|
-
|
|
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
|
-
|
|
858
|
-
tips:
|
|
859
|
-
cursor:
|
|
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: () => $
|
|
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: () => $
|
|
1045
|
+
$nsid: () => $nsid18,
|
|
882
1046
|
$output: () => $output13,
|
|
883
1047
|
$params: () => $params13,
|
|
884
1048
|
main: () => main17
|
|
885
1049
|
});
|
|
886
|
-
var
|
|
887
|
-
var $
|
|
888
|
-
var main17 =
|
|
889
|
-
$
|
|
890
|
-
|
|
891
|
-
tipUri:
|
|
892
|
-
recordUri:
|
|
893
|
-
sender:
|
|
894
|
-
amount:
|
|
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
|
-
|
|
897
|
-
valid:
|
|
898
|
-
amount:
|
|
899
|
-
currency:
|
|
900
|
-
reason:
|
|
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: () => $
|
|
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: () => $
|
|
1098
|
+
$nsid: () => $nsid19,
|
|
919
1099
|
main: () => main18
|
|
920
1100
|
});
|
|
921
|
-
var
|
|
922
|
-
var $
|
|
923
|
-
var main18 =
|
|
924
|
-
$
|
|
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
|
-
|
|
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
|
-
|
|
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: () => $
|
|
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: () => $
|
|
1165
|
+
$nsid: () => $nsid20,
|
|
986
1166
|
main: () => main19
|
|
987
1167
|
});
|
|
988
|
-
var
|
|
989
|
-
var $
|
|
990
|
-
var main19 =
|
|
991
|
-
$
|
|
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
|
-
|
|
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
|
-
|
|
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: () => $
|
|
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: () => $
|
|
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: () => $
|
|
1263
|
+
$nsid: () => $nsid21,
|
|
1084
1264
|
$output: () => $output14,
|
|
1085
1265
|
$params: () => $params14,
|
|
1086
1266
|
main: () => main20
|
|
1087
1267
|
});
|
|
1088
|
-
var
|
|
1089
|
-
var $
|
|
1090
|
-
var main20 =
|
|
1091
|
-
$
|
|
1092
|
-
|
|
1093
|
-
cursor:
|
|
1094
|
-
limit:
|
|
1095
|
-
|
|
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
|
-
|
|
1099
|
-
items:
|
|
1100
|
-
|
|
1278
|
+
import_lex21.l.jsonPayload({
|
|
1279
|
+
items: import_lex21.l.array(
|
|
1280
|
+
import_lex21.l.typedUnion(
|
|
1101
1281
|
[
|
|
1102
|
-
|
|
1103
|
-
|
|
1282
|
+
import_lex21.l.typedRef((() => view2)),
|
|
1283
|
+
import_lex21.l.typedRef(
|
|
1104
1284
|
(() => view3)
|
|
1105
1285
|
)
|
|
1106
1286
|
],
|
|
1107
1287
|
false
|
|
1108
1288
|
)
|
|
1109
1289
|
),
|
|
1110
|
-
cursor:
|
|
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: () => $
|
|
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: () => $
|
|
1325
|
+
$nsid: () => $nsid22,
|
|
1146
1326
|
$output: () => $output15,
|
|
1147
1327
|
$params: () => $params15,
|
|
1148
1328
|
main: () => main21
|
|
1149
1329
|
});
|
|
1150
|
-
var
|
|
1151
|
-
var $
|
|
1152
|
-
var main21 =
|
|
1153
|
-
$
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
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
|
-
|
|
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: () => $
|
|
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: () => $
|
|
1380
|
+
$nsid: () => $nsid23,
|
|
1187
1381
|
$output: () => $output16,
|
|
1188
1382
|
$params: () => $params16,
|
|
1189
1383
|
main: () => main22
|
|
1190
1384
|
});
|
|
1191
|
-
var
|
|
1192
|
-
var $
|
|
1193
|
-
var main22 =
|
|
1194
|
-
$
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
subject:
|
|
1198
|
-
amount:
|
|
1199
|
-
currency:
|
|
1200
|
-
interval:
|
|
1201
|
-
cartUri:
|
|
1202
|
-
redirectUrl:
|
|
1203
|
-
isPrivate:
|
|
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
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
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:
|
|
1211
|
-
cart:
|
|
1212
|
-
|
|
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:
|
|
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: () => $
|
|
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: () => $
|
|
1443
|
+
$nsid: () => $nsid24,
|
|
1238
1444
|
$output: () => $output17,
|
|
1239
1445
|
$params: () => $params17,
|
|
1240
1446
|
main: () => main23
|
|
1241
1447
|
});
|
|
1242
|
-
var
|
|
1243
|
-
var $
|
|
1244
|
-
var main23 =
|
|
1245
|
-
$
|
|
1246
|
-
|
|
1247
|
-
uri:
|
|
1248
|
-
subject:
|
|
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
|
-
|
|
1251
|
-
subscription:
|
|
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: () => $
|
|
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: () => $
|
|
1481
|
+
$nsid: () => $nsid25,
|
|
1276
1482
|
$output: () => $output18,
|
|
1277
1483
|
$params: () => $params18,
|
|
1278
1484
|
main: () => main24
|
|
1279
1485
|
});
|
|
1280
|
-
var
|
|
1281
|
-
var $
|
|
1282
|
-
var main24 =
|
|
1283
|
-
$
|
|
1284
|
-
|
|
1285
|
-
cursor:
|
|
1286
|
-
limit:
|
|
1287
|
-
|
|
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
|
-
|
|
1291
|
-
subscriptions:
|
|
1292
|
-
|
|
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:
|
|
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: () => $
|
|
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: () => $
|
|
1526
|
+
$nsid: () => $nsid26,
|
|
1321
1527
|
$output: () => $output19,
|
|
1322
1528
|
$params: () => $params19,
|
|
1323
1529
|
main: () => main25
|
|
1324
1530
|
});
|
|
1325
|
-
var
|
|
1326
|
-
var $
|
|
1327
|
-
var main25 =
|
|
1328
|
-
$
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
uri:
|
|
1332
|
-
record:
|
|
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
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
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: () => $
|
|
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: () => $
|
|
1577
|
+
$nsid: () => $nsid27,
|
|
1362
1578
|
$output: () => $output20,
|
|
1363
1579
|
$params: () => $params20,
|
|
1364
1580
|
main: () => main26
|
|
1365
1581
|
});
|
|
1366
|
-
var
|
|
1367
|
-
var $
|
|
1368
|
-
var main26 =
|
|
1369
|
-
$
|
|
1370
|
-
|
|
1371
|
-
subscriptionUri:
|
|
1372
|
-
subject:
|
|
1373
|
-
amount:
|
|
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
|
-
|
|
1376
|
-
valid:
|
|
1377
|
-
amount:
|
|
1378
|
-
currency:
|
|
1379
|
-
reason:
|
|
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: () => $
|
|
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: () => $
|
|
1629
|
+
$nsid: () => $nsid28,
|
|
1414
1630
|
$output: () => $output21,
|
|
1415
1631
|
$params: () => $params21,
|
|
1416
1632
|
main: () => main27
|
|
1417
1633
|
});
|
|
1418
|
-
var
|
|
1419
|
-
var $
|
|
1420
|
-
var main27 =
|
|
1421
|
-
$
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
subject:
|
|
1425
|
-
recordUri:
|
|
1426
|
-
amount:
|
|
1427
|
-
currency:
|
|
1428
|
-
cartUri:
|
|
1429
|
-
redirectUrl:
|
|
1430
|
-
message:
|
|
1431
|
-
isPrivate:
|
|
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
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
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:
|
|
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: () => $
|
|
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: () => $
|
|
1689
|
+
$nsid: () => $nsid29,
|
|
1464
1690
|
$output: () => $output22,
|
|
1465
1691
|
$params: () => $params22,
|
|
1466
1692
|
main: () => main28
|
|
1467
1693
|
});
|
|
1468
|
-
var
|
|
1469
|
-
var $
|
|
1470
|
-
var main28 =
|
|
1471
|
-
$
|
|
1472
|
-
|
|
1473
|
-
uri:
|
|
1474
|
-
subject:
|
|
1475
|
-
recordUri:
|
|
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
|
-
|
|
1478
|
-
tip:
|
|
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: () => $
|
|
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: () => $
|
|
1726
|
+
$nsid: () => $nsid30,
|
|
1501
1727
|
$output: () => $output23,
|
|
1502
1728
|
$params: () => $params23,
|
|
1503
1729
|
main: () => main29
|
|
1504
1730
|
});
|
|
1505
|
-
var
|
|
1506
|
-
var $
|
|
1507
|
-
var main29 =
|
|
1508
|
-
$
|
|
1509
|
-
|
|
1510
|
-
subject:
|
|
1511
|
-
recordUri:
|
|
1512
|
-
cursor:
|
|
1513
|
-
limit:
|
|
1514
|
-
|
|
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
|
-
|
|
1518
|
-
tips:
|
|
1519
|
-
cursor:
|
|
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: () => $
|
|
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: () => $
|
|
1769
|
+
$nsid: () => $nsid31,
|
|
1544
1770
|
$output: () => $output24,
|
|
1545
1771
|
$params: () => $params24,
|
|
1546
1772
|
main: () => main30
|
|
1547
1773
|
});
|
|
1548
|
-
var
|
|
1549
|
-
var $
|
|
1550
|
-
var main30 =
|
|
1551
|
-
$
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
uri:
|
|
1555
|
-
record:
|
|
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
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
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: () => $
|
|
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: () => $
|
|
1818
|
+
$nsid: () => $nsid32,
|
|
1583
1819
|
$output: () => $output25,
|
|
1584
1820
|
$params: () => $params25,
|
|
1585
1821
|
main: () => main31
|
|
1586
1822
|
});
|
|
1587
|
-
var
|
|
1588
|
-
var $
|
|
1589
|
-
var main31 =
|
|
1590
|
-
$
|
|
1591
|
-
|
|
1592
|
-
tipUri:
|
|
1593
|
-
recordUri:
|
|
1594
|
-
subject:
|
|
1595
|
-
amount:
|
|
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
|
-
|
|
1598
|
-
valid:
|
|
1599
|
-
amount:
|
|
1600
|
-
currency:
|
|
1601
|
-
reason:
|
|
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: () => $
|
|
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: () => $
|
|
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: () => $
|
|
1894
|
+
$nsid: () => $nsid33,
|
|
1659
1895
|
$output: () => $output26,
|
|
1660
1896
|
$params: () => $params26,
|
|
1661
1897
|
main: () => main32
|
|
1662
1898
|
});
|
|
1663
|
-
var
|
|
1664
|
-
var $
|
|
1665
|
-
var main32 =
|
|
1666
|
-
$
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
did:
|
|
1670
|
-
profile:
|
|
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: () => $
|
|
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: () => $
|
|
1934
|
+
$nsid: () => $nsid34,
|
|
1699
1935
|
$output: () => $output27,
|
|
1700
1936
|
$params: () => $params27,
|
|
1701
1937
|
main: () => main33
|
|
1702
1938
|
});
|
|
1703
|
-
var
|
|
1704
|
-
var $
|
|
1705
|
-
var main33 =
|
|
1706
|
-
$
|
|
1707
|
-
|
|
1708
|
-
subject:
|
|
1709
|
-
startDate:
|
|
1710
|
-
endDate:
|
|
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
|
-
|
|
1713
|
-
count:
|
|
1714
|
-
amount:
|
|
1715
|
-
currency:
|
|
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: () => $
|
|
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: () => $
|
|
1979
|
+
$nsid: () => $nsid35,
|
|
1744
1980
|
$output: () => $output28,
|
|
1745
1981
|
$params: () => $params28,
|
|
1746
1982
|
main: () => main34
|
|
1747
1983
|
});
|
|
1748
|
-
var
|
|
1749
|
-
var $
|
|
1750
|
-
var main34 =
|
|
1751
|
-
$
|
|
1752
|
-
|
|
1753
|
-
recordUri:
|
|
1754
|
-
subject:
|
|
1755
|
-
startDate:
|
|
1756
|
-
endDate:
|
|
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
|
-
|
|
1759
|
-
count:
|
|
1760
|
-
amount:
|
|
1761
|
-
currency:
|
|
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: () => $
|
|
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: () => $
|
|
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",
|
|
@@ -2772,6 +3241,11 @@ var cancel_default = {
|
|
|
2772
3241
|
type: "string",
|
|
2773
3242
|
format: "at-uri",
|
|
2774
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."
|
|
2775
3249
|
}
|
|
2776
3250
|
}
|
|
2777
3251
|
}
|
|
@@ -2780,8 +3254,12 @@ var cancel_default = {
|
|
|
2780
3254
|
encoding: "application/json",
|
|
2781
3255
|
schema: {
|
|
2782
3256
|
type: "object",
|
|
2783
|
-
required: ["subscriptionUri", "subscription", "accessUntil"],
|
|
2784
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
|
+
},
|
|
2785
3263
|
subscriptionUri: {
|
|
2786
3264
|
type: "string",
|
|
2787
3265
|
format: "at-uri",
|
|
@@ -2806,91 +3284,100 @@ var cancel_default = {
|
|
|
2806
3284
|
|
|
2807
3285
|
// src/schemas/feed/subscription/create.json
|
|
2808
3286
|
var create_default2 = {
|
|
3287
|
+
lexicon: 1,
|
|
3288
|
+
id: "com.atiproto.feed.subscription.create",
|
|
2809
3289
|
defs: {
|
|
2810
3290
|
main: {
|
|
3291
|
+
type: "procedure",
|
|
2811
3292
|
description: "Create a subscription to a user. Returns a one-off cart with checkout URL.",
|
|
2812
3293
|
input: {
|
|
2813
3294
|
encoding: "application/json",
|
|
2814
3295
|
schema: {
|
|
3296
|
+
type: "object",
|
|
3297
|
+
required: ["subject", "currency", "interval"],
|
|
2815
3298
|
properties: {
|
|
2816
3299
|
subject: {
|
|
2817
|
-
|
|
3300
|
+
type: "string",
|
|
2818
3301
|
format: "did",
|
|
2819
|
-
|
|
3302
|
+
description: "DID of the user to subscribe to"
|
|
2820
3303
|
},
|
|
2821
3304
|
amount: {
|
|
2822
|
-
|
|
2823
|
-
|
|
3305
|
+
type: "integer",
|
|
3306
|
+
description: "Custom amount in cents (if pay-as-you-want enabled)"
|
|
2824
3307
|
},
|
|
2825
3308
|
currency: {
|
|
2826
|
-
|
|
3309
|
+
type: "string",
|
|
2827
3310
|
maxLength: 3,
|
|
2828
|
-
|
|
3311
|
+
description: "ISO 4217 currency code"
|
|
2829
3312
|
},
|
|
2830
3313
|
interval: {
|
|
2831
|
-
|
|
3314
|
+
type: "string",
|
|
2832
3315
|
maxLength: 64,
|
|
2833
3316
|
enum: ["monthly", "yearly"],
|
|
2834
|
-
|
|
3317
|
+
description: "Billing interval"
|
|
2835
3318
|
},
|
|
2836
3319
|
cartUri: {
|
|
2837
|
-
|
|
3320
|
+
type: "string",
|
|
2838
3321
|
format: "at-uri",
|
|
2839
|
-
|
|
3322
|
+
description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created."
|
|
2840
3323
|
},
|
|
2841
3324
|
redirectUrl: {
|
|
2842
|
-
|
|
3325
|
+
type: "string",
|
|
2843
3326
|
format: "uri",
|
|
2844
|
-
|
|
3327
|
+
description: "URL to redirect to after checkout completes"
|
|
2845
3328
|
},
|
|
2846
3329
|
isPrivate: {
|
|
2847
|
-
|
|
2848
|
-
|
|
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."
|
|
2849
3337
|
}
|
|
2850
|
-
}
|
|
2851
|
-
required: ["subject", "currency", "interval"],
|
|
2852
|
-
type: "object"
|
|
3338
|
+
}
|
|
2853
3339
|
}
|
|
2854
3340
|
},
|
|
2855
3341
|
output: {
|
|
2856
3342
|
encoding: "application/json",
|
|
2857
3343
|
schema: {
|
|
3344
|
+
type: "object",
|
|
2858
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
|
+
},
|
|
2859
3351
|
subscriptionUri: {
|
|
2860
|
-
|
|
3352
|
+
type: "string",
|
|
2861
3353
|
format: "at-uri",
|
|
2862
|
-
|
|
3354
|
+
description: "URI of the subscription record in PDS"
|
|
2863
3355
|
},
|
|
2864
3356
|
subscription: {
|
|
2865
|
-
description: "The created subscription record (status: pending)",
|
|
2866
3357
|
type: "ref",
|
|
2867
|
-
ref: "com.atiproto.subscription#view"
|
|
3358
|
+
ref: "com.atiproto.subscription#view",
|
|
3359
|
+
description: "The created subscription record (status: pending)"
|
|
2868
3360
|
},
|
|
2869
3361
|
cartUri: {
|
|
2870
|
-
|
|
3362
|
+
type: "string",
|
|
2871
3363
|
format: "at-uri",
|
|
2872
|
-
|
|
3364
|
+
description: "URI of the cart record in PDS"
|
|
2873
3365
|
},
|
|
2874
3366
|
cart: {
|
|
2875
|
-
description: "The created cart record (status: open)",
|
|
2876
3367
|
type: "ref",
|
|
2877
|
-
ref: "com.atiproto.cart#view"
|
|
3368
|
+
ref: "com.atiproto.cart#view",
|
|
3369
|
+
description: "The created cart record (status: open)"
|
|
2878
3370
|
},
|
|
2879
3371
|
checkoutUrl: {
|
|
2880
|
-
|
|
3372
|
+
type: "string",
|
|
2881
3373
|
format: "uri",
|
|
2882
|
-
|
|
3374
|
+
description: "Checkout URL hosted by atiproto"
|
|
2883
3375
|
}
|
|
2884
|
-
}
|
|
2885
|
-
required: ["subscriptionUri", "subscription"],
|
|
2886
|
-
type: "object"
|
|
3376
|
+
}
|
|
2887
3377
|
}
|
|
2888
|
-
}
|
|
2889
|
-
type: "procedure"
|
|
3378
|
+
}
|
|
2890
3379
|
}
|
|
2891
|
-
}
|
|
2892
|
-
id: "com.atiproto.feed.subscription.create",
|
|
2893
|
-
lexicon: 1
|
|
3380
|
+
}
|
|
2894
3381
|
};
|
|
2895
3382
|
|
|
2896
3383
|
// src/schemas/feed/subscription/get.json
|
|
@@ -3006,6 +3493,11 @@ var put_default3 = {
|
|
|
3006
3493
|
record: {
|
|
3007
3494
|
type: "ref",
|
|
3008
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."
|
|
3009
3501
|
}
|
|
3010
3502
|
}
|
|
3011
3503
|
}
|
|
@@ -3014,8 +3506,12 @@ var put_default3 = {
|
|
|
3014
3506
|
encoding: "application/json",
|
|
3015
3507
|
schema: {
|
|
3016
3508
|
type: "object",
|
|
3017
|
-
required: ["uri", "cid"],
|
|
3018
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
|
+
},
|
|
3019
3515
|
uri: {
|
|
3020
3516
|
type: "string",
|
|
3021
3517
|
format: "at-uri",
|
|
@@ -3143,6 +3639,11 @@ var create_default3 = {
|
|
|
3143
3639
|
isPrivate: {
|
|
3144
3640
|
type: "boolean",
|
|
3145
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."
|
|
3146
3647
|
}
|
|
3147
3648
|
}
|
|
3148
3649
|
}
|
|
@@ -3151,8 +3652,12 @@ var create_default3 = {
|
|
|
3151
3652
|
encoding: "application/json",
|
|
3152
3653
|
schema: {
|
|
3153
3654
|
type: "object",
|
|
3154
|
-
required: ["tipUri", "tip"],
|
|
3155
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
|
+
},
|
|
3156
3661
|
tipUri: {
|
|
3157
3662
|
type: "string",
|
|
3158
3663
|
format: "at-uri",
|
|
@@ -3313,6 +3818,11 @@ var put_default4 = {
|
|
|
3313
3818
|
record: {
|
|
3314
3819
|
type: "ref",
|
|
3315
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."
|
|
3316
3826
|
}
|
|
3317
3827
|
}
|
|
3318
3828
|
}
|
|
@@ -3321,8 +3831,12 @@ var put_default4 = {
|
|
|
3321
3831
|
encoding: "application/json",
|
|
3322
3832
|
schema: {
|
|
3323
3833
|
type: "object",
|
|
3324
|
-
required: ["uri", "cid"],
|
|
3325
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
|
+
},
|
|
3326
3840
|
uri: {
|
|
3327
3841
|
type: "string",
|
|
3328
3842
|
format: "at-uri",
|
|
@@ -4008,6 +4522,7 @@ var tip_default = {
|
|
|
4008
4522
|
|
|
4009
4523
|
// src/schemas.ts
|
|
4010
4524
|
var schemas = [
|
|
4525
|
+
actions_default,
|
|
4011
4526
|
clone_default,
|
|
4012
4527
|
create_default,
|
|
4013
4528
|
get_default,
|