@carrot-foundation/schemas 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.cjs CHANGED
@@ -28610,7 +28610,7 @@ var NftIpfsSchema = BaseIpfsSchema.safeExtend({
28610
28610
  "External link URLs must be unique"
28611
28611
  ).optional().meta({
28612
28612
  title: "External Links",
28613
- description: "Optional list of public resource links with labels"
28613
+ description: "Supplementary reference links (label, URL, optional description) displayed on the NFT page"
28614
28614
  }),
28615
28615
  attributes: uniqueBy(
28616
28616
  NftAttributeSchema,
@@ -29422,7 +29422,7 @@ var ReceiptIdentitySchema = zod.z.strictObject({
29422
29422
  }),
29423
29423
  external_id: ExternalIdSchema.optional().meta({
29424
29424
  title: "Identity External ID",
29425
- description: "Unique identifier for the buyer or beneficiary in the Carrot platform"
29425
+ description: "Unique identifier of the associated entity in the Carrot platform"
29426
29426
  }),
29427
29427
  external_url: ExternalUrlSchema.optional().meta({
29428
29428
  title: "Identity External URL",
@@ -29491,7 +29491,7 @@ function buildSchemaUrl(schemaPath) {
29491
29491
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29492
29492
  }
29493
29493
  function getSchemaVersionOrDefault() {
29494
- return "0.5.0";
29494
+ return "0.5.1";
29495
29495
  }
29496
29496
 
29497
29497
  // src/shared/schema-validation.ts
@@ -30065,7 +30065,7 @@ var MassIDWastePropertiesSchema = zod.z.strictObject({
30065
30065
  local_classification: MassIDLocalClassificationSchema.optional(),
30066
30066
  weight_kg: WeightKgSchema.meta({
30067
30067
  title: "Net Weight",
30068
- description: "Net weight of the waste batch in kilograms (kg)",
30068
+ description: "Weight in kilograms of the entire waste batch tracked through the chain of custody",
30069
30069
  examples: [3e3]
30070
30070
  })
30071
30071
  }).meta({
@@ -30108,7 +30108,7 @@ var MassIDBaseEventSchema = zod.z.strictObject({
30108
30108
  participant_id_hash: ParticipantIdHashSchema,
30109
30109
  location_id_hash: Sha256HashSchema.meta({
30110
30110
  title: "Location ID Hash",
30111
- description: "Reference to location in the locations array"
30111
+ description: "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`"
30112
30112
  })
30113
30113
  }).meta({
30114
30114
  title: "MassID Base Event",
@@ -31042,7 +31042,7 @@ var CreditPurchaseReceiptBuyerAttributeSchema = NftAttributeSchema.omit({
31042
31042
  var CreditPurchaseReceiptRetirementDateAttributeSchema = createDateAttributeSchema({
31043
31043
  traitType: "Retirement Date",
31044
31044
  title: "Retirement Date",
31045
- description: "Unix timestamp in milliseconds when credits were retired (if retirement occurred)"
31045
+ description: "Unix timestamp in milliseconds when credits were retired; present in the attributes array only when the purchase has been retired (data.retirement_receipt is set)"
31046
31046
  });
31047
31047
  var CreditPurchaseReceiptRetirementReceiptAttributeSchema = NftAttributeSchema.safeExtend({
31048
31048
  trait_type: zod.z.literal("Retirement Receipt"),
@@ -31515,7 +31515,7 @@ var CreditRetirementReceiptIdentitySchema = ReceiptIdentitySchema;
31515
31515
  var CreditRetirementReceiptBeneficiarySchema = zod.z.strictObject({
31516
31516
  beneficiary_id: ExternalIdSchema.meta({
31517
31517
  title: "Retirement Beneficiary ID",
31518
- description: "UUID identifying the beneficiary of the retirement (bytes16 normalized to UUID)"
31518
+ description: "UUID identifying the beneficiary of the retirement within the Carrot platform"
31519
31519
  }),
31520
31520
  identity: CreditRetirementReceiptIdentitySchema.optional()
31521
31521
  }).meta({
@@ -31525,7 +31525,7 @@ var CreditRetirementReceiptBeneficiarySchema = zod.z.strictObject({
31525
31525
  var CreditRetirementReceiptCreditHolderSchema = zod.z.strictObject({
31526
31526
  wallet_address: EthereumAddressSchema.meta({
31527
31527
  title: "Credit Holder Wallet Address",
31528
- description: "Ethereum address of the credit holder surrendering credits"
31528
+ description: "Ethereum address of the wallet that held and surrendered the credits"
31529
31529
  }),
31530
31530
  identity: CreditRetirementReceiptIdentitySchema.optional()
31531
31531
  }).meta({