@carrot-foundation/schemas 0.4.1 → 0.5.0
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 +34 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -44
- package/dist/index.d.ts +46 -44
- package/dist/index.js +34 -22
- 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 +11 -16
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +4 -4
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +72 -83
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +5 -5
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +10 -10
- 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 +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +6 -6
- package/schemas/schema-hashes.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -1943,18 +1943,18 @@ declare const CreditPurchaseReceiptAttributesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1943
1943
|
type CreditPurchaseReceiptAttributes = z.infer<typeof CreditPurchaseReceiptAttributesSchema>;
|
|
1944
1944
|
|
|
1945
1945
|
declare const CreditPurchaseReceiptIdentitySchema: z.ZodObject<{
|
|
1946
|
-
name: z.ZodString
|
|
1947
|
-
external_id: z.ZodUUID
|
|
1948
|
-
external_url: z.ZodURL
|
|
1946
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1947
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
1948
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
1949
1949
|
}, z.core.$strict>;
|
|
1950
1950
|
type CreditPurchaseReceiptIdentity = z.infer<typeof CreditPurchaseReceiptIdentitySchema>;
|
|
1951
1951
|
declare const CreditPurchaseReceiptBuyerSchema: z.ZodObject<{
|
|
1952
1952
|
wallet_address: z.ZodString;
|
|
1953
1953
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1954
1954
|
identity: z.ZodOptional<z.ZodObject<{
|
|
1955
|
-
name: z.ZodString
|
|
1956
|
-
external_id: z.ZodUUID
|
|
1957
|
-
external_url: z.ZodURL
|
|
1955
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
1957
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
1958
1958
|
}, z.core.$strict>>;
|
|
1959
1959
|
}, z.core.$strict>;
|
|
1960
1960
|
type CreditPurchaseReceiptBuyer = z.infer<typeof CreditPurchaseReceiptBuyerSchema>;
|
|
@@ -2044,9 +2044,9 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
2044
2044
|
wallet_address: z.ZodString;
|
|
2045
2045
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2046
2046
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2047
|
-
name: z.ZodString
|
|
2048
|
-
external_id: z.ZodUUID
|
|
2049
|
-
external_url: z.ZodURL
|
|
2047
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2049
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2050
2050
|
}, z.core.$strict>>;
|
|
2051
2051
|
}, z.core.$strict>;
|
|
2052
2052
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2202,9 +2202,9 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
2202
2202
|
wallet_address: z.ZodString;
|
|
2203
2203
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2204
2204
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2205
|
-
name: z.ZodString
|
|
2206
|
-
external_id: z.ZodUUID
|
|
2207
|
-
external_url: z.ZodURL
|
|
2205
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2206
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2207
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2208
2208
|
}, z.core.$strict>>;
|
|
2209
2209
|
}, z.core.$strict>;
|
|
2210
2210
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2296,26 +2296,26 @@ declare const CreditRetirementReceiptAttributesSchema: z.ZodArray<z.ZodObject<{
|
|
|
2296
2296
|
type CreditRetirementReceiptAttributes = z.infer<typeof CreditRetirementReceiptAttributesSchema>;
|
|
2297
2297
|
|
|
2298
2298
|
declare const CreditRetirementReceiptIdentitySchema: z.ZodObject<{
|
|
2299
|
-
name: z.ZodString
|
|
2300
|
-
external_id: z.ZodUUID
|
|
2301
|
-
external_url: z.ZodURL
|
|
2299
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2300
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2301
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2302
2302
|
}, z.core.$strict>;
|
|
2303
2303
|
type CreditRetirementReceiptIdentity = z.infer<typeof CreditRetirementReceiptIdentitySchema>;
|
|
2304
2304
|
declare const CreditRetirementReceiptBeneficiarySchema: z.ZodObject<{
|
|
2305
2305
|
beneficiary_id: z.ZodUUID;
|
|
2306
|
-
identity: z.ZodObject<{
|
|
2307
|
-
name: z.ZodString
|
|
2308
|
-
external_id: z.ZodUUID
|
|
2309
|
-
external_url: z.ZodURL
|
|
2310
|
-
}, z.core.$strict
|
|
2306
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2308
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2309
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2310
|
+
}, z.core.$strict>>;
|
|
2311
2311
|
}, z.core.$strict>;
|
|
2312
2312
|
type CreditRetirementReceiptBeneficiary = z.infer<typeof CreditRetirementReceiptBeneficiarySchema>;
|
|
2313
2313
|
declare const CreditRetirementReceiptCreditHolderSchema: z.ZodObject<{
|
|
2314
2314
|
wallet_address: z.ZodString;
|
|
2315
2315
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2316
|
-
name: z.ZodString
|
|
2317
|
-
external_id: z.ZodUUID
|
|
2318
|
-
external_url: z.ZodURL
|
|
2316
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2318
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2319
2319
|
}, z.core.$strict>>;
|
|
2320
2320
|
}, z.core.$strict>;
|
|
2321
2321
|
type CreditRetirementReceiptCreditHolder = z.infer<typeof CreditRetirementReceiptCreditHolderSchema>;
|
|
@@ -2416,18 +2416,18 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
|
2416
2416
|
}, z.core.$strict>;
|
|
2417
2417
|
beneficiary: z.ZodObject<{
|
|
2418
2418
|
beneficiary_id: z.ZodUUID;
|
|
2419
|
-
identity: z.ZodObject<{
|
|
2420
|
-
name: z.ZodString
|
|
2421
|
-
external_id: z.ZodUUID
|
|
2422
|
-
external_url: z.ZodURL
|
|
2423
|
-
}, z.core.$strict
|
|
2419
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2420
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2422
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2423
|
+
}, z.core.$strict>>;
|
|
2424
2424
|
}, z.core.$strict>;
|
|
2425
2425
|
credit_holder: z.ZodObject<{
|
|
2426
2426
|
wallet_address: z.ZodString;
|
|
2427
2427
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2428
|
-
name: z.ZodString
|
|
2429
|
-
external_id: z.ZodUUID
|
|
2430
|
-
external_url: z.ZodURL
|
|
2428
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2430
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2431
2431
|
}, z.core.$strict>>;
|
|
2432
2432
|
}, z.core.$strict>;
|
|
2433
2433
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2514,7 +2514,7 @@ type CreditRetirementReceiptData = z.infer<typeof CreditRetirementReceiptDataSch
|
|
|
2514
2514
|
|
|
2515
2515
|
declare const CreditRetirementReceiptIpfsSchemaMeta: {
|
|
2516
2516
|
readonly title: "CreditRetirementReceipt NFT IPFS Record";
|
|
2517
|
-
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2517
|
+
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2518
2518
|
readonly $id: string;
|
|
2519
2519
|
readonly version: string;
|
|
2520
2520
|
};
|
|
@@ -2588,18 +2588,18 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
2588
2588
|
}, z.core.$strict>;
|
|
2589
2589
|
beneficiary: z.ZodObject<{
|
|
2590
2590
|
beneficiary_id: z.ZodUUID;
|
|
2591
|
-
identity: z.ZodObject<{
|
|
2592
|
-
name: z.ZodString
|
|
2593
|
-
external_id: z.ZodUUID
|
|
2594
|
-
external_url: z.ZodURL
|
|
2595
|
-
}, z.core.$strict
|
|
2591
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2592
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2593
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2594
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2595
|
+
}, z.core.$strict>>;
|
|
2596
2596
|
}, z.core.$strict>;
|
|
2597
2597
|
credit_holder: z.ZodObject<{
|
|
2598
2598
|
wallet_address: z.ZodString;
|
|
2599
2599
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2600
|
-
name: z.ZodString
|
|
2601
|
-
external_id: z.ZodUUID
|
|
2602
|
-
external_url: z.ZodURL
|
|
2600
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2601
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2602
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2603
2603
|
}, z.core.$strict>>;
|
|
2604
2604
|
}, z.core.$strict>;
|
|
2605
2605
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -3434,6 +3434,8 @@ type IbamaWasteClassification = z.infer<typeof IbamaWasteClassificationSchema>;
|
|
|
3434
3434
|
|
|
3435
3435
|
declare const NonNegativeFloatSchema: z.ZodNumber;
|
|
3436
3436
|
type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
|
|
3437
|
+
declare const PositiveFloatSchema: z.ZodNumber;
|
|
3438
|
+
type PositiveFloat = z.infer<typeof PositiveFloatSchema>;
|
|
3437
3439
|
declare const WeightKgSchema: z.ZodNumber;
|
|
3438
3440
|
type WeightKg = z.infer<typeof WeightKgSchema>;
|
|
3439
3441
|
declare const PercentageSchema: z.ZodNumber;
|
|
@@ -3924,9 +3926,9 @@ declare const CreditRetirementReceiptSummarySchema: z.ZodObject<{
|
|
|
3924
3926
|
}, z.core.$strict>;
|
|
3925
3927
|
type CreditRetirementReceiptSummary = z.infer<typeof CreditRetirementReceiptSummarySchema>;
|
|
3926
3928
|
declare const ReceiptIdentitySchema: z.ZodObject<{
|
|
3927
|
-
name: z.ZodString
|
|
3928
|
-
external_id: z.ZodUUID
|
|
3929
|
-
external_url: z.ZodURL
|
|
3929
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3930
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
3931
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
3930
3932
|
}, z.core.$strict>;
|
|
3931
3933
|
type ReceiptIdentity = z.infer<typeof ReceiptIdentitySchema>;
|
|
3932
3934
|
declare function createReceiptCollectionSchema(params: {
|
|
@@ -4144,4 +4146,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4144
4146
|
}) => void;
|
|
4145
4147
|
}): void;
|
|
4146
4148
|
|
|
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 };
|
|
4149
|
+
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 PositiveFloat, PositiveFloatSchema, 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
|
@@ -1943,18 +1943,18 @@ declare const CreditPurchaseReceiptAttributesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1943
1943
|
type CreditPurchaseReceiptAttributes = z.infer<typeof CreditPurchaseReceiptAttributesSchema>;
|
|
1944
1944
|
|
|
1945
1945
|
declare const CreditPurchaseReceiptIdentitySchema: z.ZodObject<{
|
|
1946
|
-
name: z.ZodString
|
|
1947
|
-
external_id: z.ZodUUID
|
|
1948
|
-
external_url: z.ZodURL
|
|
1946
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1947
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
1948
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
1949
1949
|
}, z.core.$strict>;
|
|
1950
1950
|
type CreditPurchaseReceiptIdentity = z.infer<typeof CreditPurchaseReceiptIdentitySchema>;
|
|
1951
1951
|
declare const CreditPurchaseReceiptBuyerSchema: z.ZodObject<{
|
|
1952
1952
|
wallet_address: z.ZodString;
|
|
1953
1953
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1954
1954
|
identity: z.ZodOptional<z.ZodObject<{
|
|
1955
|
-
name: z.ZodString
|
|
1956
|
-
external_id: z.ZodUUID
|
|
1957
|
-
external_url: z.ZodURL
|
|
1955
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
1957
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
1958
1958
|
}, z.core.$strict>>;
|
|
1959
1959
|
}, z.core.$strict>;
|
|
1960
1960
|
type CreditPurchaseReceiptBuyer = z.infer<typeof CreditPurchaseReceiptBuyerSchema>;
|
|
@@ -2044,9 +2044,9 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
2044
2044
|
wallet_address: z.ZodString;
|
|
2045
2045
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2046
2046
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2047
|
-
name: z.ZodString
|
|
2048
|
-
external_id: z.ZodUUID
|
|
2049
|
-
external_url: z.ZodURL
|
|
2047
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2048
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2049
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2050
2050
|
}, z.core.$strict>>;
|
|
2051
2051
|
}, z.core.$strict>;
|
|
2052
2052
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2202,9 +2202,9 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
2202
2202
|
wallet_address: z.ZodString;
|
|
2203
2203
|
id: z.ZodOptional<z.ZodUUID>;
|
|
2204
2204
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2205
|
-
name: z.ZodString
|
|
2206
|
-
external_id: z.ZodUUID
|
|
2207
|
-
external_url: z.ZodURL
|
|
2205
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2206
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2207
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2208
2208
|
}, z.core.$strict>>;
|
|
2209
2209
|
}, z.core.$strict>;
|
|
2210
2210
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2296,26 +2296,26 @@ declare const CreditRetirementReceiptAttributesSchema: z.ZodArray<z.ZodObject<{
|
|
|
2296
2296
|
type CreditRetirementReceiptAttributes = z.infer<typeof CreditRetirementReceiptAttributesSchema>;
|
|
2297
2297
|
|
|
2298
2298
|
declare const CreditRetirementReceiptIdentitySchema: z.ZodObject<{
|
|
2299
|
-
name: z.ZodString
|
|
2300
|
-
external_id: z.ZodUUID
|
|
2301
|
-
external_url: z.ZodURL
|
|
2299
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2300
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2301
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2302
2302
|
}, z.core.$strict>;
|
|
2303
2303
|
type CreditRetirementReceiptIdentity = z.infer<typeof CreditRetirementReceiptIdentitySchema>;
|
|
2304
2304
|
declare const CreditRetirementReceiptBeneficiarySchema: z.ZodObject<{
|
|
2305
2305
|
beneficiary_id: z.ZodUUID;
|
|
2306
|
-
identity: z.ZodObject<{
|
|
2307
|
-
name: z.ZodString
|
|
2308
|
-
external_id: z.ZodUUID
|
|
2309
|
-
external_url: z.ZodURL
|
|
2310
|
-
}, z.core.$strict
|
|
2306
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2308
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2309
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2310
|
+
}, z.core.$strict>>;
|
|
2311
2311
|
}, z.core.$strict>;
|
|
2312
2312
|
type CreditRetirementReceiptBeneficiary = z.infer<typeof CreditRetirementReceiptBeneficiarySchema>;
|
|
2313
2313
|
declare const CreditRetirementReceiptCreditHolderSchema: z.ZodObject<{
|
|
2314
2314
|
wallet_address: z.ZodString;
|
|
2315
2315
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2316
|
-
name: z.ZodString
|
|
2317
|
-
external_id: z.ZodUUID
|
|
2318
|
-
external_url: z.ZodURL
|
|
2316
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2318
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2319
2319
|
}, z.core.$strict>>;
|
|
2320
2320
|
}, z.core.$strict>;
|
|
2321
2321
|
type CreditRetirementReceiptCreditHolder = z.infer<typeof CreditRetirementReceiptCreditHolderSchema>;
|
|
@@ -2416,18 +2416,18 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
|
2416
2416
|
}, z.core.$strict>;
|
|
2417
2417
|
beneficiary: z.ZodObject<{
|
|
2418
2418
|
beneficiary_id: z.ZodUUID;
|
|
2419
|
-
identity: z.ZodObject<{
|
|
2420
|
-
name: z.ZodString
|
|
2421
|
-
external_id: z.ZodUUID
|
|
2422
|
-
external_url: z.ZodURL
|
|
2423
|
-
}, z.core.$strict
|
|
2419
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2420
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2422
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2423
|
+
}, z.core.$strict>>;
|
|
2424
2424
|
}, z.core.$strict>;
|
|
2425
2425
|
credit_holder: z.ZodObject<{
|
|
2426
2426
|
wallet_address: z.ZodString;
|
|
2427
2427
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2428
|
-
name: z.ZodString
|
|
2429
|
-
external_id: z.ZodUUID
|
|
2430
|
-
external_url: z.ZodURL
|
|
2428
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2430
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2431
2431
|
}, z.core.$strict>>;
|
|
2432
2432
|
}, z.core.$strict>;
|
|
2433
2433
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -2514,7 +2514,7 @@ type CreditRetirementReceiptData = z.infer<typeof CreditRetirementReceiptDataSch
|
|
|
2514
2514
|
|
|
2515
2515
|
declare const CreditRetirementReceiptIpfsSchemaMeta: {
|
|
2516
2516
|
readonly title: "CreditRetirementReceipt NFT IPFS Record";
|
|
2517
|
-
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2517
|
+
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2518
2518
|
readonly $id: string;
|
|
2519
2519
|
readonly version: string;
|
|
2520
2520
|
};
|
|
@@ -2588,18 +2588,18 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
2588
2588
|
}, z.core.$strict>;
|
|
2589
2589
|
beneficiary: z.ZodObject<{
|
|
2590
2590
|
beneficiary_id: z.ZodUUID;
|
|
2591
|
-
identity: z.ZodObject<{
|
|
2592
|
-
name: z.ZodString
|
|
2593
|
-
external_id: z.ZodUUID
|
|
2594
|
-
external_url: z.ZodURL
|
|
2595
|
-
}, z.core.$strict
|
|
2591
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2592
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2593
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2594
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2595
|
+
}, z.core.$strict>>;
|
|
2596
2596
|
}, z.core.$strict>;
|
|
2597
2597
|
credit_holder: z.ZodObject<{
|
|
2598
2598
|
wallet_address: z.ZodString;
|
|
2599
2599
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2600
|
-
name: z.ZodString
|
|
2601
|
-
external_id: z.ZodUUID
|
|
2602
|
-
external_url: z.ZodURL
|
|
2600
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2601
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
2602
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
2603
2603
|
}, z.core.$strict>>;
|
|
2604
2604
|
}, z.core.$strict>;
|
|
2605
2605
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -3434,6 +3434,8 @@ type IbamaWasteClassification = z.infer<typeof IbamaWasteClassificationSchema>;
|
|
|
3434
3434
|
|
|
3435
3435
|
declare const NonNegativeFloatSchema: z.ZodNumber;
|
|
3436
3436
|
type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
|
|
3437
|
+
declare const PositiveFloatSchema: z.ZodNumber;
|
|
3438
|
+
type PositiveFloat = z.infer<typeof PositiveFloatSchema>;
|
|
3437
3439
|
declare const WeightKgSchema: z.ZodNumber;
|
|
3438
3440
|
type WeightKg = z.infer<typeof WeightKgSchema>;
|
|
3439
3441
|
declare const PercentageSchema: z.ZodNumber;
|
|
@@ -3924,9 +3926,9 @@ declare const CreditRetirementReceiptSummarySchema: z.ZodObject<{
|
|
|
3924
3926
|
}, z.core.$strict>;
|
|
3925
3927
|
type CreditRetirementReceiptSummary = z.infer<typeof CreditRetirementReceiptSummarySchema>;
|
|
3926
3928
|
declare const ReceiptIdentitySchema: z.ZodObject<{
|
|
3927
|
-
name: z.ZodString
|
|
3928
|
-
external_id: z.ZodUUID
|
|
3929
|
-
external_url: z.ZodURL
|
|
3929
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3930
|
+
external_id: z.ZodOptional<z.ZodUUID>;
|
|
3931
|
+
external_url: z.ZodOptional<z.ZodURL>;
|
|
3930
3932
|
}, z.core.$strict>;
|
|
3931
3933
|
type ReceiptIdentity = z.infer<typeof ReceiptIdentitySchema>;
|
|
3932
3934
|
declare function createReceiptCollectionSchema(params: {
|
|
@@ -4144,4 +4146,4 @@ declare function validateLocationBrazilData(record: {
|
|
|
4144
4146
|
}) => void;
|
|
4145
4147
|
}): void;
|
|
4146
4148
|
|
|
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 };
|
|
4149
|
+
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 PositiveFloat, PositiveFloatSchema, 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
|
@@ -36,9 +36,14 @@ var NonNegativeFloatSchema = z.number().min(0).meta({
|
|
|
36
36
|
description: "Floating-point number that is zero or positive",
|
|
37
37
|
examples: [0, 45.2, 72.5]
|
|
38
38
|
});
|
|
39
|
-
var
|
|
39
|
+
var PositiveFloatSchema = z.number().gt(0).meta({
|
|
40
|
+
title: "Positive Float",
|
|
41
|
+
description: "Floating-point number greater than zero",
|
|
42
|
+
examples: [0.1, 45.2, 72.5]
|
|
43
|
+
});
|
|
44
|
+
var WeightKgSchema = PositiveFloatSchema.meta({
|
|
40
45
|
title: "Weight",
|
|
41
|
-
description: "Weight measurement in kilograms (kg)",
|
|
46
|
+
description: "Weight measurement in kilograms (kg), must be greater than zero",
|
|
42
47
|
examples: [500.35, 3e3]
|
|
43
48
|
});
|
|
44
49
|
var PercentageSchema = NonNegativeFloatSchema.max(100).meta({
|
|
@@ -29404,22 +29409,27 @@ var CreditRetirementReceiptSummarySchema = SummaryBaseSchema.safeExtend({
|
|
|
29404
29409
|
description: "Summary totals for the credit retirement including credit quantity, certificate count, and timestamp"
|
|
29405
29410
|
});
|
|
29406
29411
|
var ReceiptIdentitySchema = z.strictObject({
|
|
29407
|
-
name: NonEmptyStringSchema.max(100).meta({
|
|
29412
|
+
name: NonEmptyStringSchema.max(100).optional().meta({
|
|
29408
29413
|
title: "Identity Name",
|
|
29409
29414
|
description: "Display name of the buyer or beneficiary on the receipt",
|
|
29410
29415
|
examples: ["EcoTech Solutions Inc.", "Climate Action Corp"]
|
|
29411
29416
|
}),
|
|
29412
|
-
external_id: ExternalIdSchema.meta({
|
|
29417
|
+
external_id: ExternalIdSchema.optional().meta({
|
|
29413
29418
|
title: "Identity External ID",
|
|
29414
29419
|
description: "Unique identifier for the buyer or beneficiary in the Carrot platform"
|
|
29415
29420
|
}),
|
|
29416
|
-
external_url: ExternalUrlSchema.meta({
|
|
29421
|
+
external_url: ExternalUrlSchema.optional().meta({
|
|
29417
29422
|
title: "Identity External URL",
|
|
29418
29423
|
description: "Link to the buyer or beneficiary profile page on the Carrot platform"
|
|
29419
29424
|
})
|
|
29420
|
-
}).
|
|
29425
|
+
}).refine(
|
|
29426
|
+
(value) => value.name !== void 0 || value.external_id !== void 0 || value.external_url !== void 0,
|
|
29427
|
+
{
|
|
29428
|
+
message: "identity must include at least one of: name, external_id, external_url"
|
|
29429
|
+
}
|
|
29430
|
+
).meta({
|
|
29421
29431
|
title: "Identity",
|
|
29422
|
-
description: "Identity information for the buyer or beneficiary associated with this receipt"
|
|
29432
|
+
description: "Identity information for the buyer or beneficiary associated with this receipt. All fields are optional, but at least one must be provided when the identity block is present."
|
|
29423
29433
|
});
|
|
29424
29434
|
function createReceiptCollectionSchema(params) {
|
|
29425
29435
|
const { meta } = params;
|
|
@@ -29475,7 +29485,7 @@ function buildSchemaUrl(schemaPath) {
|
|
|
29475
29485
|
return `${getSchemaBaseUrl()}/${cleanPath}`;
|
|
29476
29486
|
}
|
|
29477
29487
|
function getSchemaVersionOrDefault() {
|
|
29478
|
-
return "0.
|
|
29488
|
+
return "0.5.0";
|
|
29479
29489
|
}
|
|
29480
29490
|
|
|
29481
29491
|
// src/shared/schema-validation.ts
|
|
@@ -31468,11 +31478,11 @@ var CreditRetirementReceiptPurchaseReceiptAttributeSchema = NftAttributeSchema.s
|
|
|
31468
31478
|
});
|
|
31469
31479
|
var REQUIRED_CREDIT_RETIREMENT_RECEIPT_ATTRIBUTES = [
|
|
31470
31480
|
CreditRetirementReceiptTotalCreditsAttributeSchema,
|
|
31471
|
-
CreditRetirementReceiptBeneficiaryAttributeSchema,
|
|
31472
31481
|
CreditRetirementReceiptRetirementDateAttributeSchema,
|
|
31473
31482
|
CreditRetirementReceiptCertificatesAttributeSchema
|
|
31474
31483
|
];
|
|
31475
31484
|
var CONDITIONAL_CREDIT_RETIREMENT_RECEIPT_ATTRIBUTES = [
|
|
31485
|
+
CreditRetirementReceiptBeneficiaryAttributeSchema,
|
|
31476
31486
|
CreditRetirementReceiptCreditHolderAttributeSchema,
|
|
31477
31487
|
CreditRetirementReceiptPurchaseDateAttributeSchema,
|
|
31478
31488
|
CreditRetirementReceiptPurchaseReceiptAttributeSchema
|
|
@@ -31487,11 +31497,10 @@ var CreditRetirementReceiptAttributesSchema = createOrderedAttributesSchema({
|
|
|
31487
31497
|
...DYNAMIC_CREDIT_RETIREMENT_RECEIPT_ATTRIBUTES
|
|
31488
31498
|
],
|
|
31489
31499
|
title: "Credit Retirement Receipt NFT Attribute Array",
|
|
31490
|
-
description: "Attributes for credit retirement receipts including per-credit breakdowns, totals, beneficiary, credit holder, retirement date, certificate count, and optional purchase info. Fixed required attributes: Total Credits Retired,
|
|
31500
|
+
description: "Attributes for credit retirement receipts including per-credit breakdowns, totals, beneficiary, credit holder, retirement date, certificate count, and optional purchase info. Fixed required attributes: Total Credits Retired, Retirement Date, Certificates Retired. Conditional attributes: Beneficiary (required when beneficiary.identity.name is provided), Credit Holder (required when credit_holder.identity.name is provided), Purchase Date (optional, when purchase_receipt is present), Purchase Receipt (optional, when purchase_receipt is present). Dynamic attributes: Credit attributes (one per credit symbol in data.credits).",
|
|
31491
31501
|
uniqueBySelector: (attribute) => attribute.trait_type,
|
|
31492
31502
|
requiredTraitTypes: [
|
|
31493
31503
|
"Total Credits Retired",
|
|
31494
|
-
"Beneficiary",
|
|
31495
31504
|
"Retirement Date",
|
|
31496
31505
|
"Certificates Retired"
|
|
31497
31506
|
]
|
|
@@ -31502,7 +31511,7 @@ var CreditRetirementReceiptBeneficiarySchema = z.strictObject({
|
|
|
31502
31511
|
title: "Retirement Beneficiary ID",
|
|
31503
31512
|
description: "UUID identifying the beneficiary of the retirement (bytes16 normalized to UUID)"
|
|
31504
31513
|
}),
|
|
31505
|
-
identity: CreditRetirementReceiptIdentitySchema
|
|
31514
|
+
identity: CreditRetirementReceiptIdentitySchema.optional()
|
|
31506
31515
|
}).meta({
|
|
31507
31516
|
title: "Beneficiary",
|
|
31508
31517
|
description: "Beneficiary receiving the retirement benefit"
|
|
@@ -31722,7 +31731,7 @@ var CreditRetirementReceiptDataSchema = z.strictObject({
|
|
|
31722
31731
|
});
|
|
31723
31732
|
var CreditRetirementReceiptIpfsSchemaMeta = {
|
|
31724
31733
|
title: "CreditRetirementReceipt NFT IPFS Record",
|
|
31725
|
-
description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes",
|
|
31734
|
+
description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details (identity optional), credit breakdowns, certificate allocations, and NFT display attributes",
|
|
31726
31735
|
$id: buildSchemaUrl(
|
|
31727
31736
|
"credit-retirement-receipt/credit-retirement-receipt.schema.json"
|
|
31728
31737
|
),
|
|
@@ -31792,14 +31801,17 @@ var CreditRetirementReceiptIpfsSchema = NftIpfsSchema.safeExtend({
|
|
|
31792
31801
|
missingMessage: 'Attribute "Certificates Retired" is required',
|
|
31793
31802
|
mismatchMessage: 'Attribute "Certificates Retired" must match data.summary.total_certificates'
|
|
31794
31803
|
});
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
|
|
31801
|
-
|
|
31802
|
-
|
|
31804
|
+
const beneficiaryName = data.beneficiary.identity?.name;
|
|
31805
|
+
if (beneficiaryName) {
|
|
31806
|
+
validateAttributeValue({
|
|
31807
|
+
ctx,
|
|
31808
|
+
attributeByTraitType,
|
|
31809
|
+
traitType: "Beneficiary",
|
|
31810
|
+
expectedValue: String(beneficiaryName),
|
|
31811
|
+
missingMessage: 'Attribute "Beneficiary" is required when beneficiary.identity.name is provided',
|
|
31812
|
+
mismatchMessage: 'Attribute "Beneficiary" must match beneficiary.identity.name'
|
|
31813
|
+
});
|
|
31814
|
+
}
|
|
31803
31815
|
const creditHolderName = data.credit_holder.identity?.name;
|
|
31804
31816
|
if (creditHolderName) {
|
|
31805
31817
|
validateAttributeValue({
|
|
@@ -32081,6 +32093,6 @@ var MassIDAuditSchema = BaseIpfsSchema.safeExtend({
|
|
|
32081
32093
|
data: MassIDAuditDataSchema
|
|
32082
32094
|
}).meta(MassIDAuditSchemaMeta);
|
|
32083
32095
|
|
|
32084
|
-
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 };
|
|
32096
|
+
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, PositiveFloatSchema, 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 };
|
|
32085
32097
|
//# sourceMappingURL=index.js.map
|
|
32086
32098
|
//# sourceMappingURL=index.js.map
|