@atiproto/lexicons 0.5.1 → 0.5.2

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
@@ -1232,7 +1232,10 @@ var import_lex23 = require("@atproto/lex");
1232
1232
  var $nsid23 = "com.atiproto.feed.subscription.get";
1233
1233
  var main23 = import_lex23.l.query(
1234
1234
  $nsid23,
1235
- import_lex23.l.params({ uri: import_lex23.l.string({ format: "at-uri" }) }),
1235
+ import_lex23.l.params({
1236
+ uri: import_lex23.l.optional(import_lex23.l.string({ format: "at-uri" })),
1237
+ subject: import_lex23.l.optional(import_lex23.l.string({ format: "did" }))
1238
+ }),
1236
1239
  import_lex23.l.jsonPayload({
1237
1240
  uri: import_lex23.l.string({ format: "at-uri" }),
1238
1241
  cid: import_lex23.l.string({ format: "cid" }),
@@ -1462,7 +1465,11 @@ var import_lex28 = require("@atproto/lex");
1462
1465
  var $nsid28 = "com.atiproto.feed.tip.get";
1463
1466
  var main28 = import_lex28.l.query(
1464
1467
  $nsid28,
1465
- import_lex28.l.params({ uri: import_lex28.l.string({ format: "at-uri" }) }),
1468
+ import_lex28.l.params({
1469
+ uri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" })),
1470
+ subject: import_lex28.l.optional(import_lex28.l.string({ format: "did" })),
1471
+ recordUri: import_lex28.l.optional(import_lex28.l.string({ format: "at-uri" }))
1472
+ }),
1466
1473
  import_lex28.l.jsonPayload({
1467
1474
  uri: import_lex28.l.string({ format: "at-uri" }),
1468
1475
  cid: import_lex28.l.string({ format: "cid" }),
@@ -2884,16 +2891,20 @@ var create_default2 = {
2884
2891
  var get_default5 = {
2885
2892
  defs: {
2886
2893
  main: {
2887
- description: "Get a specific subscription by URI",
2894
+ 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.",
2888
2895
  parameters: {
2889
2896
  properties: {
2890
2897
  uri: {
2891
- description: "AT-URI of the subscription record",
2898
+ description: "AT-URI of the subscription record. Takes precedence over subject.",
2892
2899
  format: "at-uri",
2893
2900
  type: "string"
2901
+ },
2902
+ subject: {
2903
+ description: "DID of the user being subscribed to. Ignored if uri is provided.",
2904
+ format: "did",
2905
+ type: "string"
2894
2906
  }
2895
2907
  },
2896
- required: ["uri"],
2897
2908
  type: "params"
2898
2909
  },
2899
2910
  output: {
@@ -3200,16 +3211,25 @@ var create_default3 = {
3200
3211
  var get_default6 = {
3201
3212
  defs: {
3202
3213
  main: {
3203
- description: "Get a specific tip by URI",
3214
+ 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.",
3204
3215
  parameters: {
3205
3216
  properties: {
3206
3217
  uri: {
3207
- description: "AT-URI of the tip record",
3218
+ description: "AT-URI of the tip record. Takes precedence over subject and recordUri.",
3219
+ format: "at-uri",
3220
+ type: "string"
3221
+ },
3222
+ subject: {
3223
+ description: "DID of the tip recipient. Takes precedence over recordUri.",
3224
+ format: "did",
3225
+ type: "string"
3226
+ },
3227
+ recordUri: {
3228
+ description: "AT-URI of the record being tipped. Ignored if uri or subject is provided.",
3208
3229
  format: "at-uri",
3209
3230
  type: "string"
3210
3231
  }
3211
3232
  },
3212
- required: ["uri"],
3213
3233
  type: "params"
3214
3234
  },
3215
3235
  output: {
@@ -3250,12 +3270,22 @@ var list_default6 = {
3250
3270
  defs: {
3251
3271
  main: {
3252
3272
  type: "query",
3253
- description: "List tips for the authenticated user",
3273
+ description: "List tips sent by the authenticated user",
3254
3274
  input: {
3255
3275
  encoding: "application/json",
3256
3276
  schema: {
3257
3277
  type: "object",
3258
3278
  properties: {
3279
+ subject: {
3280
+ type: "string",
3281
+ format: "did",
3282
+ description: "Optional: only return tips sent to this recipient DID"
3283
+ },
3284
+ recordUri: {
3285
+ type: "string",
3286
+ format: "at-uri",
3287
+ description: "Optional: only return tips for this specific record"
3288
+ },
3259
3289
  cursor: {
3260
3290
  type: "string",
3261
3291
  maxLength: 512,