@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 +39 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +11 -5
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +17 -5
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1211,7 +1211,10 @@ 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({
|
|
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
1219
|
uri: l23.string({ format: "at-uri" }),
|
|
1217
1220
|
cid: l23.string({ format: "cid" }),
|
|
@@ -1441,7 +1444,11 @@ import { l as l28 } from "@atproto/lex";
|
|
|
1441
1444
|
var $nsid28 = "com.atiproto.feed.tip.get";
|
|
1442
1445
|
var main28 = l28.query(
|
|
1443
1446
|
$nsid28,
|
|
1444
|
-
l28.params({
|
|
1447
|
+
l28.params({
|
|
1448
|
+
uri: l28.optional(l28.string({ format: "at-uri" })),
|
|
1449
|
+
subject: l28.optional(l28.string({ format: "did" })),
|
|
1450
|
+
recordUri: l28.optional(l28.string({ format: "at-uri" }))
|
|
1451
|
+
}),
|
|
1445
1452
|
l28.jsonPayload({
|
|
1446
1453
|
uri: l28.string({ format: "at-uri" }),
|
|
1447
1454
|
cid: l28.string({ format: "cid" }),
|
|
@@ -2863,16 +2870,20 @@ var create_default2 = {
|
|
|
2863
2870
|
var get_default5 = {
|
|
2864
2871
|
defs: {
|
|
2865
2872
|
main: {
|
|
2866
|
-
description: "Get a specific subscription by
|
|
2873
|
+
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
2874
|
parameters: {
|
|
2868
2875
|
properties: {
|
|
2869
2876
|
uri: {
|
|
2870
|
-
description: "AT-URI of the subscription record",
|
|
2877
|
+
description: "AT-URI of the subscription record. Takes precedence over subject.",
|
|
2871
2878
|
format: "at-uri",
|
|
2872
2879
|
type: "string"
|
|
2880
|
+
},
|
|
2881
|
+
subject: {
|
|
2882
|
+
description: "DID of the user being subscribed to. Ignored if uri is provided.",
|
|
2883
|
+
format: "did",
|
|
2884
|
+
type: "string"
|
|
2873
2885
|
}
|
|
2874
2886
|
},
|
|
2875
|
-
required: ["uri"],
|
|
2876
2887
|
type: "params"
|
|
2877
2888
|
},
|
|
2878
2889
|
output: {
|
|
@@ -3179,16 +3190,25 @@ var create_default3 = {
|
|
|
3179
3190
|
var get_default6 = {
|
|
3180
3191
|
defs: {
|
|
3181
3192
|
main: {
|
|
3182
|
-
description: "Get a specific tip by
|
|
3193
|
+
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
3194
|
parameters: {
|
|
3184
3195
|
properties: {
|
|
3185
3196
|
uri: {
|
|
3186
|
-
description: "AT-URI of the tip record",
|
|
3197
|
+
description: "AT-URI of the tip record. Takes precedence over subject and recordUri.",
|
|
3198
|
+
format: "at-uri",
|
|
3199
|
+
type: "string"
|
|
3200
|
+
},
|
|
3201
|
+
subject: {
|
|
3202
|
+
description: "DID of the tip recipient. Takes precedence over recordUri.",
|
|
3203
|
+
format: "did",
|
|
3204
|
+
type: "string"
|
|
3205
|
+
},
|
|
3206
|
+
recordUri: {
|
|
3207
|
+
description: "AT-URI of the record being tipped. Ignored if uri or subject is provided.",
|
|
3187
3208
|
format: "at-uri",
|
|
3188
3209
|
type: "string"
|
|
3189
3210
|
}
|
|
3190
3211
|
},
|
|
3191
|
-
required: ["uri"],
|
|
3192
3212
|
type: "params"
|
|
3193
3213
|
},
|
|
3194
3214
|
output: {
|
|
@@ -3229,12 +3249,22 @@ var list_default6 = {
|
|
|
3229
3249
|
defs: {
|
|
3230
3250
|
main: {
|
|
3231
3251
|
type: "query",
|
|
3232
|
-
description: "List tips
|
|
3252
|
+
description: "List tips sent by the authenticated user",
|
|
3233
3253
|
input: {
|
|
3234
3254
|
encoding: "application/json",
|
|
3235
3255
|
schema: {
|
|
3236
3256
|
type: "object",
|
|
3237
3257
|
properties: {
|
|
3258
|
+
subject: {
|
|
3259
|
+
type: "string",
|
|
3260
|
+
format: "did",
|
|
3261
|
+
description: "Optional: only return tips sent to this recipient DID"
|
|
3262
|
+
},
|
|
3263
|
+
recordUri: {
|
|
3264
|
+
type: "string",
|
|
3265
|
+
format: "at-uri",
|
|
3266
|
+
description: "Optional: only return tips for this specific record"
|
|
3267
|
+
},
|
|
3238
3268
|
cursor: {
|
|
3239
3269
|
type: "string",
|
|
3240
3270
|
maxLength: 512,
|