@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.js CHANGED
@@ -28604,7 +28604,7 @@ var NftIpfsSchema = BaseIpfsSchema.safeExtend({
28604
28604
  "External link URLs must be unique"
28605
28605
  ).optional().meta({
28606
28606
  title: "External Links",
28607
- description: "Optional list of public resource links with labels"
28607
+ description: "Supplementary reference links (label, URL, optional description) displayed on the NFT page"
28608
28608
  }),
28609
28609
  attributes: uniqueBy(
28610
28610
  NftAttributeSchema,
@@ -29416,7 +29416,7 @@ var ReceiptIdentitySchema = z.strictObject({
29416
29416
  }),
29417
29417
  external_id: ExternalIdSchema.optional().meta({
29418
29418
  title: "Identity External ID",
29419
- description: "Unique identifier for the buyer or beneficiary in the Carrot platform"
29419
+ description: "Unique identifier of the associated entity in the Carrot platform"
29420
29420
  }),
29421
29421
  external_url: ExternalUrlSchema.optional().meta({
29422
29422
  title: "Identity External URL",
@@ -29485,7 +29485,7 @@ function buildSchemaUrl(schemaPath) {
29485
29485
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29486
29486
  }
29487
29487
  function getSchemaVersionOrDefault() {
29488
- return "0.5.0";
29488
+ return "0.5.1";
29489
29489
  }
29490
29490
 
29491
29491
  // src/shared/schema-validation.ts
@@ -30059,7 +30059,7 @@ var MassIDWastePropertiesSchema = z.strictObject({
30059
30059
  local_classification: MassIDLocalClassificationSchema.optional(),
30060
30060
  weight_kg: WeightKgSchema.meta({
30061
30061
  title: "Net Weight",
30062
- description: "Net weight of the waste batch in kilograms (kg)",
30062
+ description: "Weight in kilograms of the entire waste batch tracked through the chain of custody",
30063
30063
  examples: [3e3]
30064
30064
  })
30065
30065
  }).meta({
@@ -30102,7 +30102,7 @@ var MassIDBaseEventSchema = z.strictObject({
30102
30102
  participant_id_hash: ParticipantIdHashSchema,
30103
30103
  location_id_hash: Sha256HashSchema.meta({
30104
30104
  title: "Location ID Hash",
30105
- description: "Reference to location in the locations array"
30105
+ description: "Hash reference to the geographic location where this event occurred; matches an entry in `data.locations`"
30106
30106
  })
30107
30107
  }).meta({
30108
30108
  title: "MassID Base Event",
@@ -31036,7 +31036,7 @@ var CreditPurchaseReceiptBuyerAttributeSchema = NftAttributeSchema.omit({
31036
31036
  var CreditPurchaseReceiptRetirementDateAttributeSchema = createDateAttributeSchema({
31037
31037
  traitType: "Retirement Date",
31038
31038
  title: "Retirement Date",
31039
- description: "Unix timestamp in milliseconds when credits were retired (if retirement occurred)"
31039
+ 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)"
31040
31040
  });
31041
31041
  var CreditPurchaseReceiptRetirementReceiptAttributeSchema = NftAttributeSchema.safeExtend({
31042
31042
  trait_type: z.literal("Retirement Receipt"),
@@ -31509,7 +31509,7 @@ var CreditRetirementReceiptIdentitySchema = ReceiptIdentitySchema;
31509
31509
  var CreditRetirementReceiptBeneficiarySchema = z.strictObject({
31510
31510
  beneficiary_id: ExternalIdSchema.meta({
31511
31511
  title: "Retirement Beneficiary ID",
31512
- description: "UUID identifying the beneficiary of the retirement (bytes16 normalized to UUID)"
31512
+ description: "UUID identifying the beneficiary of the retirement within the Carrot platform"
31513
31513
  }),
31514
31514
  identity: CreditRetirementReceiptIdentitySchema.optional()
31515
31515
  }).meta({
@@ -31519,7 +31519,7 @@ var CreditRetirementReceiptBeneficiarySchema = z.strictObject({
31519
31519
  var CreditRetirementReceiptCreditHolderSchema = z.strictObject({
31520
31520
  wallet_address: EthereumAddressSchema.meta({
31521
31521
  title: "Credit Holder Wallet Address",
31522
- description: "Ethereum address of the credit holder surrendering credits"
31522
+ description: "Ethereum address of the wallet that held and surrendered the credits"
31523
31523
  }),
31524
31524
  identity: CreditRetirementReceiptIdentitySchema.optional()
31525
31525
  }).meta({