@carrot-foundation/schemas 0.1.36 → 0.1.38
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 +1778 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1510 -14
- package/dist/index.d.ts +1510 -14
- package/dist/index.js +1735 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +1 -0
- package/schemas/ipfs/collection/collection.schema.json +306 -32
- package/schemas/ipfs/credit/credit.example.json +1 -0
- package/schemas/ipfs/credit/credit.schema.json +327 -45
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +290 -0
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +1772 -0
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +280 -0
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +1704 -0
- package/schemas/ipfs/gas-id/gas-id.schema.json +7 -6
- package/schemas/ipfs/mass-id/mass-id.schema.json +7 -6
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +30 -29
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +637 -15
- package/schemas/ipfs/methodology/methodology.example.json +27 -26
- package/schemas/ipfs/methodology/methodology.schema.json +458 -15
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +7 -6
- package/schemas/ipfs/gas-id/gas-id.attributes.schema.json +0 -219
- package/schemas/ipfs/gas-id/gas-id.data.schema.json +0 -120
- package/schemas/ipfs/mass-id-audit/mass-id-audit.data.schema.json +0 -130
- package/schemas/ipfs/methodology/methodology.data.schema.json +0 -121
- package/schemas/ipfs/purchase-id/purchase-id.attributes.schema.json +0 -91
- package/schemas/ipfs/purchase-id/purchase-id.data.schema.json +0 -337
- package/schemas/ipfs/purchase-id/purchase-id.example.json +0 -224
- package/schemas/ipfs/purchase-id/purchase-id.schema.json +0 -29
- package/schemas/ipfs/recycled-id/recycled-id.attributes.schema.json +0 -202
- package/schemas/ipfs/recycled-id/recycled-id.data.schema.json +0 -63
- package/schemas/ipfs/shared/base/base.schema.json +0 -163
- package/schemas/ipfs/shared/certificate/certificate.schema.json +0 -145
- package/schemas/ipfs/shared/definitions/definitions.schema.json +0 -255
- package/schemas/ipfs/shared/entities/location/location.schema.json +0 -90
- package/schemas/ipfs/shared/entities/participant/participant.schema.json +0 -28
- package/schemas/ipfs/shared/nft/nft.schema.json +0 -182
- package/schemas/ipfs/shared/references/audit-reference/audit-reference.schema.json +0 -42
- package/schemas/ipfs/shared/references/gas-id-reference/gas-id-reference.schema.json +0 -27
- package/schemas/ipfs/shared/references/mass-id-reference/mass-id-reference.schema.json +0 -27
- package/schemas/ipfs/shared/references/methodology-reference/methodology-reference.schema.json +0 -34
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z, ZodRawShape } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const MassIDAttributeWasteTypeSchema: z.ZodObject<{
|
|
4
4
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -590,7 +590,8 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
590
590
|
"mass-id": "mass-id";
|
|
591
591
|
"mass-id-audit": "mass-id-audit";
|
|
592
592
|
methodology: "methodology";
|
|
593
|
-
"purchase-
|
|
593
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
594
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
594
595
|
"recycled-id": "recycled-id";
|
|
595
596
|
}>;
|
|
596
597
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1250,7 +1251,8 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1250
1251
|
"mass-id": "mass-id";
|
|
1251
1252
|
"mass-id-audit": "mass-id-audit";
|
|
1252
1253
|
methodology: "methodology";
|
|
1253
|
-
"purchase-
|
|
1254
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
1255
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
1254
1256
|
"recycled-id": "recycled-id";
|
|
1255
1257
|
}>;
|
|
1256
1258
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1811,7 +1813,8 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1811
1813
|
"mass-id": "mass-id";
|
|
1812
1814
|
"mass-id-audit": "mass-id-audit";
|
|
1813
1815
|
methodology: "methodology";
|
|
1814
|
-
"purchase-
|
|
1816
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
1817
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
1815
1818
|
"recycled-id": "recycled-id";
|
|
1816
1819
|
}>;
|
|
1817
1820
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2030,6 +2033,42 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
2030
2033
|
}, z.core.$strict>;
|
|
2031
2034
|
type RecycledIDIpfs = z.infer<typeof RecycledIDIpfsSchema>;
|
|
2032
2035
|
|
|
2036
|
+
declare const CreditPurchaseReceiptAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2037
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2038
|
+
trait_type: z.ZodString;
|
|
2039
|
+
value: z.ZodNumber;
|
|
2040
|
+
display_type: z.ZodLiteral<"number">;
|
|
2041
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2042
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2043
|
+
trait_type: z.ZodLiteral<"Total Credits Purchased">;
|
|
2044
|
+
value: z.ZodNumber;
|
|
2045
|
+
display_type: z.ZodLiteral<"number">;
|
|
2046
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2047
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2048
|
+
trait_type: z.ZodLiteral<"Total USDC Amount">;
|
|
2049
|
+
value: z.ZodNumber;
|
|
2050
|
+
display_type: z.ZodLiteral<"number">;
|
|
2051
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2052
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2053
|
+
trait_type: z.ZodLiteral<"Purchase Date">;
|
|
2054
|
+
value: z.ZodNumber;
|
|
2055
|
+
display_type: z.ZodLiteral<"date">;
|
|
2056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2057
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2058
|
+
trait_type: z.ZodLiteral<"Certificates Purchased">;
|
|
2059
|
+
value: z.ZodNumber;
|
|
2060
|
+
display_type: z.ZodLiteral<"number">;
|
|
2061
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2062
|
+
trait_type: z.ZodLiteral<"Receiver">;
|
|
2063
|
+
value: z.ZodString;
|
|
2064
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2065
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2066
|
+
trait_type: z.ZodString;
|
|
2067
|
+
value: z.ZodNumber;
|
|
2068
|
+
display_type: z.ZodLiteral<"number">;
|
|
2069
|
+
}, z.core.$strict>]>>;
|
|
2070
|
+
type CreditPurchaseReceiptAttributes = z.infer<typeof CreditPurchaseReceiptAttributesSchema>;
|
|
2071
|
+
|
|
2033
2072
|
declare const ParticipantSchema: z.ZodObject<{
|
|
2034
2073
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2035
2074
|
name: z.ZodString;
|
|
@@ -2188,7 +2227,8 @@ declare const SchemaInfoSchema: z.ZodObject<{
|
|
|
2188
2227
|
"MassID Audit": "MassID Audit";
|
|
2189
2228
|
RecycledID: "RecycledID";
|
|
2190
2229
|
GasID: "GasID";
|
|
2191
|
-
|
|
2230
|
+
CreditPurchaseReceipt: "CreditPurchaseReceipt";
|
|
2231
|
+
CreditRetirementReceipt: "CreditRetirementReceipt";
|
|
2192
2232
|
Methodology: "Methodology";
|
|
2193
2233
|
Credit: "Credit";
|
|
2194
2234
|
Collection: "Collection";
|
|
@@ -2210,7 +2250,8 @@ declare const RecordRelationshipSchema: z.ZodObject<{
|
|
|
2210
2250
|
"mass-id": "mass-id";
|
|
2211
2251
|
"mass-id-audit": "mass-id-audit";
|
|
2212
2252
|
methodology: "methodology";
|
|
2213
|
-
"purchase-
|
|
2253
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
2254
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
2214
2255
|
"recycled-id": "recycled-id";
|
|
2215
2256
|
}>;
|
|
2216
2257
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2241,7 +2282,8 @@ declare const BaseIpfsSchema: z.ZodObject<{
|
|
|
2241
2282
|
"MassID Audit": "MassID Audit";
|
|
2242
2283
|
RecycledID: "RecycledID";
|
|
2243
2284
|
GasID: "GasID";
|
|
2244
|
-
|
|
2285
|
+
CreditPurchaseReceipt: "CreditPurchaseReceipt";
|
|
2286
|
+
CreditRetirementReceipt: "CreditRetirementReceipt";
|
|
2245
2287
|
Methodology: "Methodology";
|
|
2246
2288
|
Credit: "Credit";
|
|
2247
2289
|
Collection: "Collection";
|
|
@@ -2266,7 +2308,8 @@ declare const BaseIpfsSchema: z.ZodObject<{
|
|
|
2266
2308
|
"mass-id": "mass-id";
|
|
2267
2309
|
"mass-id-audit": "mass-id-audit";
|
|
2268
2310
|
methodology: "methodology";
|
|
2269
|
-
"purchase-
|
|
2311
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
2312
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
2270
2313
|
"recycled-id": "recycled-id";
|
|
2271
2314
|
}>;
|
|
2272
2315
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2294,7 +2337,8 @@ declare const NftSchemaTypeSchema: z.ZodEnum<{
|
|
|
2294
2337
|
MassID: "MassID";
|
|
2295
2338
|
RecycledID: "RecycledID";
|
|
2296
2339
|
GasID: "GasID";
|
|
2297
|
-
|
|
2340
|
+
CreditPurchaseReceipt: "CreditPurchaseReceipt";
|
|
2341
|
+
CreditRetirementReceipt: "CreditRetirementReceipt";
|
|
2298
2342
|
}>;
|
|
2299
2343
|
type NftSchemaType = z.infer<typeof NftSchemaTypeSchema>;
|
|
2300
2344
|
declare const BlockchainReferenceSchema: z.ZodObject<{
|
|
@@ -2342,7 +2386,8 @@ declare const NftIpfsSchema: z.ZodObject<{
|
|
|
2342
2386
|
"mass-id": "mass-id";
|
|
2343
2387
|
"mass-id-audit": "mass-id-audit";
|
|
2344
2388
|
methodology: "methodology";
|
|
2345
|
-
"purchase-
|
|
2389
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
2390
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
2346
2391
|
"recycled-id": "recycled-id";
|
|
2347
2392
|
}>;
|
|
2348
2393
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2370,7 +2415,8 @@ declare const NftIpfsSchema: z.ZodObject<{
|
|
|
2370
2415
|
MassID: "MassID";
|
|
2371
2416
|
RecycledID: "RecycledID";
|
|
2372
2417
|
GasID: "GasID";
|
|
2373
|
-
|
|
2418
|
+
CreditPurchaseReceipt: "CreditPurchaseReceipt";
|
|
2419
|
+
CreditRetirementReceipt: "CreditRetirementReceipt";
|
|
2374
2420
|
}>;
|
|
2375
2421
|
}, z.core.$strict>;
|
|
2376
2422
|
blockchain: z.ZodObject<{
|
|
@@ -2432,12 +2478,16 @@ declare const AdministrativeDivisionSchema: z.ZodString;
|
|
|
2432
2478
|
type AdministrativeDivision = z.infer<typeof AdministrativeDivisionSchema>;
|
|
2433
2479
|
declare const CountryNameSchema: z.ZodString;
|
|
2434
2480
|
type CountryName = z.infer<typeof CountryNameSchema>;
|
|
2481
|
+
declare const CollectionNameSchema: z.ZodString;
|
|
2482
|
+
type CollectionName = z.infer<typeof CollectionNameSchema>;
|
|
2435
2483
|
declare const MethodologyNameSchema: z.ZodString;
|
|
2436
2484
|
type MethodologyName = z.infer<typeof MethodologyNameSchema>;
|
|
2437
2485
|
declare const StringifiedTokenIdSchema: z.ZodString;
|
|
2438
2486
|
type StringifiedTokenId = z.infer<typeof StringifiedTokenIdSchema>;
|
|
2439
2487
|
declare const SlugSchema: z.ZodString;
|
|
2440
2488
|
type Slug = z.infer<typeof SlugSchema>;
|
|
2489
|
+
declare const CollectionSlugSchema: z.ZodString;
|
|
2490
|
+
type CollectionSlug = z.infer<typeof CollectionSlugSchema>;
|
|
2441
2491
|
declare const WasteTypeSchema: z.ZodString;
|
|
2442
2492
|
type WasteType = z.infer<typeof WasteTypeSchema>;
|
|
2443
2493
|
declare const WasteSubtypeSchema: z.ZodString;
|
|
@@ -2455,6 +2505,16 @@ declare const FacilityTypeSchema: z.ZodEnum<{
|
|
|
2455
2505
|
type FacilityType = z.infer<typeof FacilityTypeSchema>;
|
|
2456
2506
|
declare const BlockchainChainIdSchema: z.ZodNumber;
|
|
2457
2507
|
type BlockchainChainId = z.infer<typeof BlockchainChainIdSchema>;
|
|
2508
|
+
declare const BlockchainNetworkNameSchema: z.ZodString;
|
|
2509
|
+
type BlockchainNetworkName = z.infer<typeof BlockchainNetworkNameSchema>;
|
|
2510
|
+
declare const SmartContractAddressSchema: z.ZodString;
|
|
2511
|
+
type SmartContractAddress = z.infer<typeof SmartContractAddressSchema>;
|
|
2512
|
+
declare const SmartContractSchema: z.ZodObject<{
|
|
2513
|
+
address: z.ZodString;
|
|
2514
|
+
chain_id: z.ZodNumber;
|
|
2515
|
+
network_name: z.ZodString;
|
|
2516
|
+
}, z.core.$strict>;
|
|
2517
|
+
type SmartContract = z.infer<typeof SmartContractSchema>;
|
|
2458
2518
|
declare const PercentageSchema: z.ZodNumber;
|
|
2459
2519
|
type Percentage = z.infer<typeof PercentageSchema>;
|
|
2460
2520
|
declare const NonNegativeIntegerSchema: z.ZodNumber;
|
|
@@ -2492,7 +2552,8 @@ declare const RecordSchemaTypeSchema: z.ZodEnum<{
|
|
|
2492
2552
|
"MassID Audit": "MassID Audit";
|
|
2493
2553
|
RecycledID: "RecycledID";
|
|
2494
2554
|
GasID: "GasID";
|
|
2495
|
-
|
|
2555
|
+
CreditPurchaseReceipt: "CreditPurchaseReceipt";
|
|
2556
|
+
CreditRetirementReceipt: "CreditRetirementReceipt";
|
|
2496
2557
|
Methodology: "Methodology";
|
|
2497
2558
|
Credit: "Credit";
|
|
2498
2559
|
Collection: "Collection";
|
|
@@ -2500,6 +2561,8 @@ declare const RecordSchemaTypeSchema: z.ZodEnum<{
|
|
|
2500
2561
|
type RecordSchemaType = z.infer<typeof RecordSchemaTypeSchema>;
|
|
2501
2562
|
declare const TokenSymbolSchema: z.ZodString;
|
|
2502
2563
|
type TokenSymbol = z.infer<typeof TokenSymbolSchema>;
|
|
2564
|
+
declare const CreditTokenSymbolSchema: z.ZodString;
|
|
2565
|
+
type CreditTokenSymbol = z.infer<typeof CreditTokenSymbolSchema>;
|
|
2503
2566
|
declare const RecordRelationshipTypeSchema: z.ZodEnum<{
|
|
2504
2567
|
collection: "collection";
|
|
2505
2568
|
credit: "credit";
|
|
@@ -2507,7 +2570,8 @@ declare const RecordRelationshipTypeSchema: z.ZodEnum<{
|
|
|
2507
2570
|
"mass-id": "mass-id";
|
|
2508
2571
|
"mass-id-audit": "mass-id-audit";
|
|
2509
2572
|
methodology: "methodology";
|
|
2510
|
-
"purchase-
|
|
2573
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
2574
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
2511
2575
|
"recycled-id": "recycled-id";
|
|
2512
2576
|
}>;
|
|
2513
2577
|
type RecordRelationshipType = z.infer<typeof RecordRelationshipTypeSchema>;
|
|
@@ -2624,4 +2688,1436 @@ declare const MassIDRecyclingDateAttributeSchema: z.ZodObject<{
|
|
|
2624
2688
|
}, z.core.$strict>;
|
|
2625
2689
|
type MassIDRecyclingDateAttribute = z.infer<typeof MassIDRecyclingDateAttributeSchema>;
|
|
2626
2690
|
|
|
2627
|
-
|
|
2691
|
+
declare const AuditRuleDefinitionSchema: z.ZodObject<{
|
|
2692
|
+
rule_id: z.ZodUUID;
|
|
2693
|
+
rule_slug: z.ZodString;
|
|
2694
|
+
rule_name: z.ZodString;
|
|
2695
|
+
description: z.ZodString;
|
|
2696
|
+
source_code_url: z.ZodURL;
|
|
2697
|
+
mandatory: z.ZodBoolean;
|
|
2698
|
+
execution_order: z.ZodNumber;
|
|
2699
|
+
}, z.core.$strict>;
|
|
2700
|
+
type AuditRuleDefinition = z.infer<typeof AuditRuleDefinitionSchema>;
|
|
2701
|
+
declare const AuditRuleDefinitionsSchema: z.ZodArray<z.ZodObject<{
|
|
2702
|
+
rule_id: z.ZodUUID;
|
|
2703
|
+
rule_slug: z.ZodString;
|
|
2704
|
+
rule_name: z.ZodString;
|
|
2705
|
+
description: z.ZodString;
|
|
2706
|
+
source_code_url: z.ZodURL;
|
|
2707
|
+
mandatory: z.ZodBoolean;
|
|
2708
|
+
execution_order: z.ZodNumber;
|
|
2709
|
+
}, z.core.$strict>>;
|
|
2710
|
+
type AuditRuleDefinitions = z.infer<typeof AuditRuleDefinitionsSchema>;
|
|
2711
|
+
declare const AuditRuleExecutionResultSchema: z.ZodObject<{
|
|
2712
|
+
rule_name: z.ZodString;
|
|
2713
|
+
rule_id: z.ZodUUID;
|
|
2714
|
+
rule_slug: z.ZodString;
|
|
2715
|
+
execution_order: z.ZodNumber;
|
|
2716
|
+
result: z.ZodEnum<{
|
|
2717
|
+
PASSED: "PASSED";
|
|
2718
|
+
FAILED: "FAILED";
|
|
2719
|
+
}>;
|
|
2720
|
+
description: z.ZodString;
|
|
2721
|
+
rule_processor_checksum: z.ZodString;
|
|
2722
|
+
rule_source_code_version: z.ZodString;
|
|
2723
|
+
}, z.core.$strict>;
|
|
2724
|
+
type AuditRuleExecutionResult = z.infer<typeof AuditRuleExecutionResultSchema>;
|
|
2725
|
+
declare const AuditRuleExecutionResultsSchema: z.ZodArray<z.ZodObject<{
|
|
2726
|
+
rule_name: z.ZodString;
|
|
2727
|
+
rule_id: z.ZodUUID;
|
|
2728
|
+
rule_slug: z.ZodString;
|
|
2729
|
+
execution_order: z.ZodNumber;
|
|
2730
|
+
result: z.ZodEnum<{
|
|
2731
|
+
PASSED: "PASSED";
|
|
2732
|
+
FAILED: "FAILED";
|
|
2733
|
+
}>;
|
|
2734
|
+
description: z.ZodString;
|
|
2735
|
+
rule_processor_checksum: z.ZodString;
|
|
2736
|
+
rule_source_code_version: z.ZodString;
|
|
2737
|
+
}, z.core.$strict>>;
|
|
2738
|
+
type AuditRuleExecutionResults = z.infer<typeof AuditRuleExecutionResultsSchema>;
|
|
2739
|
+
|
|
2740
|
+
type Meta = {
|
|
2741
|
+
title: string;
|
|
2742
|
+
description: string;
|
|
2743
|
+
};
|
|
2744
|
+
declare const EPSILON = 1e-9;
|
|
2745
|
+
declare function nearlyEqual(a: number, b: number, epsilon?: number): boolean;
|
|
2746
|
+
declare const CreditPurchaseReceiptSummarySchema: z.ZodObject<{
|
|
2747
|
+
total_certificates: z.ZodNumber;
|
|
2748
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
2749
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
2750
|
+
RecycledID: "RecycledID";
|
|
2751
|
+
GasID: "GasID";
|
|
2752
|
+
}>>;
|
|
2753
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
2754
|
+
total_usdc_amount: z.ZodNumber;
|
|
2755
|
+
total_credits: z.ZodNumber;
|
|
2756
|
+
purchase_date: z.ZodISODate;
|
|
2757
|
+
}, z.core.$strict>;
|
|
2758
|
+
declare const CreditRetirementReceiptSummarySchema: z.ZodObject<{
|
|
2759
|
+
total_certificates: z.ZodNumber;
|
|
2760
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
2761
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
2762
|
+
RecycledID: "RecycledID";
|
|
2763
|
+
GasID: "GasID";
|
|
2764
|
+
}>>;
|
|
2765
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
2766
|
+
total_retirement_amount: z.ZodNumber;
|
|
2767
|
+
retirement_date: z.ZodISODate;
|
|
2768
|
+
}, z.core.$strict>;
|
|
2769
|
+
declare const ReceiptIdentitySchema: z.ZodObject<{
|
|
2770
|
+
name: z.ZodString;
|
|
2771
|
+
external_id: z.ZodUUID;
|
|
2772
|
+
external_url: z.ZodURL;
|
|
2773
|
+
}, z.core.$strict>;
|
|
2774
|
+
type ReceiptIdentity = z.infer<typeof ReceiptIdentitySchema>;
|
|
2775
|
+
declare const MassIdReferenceWithContractSchema: z.ZodObject<{
|
|
2776
|
+
external_id: z.ZodUUID;
|
|
2777
|
+
token_id: z.ZodString;
|
|
2778
|
+
external_url: z.ZodURL;
|
|
2779
|
+
uri: z.ZodString;
|
|
2780
|
+
smart_contract: z.ZodObject<{
|
|
2781
|
+
address: z.ZodString;
|
|
2782
|
+
chain_id: z.ZodNumber;
|
|
2783
|
+
network_name: z.ZodString;
|
|
2784
|
+
}, z.core.$strict>;
|
|
2785
|
+
}, z.core.$strict>;
|
|
2786
|
+
type MassIdReferenceWithContract = z.infer<typeof MassIdReferenceWithContractSchema>;
|
|
2787
|
+
declare function createReceiptCollectionSchema(params: {
|
|
2788
|
+
amountKey: 'credit_amount' | 'amount';
|
|
2789
|
+
amountMeta: Meta;
|
|
2790
|
+
meta: Meta;
|
|
2791
|
+
}): z.ZodObject<{
|
|
2792
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
2793
|
+
slug: z.ZodString;
|
|
2794
|
+
external_id: z.ZodUUID;
|
|
2795
|
+
name: z.ZodString;
|
|
2796
|
+
external_url: z.ZodURL;
|
|
2797
|
+
uri: z.ZodString;
|
|
2798
|
+
}, z.core.$strict>;
|
|
2799
|
+
declare function createReceiptCreditSchema(params: {
|
|
2800
|
+
amountKey: 'purchase_amount' | 'amount';
|
|
2801
|
+
amountMeta: Meta;
|
|
2802
|
+
meta: Meta;
|
|
2803
|
+
retirementAmountMeta?: Meta;
|
|
2804
|
+
}): z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>;
|
|
2805
|
+
declare function createReceiptCertificateSchema<T extends ZodRawShape>(params: {
|
|
2806
|
+
additionalShape: T;
|
|
2807
|
+
meta: Meta;
|
|
2808
|
+
}): z.ZodObject<{
|
|
2809
|
+
token_id: z.ZodString;
|
|
2810
|
+
type: z.ZodEnum<{
|
|
2811
|
+
RecycledID: "RecycledID";
|
|
2812
|
+
GasID: "GasID";
|
|
2813
|
+
}>;
|
|
2814
|
+
external_id: z.ZodUUID;
|
|
2815
|
+
external_url: z.ZodURL;
|
|
2816
|
+
uri: z.ZodString;
|
|
2817
|
+
smart_contract: z.ZodObject<{
|
|
2818
|
+
address: z.ZodString;
|
|
2819
|
+
chain_id: z.ZodNumber;
|
|
2820
|
+
network_name: z.ZodString;
|
|
2821
|
+
}, z.core.$strict>;
|
|
2822
|
+
collection_slug: z.ZodString;
|
|
2823
|
+
total_amount: z.ZodNumber;
|
|
2824
|
+
mass_id: z.ZodObject<{
|
|
2825
|
+
external_id: z.ZodUUID;
|
|
2826
|
+
token_id: z.ZodString;
|
|
2827
|
+
external_url: z.ZodURL;
|
|
2828
|
+
uri: z.ZodString;
|
|
2829
|
+
smart_contract: z.ZodObject<{
|
|
2830
|
+
address: z.ZodString;
|
|
2831
|
+
chain_id: z.ZodNumber;
|
|
2832
|
+
network_name: z.ZodString;
|
|
2833
|
+
}, z.core.$strict>;
|
|
2834
|
+
}, z.core.$strict>;
|
|
2835
|
+
} & T, z.core.$strict>;
|
|
2836
|
+
|
|
2837
|
+
type Attribute = {
|
|
2838
|
+
trait_type: string;
|
|
2839
|
+
value: unknown;
|
|
2840
|
+
};
|
|
2841
|
+
type Message = string | ((value: string) => string);
|
|
2842
|
+
declare function createAttributeMap(attributes: Attribute[]): Map<string, Attribute>;
|
|
2843
|
+
declare function validateSummaryListMatchesData(params: {
|
|
2844
|
+
ctx: z.RefinementCtx;
|
|
2845
|
+
summaryValues: Iterable<string>;
|
|
2846
|
+
dataValues: Iterable<string>;
|
|
2847
|
+
summaryPath: (string | number)[];
|
|
2848
|
+
missingFromDataMessage: Message;
|
|
2849
|
+
missingFromSummaryMessage: Message;
|
|
2850
|
+
}): void;
|
|
2851
|
+
declare function validateTotalMatches(params: {
|
|
2852
|
+
ctx: z.RefinementCtx;
|
|
2853
|
+
actualTotal: number;
|
|
2854
|
+
expectedTotal: number;
|
|
2855
|
+
path: (string | number)[];
|
|
2856
|
+
message: string;
|
|
2857
|
+
}): void;
|
|
2858
|
+
declare function validateCountMatches(params: {
|
|
2859
|
+
ctx: z.RefinementCtx;
|
|
2860
|
+
actualCount: number;
|
|
2861
|
+
expectedCount: number;
|
|
2862
|
+
path: (string | number)[];
|
|
2863
|
+
message: string;
|
|
2864
|
+
}): void;
|
|
2865
|
+
declare function validateAttributeValue(params: {
|
|
2866
|
+
ctx: z.RefinementCtx;
|
|
2867
|
+
attributeByTraitType: Map<string, Attribute>;
|
|
2868
|
+
traitType: string;
|
|
2869
|
+
expectedValue: unknown;
|
|
2870
|
+
missingMessage: string;
|
|
2871
|
+
mismatchMessage: string;
|
|
2872
|
+
path?: (string | number)[];
|
|
2873
|
+
}): void;
|
|
2874
|
+
declare function validateDateAttribute(params: {
|
|
2875
|
+
ctx: z.RefinementCtx;
|
|
2876
|
+
attributeByTraitType: Map<string, Attribute>;
|
|
2877
|
+
traitType: string;
|
|
2878
|
+
dateValue: string;
|
|
2879
|
+
missingMessage: string;
|
|
2880
|
+
invalidDateMessage: string;
|
|
2881
|
+
mismatchMessage: string;
|
|
2882
|
+
attributePath?: (string | number)[];
|
|
2883
|
+
datePath?: (string | number)[];
|
|
2884
|
+
}): void;
|
|
2885
|
+
declare function validateAttributesForItems<T>(params: {
|
|
2886
|
+
ctx: z.RefinementCtx;
|
|
2887
|
+
attributeByTraitType: Map<string, Attribute>;
|
|
2888
|
+
items: T[];
|
|
2889
|
+
traitSelector: (item: T) => string;
|
|
2890
|
+
valueSelector: (item: T) => unknown;
|
|
2891
|
+
missingMessage: (trait: string) => string;
|
|
2892
|
+
mismatchMessage: (trait: string) => string;
|
|
2893
|
+
path?: (string | number)[];
|
|
2894
|
+
}): void;
|
|
2895
|
+
|
|
2896
|
+
type CreditPurchaseReceiptSummary = z.infer<typeof CreditPurchaseReceiptSummarySchema>;
|
|
2897
|
+
declare const CreditPurchaseReceiptIdentitySchema: z.ZodObject<{
|
|
2898
|
+
name: z.ZodString;
|
|
2899
|
+
external_id: z.ZodUUID;
|
|
2900
|
+
external_url: z.ZodURL;
|
|
2901
|
+
}, z.core.$strict>;
|
|
2902
|
+
type CreditPurchaseReceiptIdentity = z.infer<typeof CreditPurchaseReceiptIdentitySchema>;
|
|
2903
|
+
declare const CreditPurchaseReceiptReceiverSchema: z.ZodObject<{
|
|
2904
|
+
wallet_address: z.ZodString;
|
|
2905
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2906
|
+
name: z.ZodString;
|
|
2907
|
+
external_id: z.ZodUUID;
|
|
2908
|
+
external_url: z.ZodURL;
|
|
2909
|
+
}, z.core.$strict>>;
|
|
2910
|
+
}, z.core.$strict>;
|
|
2911
|
+
type CreditPurchaseReceiptReceiver = z.infer<typeof CreditPurchaseReceiptReceiverSchema>;
|
|
2912
|
+
declare const CreditPurchaseReceiptBuyerSchema: z.ZodObject<{
|
|
2913
|
+
buyer_id: z.ZodUUID;
|
|
2914
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2915
|
+
name: z.ZodString;
|
|
2916
|
+
external_id: z.ZodUUID;
|
|
2917
|
+
external_url: z.ZodURL;
|
|
2918
|
+
}, z.core.$strict>>;
|
|
2919
|
+
}, z.core.$strict>;
|
|
2920
|
+
type CreditPurchaseReceiptBuyer = z.infer<typeof CreditPurchaseReceiptBuyerSchema>;
|
|
2921
|
+
declare const CreditPurchaseReceiptPartiesSchema: z.ZodObject<{
|
|
2922
|
+
payer: z.ZodString;
|
|
2923
|
+
receiver: z.ZodObject<{
|
|
2924
|
+
wallet_address: z.ZodString;
|
|
2925
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2926
|
+
name: z.ZodString;
|
|
2927
|
+
external_id: z.ZodUUID;
|
|
2928
|
+
external_url: z.ZodURL;
|
|
2929
|
+
}, z.core.$strict>>;
|
|
2930
|
+
}, z.core.$strict>;
|
|
2931
|
+
buyer: z.ZodOptional<z.ZodObject<{
|
|
2932
|
+
buyer_id: z.ZodUUID;
|
|
2933
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2934
|
+
name: z.ZodString;
|
|
2935
|
+
external_id: z.ZodUUID;
|
|
2936
|
+
external_url: z.ZodURL;
|
|
2937
|
+
}, z.core.$strict>>;
|
|
2938
|
+
}, z.core.$strict>>;
|
|
2939
|
+
}, z.core.$strict>;
|
|
2940
|
+
type CreditPurchaseReceiptParties = z.infer<typeof CreditPurchaseReceiptPartiesSchema>;
|
|
2941
|
+
declare const CreditPurchaseReceiptCollectionSchema: z.ZodObject<{
|
|
2942
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
2943
|
+
slug: z.ZodString;
|
|
2944
|
+
external_id: z.ZodUUID;
|
|
2945
|
+
name: z.ZodString;
|
|
2946
|
+
external_url: z.ZodURL;
|
|
2947
|
+
uri: z.ZodString;
|
|
2948
|
+
}, z.core.$strict>;
|
|
2949
|
+
type CreditPurchaseReceiptCollection = z.infer<typeof CreditPurchaseReceiptCollectionSchema>;
|
|
2950
|
+
declare const CreditPurchaseReceiptCreditSchema: z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>;
|
|
2951
|
+
type CreditPurchaseReceiptCredit = z.infer<typeof CreditPurchaseReceiptCreditSchema>;
|
|
2952
|
+
type MassIDReferenceWithContract = z.infer<typeof MassIdReferenceWithContractSchema>;
|
|
2953
|
+
declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
|
|
2954
|
+
token_id: z.ZodString;
|
|
2955
|
+
type: z.ZodEnum<{
|
|
2956
|
+
RecycledID: "RecycledID";
|
|
2957
|
+
GasID: "GasID";
|
|
2958
|
+
}>;
|
|
2959
|
+
external_id: z.ZodUUID;
|
|
2960
|
+
external_url: z.ZodURL;
|
|
2961
|
+
uri: z.ZodString;
|
|
2962
|
+
smart_contract: z.ZodObject<{
|
|
2963
|
+
address: z.ZodString;
|
|
2964
|
+
chain_id: z.ZodNumber;
|
|
2965
|
+
network_name: z.ZodString;
|
|
2966
|
+
}, z.core.$strict>;
|
|
2967
|
+
collection_slug: z.ZodString;
|
|
2968
|
+
total_amount: z.ZodNumber;
|
|
2969
|
+
mass_id: z.ZodObject<{
|
|
2970
|
+
external_id: z.ZodUUID;
|
|
2971
|
+
token_id: z.ZodString;
|
|
2972
|
+
external_url: z.ZodURL;
|
|
2973
|
+
uri: z.ZodString;
|
|
2974
|
+
smart_contract: z.ZodObject<{
|
|
2975
|
+
address: z.ZodString;
|
|
2976
|
+
chain_id: z.ZodNumber;
|
|
2977
|
+
network_name: z.ZodString;
|
|
2978
|
+
}, z.core.$strict>;
|
|
2979
|
+
}, z.core.$strict>;
|
|
2980
|
+
} & {
|
|
2981
|
+
purchased_amount: z.ZodNumber;
|
|
2982
|
+
retired_amount: z.ZodNumber;
|
|
2983
|
+
credit_slug: z.ZodString;
|
|
2984
|
+
}, z.core.$strict>;
|
|
2985
|
+
type CreditPurchaseReceiptCertificate = z.infer<typeof CreditPurchaseReceiptCertificateSchema>;
|
|
2986
|
+
declare const CreditPurchaseReceiptParticipantRewardSchema: z.ZodObject<{
|
|
2987
|
+
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2988
|
+
participant_name: z.ZodString;
|
|
2989
|
+
roles: z.ZodArray<z.ZodString>;
|
|
2990
|
+
usdc_amount: z.ZodNumber;
|
|
2991
|
+
}, z.core.$strict>;
|
|
2992
|
+
type CreditPurchaseReceiptParticipantReward = z.infer<typeof CreditPurchaseReceiptParticipantRewardSchema>;
|
|
2993
|
+
declare const CreditPurchaseReceiptRetirementReceiptSchema: z.ZodObject<{
|
|
2994
|
+
token_id: z.ZodString;
|
|
2995
|
+
external_id: z.ZodUUID;
|
|
2996
|
+
external_url: z.ZodURL;
|
|
2997
|
+
uri: z.ZodString;
|
|
2998
|
+
smart_contract: z.ZodObject<{
|
|
2999
|
+
address: z.ZodString;
|
|
3000
|
+
chain_id: z.ZodNumber;
|
|
3001
|
+
network_name: z.ZodString;
|
|
3002
|
+
}, z.core.$strict>;
|
|
3003
|
+
}, z.core.$strict>;
|
|
3004
|
+
type CreditPurchaseReceiptRetirementReceipt = z.infer<typeof CreditPurchaseReceiptRetirementReceiptSchema>;
|
|
3005
|
+
declare const CreditPurchaseReceiptRetirementSchema: z.ZodObject<{
|
|
3006
|
+
beneficiary_id: z.ZodUUID;
|
|
3007
|
+
retirement_receipt: z.ZodOptional<z.ZodObject<{
|
|
3008
|
+
token_id: z.ZodString;
|
|
3009
|
+
external_id: z.ZodUUID;
|
|
3010
|
+
external_url: z.ZodURL;
|
|
3011
|
+
uri: z.ZodString;
|
|
3012
|
+
smart_contract: z.ZodObject<{
|
|
3013
|
+
address: z.ZodString;
|
|
3014
|
+
chain_id: z.ZodNumber;
|
|
3015
|
+
network_name: z.ZodString;
|
|
3016
|
+
}, z.core.$strict>;
|
|
3017
|
+
}, z.core.$strict>>;
|
|
3018
|
+
}, z.core.$strict>;
|
|
3019
|
+
type CreditPurchaseReceiptRetirement = z.infer<typeof CreditPurchaseReceiptRetirementSchema>;
|
|
3020
|
+
declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
3021
|
+
summary: z.ZodObject<{
|
|
3022
|
+
total_certificates: z.ZodNumber;
|
|
3023
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
3024
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
3025
|
+
RecycledID: "RecycledID";
|
|
3026
|
+
GasID: "GasID";
|
|
3027
|
+
}>>;
|
|
3028
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
3029
|
+
total_usdc_amount: z.ZodNumber;
|
|
3030
|
+
total_credits: z.ZodNumber;
|
|
3031
|
+
purchase_date: z.ZodISODate;
|
|
3032
|
+
}, z.core.$strict>;
|
|
3033
|
+
parties: z.ZodObject<{
|
|
3034
|
+
payer: z.ZodString;
|
|
3035
|
+
receiver: z.ZodObject<{
|
|
3036
|
+
wallet_address: z.ZodString;
|
|
3037
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3038
|
+
name: z.ZodString;
|
|
3039
|
+
external_id: z.ZodUUID;
|
|
3040
|
+
external_url: z.ZodURL;
|
|
3041
|
+
}, z.core.$strict>>;
|
|
3042
|
+
}, z.core.$strict>;
|
|
3043
|
+
buyer: z.ZodOptional<z.ZodObject<{
|
|
3044
|
+
buyer_id: z.ZodUUID;
|
|
3045
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3046
|
+
name: z.ZodString;
|
|
3047
|
+
external_id: z.ZodUUID;
|
|
3048
|
+
external_url: z.ZodURL;
|
|
3049
|
+
}, z.core.$strict>>;
|
|
3050
|
+
}, z.core.$strict>>;
|
|
3051
|
+
}, z.core.$strict>;
|
|
3052
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
3053
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
3054
|
+
slug: z.ZodString;
|
|
3055
|
+
external_id: z.ZodUUID;
|
|
3056
|
+
name: z.ZodString;
|
|
3057
|
+
external_url: z.ZodURL;
|
|
3058
|
+
uri: z.ZodString;
|
|
3059
|
+
}, z.core.$strict>>;
|
|
3060
|
+
credits: z.ZodArray<z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>>;
|
|
3061
|
+
certificates: z.ZodArray<z.ZodObject<{
|
|
3062
|
+
token_id: z.ZodString;
|
|
3063
|
+
type: z.ZodEnum<{
|
|
3064
|
+
RecycledID: "RecycledID";
|
|
3065
|
+
GasID: "GasID";
|
|
3066
|
+
}>;
|
|
3067
|
+
external_id: z.ZodUUID;
|
|
3068
|
+
external_url: z.ZodURL;
|
|
3069
|
+
uri: z.ZodString;
|
|
3070
|
+
smart_contract: z.ZodObject<{
|
|
3071
|
+
address: z.ZodString;
|
|
3072
|
+
chain_id: z.ZodNumber;
|
|
3073
|
+
network_name: z.ZodString;
|
|
3074
|
+
}, z.core.$strict>;
|
|
3075
|
+
collection_slug: z.ZodString;
|
|
3076
|
+
total_amount: z.ZodNumber;
|
|
3077
|
+
mass_id: z.ZodObject<{
|
|
3078
|
+
external_id: z.ZodUUID;
|
|
3079
|
+
token_id: z.ZodString;
|
|
3080
|
+
external_url: z.ZodURL;
|
|
3081
|
+
uri: z.ZodString;
|
|
3082
|
+
smart_contract: z.ZodObject<{
|
|
3083
|
+
address: z.ZodString;
|
|
3084
|
+
chain_id: z.ZodNumber;
|
|
3085
|
+
network_name: z.ZodString;
|
|
3086
|
+
}, z.core.$strict>;
|
|
3087
|
+
}, z.core.$strict>;
|
|
3088
|
+
} & {
|
|
3089
|
+
purchased_amount: z.ZodNumber;
|
|
3090
|
+
retired_amount: z.ZodNumber;
|
|
3091
|
+
credit_slug: z.ZodString;
|
|
3092
|
+
}, z.core.$strict>>;
|
|
3093
|
+
participant_rewards: z.ZodArray<z.ZodObject<{
|
|
3094
|
+
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3095
|
+
participant_name: z.ZodString;
|
|
3096
|
+
roles: z.ZodArray<z.ZodString>;
|
|
3097
|
+
usdc_amount: z.ZodNumber;
|
|
3098
|
+
}, z.core.$strict>>;
|
|
3099
|
+
retirement: z.ZodOptional<z.ZodObject<{
|
|
3100
|
+
beneficiary_id: z.ZodUUID;
|
|
3101
|
+
retirement_receipt: z.ZodOptional<z.ZodObject<{
|
|
3102
|
+
token_id: z.ZodString;
|
|
3103
|
+
external_id: z.ZodUUID;
|
|
3104
|
+
external_url: z.ZodURL;
|
|
3105
|
+
uri: z.ZodString;
|
|
3106
|
+
smart_contract: z.ZodObject<{
|
|
3107
|
+
address: z.ZodString;
|
|
3108
|
+
chain_id: z.ZodNumber;
|
|
3109
|
+
network_name: z.ZodString;
|
|
3110
|
+
}, z.core.$strict>;
|
|
3111
|
+
}, z.core.$strict>>;
|
|
3112
|
+
}, z.core.$strict>>;
|
|
3113
|
+
}, z.core.$strict>;
|
|
3114
|
+
type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>;
|
|
3115
|
+
|
|
3116
|
+
declare const CreditPurchaseReceiptIpfsSchemaMeta: {
|
|
3117
|
+
readonly title: "CreditPurchaseReceipt NFT IPFS Record";
|
|
3118
|
+
readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including attributes and credit purchase data";
|
|
3119
|
+
readonly $id: string;
|
|
3120
|
+
readonly version: string;
|
|
3121
|
+
};
|
|
3122
|
+
declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
3123
|
+
$schema: z.ZodURL;
|
|
3124
|
+
created_at: z.ZodISODateTime;
|
|
3125
|
+
external_id: z.ZodUUID;
|
|
3126
|
+
external_url: z.ZodURL;
|
|
3127
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3128
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3129
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3130
|
+
name: z.ZodString;
|
|
3131
|
+
id: z.ZodUUID;
|
|
3132
|
+
}, z.core.$strict>>;
|
|
3133
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3134
|
+
target_uri: z.ZodString;
|
|
3135
|
+
type: z.ZodEnum<{
|
|
3136
|
+
collection: "collection";
|
|
3137
|
+
credit: "credit";
|
|
3138
|
+
"gas-id": "gas-id";
|
|
3139
|
+
"mass-id": "mass-id";
|
|
3140
|
+
"mass-id-audit": "mass-id-audit";
|
|
3141
|
+
methodology: "methodology";
|
|
3142
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3143
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3144
|
+
"recycled-id": "recycled-id";
|
|
3145
|
+
}>;
|
|
3146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
}, z.core.$strict>>>;
|
|
3148
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
3149
|
+
blockchain_network: z.ZodEnum<{
|
|
3150
|
+
mainnet: "mainnet";
|
|
3151
|
+
testnet: "testnet";
|
|
3152
|
+
}>;
|
|
3153
|
+
deployment: z.ZodEnum<{
|
|
3154
|
+
production: "production";
|
|
3155
|
+
development: "development";
|
|
3156
|
+
testing: "testing";
|
|
3157
|
+
}>;
|
|
3158
|
+
data_set_name: z.ZodEnum<{
|
|
3159
|
+
TEST: "TEST";
|
|
3160
|
+
PROD: "PROD";
|
|
3161
|
+
}>;
|
|
3162
|
+
}, z.core.$strict>>;
|
|
3163
|
+
blockchain: z.ZodObject<{
|
|
3164
|
+
smart_contract_address: z.ZodString;
|
|
3165
|
+
chain_id: z.ZodNumber;
|
|
3166
|
+
network_name: z.ZodString;
|
|
3167
|
+
token_id: z.ZodString;
|
|
3168
|
+
}, z.core.$strict>;
|
|
3169
|
+
name: z.ZodString;
|
|
3170
|
+
short_name: z.ZodString;
|
|
3171
|
+
description: z.ZodString;
|
|
3172
|
+
image: z.ZodString;
|
|
3173
|
+
background_color: z.ZodOptional<z.ZodString>;
|
|
3174
|
+
animation_url: z.ZodOptional<z.ZodString>;
|
|
3175
|
+
external_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3176
|
+
label: z.ZodString;
|
|
3177
|
+
url: z.ZodURL;
|
|
3178
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3179
|
+
}, z.core.$strict>>>;
|
|
3180
|
+
schema: z.ZodObject<{
|
|
3181
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
3182
|
+
version: z.ZodString;
|
|
3183
|
+
type: z.ZodLiteral<"CreditPurchaseReceipt">;
|
|
3184
|
+
}, z.core.$strict>;
|
|
3185
|
+
attributes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3186
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3187
|
+
trait_type: z.ZodString;
|
|
3188
|
+
value: z.ZodNumber;
|
|
3189
|
+
display_type: z.ZodLiteral<"number">;
|
|
3190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3191
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3192
|
+
trait_type: z.ZodLiteral<"Total Credits Purchased">;
|
|
3193
|
+
value: z.ZodNumber;
|
|
3194
|
+
display_type: z.ZodLiteral<"number">;
|
|
3195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3196
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3197
|
+
trait_type: z.ZodLiteral<"Total USDC Amount">;
|
|
3198
|
+
value: z.ZodNumber;
|
|
3199
|
+
display_type: z.ZodLiteral<"number">;
|
|
3200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3201
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3202
|
+
trait_type: z.ZodLiteral<"Purchase Date">;
|
|
3203
|
+
value: z.ZodNumber;
|
|
3204
|
+
display_type: z.ZodLiteral<"date">;
|
|
3205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3206
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3207
|
+
trait_type: z.ZodLiteral<"Certificates Purchased">;
|
|
3208
|
+
value: z.ZodNumber;
|
|
3209
|
+
display_type: z.ZodLiteral<"number">;
|
|
3210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3211
|
+
trait_type: z.ZodLiteral<"Receiver">;
|
|
3212
|
+
value: z.ZodString;
|
|
3213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3214
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3215
|
+
trait_type: z.ZodString;
|
|
3216
|
+
value: z.ZodNumber;
|
|
3217
|
+
display_type: z.ZodLiteral<"number">;
|
|
3218
|
+
}, z.core.$strict>]>>;
|
|
3219
|
+
data: z.ZodObject<{
|
|
3220
|
+
summary: z.ZodObject<{
|
|
3221
|
+
total_certificates: z.ZodNumber;
|
|
3222
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
3223
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
3224
|
+
RecycledID: "RecycledID";
|
|
3225
|
+
GasID: "GasID";
|
|
3226
|
+
}>>;
|
|
3227
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
3228
|
+
total_usdc_amount: z.ZodNumber;
|
|
3229
|
+
total_credits: z.ZodNumber;
|
|
3230
|
+
purchase_date: z.ZodISODate;
|
|
3231
|
+
}, z.core.$strict>;
|
|
3232
|
+
parties: z.ZodObject<{
|
|
3233
|
+
payer: z.ZodString;
|
|
3234
|
+
receiver: z.ZodObject<{
|
|
3235
|
+
wallet_address: z.ZodString;
|
|
3236
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3237
|
+
name: z.ZodString;
|
|
3238
|
+
external_id: z.ZodUUID;
|
|
3239
|
+
external_url: z.ZodURL;
|
|
3240
|
+
}, z.core.$strict>>;
|
|
3241
|
+
}, z.core.$strict>;
|
|
3242
|
+
buyer: z.ZodOptional<z.ZodObject<{
|
|
3243
|
+
buyer_id: z.ZodUUID;
|
|
3244
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3245
|
+
name: z.ZodString;
|
|
3246
|
+
external_id: z.ZodUUID;
|
|
3247
|
+
external_url: z.ZodURL;
|
|
3248
|
+
}, z.core.$strict>>;
|
|
3249
|
+
}, z.core.$strict>>;
|
|
3250
|
+
}, z.core.$strict>;
|
|
3251
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
3252
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
3253
|
+
slug: z.ZodString;
|
|
3254
|
+
external_id: z.ZodUUID;
|
|
3255
|
+
name: z.ZodString;
|
|
3256
|
+
external_url: z.ZodURL;
|
|
3257
|
+
uri: z.ZodString;
|
|
3258
|
+
}, z.core.$strict>>;
|
|
3259
|
+
credits: z.ZodArray<z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>>;
|
|
3260
|
+
certificates: z.ZodArray<z.ZodObject<{
|
|
3261
|
+
token_id: z.ZodString;
|
|
3262
|
+
type: z.ZodEnum<{
|
|
3263
|
+
RecycledID: "RecycledID";
|
|
3264
|
+
GasID: "GasID";
|
|
3265
|
+
}>;
|
|
3266
|
+
external_id: z.ZodUUID;
|
|
3267
|
+
external_url: z.ZodURL;
|
|
3268
|
+
uri: z.ZodString;
|
|
3269
|
+
smart_contract: z.ZodObject<{
|
|
3270
|
+
address: z.ZodString;
|
|
3271
|
+
chain_id: z.ZodNumber;
|
|
3272
|
+
network_name: z.ZodString;
|
|
3273
|
+
}, z.core.$strict>;
|
|
3274
|
+
collection_slug: z.ZodString;
|
|
3275
|
+
total_amount: z.ZodNumber;
|
|
3276
|
+
mass_id: z.ZodObject<{
|
|
3277
|
+
external_id: z.ZodUUID;
|
|
3278
|
+
token_id: z.ZodString;
|
|
3279
|
+
external_url: z.ZodURL;
|
|
3280
|
+
uri: z.ZodString;
|
|
3281
|
+
smart_contract: z.ZodObject<{
|
|
3282
|
+
address: z.ZodString;
|
|
3283
|
+
chain_id: z.ZodNumber;
|
|
3284
|
+
network_name: z.ZodString;
|
|
3285
|
+
}, z.core.$strict>;
|
|
3286
|
+
}, z.core.$strict>;
|
|
3287
|
+
} & {
|
|
3288
|
+
purchased_amount: z.ZodNumber;
|
|
3289
|
+
retired_amount: z.ZodNumber;
|
|
3290
|
+
credit_slug: z.ZodString;
|
|
3291
|
+
}, z.core.$strict>>;
|
|
3292
|
+
participant_rewards: z.ZodArray<z.ZodObject<{
|
|
3293
|
+
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3294
|
+
participant_name: z.ZodString;
|
|
3295
|
+
roles: z.ZodArray<z.ZodString>;
|
|
3296
|
+
usdc_amount: z.ZodNumber;
|
|
3297
|
+
}, z.core.$strict>>;
|
|
3298
|
+
retirement: z.ZodOptional<z.ZodObject<{
|
|
3299
|
+
beneficiary_id: z.ZodUUID;
|
|
3300
|
+
retirement_receipt: z.ZodOptional<z.ZodObject<{
|
|
3301
|
+
token_id: z.ZodString;
|
|
3302
|
+
external_id: z.ZodUUID;
|
|
3303
|
+
external_url: z.ZodURL;
|
|
3304
|
+
uri: z.ZodString;
|
|
3305
|
+
smart_contract: z.ZodObject<{
|
|
3306
|
+
address: z.ZodString;
|
|
3307
|
+
chain_id: z.ZodNumber;
|
|
3308
|
+
network_name: z.ZodString;
|
|
3309
|
+
}, z.core.$strict>;
|
|
3310
|
+
}, z.core.$strict>>;
|
|
3311
|
+
}, z.core.$strict>>;
|
|
3312
|
+
}, z.core.$strict>;
|
|
3313
|
+
}, z.core.$strict>;
|
|
3314
|
+
type CreditPurchaseReceiptIpfs = z.infer<typeof CreditPurchaseReceiptIpfsSchema>;
|
|
3315
|
+
|
|
3316
|
+
declare const CreditRetirementReceiptAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3317
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3318
|
+
trait_type: z.ZodString;
|
|
3319
|
+
value: z.ZodNumber;
|
|
3320
|
+
display_type: z.ZodLiteral<"number">;
|
|
3321
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3322
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3323
|
+
trait_type: z.ZodLiteral<"Total Credits Retired">;
|
|
3324
|
+
value: z.ZodNumber;
|
|
3325
|
+
display_type: z.ZodLiteral<"number">;
|
|
3326
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3327
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3328
|
+
number: "number";
|
|
3329
|
+
date: "date";
|
|
3330
|
+
boost_number: "boost_number";
|
|
3331
|
+
boost_percentage: "boost_percentage";
|
|
3332
|
+
}>>;
|
|
3333
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3334
|
+
trait_type: z.ZodLiteral<"Beneficiary">;
|
|
3335
|
+
value: z.ZodString;
|
|
3336
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3337
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3338
|
+
number: "number";
|
|
3339
|
+
date: "date";
|
|
3340
|
+
boost_number: "boost_number";
|
|
3341
|
+
boost_percentage: "boost_percentage";
|
|
3342
|
+
}>>;
|
|
3343
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3344
|
+
trait_type: z.ZodLiteral<"Credit Holder">;
|
|
3345
|
+
value: z.ZodString;
|
|
3346
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3347
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3348
|
+
trait_type: z.ZodLiteral<"Retirement Date">;
|
|
3349
|
+
value: z.ZodNumber;
|
|
3350
|
+
display_type: z.ZodLiteral<"date">;
|
|
3351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3352
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3353
|
+
trait_type: z.ZodLiteral<"Certificates Retired">;
|
|
3354
|
+
value: z.ZodNumber;
|
|
3355
|
+
display_type: z.ZodLiteral<"number">;
|
|
3356
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3357
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3358
|
+
trait_type: z.ZodString;
|
|
3359
|
+
value: z.ZodNumber;
|
|
3360
|
+
display_type: z.ZodLiteral<"number">;
|
|
3361
|
+
}, z.core.$strict>]>>;
|
|
3362
|
+
type CreditRetirementReceiptAttributes = z.infer<typeof CreditRetirementReceiptAttributesSchema>;
|
|
3363
|
+
|
|
3364
|
+
type CreditRetirementReceiptSummary = z.infer<typeof CreditRetirementReceiptSummarySchema>;
|
|
3365
|
+
declare const CreditRetirementReceiptIdentitySchema: z.ZodObject<{
|
|
3366
|
+
name: z.ZodString;
|
|
3367
|
+
external_id: z.ZodUUID;
|
|
3368
|
+
external_url: z.ZodURL;
|
|
3369
|
+
}, z.core.$strict>;
|
|
3370
|
+
type CreditRetirementReceiptIdentity = z.infer<typeof CreditRetirementReceiptIdentitySchema>;
|
|
3371
|
+
declare const CreditRetirementReceiptBeneficiarySchema: z.ZodObject<{
|
|
3372
|
+
beneficiary_id: z.ZodUUID;
|
|
3373
|
+
identity: z.ZodObject<{
|
|
3374
|
+
name: z.ZodString;
|
|
3375
|
+
external_id: z.ZodUUID;
|
|
3376
|
+
external_url: z.ZodURL;
|
|
3377
|
+
}, z.core.$strict>;
|
|
3378
|
+
}, z.core.$strict>;
|
|
3379
|
+
type CreditRetirementReceiptBeneficiary = z.infer<typeof CreditRetirementReceiptBeneficiarySchema>;
|
|
3380
|
+
declare const CreditRetirementReceiptCreditHolderSchema: z.ZodObject<{
|
|
3381
|
+
wallet_address: z.ZodString;
|
|
3382
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3383
|
+
name: z.ZodString;
|
|
3384
|
+
external_id: z.ZodUUID;
|
|
3385
|
+
external_url: z.ZodURL;
|
|
3386
|
+
}, z.core.$strict>>;
|
|
3387
|
+
}, z.core.$strict>;
|
|
3388
|
+
type CreditRetirementReceiptCreditHolder = z.infer<typeof CreditRetirementReceiptCreditHolderSchema>;
|
|
3389
|
+
declare const CreditRetirementReceiptCollectionSchema: z.ZodObject<{
|
|
3390
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
3391
|
+
slug: z.ZodString;
|
|
3392
|
+
external_id: z.ZodUUID;
|
|
3393
|
+
name: z.ZodString;
|
|
3394
|
+
external_url: z.ZodURL;
|
|
3395
|
+
uri: z.ZodString;
|
|
3396
|
+
}, z.core.$strict>;
|
|
3397
|
+
type CreditRetirementReceiptCollection = z.infer<typeof CreditRetirementReceiptCollectionSchema>;
|
|
3398
|
+
declare const CreditRetirementReceiptCreditSchema: z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>;
|
|
3399
|
+
type CreditRetirementReceiptCredit = z.infer<typeof CreditRetirementReceiptCreditSchema>;
|
|
3400
|
+
declare const CreditRetirementReceiptCertificateCreditSchema: z.ZodObject<{
|
|
3401
|
+
credit_symbol: z.ZodString;
|
|
3402
|
+
credit_slug: z.ZodString;
|
|
3403
|
+
amount: z.ZodNumber;
|
|
3404
|
+
external_id: z.ZodUUID;
|
|
3405
|
+
external_url: z.ZodURL;
|
|
3406
|
+
}, z.core.$strict>;
|
|
3407
|
+
type CreditRetirementReceiptCertificateCredit = z.infer<typeof CreditRetirementReceiptCertificateCreditSchema>;
|
|
3408
|
+
type CreditRetirementMassIdReference = z.infer<typeof MassIdReferenceWithContractSchema>;
|
|
3409
|
+
declare const CreditPurchaseReceiptReferenceSchema: z.ZodObject<{
|
|
3410
|
+
token_id: z.ZodString;
|
|
3411
|
+
external_id: z.ZodUUID;
|
|
3412
|
+
external_url: z.ZodURL;
|
|
3413
|
+
uri: z.ZodString;
|
|
3414
|
+
smart_contract: z.ZodObject<{
|
|
3415
|
+
address: z.ZodString;
|
|
3416
|
+
chain_id: z.ZodNumber;
|
|
3417
|
+
network_name: z.ZodString;
|
|
3418
|
+
}, z.core.$strict>;
|
|
3419
|
+
}, z.core.$strict>;
|
|
3420
|
+
type CreditPurchaseReceiptReference = z.infer<typeof CreditPurchaseReceiptReferenceSchema>;
|
|
3421
|
+
declare const CreditRetirementReceiptCertificateSchema: z.ZodObject<{
|
|
3422
|
+
token_id: z.ZodString;
|
|
3423
|
+
type: z.ZodEnum<{
|
|
3424
|
+
RecycledID: "RecycledID";
|
|
3425
|
+
GasID: "GasID";
|
|
3426
|
+
}>;
|
|
3427
|
+
external_id: z.ZodUUID;
|
|
3428
|
+
external_url: z.ZodURL;
|
|
3429
|
+
uri: z.ZodString;
|
|
3430
|
+
smart_contract: z.ZodObject<{
|
|
3431
|
+
address: z.ZodString;
|
|
3432
|
+
chain_id: z.ZodNumber;
|
|
3433
|
+
network_name: z.ZodString;
|
|
3434
|
+
}, z.core.$strict>;
|
|
3435
|
+
collection_slug: z.ZodString;
|
|
3436
|
+
total_amount: z.ZodNumber;
|
|
3437
|
+
mass_id: z.ZodObject<{
|
|
3438
|
+
external_id: z.ZodUUID;
|
|
3439
|
+
token_id: z.ZodString;
|
|
3440
|
+
external_url: z.ZodURL;
|
|
3441
|
+
uri: z.ZodString;
|
|
3442
|
+
smart_contract: z.ZodObject<{
|
|
3443
|
+
address: z.ZodString;
|
|
3444
|
+
chain_id: z.ZodNumber;
|
|
3445
|
+
network_name: z.ZodString;
|
|
3446
|
+
}, z.core.$strict>;
|
|
3447
|
+
}, z.core.$strict>;
|
|
3448
|
+
} & {
|
|
3449
|
+
retired_amount: z.ZodNumber;
|
|
3450
|
+
credits_retired: z.ZodArray<z.ZodObject<{
|
|
3451
|
+
credit_symbol: z.ZodString;
|
|
3452
|
+
credit_slug: z.ZodString;
|
|
3453
|
+
amount: z.ZodNumber;
|
|
3454
|
+
external_id: z.ZodUUID;
|
|
3455
|
+
external_url: z.ZodURL;
|
|
3456
|
+
}, z.core.$strict>>;
|
|
3457
|
+
}, z.core.$strict>;
|
|
3458
|
+
type CreditRetirementReceiptCertificate = z.infer<typeof CreditRetirementReceiptCertificateSchema>;
|
|
3459
|
+
declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
3460
|
+
summary: z.ZodObject<{
|
|
3461
|
+
total_certificates: z.ZodNumber;
|
|
3462
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
3463
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
3464
|
+
RecycledID: "RecycledID";
|
|
3465
|
+
GasID: "GasID";
|
|
3466
|
+
}>>;
|
|
3467
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
3468
|
+
total_retirement_amount: z.ZodNumber;
|
|
3469
|
+
retirement_date: z.ZodISODate;
|
|
3470
|
+
}, z.core.$strict>;
|
|
3471
|
+
beneficiary: z.ZodObject<{
|
|
3472
|
+
beneficiary_id: z.ZodUUID;
|
|
3473
|
+
identity: z.ZodObject<{
|
|
3474
|
+
name: z.ZodString;
|
|
3475
|
+
external_id: z.ZodUUID;
|
|
3476
|
+
external_url: z.ZodURL;
|
|
3477
|
+
}, z.core.$strict>;
|
|
3478
|
+
}, z.core.$strict>;
|
|
3479
|
+
credit_holder: z.ZodObject<{
|
|
3480
|
+
wallet_address: z.ZodString;
|
|
3481
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3482
|
+
name: z.ZodString;
|
|
3483
|
+
external_id: z.ZodUUID;
|
|
3484
|
+
external_url: z.ZodURL;
|
|
3485
|
+
}, z.core.$strict>>;
|
|
3486
|
+
}, z.core.$strict>;
|
|
3487
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
3488
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
3489
|
+
slug: z.ZodString;
|
|
3490
|
+
external_id: z.ZodUUID;
|
|
3491
|
+
name: z.ZodString;
|
|
3492
|
+
external_url: z.ZodURL;
|
|
3493
|
+
uri: z.ZodString;
|
|
3494
|
+
}, z.core.$strict>>;
|
|
3495
|
+
credits: z.ZodArray<z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>>;
|
|
3496
|
+
certificates: z.ZodArray<z.ZodObject<{
|
|
3497
|
+
token_id: z.ZodString;
|
|
3498
|
+
type: z.ZodEnum<{
|
|
3499
|
+
RecycledID: "RecycledID";
|
|
3500
|
+
GasID: "GasID";
|
|
3501
|
+
}>;
|
|
3502
|
+
external_id: z.ZodUUID;
|
|
3503
|
+
external_url: z.ZodURL;
|
|
3504
|
+
uri: z.ZodString;
|
|
3505
|
+
smart_contract: z.ZodObject<{
|
|
3506
|
+
address: z.ZodString;
|
|
3507
|
+
chain_id: z.ZodNumber;
|
|
3508
|
+
network_name: z.ZodString;
|
|
3509
|
+
}, z.core.$strict>;
|
|
3510
|
+
collection_slug: z.ZodString;
|
|
3511
|
+
total_amount: z.ZodNumber;
|
|
3512
|
+
mass_id: z.ZodObject<{
|
|
3513
|
+
external_id: z.ZodUUID;
|
|
3514
|
+
token_id: z.ZodString;
|
|
3515
|
+
external_url: z.ZodURL;
|
|
3516
|
+
uri: z.ZodString;
|
|
3517
|
+
smart_contract: z.ZodObject<{
|
|
3518
|
+
address: z.ZodString;
|
|
3519
|
+
chain_id: z.ZodNumber;
|
|
3520
|
+
network_name: z.ZodString;
|
|
3521
|
+
}, z.core.$strict>;
|
|
3522
|
+
}, z.core.$strict>;
|
|
3523
|
+
} & {
|
|
3524
|
+
retired_amount: z.ZodNumber;
|
|
3525
|
+
credits_retired: z.ZodArray<z.ZodObject<{
|
|
3526
|
+
credit_symbol: z.ZodString;
|
|
3527
|
+
credit_slug: z.ZodString;
|
|
3528
|
+
amount: z.ZodNumber;
|
|
3529
|
+
external_id: z.ZodUUID;
|
|
3530
|
+
external_url: z.ZodURL;
|
|
3531
|
+
}, z.core.$strict>>;
|
|
3532
|
+
}, z.core.$strict>>;
|
|
3533
|
+
purchase_receipt: z.ZodOptional<z.ZodObject<{
|
|
3534
|
+
token_id: z.ZodString;
|
|
3535
|
+
external_id: z.ZodUUID;
|
|
3536
|
+
external_url: z.ZodURL;
|
|
3537
|
+
uri: z.ZodString;
|
|
3538
|
+
smart_contract: z.ZodObject<{
|
|
3539
|
+
address: z.ZodString;
|
|
3540
|
+
chain_id: z.ZodNumber;
|
|
3541
|
+
network_name: z.ZodString;
|
|
3542
|
+
}, z.core.$strict>;
|
|
3543
|
+
}, z.core.$strict>>;
|
|
3544
|
+
}, z.core.$strict>;
|
|
3545
|
+
type CreditRetirementReceiptData = z.infer<typeof CreditRetirementReceiptDataSchema>;
|
|
3546
|
+
|
|
3547
|
+
declare const CreditRetirementReceiptIpfsSchemaMeta: {
|
|
3548
|
+
readonly title: "CreditRetirementReceipt NFT IPFS Record";
|
|
3549
|
+
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including attributes and credit retirement data";
|
|
3550
|
+
readonly $id: string;
|
|
3551
|
+
readonly version: string;
|
|
3552
|
+
};
|
|
3553
|
+
declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
3554
|
+
description: z.ZodString;
|
|
3555
|
+
name: z.ZodString;
|
|
3556
|
+
external_id: z.ZodUUID;
|
|
3557
|
+
external_url: z.ZodURL;
|
|
3558
|
+
$schema: z.ZodURL;
|
|
3559
|
+
created_at: z.ZodISODateTime;
|
|
3560
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3561
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3562
|
+
name: z.ZodString;
|
|
3563
|
+
id: z.ZodUUID;
|
|
3564
|
+
}, z.core.$strict>>;
|
|
3565
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3566
|
+
target_uri: z.ZodString;
|
|
3567
|
+
type: z.ZodEnum<{
|
|
3568
|
+
collection: "collection";
|
|
3569
|
+
credit: "credit";
|
|
3570
|
+
"gas-id": "gas-id";
|
|
3571
|
+
"mass-id": "mass-id";
|
|
3572
|
+
"mass-id-audit": "mass-id-audit";
|
|
3573
|
+
methodology: "methodology";
|
|
3574
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3575
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3576
|
+
"recycled-id": "recycled-id";
|
|
3577
|
+
}>;
|
|
3578
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3579
|
+
}, z.core.$strict>>>;
|
|
3580
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
3581
|
+
blockchain_network: z.ZodEnum<{
|
|
3582
|
+
mainnet: "mainnet";
|
|
3583
|
+
testnet: "testnet";
|
|
3584
|
+
}>;
|
|
3585
|
+
deployment: z.ZodEnum<{
|
|
3586
|
+
production: "production";
|
|
3587
|
+
development: "development";
|
|
3588
|
+
testing: "testing";
|
|
3589
|
+
}>;
|
|
3590
|
+
data_set_name: z.ZodEnum<{
|
|
3591
|
+
TEST: "TEST";
|
|
3592
|
+
PROD: "PROD";
|
|
3593
|
+
}>;
|
|
3594
|
+
}, z.core.$strict>>;
|
|
3595
|
+
blockchain: z.ZodObject<{
|
|
3596
|
+
smart_contract_address: z.ZodString;
|
|
3597
|
+
chain_id: z.ZodNumber;
|
|
3598
|
+
network_name: z.ZodString;
|
|
3599
|
+
token_id: z.ZodString;
|
|
3600
|
+
}, z.core.$strict>;
|
|
3601
|
+
short_name: z.ZodString;
|
|
3602
|
+
image: z.ZodString;
|
|
3603
|
+
background_color: z.ZodOptional<z.ZodString>;
|
|
3604
|
+
animation_url: z.ZodOptional<z.ZodString>;
|
|
3605
|
+
external_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3606
|
+
label: z.ZodString;
|
|
3607
|
+
url: z.ZodURL;
|
|
3608
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3609
|
+
}, z.core.$strict>>>;
|
|
3610
|
+
schema: z.ZodObject<{
|
|
3611
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
3612
|
+
version: z.ZodString;
|
|
3613
|
+
type: z.ZodLiteral<"CreditRetirementReceipt">;
|
|
3614
|
+
}, z.core.$strict>;
|
|
3615
|
+
attributes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3616
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3617
|
+
trait_type: z.ZodString;
|
|
3618
|
+
value: z.ZodNumber;
|
|
3619
|
+
display_type: z.ZodLiteral<"number">;
|
|
3620
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3621
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3622
|
+
trait_type: z.ZodLiteral<"Total Credits Retired">;
|
|
3623
|
+
value: z.ZodNumber;
|
|
3624
|
+
display_type: z.ZodLiteral<"number">;
|
|
3625
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3626
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3627
|
+
number: "number";
|
|
3628
|
+
date: "date";
|
|
3629
|
+
boost_number: "boost_number";
|
|
3630
|
+
boost_percentage: "boost_percentage";
|
|
3631
|
+
}>>;
|
|
3632
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3633
|
+
trait_type: z.ZodLiteral<"Beneficiary">;
|
|
3634
|
+
value: z.ZodString;
|
|
3635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3636
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
3637
|
+
number: "number";
|
|
3638
|
+
date: "date";
|
|
3639
|
+
boost_number: "boost_number";
|
|
3640
|
+
boost_percentage: "boost_percentage";
|
|
3641
|
+
}>>;
|
|
3642
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3643
|
+
trait_type: z.ZodLiteral<"Credit Holder">;
|
|
3644
|
+
value: z.ZodString;
|
|
3645
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3646
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3647
|
+
trait_type: z.ZodLiteral<"Retirement Date">;
|
|
3648
|
+
value: z.ZodNumber;
|
|
3649
|
+
display_type: z.ZodLiteral<"date">;
|
|
3650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3651
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3652
|
+
trait_type: z.ZodLiteral<"Certificates Retired">;
|
|
3653
|
+
value: z.ZodNumber;
|
|
3654
|
+
display_type: z.ZodLiteral<"number">;
|
|
3655
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3656
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
3657
|
+
trait_type: z.ZodString;
|
|
3658
|
+
value: z.ZodNumber;
|
|
3659
|
+
display_type: z.ZodLiteral<"number">;
|
|
3660
|
+
}, z.core.$strict>]>>;
|
|
3661
|
+
data: z.ZodObject<{
|
|
3662
|
+
summary: z.ZodObject<{
|
|
3663
|
+
total_certificates: z.ZodNumber;
|
|
3664
|
+
credit_symbols: z.ZodArray<z.ZodString>;
|
|
3665
|
+
certificate_types: z.ZodArray<z.ZodEnum<{
|
|
3666
|
+
RecycledID: "RecycledID";
|
|
3667
|
+
GasID: "GasID";
|
|
3668
|
+
}>>;
|
|
3669
|
+
collection_slugs: z.ZodArray<z.ZodString>;
|
|
3670
|
+
total_retirement_amount: z.ZodNumber;
|
|
3671
|
+
retirement_date: z.ZodISODate;
|
|
3672
|
+
}, z.core.$strict>;
|
|
3673
|
+
beneficiary: z.ZodObject<{
|
|
3674
|
+
beneficiary_id: z.ZodUUID;
|
|
3675
|
+
identity: z.ZodObject<{
|
|
3676
|
+
name: z.ZodString;
|
|
3677
|
+
external_id: z.ZodUUID;
|
|
3678
|
+
external_url: z.ZodURL;
|
|
3679
|
+
}, z.core.$strict>;
|
|
3680
|
+
}, z.core.$strict>;
|
|
3681
|
+
credit_holder: z.ZodObject<{
|
|
3682
|
+
wallet_address: z.ZodString;
|
|
3683
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3684
|
+
name: z.ZodString;
|
|
3685
|
+
external_id: z.ZodUUID;
|
|
3686
|
+
external_url: z.ZodURL;
|
|
3687
|
+
}, z.core.$strict>>;
|
|
3688
|
+
}, z.core.$strict>;
|
|
3689
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
3690
|
+
[x: string]: z.ZodUUID | z.ZodString | z.ZodNumber | z.ZodURL;
|
|
3691
|
+
slug: z.ZodString;
|
|
3692
|
+
external_id: z.ZodUUID;
|
|
3693
|
+
name: z.ZodString;
|
|
3694
|
+
external_url: z.ZodURL;
|
|
3695
|
+
uri: z.ZodString;
|
|
3696
|
+
}, z.core.$strict>>;
|
|
3697
|
+
credits: z.ZodArray<z.ZodObject<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$strict>>;
|
|
3698
|
+
certificates: z.ZodArray<z.ZodObject<{
|
|
3699
|
+
token_id: z.ZodString;
|
|
3700
|
+
type: z.ZodEnum<{
|
|
3701
|
+
RecycledID: "RecycledID";
|
|
3702
|
+
GasID: "GasID";
|
|
3703
|
+
}>;
|
|
3704
|
+
external_id: z.ZodUUID;
|
|
3705
|
+
external_url: z.ZodURL;
|
|
3706
|
+
uri: z.ZodString;
|
|
3707
|
+
smart_contract: z.ZodObject<{
|
|
3708
|
+
address: z.ZodString;
|
|
3709
|
+
chain_id: z.ZodNumber;
|
|
3710
|
+
network_name: z.ZodString;
|
|
3711
|
+
}, z.core.$strict>;
|
|
3712
|
+
collection_slug: z.ZodString;
|
|
3713
|
+
total_amount: z.ZodNumber;
|
|
3714
|
+
mass_id: z.ZodObject<{
|
|
3715
|
+
external_id: z.ZodUUID;
|
|
3716
|
+
token_id: z.ZodString;
|
|
3717
|
+
external_url: z.ZodURL;
|
|
3718
|
+
uri: z.ZodString;
|
|
3719
|
+
smart_contract: z.ZodObject<{
|
|
3720
|
+
address: z.ZodString;
|
|
3721
|
+
chain_id: z.ZodNumber;
|
|
3722
|
+
network_name: z.ZodString;
|
|
3723
|
+
}, z.core.$strict>;
|
|
3724
|
+
}, z.core.$strict>;
|
|
3725
|
+
} & {
|
|
3726
|
+
retired_amount: z.ZodNumber;
|
|
3727
|
+
credits_retired: z.ZodArray<z.ZodObject<{
|
|
3728
|
+
credit_symbol: z.ZodString;
|
|
3729
|
+
credit_slug: z.ZodString;
|
|
3730
|
+
amount: z.ZodNumber;
|
|
3731
|
+
external_id: z.ZodUUID;
|
|
3732
|
+
external_url: z.ZodURL;
|
|
3733
|
+
}, z.core.$strict>>;
|
|
3734
|
+
}, z.core.$strict>>;
|
|
3735
|
+
purchase_receipt: z.ZodOptional<z.ZodObject<{
|
|
3736
|
+
token_id: z.ZodString;
|
|
3737
|
+
external_id: z.ZodUUID;
|
|
3738
|
+
external_url: z.ZodURL;
|
|
3739
|
+
uri: z.ZodString;
|
|
3740
|
+
smart_contract: z.ZodObject<{
|
|
3741
|
+
address: z.ZodString;
|
|
3742
|
+
chain_id: z.ZodNumber;
|
|
3743
|
+
network_name: z.ZodString;
|
|
3744
|
+
}, z.core.$strict>;
|
|
3745
|
+
}, z.core.$strict>>;
|
|
3746
|
+
}, z.core.$strict>;
|
|
3747
|
+
}, z.core.$strict>;
|
|
3748
|
+
type CreditRetirementReceiptIpfs = z.infer<typeof CreditRetirementReceiptIpfsSchema>;
|
|
3749
|
+
|
|
3750
|
+
declare const CollectionSchemaMeta: {
|
|
3751
|
+
readonly title: "Collection IPFS Record";
|
|
3752
|
+
readonly description: "Collection metadata stored in IPFS, extending the base schema with collection-specific fields required for NFT collection definitions in Carrot's ecosystem";
|
|
3753
|
+
readonly $id: string;
|
|
3754
|
+
readonly version: string;
|
|
3755
|
+
};
|
|
3756
|
+
declare const CollectionSchema: z.ZodObject<{
|
|
3757
|
+
$schema: z.ZodURL;
|
|
3758
|
+
created_at: z.ZodISODateTime;
|
|
3759
|
+
external_id: z.ZodUUID;
|
|
3760
|
+
external_url: z.ZodURL;
|
|
3761
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3762
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3763
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3764
|
+
name: z.ZodString;
|
|
3765
|
+
id: z.ZodUUID;
|
|
3766
|
+
}, z.core.$strict>>;
|
|
3767
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3768
|
+
target_uri: z.ZodString;
|
|
3769
|
+
type: z.ZodEnum<{
|
|
3770
|
+
collection: "collection";
|
|
3771
|
+
credit: "credit";
|
|
3772
|
+
"gas-id": "gas-id";
|
|
3773
|
+
"mass-id": "mass-id";
|
|
3774
|
+
"mass-id-audit": "mass-id-audit";
|
|
3775
|
+
methodology: "methodology";
|
|
3776
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3777
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3778
|
+
"recycled-id": "recycled-id";
|
|
3779
|
+
}>;
|
|
3780
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3781
|
+
}, z.core.$strict>>>;
|
|
3782
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
3783
|
+
blockchain_network: z.ZodEnum<{
|
|
3784
|
+
mainnet: "mainnet";
|
|
3785
|
+
testnet: "testnet";
|
|
3786
|
+
}>;
|
|
3787
|
+
deployment: z.ZodEnum<{
|
|
3788
|
+
production: "production";
|
|
3789
|
+
development: "development";
|
|
3790
|
+
testing: "testing";
|
|
3791
|
+
}>;
|
|
3792
|
+
data_set_name: z.ZodEnum<{
|
|
3793
|
+
TEST: "TEST";
|
|
3794
|
+
PROD: "PROD";
|
|
3795
|
+
}>;
|
|
3796
|
+
}, z.core.$strict>>;
|
|
3797
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3798
|
+
schema: z.ZodObject<{
|
|
3799
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
3800
|
+
version: z.ZodString;
|
|
3801
|
+
type: z.ZodLiteral<"Collection">;
|
|
3802
|
+
}, z.core.$strict>;
|
|
3803
|
+
name: z.ZodString;
|
|
3804
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
3805
|
+
image: z.ZodString;
|
|
3806
|
+
description: z.ZodString;
|
|
3807
|
+
}, z.core.$strict>;
|
|
3808
|
+
type Collection = z.infer<typeof CollectionSchema>;
|
|
3809
|
+
|
|
3810
|
+
declare const CreditSchemaMeta: {
|
|
3811
|
+
readonly title: "Credit IPFS Record";
|
|
3812
|
+
readonly description: "Credit token metadata stored in IPFS, extending the base schema with ERC20-specific details";
|
|
3813
|
+
readonly $id: string;
|
|
3814
|
+
readonly version: string;
|
|
3815
|
+
};
|
|
3816
|
+
declare const CreditSchema: z.ZodObject<{
|
|
3817
|
+
$schema: z.ZodURL;
|
|
3818
|
+
created_at: z.ZodISODateTime;
|
|
3819
|
+
external_id: z.ZodUUID;
|
|
3820
|
+
external_url: z.ZodURL;
|
|
3821
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3822
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3823
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3824
|
+
name: z.ZodString;
|
|
3825
|
+
id: z.ZodUUID;
|
|
3826
|
+
}, z.core.$strict>>;
|
|
3827
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3828
|
+
target_uri: z.ZodString;
|
|
3829
|
+
type: z.ZodEnum<{
|
|
3830
|
+
collection: "collection";
|
|
3831
|
+
credit: "credit";
|
|
3832
|
+
"gas-id": "gas-id";
|
|
3833
|
+
"mass-id": "mass-id";
|
|
3834
|
+
"mass-id-audit": "mass-id-audit";
|
|
3835
|
+
methodology: "methodology";
|
|
3836
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3837
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3838
|
+
"recycled-id": "recycled-id";
|
|
3839
|
+
}>;
|
|
3840
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3841
|
+
}, z.core.$strict>>>;
|
|
3842
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
3843
|
+
blockchain_network: z.ZodEnum<{
|
|
3844
|
+
mainnet: "mainnet";
|
|
3845
|
+
testnet: "testnet";
|
|
3846
|
+
}>;
|
|
3847
|
+
deployment: z.ZodEnum<{
|
|
3848
|
+
production: "production";
|
|
3849
|
+
development: "development";
|
|
3850
|
+
testing: "testing";
|
|
3851
|
+
}>;
|
|
3852
|
+
data_set_name: z.ZodEnum<{
|
|
3853
|
+
TEST: "TEST";
|
|
3854
|
+
PROD: "PROD";
|
|
3855
|
+
}>;
|
|
3856
|
+
}, z.core.$strict>>;
|
|
3857
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3858
|
+
schema: z.ZodObject<{
|
|
3859
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
3860
|
+
version: z.ZodString;
|
|
3861
|
+
type: z.ZodLiteral<"Credit">;
|
|
3862
|
+
}, z.core.$strict>;
|
|
3863
|
+
symbol: z.ZodString;
|
|
3864
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
3865
|
+
name: z.ZodString;
|
|
3866
|
+
decimals: z.ZodNumber;
|
|
3867
|
+
image: z.ZodString;
|
|
3868
|
+
description: z.ZodString;
|
|
3869
|
+
}, z.core.$strict>;
|
|
3870
|
+
type Credit = z.infer<typeof CreditSchema>;
|
|
3871
|
+
|
|
3872
|
+
declare const MethodologySchemaMeta: {
|
|
3873
|
+
readonly title: "Methodology IPFS Record";
|
|
3874
|
+
readonly description: "Methodology metadata stored in IPFS, extending the base schema with methodology data and audit rules";
|
|
3875
|
+
readonly $id: string;
|
|
3876
|
+
readonly version: string;
|
|
3877
|
+
};
|
|
3878
|
+
declare const MethodologySchema: z.ZodObject<{
|
|
3879
|
+
$schema: z.ZodURL;
|
|
3880
|
+
created_at: z.ZodISODateTime;
|
|
3881
|
+
external_id: z.ZodUUID;
|
|
3882
|
+
external_url: z.ZodURL;
|
|
3883
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3884
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3885
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3886
|
+
name: z.ZodString;
|
|
3887
|
+
id: z.ZodUUID;
|
|
3888
|
+
}, z.core.$strict>>;
|
|
3889
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3890
|
+
target_uri: z.ZodString;
|
|
3891
|
+
type: z.ZodEnum<{
|
|
3892
|
+
collection: "collection";
|
|
3893
|
+
credit: "credit";
|
|
3894
|
+
"gas-id": "gas-id";
|
|
3895
|
+
"mass-id": "mass-id";
|
|
3896
|
+
"mass-id-audit": "mass-id-audit";
|
|
3897
|
+
methodology: "methodology";
|
|
3898
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3899
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3900
|
+
"recycled-id": "recycled-id";
|
|
3901
|
+
}>;
|
|
3902
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3903
|
+
}, z.core.$strict>>>;
|
|
3904
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
3905
|
+
blockchain_network: z.ZodEnum<{
|
|
3906
|
+
mainnet: "mainnet";
|
|
3907
|
+
testnet: "testnet";
|
|
3908
|
+
}>;
|
|
3909
|
+
deployment: z.ZodEnum<{
|
|
3910
|
+
production: "production";
|
|
3911
|
+
development: "development";
|
|
3912
|
+
testing: "testing";
|
|
3913
|
+
}>;
|
|
3914
|
+
data_set_name: z.ZodEnum<{
|
|
3915
|
+
TEST: "TEST";
|
|
3916
|
+
PROD: "PROD";
|
|
3917
|
+
}>;
|
|
3918
|
+
}, z.core.$strict>>;
|
|
3919
|
+
schema: z.ZodObject<{
|
|
3920
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
3921
|
+
version: z.ZodString;
|
|
3922
|
+
type: z.ZodLiteral<"Methodology">;
|
|
3923
|
+
}, z.core.$strict>;
|
|
3924
|
+
data: z.ZodObject<{
|
|
3925
|
+
name: z.ZodString;
|
|
3926
|
+
short_name: z.ZodString;
|
|
3927
|
+
slug: z.ZodString;
|
|
3928
|
+
version: z.ZodString;
|
|
3929
|
+
description: z.ZodString;
|
|
3930
|
+
revision_date: z.ZodISODate;
|
|
3931
|
+
publication_date: z.ZodISODate;
|
|
3932
|
+
methodology_pdf: z.ZodString;
|
|
3933
|
+
mass_id_audit_rules: z.ZodArray<z.ZodObject<{
|
|
3934
|
+
rule_id: z.ZodUUID;
|
|
3935
|
+
rule_slug: z.ZodString;
|
|
3936
|
+
rule_name: z.ZodString;
|
|
3937
|
+
description: z.ZodString;
|
|
3938
|
+
source_code_url: z.ZodURL;
|
|
3939
|
+
mandatory: z.ZodBoolean;
|
|
3940
|
+
execution_order: z.ZodNumber;
|
|
3941
|
+
}, z.core.$strict>>;
|
|
3942
|
+
}, z.core.$strict>;
|
|
3943
|
+
}, z.core.$strict>;
|
|
3944
|
+
type Methodology = z.infer<typeof MethodologySchema>;
|
|
3945
|
+
|
|
3946
|
+
declare const MethodologyDataSchema: z.ZodObject<{
|
|
3947
|
+
name: z.ZodString;
|
|
3948
|
+
short_name: z.ZodString;
|
|
3949
|
+
slug: z.ZodString;
|
|
3950
|
+
version: z.ZodString;
|
|
3951
|
+
description: z.ZodString;
|
|
3952
|
+
revision_date: z.ZodISODate;
|
|
3953
|
+
publication_date: z.ZodISODate;
|
|
3954
|
+
methodology_pdf: z.ZodString;
|
|
3955
|
+
mass_id_audit_rules: z.ZodArray<z.ZodObject<{
|
|
3956
|
+
rule_id: z.ZodUUID;
|
|
3957
|
+
rule_slug: z.ZodString;
|
|
3958
|
+
rule_name: z.ZodString;
|
|
3959
|
+
description: z.ZodString;
|
|
3960
|
+
source_code_url: z.ZodURL;
|
|
3961
|
+
mandatory: z.ZodBoolean;
|
|
3962
|
+
execution_order: z.ZodNumber;
|
|
3963
|
+
}, z.core.$strict>>;
|
|
3964
|
+
}, z.core.$strict>;
|
|
3965
|
+
type MethodologyData = z.infer<typeof MethodologyDataSchema>;
|
|
3966
|
+
|
|
3967
|
+
declare const MassIDAuditSchemaMeta: {
|
|
3968
|
+
readonly title: "MassID Audit IPFS Record";
|
|
3969
|
+
readonly description: "MassID audit metadata stored in IPFS, extending the base schema with audit results and references";
|
|
3970
|
+
readonly $id: string;
|
|
3971
|
+
readonly version: string;
|
|
3972
|
+
};
|
|
3973
|
+
declare const MassIDAuditSchema: z.ZodObject<{
|
|
3974
|
+
$schema: z.ZodURL;
|
|
3975
|
+
created_at: z.ZodISODateTime;
|
|
3976
|
+
external_id: z.ZodUUID;
|
|
3977
|
+
external_url: z.ZodURL;
|
|
3978
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3979
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3980
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
3981
|
+
name: z.ZodString;
|
|
3982
|
+
id: z.ZodUUID;
|
|
3983
|
+
}, z.core.$strict>>;
|
|
3984
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3985
|
+
target_uri: z.ZodString;
|
|
3986
|
+
type: z.ZodEnum<{
|
|
3987
|
+
collection: "collection";
|
|
3988
|
+
credit: "credit";
|
|
3989
|
+
"gas-id": "gas-id";
|
|
3990
|
+
"mass-id": "mass-id";
|
|
3991
|
+
"mass-id-audit": "mass-id-audit";
|
|
3992
|
+
methodology: "methodology";
|
|
3993
|
+
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3994
|
+
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3995
|
+
"recycled-id": "recycled-id";
|
|
3996
|
+
}>;
|
|
3997
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3998
|
+
}, z.core.$strict>>>;
|
|
3999
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
4000
|
+
blockchain_network: z.ZodEnum<{
|
|
4001
|
+
mainnet: "mainnet";
|
|
4002
|
+
testnet: "testnet";
|
|
4003
|
+
}>;
|
|
4004
|
+
deployment: z.ZodEnum<{
|
|
4005
|
+
production: "production";
|
|
4006
|
+
development: "development";
|
|
4007
|
+
testing: "testing";
|
|
4008
|
+
}>;
|
|
4009
|
+
data_set_name: z.ZodEnum<{
|
|
4010
|
+
TEST: "TEST";
|
|
4011
|
+
PROD: "PROD";
|
|
4012
|
+
}>;
|
|
4013
|
+
}, z.core.$strict>>;
|
|
4014
|
+
schema: z.ZodObject<{
|
|
4015
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
4016
|
+
version: z.ZodString;
|
|
4017
|
+
type: z.ZodLiteral<"MassID Audit">;
|
|
4018
|
+
}, z.core.$strict>;
|
|
4019
|
+
data: z.ZodObject<{
|
|
4020
|
+
methodology: z.ZodObject<{
|
|
4021
|
+
external_id: z.ZodUUID;
|
|
4022
|
+
name: z.ZodString;
|
|
4023
|
+
version: z.ZodString;
|
|
4024
|
+
external_url: z.ZodURL;
|
|
4025
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
}, z.core.$strict>;
|
|
4027
|
+
mass_id: z.ZodObject<{
|
|
4028
|
+
external_id: z.ZodUUID;
|
|
4029
|
+
token_id: z.ZodString;
|
|
4030
|
+
external_url: z.ZodURL;
|
|
4031
|
+
uri: z.ZodString;
|
|
4032
|
+
}, z.core.$strict>;
|
|
4033
|
+
gas_id: z.ZodObject<{
|
|
4034
|
+
external_id: z.ZodUUID;
|
|
4035
|
+
token_id: z.ZodString;
|
|
4036
|
+
external_url: z.ZodURL;
|
|
4037
|
+
uri: z.ZodString;
|
|
4038
|
+
}, z.core.$strict>;
|
|
4039
|
+
audit_summary: z.ZodObject<{
|
|
4040
|
+
audit_date: z.ZodISODate;
|
|
4041
|
+
methodology_compliance: z.ZodEnum<{
|
|
4042
|
+
PASSED: "PASSED";
|
|
4043
|
+
FAILED: "FAILED";
|
|
4044
|
+
}>;
|
|
4045
|
+
total_rules_executed: z.ZodNumber;
|
|
4046
|
+
passed_rules: z.ZodNumber;
|
|
4047
|
+
failed_rules: z.ZodNumber;
|
|
4048
|
+
}, z.core.$strict>;
|
|
4049
|
+
rules_execution_results: z.ZodArray<z.ZodObject<{
|
|
4050
|
+
rule_name: z.ZodString;
|
|
4051
|
+
rule_id: z.ZodUUID;
|
|
4052
|
+
rule_slug: z.ZodString;
|
|
4053
|
+
execution_order: z.ZodNumber;
|
|
4054
|
+
result: z.ZodEnum<{
|
|
4055
|
+
PASSED: "PASSED";
|
|
4056
|
+
FAILED: "FAILED";
|
|
4057
|
+
}>;
|
|
4058
|
+
description: z.ZodString;
|
|
4059
|
+
rule_processor_checksum: z.ZodString;
|
|
4060
|
+
rule_source_code_version: z.ZodString;
|
|
4061
|
+
}, z.core.$strict>>;
|
|
4062
|
+
}, z.core.$strict>;
|
|
4063
|
+
}, z.core.$strict>;
|
|
4064
|
+
type MassIDAudit = z.infer<typeof MassIDAuditSchema>;
|
|
4065
|
+
|
|
4066
|
+
declare const MassIDAuditSummarySchema: z.ZodObject<{
|
|
4067
|
+
audit_date: z.ZodISODate;
|
|
4068
|
+
methodology_compliance: z.ZodEnum<{
|
|
4069
|
+
PASSED: "PASSED";
|
|
4070
|
+
FAILED: "FAILED";
|
|
4071
|
+
}>;
|
|
4072
|
+
total_rules_executed: z.ZodNumber;
|
|
4073
|
+
passed_rules: z.ZodNumber;
|
|
4074
|
+
failed_rules: z.ZodNumber;
|
|
4075
|
+
}, z.core.$strict>;
|
|
4076
|
+
type MassIDAuditSummary = z.infer<typeof MassIDAuditSummarySchema>;
|
|
4077
|
+
declare const MassIDAuditDataSchema: z.ZodObject<{
|
|
4078
|
+
methodology: z.ZodObject<{
|
|
4079
|
+
external_id: z.ZodUUID;
|
|
4080
|
+
name: z.ZodString;
|
|
4081
|
+
version: z.ZodString;
|
|
4082
|
+
external_url: z.ZodURL;
|
|
4083
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
4084
|
+
}, z.core.$strict>;
|
|
4085
|
+
mass_id: z.ZodObject<{
|
|
4086
|
+
external_id: z.ZodUUID;
|
|
4087
|
+
token_id: z.ZodString;
|
|
4088
|
+
external_url: z.ZodURL;
|
|
4089
|
+
uri: z.ZodString;
|
|
4090
|
+
}, z.core.$strict>;
|
|
4091
|
+
gas_id: z.ZodObject<{
|
|
4092
|
+
external_id: z.ZodUUID;
|
|
4093
|
+
token_id: z.ZodString;
|
|
4094
|
+
external_url: z.ZodURL;
|
|
4095
|
+
uri: z.ZodString;
|
|
4096
|
+
}, z.core.$strict>;
|
|
4097
|
+
audit_summary: z.ZodObject<{
|
|
4098
|
+
audit_date: z.ZodISODate;
|
|
4099
|
+
methodology_compliance: z.ZodEnum<{
|
|
4100
|
+
PASSED: "PASSED";
|
|
4101
|
+
FAILED: "FAILED";
|
|
4102
|
+
}>;
|
|
4103
|
+
total_rules_executed: z.ZodNumber;
|
|
4104
|
+
passed_rules: z.ZodNumber;
|
|
4105
|
+
failed_rules: z.ZodNumber;
|
|
4106
|
+
}, z.core.$strict>;
|
|
4107
|
+
rules_execution_results: z.ZodArray<z.ZodObject<{
|
|
4108
|
+
rule_name: z.ZodString;
|
|
4109
|
+
rule_id: z.ZodUUID;
|
|
4110
|
+
rule_slug: z.ZodString;
|
|
4111
|
+
execution_order: z.ZodNumber;
|
|
4112
|
+
result: z.ZodEnum<{
|
|
4113
|
+
PASSED: "PASSED";
|
|
4114
|
+
FAILED: "FAILED";
|
|
4115
|
+
}>;
|
|
4116
|
+
description: z.ZodString;
|
|
4117
|
+
rule_processor_checksum: z.ZodString;
|
|
4118
|
+
rule_source_code_version: z.ZodString;
|
|
4119
|
+
}, z.core.$strict>>;
|
|
4120
|
+
}, z.core.$strict>;
|
|
4121
|
+
type MassIDAuditData = z.infer<typeof MassIDAuditDataSchema>;
|
|
4122
|
+
|
|
4123
|
+
export { type AccreditedParticipant, AccreditedParticipantSchema, type AccreditedParticipants, AccreditedParticipantsSchema, type AdministrativeDivision, AdministrativeDivisionSchema, type AuditReference, AuditReferenceSchema, type AuditRuleDefinition, AuditRuleDefinitionSchema, type AuditRuleDefinitions, AuditRuleDefinitionsSchema, type AuditRuleExecutionResult, AuditRuleExecutionResultSchema, type AuditRuleExecutionResults, AuditRuleExecutionResultsSchema, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainNetworkName, BlockchainNetworkNameSchema, type BlockchainReference, type CalculationValue, type Collection, type CollectionName, CollectionNameSchema, CollectionSchema, CollectionSchemaMeta, type CollectionSlug, CollectionSlugSchema, type Coordinates, CoordinatesSchema, type CountryName, CountryNameSchema, 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, type CreditPurchaseReceiptParticipantReward, type CreditPurchaseReceiptParties, type CreditPurchaseReceiptReceiver, type CreditPurchaseReceiptReference, type CreditPurchaseReceiptRetirement, type CreditPurchaseReceiptRetirementReceipt, type CreditPurchaseReceiptSummary, CreditPurchaseReceiptSummarySchema, type CreditRetirementMassIdReference, type CreditRetirementReceiptAttributes, CreditRetirementReceiptAttributesSchema, type CreditRetirementReceiptBeneficiary, type CreditRetirementReceiptCertificate, type CreditRetirementReceiptCertificateCredit, type CreditRetirementReceiptCollection, type CreditRetirementReceiptCredit, type CreditRetirementReceiptCreditHolder, type CreditRetirementReceiptData, CreditRetirementReceiptDataSchema, type CreditRetirementReceiptIdentity, type CreditRetirementReceiptIpfs, CreditRetirementReceiptIpfsSchema, CreditRetirementReceiptIpfsSchemaMeta, type CreditRetirementReceiptSummary, CreditRetirementReceiptSummarySchema, CreditSchema, CreditSchemaMeta, type CreditTokenSymbol, CreditTokenSymbolSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, type DistributionNotes, DistributionNotesSchema, EPSILON, type EthereumAddress, EthereumAddressSchema, type EventAttachment, type EventAttribute, type EventAttributeFormat, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type FacilityType, FacilityTypeSchema, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCountry, type GasIDAttributeOriginMunicipality, type GasIDAttributeRecycler, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, type GasIDReference, GasIDReferenceSchema, type GasIDSummary, type HexColor, HexColorSchema, type Hours, HoursSchema, type IpfsUri, IpfsUriSchema, type IsoAdministrativeDivisionCode, IsoAdministrativeDivisionCodeSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoDate, IsoDateSchema, type IsoTimestamp, IsoTimestampSchema, type Keccak256Hash, Keccak256HashSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, type MassIDReferenceWithContract, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type MassIdReferenceWithContract, MassIdReferenceWithContractSchema, type Methodology, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyCompliance, MethodologyComplianceSchema, type MethodologyData, MethodologyDataSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, MethodologySchema, MethodologySchemaMeta, type Minutes, MinutesSchema, type Municipality, MunicipalitySchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCountryAttribute, OriginCountryAttributeSchema, type OriginMunicipalityAttribute, OriginMunicipalityAttributeSchema, type Participant, type ParticipantName, ParticipantNameSchema, type ParticipantRewards, ParticipantRewardsSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PrecisionLevel, type PreventedEmissionsCalculation, type ReceiptIdentity, ReceiptIdentitySchema, type RecordCreator, type RecordEnvironment, RecordEnvironmentSchema, type RecordRelationship, type RecordRelationshipType, RecordRelationshipTypeSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCountry, type RecycledIDAttributeOriginMunicipality, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecycler, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, type RecycledIDSummary, type RecyclerAttribute, RecyclerAttributeSchema, type RewardAllocation, RewardAllocationSchema, type SchemaInfo, 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 TokenSymbol, TokenSymbolSchema, type UnixTimestamp, UnixTimestampSchema, type Uuid, UuidSchema, type WasteClassification, WasteClassificationSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, createAttributeMap, createReceiptCertificateSchema, createReceiptCollectionSchema, createReceiptCreditSchema, getSchemaBaseUrl, getSchemaVersionOrDefault, nearlyEqual, uniqueArrayItems, uniqueBy, validateAttributeValue, validateAttributesForItems, validateCountMatches, validateDateAttribute, validateSummaryListMatchesData, validateTotalMatches };
|