@atiproto/lexicons 0.1.1 → 0.1.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.mjs
CHANGED
|
@@ -1173,7 +1173,8 @@ var main24 = l24.query(
|
|
|
1173
1173
|
$nsid24,
|
|
1174
1174
|
l24.params({
|
|
1175
1175
|
sender: l24.string({ format: "did" }),
|
|
1176
|
-
|
|
1176
|
+
subscriptionUri: l24.optional(l24.string({ format: "at-uri" })),
|
|
1177
|
+
subject: l24.optional(l24.string({ format: "did" })),
|
|
1177
1178
|
amount: l24.optional(l24.integer())
|
|
1178
1179
|
}),
|
|
1179
1180
|
l24.jsonPayload({
|
|
@@ -1270,8 +1271,9 @@ var main26 = l26.query(
|
|
|
1270
1271
|
$nsid26,
|
|
1271
1272
|
l26.params({
|
|
1272
1273
|
sender: l26.string({ format: "did" }),
|
|
1273
|
-
|
|
1274
|
+
tipUri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1274
1275
|
recordUri: l26.optional(l26.string({ format: "at-uri" })),
|
|
1276
|
+
subject: l26.optional(l26.string({ format: "did" })),
|
|
1275
1277
|
amount: l26.optional(l26.integer())
|
|
1276
1278
|
}),
|
|
1277
1279
|
l26.jsonPayload({
|
|
@@ -2574,20 +2576,25 @@ var validate_default = {
|
|
|
2574
2576
|
defs: {
|
|
2575
2577
|
main: {
|
|
2576
2578
|
type: "query",
|
|
2577
|
-
description: "Validate that a sender has an active, Stripe-verified subscription
|
|
2579
|
+
description: "Validate that a sender has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence.",
|
|
2578
2580
|
parameters: {
|
|
2579
2581
|
type: "params",
|
|
2580
|
-
required: ["sender"
|
|
2582
|
+
required: ["sender"],
|
|
2581
2583
|
properties: {
|
|
2582
2584
|
sender: {
|
|
2583
2585
|
type: "string",
|
|
2584
2586
|
format: "did",
|
|
2585
2587
|
description: "DID of the subscriber"
|
|
2586
2588
|
},
|
|
2589
|
+
subscriptionUri: {
|
|
2590
|
+
type: "string",
|
|
2591
|
+
format: "at-uri",
|
|
2592
|
+
description: "AT-URI of a specific subscription record. Takes precedence over subject."
|
|
2593
|
+
},
|
|
2587
2594
|
subject: {
|
|
2588
2595
|
type: "string",
|
|
2589
2596
|
format: "did",
|
|
2590
|
-
description: "DID of the creator being subscribed to"
|
|
2597
|
+
description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
|
|
2591
2598
|
},
|
|
2592
2599
|
amount: {
|
|
2593
2600
|
type: "integer",
|
|
@@ -2700,7 +2707,7 @@ var validate_default2 = {
|
|
|
2700
2707
|
defs: {
|
|
2701
2708
|
main: {
|
|
2702
2709
|
type: "query",
|
|
2703
|
-
description: "Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or
|
|
2710
|
+
description: "Validate that a sender has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order.",
|
|
2704
2711
|
parameters: {
|
|
2705
2712
|
type: "params",
|
|
2706
2713
|
required: ["sender"],
|
|
@@ -2710,16 +2717,21 @@ var validate_default2 = {
|
|
|
2710
2717
|
format: "did",
|
|
2711
2718
|
description: "DID of the tip sender"
|
|
2712
2719
|
},
|
|
2713
|
-
|
|
2720
|
+
tipUri: {
|
|
2714
2721
|
type: "string",
|
|
2715
|
-
format: "
|
|
2716
|
-
description: "
|
|
2722
|
+
format: "at-uri",
|
|
2723
|
+
description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
|
|
2717
2724
|
},
|
|
2718
2725
|
recordUri: {
|
|
2719
2726
|
type: "string",
|
|
2720
2727
|
format: "at-uri",
|
|
2721
2728
|
description: "AT-URI of the record being tipped. Takes precedence over subject."
|
|
2722
2729
|
},
|
|
2730
|
+
subject: {
|
|
2731
|
+
type: "string",
|
|
2732
|
+
format: "did",
|
|
2733
|
+
description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
|
|
2734
|
+
},
|
|
2723
2735
|
amount: {
|
|
2724
2736
|
type: "integer",
|
|
2725
2737
|
description: "Expected tip amount in cents. If omitted, only checks that a tip exists."
|