@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 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 }))
@@ -926,7 +932,7 @@ var main18 = import_lex18.l.permissionSet(
926
932
  ]
927
933
  }),
928
934
  import_lex18.l.permission("rpc", {
929
- aud: "*",
935
+ inheritAud: true,
930
936
  lxm: [
931
937
  "com.atiproto.account.cart.clone",
932
938
  "com.atiproto.account.cart.create",
@@ -992,7 +998,7 @@ var main19 = import_lex19.l.permissionSet(
992
998
  ]
993
999
  }),
994
1000
  import_lex19.l.permission("rpc", {
995
- aud: "*",
1001
+ inheritAud: true,
996
1002
  lxm: [
997
1003
  "com.atiproto.account.cart.clone",
998
1004
  "com.atiproto.account.cart.create",
@@ -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
- input: {
1996
- encoding: "application/json",
1997
- schema: {
1998
- type: "object",
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)"
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
- input: {
2693
- encoding: "application/json",
2694
- schema: {
2695
- type: "object",
2696
- properties: {
2697
- cursor: {
2698
- type: "string",
2699
- maxLength: 512,
2700
- description: "Pagination cursor"
2701
- },
2702
- limit: {
2703
- type: "integer",
2704
- minimum: 1,
2705
- maximum: 100,
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
- input: {
2926
- encoding: "application/json",
2927
- schema: {
2928
- type: "object",
2929
- properties: {
2930
- cursor: {
2931
- type: "string",
2932
- maxLength: 512,
2933
- description: "Pagination cursor"
2934
- },
2935
- limit: {
2936
- type: "integer",
2937
- minimum: 1,
2938
- maximum: 100,
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
- input: {
3226
- encoding: "application/json",
3227
- schema: {
3228
- type: "object",
3229
- properties: {
3230
- subject: {
3231
- type: "string",
3232
- format: "did",
3233
- description: "Optional: only return tips sent to this recipient DID"
3234
- },
3235
- recordUri: {
3236
- type: "string",
3237
- format: "at-uri",
3238
- description: "Optional: only return tips for this specific record"
3239
- },
3240
- cursor: {
3241
- type: "string",
3242
- maxLength: 512,
3243
- description: "Pagination cursor"
3244
- },
3245
- limit: {
3246
- type: "integer",
3247
- minimum: 1,
3248
- maximum: 100,
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
  },
@@ -3642,7 +3653,7 @@ var authEnhanced_default = {
3642
3653
  {
3643
3654
  type: "permission",
3644
3655
  resource: "rpc",
3645
- aud: "*",
3656
+ inheritAud: true,
3646
3657
  lxm: [
3647
3658
  "com.atiproto.account.cart.clone",
3648
3659
  "com.atiproto.account.cart.create",
@@ -3701,7 +3712,7 @@ var authGeneral_default = {
3701
3712
  {
3702
3713
  type: "permission",
3703
3714
  resource: "rpc",
3704
- aud: "*",
3715
+ inheritAud: true,
3705
3716
  lxm: [
3706
3717
  "com.atiproto.account.cart.clone",
3707
3718
  "com.atiproto.account.cart.create",