@atiproto/lexicons 0.6.0 → 0.7.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 +103 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -92
- 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.mjs
CHANGED
|
@@ -413,7 +413,13 @@ import { l as l7 } from "@atproto/lex";
|
|
|
413
413
|
var $nsid7 = "com.atiproto.account.cart.list";
|
|
414
414
|
var main7 = l7.query(
|
|
415
415
|
$nsid7,
|
|
416
|
-
l7.params(
|
|
416
|
+
l7.params({
|
|
417
|
+
status: l7.optional(l7.enum(["open", "completed", "expired", "abandoned"])),
|
|
418
|
+
cursor: l7.optional(l7.string({ maxLength: 512 })),
|
|
419
|
+
limit: l7.optional(
|
|
420
|
+
l7.withDefault(l7.integer({ minimum: 1, maximum: 100 }), 20)
|
|
421
|
+
)
|
|
422
|
+
}),
|
|
417
423
|
l7.jsonPayload({
|
|
418
424
|
carts: l7.array(l7.ref((() => cartResponse))),
|
|
419
425
|
cursor: l7.optional(l7.string({ maxLength: 512 }))
|
|
@@ -905,7 +911,7 @@ var main18 = l18.permissionSet(
|
|
|
905
911
|
]
|
|
906
912
|
}),
|
|
907
913
|
l18.permission("rpc", {
|
|
908
|
-
|
|
914
|
+
inheritAud: true,
|
|
909
915
|
lxm: [
|
|
910
916
|
"com.atiproto.account.cart.clone",
|
|
911
917
|
"com.atiproto.account.cart.create",
|
|
@@ -971,7 +977,7 @@ var main19 = l19.permissionSet(
|
|
|
971
977
|
]
|
|
972
978
|
}),
|
|
973
979
|
l19.permission("rpc", {
|
|
974
|
-
|
|
980
|
+
inheritAud: true,
|
|
975
981
|
lxm: [
|
|
976
982
|
"com.atiproto.account.cart.clone",
|
|
977
983
|
"com.atiproto.account.cart.create",
|
|
@@ -1062,7 +1068,12 @@ import { l as l20 } from "@atproto/lex";
|
|
|
1062
1068
|
var $nsid20 = "com.atiproto.feed.list";
|
|
1063
1069
|
var main20 = l20.query(
|
|
1064
1070
|
$nsid20,
|
|
1065
|
-
l20.params(
|
|
1071
|
+
l20.params({
|
|
1072
|
+
cursor: l20.optional(l20.string({ maxLength: 512 })),
|
|
1073
|
+
limit: l20.optional(
|
|
1074
|
+
l20.withDefault(l20.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1075
|
+
)
|
|
1076
|
+
}),
|
|
1066
1077
|
l20.jsonPayload({
|
|
1067
1078
|
items: l20.array(
|
|
1068
1079
|
l20.typedUnion(
|
|
@@ -1249,7 +1260,12 @@ import { l as l24 } from "@atproto/lex";
|
|
|
1249
1260
|
var $nsid24 = "com.atiproto.feed.subscription.list";
|
|
1250
1261
|
var main24 = l24.query(
|
|
1251
1262
|
$nsid24,
|
|
1252
|
-
l24.params(
|
|
1263
|
+
l24.params({
|
|
1264
|
+
cursor: l24.optional(l24.string({ maxLength: 512 })),
|
|
1265
|
+
limit: l24.optional(
|
|
1266
|
+
l24.withDefault(l24.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1267
|
+
)
|
|
1268
|
+
}),
|
|
1253
1269
|
l24.jsonPayload({
|
|
1254
1270
|
subscriptions: l24.array(
|
|
1255
1271
|
l24.ref(
|
|
@@ -1469,7 +1485,14 @@ import { l as l29 } from "@atproto/lex";
|
|
|
1469
1485
|
var $nsid29 = "com.atiproto.feed.tip.list";
|
|
1470
1486
|
var main29 = l29.query(
|
|
1471
1487
|
$nsid29,
|
|
1472
|
-
l29.params(
|
|
1488
|
+
l29.params({
|
|
1489
|
+
subject: l29.optional(l29.string({ format: "did" })),
|
|
1490
|
+
recordUri: l29.optional(l29.string({ format: "at-uri" })),
|
|
1491
|
+
cursor: l29.optional(l29.string({ maxLength: 512 })),
|
|
1492
|
+
limit: l29.optional(
|
|
1493
|
+
l29.withDefault(l29.integer({ minimum: 1, maximum: 100 }), 50)
|
|
1494
|
+
)
|
|
1495
|
+
}),
|
|
1473
1496
|
l29.jsonPayload({
|
|
1474
1497
|
tips: l29.array(l29.ref((() => view2))),
|
|
1475
1498
|
cursor: l29.optional(l29.string({ maxLength: 512 }))
|
|
@@ -1971,29 +1994,26 @@ var list_default = {
|
|
|
1971
1994
|
main: {
|
|
1972
1995
|
type: "query",
|
|
1973
1996
|
description: "List carts for the authenticated user",
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
maximum: 100,
|
|
1995
|
-
description: "Results per page (1-100, default: 20)"
|
|
1996
|
-
}
|
|
1997
|
+
parameters: {
|
|
1998
|
+
type: "params",
|
|
1999
|
+
properties: {
|
|
2000
|
+
status: {
|
|
2001
|
+
type: "string",
|
|
2002
|
+
maxLength: 64,
|
|
2003
|
+
enum: ["open", "completed", "expired", "abandoned"],
|
|
2004
|
+
description: "Filter by cart status"
|
|
2005
|
+
},
|
|
2006
|
+
cursor: {
|
|
2007
|
+
type: "string",
|
|
2008
|
+
maxLength: 512,
|
|
2009
|
+
description: "Pagination cursor"
|
|
2010
|
+
},
|
|
2011
|
+
limit: {
|
|
2012
|
+
type: "integer",
|
|
2013
|
+
default: 20,
|
|
2014
|
+
minimum: 1,
|
|
2015
|
+
maximum: 100,
|
|
2016
|
+
description: "Results per page (1-100, default: 20)"
|
|
1997
2017
|
}
|
|
1998
2018
|
}
|
|
1999
2019
|
},
|
|
@@ -2668,23 +2688,20 @@ var list_default4 = {
|
|
|
2668
2688
|
main: {
|
|
2669
2689
|
type: "query",
|
|
2670
2690
|
description: "List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created.",
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
default: 50,
|
|
2686
|
-
description: "Results per page (1-100)"
|
|
2687
|
-
}
|
|
2691
|
+
parameters: {
|
|
2692
|
+
type: "params",
|
|
2693
|
+
properties: {
|
|
2694
|
+
cursor: {
|
|
2695
|
+
type: "string",
|
|
2696
|
+
maxLength: 512,
|
|
2697
|
+
description: "Pagination cursor"
|
|
2698
|
+
},
|
|
2699
|
+
limit: {
|
|
2700
|
+
type: "integer",
|
|
2701
|
+
minimum: 1,
|
|
2702
|
+
maximum: 100,
|
|
2703
|
+
default: 50,
|
|
2704
|
+
description: "Results per page (1-100)"
|
|
2688
2705
|
}
|
|
2689
2706
|
}
|
|
2690
2707
|
},
|
|
@@ -2901,23 +2918,20 @@ var list_default5 = {
|
|
|
2901
2918
|
main: {
|
|
2902
2919
|
type: "query",
|
|
2903
2920
|
description: "List subscriptions for the authenticated user",
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
default: 50,
|
|
2919
|
-
description: "Results per page (1-100, default: 50)"
|
|
2920
|
-
}
|
|
2921
|
+
parameters: {
|
|
2922
|
+
type: "params",
|
|
2923
|
+
properties: {
|
|
2924
|
+
cursor: {
|
|
2925
|
+
type: "string",
|
|
2926
|
+
maxLength: 512,
|
|
2927
|
+
description: "Pagination cursor"
|
|
2928
|
+
},
|
|
2929
|
+
limit: {
|
|
2930
|
+
type: "integer",
|
|
2931
|
+
minimum: 1,
|
|
2932
|
+
maximum: 100,
|
|
2933
|
+
default: 50,
|
|
2934
|
+
description: "Results per page (1-100, default: 50)"
|
|
2921
2935
|
}
|
|
2922
2936
|
}
|
|
2923
2937
|
},
|
|
@@ -3201,33 +3215,30 @@ var list_default6 = {
|
|
|
3201
3215
|
main: {
|
|
3202
3216
|
type: "query",
|
|
3203
3217
|
description: "List tips sent by the authenticated user",
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
default: 50,
|
|
3229
|
-
description: "Results per page (1-100, default: 50)"
|
|
3230
|
-
}
|
|
3218
|
+
parameters: {
|
|
3219
|
+
type: "params",
|
|
3220
|
+
properties: {
|
|
3221
|
+
subject: {
|
|
3222
|
+
type: "string",
|
|
3223
|
+
format: "did",
|
|
3224
|
+
description: "Optional: only return tips sent to this recipient DID"
|
|
3225
|
+
},
|
|
3226
|
+
recordUri: {
|
|
3227
|
+
type: "string",
|
|
3228
|
+
format: "at-uri",
|
|
3229
|
+
description: "Optional: only return tips for this specific record"
|
|
3230
|
+
},
|
|
3231
|
+
cursor: {
|
|
3232
|
+
type: "string",
|
|
3233
|
+
maxLength: 512,
|
|
3234
|
+
description: "Pagination cursor"
|
|
3235
|
+
},
|
|
3236
|
+
limit: {
|
|
3237
|
+
type: "integer",
|
|
3238
|
+
minimum: 1,
|
|
3239
|
+
maximum: 100,
|
|
3240
|
+
default: 50,
|
|
3241
|
+
description: "Results per page (1-100, default: 50)"
|
|
3231
3242
|
}
|
|
3232
3243
|
}
|
|
3233
3244
|
},
|
|
@@ -3621,7 +3632,7 @@ var authEnhanced_default = {
|
|
|
3621
3632
|
{
|
|
3622
3633
|
type: "permission",
|
|
3623
3634
|
resource: "rpc",
|
|
3624
|
-
|
|
3635
|
+
inheritAud: true,
|
|
3625
3636
|
lxm: [
|
|
3626
3637
|
"com.atiproto.account.cart.clone",
|
|
3627
3638
|
"com.atiproto.account.cart.create",
|
|
@@ -3680,7 +3691,7 @@ var authGeneral_default = {
|
|
|
3680
3691
|
{
|
|
3681
3692
|
type: "permission",
|
|
3682
3693
|
resource: "rpc",
|
|
3683
|
-
|
|
3694
|
+
inheritAud: true,
|
|
3684
3695
|
lxm: [
|
|
3685
3696
|
"com.atiproto.account.cart.clone",
|
|
3686
3697
|
"com.atiproto.account.cart.create",
|