@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.js CHANGED
@@ -1194,7 +1194,8 @@ var main24 = import_lex24.l.query(
1194
1194
  $nsid24,
1195
1195
  import_lex24.l.params({
1196
1196
  sender: import_lex24.l.string({ format: "did" }),
1197
- subject: import_lex24.l.string({ format: "did" }),
1197
+ subscriptionUri: import_lex24.l.optional(import_lex24.l.string({ format: "at-uri" })),
1198
+ subject: import_lex24.l.optional(import_lex24.l.string({ format: "did" })),
1198
1199
  amount: import_lex24.l.optional(import_lex24.l.integer())
1199
1200
  }),
1200
1201
  import_lex24.l.jsonPayload({
@@ -1291,8 +1292,9 @@ var main26 = import_lex26.l.query(
1291
1292
  $nsid26,
1292
1293
  import_lex26.l.params({
1293
1294
  sender: import_lex26.l.string({ format: "did" }),
1294
- subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1295
+ tipUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1295
1296
  recordUri: import_lex26.l.optional(import_lex26.l.string({ format: "at-uri" })),
1297
+ subject: import_lex26.l.optional(import_lex26.l.string({ format: "did" })),
1296
1298
  amount: import_lex26.l.optional(import_lex26.l.integer())
1297
1299
  }),
1298
1300
  import_lex26.l.jsonPayload({
@@ -2595,20 +2597,25 @@ var validate_default = {
2595
2597
  defs: {
2596
2598
  main: {
2597
2599
  type: "query",
2598
- description: "Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check the subscription amount.",
2600
+ 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.",
2599
2601
  parameters: {
2600
2602
  type: "params",
2601
- required: ["sender", "subject"],
2603
+ required: ["sender"],
2602
2604
  properties: {
2603
2605
  sender: {
2604
2606
  type: "string",
2605
2607
  format: "did",
2606
2608
  description: "DID of the subscriber"
2607
2609
  },
2610
+ subscriptionUri: {
2611
+ type: "string",
2612
+ format: "at-uri",
2613
+ description: "AT-URI of a specific subscription record. Takes precedence over subject."
2614
+ },
2608
2615
  subject: {
2609
2616
  type: "string",
2610
2617
  format: "did",
2611
- description: "DID of the creator being subscribed to"
2618
+ description: "DID of the creator being subscribed to. Ignored if subscriptionUri is provided."
2612
2619
  },
2613
2620
  amount: {
2614
2621
  type: "integer",
@@ -2721,7 +2728,7 @@ var validate_default2 = {
2721
2728
  defs: {
2722
2729
  main: {
2723
2730
  type: "query",
2724
- description: "Validate that a sender has completed tip payment(s). Looks up by recordUri (sums all tips for that record) or by subject (recipient DID). These are mutually exclusive; if recordUri is provided, subject is ignored.",
2731
+ 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.",
2725
2732
  parameters: {
2726
2733
  type: "params",
2727
2734
  required: ["sender"],
@@ -2731,16 +2738,21 @@ var validate_default2 = {
2731
2738
  format: "did",
2732
2739
  description: "DID of the tip sender"
2733
2740
  },
2734
- subject: {
2741
+ tipUri: {
2735
2742
  type: "string",
2736
- format: "did",
2737
- description: "DID of the tip recipient. Ignored if recordUri is provided."
2743
+ format: "at-uri",
2744
+ description: "AT-URI of a specific tip record. Takes precedence over recordUri and subject."
2738
2745
  },
2739
2746
  recordUri: {
2740
2747
  type: "string",
2741
2748
  format: "at-uri",
2742
2749
  description: "AT-URI of the record being tipped. Takes precedence over subject."
2743
2750
  },
2751
+ subject: {
2752
+ type: "string",
2753
+ format: "did",
2754
+ description: "DID of the tip recipient. Ignored if tipUri or recordUri is provided."
2755
+ },
2744
2756
  amount: {
2745
2757
  type: "integer",
2746
2758
  description: "Expected tip amount in cents. If omitted, only checks that a tip exists."