@atiproto/lexicons 0.5.1 → 0.5.3

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
@@ -1211,11 +1211,12 @@ import { l as l23 } from "@atproto/lex";
1211
1211
  var $nsid23 = "com.atiproto.feed.subscription.get";
1212
1212
  var main23 = l23.query(
1213
1213
  $nsid23,
1214
- l23.params({ uri: l23.string({ format: "at-uri" }) }),
1214
+ l23.params({
1215
+ uri: l23.optional(l23.string({ format: "at-uri" })),
1216
+ subject: l23.optional(l23.string({ format: "did" }))
1217
+ }),
1215
1218
  l23.jsonPayload({
1216
- uri: l23.string({ format: "at-uri" }),
1217
- cid: l23.string({ format: "cid" }),
1218
- record: l23.ref(
1219
+ subscription: l23.ref(
1219
1220
  (() => view3)
1220
1221
  )
1221
1222
  })
@@ -1232,8 +1233,7 @@ __export(list_exports5, {
1232
1233
  $nsid: () => $nsid24,
1233
1234
  $output: () => $output18,
1234
1235
  $params: () => $params18,
1235
- main: () => main24,
1236
- subscriptionResponse: () => subscriptionResponse
1236
+ main: () => main24
1237
1237
  });
1238
1238
 
1239
1239
  // src/lexicons/com/atiproto/feed/subscription/list.defs.ts
@@ -1243,8 +1243,7 @@ __export(list_defs_exports5, {
1243
1243
  $nsid: () => $nsid24,
1244
1244
  $output: () => $output18,
1245
1245
  $params: () => $params18,
1246
- main: () => main24,
1247
- subscriptionResponse: () => subscriptionResponse
1246
+ main: () => main24
1248
1247
  });
1249
1248
  import { l as l24 } from "@atproto/lex";
1250
1249
  var $nsid24 = "com.atiproto.feed.subscription.list";
@@ -1253,7 +1252,9 @@ var main24 = l24.query(
1253
1252
  l24.params(),
1254
1253
  l24.jsonPayload({
1255
1254
  subscriptions: l24.array(
1256
- l24.ref((() => subscriptionResponse))
1255
+ l24.ref(
1256
+ (() => view3)
1257
+ )
1257
1258
  ),
1258
1259
  cursor: l24.optional(l24.string({ maxLength: 512 }))
1259
1260
  })
@@ -1261,16 +1262,6 @@ var main24 = l24.query(
1261
1262
  var $lxm18 = main24.nsid;
1262
1263
  var $params18 = main24.parameters;
1263
1264
  var $output18 = main24.output;
1264
- var subscriptionResponse = l24.typedObject(
1265
- $nsid24,
1266
- "subscriptionResponse",
1267
- l24.object({
1268
- uri: l24.string({ format: "at-uri" }),
1269
- record: l24.ref(
1270
- (() => view3)
1271
- )
1272
- })
1273
- );
1274
1265
 
1275
1266
  // src/lexicons/com/atiproto/feed/subscription/put.ts
1276
1267
  var put_exports3 = {};
@@ -1441,11 +1432,13 @@ import { l as l28 } from "@atproto/lex";
1441
1432
  var $nsid28 = "com.atiproto.feed.tip.get";
1442
1433
  var main28 = l28.query(
1443
1434
  $nsid28,
1444
- l28.params({ uri: l28.string({ format: "at-uri" }) }),
1435
+ l28.params({
1436
+ uri: l28.optional(l28.string({ format: "at-uri" })),
1437
+ subject: l28.optional(l28.string({ format: "did" })),
1438
+ recordUri: l28.optional(l28.string({ format: "at-uri" }))
1439
+ }),
1445
1440
  l28.jsonPayload({
1446
- uri: l28.string({ format: "at-uri" }),
1447
- cid: l28.string({ format: "cid" }),
1448
- value: l28.ref((() => view2))
1441
+ tip: l28.ref((() => view2))
1449
1442
  })
1450
1443
  );
1451
1444
  var $lxm22 = main28.nsid;
@@ -1478,7 +1471,7 @@ var main29 = l29.query(
1478
1471
  $nsid29,
1479
1472
  l29.params(),
1480
1473
  l29.jsonPayload({
1481
- records: l29.array(l29.ref((() => view2))),
1474
+ tips: l29.array(l29.ref((() => view2))),
1482
1475
  cursor: l29.optional(l29.string({ maxLength: 512 }))
1483
1476
  })
1484
1477
  );
@@ -2863,40 +2856,34 @@ var create_default2 = {
2863
2856
  var get_default5 = {
2864
2857
  defs: {
2865
2858
  main: {
2866
- description: "Get a specific subscription by URI",
2859
+ description: "Get a specific subscription sent by the authenticated user. Looks up by subscription record uri or subject (recipient) DID. These are mutually exclusive; uri takes precedence.",
2867
2860
  parameters: {
2868
2861
  properties: {
2869
2862
  uri: {
2870
- description: "AT-URI of the subscription record",
2863
+ description: "AT-URI of the subscription record. Takes precedence over subject.",
2871
2864
  format: "at-uri",
2872
2865
  type: "string"
2866
+ },
2867
+ subject: {
2868
+ description: "DID of the user being subscribed to. Ignored if uri is provided.",
2869
+ format: "did",
2870
+ type: "string"
2873
2871
  }
2874
2872
  },
2875
- required: ["uri"],
2876
2873
  type: "params"
2877
2874
  },
2878
2875
  output: {
2879
2876
  encoding: "application/json",
2880
2877
  schema: {
2878
+ type: "object",
2879
+ required: ["subscription"],
2881
2880
  properties: {
2882
- uri: {
2883
- description: "Subscription record URI",
2884
- format: "at-uri",
2885
- type: "string"
2886
- },
2887
- cid: {
2888
- description: "Subscription record CID",
2889
- format: "cid",
2890
- type: "string"
2891
- },
2892
- record: {
2893
- description: "The subscription record data",
2881
+ subscription: {
2894
2882
  type: "ref",
2895
- ref: "com.atiproto.subscription#view"
2883
+ ref: "com.atiproto.subscription#view",
2884
+ description: "The subscription record data"
2896
2885
  }
2897
- },
2898
- required: ["uri", "cid", "record"],
2899
- type: "object"
2886
+ }
2900
2887
  }
2901
2888
  },
2902
2889
  type: "query"
@@ -2944,7 +2931,7 @@ var list_default5 = {
2944
2931
  type: "array",
2945
2932
  items: {
2946
2933
  type: "ref",
2947
- ref: "#subscriptionResponse"
2934
+ ref: "com.atiproto.subscription#view"
2948
2935
  }
2949
2936
  },
2950
2937
  cursor: {
@@ -2955,21 +2942,6 @@ var list_default5 = {
2955
2942
  }
2956
2943
  }
2957
2944
  }
2958
- },
2959
- subscriptionResponse: {
2960
- type: "object",
2961
- required: ["uri", "record"],
2962
- properties: {
2963
- uri: {
2964
- type: "string",
2965
- format: "at-uri",
2966
- description: "AT-URI of the subscription record"
2967
- },
2968
- record: {
2969
- type: "ref",
2970
- ref: "com.atiproto.subscription#view"
2971
- }
2972
- }
2973
2945
  }
2974
2946
  }
2975
2947
  };
@@ -3179,40 +3151,39 @@ var create_default3 = {
3179
3151
  var get_default6 = {
3180
3152
  defs: {
3181
3153
  main: {
3182
- description: "Get a specific tip by URI",
3154
+ description: "Get a specific tip sent by the authenticated user. Looks up by tip record uri, subject (recipient) DID, or record uri. These are mutually exclusive and resolved in that order.",
3183
3155
  parameters: {
3184
3156
  properties: {
3185
3157
  uri: {
3186
- description: "AT-URI of the tip record",
3158
+ description: "AT-URI of the tip record. Takes precedence over subject and recordUri.",
3159
+ format: "at-uri",
3160
+ type: "string"
3161
+ },
3162
+ subject: {
3163
+ description: "DID of the tip recipient. Takes precedence over recordUri.",
3164
+ format: "did",
3165
+ type: "string"
3166
+ },
3167
+ recordUri: {
3168
+ description: "AT-URI of the record being tipped. Ignored if uri or subject is provided.",
3187
3169
  format: "at-uri",
3188
3170
  type: "string"
3189
3171
  }
3190
3172
  },
3191
- required: ["uri"],
3192
3173
  type: "params"
3193
3174
  },
3194
3175
  output: {
3195
3176
  encoding: "application/json",
3196
3177
  schema: {
3178
+ type: "object",
3179
+ required: ["tip"],
3197
3180
  properties: {
3198
- uri: {
3199
- description: "Tip record URI",
3200
- format: "at-uri",
3201
- type: "string"
3202
- },
3203
- cid: {
3204
- description: "Tip record CID",
3205
- format: "cid",
3206
- type: "string"
3207
- },
3208
- value: {
3209
- description: "The tip record data",
3181
+ tip: {
3210
3182
  type: "ref",
3211
- ref: "com.atiproto.tip#view"
3183
+ ref: "com.atiproto.tip#view",
3184
+ description: "The tip record data"
3212
3185
  }
3213
- },
3214
- required: ["uri", "cid", "value"],
3215
- type: "object"
3186
+ }
3216
3187
  }
3217
3188
  },
3218
3189
  type: "query"
@@ -3229,12 +3200,22 @@ var list_default6 = {
3229
3200
  defs: {
3230
3201
  main: {
3231
3202
  type: "query",
3232
- description: "List tips for the authenticated user",
3203
+ description: "List tips sent by the authenticated user",
3233
3204
  input: {
3234
3205
  encoding: "application/json",
3235
3206
  schema: {
3236
3207
  type: "object",
3237
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
+ },
3238
3219
  cursor: {
3239
3220
  type: "string",
3240
3221
  maxLength: 512,
@@ -3254,9 +3235,9 @@ var list_default6 = {
3254
3235
  encoding: "application/json",
3255
3236
  schema: {
3256
3237
  type: "object",
3257
- required: ["records"],
3238
+ required: ["tips"],
3258
3239
  properties: {
3259
- records: {
3240
+ tips: {
3260
3241
  type: "array",
3261
3242
  items: {
3262
3243
  type: "ref",