@atiproto/lexicons 0.5.0 → 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 +67 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -11
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +4 -0
- 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/dist/lexicons/com/atiproto/profile.defs.d.ts +4 -0
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +4 -0
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -139,6 +139,7 @@ var view = import_lex.l.typedObject(
|
|
|
139
139
|
$nsid,
|
|
140
140
|
"view",
|
|
141
141
|
import_lex.l.object({
|
|
142
|
+
uri: import_lex.l.string({ format: "at-uri" }),
|
|
142
143
|
items: import_lex.l.array(import_lex.l.ref((() => cartItem))),
|
|
143
144
|
currency: import_lex.l.string({ maxLength: 3 }),
|
|
144
145
|
total: import_lex.l.integer(),
|
|
@@ -214,6 +215,7 @@ var view2 = import_lex2.l.typedObject(
|
|
|
214
215
|
$nsid2,
|
|
215
216
|
"view",
|
|
216
217
|
import_lex2.l.object({
|
|
218
|
+
uri: import_lex2.l.string({ format: "at-uri" }),
|
|
217
219
|
subject: import_lex2.l.optional(import_lex2.l.string({ format: "did" })),
|
|
218
220
|
recordUri: import_lex2.l.optional(import_lex2.l.string({ format: "at-uri" })),
|
|
219
221
|
amount: import_lex2.l.integer({ minimum: 0 }),
|
|
@@ -283,6 +285,7 @@ var view3 = import_lex3.l.typedObject(
|
|
|
283
285
|
$nsid3,
|
|
284
286
|
"view",
|
|
285
287
|
import_lex3.l.object({
|
|
288
|
+
uri: import_lex3.l.string({ format: "at-uri" }),
|
|
286
289
|
subject: import_lex3.l.optional(import_lex3.l.string({ format: "did" })),
|
|
287
290
|
amount: import_lex3.l.integer({ minimum: 0 }),
|
|
288
291
|
currency: import_lex3.l.string({ maxLength: 3 }),
|
|
@@ -568,6 +571,7 @@ var view4 = import_lex9.l.typedObject(
|
|
|
568
571
|
$nsid9,
|
|
569
572
|
"view",
|
|
570
573
|
import_lex9.l.object({
|
|
574
|
+
uri: import_lex9.l.string({ format: "at-uri" }),
|
|
571
575
|
acceptsTips: import_lex9.l.optional(import_lex9.l.boolean()),
|
|
572
576
|
acceptsSubscriptions: import_lex9.l.optional(import_lex9.l.boolean()),
|
|
573
577
|
disableReceiptNotifications: import_lex9.l.optional(import_lex9.l.boolean()),
|
|
@@ -1228,7 +1232,10 @@ var import_lex23 = require("@atproto/lex");
|
|
|
1228
1232
|
var $nsid23 = "com.atiproto.feed.subscription.get";
|
|
1229
1233
|
var main23 = import_lex23.l.query(
|
|
1230
1234
|
$nsid23,
|
|
1231
|
-
import_lex23.l.params({
|
|
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
|
+
}),
|
|
1232
1239
|
import_lex23.l.jsonPayload({
|
|
1233
1240
|
uri: import_lex23.l.string({ format: "at-uri" }),
|
|
1234
1241
|
cid: import_lex23.l.string({ format: "cid" }),
|
|
@@ -1458,7 +1465,11 @@ var import_lex28 = require("@atproto/lex");
|
|
|
1458
1465
|
var $nsid28 = "com.atiproto.feed.tip.get";
|
|
1459
1466
|
var main28 = import_lex28.l.query(
|
|
1460
1467
|
$nsid28,
|
|
1461
|
-
import_lex28.l.params({
|
|
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
|
+
}),
|
|
1462
1473
|
import_lex28.l.jsonPayload({
|
|
1463
1474
|
uri: import_lex28.l.string({ format: "at-uri" }),
|
|
1464
1475
|
cid: import_lex28.l.string({ format: "cid" }),
|
|
@@ -2611,6 +2622,7 @@ var cart_default = {
|
|
|
2611
2622
|
type: "object",
|
|
2612
2623
|
description: "View of a cart record for use in API responses",
|
|
2613
2624
|
required: [
|
|
2625
|
+
"uri",
|
|
2614
2626
|
"items",
|
|
2615
2627
|
"currency",
|
|
2616
2628
|
"total",
|
|
@@ -2619,6 +2631,11 @@ var cart_default = {
|
|
|
2619
2631
|
"expiresAt"
|
|
2620
2632
|
],
|
|
2621
2633
|
properties: {
|
|
2634
|
+
uri: {
|
|
2635
|
+
type: "string",
|
|
2636
|
+
format: "at-uri",
|
|
2637
|
+
description: "AT-URI of the cart record"
|
|
2638
|
+
},
|
|
2622
2639
|
items: {
|
|
2623
2640
|
type: "array",
|
|
2624
2641
|
items: {
|
|
@@ -2874,16 +2891,20 @@ var create_default2 = {
|
|
|
2874
2891
|
var get_default5 = {
|
|
2875
2892
|
defs: {
|
|
2876
2893
|
main: {
|
|
2877
|
-
description: "Get a specific subscription by
|
|
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.",
|
|
2878
2895
|
parameters: {
|
|
2879
2896
|
properties: {
|
|
2880
2897
|
uri: {
|
|
2881
|
-
description: "AT-URI of the subscription record",
|
|
2898
|
+
description: "AT-URI of the subscription record. Takes precedence over subject.",
|
|
2882
2899
|
format: "at-uri",
|
|
2883
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"
|
|
2884
2906
|
}
|
|
2885
2907
|
},
|
|
2886
|
-
required: ["uri"],
|
|
2887
2908
|
type: "params"
|
|
2888
2909
|
},
|
|
2889
2910
|
output: {
|
|
@@ -3190,16 +3211,25 @@ var create_default3 = {
|
|
|
3190
3211
|
var get_default6 = {
|
|
3191
3212
|
defs: {
|
|
3192
3213
|
main: {
|
|
3193
|
-
description: "Get a specific tip by
|
|
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.",
|
|
3194
3215
|
parameters: {
|
|
3195
3216
|
properties: {
|
|
3196
3217
|
uri: {
|
|
3197
|
-
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.",
|
|
3198
3229
|
format: "at-uri",
|
|
3199
3230
|
type: "string"
|
|
3200
3231
|
}
|
|
3201
3232
|
},
|
|
3202
|
-
required: ["uri"],
|
|
3203
3233
|
type: "params"
|
|
3204
3234
|
},
|
|
3205
3235
|
output: {
|
|
@@ -3240,12 +3270,22 @@ var list_default6 = {
|
|
|
3240
3270
|
defs: {
|
|
3241
3271
|
main: {
|
|
3242
3272
|
type: "query",
|
|
3243
|
-
description: "List tips
|
|
3273
|
+
description: "List tips sent by the authenticated user",
|
|
3244
3274
|
input: {
|
|
3245
3275
|
encoding: "application/json",
|
|
3246
3276
|
schema: {
|
|
3247
3277
|
type: "object",
|
|
3248
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
|
+
},
|
|
3249
3289
|
cursor: {
|
|
3250
3290
|
type: "string",
|
|
3251
3291
|
maxLength: 512,
|
|
@@ -3439,8 +3479,13 @@ var profile_default = {
|
|
|
3439
3479
|
view: {
|
|
3440
3480
|
type: "object",
|
|
3441
3481
|
description: "View of a user's profile settings for use in API responses",
|
|
3442
|
-
required: ["createdAt"],
|
|
3482
|
+
required: ["uri", "createdAt"],
|
|
3443
3483
|
properties: {
|
|
3484
|
+
uri: {
|
|
3485
|
+
type: "string",
|
|
3486
|
+
format: "at-uri",
|
|
3487
|
+
description: "AT-URI of the profile record"
|
|
3488
|
+
},
|
|
3444
3489
|
acceptsTips: {
|
|
3445
3490
|
type: "boolean",
|
|
3446
3491
|
description: "Whether user accepts tips (default: true)"
|
|
@@ -3813,6 +3858,7 @@ var subscription_default = {
|
|
|
3813
3858
|
type: "object",
|
|
3814
3859
|
description: "View of a subscription record for use in API responses",
|
|
3815
3860
|
required: [
|
|
3861
|
+
"uri",
|
|
3816
3862
|
"amount",
|
|
3817
3863
|
"currency",
|
|
3818
3864
|
"interval",
|
|
@@ -3821,6 +3867,11 @@ var subscription_default = {
|
|
|
3821
3867
|
"createdAt"
|
|
3822
3868
|
],
|
|
3823
3869
|
properties: {
|
|
3870
|
+
uri: {
|
|
3871
|
+
description: "AT-URI of the subscription record",
|
|
3872
|
+
format: "at-uri",
|
|
3873
|
+
type: "string"
|
|
3874
|
+
},
|
|
3824
3875
|
subject: {
|
|
3825
3876
|
description: "DID of the user being subscribed to",
|
|
3826
3877
|
format: "did",
|
|
@@ -3934,8 +3985,13 @@ var tip_default = {
|
|
|
3934
3985
|
view: {
|
|
3935
3986
|
type: "object",
|
|
3936
3987
|
description: "View of a tip record for use in API responses",
|
|
3937
|
-
required: ["amount", "currency", "status", "createdAt"],
|
|
3988
|
+
required: ["uri", "amount", "currency", "status", "createdAt"],
|
|
3938
3989
|
properties: {
|
|
3990
|
+
uri: {
|
|
3991
|
+
description: "AT-URI of the tip record",
|
|
3992
|
+
format: "at-uri",
|
|
3993
|
+
type: "string"
|
|
3994
|
+
},
|
|
3939
3995
|
subject: {
|
|
3940
3996
|
description: "DID of the user receiving the tip",
|
|
3941
3997
|
format: "did",
|