@atiproto/lexicons 0.5.3 → 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.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 }))
@@ -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
- input: {
1975
- encoding: "application/json",
1976
- schema: {
1977
- type: "object",
1978
- properties: {
1979
- status: {
1980
- type: "string",
1981
- maxLength: 64,
1982
- enum: ["open", "completed", "expired", "abandoned"],
1983
- description: "Filter by cart status"
1984
- },
1985
- cursor: {
1986
- type: "string",
1987
- maxLength: 512,
1988
- description: "Pagination cursor"
1989
- },
1990
- limit: {
1991
- type: "integer",
1992
- default: 20,
1993
- minimum: 1,
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
- input: {
2672
- encoding: "application/json",
2673
- schema: {
2674
- type: "object",
2675
- properties: {
2676
- cursor: {
2677
- type: "string",
2678
- maxLength: 512,
2679
- description: "Pagination cursor"
2680
- },
2681
- limit: {
2682
- type: "integer",
2683
- minimum: 1,
2684
- maximum: 100,
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
- input: {
2905
- encoding: "application/json",
2906
- schema: {
2907
- type: "object",
2908
- properties: {
2909
- cursor: {
2910
- type: "string",
2911
- maxLength: 512,
2912
- description: "Pagination cursor"
2913
- },
2914
- limit: {
2915
- type: "integer",
2916
- minimum: 1,
2917
- maximum: 100,
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
- input: {
3205
- encoding: "application/json",
3206
- schema: {
3207
- type: "object",
3208
- properties: {
3209
- subject: {
3210
- type: "string",
3211
- format: "did",
3212
- description: "Optional: only return tips sent to this recipient DID"
3213
- },
3214
- recordUri: {
3215
- type: "string",
3216
- format: "at-uri",
3217
- description: "Optional: only return tips for this specific record"
3218
- },
3219
- cursor: {
3220
- type: "string",
3221
- maxLength: 512,
3222
- description: "Pagination cursor"
3223
- },
3224
- limit: {
3225
- type: "integer",
3226
- minimum: 1,
3227
- maximum: 100,
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
  },