@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.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()),
@@ -2611,6 +2615,7 @@ var cart_default = {
2611
2615
  type: "object",
2612
2616
  description: "View of a cart record for use in API responses",
2613
2617
  required: [
2618
+ "uri",
2614
2619
  "items",
2615
2620
  "currency",
2616
2621
  "total",
@@ -2619,6 +2624,11 @@ var cart_default = {
2619
2624
  "expiresAt"
2620
2625
  ],
2621
2626
  properties: {
2627
+ uri: {
2628
+ type: "string",
2629
+ format: "at-uri",
2630
+ description: "AT-URI of the cart record"
2631
+ },
2622
2632
  items: {
2623
2633
  type: "array",
2624
2634
  items: {
@@ -3439,8 +3449,13 @@ var profile_default = {
3439
3449
  view: {
3440
3450
  type: "object",
3441
3451
  description: "View of a user's profile settings for use in API responses",
3442
- required: ["createdAt"],
3452
+ required: ["uri", "createdAt"],
3443
3453
  properties: {
3454
+ uri: {
3455
+ type: "string",
3456
+ format: "at-uri",
3457
+ description: "AT-URI of the profile record"
3458
+ },
3444
3459
  acceptsTips: {
3445
3460
  type: "boolean",
3446
3461
  description: "Whether user accepts tips (default: true)"
@@ -3813,6 +3828,7 @@ var subscription_default = {
3813
3828
  type: "object",
3814
3829
  description: "View of a subscription record for use in API responses",
3815
3830
  required: [
3831
+ "uri",
3816
3832
  "amount",
3817
3833
  "currency",
3818
3834
  "interval",
@@ -3821,6 +3837,11 @@ var subscription_default = {
3821
3837
  "createdAt"
3822
3838
  ],
3823
3839
  properties: {
3840
+ uri: {
3841
+ description: "AT-URI of the subscription record",
3842
+ format: "at-uri",
3843
+ type: "string"
3844
+ },
3824
3845
  subject: {
3825
3846
  description: "DID of the user being subscribed to",
3826
3847
  format: "did",
@@ -3934,8 +3955,13 @@ var tip_default = {
3934
3955
  view: {
3935
3956
  type: "object",
3936
3957
  description: "View of a tip record for use in API responses",
3937
- required: ["amount", "currency", "status", "createdAt"],
3958
+ required: ["uri", "amount", "currency", "status", "createdAt"],
3938
3959
  properties: {
3960
+ uri: {
3961
+ description: "AT-URI of the tip record",
3962
+ format: "at-uri",
3963
+ type: "string"
3964
+ },
3939
3965
  subject: {
3940
3966
  description: "DID of the user receiving the tip",
3941
3967
  format: "did",