@carrot-foundation/schemas 0.1.63 → 0.1.64
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 +41 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +41 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +2 -2
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +2 -2
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +2 -2
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +2 -2
- package/schemas/ipfs/gas-id/gas-id.example.json +19 -13
- package/schemas/ipfs/gas-id/gas-id.schema.json +47 -5
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +2 -2
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +2 -2
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +2 -2
- package/schemas/ipfs/recycled-id/recycled-id.example.json +10 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +45 -3
- package/schemas/schema-hashes.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -930,6 +930,12 @@ declare const GasIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
|
930
930
|
display_type: z.ZodLiteral<"date">;
|
|
931
931
|
}, z.core.$strict>;
|
|
932
932
|
type GasIDAttributeMassIDRecyclingDate = z.infer<typeof GasIDAttributeMassIDRecyclingDateSchema>;
|
|
933
|
+
declare const GasIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
934
|
+
trait_type: z.ZodLiteral<string>;
|
|
935
|
+
value: z.ZodNumber;
|
|
936
|
+
display_type: z.ZodLiteral<"date">;
|
|
937
|
+
}, z.core.$strict>;
|
|
938
|
+
type GasIDAttributeRecyclingDate = z.infer<typeof GasIDAttributeRecyclingDateSchema>;
|
|
933
939
|
declare const GasIDAttributeCertificateIssuanceDateSchema: z.ZodObject<{
|
|
934
940
|
trait_type: z.ZodLiteral<string>;
|
|
935
941
|
value: z.ZodNumber;
|
|
@@ -1039,6 +1045,10 @@ declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1039
1045
|
trait_type: z.ZodLiteral<string>;
|
|
1040
1046
|
value: z.ZodNumber;
|
|
1041
1047
|
display_type: z.ZodLiteral<"date">;
|
|
1048
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1049
|
+
trait_type: z.ZodLiteral<string>;
|
|
1050
|
+
value: z.ZodNumber;
|
|
1051
|
+
display_type: z.ZodLiteral<"date">;
|
|
1042
1052
|
}, z.core.$strict>], null>;
|
|
1043
1053
|
type GasIDAttributes = z.infer<typeof GasIDAttributesSchema>;
|
|
1044
1054
|
|
|
@@ -1052,6 +1062,7 @@ declare const GasIDSummarySchema: z.ZodObject<{
|
|
|
1052
1062
|
}>;
|
|
1053
1063
|
credit_amount: z.ZodNumber;
|
|
1054
1064
|
prevented_co2e_kg: z.ZodNumber;
|
|
1065
|
+
recycling_date: z.ZodISODateTime;
|
|
1055
1066
|
issued_at: z.ZodISODateTime;
|
|
1056
1067
|
}, z.core.$strict>;
|
|
1057
1068
|
type GasIDSummary = z.infer<typeof GasIDSummarySchema>;
|
|
@@ -1083,6 +1094,7 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1083
1094
|
}>;
|
|
1084
1095
|
credit_amount: z.ZodNumber;
|
|
1085
1096
|
prevented_co2e_kg: z.ZodNumber;
|
|
1097
|
+
recycling_date: z.ZodISODateTime;
|
|
1086
1098
|
issued_at: z.ZodISODateTime;
|
|
1087
1099
|
}, z.core.$strict>;
|
|
1088
1100
|
methodology: z.ZodObject<{
|
|
@@ -1312,6 +1324,10 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1312
1324
|
trait_type: z.ZodLiteral<string>;
|
|
1313
1325
|
value: z.ZodNumber;
|
|
1314
1326
|
display_type: z.ZodLiteral<"date">;
|
|
1327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1328
|
+
trait_type: z.ZodLiteral<string>;
|
|
1329
|
+
value: z.ZodNumber;
|
|
1330
|
+
display_type: z.ZodLiteral<"date">;
|
|
1315
1331
|
}, z.core.$strict>], null>;
|
|
1316
1332
|
data: z.ZodObject<{
|
|
1317
1333
|
summary: z.ZodObject<{
|
|
@@ -1324,6 +1340,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1324
1340
|
}>;
|
|
1325
1341
|
credit_amount: z.ZodNumber;
|
|
1326
1342
|
prevented_co2e_kg: z.ZodNumber;
|
|
1343
|
+
recycling_date: z.ZodISODateTime;
|
|
1327
1344
|
issued_at: z.ZodISODateTime;
|
|
1328
1345
|
}, z.core.$strict>;
|
|
1329
1346
|
methodology: z.ZodObject<{
|
|
@@ -1501,6 +1518,12 @@ declare const RecycledIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
|
1501
1518
|
display_type: z.ZodLiteral<"date">;
|
|
1502
1519
|
}, z.core.$strict>;
|
|
1503
1520
|
type RecycledIDAttributeMassIDRecyclingDate = z.infer<typeof RecycledIDAttributeMassIDRecyclingDateSchema>;
|
|
1521
|
+
declare const RecycledIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
1522
|
+
trait_type: z.ZodLiteral<string>;
|
|
1523
|
+
value: z.ZodNumber;
|
|
1524
|
+
display_type: z.ZodLiteral<"date">;
|
|
1525
|
+
}, z.core.$strict>;
|
|
1526
|
+
type RecycledIDAttributeRecyclingDate = z.infer<typeof RecycledIDAttributeRecyclingDateSchema>;
|
|
1504
1527
|
declare const RecycledIDAttributeCertificateIssuanceDateSchema: z.ZodObject<{
|
|
1505
1528
|
trait_type: z.ZodLiteral<string>;
|
|
1506
1529
|
value: z.ZodNumber;
|
|
@@ -1598,6 +1621,10 @@ declare const RecycledIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1598
1621
|
trait_type: z.ZodLiteral<string>;
|
|
1599
1622
|
value: z.ZodNumber;
|
|
1600
1623
|
display_type: z.ZodLiteral<"date">;
|
|
1624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1625
|
+
trait_type: z.ZodLiteral<string>;
|
|
1626
|
+
value: z.ZodNumber;
|
|
1627
|
+
display_type: z.ZodLiteral<"date">;
|
|
1601
1628
|
}, z.core.$strict>], null>;
|
|
1602
1629
|
type RecycledIDAttributes = z.infer<typeof RecycledIDAttributesSchema>;
|
|
1603
1630
|
|
|
@@ -1608,6 +1635,7 @@ declare const RecycledIDSummarySchema: z.ZodObject<{
|
|
|
1608
1635
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1609
1636
|
}>;
|
|
1610
1637
|
credit_amount: z.ZodNumber;
|
|
1638
|
+
recycling_date: z.ZodISODateTime;
|
|
1611
1639
|
issued_at: z.ZodISODateTime;
|
|
1612
1640
|
}, z.core.$strict>;
|
|
1613
1641
|
type RecycledIDSummary = z.infer<typeof RecycledIDSummarySchema>;
|
|
@@ -1619,6 +1647,7 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1619
1647
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1620
1648
|
}>;
|
|
1621
1649
|
credit_amount: z.ZodNumber;
|
|
1650
|
+
recycling_date: z.ZodISODateTime;
|
|
1622
1651
|
issued_at: z.ZodISODateTime;
|
|
1623
1652
|
}, z.core.$strict>;
|
|
1624
1653
|
methodology: z.ZodObject<{
|
|
@@ -1826,6 +1855,10 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1826
1855
|
trait_type: z.ZodLiteral<string>;
|
|
1827
1856
|
value: z.ZodNumber;
|
|
1828
1857
|
display_type: z.ZodLiteral<"date">;
|
|
1858
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1859
|
+
trait_type: z.ZodLiteral<string>;
|
|
1860
|
+
value: z.ZodNumber;
|
|
1861
|
+
display_type: z.ZodLiteral<"date">;
|
|
1829
1862
|
}, z.core.$strict>], null>;
|
|
1830
1863
|
data: z.ZodObject<{
|
|
1831
1864
|
summary: z.ZodObject<{
|
|
@@ -1835,6 +1868,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1835
1868
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1836
1869
|
}>;
|
|
1837
1870
|
credit_amount: z.ZodNumber;
|
|
1871
|
+
recycling_date: z.ZodISODateTime;
|
|
1838
1872
|
issued_at: z.ZodISODateTime;
|
|
1839
1873
|
}, z.core.$strict>;
|
|
1840
1874
|
methodology: z.ZodObject<{
|
|
@@ -3358,6 +3392,12 @@ declare const CertificateIssuanceDateAttributeSchema: z.ZodObject<{
|
|
|
3358
3392
|
display_type: z.ZodLiteral<"date">;
|
|
3359
3393
|
}, z.core.$strict>;
|
|
3360
3394
|
type CertificateIssuanceDateAttribute = z.infer<typeof CertificateIssuanceDateAttributeSchema>;
|
|
3395
|
+
declare const RecyclingDateAttributeSchema: z.ZodObject<{
|
|
3396
|
+
trait_type: z.ZodLiteral<string>;
|
|
3397
|
+
value: z.ZodNumber;
|
|
3398
|
+
display_type: z.ZodLiteral<"date">;
|
|
3399
|
+
}, z.core.$strict>;
|
|
3400
|
+
type RecyclingDateAttribute = z.infer<typeof RecyclingDateAttributeSchema>;
|
|
3361
3401
|
declare const OriginCityAttributeSchema: z.ZodObject<{
|
|
3362
3402
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3363
3403
|
number: "number";
|
|
@@ -4104,4 +4144,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4104
4144
|
}) => void;
|
|
4105
4145
|
}): void;
|
|
4106
4146
|
|
|
4107
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
4147
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
package/dist/index.d.ts
CHANGED
|
@@ -930,6 +930,12 @@ declare const GasIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
|
930
930
|
display_type: z.ZodLiteral<"date">;
|
|
931
931
|
}, z.core.$strict>;
|
|
932
932
|
type GasIDAttributeMassIDRecyclingDate = z.infer<typeof GasIDAttributeMassIDRecyclingDateSchema>;
|
|
933
|
+
declare const GasIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
934
|
+
trait_type: z.ZodLiteral<string>;
|
|
935
|
+
value: z.ZodNumber;
|
|
936
|
+
display_type: z.ZodLiteral<"date">;
|
|
937
|
+
}, z.core.$strict>;
|
|
938
|
+
type GasIDAttributeRecyclingDate = z.infer<typeof GasIDAttributeRecyclingDateSchema>;
|
|
933
939
|
declare const GasIDAttributeCertificateIssuanceDateSchema: z.ZodObject<{
|
|
934
940
|
trait_type: z.ZodLiteral<string>;
|
|
935
941
|
value: z.ZodNumber;
|
|
@@ -1039,6 +1045,10 @@ declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1039
1045
|
trait_type: z.ZodLiteral<string>;
|
|
1040
1046
|
value: z.ZodNumber;
|
|
1041
1047
|
display_type: z.ZodLiteral<"date">;
|
|
1048
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1049
|
+
trait_type: z.ZodLiteral<string>;
|
|
1050
|
+
value: z.ZodNumber;
|
|
1051
|
+
display_type: z.ZodLiteral<"date">;
|
|
1042
1052
|
}, z.core.$strict>], null>;
|
|
1043
1053
|
type GasIDAttributes = z.infer<typeof GasIDAttributesSchema>;
|
|
1044
1054
|
|
|
@@ -1052,6 +1062,7 @@ declare const GasIDSummarySchema: z.ZodObject<{
|
|
|
1052
1062
|
}>;
|
|
1053
1063
|
credit_amount: z.ZodNumber;
|
|
1054
1064
|
prevented_co2e_kg: z.ZodNumber;
|
|
1065
|
+
recycling_date: z.ZodISODateTime;
|
|
1055
1066
|
issued_at: z.ZodISODateTime;
|
|
1056
1067
|
}, z.core.$strict>;
|
|
1057
1068
|
type GasIDSummary = z.infer<typeof GasIDSummarySchema>;
|
|
@@ -1083,6 +1094,7 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1083
1094
|
}>;
|
|
1084
1095
|
credit_amount: z.ZodNumber;
|
|
1085
1096
|
prevented_co2e_kg: z.ZodNumber;
|
|
1097
|
+
recycling_date: z.ZodISODateTime;
|
|
1086
1098
|
issued_at: z.ZodISODateTime;
|
|
1087
1099
|
}, z.core.$strict>;
|
|
1088
1100
|
methodology: z.ZodObject<{
|
|
@@ -1312,6 +1324,10 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1312
1324
|
trait_type: z.ZodLiteral<string>;
|
|
1313
1325
|
value: z.ZodNumber;
|
|
1314
1326
|
display_type: z.ZodLiteral<"date">;
|
|
1327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1328
|
+
trait_type: z.ZodLiteral<string>;
|
|
1329
|
+
value: z.ZodNumber;
|
|
1330
|
+
display_type: z.ZodLiteral<"date">;
|
|
1315
1331
|
}, z.core.$strict>], null>;
|
|
1316
1332
|
data: z.ZodObject<{
|
|
1317
1333
|
summary: z.ZodObject<{
|
|
@@ -1324,6 +1340,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1324
1340
|
}>;
|
|
1325
1341
|
credit_amount: z.ZodNumber;
|
|
1326
1342
|
prevented_co2e_kg: z.ZodNumber;
|
|
1343
|
+
recycling_date: z.ZodISODateTime;
|
|
1327
1344
|
issued_at: z.ZodISODateTime;
|
|
1328
1345
|
}, z.core.$strict>;
|
|
1329
1346
|
methodology: z.ZodObject<{
|
|
@@ -1501,6 +1518,12 @@ declare const RecycledIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
|
1501
1518
|
display_type: z.ZodLiteral<"date">;
|
|
1502
1519
|
}, z.core.$strict>;
|
|
1503
1520
|
type RecycledIDAttributeMassIDRecyclingDate = z.infer<typeof RecycledIDAttributeMassIDRecyclingDateSchema>;
|
|
1521
|
+
declare const RecycledIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
1522
|
+
trait_type: z.ZodLiteral<string>;
|
|
1523
|
+
value: z.ZodNumber;
|
|
1524
|
+
display_type: z.ZodLiteral<"date">;
|
|
1525
|
+
}, z.core.$strict>;
|
|
1526
|
+
type RecycledIDAttributeRecyclingDate = z.infer<typeof RecycledIDAttributeRecyclingDateSchema>;
|
|
1504
1527
|
declare const RecycledIDAttributeCertificateIssuanceDateSchema: z.ZodObject<{
|
|
1505
1528
|
trait_type: z.ZodLiteral<string>;
|
|
1506
1529
|
value: z.ZodNumber;
|
|
@@ -1598,6 +1621,10 @@ declare const RecycledIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1598
1621
|
trait_type: z.ZodLiteral<string>;
|
|
1599
1622
|
value: z.ZodNumber;
|
|
1600
1623
|
display_type: z.ZodLiteral<"date">;
|
|
1624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1625
|
+
trait_type: z.ZodLiteral<string>;
|
|
1626
|
+
value: z.ZodNumber;
|
|
1627
|
+
display_type: z.ZodLiteral<"date">;
|
|
1601
1628
|
}, z.core.$strict>], null>;
|
|
1602
1629
|
type RecycledIDAttributes = z.infer<typeof RecycledIDAttributesSchema>;
|
|
1603
1630
|
|
|
@@ -1608,6 +1635,7 @@ declare const RecycledIDSummarySchema: z.ZodObject<{
|
|
|
1608
1635
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1609
1636
|
}>;
|
|
1610
1637
|
credit_amount: z.ZodNumber;
|
|
1638
|
+
recycling_date: z.ZodISODateTime;
|
|
1611
1639
|
issued_at: z.ZodISODateTime;
|
|
1612
1640
|
}, z.core.$strict>;
|
|
1613
1641
|
type RecycledIDSummary = z.infer<typeof RecycledIDSummarySchema>;
|
|
@@ -1619,6 +1647,7 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1619
1647
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1620
1648
|
}>;
|
|
1621
1649
|
credit_amount: z.ZodNumber;
|
|
1650
|
+
recycling_date: z.ZodISODateTime;
|
|
1622
1651
|
issued_at: z.ZodISODateTime;
|
|
1623
1652
|
}, z.core.$strict>;
|
|
1624
1653
|
methodology: z.ZodObject<{
|
|
@@ -1826,6 +1855,10 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1826
1855
|
trait_type: z.ZodLiteral<string>;
|
|
1827
1856
|
value: z.ZodNumber;
|
|
1828
1857
|
display_type: z.ZodLiteral<"date">;
|
|
1858
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1859
|
+
trait_type: z.ZodLiteral<string>;
|
|
1860
|
+
value: z.ZodNumber;
|
|
1861
|
+
display_type: z.ZodLiteral<"date">;
|
|
1829
1862
|
}, z.core.$strict>], null>;
|
|
1830
1863
|
data: z.ZodObject<{
|
|
1831
1864
|
summary: z.ZodObject<{
|
|
@@ -1835,6 +1868,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1835
1868
|
"Carbon (CH\u2084)": "Carbon (CH₄)";
|
|
1836
1869
|
}>;
|
|
1837
1870
|
credit_amount: z.ZodNumber;
|
|
1871
|
+
recycling_date: z.ZodISODateTime;
|
|
1838
1872
|
issued_at: z.ZodISODateTime;
|
|
1839
1873
|
}, z.core.$strict>;
|
|
1840
1874
|
methodology: z.ZodObject<{
|
|
@@ -3358,6 +3392,12 @@ declare const CertificateIssuanceDateAttributeSchema: z.ZodObject<{
|
|
|
3358
3392
|
display_type: z.ZodLiteral<"date">;
|
|
3359
3393
|
}, z.core.$strict>;
|
|
3360
3394
|
type CertificateIssuanceDateAttribute = z.infer<typeof CertificateIssuanceDateAttributeSchema>;
|
|
3395
|
+
declare const RecyclingDateAttributeSchema: z.ZodObject<{
|
|
3396
|
+
trait_type: z.ZodLiteral<string>;
|
|
3397
|
+
value: z.ZodNumber;
|
|
3398
|
+
display_type: z.ZodLiteral<"date">;
|
|
3399
|
+
}, z.core.$strict>;
|
|
3400
|
+
type RecyclingDateAttribute = z.infer<typeof RecyclingDateAttributeSchema>;
|
|
3361
3401
|
declare const OriginCityAttributeSchema: z.ZodObject<{
|
|
3362
3402
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3363
3403
|
number: "number";
|
|
@@ -4104,4 +4144,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4104
4144
|
}) => void;
|
|
4105
4145
|
}): void;
|
|
4106
4146
|
|
|
4107
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
4147
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, type AuditReference, AuditReferenceSchema, type AuditResult, AuditResultSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type CertificateCollectionItemPurchase, CertificateCollectionItemPurchaseSchema, type CertificateCollectionItemRetirement, CertificateCollectionItemRetirementSchema, type CertificateIssuanceDateAttribute, CertificateIssuanceDateAttributeSchema, type CertificateReferenceBase, CertificateReferenceBaseSchema, type CertificateType, CertificateTypeSchema, type City, CitySchema, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type ContainerType, ContainerTypeSchema, type Coordinates, CoordinatesSchema, type Credit, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditPurchaseReceiptAttributes, CreditPurchaseReceiptAttributesSchema, type CreditPurchaseReceiptBuyer, type CreditPurchaseReceiptCertificate, type CreditPurchaseReceiptCollection, type CreditPurchaseReceiptCredit, type CreditPurchaseReceiptData, CreditPurchaseReceiptDataSchema, type CreditPurchaseReceiptIdentity, type CreditPurchaseReceiptIpfs, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, type CreditPurchaseReceiptReference, CreditPurchaseReceiptReferenceSchema, type CreditPurchaseReceiptRetirementReceipt, CreditPurchaseReceiptShortNameSchema, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditReference, CreditReferenceSchema, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, type CreditRetirementReceiptReference, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenName, CreditTokenNameSchema, type CreditTokenSlug, CreditTokenSlugSchema, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, type EnsDomain, EnsDomainSchema, type EthereumAddress, EthereumAddressSchema, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type GasIDAttributeCertificateIssuanceDate, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCity, type GasIDAttributeOriginCountrySubdivision, type GasIDAttributeRecyclingDate, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, type GasIDReference, GasIDReferenceSchema, GasIDShortNameSchema, type GasIDSummary, type GasType, GasTypeSchema, type HexColor, HexColorSchema, type IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsCid, IpfsCidSchema, type IpfsUri, IpfsUriSchema, type Ipns, IpnsSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoCountrySubdivisionCode, IsoCountrySubdivisionCodeSchema, type IsoDate, IsoDateSchema, type IsoDateTime, IsoDateTimeSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCity, type MassIDAttributeOriginCountrySubdivision, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, MassIDAuditSummarySchema, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, MassIDNameSchema, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, MassIDShortNameSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type MethodologyShortName, MethodologyShortNameSchema, type MethodologySlug, MethodologySlugSchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NftTokenReferenceBase, NftTokenReferenceBaseSchema, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCityAttribute, OriginCityAttributeSchema, type OriginCountrySubdivisionAttribute, OriginCountrySubdivisionAttributeSchema, type Participant, type ParticipantIdHash, ParticipantIdHashSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordEnvironment, RecordEnvironmentSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCertificateIssuanceDate, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCity, type RecycledIDAttributeOriginCountrySubdivision, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecyclingDate, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, type RecycledIDReference, RecycledIDReferenceSchema, RecycledIDShortNameSchema, type RecycledIDSummary, type RecyclingDateAttribute, RecyclingDateAttributeSchema, type ScaleType, ScaleTypeSchema, type SchemaInfo, SchemaInfoSchema, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SmartContract, type SmartContractAddress, SmartContractAddressSchema, SmartContractSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenReferenceBase, TokenReferenceBaseSchema, type UnixTimestamp, UnixTimestampSchema, type UsdcAmount, UsdcAmountSchema, type Uuid, UuidSchema, type VehicleType, VehicleTypeSchema, type ViewerReference, ViewerReferenceSchema, type WasteProperties, WastePropertiesSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeighingCaptureMethod, WeighingCaptureMethodSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
package/dist/index.js
CHANGED
|
@@ -29056,6 +29056,11 @@ var CertificateIssuanceDateAttributeSchema = createDateAttributeSchema(
|
|
|
29056
29056
|
description: "Unix timestamp in milliseconds when the certificate was issued"
|
|
29057
29057
|
}
|
|
29058
29058
|
);
|
|
29059
|
+
var RecyclingDateAttributeSchema = createDateAttributeSchema({
|
|
29060
|
+
traitType: "Recycling Date",
|
|
29061
|
+
title: "Recycling Date",
|
|
29062
|
+
description: "Unix timestamp in milliseconds when the recycling occurred (when the environmental gain was achieved)"
|
|
29063
|
+
});
|
|
29059
29064
|
var OriginCityAttributeSchema = NftAttributeSchema.safeExtend({
|
|
29060
29065
|
trait_type: z.literal("Origin City"),
|
|
29061
29066
|
value: CitySchema
|
|
@@ -29548,7 +29553,7 @@ function buildSchemaUrl(schemaPath) {
|
|
|
29548
29553
|
return `${getSchemaBaseUrl()}/${cleanPath}`;
|
|
29549
29554
|
}
|
|
29550
29555
|
function getSchemaVersionOrDefault() {
|
|
29551
|
-
return "0.1.
|
|
29556
|
+
return "0.1.64";
|
|
29552
29557
|
}
|
|
29553
29558
|
|
|
29554
29559
|
// src/shared/schema-validation.ts
|
|
@@ -30526,6 +30531,7 @@ var GasIDAttributeOriginCitySchema = OriginCityAttributeSchema;
|
|
|
30526
30531
|
var GasIDAttributeOriginCountrySubdivisionSchema = OriginCountrySubdivisionAttributeSchema;
|
|
30527
30532
|
var GasIDAttributeMassIDTokenIdSchema = MassIDTokenIdAttributeSchema;
|
|
30528
30533
|
var GasIDAttributeMassIDRecyclingDateSchema = MassIDRecyclingDateAttributeSchema;
|
|
30534
|
+
var GasIDAttributeRecyclingDateSchema = RecyclingDateAttributeSchema;
|
|
30529
30535
|
var GasIDAttributeCertificateIssuanceDateSchema = CertificateIssuanceDateAttributeSchema;
|
|
30530
30536
|
var GasIDAttributesSchema = z.tuple([
|
|
30531
30537
|
GasIDAttributeMethodologySchema,
|
|
@@ -30539,10 +30545,11 @@ var GasIDAttributesSchema = z.tuple([
|
|
|
30539
30545
|
GasIDAttributeOriginCountrySubdivisionSchema,
|
|
30540
30546
|
GasIDAttributeMassIDTokenIdSchema,
|
|
30541
30547
|
GasIDAttributeMassIDRecyclingDateSchema,
|
|
30548
|
+
GasIDAttributeRecyclingDateSchema,
|
|
30542
30549
|
GasIDAttributeCertificateIssuanceDateSchema
|
|
30543
30550
|
]).meta({
|
|
30544
30551
|
title: "GasID NFT Attribute Array",
|
|
30545
|
-
description: "Schema for the fixed set of GasID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (
|
|
30552
|
+
description: "Schema for the fixed set of GasID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (13, in order): Methodology, Gas Type, CO\u2082e Prevented (kg), Credit Amount, Credit Type, Source Waste Type, Source Weight (kg), Origin City, Origin Country Subdivision, MassID, MassID Recycling Date, Recycling Date, Certificate Issuance Date."
|
|
30546
30553
|
});
|
|
30547
30554
|
var GasIDSummarySchema = z.strictObject({
|
|
30548
30555
|
gas_type: GasTypeSchema,
|
|
@@ -30552,6 +30559,10 @@ var GasIDSummarySchema = z.strictObject({
|
|
|
30552
30559
|
title: "Prevented Emissions (CO\u2082e)",
|
|
30553
30560
|
description: "CO\u2082e weight of the prevented emissions in kilograms (kg)"
|
|
30554
30561
|
}),
|
|
30562
|
+
recycling_date: IsoDateTimeSchema.meta({
|
|
30563
|
+
title: "Recycling Date",
|
|
30564
|
+
description: "ISO 8601 timestamp when the recycling occurred (when the environmental gain was achieved)"
|
|
30565
|
+
}),
|
|
30555
30566
|
issued_at: IsoDateTimeSchema.meta({
|
|
30556
30567
|
title: "Issued At",
|
|
30557
30568
|
description: "ISO 8601 timestamp when the certificate was issued"
|
|
@@ -30575,7 +30586,7 @@ var CalculationValueSchema = z.strictObject({
|
|
|
30575
30586
|
description: "Human-readable label for this calculation value",
|
|
30576
30587
|
examples: [
|
|
30577
30588
|
"Exceeding Emission Coefficient",
|
|
30578
|
-
"Prevented Emissions by Waste Subtype and Baseline Per Ton",
|
|
30589
|
+
"Prevented Emissions by Waste Subtype and Emissions Baseline Per Ton",
|
|
30579
30590
|
"Waste Weight",
|
|
30580
30591
|
"Prevented Emissions (CO\u2082e kg)"
|
|
30581
30592
|
]
|
|
@@ -30588,7 +30599,7 @@ var PreventedEmissionsCalculationSchema = z.strictObject({
|
|
|
30588
30599
|
formula: NonEmptyStringSchema.max(100).meta({
|
|
30589
30600
|
title: "Calculation Formula",
|
|
30590
30601
|
description: "Formula used to calculate the prevented emissions",
|
|
30591
|
-
examples: ["
|
|
30602
|
+
examples: ["W * B - W * E"]
|
|
30592
30603
|
}),
|
|
30593
30604
|
method: NonEmptyStringSchema.max(100).meta({
|
|
30594
30605
|
title: "Calculation Method",
|
|
@@ -30755,6 +30766,15 @@ var GasIDIpfsSchema = NftIpfsSchema.safeExtend({
|
|
|
30755
30766
|
invalidDateMessage: "data.summary.issued_at must be a valid ISO 8601 date-time string",
|
|
30756
30767
|
mismatchMessage: "MassID Recycling Date attribute must equal data.summary.issued_at as a Unix timestamp in milliseconds"
|
|
30757
30768
|
});
|
|
30769
|
+
validateDateTimeAttribute({
|
|
30770
|
+
ctx,
|
|
30771
|
+
attributeByTraitType,
|
|
30772
|
+
traitType: "Recycling Date",
|
|
30773
|
+
dateTimeValue: data.summary.recycling_date,
|
|
30774
|
+
missingMessage: "Recycling Date attribute must be present and match data.summary.recycling_date",
|
|
30775
|
+
invalidDateMessage: "data.summary.recycling_date must be a valid ISO 8601 date-time string",
|
|
30776
|
+
mismatchMessage: "Recycling Date attribute must equal data.summary.recycling_date as a Unix timestamp in milliseconds"
|
|
30777
|
+
});
|
|
30758
30778
|
validateDateTimeAttribute({
|
|
30759
30779
|
ctx,
|
|
30760
30780
|
attributeByTraitType,
|
|
@@ -30797,6 +30817,7 @@ var RecycledIDAttributeOriginCitySchema = OriginCityAttributeSchema;
|
|
|
30797
30817
|
var RecycledIDAttributeOriginCountrySubdivisionSchema = OriginCountrySubdivisionAttributeSchema;
|
|
30798
30818
|
var RecycledIDAttributeMassIDTokenIdSchema = MassIDTokenIdAttributeSchema;
|
|
30799
30819
|
var RecycledIDAttributeMassIDRecyclingDateSchema = MassIDRecyclingDateAttributeSchema;
|
|
30820
|
+
var RecycledIDAttributeRecyclingDateSchema = RecyclingDateAttributeSchema;
|
|
30800
30821
|
var RecycledIDAttributeCertificateIssuanceDateSchema = CertificateIssuanceDateAttributeSchema;
|
|
30801
30822
|
var RecycledIDAttributesSchema = z.tuple([
|
|
30802
30823
|
RecycledIDAttributeMethodologySchema,
|
|
@@ -30809,10 +30830,11 @@ var RecycledIDAttributesSchema = z.tuple([
|
|
|
30809
30830
|
RecycledIDAttributeOriginCountrySubdivisionSchema,
|
|
30810
30831
|
RecycledIDAttributeMassIDTokenIdSchema,
|
|
30811
30832
|
RecycledIDAttributeMassIDRecyclingDateSchema,
|
|
30833
|
+
RecycledIDAttributeRecyclingDateSchema,
|
|
30812
30834
|
RecycledIDAttributeCertificateIssuanceDateSchema
|
|
30813
30835
|
]).meta({
|
|
30814
30836
|
title: "RecycledID NFT Attribute Array",
|
|
30815
|
-
description: "Schema for the fixed set of RecycledID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (
|
|
30837
|
+
description: "Schema for the fixed set of RecycledID NFT attributes, enforcing order and type for each trait.\n\nRequired attributes (12, in order): Methodology, Recycled Weight (kg), Credit Amount, Credit Type, Source Waste Type, Source Weight (kg), Origin City, Origin Country Subdivision, MassID, MassID Recycling Date, Recycling Date, Certificate Issuance Date."
|
|
30816
30838
|
});
|
|
30817
30839
|
var RecycledIDSummarySchema = z.strictObject({
|
|
30818
30840
|
recycled_mass_kg: WeightKgSchema.meta({
|
|
@@ -30821,6 +30843,10 @@ var RecycledIDSummarySchema = z.strictObject({
|
|
|
30821
30843
|
}),
|
|
30822
30844
|
credit_type: CreditTypeSchema,
|
|
30823
30845
|
credit_amount: CreditAmountSchema,
|
|
30846
|
+
recycling_date: IsoDateTimeSchema.meta({
|
|
30847
|
+
title: "Recycling Date",
|
|
30848
|
+
description: "ISO 8601 timestamp when the recycling occurred (when the environmental gain was achieved)"
|
|
30849
|
+
}),
|
|
30824
30850
|
issued_at: IsoDateTimeSchema.meta({
|
|
30825
30851
|
title: "Issued At",
|
|
30826
30852
|
description: "ISO 8601 timestamp when the certificate was issued"
|
|
@@ -30968,6 +30994,15 @@ var RecycledIDIpfsSchema = NftIpfsSchema.safeExtend({
|
|
|
30968
30994
|
invalidDateMessage: "data.summary.issued_at must be a valid ISO 8601 date-time string",
|
|
30969
30995
|
mismatchMessage: "MassID Recycling Date attribute must equal data.summary.issued_at as a Unix timestamp in milliseconds"
|
|
30970
30996
|
});
|
|
30997
|
+
validateDateTimeAttribute({
|
|
30998
|
+
ctx,
|
|
30999
|
+
attributeByTraitType,
|
|
31000
|
+
traitType: "Recycling Date",
|
|
31001
|
+
dateTimeValue: data.summary.recycling_date,
|
|
31002
|
+
missingMessage: "Recycling Date attribute must be present and match data.summary.recycling_date",
|
|
31003
|
+
invalidDateMessage: "data.summary.recycling_date must be a valid ISO 8601 date-time string",
|
|
31004
|
+
mismatchMessage: "Recycling Date attribute must equal data.summary.recycling_date as a Unix timestamp in milliseconds"
|
|
31005
|
+
});
|
|
30971
31006
|
validateDateTimeAttribute({
|
|
30972
31007
|
ctx,
|
|
30973
31008
|
attributeByTraitType,
|
|
@@ -32077,6 +32112,6 @@ var MassIDAuditSchema = BaseIpfsSchema.safeExtend({
|
|
|
32077
32112
|
}).meta(MassIDAuditSchemaMeta);
|
|
32078
32113
|
/* v8 ignore file -- @preserve */
|
|
32079
32114
|
|
|
32080
|
-
export { ALLOWED_BLOCKCHAIN_NETWORKS, AuditReferenceSchema, AuditResultSchema, AuditRuleDefinitionSchema, AuditRuleDefinitionsSchema, AuditRuleExecutionResultSchema, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, BaseIpfsSchema, BlockchainChainIdSchema, BlockchainNetworkNameSchema, CertificateCollectionItemPurchaseSchema, CertificateCollectionItemRetirementSchema, CertificateIssuanceDateAttributeSchema, CertificateReferenceBaseSchema, CertificateTypeSchema, CitySchema, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, CollectionSlugSchema, ContainerTypeSchema, CoordinatesSchema, CreditAmountAttributeSchema, CreditAmountSchema, CreditPurchaseReceiptAttributesSchema, CreditPurchaseReceiptDataSchema, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, CreditPurchaseReceiptReferenceSchema, CreditPurchaseReceiptShortNameSchema, CreditPurchaseReceiptSummarySchema, CreditReferenceSchema, CreditRetirementReceiptAttributesSchema, CreditRetirementReceiptDataSchema, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, CreditTokenNameSchema, CreditTokenSlugSchema, CreditTokenSymbolSchema, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, EnsDomainSchema, EthereumAddressSchema, ExternalIdSchema, ExternalUrlSchema, GasIDAttributesSchema, GasIDDataSchema, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, GasIDReferenceSchema, GasIDShortNameSchema, GasTypeSchema, HexColorSchema, IbamaWasteClassificationSchema, IpfsCidSchema, IpfsUriSchema, IpnsSchema, IsoCountryCodeSchema, IsoCountrySubdivisionCodeSchema, IsoDateSchema, IsoDateTimeSchema, LatitudeSchema, LocationSchema, LongitudeSchema, MassIDAttributesSchema, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, MassIDAuditSummarySchema, MassIDDataSchema, MassIDIpfsSchema, MassIDIpfsSchemaMeta, MassIDNameSchema, MassIDRecyclingDateAttributeSchema, MassIDReferenceSchema, MassIDShortNameSchema, MassIDTokenIdAttributeSchema, MethodologyAttributeSchema, MethodologyDataSchema, MethodologyNameSchema, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, MethodologyShortNameSchema, MethodologySlugSchema, NftAttributeSchema, NftIpfsSchema, NftTokenReferenceBaseSchema, NonEmptyStringSchema, NonNegativeFloatSchema, NonNegativeIntegerSchema, OriginCityAttributeSchema, OriginCountrySubdivisionAttributeSchema, ParticipantIdHashSchema, ParticipantRoleSchema, ParticipantSchema, PercentageSchema, PositiveIntegerSchema, ReceiptIdentitySchema, RecordEnvironmentSchema, RecordSchemaTypeSchema, RecycledIDAttributesSchema, RecycledIDDataSchema, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, RecycledIDReferenceSchema, RecycledIDShortNameSchema, ScaleTypeSchema, SchemaInfoSchema, SemanticVersionSchema, Sha256HashSchema, SlugSchema, SmartContractAddressSchema, SmartContractSchema, SourceWasteTypeAttributeSchema, SourceWeightAttributeSchema, StringifiedTokenIdSchema, TokenIdSchema, TokenReferenceBaseSchema, UnixTimestampSchema, UsdcAmountSchema, UuidSchema, VehicleTypeSchema, ViewerReferenceSchema, WastePropertiesSchema, WasteSubtypeSchema, WasteTypeSchema, WeighingCaptureMethodSchema, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
32115
|
+
export { ALLOWED_BLOCKCHAIN_NETWORKS, AuditReferenceSchema, AuditResultSchema, AuditRuleDefinitionSchema, AuditRuleDefinitionsSchema, AuditRuleExecutionResultSchema, AuditRuleExecutionResultsSchema, BLOCKCHAIN_NETWORK_CONFIG, BRAZIL_COUNTRY_CODE, BRAZIL_MUNICIPALITIES, BRAZIL_MUNICIPALITIES_NAMES, BRAZIL_SUBDIVISION_CODES, BaseIpfsSchema, BlockchainChainIdSchema, BlockchainNetworkNameSchema, CertificateCollectionItemPurchaseSchema, CertificateCollectionItemRetirementSchema, CertificateIssuanceDateAttributeSchema, CertificateReferenceBaseSchema, CertificateTypeSchema, CitySchema, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, CollectionSlugSchema, ContainerTypeSchema, CoordinatesSchema, CreditAmountAttributeSchema, CreditAmountSchema, CreditPurchaseReceiptAttributesSchema, CreditPurchaseReceiptDataSchema, CreditPurchaseReceiptIpfsSchema, CreditPurchaseReceiptIpfsSchemaMeta, CreditPurchaseReceiptNameSchema, CreditPurchaseReceiptReferenceSchema, CreditPurchaseReceiptShortNameSchema, CreditPurchaseReceiptSummarySchema, CreditReferenceSchema, CreditRetirementReceiptAttributesSchema, CreditRetirementReceiptDataSchema, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, CreditRetirementReceiptNameSchema, CreditRetirementReceiptReferenceSchema, CreditRetirementReceiptShortNameSchema, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, CreditTokenNameSchema, CreditTokenSlugSchema, CreditTokenSymbolSchema, CreditTypeAttributeSchema, CreditTypeSchema, EPSILON, EnsDomainSchema, EthereumAddressSchema, ExternalIdSchema, ExternalUrlSchema, GasIDAttributesSchema, GasIDDataSchema, GasIDIpfsSchema, GasIDIpfsSchemaMeta, GasIDNameSchema, GasIDReferenceSchema, GasIDShortNameSchema, GasTypeSchema, HexColorSchema, IbamaWasteClassificationSchema, IpfsCidSchema, IpfsUriSchema, IpnsSchema, IsoCountryCodeSchema, IsoCountrySubdivisionCodeSchema, IsoDateSchema, IsoDateTimeSchema, LatitudeSchema, LocationSchema, LongitudeSchema, MassIDAttributesSchema, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, MassIDAuditSummarySchema, MassIDDataSchema, MassIDIpfsSchema, MassIDIpfsSchemaMeta, MassIDNameSchema, MassIDRecyclingDateAttributeSchema, MassIDReferenceSchema, MassIDShortNameSchema, MassIDTokenIdAttributeSchema, MethodologyAttributeSchema, MethodologyDataSchema, MethodologyNameSchema, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, MethodologyShortNameSchema, MethodologySlugSchema, NftAttributeSchema, NftIpfsSchema, NftTokenReferenceBaseSchema, NonEmptyStringSchema, NonNegativeFloatSchema, NonNegativeIntegerSchema, OriginCityAttributeSchema, OriginCountrySubdivisionAttributeSchema, ParticipantIdHashSchema, ParticipantRoleSchema, ParticipantSchema, PercentageSchema, PositiveIntegerSchema, ReceiptIdentitySchema, RecordEnvironmentSchema, RecordSchemaTypeSchema, RecycledIDAttributesSchema, RecycledIDDataSchema, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, RecycledIDNameSchema, RecycledIDReferenceSchema, RecycledIDShortNameSchema, RecyclingDateAttributeSchema, ScaleTypeSchema, SchemaInfoSchema, SemanticVersionSchema, Sha256HashSchema, SlugSchema, SmartContractAddressSchema, SmartContractSchema, SourceWasteTypeAttributeSchema, SourceWeightAttributeSchema, StringifiedTokenIdSchema, TokenIdSchema, TokenReferenceBaseSchema, UnixTimestampSchema, UsdcAmountSchema, UuidSchema, VehicleTypeSchema, ViewerReferenceSchema, WastePropertiesSchema, WasteSubtypeSchema, WasteTypeSchema, WeighingCaptureMethodSchema, WeightKgSchema, buildSchemaUrl, canonicalizeForHash, createAttributeMap, createCreditPurchaseReceiptNameSchema, createCreditPurchaseReceiptShortNameSchema, createCreditRetirementReceiptNameSchema, createCreditRetirementReceiptShortNameSchema, createDateAttributeSchema, createGasIDNameSchema, createGasIDShortNameSchema, createMassIDNameSchema, createMassIDShortNameSchema, createNumericAttributeSchema, createOrderedAttributesSchema, createReceiptCollectionSchema, createRecycledIDNameSchema, createRecycledIDShortNameSchema, createWeightAttributeSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, hashCanonicalJson, hashObject, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCertificateCollectionSlugs, validateCollectionsHaveRetiredAmounts, validateCountMatches, validateCreditSlugExists, validateCreditSymbolExists, validateDateAttribute, validateDateTimeAttribute, validateFormattedName, validateLocationBrazilData, validateNumericAttributeValue, validateRetirementReceiptRequirement, validateSummaryListMatchesData, validateTokenIdInName, validateTotalMatches };
|
|
32081
32116
|
//# sourceMappingURL=index.js.map
|
|
32082
32117
|
//# sourceMappingURL=index.js.map
|