@atiproto/lexicons 0.5.2 → 0.6.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
@@ -926,7 +926,7 @@ var main18 = import_lex18.l.permissionSet(
926
926
  ]
927
927
  }),
928
928
  import_lex18.l.permission("rpc", {
929
- inheritAud: true,
929
+ aud: "*",
930
930
  lxm: [
931
931
  "com.atiproto.account.cart.clone",
932
932
  "com.atiproto.account.cart.create",
@@ -992,7 +992,7 @@ var main19 = import_lex19.l.permissionSet(
992
992
  ]
993
993
  }),
994
994
  import_lex19.l.permission("rpc", {
995
- inheritAud: true,
995
+ aud: "*",
996
996
  lxm: [
997
997
  "com.atiproto.account.cart.clone",
998
998
  "com.atiproto.account.cart.create",
@@ -1237,9 +1237,7 @@ var main23 = import_lex23.l.query(
1237
1237
  subject: import_lex23.l.optional(import_lex23.l.string({ format: "did" }))
1238
1238
  }),
1239
1239
  import_lex23.l.jsonPayload({
1240
- uri: import_lex23.l.string({ format: "at-uri" }),
1241
- cid: import_lex23.l.string({ format: "cid" }),
1242
- record: import_lex23.l.ref(
1240
+ subscription: import_lex23.l.ref(
1243
1241
  (() => view3)
1244
1242
  )
1245
1243
  })
@@ -1256,8 +1254,7 @@ __export(list_exports5, {
1256
1254
  $nsid: () => $nsid24,
1257
1255
  $output: () => $output18,
1258
1256
  $params: () => $params18,
1259
- main: () => main24,
1260
- subscriptionResponse: () => subscriptionResponse
1257
+ main: () => main24
1261
1258
  });
1262
1259
 
1263
1260
  // src/lexicons/com/atiproto/feed/subscription/list.defs.ts
@@ -1267,8 +1264,7 @@ __export(list_defs_exports5, {
1267
1264
  $nsid: () => $nsid24,
1268
1265
  $output: () => $output18,
1269
1266
  $params: () => $params18,
1270
- main: () => main24,
1271
- subscriptionResponse: () => subscriptionResponse
1267
+ main: () => main24
1272
1268
  });
1273
1269
  var import_lex24 = require("@atproto/lex");
1274
1270
  var $nsid24 = "com.atiproto.feed.subscription.list";
@@ -1277,7 +1273,9 @@ var main24 = import_lex24.l.query(
1277
1273
  import_lex24.l.params(),
1278
1274
  import_lex24.l.jsonPayload({
1279
1275
  subscriptions: import_lex24.l.array(
1280
- import_lex24.l.ref((() => subscriptionResponse))
1276
+ import_lex24.l.ref(
1277
+ (() => view3)
1278
+ )
1281
1279
  ),
1282
1280
  cursor: import_lex24.l.optional(import_lex24.l.string({ maxLength: 512 }))
1283
1281
  })
@@ -1285,16 +1283,6 @@ var main24 = import_lex24.l.query(
1285
1283
  var $lxm18 = main24.nsid;
1286
1284
  var $params18 = main24.parameters;
1287
1285
  var $output18 = main24.output;
1288
- var subscriptionResponse = import_lex24.l.typedObject(
1289
- $nsid24,
1290
- "subscriptionResponse",
1291
- import_lex24.l.object({
1292
- uri: import_lex24.l.string({ format: "at-uri" }),
1293
- record: import_lex24.l.ref(
1294
- (() => view3)
1295
- )
1296
- })
1297
- );
1298
1286
 
1299
1287
  // src/lexicons/com/atiproto/feed/subscription/put.ts
1300
1288
  var put_exports3 = {};
@@ -1471,9 +1459,7 @@ var main28 = import_lex28.l.query(
1471
1459
  recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" }))
1472
1460
  }),
1473
1461
  import_lex28.l.jsonPayload({
1474
- uri: import_lex28.l.string({ format: "at-uri" }),
1475
- cid: import_lex28.l.string({ format: "cid" }),
1476
- value: import_lex28.l.ref((() => view2))
1462
+ tip: import_lex28.l.ref((() => view2))
1477
1463
  })
1478
1464
  );
1479
1465
  var $lxm22 = main28.nsid;
@@ -1506,7 +1492,7 @@ var main29 = import_lex29.l.query(
1506
1492
  $nsid29,
1507
1493
  import_lex29.l.params(),
1508
1494
  import_lex29.l.jsonPayload({
1509
- records: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1495
+ tips: import_lex29.l.array(import_lex29.l.ref((() => view2))),
1510
1496
  cursor: import_lex29.l.optional(import_lex29.l.string({ maxLength: 512 }))
1511
1497
  })
1512
1498
  );
@@ -2910,25 +2896,15 @@ var get_default5 = {
2910
2896
  output: {
2911
2897
  encoding: "application/json",
2912
2898
  schema: {
2899
+ type: "object",
2900
+ required: ["subscription"],
2913
2901
  properties: {
2914
- uri: {
2915
- description: "Subscription record URI",
2916
- format: "at-uri",
2917
- type: "string"
2918
- },
2919
- cid: {
2920
- description: "Subscription record CID",
2921
- format: "cid",
2922
- type: "string"
2923
- },
2924
- record: {
2925
- description: "The subscription record data",
2902
+ subscription: {
2926
2903
  type: "ref",
2927
- ref: "com.atiproto.subscription#view"
2904
+ ref: "com.atiproto.subscription#view",
2905
+ description: "The subscription record data"
2928
2906
  }
2929
- },
2930
- required: ["uri", "cid", "record"],
2931
- type: "object"
2907
+ }
2932
2908
  }
2933
2909
  },
2934
2910
  type: "query"
@@ -2976,7 +2952,7 @@ var list_default5 = {
2976
2952
  type: "array",
2977
2953
  items: {
2978
2954
  type: "ref",
2979
- ref: "#subscriptionResponse"
2955
+ ref: "com.atiproto.subscription#view"
2980
2956
  }
2981
2957
  },
2982
2958
  cursor: {
@@ -2987,21 +2963,6 @@ var list_default5 = {
2987
2963
  }
2988
2964
  }
2989
2965
  }
2990
- },
2991
- subscriptionResponse: {
2992
- type: "object",
2993
- required: ["uri", "record"],
2994
- properties: {
2995
- uri: {
2996
- type: "string",
2997
- format: "at-uri",
2998
- description: "AT-URI of the subscription record"
2999
- },
3000
- record: {
3001
- type: "ref",
3002
- ref: "com.atiproto.subscription#view"
3003
- }
3004
- }
3005
2966
  }
3006
2967
  }
3007
2968
  };
@@ -3235,25 +3196,15 @@ var get_default6 = {
3235
3196
  output: {
3236
3197
  encoding: "application/json",
3237
3198
  schema: {
3199
+ type: "object",
3200
+ required: ["tip"],
3238
3201
  properties: {
3239
- uri: {
3240
- description: "Tip record URI",
3241
- format: "at-uri",
3242
- type: "string"
3243
- },
3244
- cid: {
3245
- description: "Tip record CID",
3246
- format: "cid",
3247
- type: "string"
3248
- },
3249
- value: {
3250
- description: "The tip record data",
3202
+ tip: {
3251
3203
  type: "ref",
3252
- ref: "com.atiproto.tip#view"
3204
+ ref: "com.atiproto.tip#view",
3205
+ description: "The tip record data"
3253
3206
  }
3254
- },
3255
- required: ["uri", "cid", "value"],
3256
- type: "object"
3207
+ }
3257
3208
  }
3258
3209
  },
3259
3210
  type: "query"
@@ -3305,9 +3256,9 @@ var list_default6 = {
3305
3256
  encoding: "application/json",
3306
3257
  schema: {
3307
3258
  type: "object",
3308
- required: ["records"],
3259
+ required: ["tips"],
3309
3260
  properties: {
3310
- records: {
3261
+ tips: {
3311
3262
  type: "array",
3312
3263
  items: {
3313
3264
  type: "ref",
@@ -3691,7 +3642,7 @@ var authEnhanced_default = {
3691
3642
  {
3692
3643
  type: "permission",
3693
3644
  resource: "rpc",
3694
- inheritAud: true,
3645
+ aud: "*",
3695
3646
  lxm: [
3696
3647
  "com.atiproto.account.cart.clone",
3697
3648
  "com.atiproto.account.cart.create",
@@ -3750,7 +3701,7 @@ var authGeneral_default = {
3750
3701
  {
3751
3702
  type: "permission",
3752
3703
  resource: "rpc",
3753
- inheritAud: true,
3704
+ aud: "*",
3754
3705
  lxm: [
3755
3706
  "com.atiproto.account.cart.clone",
3756
3707
  "com.atiproto.account.cart.create",