@atiproto/lexicons 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +99 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +99 -88
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +14 -2
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +12 -2
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +12 -2
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +24 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -434,7 +434,13 @@ var import_lex7 = require("@atproto/lex");
|
|
|
434
434
|
var $nsid7 = "com.atiproto.account.cart.list";
|
|
435
435
|
var main7 = import_lex7.l.query(
|
|
436
436
|
$nsid7,
|
|
437
|
-
import_lex7.l.params(
|
|
437
|
+
import_lex7.l.params({
|
|
438
|
+
status: import_lex7.l.optional(import_lex7.l.enum(["open", "completed", "expired", "abandoned"])),
|
|
439
|
+
cursor: import_lex7.l.optional(import_lex7.l.string({ maxLength: 512 })),
|
|
440
|
+
limit: import_lex7.l.optional(
|
|
441
|
+
import_lex7.l.withDefault(import_lex7.l.integer({ minimum: 1, maximum: 100 }), 20)
|
|
442
|
+
)
|
|
443
|
+
}),
|
|
438
444
|
import_lex7.l.jsonPayload({
|
|
439
445
|
carts: import_lex7.l.array(import_lex7.l.ref((() => cartResponse))),
|
|
440
446
|
cursor: import_lex7.l.optional(import_lex7.l.string({ maxLength: 512 }))
|
|
@@ -1083,7 +1089,12 @@ var import_lex20 = require("@atproto/lex");
|
|
|
1083
1089
|
var $nsid20 = "com.atiproto.feed.list";
|
|
1084
1090
|
var main20 = import_lex20.l.query(
|
|
1085
1091
|
$nsid20,
|
|
1086
|
-
import_lex20.l.params(
|
|
1092
|
+
import_lex20.l.params({
|
|
1093
|
+
cursor: import_lex20.l.optional(import_lex20.l.string({ maxLength: 512 })),
|
|
1094
|
+
limit: import_lex20.l.optional(
|
|
1095
|
+
import_lex20.l.withDefault(import_lex20.l.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1096
|
+
)
|
|
1097
|
+
}),
|
|
1087
1098
|
import_lex20.l.jsonPayload({
|
|
1088
1099
|
items: import_lex20.l.array(
|
|
1089
1100
|
import_lex20.l.typedUnion(
|
|
@@ -1270,7 +1281,12 @@ var import_lex24 = require("@atproto/lex");
|
|
|
1270
1281
|
var $nsid24 = "com.atiproto.feed.subscription.list";
|
|
1271
1282
|
var main24 = import_lex24.l.query(
|
|
1272
1283
|
$nsid24,
|
|
1273
|
-
import_lex24.l.params(
|
|
1284
|
+
import_lex24.l.params({
|
|
1285
|
+
cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 })),
|
|
1286
|
+
limit: import_lex24.l.optional(
|
|
1287
|
+
import_lex24.l.withDefault(import_lex24.l.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1288
|
+
)
|
|
1289
|
+
}),
|
|
1274
1290
|
import_lex24.l.jsonPayload({
|
|
1275
1291
|
subscriptions: import_lex24.l.array(
|
|
1276
1292
|
import_lex24.l.ref(
|
|
@@ -1490,7 +1506,14 @@ var import_lex29 = require("@atproto/lex");
|
|
|
1490
1506
|
var $nsid29 = "com.atiproto.feed.tip.list";
|
|
1491
1507
|
var main29 = import_lex29.l.query(
|
|
1492
1508
|
$nsid29,
|
|
1493
|
-
import_lex29.l.params(
|
|
1509
|
+
import_lex29.l.params({
|
|
1510
|
+
subject: import_lex29.l.optional(import_lex29.l.string({ format: "did" })),
|
|
1511
|
+
recordUri: import_lex29.l.optional(import_lex29.l.string({ format: "at-uri" })),
|
|
1512
|
+
cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 })),
|
|
1513
|
+
limit: import_lex29.l.optional(
|
|
1514
|
+
import_lex29.l.withDefault(import_lex29.l.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1515
|
+
)
|
|
1516
|
+
}),
|
|
1494
1517
|
import_lex29.l.jsonPayload({
|
|
1495
1518
|
tips: import_lex29.l.array(import_lex29.l.ref((() => view2))),
|
|
1496
1519
|
cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
|
|
@@ -1992,29 +2015,26 @@ var list_default = {
|
|
|
1992
2015
|
main: {
|
|
1993
2016
|
type: "query",
|
|
1994
2017
|
description: "List carts for the authenticated user",
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
maximum: 100,
|
|
2016
|
-
description: "Results per page (1-100, default: 20)"
|
|
2017
|
-
}
|
|
2018
|
+
parameters: {
|
|
2019
|
+
type: "params",
|
|
2020
|
+
properties: {
|
|
2021
|
+
status: {
|
|
2022
|
+
type: "string",
|
|
2023
|
+
maxLength: 64,
|
|
2024
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
2025
|
+
description: "Filter by cart status"
|
|
2026
|
+
},
|
|
2027
|
+
cursor: {
|
|
2028
|
+
type: "string",
|
|
2029
|
+
maxLength: 512,
|
|
2030
|
+
description: "Pagination cursor"
|
|
2031
|
+
},
|
|
2032
|
+
limit: {
|
|
2033
|
+
type: "integer",
|
|
2034
|
+
default: 20,
|
|
2035
|
+
minimum: 1,
|
|
2036
|
+
maximum: 100,
|
|
2037
|
+
description: "Results per page (1-100, default: 20)"
|
|
2018
2038
|
}
|
|
2019
2039
|
}
|
|
2020
2040
|
},
|
|
@@ -2689,23 +2709,20 @@ var list_default4 = {
|
|
|
2689
2709
|
main: {
|
|
2690
2710
|
type: "query",
|
|
2691
2711
|
description: "List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created.",
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
default: 50,
|
|
2707
|
-
description: "Results per page (1-100)"
|
|
2708
|
-
}
|
|
2712
|
+
parameters: {
|
|
2713
|
+
type: "params",
|
|
2714
|
+
properties: {
|
|
2715
|
+
cursor: {
|
|
2716
|
+
type: "string",
|
|
2717
|
+
maxLength: 512,
|
|
2718
|
+
description: "Pagination cursor"
|
|
2719
|
+
},
|
|
2720
|
+
limit: {
|
|
2721
|
+
type: "integer",
|
|
2722
|
+
minimum: 1,
|
|
2723
|
+
maximum: 100,
|
|
2724
|
+
default: 50,
|
|
2725
|
+
description: "Results per page (1-100)"
|
|
2709
2726
|
}
|
|
2710
2727
|
}
|
|
2711
2728
|
},
|
|
@@ -2922,23 +2939,20 @@ var list_default5 = {
|
|
|
2922
2939
|
main: {
|
|
2923
2940
|
type: "query",
|
|
2924
2941
|
description: "List subscriptions for the authenticated user",
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
default: 50,
|
|
2940
|
-
description: "Results per page (1-100, default: 50)"
|
|
2941
|
-
}
|
|
2942
|
+
parameters: {
|
|
2943
|
+
type: "params",
|
|
2944
|
+
properties: {
|
|
2945
|
+
cursor: {
|
|
2946
|
+
type: "string",
|
|
2947
|
+
maxLength: 512,
|
|
2948
|
+
description: "Pagination cursor"
|
|
2949
|
+
},
|
|
2950
|
+
limit: {
|
|
2951
|
+
type: "integer",
|
|
2952
|
+
minimum: 1,
|
|
2953
|
+
maximum: 100,
|
|
2954
|
+
default: 50,
|
|
2955
|
+
description: "Results per page (1-100, default: 50)"
|
|
2942
2956
|
}
|
|
2943
2957
|
}
|
|
2944
2958
|
},
|
|
@@ -3222,33 +3236,30 @@ var list_default6 = {
|
|
|
3222
3236
|
main: {
|
|
3223
3237
|
type: "query",
|
|
3224
3238
|
description: "List tips sent by the authenticated user",
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
default: 50,
|
|
3250
|
-
description: "Results per page (1-100, default: 50)"
|
|
3251
|
-
}
|
|
3239
|
+
parameters: {
|
|
3240
|
+
type: "params",
|
|
3241
|
+
properties: {
|
|
3242
|
+
subject: {
|
|
3243
|
+
type: "string",
|
|
3244
|
+
format: "did",
|
|
3245
|
+
description: "Optional: only return tips sent to this recipient DID"
|
|
3246
|
+
},
|
|
3247
|
+
recordUri: {
|
|
3248
|
+
type: "string",
|
|
3249
|
+
format: "at-uri",
|
|
3250
|
+
description: "Optional: only return tips for this specific record"
|
|
3251
|
+
},
|
|
3252
|
+
cursor: {
|
|
3253
|
+
type: "string",
|
|
3254
|
+
maxLength: 512,
|
|
3255
|
+
description: "Pagination cursor"
|
|
3256
|
+
},
|
|
3257
|
+
limit: {
|
|
3258
|
+
type: "integer",
|
|
3259
|
+
minimum: 1,
|
|
3260
|
+
maximum: 100,
|
|
3261
|
+
default: 50,
|
|
3262
|
+
description: "Results per page (1-100, default: 50)"
|
|
3252
3263
|
}
|
|
3253
3264
|
}
|
|
3254
3265
|
},
|