@atiproto/lexicons 0.5.0 → 0.5.1

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
@@ -118,6 +118,7 @@ var view = l.typedObject(
118
118
  $nsid,
119
119
  "view",
120
120
  l.object({
121
+ uri: l.string({ format: "at-uri" }),
121
122
  items: l.array(l.ref((() => cartItem))),
122
123
  currency: l.string({ maxLength: 3 }),
123
124
  total: l.integer(),
@@ -193,6 +194,7 @@ var view2 = l2.typedObject(
193
194
  $nsid2,
194
195
  "view",
195
196
  l2.object({
197
+ uri: l2.string({ format: "at-uri" }),
196
198
  subject: l2.optional(l2.string({ format: "did" })),
197
199
  recordUri: l2.optional(l2.string({ format: "at-uri" })),
198
200
  amount: l2.integer({ minimum: 0 }),
@@ -262,6 +264,7 @@ var view3 = l3.typedObject(
262
264
  $nsid3,
263
265
  "view",
264
266
  l3.object({
267
+ uri: l3.string({ format: "at-uri" }),
265
268
  subject: l3.optional(l3.string({ format: "did" })),
266
269
  amount: l3.integer({ minimum: 0 }),
267
270
  currency: l3.string({ maxLength: 3 }),
@@ -547,6 +550,7 @@ var view4 = l9.typedObject(
547
550
  $nsid9,
548
551
  "view",
549
552
  l9.object({
553
+ uri: l9.string({ format: "at-uri" }),
550
554
  acceptsTips: l9.optional(l9.boolean()),
551
555
  acceptsSubscriptions: l9.optional(l9.boolean()),
552
556
  disableReceiptNotifications: l9.optional(l9.boolean()),
@@ -2590,6 +2594,7 @@ var cart_default = {
2590
2594
  type: "object",
2591
2595
  description: "View of a cart record for use in API responses",
2592
2596
  required: [
2597
+ "uri",
2593
2598
  "items",
2594
2599
  "currency",
2595
2600
  "total",
@@ -2598,6 +2603,11 @@ var cart_default = {
2598
2603
  "expiresAt"
2599
2604
  ],
2600
2605
  properties: {
2606
+ uri: {
2607
+ type: "string",
2608
+ format: "at-uri",
2609
+ description: "AT-URI of the cart record"
2610
+ },
2601
2611
  items: {
2602
2612
  type: "array",
2603
2613
  items: {
@@ -3418,8 +3428,13 @@ var profile_default = {
3418
3428
  view: {
3419
3429
  type: "object",
3420
3430
  description: "View of a user's profile settings for use in API responses",
3421
- required: ["createdAt"],
3431
+ required: ["uri", "createdAt"],
3422
3432
  properties: {
3433
+ uri: {
3434
+ type: "string",
3435
+ format: "at-uri",
3436
+ description: "AT-URI of the profile record"
3437
+ },
3423
3438
  acceptsTips: {
3424
3439
  type: "boolean",
3425
3440
  description: "Whether user accepts tips (default: true)"
@@ -3792,6 +3807,7 @@ var subscription_default = {
3792
3807
  type: "object",
3793
3808
  description: "View of a subscription record for use in API responses",
3794
3809
  required: [
3810
+ "uri",
3795
3811
  "amount",
3796
3812
  "currency",
3797
3813
  "interval",
@@ -3800,6 +3816,11 @@ var subscription_default = {
3800
3816
  "createdAt"
3801
3817
  ],
3802
3818
  properties: {
3819
+ uri: {
3820
+ description: "AT-URI of the subscription record",
3821
+ format: "at-uri",
3822
+ type: "string"
3823
+ },
3803
3824
  subject: {
3804
3825
  description: "DID of the user being subscribed to",
3805
3826
  format: "did",
@@ -3913,8 +3934,13 @@ var tip_default = {
3913
3934
  view: {
3914
3935
  type: "object",
3915
3936
  description: "View of a tip record for use in API responses",
3916
- required: ["amount", "currency", "status", "createdAt"],
3937
+ required: ["uri", "amount", "currency", "status", "createdAt"],
3917
3938
  properties: {
3939
+ uri: {
3940
+ description: "AT-URI of the tip record",
3941
+ format: "at-uri",
3942
+ type: "string"
3943
+ },
3918
3944
  subject: {
3919
3945
  description: "DID of the user receiving the tip",
3920
3946
  format: "did",