@atiproto/lexicons 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1114 -596
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1114 -596
- 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/list.defs.d.ts +2 -2
- 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.mjs
CHANGED
|
@@ -14,6 +14,7 @@ __export(com_exports, {
|
|
|
14
14
|
var atiproto_exports = {};
|
|
15
15
|
__export(atiproto_exports, {
|
|
16
16
|
account: () => account_exports,
|
|
17
|
+
actions: () => actions_exports,
|
|
17
18
|
authEnhanced: () => authEnhanced_exports,
|
|
18
19
|
authGeneral: () => authGeneral_exports,
|
|
19
20
|
cart: () => cart_exports2,
|
|
@@ -49,7 +50,7 @@ __export(clone_exports, {
|
|
|
49
50
|
$defs: () => clone_defs_exports,
|
|
50
51
|
$input: () => $input,
|
|
51
52
|
$lxm: () => $lxm,
|
|
52
|
-
$nsid: () => $
|
|
53
|
+
$nsid: () => $nsid5,
|
|
53
54
|
$output: () => $output,
|
|
54
55
|
$params: () => $params,
|
|
55
56
|
main: () => main4
|
|
@@ -60,12 +61,125 @@ var clone_defs_exports = {};
|
|
|
60
61
|
__export(clone_defs_exports, {
|
|
61
62
|
$input: () => $input,
|
|
62
63
|
$lxm: () => $lxm,
|
|
63
|
-
$nsid: () => $
|
|
64
|
+
$nsid: () => $nsid5,
|
|
64
65
|
$output: () => $output,
|
|
65
66
|
$params: () => $params,
|
|
66
67
|
main: () => main4
|
|
67
68
|
});
|
|
68
|
-
import { l as
|
|
69
|
+
import { l as l5 } from "@atproto/lex";
|
|
70
|
+
|
|
71
|
+
// src/lexicons/com/atiproto/actions.defs.ts
|
|
72
|
+
var actions_defs_exports = {};
|
|
73
|
+
__export(actions_defs_exports, {
|
|
74
|
+
$nsid: () => $nsid,
|
|
75
|
+
create: () => create,
|
|
76
|
+
delete: () => delete$0,
|
|
77
|
+
error: () => error,
|
|
78
|
+
inboundWorkflow: () => inboundWorkflow,
|
|
79
|
+
outboundWorkflow: () => outboundWorkflow,
|
|
80
|
+
raise: () => raise,
|
|
81
|
+
recordResult: () => recordResult,
|
|
82
|
+
response: () => response,
|
|
83
|
+
update: () => update
|
|
84
|
+
});
|
|
85
|
+
import { l } from "@atproto/lex";
|
|
86
|
+
var $nsid = "com.atiproto.actions";
|
|
87
|
+
var create = l.typedObject(
|
|
88
|
+
$nsid,
|
|
89
|
+
"create",
|
|
90
|
+
l.object({
|
|
91
|
+
repo: l.string({ format: "did" }),
|
|
92
|
+
name: l.string({ maxLength: 64 }),
|
|
93
|
+
collection: l.string({ format: "nsid" }),
|
|
94
|
+
rkey: l.optional(l.string({ maxLength: 128 })),
|
|
95
|
+
record: l.lexMap()
|
|
96
|
+
})
|
|
97
|
+
);
|
|
98
|
+
var update = l.typedObject(
|
|
99
|
+
$nsid,
|
|
100
|
+
"update",
|
|
101
|
+
l.object({
|
|
102
|
+
repo: l.string({ format: "did" }),
|
|
103
|
+
name: l.string({ maxLength: 64 }),
|
|
104
|
+
collection: l.string({ format: "nsid" }),
|
|
105
|
+
rkey: l.string({ maxLength: 128 }),
|
|
106
|
+
record: l.lexMap(),
|
|
107
|
+
swapCommit: l.optional(l.string({ format: "cid" }))
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
var delete$0 = l.typedObject(
|
|
111
|
+
$nsid,
|
|
112
|
+
"delete",
|
|
113
|
+
l.object({
|
|
114
|
+
repo: l.string({ format: "did" }),
|
|
115
|
+
name: l.string({ maxLength: 64 }),
|
|
116
|
+
collection: l.string({ format: "nsid" }),
|
|
117
|
+
rkey: l.string({ maxLength: 128 }),
|
|
118
|
+
swapCommit: l.optional(l.string({ format: "cid" }))
|
|
119
|
+
})
|
|
120
|
+
);
|
|
121
|
+
var raise = l.typedObject(
|
|
122
|
+
$nsid,
|
|
123
|
+
"raise",
|
|
124
|
+
l.object({
|
|
125
|
+
message: l.string({ maxLength: 1024 }),
|
|
126
|
+
code: l.optional(l.string({ maxLength: 64 }))
|
|
127
|
+
})
|
|
128
|
+
);
|
|
129
|
+
var response = l.typedObject(
|
|
130
|
+
$nsid,
|
|
131
|
+
"response",
|
|
132
|
+
l.object({
|
|
133
|
+
action: l.string({ maxLength: 32 }),
|
|
134
|
+
name: l.string({ maxLength: 64 }),
|
|
135
|
+
result: l.ref((() => recordResult))
|
|
136
|
+
})
|
|
137
|
+
);
|
|
138
|
+
var recordResult = l.typedObject(
|
|
139
|
+
$nsid,
|
|
140
|
+
"recordResult",
|
|
141
|
+
l.object({
|
|
142
|
+
uri: l.string({ format: "at-uri" }),
|
|
143
|
+
cid: l.optional(l.string({ format: "cid" }))
|
|
144
|
+
})
|
|
145
|
+
);
|
|
146
|
+
var error = l.typedObject(
|
|
147
|
+
$nsid,
|
|
148
|
+
"error",
|
|
149
|
+
l.object({
|
|
150
|
+
action: l.string({ maxLength: 32 }),
|
|
151
|
+
name: l.optional(l.string({ maxLength: 64 })),
|
|
152
|
+
message: l.string({ maxLength: 1024 }),
|
|
153
|
+
code: l.optional(l.string({ maxLength: 64 }))
|
|
154
|
+
})
|
|
155
|
+
);
|
|
156
|
+
var inboundWorkflow = l.typedObject(
|
|
157
|
+
$nsid,
|
|
158
|
+
"inboundWorkflow",
|
|
159
|
+
l.object({
|
|
160
|
+
intent: l.string({ maxLength: 64 }),
|
|
161
|
+
responses: l.array(l.ref((() => response))),
|
|
162
|
+
error: l.optional(l.ref((() => error)))
|
|
163
|
+
})
|
|
164
|
+
);
|
|
165
|
+
var outboundWorkflow = l.typedObject(
|
|
166
|
+
$nsid,
|
|
167
|
+
"outboundWorkflow",
|
|
168
|
+
l.object({
|
|
169
|
+
intent: l.string({ maxLength: 64 }),
|
|
170
|
+
actions: l.array(
|
|
171
|
+
l.typedUnion(
|
|
172
|
+
[
|
|
173
|
+
l.typedRef((() => create)),
|
|
174
|
+
l.typedRef((() => update)),
|
|
175
|
+
l.typedRef((() => delete$0)),
|
|
176
|
+
l.typedRef((() => raise))
|
|
177
|
+
],
|
|
178
|
+
false
|
|
179
|
+
)
|
|
180
|
+
)
|
|
181
|
+
})
|
|
182
|
+
);
|
|
69
183
|
|
|
70
184
|
// src/lexicons/com/atiproto/cart.defs.ts
|
|
71
185
|
var cart_defs_exports = {};
|
|
@@ -77,7 +191,7 @@ __export(cart_defs_exports, {
|
|
|
77
191
|
$ifMatches: () => $ifMatches,
|
|
78
192
|
$isTypeOf: () => $isTypeOf,
|
|
79
193
|
$matches: () => $matches,
|
|
80
|
-
$nsid: () => $
|
|
194
|
+
$nsid: () => $nsid2,
|
|
81
195
|
$parse: () => $parse,
|
|
82
196
|
$safeParse: () => $safeParse,
|
|
83
197
|
$safeValidate: () => $safeValidate,
|
|
@@ -87,19 +201,19 @@ __export(cart_defs_exports, {
|
|
|
87
201
|
main: () => main,
|
|
88
202
|
view: () => view
|
|
89
203
|
});
|
|
90
|
-
import { l } from "@atproto/lex";
|
|
91
|
-
var $
|
|
92
|
-
var main =
|
|
204
|
+
import { l as l2 } from "@atproto/lex";
|
|
205
|
+
var $nsid2 = "com.atiproto.cart";
|
|
206
|
+
var main = l2.record(
|
|
93
207
|
"any",
|
|
94
|
-
$
|
|
95
|
-
|
|
96
|
-
items:
|
|
97
|
-
currency:
|
|
98
|
-
total:
|
|
99
|
-
status:
|
|
100
|
-
createdAt:
|
|
101
|
-
expiresAt:
|
|
102
|
-
completedAt:
|
|
208
|
+
$nsid2,
|
|
209
|
+
l2.object({
|
|
210
|
+
items: l2.array(l2.ref((() => cartItem))),
|
|
211
|
+
currency: l2.string({ maxLength: 3 }),
|
|
212
|
+
total: l2.integer(),
|
|
213
|
+
status: l2.enum(["open", "completed", "expired", "abandoned"]),
|
|
214
|
+
createdAt: l2.string({ format: "datetime" }),
|
|
215
|
+
expiresAt: l2.string({ format: "datetime" }),
|
|
216
|
+
completedAt: l2.optional(l2.string({ format: "datetime" }))
|
|
103
217
|
})
|
|
104
218
|
);
|
|
105
219
|
var $isTypeOf = /* @__PURE__ */ main.isTypeOf.bind(main);
|
|
@@ -114,26 +228,26 @@ var $parse = /* @__PURE__ */ main.parse.bind(main);
|
|
|
114
228
|
var $safeParse = /* @__PURE__ */ main.safeParse.bind(main);
|
|
115
229
|
var $validate = /* @__PURE__ */ main.validate.bind(main);
|
|
116
230
|
var $safeValidate = /* @__PURE__ */ main.safeValidate.bind(main);
|
|
117
|
-
var view =
|
|
118
|
-
$
|
|
231
|
+
var view = l2.typedObject(
|
|
232
|
+
$nsid2,
|
|
119
233
|
"view",
|
|
120
|
-
|
|
121
|
-
uri:
|
|
122
|
-
items:
|
|
123
|
-
currency:
|
|
124
|
-
total:
|
|
125
|
-
status:
|
|
126
|
-
createdAt:
|
|
127
|
-
expiresAt:
|
|
128
|
-
completedAt:
|
|
234
|
+
l2.object({
|
|
235
|
+
uri: l2.string({ format: "at-uri" }),
|
|
236
|
+
items: l2.array(l2.ref((() => cartItem))),
|
|
237
|
+
currency: l2.string({ maxLength: 3 }),
|
|
238
|
+
total: l2.integer(),
|
|
239
|
+
status: l2.enum(["open", "completed", "expired", "abandoned"]),
|
|
240
|
+
createdAt: l2.string({ format: "datetime" }),
|
|
241
|
+
expiresAt: l2.string({ format: "datetime" }),
|
|
242
|
+
completedAt: l2.optional(l2.string({ format: "datetime" }))
|
|
129
243
|
})
|
|
130
244
|
);
|
|
131
|
-
var cartItem =
|
|
132
|
-
$
|
|
245
|
+
var cartItem = l2.typedObject(
|
|
246
|
+
$nsid2,
|
|
133
247
|
"cartItem",
|
|
134
|
-
|
|
135
|
-
type:
|
|
136
|
-
recordUri:
|
|
248
|
+
l2.object({
|
|
249
|
+
type: l2.enum(["com.atiproto.tip", "com.atiproto.subscription"]),
|
|
250
|
+
recordUri: l2.string({ format: "at-uri" })
|
|
137
251
|
})
|
|
138
252
|
);
|
|
139
253
|
|
|
@@ -147,7 +261,7 @@ __export(tip_defs_exports, {
|
|
|
147
261
|
$ifMatches: () => $ifMatches2,
|
|
148
262
|
$isTypeOf: () => $isTypeOf2,
|
|
149
263
|
$matches: () => $matches2,
|
|
150
|
-
$nsid: () => $
|
|
264
|
+
$nsid: () => $nsid3,
|
|
151
265
|
$parse: () => $parse2,
|
|
152
266
|
$safeParse: () => $safeParse2,
|
|
153
267
|
$safeValidate: () => $safeValidate2,
|
|
@@ -156,26 +270,26 @@ __export(tip_defs_exports, {
|
|
|
156
270
|
main: () => main2,
|
|
157
271
|
view: () => view2
|
|
158
272
|
});
|
|
159
|
-
import { l as
|
|
160
|
-
var $
|
|
161
|
-
var main2 =
|
|
273
|
+
import { l as l3 } from "@atproto/lex";
|
|
274
|
+
var $nsid3 = "com.atiproto.tip";
|
|
275
|
+
var main2 = l3.record(
|
|
162
276
|
"any",
|
|
163
|
-
$
|
|
164
|
-
|
|
165
|
-
subject:
|
|
166
|
-
recordUri:
|
|
167
|
-
amount:
|
|
168
|
-
currency:
|
|
169
|
-
status:
|
|
277
|
+
$nsid3,
|
|
278
|
+
l3.object({
|
|
279
|
+
subject: l3.optional(l3.string({ format: "did" })),
|
|
280
|
+
recordUri: l3.optional(l3.string({ format: "at-uri" })),
|
|
281
|
+
amount: l3.integer({ minimum: 0 }),
|
|
282
|
+
currency: l3.string({ maxLength: 3 }),
|
|
283
|
+
status: l3.enum([
|
|
170
284
|
"pending",
|
|
171
285
|
"authorized",
|
|
172
286
|
"completed",
|
|
173
287
|
"failed",
|
|
174
288
|
"refunded"
|
|
175
289
|
]),
|
|
176
|
-
message:
|
|
177
|
-
createdAt:
|
|
178
|
-
completedAt:
|
|
290
|
+
message: l3.optional(l3.string({ maxGraphemes: 500, maxLength: 5e3 })),
|
|
291
|
+
createdAt: l3.string({ format: "datetime" }),
|
|
292
|
+
completedAt: l3.optional(l3.string({ format: "datetime" }))
|
|
179
293
|
})
|
|
180
294
|
);
|
|
181
295
|
var $isTypeOf2 = /* @__PURE__ */ main2.isTypeOf.bind(main2);
|
|
@@ -190,25 +304,25 @@ var $parse2 = /* @__PURE__ */ main2.parse.bind(main2);
|
|
|
190
304
|
var $safeParse2 = /* @__PURE__ */ main2.safeParse.bind(main2);
|
|
191
305
|
var $validate2 = /* @__PURE__ */ main2.validate.bind(main2);
|
|
192
306
|
var $safeValidate2 = /* @__PURE__ */ main2.safeValidate.bind(main2);
|
|
193
|
-
var view2 =
|
|
194
|
-
$
|
|
307
|
+
var view2 = l3.typedObject(
|
|
308
|
+
$nsid3,
|
|
195
309
|
"view",
|
|
196
|
-
|
|
197
|
-
uri:
|
|
198
|
-
subject:
|
|
199
|
-
recordUri:
|
|
200
|
-
amount:
|
|
201
|
-
currency:
|
|
202
|
-
status:
|
|
310
|
+
l3.object({
|
|
311
|
+
uri: l3.string({ format: "at-uri" }),
|
|
312
|
+
subject: l3.optional(l3.string({ format: "did" })),
|
|
313
|
+
recordUri: l3.optional(l3.string({ format: "at-uri" })),
|
|
314
|
+
amount: l3.integer({ minimum: 0 }),
|
|
315
|
+
currency: l3.string({ maxLength: 3 }),
|
|
316
|
+
status: l3.enum([
|
|
203
317
|
"pending",
|
|
204
318
|
"authorized",
|
|
205
319
|
"completed",
|
|
206
320
|
"failed",
|
|
207
321
|
"refunded"
|
|
208
322
|
]),
|
|
209
|
-
message:
|
|
210
|
-
createdAt:
|
|
211
|
-
completedAt:
|
|
323
|
+
message: l3.optional(l3.string({ maxGraphemes: 500, maxLength: 5e3 })),
|
|
324
|
+
createdAt: l3.string({ format: "datetime" }),
|
|
325
|
+
completedAt: l3.optional(l3.string({ format: "datetime" }))
|
|
212
326
|
})
|
|
213
327
|
);
|
|
214
328
|
|
|
@@ -222,7 +336,7 @@ __export(subscription_defs_exports, {
|
|
|
222
336
|
$ifMatches: () => $ifMatches3,
|
|
223
337
|
$isTypeOf: () => $isTypeOf3,
|
|
224
338
|
$matches: () => $matches3,
|
|
225
|
-
$nsid: () => $
|
|
339
|
+
$nsid: () => $nsid4,
|
|
226
340
|
$parse: () => $parse3,
|
|
227
341
|
$safeParse: () => $safeParse3,
|
|
228
342
|
$safeValidate: () => $safeValidate3,
|
|
@@ -231,21 +345,21 @@ __export(subscription_defs_exports, {
|
|
|
231
345
|
main: () => main3,
|
|
232
346
|
view: () => view3
|
|
233
347
|
});
|
|
234
|
-
import { l as
|
|
235
|
-
var $
|
|
236
|
-
var main3 =
|
|
348
|
+
import { l as l4 } from "@atproto/lex";
|
|
349
|
+
var $nsid4 = "com.atiproto.subscription";
|
|
350
|
+
var main3 = l4.record(
|
|
237
351
|
"any",
|
|
238
|
-
$
|
|
239
|
-
|
|
240
|
-
subject:
|
|
241
|
-
amount:
|
|
242
|
-
currency:
|
|
243
|
-
interval:
|
|
244
|
-
status:
|
|
245
|
-
billingStartDate:
|
|
246
|
-
cancelledAt:
|
|
247
|
-
accessUntil:
|
|
248
|
-
createdAt:
|
|
352
|
+
$nsid4,
|
|
353
|
+
l4.object({
|
|
354
|
+
subject: l4.string({ format: "did" }),
|
|
355
|
+
amount: l4.integer({ minimum: 0 }),
|
|
356
|
+
currency: l4.string({ maxLength: 3 }),
|
|
357
|
+
interval: l4.enum(["monthly", "yearly"]),
|
|
358
|
+
status: l4.enum(["pending", "active", "past_due", "cancelled", "expired"]),
|
|
359
|
+
billingStartDate: l4.string({ format: "datetime" }),
|
|
360
|
+
cancelledAt: l4.optional(l4.string({ format: "datetime" })),
|
|
361
|
+
accessUntil: l4.optional(l4.string({ format: "datetime" })),
|
|
362
|
+
createdAt: l4.string({ format: "datetime" })
|
|
249
363
|
})
|
|
250
364
|
);
|
|
251
365
|
var $isTypeOf3 = /* @__PURE__ */ main3.isTypeOf.bind(main3);
|
|
@@ -260,40 +374,56 @@ var $parse3 = /* @__PURE__ */ main3.parse.bind(main3);
|
|
|
260
374
|
var $safeParse3 = /* @__PURE__ */ main3.safeParse.bind(main3);
|
|
261
375
|
var $validate3 = /* @__PURE__ */ main3.validate.bind(main3);
|
|
262
376
|
var $safeValidate3 = /* @__PURE__ */ main3.safeValidate.bind(main3);
|
|
263
|
-
var view3 =
|
|
264
|
-
$
|
|
377
|
+
var view3 = l4.typedObject(
|
|
378
|
+
$nsid4,
|
|
265
379
|
"view",
|
|
266
|
-
|
|
267
|
-
uri:
|
|
268
|
-
subject:
|
|
269
|
-
amount:
|
|
270
|
-
currency:
|
|
271
|
-
interval:
|
|
272
|
-
status:
|
|
273
|
-
billingStartDate:
|
|
274
|
-
cancelledAt:
|
|
275
|
-
accessUntil:
|
|
276
|
-
createdAt:
|
|
380
|
+
l4.object({
|
|
381
|
+
uri: l4.string({ format: "at-uri" }),
|
|
382
|
+
subject: l4.optional(l4.string({ format: "did" })),
|
|
383
|
+
amount: l4.integer({ minimum: 0 }),
|
|
384
|
+
currency: l4.string({ maxLength: 3 }),
|
|
385
|
+
interval: l4.enum(["monthly", "yearly"]),
|
|
386
|
+
status: l4.enum(["pending", "active", "past_due", "cancelled", "expired"]),
|
|
387
|
+
billingStartDate: l4.string({ format: "datetime" }),
|
|
388
|
+
cancelledAt: l4.optional(l4.string({ format: "datetime" })),
|
|
389
|
+
accessUntil: l4.optional(l4.string({ format: "datetime" })),
|
|
390
|
+
createdAt: l4.string({ format: "datetime" })
|
|
277
391
|
})
|
|
278
392
|
);
|
|
279
393
|
|
|
280
394
|
// src/lexicons/com/atiproto/account/cart/clone.defs.ts
|
|
281
|
-
var $
|
|
282
|
-
var main4 =
|
|
283
|
-
$
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
uri:
|
|
287
|
-
redirectUrl:
|
|
395
|
+
var $nsid5 = "com.atiproto.account.cart.clone";
|
|
396
|
+
var main4 = l5.procedure(
|
|
397
|
+
$nsid5,
|
|
398
|
+
l5.params(),
|
|
399
|
+
l5.jsonPayload({
|
|
400
|
+
uri: l5.string({ format: "at-uri" }),
|
|
401
|
+
redirectUrl: l5.optional(l5.string({ format: "uri" })),
|
|
402
|
+
workflow: l5.optional(
|
|
403
|
+
l5.ref(
|
|
404
|
+
(() => inboundWorkflow)
|
|
405
|
+
)
|
|
406
|
+
)
|
|
288
407
|
}),
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
408
|
+
l5.jsonPayload({
|
|
409
|
+
workflow: l5.optional(
|
|
410
|
+
l5.ref(
|
|
411
|
+
(() => outboundWorkflow)
|
|
412
|
+
)
|
|
413
|
+
),
|
|
414
|
+
cart: l5.optional(
|
|
415
|
+
l5.ref((() => view))
|
|
416
|
+
),
|
|
417
|
+
cartUri: l5.optional(l5.string({ format: "at-uri" })),
|
|
418
|
+
checkoutUrl: l5.optional(l5.string({ format: "uri" })),
|
|
419
|
+
tips: l5.optional(
|
|
420
|
+
l5.array(l5.ref((() => view2)))
|
|
421
|
+
),
|
|
422
|
+
subscriptions: l5.optional(
|
|
423
|
+
l5.array(
|
|
424
|
+
l5.ref(
|
|
425
|
+
(() => view3)
|
|
426
|
+
)
|
|
297
427
|
)
|
|
298
428
|
)
|
|
299
429
|
})
|
|
@@ -309,7 +439,7 @@ __export(create_exports, {
|
|
|
309
439
|
$defs: () => create_defs_exports,
|
|
310
440
|
$input: () => $input2,
|
|
311
441
|
$lxm: () => $lxm2,
|
|
312
|
-
$nsid: () => $
|
|
442
|
+
$nsid: () => $nsid6,
|
|
313
443
|
$output: () => $output2,
|
|
314
444
|
$params: () => $params2,
|
|
315
445
|
main: () => main5
|
|
@@ -320,24 +450,36 @@ var create_defs_exports = {};
|
|
|
320
450
|
__export(create_defs_exports, {
|
|
321
451
|
$input: () => $input2,
|
|
322
452
|
$lxm: () => $lxm2,
|
|
323
|
-
$nsid: () => $
|
|
453
|
+
$nsid: () => $nsid6,
|
|
324
454
|
$output: () => $output2,
|
|
325
455
|
$params: () => $params2,
|
|
326
456
|
main: () => main5
|
|
327
457
|
});
|
|
328
|
-
import { l as
|
|
329
|
-
var $
|
|
330
|
-
var main5 =
|
|
331
|
-
$
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
currency:
|
|
335
|
-
redirectUrl:
|
|
458
|
+
import { l as l6 } from "@atproto/lex";
|
|
459
|
+
var $nsid6 = "com.atiproto.account.cart.create";
|
|
460
|
+
var main5 = l6.procedure(
|
|
461
|
+
$nsid6,
|
|
462
|
+
l6.params(),
|
|
463
|
+
l6.jsonPayload({
|
|
464
|
+
currency: l6.string({ maxLength: 3 }),
|
|
465
|
+
redirectUrl: l6.optional(l6.string({ format: "uri" })),
|
|
466
|
+
workflow: l6.optional(
|
|
467
|
+
l6.ref(
|
|
468
|
+
(() => inboundWorkflow)
|
|
469
|
+
)
|
|
470
|
+
)
|
|
336
471
|
}),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
472
|
+
l6.jsonPayload({
|
|
473
|
+
workflow: l6.optional(
|
|
474
|
+
l6.ref(
|
|
475
|
+
(() => outboundWorkflow)
|
|
476
|
+
)
|
|
477
|
+
),
|
|
478
|
+
cart: l6.optional(
|
|
479
|
+
l6.ref((() => view))
|
|
480
|
+
),
|
|
481
|
+
cartUri: l6.optional(l6.string({ format: "at-uri" })),
|
|
482
|
+
checkoutUrl: l6.optional(l6.string({ format: "uri" }))
|
|
341
483
|
})
|
|
342
484
|
);
|
|
343
485
|
var $lxm2 = main5.nsid;
|
|
@@ -350,7 +492,7 @@ var get_exports = {};
|
|
|
350
492
|
__export(get_exports, {
|
|
351
493
|
$defs: () => get_defs_exports,
|
|
352
494
|
$lxm: () => $lxm3,
|
|
353
|
-
$nsid: () => $
|
|
495
|
+
$nsid: () => $nsid7,
|
|
354
496
|
$output: () => $output3,
|
|
355
497
|
$params: () => $params3,
|
|
356
498
|
main: () => main6
|
|
@@ -360,24 +502,24 @@ __export(get_exports, {
|
|
|
360
502
|
var get_defs_exports = {};
|
|
361
503
|
__export(get_defs_exports, {
|
|
362
504
|
$lxm: () => $lxm3,
|
|
363
|
-
$nsid: () => $
|
|
505
|
+
$nsid: () => $nsid7,
|
|
364
506
|
$output: () => $output3,
|
|
365
507
|
$params: () => $params3,
|
|
366
508
|
main: () => main6
|
|
367
509
|
});
|
|
368
|
-
import { l as
|
|
369
|
-
var $
|
|
370
|
-
var main6 =
|
|
371
|
-
$
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
uri:
|
|
375
|
-
cid:
|
|
376
|
-
cart:
|
|
377
|
-
checkoutUrl:
|
|
378
|
-
tips:
|
|
379
|
-
subscriptions:
|
|
380
|
-
|
|
510
|
+
import { l as l7 } from "@atproto/lex";
|
|
511
|
+
var $nsid7 = "com.atiproto.account.cart.get";
|
|
512
|
+
var main6 = l7.query(
|
|
513
|
+
$nsid7,
|
|
514
|
+
l7.params({ uri: l7.string({ format: "at-uri" }) }),
|
|
515
|
+
l7.jsonPayload({
|
|
516
|
+
uri: l7.string({ format: "at-uri" }),
|
|
517
|
+
cid: l7.optional(l7.string({ format: "cid" })),
|
|
518
|
+
cart: l7.ref((() => view)),
|
|
519
|
+
checkoutUrl: l7.optional(l7.string({ format: "uri" })),
|
|
520
|
+
tips: l7.array(l7.ref((() => view2))),
|
|
521
|
+
subscriptions: l7.array(
|
|
522
|
+
l7.ref(
|
|
381
523
|
(() => view3)
|
|
382
524
|
)
|
|
383
525
|
)
|
|
@@ -392,7 +534,7 @@ var list_exports = {};
|
|
|
392
534
|
__export(list_exports, {
|
|
393
535
|
$defs: () => list_defs_exports,
|
|
394
536
|
$lxm: () => $lxm4,
|
|
395
|
-
$nsid: () => $
|
|
537
|
+
$nsid: () => $nsid8,
|
|
396
538
|
$output: () => $output4,
|
|
397
539
|
$params: () => $params4,
|
|
398
540
|
cartResponse: () => cartResponse,
|
|
@@ -403,38 +545,38 @@ __export(list_exports, {
|
|
|
403
545
|
var list_defs_exports = {};
|
|
404
546
|
__export(list_defs_exports, {
|
|
405
547
|
$lxm: () => $lxm4,
|
|
406
|
-
$nsid: () => $
|
|
548
|
+
$nsid: () => $nsid8,
|
|
407
549
|
$output: () => $output4,
|
|
408
550
|
$params: () => $params4,
|
|
409
551
|
cartResponse: () => cartResponse,
|
|
410
552
|
main: () => main7
|
|
411
553
|
});
|
|
412
|
-
import { l as
|
|
413
|
-
var $
|
|
414
|
-
var main7 =
|
|
415
|
-
$
|
|
416
|
-
|
|
417
|
-
status:
|
|
418
|
-
cursor:
|
|
419
|
-
limit:
|
|
420
|
-
|
|
554
|
+
import { l as l8 } from "@atproto/lex";
|
|
555
|
+
var $nsid8 = "com.atiproto.account.cart.list";
|
|
556
|
+
var main7 = l8.query(
|
|
557
|
+
$nsid8,
|
|
558
|
+
l8.params({
|
|
559
|
+
status: l8.optional(l8.enum(["open", "completed", "expired", "abandoned"])),
|
|
560
|
+
cursor: l8.optional(l8.string({ maxLength: 512 })),
|
|
561
|
+
limit: l8.optional(
|
|
562
|
+
l8.withDefault(l8.integer({ minimum: 1, maximum: 100 }), 20)
|
|
421
563
|
)
|
|
422
564
|
}),
|
|
423
|
-
|
|
424
|
-
carts:
|
|
425
|
-
cursor:
|
|
565
|
+
l8.jsonPayload({
|
|
566
|
+
carts: l8.array(l8.ref((() => cartResponse))),
|
|
567
|
+
cursor: l8.optional(l8.string({ maxLength: 512 }))
|
|
426
568
|
})
|
|
427
569
|
);
|
|
428
570
|
var $lxm4 = main7.nsid;
|
|
429
571
|
var $params4 = main7.parameters;
|
|
430
572
|
var $output4 = main7.output;
|
|
431
|
-
var cartResponse =
|
|
432
|
-
$
|
|
573
|
+
var cartResponse = l8.typedObject(
|
|
574
|
+
$nsid8,
|
|
433
575
|
"cartResponse",
|
|
434
|
-
|
|
435
|
-
uri:
|
|
436
|
-
cid:
|
|
437
|
-
record:
|
|
576
|
+
l8.object({
|
|
577
|
+
uri: l8.string({ format: "at-uri" }),
|
|
578
|
+
cid: l8.string({ format: "cid" }),
|
|
579
|
+
record: l8.ref((() => view))
|
|
438
580
|
})
|
|
439
581
|
);
|
|
440
582
|
|
|
@@ -444,7 +586,7 @@ __export(put_exports, {
|
|
|
444
586
|
$defs: () => put_defs_exports,
|
|
445
587
|
$input: () => $input3,
|
|
446
588
|
$lxm: () => $lxm5,
|
|
447
|
-
$nsid: () => $
|
|
589
|
+
$nsid: () => $nsid9,
|
|
448
590
|
$output: () => $output5,
|
|
449
591
|
$params: () => $params5,
|
|
450
592
|
main: () => main8
|
|
@@ -455,23 +597,33 @@ var put_defs_exports = {};
|
|
|
455
597
|
__export(put_defs_exports, {
|
|
456
598
|
$input: () => $input3,
|
|
457
599
|
$lxm: () => $lxm5,
|
|
458
|
-
$nsid: () => $
|
|
600
|
+
$nsid: () => $nsid9,
|
|
459
601
|
$output: () => $output5,
|
|
460
602
|
$params: () => $params5,
|
|
461
603
|
main: () => main8
|
|
462
604
|
});
|
|
463
|
-
import { l as
|
|
464
|
-
var $
|
|
465
|
-
var main8 =
|
|
466
|
-
$
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
uri:
|
|
470
|
-
record:
|
|
605
|
+
import { l as l9 } from "@atproto/lex";
|
|
606
|
+
var $nsid9 = "com.atiproto.account.cart.put";
|
|
607
|
+
var main8 = l9.procedure(
|
|
608
|
+
$nsid9,
|
|
609
|
+
l9.params(),
|
|
610
|
+
l9.jsonPayload({
|
|
611
|
+
uri: l9.string({ format: "at-uri" }),
|
|
612
|
+
record: l9.ref((() => main)),
|
|
613
|
+
workflow: l9.optional(
|
|
614
|
+
l9.ref(
|
|
615
|
+
(() => inboundWorkflow)
|
|
616
|
+
)
|
|
617
|
+
)
|
|
471
618
|
}),
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
619
|
+
l9.jsonPayload({
|
|
620
|
+
workflow: l9.optional(
|
|
621
|
+
l9.ref(
|
|
622
|
+
(() => outboundWorkflow)
|
|
623
|
+
)
|
|
624
|
+
),
|
|
625
|
+
uri: l9.optional(l9.string({ format: "at-uri" })),
|
|
626
|
+
cid: l9.optional(l9.string({ format: "cid" }))
|
|
475
627
|
})
|
|
476
628
|
);
|
|
477
629
|
var $lxm5 = main8.nsid;
|
|
@@ -491,7 +643,7 @@ var get_exports2 = {};
|
|
|
491
643
|
__export(get_exports2, {
|
|
492
644
|
$defs: () => get_defs_exports2,
|
|
493
645
|
$lxm: () => $lxm6,
|
|
494
|
-
$nsid: () => $
|
|
646
|
+
$nsid: () => $nsid11,
|
|
495
647
|
$output: () => $output6,
|
|
496
648
|
$params: () => $params6,
|
|
497
649
|
main: () => main10
|
|
@@ -501,12 +653,12 @@ __export(get_exports2, {
|
|
|
501
653
|
var get_defs_exports2 = {};
|
|
502
654
|
__export(get_defs_exports2, {
|
|
503
655
|
$lxm: () => $lxm6,
|
|
504
|
-
$nsid: () => $
|
|
656
|
+
$nsid: () => $nsid11,
|
|
505
657
|
$output: () => $output6,
|
|
506
658
|
$params: () => $params6,
|
|
507
659
|
main: () => main10
|
|
508
660
|
});
|
|
509
|
-
import { l as
|
|
661
|
+
import { l as l11 } from "@atproto/lex";
|
|
510
662
|
|
|
511
663
|
// src/lexicons/com/atiproto/profile.defs.ts
|
|
512
664
|
var profile_defs_exports = {};
|
|
@@ -518,7 +670,7 @@ __export(profile_defs_exports, {
|
|
|
518
670
|
$ifMatches: () => $ifMatches4,
|
|
519
671
|
$isTypeOf: () => $isTypeOf4,
|
|
520
672
|
$matches: () => $matches4,
|
|
521
|
-
$nsid: () => $
|
|
673
|
+
$nsid: () => $nsid10,
|
|
522
674
|
$parse: () => $parse4,
|
|
523
675
|
$safeParse: () => $safeParse4,
|
|
524
676
|
$safeValidate: () => $safeValidate4,
|
|
@@ -527,17 +679,17 @@ __export(profile_defs_exports, {
|
|
|
527
679
|
main: () => main9,
|
|
528
680
|
view: () => view4
|
|
529
681
|
});
|
|
530
|
-
import { l as
|
|
531
|
-
var $
|
|
532
|
-
var main9 =
|
|
682
|
+
import { l as l10 } from "@atproto/lex";
|
|
683
|
+
var $nsid10 = "com.atiproto.profile";
|
|
684
|
+
var main9 = l10.record(
|
|
533
685
|
"literal:self",
|
|
534
|
-
$
|
|
535
|
-
|
|
536
|
-
acceptsTips:
|
|
537
|
-
acceptsSubscriptions:
|
|
538
|
-
disableReceiptNotifications:
|
|
539
|
-
createdAt:
|
|
540
|
-
updatedAt:
|
|
686
|
+
$nsid10,
|
|
687
|
+
l10.object({
|
|
688
|
+
acceptsTips: l10.optional(l10.boolean()),
|
|
689
|
+
acceptsSubscriptions: l10.optional(l10.boolean()),
|
|
690
|
+
disableReceiptNotifications: l10.optional(l10.boolean()),
|
|
691
|
+
createdAt: l10.string({ format: "datetime" }),
|
|
692
|
+
updatedAt: l10.optional(l10.string({ format: "datetime" }))
|
|
541
693
|
})
|
|
542
694
|
);
|
|
543
695
|
var $isTypeOf4 = /* @__PURE__ */ main9.isTypeOf.bind(main9);
|
|
@@ -552,30 +704,30 @@ var $parse4 = /* @__PURE__ */ main9.parse.bind(main9);
|
|
|
552
704
|
var $safeParse4 = /* @__PURE__ */ main9.safeParse.bind(main9);
|
|
553
705
|
var $validate4 = /* @__PURE__ */ main9.validate.bind(main9);
|
|
554
706
|
var $safeValidate4 = /* @__PURE__ */ main9.safeValidate.bind(main9);
|
|
555
|
-
var view4 =
|
|
556
|
-
$
|
|
707
|
+
var view4 = l10.typedObject(
|
|
708
|
+
$nsid10,
|
|
557
709
|
"view",
|
|
558
|
-
|
|
559
|
-
uri:
|
|
560
|
-
acceptsTips:
|
|
561
|
-
acceptsSubscriptions:
|
|
562
|
-
disableReceiptNotifications:
|
|
563
|
-
createdAt:
|
|
564
|
-
updatedAt:
|
|
710
|
+
l10.object({
|
|
711
|
+
uri: l10.string({ format: "at-uri" }),
|
|
712
|
+
acceptsTips: l10.optional(l10.boolean()),
|
|
713
|
+
acceptsSubscriptions: l10.optional(l10.boolean()),
|
|
714
|
+
disableReceiptNotifications: l10.optional(l10.boolean()),
|
|
715
|
+
createdAt: l10.string({ format: "datetime" }),
|
|
716
|
+
updatedAt: l10.optional(l10.string({ format: "datetime" }))
|
|
565
717
|
})
|
|
566
718
|
);
|
|
567
719
|
|
|
568
720
|
// src/lexicons/com/atiproto/account/profile/get.defs.ts
|
|
569
|
-
var $
|
|
570
|
-
var main10 =
|
|
571
|
-
$
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
uri:
|
|
575
|
-
cid:
|
|
576
|
-
profile:
|
|
577
|
-
hasProfile:
|
|
578
|
-
readyForPayment:
|
|
721
|
+
var $nsid11 = "com.atiproto.account.profile.get";
|
|
722
|
+
var main10 = l11.query(
|
|
723
|
+
$nsid11,
|
|
724
|
+
l11.params(),
|
|
725
|
+
l11.jsonPayload({
|
|
726
|
+
uri: l11.optional(l11.string({ format: "at-uri" })),
|
|
727
|
+
cid: l11.optional(l11.string({ format: "cid" })),
|
|
728
|
+
profile: l11.ref((() => view4)),
|
|
729
|
+
hasProfile: l11.boolean(),
|
|
730
|
+
readyForPayment: l11.boolean()
|
|
579
731
|
})
|
|
580
732
|
);
|
|
581
733
|
var $lxm6 = main10.nsid;
|
|
@@ -588,7 +740,7 @@ __export(put_exports2, {
|
|
|
588
740
|
$defs: () => put_defs_exports2,
|
|
589
741
|
$input: () => $input4,
|
|
590
742
|
$lxm: () => $lxm7,
|
|
591
|
-
$nsid: () => $
|
|
743
|
+
$nsid: () => $nsid12,
|
|
592
744
|
$output: () => $output7,
|
|
593
745
|
$params: () => $params7,
|
|
594
746
|
main: () => main11
|
|
@@ -599,27 +751,39 @@ var put_defs_exports2 = {};
|
|
|
599
751
|
__export(put_defs_exports2, {
|
|
600
752
|
$input: () => $input4,
|
|
601
753
|
$lxm: () => $lxm7,
|
|
602
|
-
$nsid: () => $
|
|
754
|
+
$nsid: () => $nsid12,
|
|
603
755
|
$output: () => $output7,
|
|
604
756
|
$params: () => $params7,
|
|
605
757
|
main: () => main11
|
|
606
758
|
});
|
|
607
|
-
import { l as
|
|
608
|
-
var $
|
|
609
|
-
var main11 =
|
|
610
|
-
$
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
acceptsTips:
|
|
614
|
-
acceptsSubscriptions:
|
|
615
|
-
disableReceiptNotifications:
|
|
759
|
+
import { l as l12 } from "@atproto/lex";
|
|
760
|
+
var $nsid12 = "com.atiproto.account.profile.put";
|
|
761
|
+
var main11 = l12.procedure(
|
|
762
|
+
$nsid12,
|
|
763
|
+
l12.params(),
|
|
764
|
+
l12.jsonPayload({
|
|
765
|
+
acceptsTips: l12.optional(l12.boolean()),
|
|
766
|
+
acceptsSubscriptions: l12.optional(l12.boolean()),
|
|
767
|
+
disableReceiptNotifications: l12.optional(l12.boolean()),
|
|
768
|
+
workflow: l12.optional(
|
|
769
|
+
l12.ref(
|
|
770
|
+
(() => inboundWorkflow)
|
|
771
|
+
)
|
|
772
|
+
)
|
|
616
773
|
}),
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
774
|
+
l12.jsonPayload({
|
|
775
|
+
workflow: l12.optional(
|
|
776
|
+
l12.ref(
|
|
777
|
+
(() => outboundWorkflow)
|
|
778
|
+
)
|
|
779
|
+
),
|
|
780
|
+
uri: l12.optional(l12.string({ format: "at-uri" })),
|
|
781
|
+
cid: l12.optional(l12.string({ format: "cid" })),
|
|
782
|
+
profile: l12.optional(
|
|
783
|
+
l12.ref((() => view4))
|
|
784
|
+
),
|
|
785
|
+
hasProfile: l12.optional(l12.boolean()),
|
|
786
|
+
readyForPayment: l12.optional(l12.boolean())
|
|
623
787
|
})
|
|
624
788
|
);
|
|
625
789
|
var $lxm7 = main11.nsid;
|
|
@@ -640,7 +804,7 @@ var get_exports3 = {};
|
|
|
640
804
|
__export(get_exports3, {
|
|
641
805
|
$defs: () => get_defs_exports3,
|
|
642
806
|
$lxm: () => $lxm8,
|
|
643
|
-
$nsid: () => $
|
|
807
|
+
$nsid: () => $nsid13,
|
|
644
808
|
$output: () => $output8,
|
|
645
809
|
$params: () => $params8,
|
|
646
810
|
main: () => main12
|
|
@@ -650,21 +814,21 @@ __export(get_exports3, {
|
|
|
650
814
|
var get_defs_exports3 = {};
|
|
651
815
|
__export(get_defs_exports3, {
|
|
652
816
|
$lxm: () => $lxm8,
|
|
653
|
-
$nsid: () => $
|
|
817
|
+
$nsid: () => $nsid13,
|
|
654
818
|
$output: () => $output8,
|
|
655
819
|
$params: () => $params8,
|
|
656
820
|
main: () => main12
|
|
657
821
|
});
|
|
658
|
-
import { l as
|
|
659
|
-
var $
|
|
660
|
-
var main12 =
|
|
661
|
-
$
|
|
662
|
-
|
|
663
|
-
uri:
|
|
664
|
-
sender:
|
|
822
|
+
import { l as l13 } from "@atproto/lex";
|
|
823
|
+
var $nsid13 = "com.atiproto.account.subscription.get";
|
|
824
|
+
var main12 = l13.query(
|
|
825
|
+
$nsid13,
|
|
826
|
+
l13.params({
|
|
827
|
+
uri: l13.optional(l13.string({ format: "at-uri" })),
|
|
828
|
+
sender: l13.optional(l13.string({ format: "did" }))
|
|
665
829
|
}),
|
|
666
|
-
|
|
667
|
-
subscription:
|
|
830
|
+
l13.jsonPayload({
|
|
831
|
+
subscription: l13.ref(
|
|
668
832
|
(() => view3)
|
|
669
833
|
)
|
|
670
834
|
})
|
|
@@ -678,7 +842,7 @@ var list_exports2 = {};
|
|
|
678
842
|
__export(list_exports2, {
|
|
679
843
|
$defs: () => list_defs_exports2,
|
|
680
844
|
$lxm: () => $lxm9,
|
|
681
|
-
$nsid: () => $
|
|
845
|
+
$nsid: () => $nsid14,
|
|
682
846
|
$output: () => $output9,
|
|
683
847
|
$params: () => $params9,
|
|
684
848
|
main: () => main13
|
|
@@ -688,28 +852,28 @@ __export(list_exports2, {
|
|
|
688
852
|
var list_defs_exports2 = {};
|
|
689
853
|
__export(list_defs_exports2, {
|
|
690
854
|
$lxm: () => $lxm9,
|
|
691
|
-
$nsid: () => $
|
|
855
|
+
$nsid: () => $nsid14,
|
|
692
856
|
$output: () => $output9,
|
|
693
857
|
$params: () => $params9,
|
|
694
858
|
main: () => main13
|
|
695
859
|
});
|
|
696
|
-
import { l as
|
|
697
|
-
var $
|
|
698
|
-
var main13 =
|
|
699
|
-
$
|
|
700
|
-
|
|
701
|
-
cursor:
|
|
702
|
-
limit:
|
|
703
|
-
|
|
860
|
+
import { l as l14 } from "@atproto/lex";
|
|
861
|
+
var $nsid14 = "com.atiproto.account.subscription.list";
|
|
862
|
+
var main13 = l14.query(
|
|
863
|
+
$nsid14,
|
|
864
|
+
l14.params({
|
|
865
|
+
cursor: l14.optional(l14.string({ maxLength: 512 })),
|
|
866
|
+
limit: l14.optional(
|
|
867
|
+
l14.withDefault(l14.integer({ minimum: 1, maximum: 100 }), 50)
|
|
704
868
|
)
|
|
705
869
|
}),
|
|
706
|
-
|
|
707
|
-
subscriptions:
|
|
708
|
-
|
|
870
|
+
l14.jsonPayload({
|
|
871
|
+
subscriptions: l14.array(
|
|
872
|
+
l14.ref(
|
|
709
873
|
(() => view3)
|
|
710
874
|
)
|
|
711
875
|
),
|
|
712
|
-
cursor:
|
|
876
|
+
cursor: l14.optional(l14.string({ maxLength: 512 }))
|
|
713
877
|
})
|
|
714
878
|
);
|
|
715
879
|
var $lxm9 = main13.nsid;
|
|
@@ -721,7 +885,7 @@ var validate_exports = {};
|
|
|
721
885
|
__export(validate_exports, {
|
|
722
886
|
$defs: () => validate_defs_exports,
|
|
723
887
|
$lxm: () => $lxm10,
|
|
724
|
-
$nsid: () => $
|
|
888
|
+
$nsid: () => $nsid15,
|
|
725
889
|
$output: () => $output10,
|
|
726
890
|
$params: () => $params10,
|
|
727
891
|
main: () => main14
|
|
@@ -731,25 +895,25 @@ __export(validate_exports, {
|
|
|
731
895
|
var validate_defs_exports = {};
|
|
732
896
|
__export(validate_defs_exports, {
|
|
733
897
|
$lxm: () => $lxm10,
|
|
734
|
-
$nsid: () => $
|
|
898
|
+
$nsid: () => $nsid15,
|
|
735
899
|
$output: () => $output10,
|
|
736
900
|
$params: () => $params10,
|
|
737
901
|
main: () => main14
|
|
738
902
|
});
|
|
739
|
-
import { l as
|
|
740
|
-
var $
|
|
741
|
-
var main14 =
|
|
742
|
-
$
|
|
743
|
-
|
|
744
|
-
subscriptionUri:
|
|
745
|
-
sender:
|
|
746
|
-
amount:
|
|
903
|
+
import { l as l15 } from "@atproto/lex";
|
|
904
|
+
var $nsid15 = "com.atiproto.account.subscription.validate";
|
|
905
|
+
var main14 = l15.query(
|
|
906
|
+
$nsid15,
|
|
907
|
+
l15.params({
|
|
908
|
+
subscriptionUri: l15.optional(l15.string({ format: "at-uri" })),
|
|
909
|
+
sender: l15.optional(l15.string({ format: "did" })),
|
|
910
|
+
amount: l15.optional(l15.integer())
|
|
747
911
|
}),
|
|
748
|
-
|
|
749
|
-
valid:
|
|
750
|
-
amount:
|
|
751
|
-
currency:
|
|
752
|
-
reason:
|
|
912
|
+
l15.jsonPayload({
|
|
913
|
+
valid: l15.boolean(),
|
|
914
|
+
amount: l15.optional(l15.integer()),
|
|
915
|
+
currency: l15.optional(l15.string({ maxLength: 3 })),
|
|
916
|
+
reason: l15.optional(l15.string({ maxLength: 1024 }))
|
|
753
917
|
})
|
|
754
918
|
);
|
|
755
919
|
var $lxm10 = main14.nsid;
|
|
@@ -769,7 +933,7 @@ var get_exports4 = {};
|
|
|
769
933
|
__export(get_exports4, {
|
|
770
934
|
$defs: () => get_defs_exports4,
|
|
771
935
|
$lxm: () => $lxm11,
|
|
772
|
-
$nsid: () => $
|
|
936
|
+
$nsid: () => $nsid16,
|
|
773
937
|
$output: () => $output11,
|
|
774
938
|
$params: () => $params11,
|
|
775
939
|
main: () => main15
|
|
@@ -779,22 +943,22 @@ __export(get_exports4, {
|
|
|
779
943
|
var get_defs_exports4 = {};
|
|
780
944
|
__export(get_defs_exports4, {
|
|
781
945
|
$lxm: () => $lxm11,
|
|
782
|
-
$nsid: () => $
|
|
946
|
+
$nsid: () => $nsid16,
|
|
783
947
|
$output: () => $output11,
|
|
784
948
|
$params: () => $params11,
|
|
785
949
|
main: () => main15
|
|
786
950
|
});
|
|
787
|
-
import { l as
|
|
788
|
-
var $
|
|
789
|
-
var main15 =
|
|
790
|
-
$
|
|
791
|
-
|
|
792
|
-
uri:
|
|
793
|
-
sender:
|
|
794
|
-
recordUri:
|
|
951
|
+
import { l as l16 } from "@atproto/lex";
|
|
952
|
+
var $nsid16 = "com.atiproto.account.tip.get";
|
|
953
|
+
var main15 = l16.query(
|
|
954
|
+
$nsid16,
|
|
955
|
+
l16.params({
|
|
956
|
+
uri: l16.optional(l16.string({ format: "at-uri" })),
|
|
957
|
+
sender: l16.optional(l16.string({ format: "did" })),
|
|
958
|
+
recordUri: l16.optional(l16.string({ format: "at-uri" }))
|
|
795
959
|
}),
|
|
796
|
-
|
|
797
|
-
tip:
|
|
960
|
+
l16.jsonPayload({
|
|
961
|
+
tip: l16.ref((() => view2))
|
|
798
962
|
})
|
|
799
963
|
);
|
|
800
964
|
var $lxm11 = main15.nsid;
|
|
@@ -806,7 +970,7 @@ var list_exports3 = {};
|
|
|
806
970
|
__export(list_exports3, {
|
|
807
971
|
$defs: () => list_defs_exports3,
|
|
808
972
|
$lxm: () => $lxm12,
|
|
809
|
-
$nsid: () => $
|
|
973
|
+
$nsid: () => $nsid17,
|
|
810
974
|
$output: () => $output12,
|
|
811
975
|
$params: () => $params12,
|
|
812
976
|
main: () => main16
|
|
@@ -816,26 +980,26 @@ __export(list_exports3, {
|
|
|
816
980
|
var list_defs_exports3 = {};
|
|
817
981
|
__export(list_defs_exports3, {
|
|
818
982
|
$lxm: () => $lxm12,
|
|
819
|
-
$nsid: () => $
|
|
983
|
+
$nsid: () => $nsid17,
|
|
820
984
|
$output: () => $output12,
|
|
821
985
|
$params: () => $params12,
|
|
822
986
|
main: () => main16
|
|
823
987
|
});
|
|
824
|
-
import { l as
|
|
825
|
-
var $
|
|
826
|
-
var main16 =
|
|
827
|
-
$
|
|
828
|
-
|
|
829
|
-
sender:
|
|
830
|
-
recordUri:
|
|
831
|
-
cursor:
|
|
832
|
-
limit:
|
|
833
|
-
|
|
988
|
+
import { l as l17 } from "@atproto/lex";
|
|
989
|
+
var $nsid17 = "com.atiproto.account.tip.list";
|
|
990
|
+
var main16 = l17.query(
|
|
991
|
+
$nsid17,
|
|
992
|
+
l17.params({
|
|
993
|
+
sender: l17.optional(l17.string({ format: "did" })),
|
|
994
|
+
recordUri: l17.optional(l17.string({ format: "at-uri" })),
|
|
995
|
+
cursor: l17.optional(l17.string({ maxLength: 512 })),
|
|
996
|
+
limit: l17.optional(
|
|
997
|
+
l17.withDefault(l17.integer({ minimum: 1, maximum: 100 }), 50)
|
|
834
998
|
)
|
|
835
999
|
}),
|
|
836
|
-
|
|
837
|
-
tips:
|
|
838
|
-
cursor:
|
|
1000
|
+
l17.jsonPayload({
|
|
1001
|
+
tips: l17.array(l17.ref((() => view2))),
|
|
1002
|
+
cursor: l17.optional(l17.string({ maxLength: 512 }))
|
|
839
1003
|
})
|
|
840
1004
|
);
|
|
841
1005
|
var $lxm12 = main16.nsid;
|
|
@@ -847,7 +1011,7 @@ var validate_exports2 = {};
|
|
|
847
1011
|
__export(validate_exports2, {
|
|
848
1012
|
$defs: () => validate_defs_exports2,
|
|
849
1013
|
$lxm: () => $lxm13,
|
|
850
|
-
$nsid: () => $
|
|
1014
|
+
$nsid: () => $nsid18,
|
|
851
1015
|
$output: () => $output13,
|
|
852
1016
|
$params: () => $params13,
|
|
853
1017
|
main: () => main17
|
|
@@ -857,52 +1021,68 @@ __export(validate_exports2, {
|
|
|
857
1021
|
var validate_defs_exports2 = {};
|
|
858
1022
|
__export(validate_defs_exports2, {
|
|
859
1023
|
$lxm: () => $lxm13,
|
|
860
|
-
$nsid: () => $
|
|
1024
|
+
$nsid: () => $nsid18,
|
|
861
1025
|
$output: () => $output13,
|
|
862
1026
|
$params: () => $params13,
|
|
863
1027
|
main: () => main17
|
|
864
1028
|
});
|
|
865
|
-
import { l as
|
|
866
|
-
var $
|
|
867
|
-
var main17 =
|
|
868
|
-
$
|
|
869
|
-
|
|
870
|
-
tipUri:
|
|
871
|
-
recordUri:
|
|
872
|
-
sender:
|
|
873
|
-
amount:
|
|
1029
|
+
import { l as l18 } from "@atproto/lex";
|
|
1030
|
+
var $nsid18 = "com.atiproto.account.tip.validate";
|
|
1031
|
+
var main17 = l18.query(
|
|
1032
|
+
$nsid18,
|
|
1033
|
+
l18.params({
|
|
1034
|
+
tipUri: l18.optional(l18.string({ format: "at-uri" })),
|
|
1035
|
+
recordUri: l18.optional(l18.string({ format: "at-uri" })),
|
|
1036
|
+
sender: l18.optional(l18.string({ format: "did" })),
|
|
1037
|
+
amount: l18.optional(l18.integer())
|
|
874
1038
|
}),
|
|
875
|
-
|
|
876
|
-
valid:
|
|
877
|
-
amount:
|
|
878
|
-
currency:
|
|
879
|
-
reason:
|
|
1039
|
+
l18.jsonPayload({
|
|
1040
|
+
valid: l18.boolean(),
|
|
1041
|
+
amount: l18.optional(l18.integer()),
|
|
1042
|
+
currency: l18.optional(l18.string({ maxLength: 3 })),
|
|
1043
|
+
reason: l18.optional(l18.string({ maxLength: 1024 }))
|
|
880
1044
|
})
|
|
881
1045
|
);
|
|
882
1046
|
var $lxm13 = main17.nsid;
|
|
883
1047
|
var $params13 = main17.parameters;
|
|
884
1048
|
var $output13 = main17.output;
|
|
885
1049
|
|
|
1050
|
+
// src/lexicons/com/atiproto/actions.ts
|
|
1051
|
+
var actions_exports = {};
|
|
1052
|
+
__export(actions_exports, {
|
|
1053
|
+
$defs: () => actions_defs_exports,
|
|
1054
|
+
$nsid: () => $nsid,
|
|
1055
|
+
create: () => create,
|
|
1056
|
+
delete: () => delete$0,
|
|
1057
|
+
error: () => error,
|
|
1058
|
+
inboundWorkflow: () => inboundWorkflow,
|
|
1059
|
+
outboundWorkflow: () => outboundWorkflow,
|
|
1060
|
+
raise: () => raise,
|
|
1061
|
+
recordResult: () => recordResult,
|
|
1062
|
+
response: () => response,
|
|
1063
|
+
update: () => update
|
|
1064
|
+
});
|
|
1065
|
+
|
|
886
1066
|
// src/lexicons/com/atiproto/authEnhanced.ts
|
|
887
1067
|
var authEnhanced_exports = {};
|
|
888
1068
|
__export(authEnhanced_exports, {
|
|
889
1069
|
$defs: () => authEnhanced_defs_exports,
|
|
890
|
-
$nsid: () => $
|
|
1070
|
+
$nsid: () => $nsid19,
|
|
891
1071
|
main: () => main18
|
|
892
1072
|
});
|
|
893
1073
|
|
|
894
1074
|
// src/lexicons/com/atiproto/authEnhanced.defs.ts
|
|
895
1075
|
var authEnhanced_defs_exports = {};
|
|
896
1076
|
__export(authEnhanced_defs_exports, {
|
|
897
|
-
$nsid: () => $
|
|
1077
|
+
$nsid: () => $nsid19,
|
|
898
1078
|
main: () => main18
|
|
899
1079
|
});
|
|
900
|
-
import { l as
|
|
901
|
-
var $
|
|
902
|
-
var main18 =
|
|
903
|
-
$
|
|
1080
|
+
import { l as l19 } from "@atproto/lex";
|
|
1081
|
+
var $nsid19 = "com.atiproto.authEnhanced";
|
|
1082
|
+
var main18 = l19.permissionSet(
|
|
1083
|
+
$nsid19,
|
|
904
1084
|
[
|
|
905
|
-
|
|
1085
|
+
l19.permission("repo", {
|
|
906
1086
|
collection: [
|
|
907
1087
|
"com.atiproto.cart",
|
|
908
1088
|
"com.atiproto.subscription",
|
|
@@ -910,7 +1090,7 @@ var main18 = l18.permissionSet(
|
|
|
910
1090
|
"com.atiproto.profile"
|
|
911
1091
|
]
|
|
912
1092
|
}),
|
|
913
|
-
|
|
1093
|
+
l19.permission("rpc", {
|
|
914
1094
|
aud: "*",
|
|
915
1095
|
lxm: [
|
|
916
1096
|
"com.atiproto.account.cart.clone",
|
|
@@ -954,29 +1134,29 @@ var main18 = l18.permissionSet(
|
|
|
954
1134
|
var authGeneral_exports = {};
|
|
955
1135
|
__export(authGeneral_exports, {
|
|
956
1136
|
$defs: () => authGeneral_defs_exports,
|
|
957
|
-
$nsid: () => $
|
|
1137
|
+
$nsid: () => $nsid20,
|
|
958
1138
|
main: () => main19
|
|
959
1139
|
});
|
|
960
1140
|
|
|
961
1141
|
// src/lexicons/com/atiproto/authGeneral.defs.ts
|
|
962
1142
|
var authGeneral_defs_exports = {};
|
|
963
1143
|
__export(authGeneral_defs_exports, {
|
|
964
|
-
$nsid: () => $
|
|
1144
|
+
$nsid: () => $nsid20,
|
|
965
1145
|
main: () => main19
|
|
966
1146
|
});
|
|
967
|
-
import { l as
|
|
968
|
-
var $
|
|
969
|
-
var main19 =
|
|
970
|
-
$
|
|
1147
|
+
import { l as l20 } from "@atproto/lex";
|
|
1148
|
+
var $nsid20 = "com.atiproto.authGeneral";
|
|
1149
|
+
var main19 = l20.permissionSet(
|
|
1150
|
+
$nsid20,
|
|
971
1151
|
[
|
|
972
|
-
|
|
1152
|
+
l20.permission("repo", {
|
|
973
1153
|
collection: [
|
|
974
1154
|
"com.atiproto.cart",
|
|
975
1155
|
"com.atiproto.subscription",
|
|
976
1156
|
"com.atiproto.tip"
|
|
977
1157
|
]
|
|
978
1158
|
}),
|
|
979
|
-
|
|
1159
|
+
l20.permission("rpc", {
|
|
980
1160
|
aud: "*",
|
|
981
1161
|
lxm: [
|
|
982
1162
|
"com.atiproto.account.cart.clone",
|
|
@@ -1025,7 +1205,7 @@ __export(cart_exports2, {
|
|
|
1025
1205
|
$ifMatches: () => $ifMatches,
|
|
1026
1206
|
$isTypeOf: () => $isTypeOf,
|
|
1027
1207
|
$matches: () => $matches,
|
|
1028
|
-
$nsid: () => $
|
|
1208
|
+
$nsid: () => $nsid2,
|
|
1029
1209
|
$parse: () => $parse,
|
|
1030
1210
|
$safeParse: () => $safeParse,
|
|
1031
1211
|
$safeValidate: () => $safeValidate,
|
|
@@ -1049,7 +1229,7 @@ var list_exports4 = {};
|
|
|
1049
1229
|
__export(list_exports4, {
|
|
1050
1230
|
$defs: () => list_defs_exports4,
|
|
1051
1231
|
$lxm: () => $lxm14,
|
|
1052
|
-
$nsid: () => $
|
|
1232
|
+
$nsid: () => $nsid21,
|
|
1053
1233
|
$output: () => $output14,
|
|
1054
1234
|
$params: () => $params14,
|
|
1055
1235
|
main: () => main20
|
|
@@ -1059,34 +1239,34 @@ __export(list_exports4, {
|
|
|
1059
1239
|
var list_defs_exports4 = {};
|
|
1060
1240
|
__export(list_defs_exports4, {
|
|
1061
1241
|
$lxm: () => $lxm14,
|
|
1062
|
-
$nsid: () => $
|
|
1242
|
+
$nsid: () => $nsid21,
|
|
1063
1243
|
$output: () => $output14,
|
|
1064
1244
|
$params: () => $params14,
|
|
1065
1245
|
main: () => main20
|
|
1066
1246
|
});
|
|
1067
|
-
import { l as
|
|
1068
|
-
var $
|
|
1069
|
-
var main20 =
|
|
1070
|
-
$
|
|
1071
|
-
|
|
1072
|
-
cursor:
|
|
1073
|
-
limit:
|
|
1074
|
-
|
|
1247
|
+
import { l as l21 } from "@atproto/lex";
|
|
1248
|
+
var $nsid21 = "com.atiproto.feed.list";
|
|
1249
|
+
var main20 = l21.query(
|
|
1250
|
+
$nsid21,
|
|
1251
|
+
l21.params({
|
|
1252
|
+
cursor: l21.optional(l21.string({ maxLength: 512 })),
|
|
1253
|
+
limit: l21.optional(
|
|
1254
|
+
l21.withDefault(l21.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1075
1255
|
)
|
|
1076
1256
|
}),
|
|
1077
|
-
|
|
1078
|
-
items:
|
|
1079
|
-
|
|
1257
|
+
l21.jsonPayload({
|
|
1258
|
+
items: l21.array(
|
|
1259
|
+
l21.typedUnion(
|
|
1080
1260
|
[
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
(() =>
|
|
1261
|
+
l21.typedRef((() => view2)),
|
|
1262
|
+
l21.typedRef(
|
|
1263
|
+
(() => view3)
|
|
1084
1264
|
)
|
|
1085
1265
|
],
|
|
1086
1266
|
false
|
|
1087
1267
|
)
|
|
1088
1268
|
),
|
|
1089
|
-
cursor:
|
|
1269
|
+
cursor: l21.optional(l21.string({ maxLength: 512 }))
|
|
1090
1270
|
})
|
|
1091
1271
|
);
|
|
1092
1272
|
var $lxm14 = main20.nsid;
|
|
@@ -1110,7 +1290,7 @@ __export(cancel_exports, {
|
|
|
1110
1290
|
$defs: () => cancel_defs_exports,
|
|
1111
1291
|
$input: () => $input5,
|
|
1112
1292
|
$lxm: () => $lxm15,
|
|
1113
|
-
$nsid: () => $
|
|
1293
|
+
$nsid: () => $nsid22,
|
|
1114
1294
|
$output: () => $output15,
|
|
1115
1295
|
$params: () => $params15,
|
|
1116
1296
|
main: () => main21
|
|
@@ -1121,23 +1301,37 @@ var cancel_defs_exports = {};
|
|
|
1121
1301
|
__export(cancel_defs_exports, {
|
|
1122
1302
|
$input: () => $input5,
|
|
1123
1303
|
$lxm: () => $lxm15,
|
|
1124
|
-
$nsid: () => $
|
|
1304
|
+
$nsid: () => $nsid22,
|
|
1125
1305
|
$output: () => $output15,
|
|
1126
1306
|
$params: () => $params15,
|
|
1127
1307
|
main: () => main21
|
|
1128
1308
|
});
|
|
1129
|
-
import { l as
|
|
1130
|
-
var $
|
|
1131
|
-
var main21 =
|
|
1132
|
-
$
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1309
|
+
import { l as l22 } from "@atproto/lex";
|
|
1310
|
+
var $nsid22 = "com.atiproto.feed.subscription.cancel";
|
|
1311
|
+
var main21 = l22.procedure(
|
|
1312
|
+
$nsid22,
|
|
1313
|
+
l22.params(),
|
|
1314
|
+
l22.jsonPayload({
|
|
1315
|
+
subscriptionUri: l22.string({ format: "at-uri" }),
|
|
1316
|
+
workflow: l22.optional(
|
|
1317
|
+
l22.ref(
|
|
1318
|
+
(() => inboundWorkflow)
|
|
1319
|
+
)
|
|
1320
|
+
)
|
|
1321
|
+
}),
|
|
1322
|
+
l22.jsonPayload({
|
|
1323
|
+
workflow: l22.optional(
|
|
1324
|
+
l22.ref(
|
|
1325
|
+
(() => outboundWorkflow)
|
|
1326
|
+
)
|
|
1139
1327
|
),
|
|
1140
|
-
|
|
1328
|
+
subscriptionUri: l22.optional(l22.string({ format: "at-uri" })),
|
|
1329
|
+
subscription: l22.optional(
|
|
1330
|
+
l22.ref(
|
|
1331
|
+
(() => view3)
|
|
1332
|
+
)
|
|
1333
|
+
),
|
|
1334
|
+
accessUntil: l22.optional(l22.string({ format: "datetime" }))
|
|
1141
1335
|
})
|
|
1142
1336
|
);
|
|
1143
1337
|
var $lxm15 = main21.nsid;
|
|
@@ -1151,7 +1345,7 @@ __export(create_exports2, {
|
|
|
1151
1345
|
$defs: () => create_defs_exports2,
|
|
1152
1346
|
$input: () => $input6,
|
|
1153
1347
|
$lxm: () => $lxm16,
|
|
1154
|
-
$nsid: () => $
|
|
1348
|
+
$nsid: () => $nsid23,
|
|
1155
1349
|
$output: () => $output16,
|
|
1156
1350
|
$params: () => $params16,
|
|
1157
1351
|
main: () => main22
|
|
@@ -1162,35 +1356,47 @@ var create_defs_exports2 = {};
|
|
|
1162
1356
|
__export(create_defs_exports2, {
|
|
1163
1357
|
$input: () => $input6,
|
|
1164
1358
|
$lxm: () => $lxm16,
|
|
1165
|
-
$nsid: () => $
|
|
1359
|
+
$nsid: () => $nsid23,
|
|
1166
1360
|
$output: () => $output16,
|
|
1167
1361
|
$params: () => $params16,
|
|
1168
1362
|
main: () => main22
|
|
1169
1363
|
});
|
|
1170
|
-
import { l as
|
|
1171
|
-
var $
|
|
1172
|
-
var main22 =
|
|
1173
|
-
$
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
subject:
|
|
1177
|
-
amount:
|
|
1178
|
-
currency:
|
|
1179
|
-
interval:
|
|
1180
|
-
cartUri:
|
|
1181
|
-
redirectUrl:
|
|
1182
|
-
isPrivate:
|
|
1364
|
+
import { l as l23 } from "@atproto/lex";
|
|
1365
|
+
var $nsid23 = "com.atiproto.feed.subscription.create";
|
|
1366
|
+
var main22 = l23.procedure(
|
|
1367
|
+
$nsid23,
|
|
1368
|
+
l23.params(),
|
|
1369
|
+
l23.jsonPayload({
|
|
1370
|
+
subject: l23.string({ format: "did" }),
|
|
1371
|
+
amount: l23.optional(l23.integer()),
|
|
1372
|
+
currency: l23.string({ maxLength: 3 }),
|
|
1373
|
+
interval: l23.enum(["monthly", "yearly"]),
|
|
1374
|
+
cartUri: l23.optional(l23.string({ format: "at-uri" })),
|
|
1375
|
+
redirectUrl: l23.optional(l23.string({ format: "uri" })),
|
|
1376
|
+
isPrivate: l23.optional(l23.boolean()),
|
|
1377
|
+
workflow: l23.optional(
|
|
1378
|
+
l23.ref(
|
|
1379
|
+
(() => inboundWorkflow)
|
|
1380
|
+
)
|
|
1381
|
+
)
|
|
1183
1382
|
}),
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1383
|
+
l23.jsonPayload({
|
|
1384
|
+
workflow: l23.optional(
|
|
1385
|
+
l23.ref(
|
|
1386
|
+
(() => outboundWorkflow)
|
|
1387
|
+
)
|
|
1388
|
+
),
|
|
1389
|
+
subscriptionUri: l23.optional(l23.string({ format: "at-uri" })),
|
|
1390
|
+
subscription: l23.optional(
|
|
1391
|
+
l23.ref(
|
|
1392
|
+
(() => view3)
|
|
1393
|
+
)
|
|
1188
1394
|
),
|
|
1189
|
-
cartUri:
|
|
1190
|
-
cart:
|
|
1191
|
-
|
|
1395
|
+
cartUri: l23.optional(l23.string({ format: "at-uri" })),
|
|
1396
|
+
cart: l23.optional(
|
|
1397
|
+
l23.ref((() => view))
|
|
1192
1398
|
),
|
|
1193
|
-
checkoutUrl:
|
|
1399
|
+
checkoutUrl: l23.optional(l23.string({ format: "uri" }))
|
|
1194
1400
|
})
|
|
1195
1401
|
);
|
|
1196
1402
|
var $lxm16 = main22.nsid;
|
|
@@ -1203,7 +1409,7 @@ var get_exports5 = {};
|
|
|
1203
1409
|
__export(get_exports5, {
|
|
1204
1410
|
$defs: () => get_defs_exports5,
|
|
1205
1411
|
$lxm: () => $lxm17,
|
|
1206
|
-
$nsid: () => $
|
|
1412
|
+
$nsid: () => $nsid24,
|
|
1207
1413
|
$output: () => $output17,
|
|
1208
1414
|
$params: () => $params17,
|
|
1209
1415
|
main: () => main23
|
|
@@ -1213,21 +1419,21 @@ __export(get_exports5, {
|
|
|
1213
1419
|
var get_defs_exports5 = {};
|
|
1214
1420
|
__export(get_defs_exports5, {
|
|
1215
1421
|
$lxm: () => $lxm17,
|
|
1216
|
-
$nsid: () => $
|
|
1422
|
+
$nsid: () => $nsid24,
|
|
1217
1423
|
$output: () => $output17,
|
|
1218
1424
|
$params: () => $params17,
|
|
1219
1425
|
main: () => main23
|
|
1220
1426
|
});
|
|
1221
|
-
import { l as
|
|
1222
|
-
var $
|
|
1223
|
-
var main23 =
|
|
1224
|
-
$
|
|
1225
|
-
|
|
1226
|
-
uri:
|
|
1227
|
-
subject:
|
|
1427
|
+
import { l as l24 } from "@atproto/lex";
|
|
1428
|
+
var $nsid24 = "com.atiproto.feed.subscription.get";
|
|
1429
|
+
var main23 = l24.query(
|
|
1430
|
+
$nsid24,
|
|
1431
|
+
l24.params({
|
|
1432
|
+
uri: l24.optional(l24.string({ format: "at-uri" })),
|
|
1433
|
+
subject: l24.optional(l24.string({ format: "did" }))
|
|
1228
1434
|
}),
|
|
1229
|
-
|
|
1230
|
-
subscription:
|
|
1435
|
+
l24.jsonPayload({
|
|
1436
|
+
subscription: l24.ref(
|
|
1231
1437
|
(() => view3)
|
|
1232
1438
|
)
|
|
1233
1439
|
})
|
|
@@ -1241,7 +1447,7 @@ var list_exports5 = {};
|
|
|
1241
1447
|
__export(list_exports5, {
|
|
1242
1448
|
$defs: () => list_defs_exports5,
|
|
1243
1449
|
$lxm: () => $lxm18,
|
|
1244
|
-
$nsid: () => $
|
|
1450
|
+
$nsid: () => $nsid25,
|
|
1245
1451
|
$output: () => $output18,
|
|
1246
1452
|
$params: () => $params18,
|
|
1247
1453
|
main: () => main24
|
|
@@ -1251,28 +1457,28 @@ __export(list_exports5, {
|
|
|
1251
1457
|
var list_defs_exports5 = {};
|
|
1252
1458
|
__export(list_defs_exports5, {
|
|
1253
1459
|
$lxm: () => $lxm18,
|
|
1254
|
-
$nsid: () => $
|
|
1460
|
+
$nsid: () => $nsid25,
|
|
1255
1461
|
$output: () => $output18,
|
|
1256
1462
|
$params: () => $params18,
|
|
1257
1463
|
main: () => main24
|
|
1258
1464
|
});
|
|
1259
|
-
import { l as
|
|
1260
|
-
var $
|
|
1261
|
-
var main24 =
|
|
1262
|
-
$
|
|
1263
|
-
|
|
1264
|
-
cursor:
|
|
1265
|
-
limit:
|
|
1266
|
-
|
|
1465
|
+
import { l as l25 } from "@atproto/lex";
|
|
1466
|
+
var $nsid25 = "com.atiproto.feed.subscription.list";
|
|
1467
|
+
var main24 = l25.query(
|
|
1468
|
+
$nsid25,
|
|
1469
|
+
l25.params({
|
|
1470
|
+
cursor: l25.optional(l25.string({ maxLength: 512 })),
|
|
1471
|
+
limit: l25.optional(
|
|
1472
|
+
l25.withDefault(l25.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1267
1473
|
)
|
|
1268
1474
|
}),
|
|
1269
|
-
|
|
1270
|
-
subscriptions:
|
|
1271
|
-
|
|
1475
|
+
l25.jsonPayload({
|
|
1476
|
+
subscriptions: l25.array(
|
|
1477
|
+
l25.ref(
|
|
1272
1478
|
(() => view3)
|
|
1273
1479
|
)
|
|
1274
1480
|
),
|
|
1275
|
-
cursor:
|
|
1481
|
+
cursor: l25.optional(l25.string({ maxLength: 512 }))
|
|
1276
1482
|
})
|
|
1277
1483
|
);
|
|
1278
1484
|
var $lxm18 = main24.nsid;
|
|
@@ -1285,7 +1491,7 @@ __export(put_exports3, {
|
|
|
1285
1491
|
$defs: () => put_defs_exports3,
|
|
1286
1492
|
$input: () => $input7,
|
|
1287
1493
|
$lxm: () => $lxm19,
|
|
1288
|
-
$nsid: () => $
|
|
1494
|
+
$nsid: () => $nsid26,
|
|
1289
1495
|
$output: () => $output19,
|
|
1290
1496
|
$params: () => $params19,
|
|
1291
1497
|
main: () => main25
|
|
@@ -1296,25 +1502,35 @@ var put_defs_exports3 = {};
|
|
|
1296
1502
|
__export(put_defs_exports3, {
|
|
1297
1503
|
$input: () => $input7,
|
|
1298
1504
|
$lxm: () => $lxm19,
|
|
1299
|
-
$nsid: () => $
|
|
1505
|
+
$nsid: () => $nsid26,
|
|
1300
1506
|
$output: () => $output19,
|
|
1301
1507
|
$params: () => $params19,
|
|
1302
1508
|
main: () => main25
|
|
1303
1509
|
});
|
|
1304
|
-
import { l as
|
|
1305
|
-
var $
|
|
1306
|
-
var main25 =
|
|
1307
|
-
$
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
uri:
|
|
1311
|
-
record:
|
|
1510
|
+
import { l as l26 } from "@atproto/lex";
|
|
1511
|
+
var $nsid26 = "com.atiproto.feed.subscription.put";
|
|
1512
|
+
var main25 = l26.procedure(
|
|
1513
|
+
$nsid26,
|
|
1514
|
+
l26.params(),
|
|
1515
|
+
l26.jsonPayload({
|
|
1516
|
+
uri: l26.string({ format: "at-uri" }),
|
|
1517
|
+
record: l26.ref(
|
|
1312
1518
|
(() => main3)
|
|
1519
|
+
),
|
|
1520
|
+
workflow: l26.optional(
|
|
1521
|
+
l26.ref(
|
|
1522
|
+
(() => inboundWorkflow)
|
|
1523
|
+
)
|
|
1313
1524
|
)
|
|
1314
1525
|
}),
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1526
|
+
l26.jsonPayload({
|
|
1527
|
+
workflow: l26.optional(
|
|
1528
|
+
l26.ref(
|
|
1529
|
+
(() => outboundWorkflow)
|
|
1530
|
+
)
|
|
1531
|
+
),
|
|
1532
|
+
uri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1533
|
+
cid: l26.optional(l26.string({ format: "cid" }))
|
|
1318
1534
|
})
|
|
1319
1535
|
);
|
|
1320
1536
|
var $lxm19 = main25.nsid;
|
|
@@ -1327,7 +1543,7 @@ var validate_exports3 = {};
|
|
|
1327
1543
|
__export(validate_exports3, {
|
|
1328
1544
|
$defs: () => validate_defs_exports3,
|
|
1329
1545
|
$lxm: () => $lxm20,
|
|
1330
|
-
$nsid: () => $
|
|
1546
|
+
$nsid: () => $nsid27,
|
|
1331
1547
|
$output: () => $output20,
|
|
1332
1548
|
$params: () => $params20,
|
|
1333
1549
|
main: () => main26
|
|
@@ -1337,25 +1553,25 @@ __export(validate_exports3, {
|
|
|
1337
1553
|
var validate_defs_exports3 = {};
|
|
1338
1554
|
__export(validate_defs_exports3, {
|
|
1339
1555
|
$lxm: () => $lxm20,
|
|
1340
|
-
$nsid: () => $
|
|
1556
|
+
$nsid: () => $nsid27,
|
|
1341
1557
|
$output: () => $output20,
|
|
1342
1558
|
$params: () => $params20,
|
|
1343
1559
|
main: () => main26
|
|
1344
1560
|
});
|
|
1345
|
-
import { l as
|
|
1346
|
-
var $
|
|
1347
|
-
var main26 =
|
|
1348
|
-
$
|
|
1349
|
-
|
|
1350
|
-
subscriptionUri:
|
|
1351
|
-
subject:
|
|
1352
|
-
amount:
|
|
1561
|
+
import { l as l27 } from "@atproto/lex";
|
|
1562
|
+
var $nsid27 = "com.atiproto.feed.subscription.validate";
|
|
1563
|
+
var main26 = l27.query(
|
|
1564
|
+
$nsid27,
|
|
1565
|
+
l27.params({
|
|
1566
|
+
subscriptionUri: l27.optional(l27.string({ format: "at-uri" })),
|
|
1567
|
+
subject: l27.optional(l27.string({ format: "did" })),
|
|
1568
|
+
amount: l27.optional(l27.integer())
|
|
1353
1569
|
}),
|
|
1354
|
-
|
|
1355
|
-
valid:
|
|
1356
|
-
amount:
|
|
1357
|
-
currency:
|
|
1358
|
-
reason:
|
|
1570
|
+
l27.jsonPayload({
|
|
1571
|
+
valid: l27.boolean(),
|
|
1572
|
+
amount: l27.optional(l27.integer()),
|
|
1573
|
+
currency: l27.optional(l27.string({ maxLength: 3 })),
|
|
1574
|
+
reason: l27.optional(l27.string({ maxLength: 1024 }))
|
|
1359
1575
|
})
|
|
1360
1576
|
);
|
|
1361
1577
|
var $lxm20 = main26.nsid;
|
|
@@ -1378,7 +1594,7 @@ __export(create_exports3, {
|
|
|
1378
1594
|
$defs: () => create_defs_exports3,
|
|
1379
1595
|
$input: () => $input8,
|
|
1380
1596
|
$lxm: () => $lxm21,
|
|
1381
|
-
$nsid: () => $
|
|
1597
|
+
$nsid: () => $nsid28,
|
|
1382
1598
|
$output: () => $output21,
|
|
1383
1599
|
$params: () => $params21,
|
|
1384
1600
|
main: () => main27
|
|
@@ -1389,34 +1605,44 @@ var create_defs_exports3 = {};
|
|
|
1389
1605
|
__export(create_defs_exports3, {
|
|
1390
1606
|
$input: () => $input8,
|
|
1391
1607
|
$lxm: () => $lxm21,
|
|
1392
|
-
$nsid: () => $
|
|
1608
|
+
$nsid: () => $nsid28,
|
|
1393
1609
|
$output: () => $output21,
|
|
1394
1610
|
$params: () => $params21,
|
|
1395
1611
|
main: () => main27
|
|
1396
1612
|
});
|
|
1397
|
-
import { l as
|
|
1398
|
-
var $
|
|
1399
|
-
var main27 =
|
|
1400
|
-
$
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
subject:
|
|
1404
|
-
recordUri:
|
|
1405
|
-
amount:
|
|
1406
|
-
currency:
|
|
1407
|
-
cartUri:
|
|
1408
|
-
redirectUrl:
|
|
1409
|
-
message:
|
|
1410
|
-
isPrivate:
|
|
1613
|
+
import { l as l28 } from "@atproto/lex";
|
|
1614
|
+
var $nsid28 = "com.atiproto.feed.tip.create";
|
|
1615
|
+
var main27 = l28.procedure(
|
|
1616
|
+
$nsid28,
|
|
1617
|
+
l28.params(),
|
|
1618
|
+
l28.jsonPayload({
|
|
1619
|
+
subject: l28.string({ format: "did" }),
|
|
1620
|
+
recordUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1621
|
+
amount: l28.integer(),
|
|
1622
|
+
currency: l28.string({ maxLength: 3 }),
|
|
1623
|
+
cartUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1624
|
+
redirectUrl: l28.optional(l28.string({ format: "uri" })),
|
|
1625
|
+
message: l28.optional(l28.string({ maxGraphemes: 500, maxLength: 5e3 })),
|
|
1626
|
+
isPrivate: l28.optional(l28.boolean()),
|
|
1627
|
+
workflow: l28.optional(
|
|
1628
|
+
l28.ref(
|
|
1629
|
+
(() => inboundWorkflow)
|
|
1630
|
+
)
|
|
1631
|
+
)
|
|
1411
1632
|
}),
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1633
|
+
l28.jsonPayload({
|
|
1634
|
+
workflow: l28.optional(
|
|
1635
|
+
l28.ref(
|
|
1636
|
+
(() => outboundWorkflow)
|
|
1637
|
+
)
|
|
1638
|
+
),
|
|
1639
|
+
tipUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1640
|
+
tip: l28.optional(l28.ref((() => view2))),
|
|
1641
|
+
cartUri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1642
|
+
cart: l28.optional(
|
|
1643
|
+
l28.ref((() => view))
|
|
1418
1644
|
),
|
|
1419
|
-
checkoutUrl:
|
|
1645
|
+
checkoutUrl: l28.optional(l28.string({ format: "uri" }))
|
|
1420
1646
|
})
|
|
1421
1647
|
);
|
|
1422
1648
|
var $lxm21 = main27.nsid;
|
|
@@ -1429,7 +1655,7 @@ var get_exports6 = {};
|
|
|
1429
1655
|
__export(get_exports6, {
|
|
1430
1656
|
$defs: () => get_defs_exports6,
|
|
1431
1657
|
$lxm: () => $lxm22,
|
|
1432
|
-
$nsid: () => $
|
|
1658
|
+
$nsid: () => $nsid29,
|
|
1433
1659
|
$output: () => $output22,
|
|
1434
1660
|
$params: () => $params22,
|
|
1435
1661
|
main: () => main28
|
|
@@ -1439,22 +1665,22 @@ __export(get_exports6, {
|
|
|
1439
1665
|
var get_defs_exports6 = {};
|
|
1440
1666
|
__export(get_defs_exports6, {
|
|
1441
1667
|
$lxm: () => $lxm22,
|
|
1442
|
-
$nsid: () => $
|
|
1668
|
+
$nsid: () => $nsid29,
|
|
1443
1669
|
$output: () => $output22,
|
|
1444
1670
|
$params: () => $params22,
|
|
1445
1671
|
main: () => main28
|
|
1446
1672
|
});
|
|
1447
|
-
import { l as
|
|
1448
|
-
var $
|
|
1449
|
-
var main28 =
|
|
1450
|
-
$
|
|
1451
|
-
|
|
1452
|
-
uri:
|
|
1453
|
-
subject:
|
|
1454
|
-
recordUri:
|
|
1673
|
+
import { l as l29 } from "@atproto/lex";
|
|
1674
|
+
var $nsid29 = "com.atiproto.feed.tip.get";
|
|
1675
|
+
var main28 = l29.query(
|
|
1676
|
+
$nsid29,
|
|
1677
|
+
l29.params({
|
|
1678
|
+
uri: l29.optional(l29.string({ format: "at-uri" })),
|
|
1679
|
+
subject: l29.optional(l29.string({ format: "did" })),
|
|
1680
|
+
recordUri: l29.optional(l29.string({ format: "at-uri" }))
|
|
1455
1681
|
}),
|
|
1456
|
-
|
|
1457
|
-
tip:
|
|
1682
|
+
l29.jsonPayload({
|
|
1683
|
+
tip: l29.ref((() => view2))
|
|
1458
1684
|
})
|
|
1459
1685
|
);
|
|
1460
1686
|
var $lxm22 = main28.nsid;
|
|
@@ -1466,7 +1692,7 @@ var list_exports6 = {};
|
|
|
1466
1692
|
__export(list_exports6, {
|
|
1467
1693
|
$defs: () => list_defs_exports6,
|
|
1468
1694
|
$lxm: () => $lxm23,
|
|
1469
|
-
$nsid: () => $
|
|
1695
|
+
$nsid: () => $nsid30,
|
|
1470
1696
|
$output: () => $output23,
|
|
1471
1697
|
$params: () => $params23,
|
|
1472
1698
|
main: () => main29
|
|
@@ -1476,26 +1702,26 @@ __export(list_exports6, {
|
|
|
1476
1702
|
var list_defs_exports6 = {};
|
|
1477
1703
|
__export(list_defs_exports6, {
|
|
1478
1704
|
$lxm: () => $lxm23,
|
|
1479
|
-
$nsid: () => $
|
|
1705
|
+
$nsid: () => $nsid30,
|
|
1480
1706
|
$output: () => $output23,
|
|
1481
1707
|
$params: () => $params23,
|
|
1482
1708
|
main: () => main29
|
|
1483
1709
|
});
|
|
1484
|
-
import { l as
|
|
1485
|
-
var $
|
|
1486
|
-
var main29 =
|
|
1487
|
-
$
|
|
1488
|
-
|
|
1489
|
-
subject:
|
|
1490
|
-
recordUri:
|
|
1491
|
-
cursor:
|
|
1492
|
-
limit:
|
|
1493
|
-
|
|
1710
|
+
import { l as l30 } from "@atproto/lex";
|
|
1711
|
+
var $nsid30 = "com.atiproto.feed.tip.list";
|
|
1712
|
+
var main29 = l30.query(
|
|
1713
|
+
$nsid30,
|
|
1714
|
+
l30.params({
|
|
1715
|
+
subject: l30.optional(l30.string({ format: "did" })),
|
|
1716
|
+
recordUri: l30.optional(l30.string({ format: "at-uri" })),
|
|
1717
|
+
cursor: l30.optional(l30.string({ maxLength: 512 })),
|
|
1718
|
+
limit: l30.optional(
|
|
1719
|
+
l30.withDefault(l30.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1494
1720
|
)
|
|
1495
1721
|
}),
|
|
1496
|
-
|
|
1497
|
-
tips:
|
|
1498
|
-
cursor:
|
|
1722
|
+
l30.jsonPayload({
|
|
1723
|
+
tips: l30.array(l30.ref((() => view2))),
|
|
1724
|
+
cursor: l30.optional(l30.string({ maxLength: 512 }))
|
|
1499
1725
|
})
|
|
1500
1726
|
);
|
|
1501
1727
|
var $lxm23 = main29.nsid;
|
|
@@ -1508,7 +1734,7 @@ __export(put_exports4, {
|
|
|
1508
1734
|
$defs: () => put_defs_exports4,
|
|
1509
1735
|
$input: () => $input9,
|
|
1510
1736
|
$lxm: () => $lxm24,
|
|
1511
|
-
$nsid: () => $
|
|
1737
|
+
$nsid: () => $nsid31,
|
|
1512
1738
|
$output: () => $output24,
|
|
1513
1739
|
$params: () => $params24,
|
|
1514
1740
|
main: () => main30
|
|
@@ -1519,23 +1745,33 @@ var put_defs_exports4 = {};
|
|
|
1519
1745
|
__export(put_defs_exports4, {
|
|
1520
1746
|
$input: () => $input9,
|
|
1521
1747
|
$lxm: () => $lxm24,
|
|
1522
|
-
$nsid: () => $
|
|
1748
|
+
$nsid: () => $nsid31,
|
|
1523
1749
|
$output: () => $output24,
|
|
1524
1750
|
$params: () => $params24,
|
|
1525
1751
|
main: () => main30
|
|
1526
1752
|
});
|
|
1527
|
-
import { l as
|
|
1528
|
-
var $
|
|
1529
|
-
var main30 =
|
|
1530
|
-
$
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
uri:
|
|
1534
|
-
record:
|
|
1753
|
+
import { l as l31 } from "@atproto/lex";
|
|
1754
|
+
var $nsid31 = "com.atiproto.feed.tip.put";
|
|
1755
|
+
var main30 = l31.procedure(
|
|
1756
|
+
$nsid31,
|
|
1757
|
+
l31.params(),
|
|
1758
|
+
l31.jsonPayload({
|
|
1759
|
+
uri: l31.string({ format: "at-uri" }),
|
|
1760
|
+
record: l31.ref((() => main2)),
|
|
1761
|
+
workflow: l31.optional(
|
|
1762
|
+
l31.ref(
|
|
1763
|
+
(() => inboundWorkflow)
|
|
1764
|
+
)
|
|
1765
|
+
)
|
|
1535
1766
|
}),
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1767
|
+
l31.jsonPayload({
|
|
1768
|
+
workflow: l31.optional(
|
|
1769
|
+
l31.ref(
|
|
1770
|
+
(() => outboundWorkflow)
|
|
1771
|
+
)
|
|
1772
|
+
),
|
|
1773
|
+
uri: l31.optional(l31.string({ format: "at-uri" })),
|
|
1774
|
+
cid: l31.optional(l31.string({ format: "cid" }))
|
|
1539
1775
|
})
|
|
1540
1776
|
);
|
|
1541
1777
|
var $lxm24 = main30.nsid;
|
|
@@ -1548,7 +1784,7 @@ var validate_exports4 = {};
|
|
|
1548
1784
|
__export(validate_exports4, {
|
|
1549
1785
|
$defs: () => validate_defs_exports4,
|
|
1550
1786
|
$lxm: () => $lxm25,
|
|
1551
|
-
$nsid: () => $
|
|
1787
|
+
$nsid: () => $nsid32,
|
|
1552
1788
|
$output: () => $output25,
|
|
1553
1789
|
$params: () => $params25,
|
|
1554
1790
|
main: () => main31
|
|
@@ -1558,26 +1794,26 @@ __export(validate_exports4, {
|
|
|
1558
1794
|
var validate_defs_exports4 = {};
|
|
1559
1795
|
__export(validate_defs_exports4, {
|
|
1560
1796
|
$lxm: () => $lxm25,
|
|
1561
|
-
$nsid: () => $
|
|
1797
|
+
$nsid: () => $nsid32,
|
|
1562
1798
|
$output: () => $output25,
|
|
1563
1799
|
$params: () => $params25,
|
|
1564
1800
|
main: () => main31
|
|
1565
1801
|
});
|
|
1566
|
-
import { l as
|
|
1567
|
-
var $
|
|
1568
|
-
var main31 =
|
|
1569
|
-
$
|
|
1570
|
-
|
|
1571
|
-
tipUri:
|
|
1572
|
-
recordUri:
|
|
1573
|
-
subject:
|
|
1574
|
-
amount:
|
|
1802
|
+
import { l as l32 } from "@atproto/lex";
|
|
1803
|
+
var $nsid32 = "com.atiproto.feed.tip.validate";
|
|
1804
|
+
var main31 = l32.query(
|
|
1805
|
+
$nsid32,
|
|
1806
|
+
l32.params({
|
|
1807
|
+
tipUri: l32.optional(l32.string({ format: "at-uri" })),
|
|
1808
|
+
recordUri: l32.optional(l32.string({ format: "at-uri" })),
|
|
1809
|
+
subject: l32.optional(l32.string({ format: "did" })),
|
|
1810
|
+
amount: l32.optional(l32.integer())
|
|
1575
1811
|
}),
|
|
1576
|
-
|
|
1577
|
-
valid:
|
|
1578
|
-
amount:
|
|
1579
|
-
currency:
|
|
1580
|
-
reason:
|
|
1812
|
+
l32.jsonPayload({
|
|
1813
|
+
valid: l32.boolean(),
|
|
1814
|
+
amount: l32.optional(l32.integer()),
|
|
1815
|
+
currency: l32.optional(l32.string({ maxLength: 3 })),
|
|
1816
|
+
reason: l32.optional(l32.string({ maxLength: 1024 }))
|
|
1581
1817
|
})
|
|
1582
1818
|
);
|
|
1583
1819
|
var $lxm25 = main31.nsid;
|
|
@@ -1595,7 +1831,7 @@ __export(profile_exports2, {
|
|
|
1595
1831
|
$ifMatches: () => $ifMatches4,
|
|
1596
1832
|
$isTypeOf: () => $isTypeOf4,
|
|
1597
1833
|
$matches: () => $matches4,
|
|
1598
|
-
$nsid: () => $
|
|
1834
|
+
$nsid: () => $nsid10,
|
|
1599
1835
|
$parse: () => $parse4,
|
|
1600
1836
|
$safeParse: () => $safeParse4,
|
|
1601
1837
|
$safeValidate: () => $safeValidate4,
|
|
@@ -1624,7 +1860,7 @@ var get_exports7 = {};
|
|
|
1624
1860
|
__export(get_exports7, {
|
|
1625
1861
|
$defs: () => get_defs_exports7,
|
|
1626
1862
|
$lxm: () => $lxm26,
|
|
1627
|
-
$nsid: () => $
|
|
1863
|
+
$nsid: () => $nsid33,
|
|
1628
1864
|
$output: () => $output26,
|
|
1629
1865
|
$params: () => $params26,
|
|
1630
1866
|
main: () => main32
|
|
@@ -1634,19 +1870,19 @@ __export(get_exports7, {
|
|
|
1634
1870
|
var get_defs_exports7 = {};
|
|
1635
1871
|
__export(get_defs_exports7, {
|
|
1636
1872
|
$lxm: () => $lxm26,
|
|
1637
|
-
$nsid: () => $
|
|
1873
|
+
$nsid: () => $nsid33,
|
|
1638
1874
|
$output: () => $output26,
|
|
1639
1875
|
$params: () => $params26,
|
|
1640
1876
|
main: () => main32
|
|
1641
1877
|
});
|
|
1642
|
-
import { l as
|
|
1643
|
-
var $
|
|
1644
|
-
var main32 =
|
|
1645
|
-
$
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
did:
|
|
1649
|
-
profile:
|
|
1878
|
+
import { l as l33 } from "@atproto/lex";
|
|
1879
|
+
var $nsid33 = "com.atiproto.repo.profile.get";
|
|
1880
|
+
var main32 = l33.query(
|
|
1881
|
+
$nsid33,
|
|
1882
|
+
l33.params({ did: l33.string({ format: "did" }) }),
|
|
1883
|
+
l33.jsonPayload({
|
|
1884
|
+
did: l33.string({ format: "did" }),
|
|
1885
|
+
profile: l33.ref((() => view4))
|
|
1650
1886
|
})
|
|
1651
1887
|
);
|
|
1652
1888
|
var $lxm26 = main32.nsid;
|
|
@@ -1664,7 +1900,7 @@ var count_exports = {};
|
|
|
1664
1900
|
__export(count_exports, {
|
|
1665
1901
|
$defs: () => count_defs_exports,
|
|
1666
1902
|
$lxm: () => $lxm27,
|
|
1667
|
-
$nsid: () => $
|
|
1903
|
+
$nsid: () => $nsid34,
|
|
1668
1904
|
$output: () => $output27,
|
|
1669
1905
|
$params: () => $params27,
|
|
1670
1906
|
main: () => main33
|
|
@@ -1674,24 +1910,24 @@ __export(count_exports, {
|
|
|
1674
1910
|
var count_defs_exports = {};
|
|
1675
1911
|
__export(count_defs_exports, {
|
|
1676
1912
|
$lxm: () => $lxm27,
|
|
1677
|
-
$nsid: () => $
|
|
1913
|
+
$nsid: () => $nsid34,
|
|
1678
1914
|
$output: () => $output27,
|
|
1679
1915
|
$params: () => $params27,
|
|
1680
1916
|
main: () => main33
|
|
1681
1917
|
});
|
|
1682
|
-
import { l as
|
|
1683
|
-
var $
|
|
1684
|
-
var main33 =
|
|
1685
|
-
$
|
|
1686
|
-
|
|
1687
|
-
subject:
|
|
1688
|
-
startDate:
|
|
1689
|
-
endDate:
|
|
1918
|
+
import { l as l34 } from "@atproto/lex";
|
|
1919
|
+
var $nsid34 = "com.atiproto.repo.subscription.count";
|
|
1920
|
+
var main33 = l34.query(
|
|
1921
|
+
$nsid34,
|
|
1922
|
+
l34.params({
|
|
1923
|
+
subject: l34.optional(l34.string({ format: "did" })),
|
|
1924
|
+
startDate: l34.optional(l34.string({ format: "datetime" })),
|
|
1925
|
+
endDate: l34.optional(l34.string({ format: "datetime" }))
|
|
1690
1926
|
}),
|
|
1691
|
-
|
|
1692
|
-
count:
|
|
1693
|
-
amount:
|
|
1694
|
-
currency:
|
|
1927
|
+
l34.jsonPayload({
|
|
1928
|
+
count: l34.integer(),
|
|
1929
|
+
amount: l34.optional(l34.integer()),
|
|
1930
|
+
currency: l34.optional(l34.string({ maxLength: 3 }))
|
|
1695
1931
|
})
|
|
1696
1932
|
);
|
|
1697
1933
|
var $lxm27 = main33.nsid;
|
|
@@ -1709,7 +1945,7 @@ var count_exports2 = {};
|
|
|
1709
1945
|
__export(count_exports2, {
|
|
1710
1946
|
$defs: () => count_defs_exports2,
|
|
1711
1947
|
$lxm: () => $lxm28,
|
|
1712
|
-
$nsid: () => $
|
|
1948
|
+
$nsid: () => $nsid35,
|
|
1713
1949
|
$output: () => $output28,
|
|
1714
1950
|
$params: () => $params28,
|
|
1715
1951
|
main: () => main34
|
|
@@ -1719,25 +1955,25 @@ __export(count_exports2, {
|
|
|
1719
1955
|
var count_defs_exports2 = {};
|
|
1720
1956
|
__export(count_defs_exports2, {
|
|
1721
1957
|
$lxm: () => $lxm28,
|
|
1722
|
-
$nsid: () => $
|
|
1958
|
+
$nsid: () => $nsid35,
|
|
1723
1959
|
$output: () => $output28,
|
|
1724
1960
|
$params: () => $params28,
|
|
1725
1961
|
main: () => main34
|
|
1726
1962
|
});
|
|
1727
|
-
import { l as
|
|
1728
|
-
var $
|
|
1729
|
-
var main34 =
|
|
1730
|
-
$
|
|
1731
|
-
|
|
1732
|
-
recordUri:
|
|
1733
|
-
subject:
|
|
1734
|
-
startDate:
|
|
1735
|
-
endDate:
|
|
1963
|
+
import { l as l35 } from "@atproto/lex";
|
|
1964
|
+
var $nsid35 = "com.atiproto.repo.tip.count";
|
|
1965
|
+
var main34 = l35.query(
|
|
1966
|
+
$nsid35,
|
|
1967
|
+
l35.params({
|
|
1968
|
+
recordUri: l35.optional(l35.string({ format: "at-uri" })),
|
|
1969
|
+
subject: l35.optional(l35.string({ format: "did" })),
|
|
1970
|
+
startDate: l35.optional(l35.string({ format: "datetime" })),
|
|
1971
|
+
endDate: l35.optional(l35.string({ format: "datetime" }))
|
|
1736
1972
|
}),
|
|
1737
|
-
|
|
1738
|
-
count:
|
|
1739
|
-
amount:
|
|
1740
|
-
currency:
|
|
1973
|
+
l35.jsonPayload({
|
|
1974
|
+
count: l35.integer(),
|
|
1975
|
+
amount: l35.optional(l35.integer()),
|
|
1976
|
+
currency: l35.optional(l35.string({ maxLength: 3 }))
|
|
1741
1977
|
})
|
|
1742
1978
|
);
|
|
1743
1979
|
var $lxm28 = main34.nsid;
|
|
@@ -1755,7 +1991,7 @@ __export(subscription_exports4, {
|
|
|
1755
1991
|
$ifMatches: () => $ifMatches3,
|
|
1756
1992
|
$isTypeOf: () => $isTypeOf3,
|
|
1757
1993
|
$matches: () => $matches3,
|
|
1758
|
-
$nsid: () => $
|
|
1994
|
+
$nsid: () => $nsid4,
|
|
1759
1995
|
$parse: () => $parse3,
|
|
1760
1996
|
$safeParse: () => $safeParse3,
|
|
1761
1997
|
$safeValidate: () => $safeValidate3,
|
|
@@ -1776,7 +2012,7 @@ __export(tip_exports4, {
|
|
|
1776
2012
|
$ifMatches: () => $ifMatches2,
|
|
1777
2013
|
$isTypeOf: () => $isTypeOf2,
|
|
1778
2014
|
$matches: () => $matches2,
|
|
1779
|
-
$nsid: () => $
|
|
2015
|
+
$nsid: () => $nsid3,
|
|
1780
2016
|
$parse: () => $parse2,
|
|
1781
2017
|
$safeParse: () => $safeParse2,
|
|
1782
2018
|
$safeValidate: () => $safeValidate2,
|
|
@@ -1786,6 +2022,215 @@ __export(tip_exports4, {
|
|
|
1786
2022
|
view: () => view2
|
|
1787
2023
|
});
|
|
1788
2024
|
|
|
2025
|
+
// src/schemas/actions.json
|
|
2026
|
+
var actions_default = {
|
|
2027
|
+
lexicon: 1,
|
|
2028
|
+
id: "com.atiproto.actions",
|
|
2029
|
+
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.",
|
|
2030
|
+
defs: {
|
|
2031
|
+
create: {
|
|
2032
|
+
type: "object",
|
|
2033
|
+
description: "Instructs the agent to call com.atproto.repo.createRecord on the user's PDS.",
|
|
2034
|
+
required: ["repo", "name", "collection", "record"],
|
|
2035
|
+
properties: {
|
|
2036
|
+
repo: {
|
|
2037
|
+
type: "string",
|
|
2038
|
+
format: "did",
|
|
2039
|
+
description: "DID of the repo to write to. The PDS auth check is the source of truth for whether the write is allowed."
|
|
2040
|
+
},
|
|
2041
|
+
name: {
|
|
2042
|
+
type: "string",
|
|
2043
|
+
maxLength: 64,
|
|
2044
|
+
description: "Server-assigned name for this action; echoed back on the corresponding response so the server can correlate."
|
|
2045
|
+
},
|
|
2046
|
+
collection: {
|
|
2047
|
+
type: "string",
|
|
2048
|
+
format: "nsid"
|
|
2049
|
+
},
|
|
2050
|
+
rkey: {
|
|
2051
|
+
type: "string",
|
|
2052
|
+
maxLength: 128,
|
|
2053
|
+
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."
|
|
2054
|
+
},
|
|
2055
|
+
record: {
|
|
2056
|
+
type: "unknown"
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
update: {
|
|
2061
|
+
type: "object",
|
|
2062
|
+
description: "Instructs the agent to call com.atproto.repo.putRecord on the user's PDS.",
|
|
2063
|
+
required: ["repo", "name", "collection", "rkey", "record"],
|
|
2064
|
+
properties: {
|
|
2065
|
+
repo: {
|
|
2066
|
+
type: "string",
|
|
2067
|
+
format: "did"
|
|
2068
|
+
},
|
|
2069
|
+
name: {
|
|
2070
|
+
type: "string",
|
|
2071
|
+
maxLength: 64
|
|
2072
|
+
},
|
|
2073
|
+
collection: {
|
|
2074
|
+
type: "string",
|
|
2075
|
+
format: "nsid"
|
|
2076
|
+
},
|
|
2077
|
+
rkey: {
|
|
2078
|
+
type: "string",
|
|
2079
|
+
maxLength: 128
|
|
2080
|
+
},
|
|
2081
|
+
record: {
|
|
2082
|
+
type: "unknown"
|
|
2083
|
+
},
|
|
2084
|
+
swapCommit: {
|
|
2085
|
+
type: "string",
|
|
2086
|
+
format: "cid"
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
},
|
|
2090
|
+
delete: {
|
|
2091
|
+
type: "object",
|
|
2092
|
+
description: "Instructs the agent to call com.atproto.repo.deleteRecord on the user's PDS.",
|
|
2093
|
+
required: ["repo", "name", "collection", "rkey"],
|
|
2094
|
+
properties: {
|
|
2095
|
+
repo: {
|
|
2096
|
+
type: "string",
|
|
2097
|
+
format: "did"
|
|
2098
|
+
},
|
|
2099
|
+
name: {
|
|
2100
|
+
type: "string",
|
|
2101
|
+
maxLength: 64
|
|
2102
|
+
},
|
|
2103
|
+
collection: {
|
|
2104
|
+
type: "string",
|
|
2105
|
+
format: "nsid"
|
|
2106
|
+
},
|
|
2107
|
+
rkey: {
|
|
2108
|
+
type: "string",
|
|
2109
|
+
maxLength: 128
|
|
2110
|
+
},
|
|
2111
|
+
swapCommit: {
|
|
2112
|
+
type: "string",
|
|
2113
|
+
format: "cid"
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
raise: {
|
|
2118
|
+
type: "object",
|
|
2119
|
+
description: "Terminal action: the agent throws a WorkflowRaisedError carrying message and code. Subsequent actions in the same batch are not executed.",
|
|
2120
|
+
required: ["message"],
|
|
2121
|
+
properties: {
|
|
2122
|
+
message: {
|
|
2123
|
+
type: "string",
|
|
2124
|
+
maxLength: 1024
|
|
2125
|
+
},
|
|
2126
|
+
code: {
|
|
2127
|
+
type: "string",
|
|
2128
|
+
maxLength: 64
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
},
|
|
2132
|
+
response: {
|
|
2133
|
+
type: "object",
|
|
2134
|
+
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.",
|
|
2135
|
+
required: ["action", "name", "result"],
|
|
2136
|
+
properties: {
|
|
2137
|
+
action: {
|
|
2138
|
+
type: "string",
|
|
2139
|
+
maxLength: 32,
|
|
2140
|
+
knownValues: ["create", "update", "delete"]
|
|
2141
|
+
},
|
|
2142
|
+
name: {
|
|
2143
|
+
type: "string",
|
|
2144
|
+
maxLength: 64
|
|
2145
|
+
},
|
|
2146
|
+
result: {
|
|
2147
|
+
type: "ref",
|
|
2148
|
+
ref: "#recordResult"
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
recordResult: {
|
|
2153
|
+
type: "object",
|
|
2154
|
+
required: ["uri"],
|
|
2155
|
+
properties: {
|
|
2156
|
+
uri: {
|
|
2157
|
+
type: "string",
|
|
2158
|
+
format: "at-uri"
|
|
2159
|
+
},
|
|
2160
|
+
cid: {
|
|
2161
|
+
type: "string",
|
|
2162
|
+
format: "cid",
|
|
2163
|
+
description: "Present on create/update responses; absent on delete (the record is gone)."
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
error: {
|
|
2168
|
+
type: "object",
|
|
2169
|
+
description: "Populated by the agent when an action fails. The server's error branch uses this to construct compensating actions and a final raise.",
|
|
2170
|
+
required: ["action", "message"],
|
|
2171
|
+
properties: {
|
|
2172
|
+
action: {
|
|
2173
|
+
type: "string",
|
|
2174
|
+
maxLength: 32,
|
|
2175
|
+
description: "The verb of the action that failed (create/update/delete)."
|
|
2176
|
+
},
|
|
2177
|
+
name: {
|
|
2178
|
+
type: "string",
|
|
2179
|
+
maxLength: 64
|
|
2180
|
+
},
|
|
2181
|
+
message: {
|
|
2182
|
+
type: "string",
|
|
2183
|
+
maxLength: 1024
|
|
2184
|
+
},
|
|
2185
|
+
code: {
|
|
2186
|
+
type: "string",
|
|
2187
|
+
maxLength: 64
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
inboundWorkflow: {
|
|
2192
|
+
type: "object",
|
|
2193
|
+
description: `Agent \u2192 server callback envelope. Echoes the server's intent verbatim, except when the agent overrides to "error" after an action failure.`,
|
|
2194
|
+
required: ["intent", "responses"],
|
|
2195
|
+
properties: {
|
|
2196
|
+
intent: {
|
|
2197
|
+
type: "string",
|
|
2198
|
+
maxLength: 64
|
|
2199
|
+
},
|
|
2200
|
+
responses: {
|
|
2201
|
+
type: "array",
|
|
2202
|
+
items: {
|
|
2203
|
+
type: "ref",
|
|
2204
|
+
ref: "#response"
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
error: {
|
|
2208
|
+
type: "ref",
|
|
2209
|
+
ref: "#error"
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
outboundWorkflow: {
|
|
2214
|
+
type: "object",
|
|
2215
|
+
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`.",
|
|
2216
|
+
required: ["intent", "actions"],
|
|
2217
|
+
properties: {
|
|
2218
|
+
intent: {
|
|
2219
|
+
type: "string",
|
|
2220
|
+
maxLength: 64
|
|
2221
|
+
},
|
|
2222
|
+
actions: {
|
|
2223
|
+
type: "array",
|
|
2224
|
+
items: {
|
|
2225
|
+
type: "union",
|
|
2226
|
+
refs: ["#create", "#update", "#delete", "#raise"]
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
};
|
|
2233
|
+
|
|
1789
2234
|
// src/schemas/account/cart/clone.json
|
|
1790
2235
|
var clone_default = {
|
|
1791
2236
|
lexicon: 1,
|
|
@@ -1809,6 +2254,11 @@ var clone_default = {
|
|
|
1809
2254
|
type: "string",
|
|
1810
2255
|
format: "uri",
|
|
1811
2256
|
description: "URI to redirect to after checkout is complete/cancelled"
|
|
2257
|
+
},
|
|
2258
|
+
workflow: {
|
|
2259
|
+
type: "ref",
|
|
2260
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
2261
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
1812
2262
|
}
|
|
1813
2263
|
}
|
|
1814
2264
|
}
|
|
@@ -1817,14 +2267,12 @@ var clone_default = {
|
|
|
1817
2267
|
encoding: "application/json",
|
|
1818
2268
|
schema: {
|
|
1819
2269
|
type: "object",
|
|
1820
|
-
required: [
|
|
1821
|
-
"cart",
|
|
1822
|
-
"cartUri",
|
|
1823
|
-
"checkoutUrl",
|
|
1824
|
-
"tips",
|
|
1825
|
-
"subscriptions"
|
|
1826
|
-
],
|
|
1827
2270
|
properties: {
|
|
2271
|
+
workflow: {
|
|
2272
|
+
type: "ref",
|
|
2273
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
2274
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
2275
|
+
},
|
|
1828
2276
|
cart: {
|
|
1829
2277
|
type: "ref",
|
|
1830
2278
|
ref: "com.atiproto.cart#view",
|
|
@@ -1886,6 +2334,11 @@ var create_default = {
|
|
|
1886
2334
|
type: "string",
|
|
1887
2335
|
format: "uri",
|
|
1888
2336
|
description: "URI to redirect to after checkout is complete/cancelled"
|
|
2337
|
+
},
|
|
2338
|
+
workflow: {
|
|
2339
|
+
type: "ref",
|
|
2340
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
2341
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
1889
2342
|
}
|
|
1890
2343
|
}
|
|
1891
2344
|
}
|
|
@@ -1894,8 +2347,12 @@ var create_default = {
|
|
|
1894
2347
|
encoding: "application/json",
|
|
1895
2348
|
schema: {
|
|
1896
2349
|
type: "object",
|
|
1897
|
-
required: ["cart", "cartUri", "checkoutUrl"],
|
|
1898
2350
|
properties: {
|
|
2351
|
+
workflow: {
|
|
2352
|
+
type: "ref",
|
|
2353
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
2354
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
2355
|
+
},
|
|
1899
2356
|
cart: {
|
|
1900
2357
|
type: "ref",
|
|
1901
2358
|
ref: "com.atiproto.cart#view",
|
|
@@ -2084,6 +2541,11 @@ var put_default = {
|
|
|
2084
2541
|
record: {
|
|
2085
2542
|
type: "ref",
|
|
2086
2543
|
ref: "com.atiproto.cart"
|
|
2544
|
+
},
|
|
2545
|
+
workflow: {
|
|
2546
|
+
type: "ref",
|
|
2547
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
2548
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
2087
2549
|
}
|
|
2088
2550
|
}
|
|
2089
2551
|
}
|
|
@@ -2092,8 +2554,12 @@ var put_default = {
|
|
|
2092
2554
|
encoding: "application/json",
|
|
2093
2555
|
schema: {
|
|
2094
2556
|
type: "object",
|
|
2095
|
-
required: ["uri", "cid"],
|
|
2096
2557
|
properties: {
|
|
2558
|
+
workflow: {
|
|
2559
|
+
type: "ref",
|
|
2560
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
2561
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
2562
|
+
},
|
|
2097
2563
|
uri: {
|
|
2098
2564
|
type: "string",
|
|
2099
2565
|
format: "at-uri",
|
|
@@ -2179,6 +2645,11 @@ var put_default2 = {
|
|
|
2179
2645
|
disableReceiptNotifications: {
|
|
2180
2646
|
type: "boolean",
|
|
2181
2647
|
description: "Opt out of payment receipt DMs"
|
|
2648
|
+
},
|
|
2649
|
+
workflow: {
|
|
2650
|
+
type: "ref",
|
|
2651
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
2652
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
2182
2653
|
}
|
|
2183
2654
|
}
|
|
2184
2655
|
}
|
|
@@ -2187,14 +2658,12 @@ var put_default2 = {
|
|
|
2187
2658
|
encoding: "application/json",
|
|
2188
2659
|
schema: {
|
|
2189
2660
|
type: "object",
|
|
2190
|
-
required: [
|
|
2191
|
-
"uri",
|
|
2192
|
-
"cid",
|
|
2193
|
-
"profile",
|
|
2194
|
-
"hasProfile",
|
|
2195
|
-
"readyForPayment"
|
|
2196
|
-
],
|
|
2197
2661
|
properties: {
|
|
2662
|
+
workflow: {
|
|
2663
|
+
type: "ref",
|
|
2664
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
2665
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
2666
|
+
},
|
|
2198
2667
|
uri: {
|
|
2199
2668
|
type: "string",
|
|
2200
2669
|
format: "at-uri",
|
|
@@ -2715,7 +3184,10 @@ var list_default4 = {
|
|
|
2715
3184
|
type: "array",
|
|
2716
3185
|
items: {
|
|
2717
3186
|
type: "union",
|
|
2718
|
-
refs: [
|
|
3187
|
+
refs: [
|
|
3188
|
+
"com.atiproto.tip#view",
|
|
3189
|
+
"com.atiproto.subscription#view"
|
|
3190
|
+
]
|
|
2719
3191
|
}
|
|
2720
3192
|
},
|
|
2721
3193
|
cursor: {
|
|
@@ -2748,6 +3220,11 @@ var cancel_default = {
|
|
|
2748
3220
|
type: "string",
|
|
2749
3221
|
format: "at-uri",
|
|
2750
3222
|
description: "AT-URI of the subscription to cancel"
|
|
3223
|
+
},
|
|
3224
|
+
workflow: {
|
|
3225
|
+
type: "ref",
|
|
3226
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
3227
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
2751
3228
|
}
|
|
2752
3229
|
}
|
|
2753
3230
|
}
|
|
@@ -2756,8 +3233,12 @@ var cancel_default = {
|
|
|
2756
3233
|
encoding: "application/json",
|
|
2757
3234
|
schema: {
|
|
2758
3235
|
type: "object",
|
|
2759
|
-
required: ["subscriptionUri", "subscription", "accessUntil"],
|
|
2760
3236
|
properties: {
|
|
3237
|
+
workflow: {
|
|
3238
|
+
type: "ref",
|
|
3239
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
3240
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
3241
|
+
},
|
|
2761
3242
|
subscriptionUri: {
|
|
2762
3243
|
type: "string",
|
|
2763
3244
|
format: "at-uri",
|
|
@@ -2782,91 +3263,100 @@ var cancel_default = {
|
|
|
2782
3263
|
|
|
2783
3264
|
// src/schemas/feed/subscription/create.json
|
|
2784
3265
|
var create_default2 = {
|
|
3266
|
+
lexicon: 1,
|
|
3267
|
+
id: "com.atiproto.feed.subscription.create",
|
|
2785
3268
|
defs: {
|
|
2786
3269
|
main: {
|
|
3270
|
+
type: "procedure",
|
|
2787
3271
|
description: "Create a subscription to a user. Returns a one-off cart with checkout URL.",
|
|
2788
3272
|
input: {
|
|
2789
3273
|
encoding: "application/json",
|
|
2790
3274
|
schema: {
|
|
3275
|
+
type: "object",
|
|
3276
|
+
required: ["subject", "currency", "interval"],
|
|
2791
3277
|
properties: {
|
|
2792
3278
|
subject: {
|
|
2793
|
-
|
|
3279
|
+
type: "string",
|
|
2794
3280
|
format: "did",
|
|
2795
|
-
|
|
3281
|
+
description: "DID of the user to subscribe to"
|
|
2796
3282
|
},
|
|
2797
3283
|
amount: {
|
|
2798
|
-
|
|
2799
|
-
|
|
3284
|
+
type: "integer",
|
|
3285
|
+
description: "Custom amount in cents (if pay-as-you-want enabled)"
|
|
2800
3286
|
},
|
|
2801
3287
|
currency: {
|
|
2802
|
-
|
|
3288
|
+
type: "string",
|
|
2803
3289
|
maxLength: 3,
|
|
2804
|
-
|
|
3290
|
+
description: "ISO 4217 currency code"
|
|
2805
3291
|
},
|
|
2806
3292
|
interval: {
|
|
2807
|
-
|
|
3293
|
+
type: "string",
|
|
2808
3294
|
maxLength: 64,
|
|
2809
3295
|
enum: ["monthly", "yearly"],
|
|
2810
|
-
|
|
3296
|
+
description: "Billing interval"
|
|
2811
3297
|
},
|
|
2812
3298
|
cartUri: {
|
|
2813
|
-
|
|
3299
|
+
type: "string",
|
|
2814
3300
|
format: "at-uri",
|
|
2815
|
-
|
|
3301
|
+
description: "AT-URI of an existing cart to add this subscription to. If omitted, a new cart is created."
|
|
2816
3302
|
},
|
|
2817
3303
|
redirectUrl: {
|
|
2818
|
-
|
|
3304
|
+
type: "string",
|
|
2819
3305
|
format: "uri",
|
|
2820
|
-
|
|
3306
|
+
description: "URL to redirect to after checkout completes"
|
|
2821
3307
|
},
|
|
2822
3308
|
isPrivate: {
|
|
2823
|
-
|
|
2824
|
-
|
|
3309
|
+
type: "boolean",
|
|
3310
|
+
description: "If true, the recipient (subject) is stored only in atiproto's private database and is omitted from the PDS subscription record."
|
|
3311
|
+
},
|
|
3312
|
+
workflow: {
|
|
3313
|
+
type: "ref",
|
|
3314
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
3315
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
2825
3316
|
}
|
|
2826
|
-
}
|
|
2827
|
-
required: ["subject", "currency", "interval"],
|
|
2828
|
-
type: "object"
|
|
3317
|
+
}
|
|
2829
3318
|
}
|
|
2830
3319
|
},
|
|
2831
3320
|
output: {
|
|
2832
3321
|
encoding: "application/json",
|
|
2833
3322
|
schema: {
|
|
3323
|
+
type: "object",
|
|
2834
3324
|
properties: {
|
|
3325
|
+
workflow: {
|
|
3326
|
+
type: "ref",
|
|
3327
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
3328
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
3329
|
+
},
|
|
2835
3330
|
subscriptionUri: {
|
|
2836
|
-
|
|
3331
|
+
type: "string",
|
|
2837
3332
|
format: "at-uri",
|
|
2838
|
-
|
|
3333
|
+
description: "URI of the subscription record in PDS"
|
|
2839
3334
|
},
|
|
2840
3335
|
subscription: {
|
|
2841
|
-
description: "The created subscription record (status: pending)",
|
|
2842
3336
|
type: "ref",
|
|
2843
|
-
ref: "com.atiproto.subscription#view"
|
|
3337
|
+
ref: "com.atiproto.subscription#view",
|
|
3338
|
+
description: "The created subscription record (status: pending)"
|
|
2844
3339
|
},
|
|
2845
3340
|
cartUri: {
|
|
2846
|
-
|
|
3341
|
+
type: "string",
|
|
2847
3342
|
format: "at-uri",
|
|
2848
|
-
|
|
3343
|
+
description: "URI of the cart record in PDS"
|
|
2849
3344
|
},
|
|
2850
3345
|
cart: {
|
|
2851
|
-
description: "The created cart record (status: open)",
|
|
2852
3346
|
type: "ref",
|
|
2853
|
-
ref: "com.atiproto.cart#view"
|
|
3347
|
+
ref: "com.atiproto.cart#view",
|
|
3348
|
+
description: "The created cart record (status: open)"
|
|
2854
3349
|
},
|
|
2855
3350
|
checkoutUrl: {
|
|
2856
|
-
|
|
3351
|
+
type: "string",
|
|
2857
3352
|
format: "uri",
|
|
2858
|
-
|
|
3353
|
+
description: "Checkout URL hosted by atiproto"
|
|
2859
3354
|
}
|
|
2860
|
-
}
|
|
2861
|
-
required: ["subscriptionUri", "subscription"],
|
|
2862
|
-
type: "object"
|
|
3355
|
+
}
|
|
2863
3356
|
}
|
|
2864
|
-
}
|
|
2865
|
-
type: "procedure"
|
|
3357
|
+
}
|
|
2866
3358
|
}
|
|
2867
|
-
}
|
|
2868
|
-
id: "com.atiproto.feed.subscription.create",
|
|
2869
|
-
lexicon: 1
|
|
3359
|
+
}
|
|
2870
3360
|
};
|
|
2871
3361
|
|
|
2872
3362
|
// src/schemas/feed/subscription/get.json
|
|
@@ -2982,6 +3472,11 @@ var put_default3 = {
|
|
|
2982
3472
|
record: {
|
|
2983
3473
|
type: "ref",
|
|
2984
3474
|
ref: "com.atiproto.subscription"
|
|
3475
|
+
},
|
|
3476
|
+
workflow: {
|
|
3477
|
+
type: "ref",
|
|
3478
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
3479
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
2985
3480
|
}
|
|
2986
3481
|
}
|
|
2987
3482
|
}
|
|
@@ -2990,8 +3485,12 @@ var put_default3 = {
|
|
|
2990
3485
|
encoding: "application/json",
|
|
2991
3486
|
schema: {
|
|
2992
3487
|
type: "object",
|
|
2993
|
-
required: ["uri", "cid"],
|
|
2994
3488
|
properties: {
|
|
3489
|
+
workflow: {
|
|
3490
|
+
type: "ref",
|
|
3491
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
3492
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
3493
|
+
},
|
|
2995
3494
|
uri: {
|
|
2996
3495
|
type: "string",
|
|
2997
3496
|
format: "at-uri",
|
|
@@ -3119,6 +3618,11 @@ var create_default3 = {
|
|
|
3119
3618
|
isPrivate: {
|
|
3120
3619
|
type: "boolean",
|
|
3121
3620
|
description: "If true, the recipient (subject) and recordUri are stored only in atiproto's private database and are omitted from the PDS tip record."
|
|
3621
|
+
},
|
|
3622
|
+
workflow: {
|
|
3623
|
+
type: "ref",
|
|
3624
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
3625
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
3122
3626
|
}
|
|
3123
3627
|
}
|
|
3124
3628
|
}
|
|
@@ -3127,8 +3631,12 @@ var create_default3 = {
|
|
|
3127
3631
|
encoding: "application/json",
|
|
3128
3632
|
schema: {
|
|
3129
3633
|
type: "object",
|
|
3130
|
-
required: ["tipUri", "tip"],
|
|
3131
3634
|
properties: {
|
|
3635
|
+
workflow: {
|
|
3636
|
+
type: "ref",
|
|
3637
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
3638
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
3639
|
+
},
|
|
3132
3640
|
tipUri: {
|
|
3133
3641
|
type: "string",
|
|
3134
3642
|
format: "at-uri",
|
|
@@ -3289,6 +3797,11 @@ var put_default4 = {
|
|
|
3289
3797
|
record: {
|
|
3290
3798
|
type: "ref",
|
|
3291
3799
|
ref: "com.atiproto.tip"
|
|
3800
|
+
},
|
|
3801
|
+
workflow: {
|
|
3802
|
+
type: "ref",
|
|
3803
|
+
ref: "com.atiproto.actions#inboundWorkflow",
|
|
3804
|
+
description: "Workflow callback envelope. Present on agent-driven callbacks; absent on initial calls."
|
|
3292
3805
|
}
|
|
3293
3806
|
}
|
|
3294
3807
|
}
|
|
@@ -3297,8 +3810,12 @@ var put_default4 = {
|
|
|
3297
3810
|
encoding: "application/json",
|
|
3298
3811
|
schema: {
|
|
3299
3812
|
type: "object",
|
|
3300
|
-
required: ["uri", "cid"],
|
|
3301
3813
|
properties: {
|
|
3814
|
+
workflow: {
|
|
3815
|
+
type: "ref",
|
|
3816
|
+
ref: "com.atiproto.actions#outboundWorkflow",
|
|
3817
|
+
description: "Workflow envelope. When present, the agent runs the actions and calls back. When absent, this is the final native result."
|
|
3818
|
+
},
|
|
3302
3819
|
uri: {
|
|
3303
3820
|
type: "string",
|
|
3304
3821
|
format: "at-uri",
|
|
@@ -3984,6 +4501,7 @@ var tip_default = {
|
|
|
3984
4501
|
|
|
3985
4502
|
// src/schemas.ts
|
|
3986
4503
|
var schemas = [
|
|
4504
|
+
actions_default,
|
|
3987
4505
|
clone_default,
|
|
3988
4506
|
create_default,
|
|
3989
4507
|
get_default,
|