@carrot-foundation/schemas 0.1.37 → 0.1.39

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.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<{
@@ -591,6 +591,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
591
591
  "mass-id-audit": "mass-id-audit";
592
592
  methodology: "methodology";
593
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>;
@@ -1251,6 +1252,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
1251
1252
  "mass-id-audit": "mass-id-audit";
1252
1253
  methodology: "methodology";
1253
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>;
@@ -1812,6 +1814,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
1812
1814
  "mass-id-audit": "mass-id-audit";
1813
1815
  methodology: "methodology";
1814
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>;
@@ -2066,280 +2069,304 @@ declare const CreditPurchaseReceiptAttributesSchema: z.ZodArray<z.ZodUnion<reado
2066
2069
  }, z.core.$strict>]>>;
2067
2070
  type CreditPurchaseReceiptAttributes = z.infer<typeof CreditPurchaseReceiptAttributesSchema>;
2068
2071
 
2069
- declare const CreditPurchaseReceiptSummarySchema: z.ZodObject<{
2070
- total_usdc_amount: z.ZodNumber;
2071
- total_credits: z.ZodNumber;
2072
- total_certificates: z.ZodNumber;
2073
- purchase_date: z.ZodISODate;
2074
- credit_symbols: z.ZodArray<z.ZodString>;
2075
- certificate_types: z.ZodArray<z.ZodEnum<{
2076
- RecycledID: "RecycledID";
2077
- GasID: "GasID";
2078
- }>>;
2079
- collection_slugs: z.ZodArray<z.ZodString>;
2080
- }, z.core.$strict>;
2081
- type CreditPurchaseReceiptSummary = z.infer<typeof CreditPurchaseReceiptSummarySchema>;
2082
- declare const CreditPurchaseReceiptIdentitySchema: z.ZodObject<{
2072
+ declare const ParticipantSchema: z.ZodObject<{
2073
+ id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2083
2074
  name: z.ZodString;
2084
- external_id: z.ZodUUID;
2085
- external_url: z.ZodURL;
2086
- }, z.core.$strict>;
2087
- type CreditPurchaseReceiptIdentity = z.infer<typeof CreditPurchaseReceiptIdentitySchema>;
2088
- declare const CreditPurchaseReceiptReceiverSchema: z.ZodObject<{
2089
- wallet_address: z.ZodString;
2090
- identity: z.ZodOptional<z.ZodObject<{
2091
- name: z.ZodString;
2092
- external_id: z.ZodUUID;
2093
- external_url: z.ZodURL;
2094
- }, z.core.$strict>>;
2075
+ roles: z.ZodArray<z.ZodString>;
2095
2076
  }, z.core.$strict>;
2096
- type CreditPurchaseReceiptReceiver = z.infer<typeof CreditPurchaseReceiptReceiverSchema>;
2097
- declare const CreditPurchaseReceiptBuyerSchema: z.ZodObject<{
2098
- buyer_id: z.ZodUUID;
2099
- identity: z.ZodOptional<z.ZodObject<{
2100
- name: z.ZodString;
2101
- external_id: z.ZodUUID;
2102
- external_url: z.ZodURL;
2103
- }, z.core.$strict>>;
2077
+ type Participant = z.infer<typeof ParticipantSchema>;
2078
+
2079
+ declare const PrecisionLevelSchema: z.ZodEnum<{
2080
+ exact: "exact";
2081
+ neighborhood: "neighborhood";
2082
+ city: "city";
2083
+ region: "region";
2084
+ country: "country";
2085
+ }>;
2086
+ type PrecisionLevel = z.infer<typeof PrecisionLevelSchema>;
2087
+ declare const CoordinatesSchema: z.ZodObject<{
2088
+ latitude: z.ZodNumber;
2089
+ longitude: z.ZodNumber;
2090
+ precision_level: z.ZodEnum<{
2091
+ exact: "exact";
2092
+ neighborhood: "neighborhood";
2093
+ city: "city";
2094
+ region: "region";
2095
+ country: "country";
2096
+ }>;
2104
2097
  }, z.core.$strict>;
2105
- type CreditPurchaseReceiptBuyer = z.infer<typeof CreditPurchaseReceiptBuyerSchema>;
2106
- declare const CreditPurchaseReceiptPartiesSchema: z.ZodObject<{
2107
- payer: z.ZodString;
2108
- receiver: z.ZodObject<{
2109
- wallet_address: z.ZodString;
2110
- identity: z.ZodOptional<z.ZodObject<{
2111
- name: z.ZodString;
2112
- external_id: z.ZodUUID;
2113
- external_url: z.ZodURL;
2114
- }, z.core.$strict>>;
2098
+ type Coordinates = z.infer<typeof CoordinatesSchema>;
2099
+ declare const LocationSchema: z.ZodObject<{
2100
+ id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2101
+ municipality: z.ZodString;
2102
+ administrative_division: z.ZodString;
2103
+ administrative_division_code: z.ZodOptional<z.ZodString>;
2104
+ country: z.ZodString;
2105
+ country_code: z.ZodString;
2106
+ responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2107
+ coordinates: z.ZodObject<{
2108
+ latitude: z.ZodNumber;
2109
+ longitude: z.ZodNumber;
2110
+ precision_level: z.ZodEnum<{
2111
+ exact: "exact";
2112
+ neighborhood: "neighborhood";
2113
+ city: "city";
2114
+ region: "region";
2115
+ country: "country";
2116
+ }>;
2115
2117
  }, z.core.$strict>;
2116
- buyer: z.ZodOptional<z.ZodObject<{
2117
- buyer_id: z.ZodUUID;
2118
- identity: z.ZodOptional<z.ZodObject<{
2119
- name: z.ZodString;
2120
- external_id: z.ZodUUID;
2121
- external_url: z.ZodURL;
2122
- }, z.core.$strict>>;
2123
- }, z.core.$strict>>;
2118
+ facility_type: z.ZodOptional<z.ZodEnum<{
2119
+ "Collection Point": "Collection Point";
2120
+ "Recycling Facility": "Recycling Facility";
2121
+ "Administrative Office": "Administrative Office";
2122
+ Other: "Other";
2123
+ }>>;
2124
2124
  }, z.core.$strict>;
2125
- type CreditPurchaseReceiptParties = z.infer<typeof CreditPurchaseReceiptPartiesSchema>;
2126
- declare const CreditPurchaseReceiptCollectionSchema: z.ZodObject<{
2127
- slug: z.ZodString;
2125
+ type Location = z.infer<typeof LocationSchema>;
2126
+
2127
+ declare const MethodologyComplianceSchema: z.ZodEnum<{
2128
+ PASSED: "PASSED";
2129
+ FAILED: "FAILED";
2130
+ }>;
2131
+ type MethodologyCompliance = z.infer<typeof MethodologyComplianceSchema>;
2132
+ declare const AuditReferenceSchema: z.ZodObject<{
2133
+ date: z.ZodISODate;
2128
2134
  external_id: z.ZodUUID;
2129
- name: z.ZodString;
2130
2135
  external_url: z.ZodURL;
2131
- uri: z.ZodString;
2132
- credit_amount: z.ZodNumber;
2136
+ methodology_compliance: z.ZodEnum<{
2137
+ PASSED: "PASSED";
2138
+ FAILED: "FAILED";
2139
+ }>;
2140
+ rules_executed: z.ZodNumber;
2141
+ report: z.ZodString;
2133
2142
  }, z.core.$strict>;
2134
- type CreditPurchaseReceiptCollection = z.infer<typeof CreditPurchaseReceiptCollectionSchema>;
2135
- declare const CreditPurchaseReceiptCreditSchema: z.ZodObject<{
2136
- slug: z.ZodString;
2137
- symbol: z.ZodString;
2143
+ type AuditReference = z.infer<typeof AuditReferenceSchema>;
2144
+
2145
+ declare const GasIDReferenceSchema: z.ZodObject<{
2138
2146
  external_id: z.ZodUUID;
2147
+ token_id: z.ZodString;
2139
2148
  external_url: z.ZodURL;
2140
2149
  uri: z.ZodString;
2141
- smart_contract: z.ZodObject<{
2142
- address: z.ZodString;
2143
- chain_id: z.ZodNumber;
2144
- network_name: z.ZodString;
2145
- }, z.core.$strict>;
2146
- purchase_amount: z.ZodNumber;
2147
- retirement_amount: z.ZodOptional<z.ZodNumber>;
2148
2150
  }, z.core.$strict>;
2149
- type CreditPurchaseReceiptCredit = z.infer<typeof CreditPurchaseReceiptCreditSchema>;
2150
- declare const MassIDReferenceWithContractSchema: z.ZodObject<{
2151
- external_url: z.ZodURL;
2151
+ type GasIDReference = z.infer<typeof GasIDReferenceSchema>;
2152
+
2153
+ declare const MassIDReferenceSchema: z.ZodObject<{
2154
+ external_id: z.ZodUUID;
2152
2155
  token_id: z.ZodString;
2156
+ external_url: z.ZodURL;
2153
2157
  uri: z.ZodString;
2154
- external_id: z.ZodUUID;
2155
- smart_contract: z.ZodObject<{
2156
- address: z.ZodString;
2157
- chain_id: z.ZodNumber;
2158
- network_name: z.ZodString;
2159
- }, z.core.$strict>;
2160
2158
  }, z.core.$strict>;
2161
- type MassIDReferenceWithContract = z.infer<typeof MassIDReferenceWithContractSchema>;
2162
- declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
2163
- token_id: z.ZodString;
2164
- type: z.ZodEnum<{
2165
- RecycledID: "RecycledID";
2166
- GasID: "GasID";
2167
- }>;
2159
+ type MassIDReference = z.infer<typeof MassIDReferenceSchema>;
2160
+
2161
+ declare const MethodologyReferenceSchema: z.ZodObject<{
2168
2162
  external_id: z.ZodUUID;
2163
+ name: z.ZodString;
2164
+ version: z.ZodString;
2169
2165
  external_url: z.ZodURL;
2170
- uri: z.ZodString;
2171
- smart_contract: z.ZodObject<{
2172
- address: z.ZodString;
2173
- chain_id: z.ZodNumber;
2174
- network_name: z.ZodString;
2175
- }, z.core.$strict>;
2176
- collection_slug: z.ZodString;
2177
- total_amount: z.ZodNumber;
2178
- purchased_amount: z.ZodNumber;
2179
- retired_amount: z.ZodNumber;
2180
- credit_slug: z.ZodString;
2181
- mass_id: z.ZodObject<{
2182
- external_url: z.ZodURL;
2183
- token_id: z.ZodString;
2184
- uri: z.ZodString;
2185
- external_id: z.ZodUUID;
2186
- smart_contract: z.ZodObject<{
2187
- address: z.ZodString;
2188
- chain_id: z.ZodNumber;
2189
- network_name: z.ZodString;
2190
- }, z.core.$strict>;
2191
- }, z.core.$strict>;
2166
+ uri: z.ZodOptional<z.ZodString>;
2192
2167
  }, z.core.$strict>;
2193
- type CreditPurchaseReceiptCertificate = z.infer<typeof CreditPurchaseReceiptCertificateSchema>;
2194
- declare const CreditPurchaseReceiptParticipantRewardSchema: z.ZodObject<{
2195
- id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2196
- participant_name: z.ZodString;
2197
- roles: z.ZodArray<z.ZodString>;
2198
- usdc_amount: z.ZodNumber;
2168
+ type MethodologyReference = z.infer<typeof MethodologyReferenceSchema>;
2169
+
2170
+ declare const WasteClassificationSchema: z.ZodObject<{
2171
+ primary_type: z.ZodString;
2172
+ subtype: z.ZodString;
2173
+ net_weight_kg: z.ZodNumber;
2199
2174
  }, z.core.$strict>;
2200
- type CreditPurchaseReceiptParticipantReward = z.infer<typeof CreditPurchaseReceiptParticipantRewardSchema>;
2201
- declare const CreditPurchaseReceiptRetirementReceiptSchema: z.ZodObject<{
2202
- token_id: z.ZodString;
2203
- external_id: z.ZodUUID;
2175
+ type WasteClassification = z.infer<typeof WasteClassificationSchema>;
2176
+ declare const AccreditedParticipantSchema: z.ZodObject<{
2177
+ participant_id: z.ZodUUID;
2178
+ name: z.ZodString;
2179
+ role: z.ZodString;
2180
+ accreditation_id: z.ZodUUID;
2204
2181
  external_url: z.ZodURL;
2205
- uri: z.ZodString;
2206
- smart_contract: z.ZodObject<{
2207
- address: z.ZodString;
2208
- chain_id: z.ZodNumber;
2209
- network_name: z.ZodString;
2210
- }, z.core.$strict>;
2211
2182
  }, z.core.$strict>;
2212
- type CreditPurchaseReceiptRetirementReceipt = z.infer<typeof CreditPurchaseReceiptRetirementReceiptSchema>;
2213
- declare const CreditPurchaseReceiptRetirementSchema: z.ZodObject<{
2214
- beneficiary_id: z.ZodUUID;
2215
- retirement_receipt: z.ZodOptional<z.ZodObject<{
2216
- token_id: z.ZodString;
2217
- external_id: z.ZodUUID;
2218
- external_url: z.ZodURL;
2219
- uri: z.ZodString;
2220
- smart_contract: z.ZodObject<{
2221
- address: z.ZodString;
2222
- chain_id: z.ZodNumber;
2223
- network_name: z.ZodString;
2224
- }, z.core.$strict>;
2183
+ type AccreditedParticipant = z.infer<typeof AccreditedParticipantSchema>;
2184
+ declare const AccreditedParticipantsSchema: z.ZodArray<z.ZodObject<{
2185
+ participant_id: z.ZodUUID;
2186
+ name: z.ZodString;
2187
+ role: z.ZodString;
2188
+ accreditation_id: z.ZodUUID;
2189
+ external_url: z.ZodURL;
2190
+ }, z.core.$strict>>;
2191
+ type AccreditedParticipants = z.infer<typeof AccreditedParticipantsSchema>;
2192
+ declare const RewardAllocationSchema: z.ZodObject<{
2193
+ participant_id: z.ZodUUID;
2194
+ participant_name: z.ZodString;
2195
+ role: z.ZodString;
2196
+ reward_percentage: z.ZodNumber;
2197
+ large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
2198
+ effective_percentage: z.ZodNumber;
2199
+ }, z.core.$strict>;
2200
+ type RewardAllocation = z.infer<typeof RewardAllocationSchema>;
2201
+ declare const DistributionNotesSchema: z.ZodObject<{
2202
+ large_business_discount_applied: z.ZodOptional<z.ZodString>;
2203
+ redirected_rewards: z.ZodOptional<z.ZodString>;
2204
+ }, z.core.$strict>;
2205
+ type DistributionNotes = z.infer<typeof DistributionNotesSchema>;
2206
+ declare const ParticipantRewardsSchema: z.ZodObject<{
2207
+ distribution_basis: z.ZodString;
2208
+ reward_allocations: z.ZodArray<z.ZodObject<{
2209
+ participant_id: z.ZodUUID;
2210
+ participant_name: z.ZodString;
2211
+ role: z.ZodString;
2212
+ reward_percentage: z.ZodNumber;
2213
+ large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
2214
+ effective_percentage: z.ZodNumber;
2215
+ }, z.core.$strict>>;
2216
+ distribution_notes: z.ZodOptional<z.ZodObject<{
2217
+ large_business_discount_applied: z.ZodOptional<z.ZodString>;
2218
+ redirected_rewards: z.ZodOptional<z.ZodString>;
2225
2219
  }, z.core.$strict>>;
2226
2220
  }, z.core.$strict>;
2227
- type CreditPurchaseReceiptRetirement = z.infer<typeof CreditPurchaseReceiptRetirementSchema>;
2228
- declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
2229
- summary: z.ZodObject<{
2230
- total_usdc_amount: z.ZodNumber;
2231
- total_credits: z.ZodNumber;
2232
- total_certificates: z.ZodNumber;
2233
- purchase_date: z.ZodISODate;
2234
- credit_symbols: z.ZodArray<z.ZodString>;
2235
- certificate_types: z.ZodArray<z.ZodEnum<{
2221
+ type ParticipantRewards = z.infer<typeof ParticipantRewardsSchema>;
2222
+
2223
+ declare const SchemaInfoSchema: z.ZodObject<{
2224
+ hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2225
+ type: z.ZodEnum<{
2226
+ MassID: "MassID";
2227
+ "MassID Audit": "MassID Audit";
2228
+ RecycledID: "RecycledID";
2229
+ GasID: "GasID";
2230
+ CreditPurchaseReceipt: "CreditPurchaseReceipt";
2231
+ CreditRetirementReceipt: "CreditRetirementReceipt";
2232
+ Methodology: "Methodology";
2233
+ Credit: "Credit";
2234
+ Collection: "Collection";
2235
+ }>;
2236
+ version: z.ZodString;
2237
+ }, z.core.$strict>;
2238
+ type SchemaInfo = z.infer<typeof SchemaInfoSchema>;
2239
+ declare const RecordCreatorSchema: z.ZodObject<{
2240
+ name: z.ZodString;
2241
+ id: z.ZodUUID;
2242
+ }, z.core.$strict>;
2243
+ type RecordCreator = z.infer<typeof RecordCreatorSchema>;
2244
+ declare const RecordRelationshipSchema: z.ZodObject<{
2245
+ target_uri: z.ZodString;
2246
+ type: z.ZodEnum<{
2247
+ collection: "collection";
2248
+ credit: "credit";
2249
+ "gas-id": "gas-id";
2250
+ "mass-id": "mass-id";
2251
+ "mass-id-audit": "mass-id-audit";
2252
+ methodology: "methodology";
2253
+ "credit-purchase-receipt": "credit-purchase-receipt";
2254
+ "credit-retirement-receipt": "credit-retirement-receipt";
2255
+ "recycled-id": "recycled-id";
2256
+ }>;
2257
+ description: z.ZodOptional<z.ZodString>;
2258
+ }, z.core.$strict>;
2259
+ type RecordRelationship = z.infer<typeof RecordRelationshipSchema>;
2260
+ declare const RecordEnvironmentSchema: z.ZodObject<{
2261
+ blockchain_network: z.ZodEnum<{
2262
+ mainnet: "mainnet";
2263
+ testnet: "testnet";
2264
+ }>;
2265
+ deployment: z.ZodEnum<{
2266
+ production: "production";
2267
+ development: "development";
2268
+ testing: "testing";
2269
+ }>;
2270
+ data_set_name: z.ZodEnum<{
2271
+ TEST: "TEST";
2272
+ PROD: "PROD";
2273
+ }>;
2274
+ }, z.core.$strict>;
2275
+ type RecordEnvironment = z.infer<typeof RecordEnvironmentSchema>;
2276
+ declare const BaseIpfsSchema: z.ZodObject<{
2277
+ $schema: z.ZodURL;
2278
+ schema: z.ZodObject<{
2279
+ hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2280
+ type: z.ZodEnum<{
2281
+ MassID: "MassID";
2282
+ "MassID Audit": "MassID Audit";
2236
2283
  RecycledID: "RecycledID";
2237
2284
  GasID: "GasID";
2238
- }>>;
2239
- collection_slugs: z.ZodArray<z.ZodString>;
2240
- }, z.core.$strict>;
2241
- parties: z.ZodObject<{
2242
- payer: z.ZodString;
2243
- receiver: z.ZodObject<{
2244
- wallet_address: z.ZodString;
2245
- identity: z.ZodOptional<z.ZodObject<{
2246
- name: z.ZodString;
2247
- external_id: z.ZodUUID;
2248
- external_url: z.ZodURL;
2249
- }, z.core.$strict>>;
2250
- }, z.core.$strict>;
2251
- buyer: z.ZodOptional<z.ZodObject<{
2252
- buyer_id: z.ZodUUID;
2253
- identity: z.ZodOptional<z.ZodObject<{
2254
- name: z.ZodString;
2255
- external_id: z.ZodUUID;
2256
- external_url: z.ZodURL;
2257
- }, z.core.$strict>>;
2258
- }, z.core.$strict>>;
2285
+ CreditPurchaseReceipt: "CreditPurchaseReceipt";
2286
+ CreditRetirementReceipt: "CreditRetirementReceipt";
2287
+ Methodology: "Methodology";
2288
+ Credit: "Credit";
2289
+ Collection: "Collection";
2290
+ }>;
2291
+ version: z.ZodString;
2259
2292
  }, z.core.$strict>;
2260
- collections: z.ZodArray<z.ZodObject<{
2261
- slug: z.ZodString;
2262
- external_id: z.ZodUUID;
2293
+ created_at: z.ZodISODateTime;
2294
+ external_id: z.ZodUUID;
2295
+ external_url: z.ZodURL;
2296
+ original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2297
+ content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2298
+ creator: z.ZodOptional<z.ZodObject<{
2263
2299
  name: z.ZodString;
2264
- external_url: z.ZodURL;
2265
- uri: z.ZodString;
2266
- credit_amount: z.ZodNumber;
2267
- }, z.core.$strict>>;
2268
- credits: z.ZodArray<z.ZodObject<{
2269
- slug: z.ZodString;
2270
- symbol: z.ZodString;
2271
- external_id: z.ZodUUID;
2272
- external_url: z.ZodURL;
2273
- uri: z.ZodString;
2274
- smart_contract: z.ZodObject<{
2275
- address: z.ZodString;
2276
- chain_id: z.ZodNumber;
2277
- network_name: z.ZodString;
2278
- }, z.core.$strict>;
2279
- purchase_amount: z.ZodNumber;
2280
- retirement_amount: z.ZodOptional<z.ZodNumber>;
2300
+ id: z.ZodUUID;
2281
2301
  }, z.core.$strict>>;
2282
- certificates: z.ZodArray<z.ZodObject<{
2283
- token_id: z.ZodString;
2302
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2303
+ target_uri: z.ZodString;
2284
2304
  type: z.ZodEnum<{
2285
- RecycledID: "RecycledID";
2286
- GasID: "GasID";
2305
+ collection: "collection";
2306
+ credit: "credit";
2307
+ "gas-id": "gas-id";
2308
+ "mass-id": "mass-id";
2309
+ "mass-id-audit": "mass-id-audit";
2310
+ methodology: "methodology";
2311
+ "credit-purchase-receipt": "credit-purchase-receipt";
2312
+ "credit-retirement-receipt": "credit-retirement-receipt";
2313
+ "recycled-id": "recycled-id";
2314
+ }>;
2315
+ description: z.ZodOptional<z.ZodString>;
2316
+ }, z.core.$strict>>>;
2317
+ environment: z.ZodOptional<z.ZodObject<{
2318
+ blockchain_network: z.ZodEnum<{
2319
+ mainnet: "mainnet";
2320
+ testnet: "testnet";
2321
+ }>;
2322
+ deployment: z.ZodEnum<{
2323
+ production: "production";
2324
+ development: "development";
2325
+ testing: "testing";
2326
+ }>;
2327
+ data_set_name: z.ZodEnum<{
2328
+ TEST: "TEST";
2329
+ PROD: "PROD";
2287
2330
  }>;
2288
- external_id: z.ZodUUID;
2289
- external_url: z.ZodURL;
2290
- uri: z.ZodString;
2291
- smart_contract: z.ZodObject<{
2292
- address: z.ZodString;
2293
- chain_id: z.ZodNumber;
2294
- network_name: z.ZodString;
2295
- }, z.core.$strict>;
2296
- collection_slug: z.ZodString;
2297
- total_amount: z.ZodNumber;
2298
- purchased_amount: z.ZodNumber;
2299
- retired_amount: z.ZodNumber;
2300
- credit_slug: z.ZodString;
2301
- mass_id: z.ZodObject<{
2302
- external_url: z.ZodURL;
2303
- token_id: z.ZodString;
2304
- uri: z.ZodString;
2305
- external_id: z.ZodUUID;
2306
- smart_contract: z.ZodObject<{
2307
- address: z.ZodString;
2308
- chain_id: z.ZodNumber;
2309
- network_name: z.ZodString;
2310
- }, z.core.$strict>;
2311
- }, z.core.$strict>;
2312
- }, z.core.$strict>>;
2313
- participant_rewards: z.ZodArray<z.ZodObject<{
2314
- id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2315
- participant_name: z.ZodString;
2316
- roles: z.ZodArray<z.ZodString>;
2317
- usdc_amount: z.ZodNumber;
2318
- }, z.core.$strict>>;
2319
- retirement: z.ZodOptional<z.ZodObject<{
2320
- beneficiary_id: z.ZodUUID;
2321
- retirement_receipt: z.ZodOptional<z.ZodObject<{
2322
- token_id: z.ZodString;
2323
- external_id: z.ZodUUID;
2324
- external_url: z.ZodURL;
2325
- uri: z.ZodString;
2326
- smart_contract: z.ZodObject<{
2327
- address: z.ZodString;
2328
- chain_id: z.ZodNumber;
2329
- network_name: z.ZodString;
2330
- }, z.core.$strict>;
2331
- }, z.core.$strict>>;
2332
2331
  }, z.core.$strict>>;
2332
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2333
2333
  }, z.core.$strict>;
2334
- type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>;
2334
+ type BaseIpfs = z.infer<typeof BaseIpfsSchema>;
2335
2335
 
2336
- declare const CreditPurchaseReceiptIpfsSchemaMeta: {
2337
- readonly title: "CreditPurchaseReceipt NFT IPFS Record";
2338
- readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including attributes and credit purchase data";
2339
- readonly $id: string;
2340
- readonly version: string;
2341
- };
2342
- declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2336
+ declare const NftSchemaTypeSchema: z.ZodEnum<{
2337
+ MassID: "MassID";
2338
+ RecycledID: "RecycledID";
2339
+ GasID: "GasID";
2340
+ CreditPurchaseReceipt: "CreditPurchaseReceipt";
2341
+ CreditRetirementReceipt: "CreditRetirementReceipt";
2342
+ }>;
2343
+ type NftSchemaType = z.infer<typeof NftSchemaTypeSchema>;
2344
+ declare const BlockchainReferenceSchema: z.ZodObject<{
2345
+ smart_contract_address: z.ZodString;
2346
+ chain_id: z.ZodNumber;
2347
+ network_name: z.ZodString;
2348
+ token_id: z.ZodString;
2349
+ }, z.core.$strict>;
2350
+ type BlockchainReference = z.infer<typeof BlockchainReferenceSchema>;
2351
+ declare const ExternalLinkSchema: z.ZodObject<{
2352
+ label: z.ZodString;
2353
+ url: z.ZodURL;
2354
+ description: z.ZodOptional<z.ZodString>;
2355
+ }, z.core.$strict>;
2356
+ type ExternalLink = z.infer<typeof ExternalLinkSchema>;
2357
+ declare const NftAttributeSchema: z.ZodObject<{
2358
+ trait_type: z.ZodString;
2359
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2360
+ display_type: z.ZodOptional<z.ZodEnum<{
2361
+ number: "number";
2362
+ date: "date";
2363
+ boost_number: "boost_number";
2364
+ boost_percentage: "boost_percentage";
2365
+ }>>;
2366
+ max_value: z.ZodOptional<z.ZodNumber>;
2367
+ }, z.core.$strict>;
2368
+ type NftAttribute = z.infer<typeof NftAttributeSchema>;
2369
+ declare const NftIpfsSchema: z.ZodObject<{
2343
2370
  $schema: z.ZodURL;
2344
2371
  created_at: z.ZodISODateTime;
2345
2372
  external_id: z.ZodUUID;
@@ -2360,6 +2387,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2360
2387
  "mass-id-audit": "mass-id-audit";
2361
2388
  methodology: "methodology";
2362
2389
  "credit-purchase-receipt": "credit-purchase-receipt";
2390
+ "credit-retirement-receipt": "credit-retirement-receipt";
2363
2391
  "recycled-id": "recycled-id";
2364
2392
  }>;
2365
2393
  description: z.ZodOptional<z.ZodString>;
@@ -2379,6 +2407,18 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2379
2407
  PROD: "PROD";
2380
2408
  }>;
2381
2409
  }, z.core.$strict>>;
2410
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2411
+ schema: z.ZodObject<{
2412
+ hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2413
+ version: z.ZodString;
2414
+ type: z.ZodEnum<{
2415
+ MassID: "MassID";
2416
+ RecycledID: "RecycledID";
2417
+ GasID: "GasID";
2418
+ CreditPurchaseReceipt: "CreditPurchaseReceipt";
2419
+ CreditRetirementReceipt: "CreditRetirementReceipt";
2420
+ }>;
2421
+ }, z.core.$strict>;
2382
2422
  blockchain: z.ZodObject<{
2383
2423
  smart_contract_address: z.ZodString;
2384
2424
  chain_id: z.ZodNumber;
@@ -2396,741 +2436,691 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2396
2436
  url: z.ZodURL;
2397
2437
  description: z.ZodOptional<z.ZodString>;
2398
2438
  }, z.core.$strict>>>;
2399
- schema: z.ZodObject<{
2400
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2401
- version: z.ZodString;
2402
- type: z.ZodLiteral<"CreditPurchaseReceipt">;
2403
- }, z.core.$strict>;
2404
- attributes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2405
- max_value: z.ZodOptional<z.ZodNumber>;
2439
+ attributes: z.ZodArray<z.ZodObject<{
2406
2440
  trait_type: z.ZodString;
2407
- value: z.ZodNumber;
2408
- display_type: z.ZodLiteral<"number">;
2409
- }, z.core.$strict>, z.ZodObject<{
2410
- max_value: z.ZodOptional<z.ZodNumber>;
2411
- trait_type: z.ZodLiteral<"Total Credits Purchased">;
2412
- value: z.ZodNumber;
2413
- display_type: z.ZodLiteral<"number">;
2414
- }, z.core.$strict>, z.ZodObject<{
2415
- max_value: z.ZodOptional<z.ZodNumber>;
2416
- trait_type: z.ZodLiteral<"Total USDC Amount">;
2417
- value: z.ZodNumber;
2418
- display_type: z.ZodLiteral<"number">;
2419
- }, z.core.$strict>, z.ZodObject<{
2420
- max_value: z.ZodOptional<z.ZodNumber>;
2421
- trait_type: z.ZodLiteral<"Purchase Date">;
2422
- value: z.ZodNumber;
2423
- display_type: z.ZodLiteral<"date">;
2424
- }, z.core.$strict>, z.ZodObject<{
2425
- max_value: z.ZodOptional<z.ZodNumber>;
2426
- trait_type: z.ZodLiteral<"Certificates Purchased">;
2427
- value: z.ZodNumber;
2428
- display_type: z.ZodLiteral<"number">;
2429
- }, z.core.$strict>, z.ZodObject<{
2430
- trait_type: z.ZodLiteral<"Receiver">;
2431
- value: z.ZodString;
2432
- }, z.core.$strict>, z.ZodObject<{
2441
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2442
+ display_type: z.ZodOptional<z.ZodEnum<{
2443
+ number: "number";
2444
+ date: "date";
2445
+ boost_number: "boost_number";
2446
+ boost_percentage: "boost_percentage";
2447
+ }>>;
2433
2448
  max_value: z.ZodOptional<z.ZodNumber>;
2434
- trait_type: z.ZodString;
2435
- value: z.ZodNumber;
2436
- display_type: z.ZodLiteral<"number">;
2437
- }, z.core.$strict>]>>;
2438
- data: z.ZodObject<{
2439
- summary: z.ZodObject<{
2440
- total_usdc_amount: z.ZodNumber;
2441
- total_credits: z.ZodNumber;
2442
- total_certificates: z.ZodNumber;
2443
- purchase_date: z.ZodISODate;
2444
- credit_symbols: z.ZodArray<z.ZodString>;
2445
- certificate_types: z.ZodArray<z.ZodEnum<{
2446
- RecycledID: "RecycledID";
2447
- GasID: "GasID";
2448
- }>>;
2449
- collection_slugs: z.ZodArray<z.ZodString>;
2450
- }, z.core.$strict>;
2451
- parties: z.ZodObject<{
2452
- payer: z.ZodString;
2453
- receiver: z.ZodObject<{
2454
- wallet_address: z.ZodString;
2455
- identity: z.ZodOptional<z.ZodObject<{
2456
- name: z.ZodString;
2457
- external_id: z.ZodUUID;
2458
- external_url: z.ZodURL;
2459
- }, z.core.$strict>>;
2460
- }, z.core.$strict>;
2461
- buyer: z.ZodOptional<z.ZodObject<{
2462
- buyer_id: z.ZodUUID;
2463
- identity: z.ZodOptional<z.ZodObject<{
2464
- name: z.ZodString;
2465
- external_id: z.ZodUUID;
2466
- external_url: z.ZodURL;
2467
- }, z.core.$strict>>;
2468
- }, z.core.$strict>>;
2469
- }, z.core.$strict>;
2470
- collections: z.ZodArray<z.ZodObject<{
2471
- slug: z.ZodString;
2472
- external_id: z.ZodUUID;
2473
- name: z.ZodString;
2474
- external_url: z.ZodURL;
2475
- uri: z.ZodString;
2476
- credit_amount: z.ZodNumber;
2477
- }, z.core.$strict>>;
2478
- credits: z.ZodArray<z.ZodObject<{
2479
- slug: z.ZodString;
2480
- symbol: z.ZodString;
2481
- external_id: z.ZodUUID;
2482
- external_url: z.ZodURL;
2483
- uri: z.ZodString;
2484
- smart_contract: z.ZodObject<{
2485
- address: z.ZodString;
2486
- chain_id: z.ZodNumber;
2487
- network_name: z.ZodString;
2488
- }, z.core.$strict>;
2489
- purchase_amount: z.ZodNumber;
2490
- retirement_amount: z.ZodOptional<z.ZodNumber>;
2491
- }, z.core.$strict>>;
2492
- certificates: z.ZodArray<z.ZodObject<{
2493
- token_id: z.ZodString;
2494
- type: z.ZodEnum<{
2495
- RecycledID: "RecycledID";
2496
- GasID: "GasID";
2497
- }>;
2498
- external_id: z.ZodUUID;
2499
- external_url: z.ZodURL;
2500
- uri: z.ZodString;
2501
- smart_contract: z.ZodObject<{
2502
- address: z.ZodString;
2503
- chain_id: z.ZodNumber;
2504
- network_name: z.ZodString;
2505
- }, z.core.$strict>;
2506
- collection_slug: z.ZodString;
2507
- total_amount: z.ZodNumber;
2508
- purchased_amount: z.ZodNumber;
2509
- retired_amount: z.ZodNumber;
2510
- credit_slug: z.ZodString;
2511
- mass_id: z.ZodObject<{
2512
- external_url: z.ZodURL;
2513
- token_id: z.ZodString;
2514
- uri: z.ZodString;
2515
- external_id: z.ZodUUID;
2516
- smart_contract: z.ZodObject<{
2517
- address: z.ZodString;
2518
- chain_id: z.ZodNumber;
2519
- network_name: z.ZodString;
2520
- }, z.core.$strict>;
2521
- }, z.core.$strict>;
2522
- }, z.core.$strict>>;
2523
- participant_rewards: z.ZodArray<z.ZodObject<{
2524
- id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2525
- participant_name: z.ZodString;
2526
- roles: z.ZodArray<z.ZodString>;
2527
- usdc_amount: z.ZodNumber;
2528
- }, z.core.$strict>>;
2529
- retirement: z.ZodOptional<z.ZodObject<{
2530
- beneficiary_id: z.ZodUUID;
2531
- retirement_receipt: z.ZodOptional<z.ZodObject<{
2532
- token_id: z.ZodString;
2533
- external_id: z.ZodUUID;
2534
- external_url: z.ZodURL;
2535
- uri: z.ZodString;
2536
- smart_contract: z.ZodObject<{
2537
- address: z.ZodString;
2538
- chain_id: z.ZodNumber;
2539
- network_name: z.ZodString;
2540
- }, z.core.$strict>;
2541
- }, z.core.$strict>>;
2542
- }, z.core.$strict>>;
2543
- }, z.core.$strict>;
2544
- }, z.core.$strict>;
2545
- type CreditPurchaseReceiptIpfs = z.infer<typeof CreditPurchaseReceiptIpfsSchema>;
2546
-
2547
- declare const CollectionSchemaMeta: {
2548
- readonly title: "Collection IPFS Record";
2549
- readonly description: "Collection metadata stored in IPFS, extending the base schema with collection-specific fields required for NFT collection definitions in Carrot's ecosystem";
2550
- readonly $id: string;
2551
- readonly version: string;
2552
- };
2553
- declare const CollectionSchema: z.ZodObject<{
2554
- $schema: z.ZodURL;
2555
- created_at: z.ZodISODateTime;
2556
- external_id: z.ZodUUID;
2557
- external_url: z.ZodURL;
2558
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2559
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2560
- creator: z.ZodOptional<z.ZodObject<{
2561
- name: z.ZodString;
2562
- id: z.ZodUUID;
2563
- }, z.core.$strict>>;
2564
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2565
- target_uri: z.ZodString;
2566
- type: z.ZodEnum<{
2567
- collection: "collection";
2568
- credit: "credit";
2569
- "gas-id": "gas-id";
2570
- "mass-id": "mass-id";
2571
- "mass-id-audit": "mass-id-audit";
2572
- methodology: "methodology";
2573
- "credit-purchase-receipt": "credit-purchase-receipt";
2574
- "recycled-id": "recycled-id";
2575
- }>;
2576
- description: z.ZodOptional<z.ZodString>;
2577
- }, z.core.$strict>>>;
2578
- environment: z.ZodOptional<z.ZodObject<{
2579
- blockchain_network: z.ZodEnum<{
2580
- mainnet: "mainnet";
2581
- testnet: "testnet";
2582
- }>;
2583
- deployment: z.ZodEnum<{
2584
- production: "production";
2585
- development: "development";
2586
- testing: "testing";
2587
- }>;
2588
- data_set_name: z.ZodEnum<{
2589
- TEST: "TEST";
2590
- PROD: "PROD";
2591
- }>;
2592
2449
  }, z.core.$strict>>;
2593
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2594
- schema: z.ZodObject<{
2595
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2596
- version: z.ZodString;
2597
- type: z.ZodLiteral<"Collection">;
2598
- }, z.core.$strict>;
2599
- name: z.ZodString;
2600
- slug: z.ZodOptional<z.ZodString>;
2601
- image: z.ZodString;
2602
- description: z.ZodString;
2603
2450
  }, z.core.$strict>;
2604
- type Collection = z.infer<typeof CollectionSchema>;
2451
+ type NftIpfs = z.infer<typeof NftIpfsSchema>;
2605
2452
 
2606
- declare const CreditSchemaMeta: {
2607
- readonly title: "Credit IPFS Record";
2608
- readonly description: "Credit token metadata stored in IPFS, extending the base schema with ERC20-specific details";
2609
- readonly $id: string;
2610
- readonly version: string;
2611
- };
2612
- declare const CreditSchema: z.ZodObject<{
2613
- $schema: z.ZodURL;
2614
- created_at: z.ZodISODateTime;
2615
- external_id: z.ZodUUID;
2616
- external_url: z.ZodURL;
2617
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2618
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2619
- creator: z.ZodOptional<z.ZodObject<{
2620
- name: z.ZodString;
2621
- id: z.ZodUUID;
2622
- }, z.core.$strict>>;
2623
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2624
- target_uri: z.ZodString;
2625
- type: z.ZodEnum<{
2626
- collection: "collection";
2627
- credit: "credit";
2628
- "gas-id": "gas-id";
2629
- "mass-id": "mass-id";
2630
- "mass-id-audit": "mass-id-audit";
2631
- methodology: "methodology";
2632
- "credit-purchase-receipt": "credit-purchase-receipt";
2633
- "recycled-id": "recycled-id";
2634
- }>;
2635
- description: z.ZodOptional<z.ZodString>;
2636
- }, z.core.$strict>>>;
2637
- environment: z.ZodOptional<z.ZodObject<{
2638
- blockchain_network: z.ZodEnum<{
2639
- mainnet: "mainnet";
2640
- testnet: "testnet";
2641
- }>;
2642
- deployment: z.ZodEnum<{
2643
- production: "production";
2644
- development: "development";
2645
- testing: "testing";
2646
- }>;
2647
- data_set_name: z.ZodEnum<{
2648
- TEST: "TEST";
2649
- PROD: "PROD";
2650
- }>;
2651
- }, z.core.$strict>>;
2652
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2653
- schema: z.ZodObject<{
2654
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2655
- version: z.ZodString;
2656
- type: z.ZodLiteral<"Credit">;
2657
- }, z.core.$strict>;
2658
- symbol: z.ZodString;
2659
- slug: z.ZodOptional<z.ZodString>;
2660
- name: z.ZodString;
2661
- decimals: z.ZodNumber;
2662
- image: z.ZodString;
2663
- description: z.ZodString;
2453
+ declare const UuidSchema: z.ZodUUID;
2454
+ type Uuid = z.infer<typeof UuidSchema>;
2455
+ declare const EthereumAddressSchema: z.ZodString;
2456
+ type EthereumAddress = z.infer<typeof EthereumAddressSchema>;
2457
+ declare const IsoTimestampSchema: z.ZodISODateTime;
2458
+ type IsoTimestamp = z.infer<typeof IsoTimestampSchema>;
2459
+ declare const IsoDateSchema: z.ZodISODate;
2460
+ type IsoDate = z.infer<typeof IsoDateSchema>;
2461
+ declare const UnixTimestampSchema: z.ZodNumber;
2462
+ type UnixTimestamp = z.infer<typeof UnixTimestampSchema>;
2463
+ declare const IsoCountryCodeSchema: z.ZodString;
2464
+ type IsoCountryCode = z.infer<typeof IsoCountryCodeSchema>;
2465
+ declare const IsoAdministrativeDivisionCodeSchema: z.ZodString;
2466
+ type IsoAdministrativeDivisionCode = z.infer<typeof IsoAdministrativeDivisionCodeSchema>;
2467
+ declare const LatitudeSchema: z.ZodNumber;
2468
+ type Latitude = z.infer<typeof LatitudeSchema>;
2469
+ declare const LongitudeSchema: z.ZodNumber;
2470
+ type Longitude = z.infer<typeof LongitudeSchema>;
2471
+ declare const WeightKgSchema: z.ZodNumber;
2472
+ type WeightKg = z.infer<typeof WeightKgSchema>;
2473
+ declare const NonEmptyStringSchema: z.ZodString;
2474
+ type NonEmptyString = z.infer<typeof NonEmptyStringSchema>;
2475
+ declare const MunicipalitySchema: z.ZodString;
2476
+ type Municipality = z.infer<typeof MunicipalitySchema>;
2477
+ declare const AdministrativeDivisionSchema: z.ZodString;
2478
+ type AdministrativeDivision = z.infer<typeof AdministrativeDivisionSchema>;
2479
+ declare const CountryNameSchema: z.ZodString;
2480
+ type CountryName = z.infer<typeof CountryNameSchema>;
2481
+ declare const CollectionNameSchema: z.ZodString;
2482
+ type CollectionName = z.infer<typeof CollectionNameSchema>;
2483
+ declare const MethodologyNameSchema: z.ZodString;
2484
+ type MethodologyName = z.infer<typeof MethodologyNameSchema>;
2485
+ declare const StringifiedTokenIdSchema: z.ZodString;
2486
+ type StringifiedTokenId = z.infer<typeof StringifiedTokenIdSchema>;
2487
+ declare const SlugSchema: z.ZodString;
2488
+ type Slug = z.infer<typeof SlugSchema>;
2489
+ declare const CollectionSlugSchema: z.ZodString;
2490
+ type CollectionSlug = z.infer<typeof CollectionSlugSchema>;
2491
+ declare const WasteTypeSchema: z.ZodString;
2492
+ type WasteType = z.infer<typeof WasteTypeSchema>;
2493
+ declare const WasteSubtypeSchema: z.ZodString;
2494
+ type WasteSubtype = z.infer<typeof WasteSubtypeSchema>;
2495
+ declare const ParticipantRoleSchema: z.ZodString;
2496
+ type ParticipantRole = z.infer<typeof ParticipantRoleSchema>;
2497
+ declare const ParticipantNameSchema: z.ZodString;
2498
+ type ParticipantName = z.infer<typeof ParticipantNameSchema>;
2499
+ declare const FacilityTypeSchema: z.ZodEnum<{
2500
+ "Collection Point": "Collection Point";
2501
+ "Recycling Facility": "Recycling Facility";
2502
+ "Administrative Office": "Administrative Office";
2503
+ Other: "Other";
2504
+ }>;
2505
+ type FacilityType = z.infer<typeof FacilityTypeSchema>;
2506
+ declare const BlockchainChainIdSchema: z.ZodNumber;
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;
2664
2516
  }, z.core.$strict>;
2665
- type Credit = z.infer<typeof CreditSchema>;
2517
+ type SmartContract = z.infer<typeof SmartContractSchema>;
2518
+ declare const PercentageSchema: z.ZodNumber;
2519
+ type Percentage = z.infer<typeof PercentageSchema>;
2520
+ declare const NonNegativeIntegerSchema: z.ZodNumber;
2521
+ type NonNegativeInteger = z.infer<typeof NonNegativeIntegerSchema>;
2522
+ declare const PositiveIntegerSchema: z.ZodNumber;
2523
+ type PositiveInteger = z.infer<typeof PositiveIntegerSchema>;
2524
+ declare const NonNegativeFloatSchema: z.ZodNumber;
2525
+ type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
2526
+ declare const CreditTypeSchema: z.ZodString;
2527
+ type CreditType = z.infer<typeof CreditTypeSchema>;
2528
+ declare const CreditAmountSchema: z.ZodNumber;
2529
+ type CreditAmount = z.infer<typeof CreditAmountSchema>;
2530
+ declare const HoursSchema: z.ZodNumber;
2531
+ type Hours = z.infer<typeof HoursSchema>;
2532
+ declare const MinutesSchema: z.ZodNumber;
2533
+ type Minutes = z.infer<typeof MinutesSchema>;
2534
+ declare const IpfsUriSchema: z.ZodString;
2535
+ type IpfsUri = z.infer<typeof IpfsUriSchema>;
2536
+ declare const SemanticVersionSchema: z.ZodString;
2537
+ type SemanticVersion = z.infer<typeof SemanticVersionSchema>;
2538
+ declare const TokenIdSchema: z.ZodString;
2539
+ type TokenId = z.infer<typeof TokenIdSchema>;
2540
+ declare const HexColorSchema: z.ZodString;
2541
+ type HexColor = z.infer<typeof HexColorSchema>;
2542
+ declare const Sha256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
2543
+ type Sha256Hash = z.infer<typeof Sha256HashSchema>;
2544
+ declare const Keccak256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
2545
+ type Keccak256Hash = z.infer<typeof Keccak256HashSchema>;
2546
+ declare const ExternalIdSchema: z.ZodUUID;
2547
+ type ExternalId = z.infer<typeof ExternalIdSchema>;
2548
+ declare const ExternalUrlSchema: z.ZodURL;
2549
+ type ExternalUrl = z.infer<typeof ExternalUrlSchema>;
2550
+ declare const RecordSchemaTypeSchema: z.ZodEnum<{
2551
+ MassID: "MassID";
2552
+ "MassID Audit": "MassID Audit";
2553
+ RecycledID: "RecycledID";
2554
+ GasID: "GasID";
2555
+ CreditPurchaseReceipt: "CreditPurchaseReceipt";
2556
+ CreditRetirementReceipt: "CreditRetirementReceipt";
2557
+ Methodology: "Methodology";
2558
+ Credit: "Credit";
2559
+ Collection: "Collection";
2560
+ }>;
2561
+ type RecordSchemaType = z.infer<typeof RecordSchemaTypeSchema>;
2562
+ declare const TokenSymbolSchema: z.ZodString;
2563
+ type TokenSymbol = z.infer<typeof TokenSymbolSchema>;
2564
+ declare const CreditTokenSymbolSchema: z.ZodString;
2565
+ type CreditTokenSymbol = z.infer<typeof CreditTokenSymbolSchema>;
2566
+ declare const RecordRelationshipTypeSchema: z.ZodEnum<{
2567
+ collection: "collection";
2568
+ credit: "credit";
2569
+ "gas-id": "gas-id";
2570
+ "mass-id": "mass-id";
2571
+ "mass-id-audit": "mass-id-audit";
2572
+ methodology: "methodology";
2573
+ "credit-purchase-receipt": "credit-purchase-receipt";
2574
+ "credit-retirement-receipt": "credit-retirement-receipt";
2575
+ "recycled-id": "recycled-id";
2576
+ }>;
2577
+ type RecordRelationshipType = z.infer<typeof RecordRelationshipTypeSchema>;
2666
2578
 
2667
- declare const MethodologySchemaMeta: {
2668
- readonly title: "Methodology IPFS Record";
2669
- readonly description: "Methodology metadata stored in IPFS, extending the base schema with methodology data and audit rules";
2670
- readonly $id: string;
2671
- readonly version: string;
2672
- };
2673
- declare const MethodologySchema: z.ZodObject<{
2674
- $schema: z.ZodURL;
2675
- created_at: z.ZodISODateTime;
2676
- external_id: z.ZodUUID;
2677
- external_url: z.ZodURL;
2678
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2679
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2680
- creator: z.ZodOptional<z.ZodObject<{
2681
- name: z.ZodString;
2682
- id: z.ZodUUID;
2683
- }, z.core.$strict>>;
2684
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2685
- target_uri: z.ZodString;
2686
- type: z.ZodEnum<{
2687
- collection: "collection";
2688
- credit: "credit";
2689
- "gas-id": "gas-id";
2690
- "mass-id": "mass-id";
2691
- "mass-id-audit": "mass-id-audit";
2692
- methodology: "methodology";
2693
- "credit-purchase-receipt": "credit-purchase-receipt";
2694
- "recycled-id": "recycled-id";
2695
- }>;
2696
- description: z.ZodOptional<z.ZodString>;
2697
- }, z.core.$strict>>>;
2698
- environment: z.ZodOptional<z.ZodObject<{
2699
- blockchain_network: z.ZodEnum<{
2700
- mainnet: "mainnet";
2701
- testnet: "testnet";
2702
- }>;
2703
- deployment: z.ZodEnum<{
2704
- production: "production";
2705
- development: "development";
2706
- testing: "testing";
2707
- }>;
2708
- data_set_name: z.ZodEnum<{
2709
- TEST: "TEST";
2710
- PROD: "PROD";
2711
- }>;
2712
- }, z.core.$strict>>;
2713
- schema: z.ZodObject<{
2714
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2715
- version: z.ZodString;
2716
- type: z.ZodLiteral<"Methodology">;
2717
- }, z.core.$strict>;
2718
- data: z.ZodObject<{
2719
- name: z.ZodString;
2720
- short_name: z.ZodString;
2721
- slug: z.ZodString;
2722
- version: z.ZodString;
2723
- description: z.ZodString;
2724
- revision_date: z.ZodISODate;
2725
- publication_date: z.ZodISODate;
2726
- methodology_pdf: z.ZodString;
2727
- mass_id_audit_rules: z.ZodArray<z.ZodObject<{
2728
- rule_id: z.ZodUUID;
2729
- rule_slug: z.ZodString;
2730
- rule_name: z.ZodString;
2731
- description: z.ZodString;
2732
- source_code_url: z.ZodURL;
2733
- mandatory: z.ZodBoolean;
2734
- execution_order: z.ZodNumber;
2735
- }, z.core.$strict>>;
2736
- }, z.core.$strict>;
2737
- }, z.core.$strict>;
2738
- type Methodology = z.infer<typeof MethodologySchema>;
2579
+ declare function uniqueArrayItems<T extends z.ZodTypeAny>(schema: T, errorMessage?: string): z.ZodArray<T>;
2580
+ declare function uniqueBy<T extends z.ZodTypeAny, K>(schema: T, selector: (item: z.infer<T>) => K, errorMessage?: string): z.ZodArray<T>;
2739
2581
 
2740
- declare const MethodologyDataSchema: z.ZodObject<{
2741
- name: z.ZodString;
2742
- short_name: z.ZodString;
2743
- slug: z.ZodString;
2744
- version: z.ZodString;
2745
- description: z.ZodString;
2746
- revision_date: z.ZodISODate;
2747
- publication_date: z.ZodISODate;
2748
- methodology_pdf: z.ZodString;
2749
- mass_id_audit_rules: z.ZodArray<z.ZodObject<{
2750
- rule_id: z.ZodUUID;
2751
- rule_slug: z.ZodString;
2752
- rule_name: z.ZodString;
2753
- description: z.ZodString;
2754
- source_code_url: z.ZodURL;
2755
- mandatory: z.ZodBoolean;
2756
- execution_order: z.ZodNumber;
2757
- }, z.core.$strict>>;
2758
- }, z.core.$strict>;
2759
- type MethodologyData = z.infer<typeof MethodologyDataSchema>;
2582
+ declare function getSchemaBaseUrl(): string;
2583
+ declare function buildSchemaUrl(schemaPath: string): string;
2584
+ declare function getSchemaVersionOrDefault(): string;
2760
2585
 
2761
- declare const MassIDAuditSchemaMeta: {
2762
- readonly title: "MassID Audit IPFS Record";
2763
- readonly description: "MassID audit metadata stored in IPFS, extending the base schema with audit results and references";
2764
- readonly $id: string;
2765
- readonly version: string;
2766
- };
2767
- declare const MassIDAuditSchema: z.ZodObject<{
2768
- $schema: z.ZodURL;
2769
- created_at: z.ZodISODateTime;
2770
- external_id: z.ZodUUID;
2771
- external_url: z.ZodURL;
2772
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2773
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
2774
- creator: z.ZodOptional<z.ZodObject<{
2775
- name: z.ZodString;
2776
- id: z.ZodUUID;
2777
- }, z.core.$strict>>;
2778
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
2779
- target_uri: z.ZodString;
2780
- type: z.ZodEnum<{
2781
- collection: "collection";
2782
- credit: "credit";
2783
- "gas-id": "gas-id";
2784
- "mass-id": "mass-id";
2785
- "mass-id-audit": "mass-id-audit";
2786
- methodology: "methodology";
2787
- "credit-purchase-receipt": "credit-purchase-receipt";
2788
- "recycled-id": "recycled-id";
2789
- }>;
2790
- description: z.ZodOptional<z.ZodString>;
2791
- }, z.core.$strict>>>;
2792
- environment: z.ZodOptional<z.ZodObject<{
2793
- blockchain_network: z.ZodEnum<{
2794
- mainnet: "mainnet";
2795
- testnet: "testnet";
2796
- }>;
2797
- deployment: z.ZodEnum<{
2798
- production: "production";
2799
- development: "development";
2800
- testing: "testing";
2801
- }>;
2802
- data_set_name: z.ZodEnum<{
2803
- TEST: "TEST";
2804
- PROD: "PROD";
2805
- }>;
2806
- }, z.core.$strict>>;
2807
- schema: z.ZodObject<{
2808
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
2809
- version: z.ZodString;
2810
- type: z.ZodLiteral<"MassID Audit">;
2811
- }, z.core.$strict>;
2812
- data: z.ZodObject<{
2813
- methodology: z.ZodObject<{
2814
- external_id: z.ZodUUID;
2815
- name: z.ZodString;
2816
- version: z.ZodString;
2817
- external_url: z.ZodURL;
2818
- uri: z.ZodOptional<z.ZodString>;
2819
- }, z.core.$strict>;
2820
- mass_id: z.ZodObject<{
2821
- external_id: z.ZodUUID;
2822
- token_id: z.ZodString;
2823
- external_url: z.ZodURL;
2824
- uri: z.ZodString;
2825
- }, z.core.$strict>;
2826
- gas_id: z.ZodObject<{
2827
- external_id: z.ZodUUID;
2828
- token_id: z.ZodString;
2829
- external_url: z.ZodURL;
2830
- uri: z.ZodString;
2831
- }, z.core.$strict>;
2832
- audit_summary: z.ZodObject<{
2833
- audit_date: z.ZodISODate;
2834
- methodology_compliance: z.ZodEnum<{
2835
- PASSED: "PASSED";
2836
- FAILED: "FAILED";
2837
- }>;
2838
- total_rules_executed: z.ZodNumber;
2839
- passed_rules: z.ZodNumber;
2840
- failed_rules: z.ZodNumber;
2841
- }, z.core.$strict>;
2842
- rules_execution_results: z.ZodArray<z.ZodObject<{
2843
- rule_name: z.ZodString;
2844
- rule_id: z.ZodUUID;
2845
- rule_slug: z.ZodString;
2846
- execution_order: z.ZodNumber;
2847
- result: z.ZodEnum<{
2848
- PASSED: "PASSED";
2849
- FAILED: "FAILED";
2850
- }>;
2851
- description: z.ZodString;
2852
- rule_processor_checksum: z.ZodString;
2853
- rule_source_code_version: z.ZodString;
2854
- }, z.core.$strict>>;
2855
- }, z.core.$strict>;
2586
+ declare const MethodologyAttributeSchema: z.ZodObject<{
2587
+ display_type: z.ZodOptional<z.ZodEnum<{
2588
+ number: "number";
2589
+ date: "date";
2590
+ boost_number: "boost_number";
2591
+ boost_percentage: "boost_percentage";
2592
+ }>>;
2593
+ max_value: z.ZodOptional<z.ZodNumber>;
2594
+ trait_type: z.ZodLiteral<"Methodology">;
2595
+ value: z.ZodString;
2856
2596
  }, z.core.$strict>;
2857
- type MassIDAudit = z.infer<typeof MassIDAuditSchema>;
2858
-
2859
- declare const MassIDAuditSummarySchema: z.ZodObject<{
2860
- audit_date: z.ZodISODate;
2861
- methodology_compliance: z.ZodEnum<{
2862
- PASSED: "PASSED";
2863
- FAILED: "FAILED";
2864
- }>;
2865
- total_rules_executed: z.ZodNumber;
2866
- passed_rules: z.ZodNumber;
2867
- failed_rules: z.ZodNumber;
2597
+ type MethodologyAttribute = z.infer<typeof MethodologyAttributeSchema>;
2598
+ declare const CreditAmountAttributeSchema: z.ZodObject<{
2599
+ max_value: z.ZodOptional<z.ZodNumber>;
2600
+ trait_type: z.ZodLiteral<"Credit Amount">;
2601
+ value: z.ZodNumber;
2602
+ display_type: z.ZodLiteral<"number">;
2868
2603
  }, z.core.$strict>;
2869
- type MassIDAuditSummary = z.infer<typeof MassIDAuditSummarySchema>;
2870
- declare const MassIDAuditDataSchema: z.ZodObject<{
2871
- methodology: z.ZodObject<{
2872
- external_id: z.ZodUUID;
2873
- name: z.ZodString;
2874
- version: z.ZodString;
2875
- external_url: z.ZodURL;
2876
- uri: z.ZodOptional<z.ZodString>;
2877
- }, z.core.$strict>;
2878
- mass_id: z.ZodObject<{
2879
- external_id: z.ZodUUID;
2880
- token_id: z.ZodString;
2881
- external_url: z.ZodURL;
2882
- uri: z.ZodString;
2883
- }, z.core.$strict>;
2884
- gas_id: z.ZodObject<{
2885
- external_id: z.ZodUUID;
2886
- token_id: z.ZodString;
2887
- external_url: z.ZodURL;
2888
- uri: z.ZodString;
2889
- }, z.core.$strict>;
2890
- audit_summary: z.ZodObject<{
2891
- audit_date: z.ZodISODate;
2892
- methodology_compliance: z.ZodEnum<{
2893
- PASSED: "PASSED";
2894
- FAILED: "FAILED";
2895
- }>;
2896
- total_rules_executed: z.ZodNumber;
2897
- passed_rules: z.ZodNumber;
2898
- failed_rules: z.ZodNumber;
2899
- }, z.core.$strict>;
2900
- rules_execution_results: z.ZodArray<z.ZodObject<{
2901
- rule_name: z.ZodString;
2902
- rule_id: z.ZodUUID;
2903
- rule_slug: z.ZodString;
2904
- execution_order: z.ZodNumber;
2905
- result: z.ZodEnum<{
2906
- PASSED: "PASSED";
2907
- FAILED: "FAILED";
2908
- }>;
2909
- description: z.ZodString;
2910
- rule_processor_checksum: z.ZodString;
2911
- rule_source_code_version: z.ZodString;
2912
- }, z.core.$strict>>;
2604
+ type CreditAmountAttribute = z.infer<typeof CreditAmountAttributeSchema>;
2605
+ declare const CreditTypeAttributeSchema: z.ZodObject<{
2606
+ display_type: z.ZodOptional<z.ZodEnum<{
2607
+ number: "number";
2608
+ date: "date";
2609
+ boost_number: "boost_number";
2610
+ boost_percentage: "boost_percentage";
2611
+ }>>;
2612
+ max_value: z.ZodOptional<z.ZodNumber>;
2613
+ trait_type: z.ZodLiteral<"Credit Type">;
2614
+ value: z.ZodString;
2913
2615
  }, z.core.$strict>;
2914
- type MassIDAuditData = z.infer<typeof MassIDAuditDataSchema>;
2915
-
2916
- declare const ParticipantSchema: z.ZodObject<{
2917
- id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2918
- name: z.ZodString;
2919
- roles: z.ZodArray<z.ZodString>;
2616
+ type CreditTypeAttribute = z.infer<typeof CreditTypeAttributeSchema>;
2617
+ declare const SourceWasteTypeAttributeSchema: z.ZodObject<{
2618
+ display_type: z.ZodOptional<z.ZodEnum<{
2619
+ number: "number";
2620
+ date: "date";
2621
+ boost_number: "boost_number";
2622
+ boost_percentage: "boost_percentage";
2623
+ }>>;
2624
+ max_value: z.ZodOptional<z.ZodNumber>;
2625
+ trait_type: z.ZodLiteral<"Source Waste Type">;
2626
+ value: z.ZodString;
2920
2627
  }, z.core.$strict>;
2921
- type Participant = z.infer<typeof ParticipantSchema>;
2922
-
2923
- declare const PrecisionLevelSchema: z.ZodEnum<{
2924
- exact: "exact";
2925
- neighborhood: "neighborhood";
2926
- city: "city";
2927
- region: "region";
2928
- country: "country";
2929
- }>;
2930
- type PrecisionLevel = z.infer<typeof PrecisionLevelSchema>;
2931
- declare const CoordinatesSchema: z.ZodObject<{
2932
- latitude: z.ZodNumber;
2933
- longitude: z.ZodNumber;
2934
- precision_level: z.ZodEnum<{
2935
- exact: "exact";
2936
- neighborhood: "neighborhood";
2937
- city: "city";
2938
- region: "region";
2939
- country: "country";
2940
- }>;
2628
+ type SourceWasteTypeAttribute = z.infer<typeof SourceWasteTypeAttributeSchema>;
2629
+ declare const SourceWeightAttributeSchema: z.ZodObject<{
2630
+ max_value: z.ZodOptional<z.ZodNumber>;
2631
+ trait_type: z.ZodLiteral<"Source Weight (kg)">;
2632
+ value: z.ZodNumber;
2633
+ display_type: z.ZodLiteral<"number">;
2941
2634
  }, z.core.$strict>;
2942
- type Coordinates = z.infer<typeof CoordinatesSchema>;
2943
- declare const LocationSchema: z.ZodObject<{
2944
- id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2945
- municipality: z.ZodString;
2946
- administrative_division: z.ZodString;
2947
- administrative_division_code: z.ZodOptional<z.ZodString>;
2948
- country: z.ZodString;
2949
- country_code: z.ZodString;
2950
- responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
2951
- coordinates: z.ZodObject<{
2952
- latitude: z.ZodNumber;
2953
- longitude: z.ZodNumber;
2954
- precision_level: z.ZodEnum<{
2955
- exact: "exact";
2956
- neighborhood: "neighborhood";
2957
- city: "city";
2958
- region: "region";
2959
- country: "country";
2960
- }>;
2961
- }, z.core.$strict>;
2962
- facility_type: z.ZodOptional<z.ZodEnum<{
2963
- "Collection Point": "Collection Point";
2964
- "Recycling Facility": "Recycling Facility";
2965
- "Administrative Office": "Administrative Office";
2966
- Other: "Other";
2635
+ type SourceWeightAttribute = z.infer<typeof SourceWeightAttributeSchema>;
2636
+ declare const OriginCountryAttributeSchema: z.ZodObject<{
2637
+ display_type: z.ZodOptional<z.ZodEnum<{
2638
+ number: "number";
2639
+ date: "date";
2640
+ boost_number: "boost_number";
2641
+ boost_percentage: "boost_percentage";
2967
2642
  }>>;
2643
+ max_value: z.ZodOptional<z.ZodNumber>;
2644
+ trait_type: z.ZodLiteral<"Origin Country">;
2645
+ value: z.ZodString;
2968
2646
  }, z.core.$strict>;
2969
- type Location = z.infer<typeof LocationSchema>;
2970
-
2971
- declare const MethodologyComplianceSchema: z.ZodEnum<{
2972
- PASSED: "PASSED";
2973
- FAILED: "FAILED";
2974
- }>;
2975
- type MethodologyCompliance = z.infer<typeof MethodologyComplianceSchema>;
2976
- declare const AuditReferenceSchema: z.ZodObject<{
2977
- date: z.ZodISODate;
2978
- external_id: z.ZodUUID;
2979
- external_url: z.ZodURL;
2980
- methodology_compliance: z.ZodEnum<{
2981
- PASSED: "PASSED";
2982
- FAILED: "FAILED";
2983
- }>;
2984
- rules_executed: z.ZodNumber;
2985
- report: z.ZodString;
2986
- }, z.core.$strict>;
2987
- type AuditReference = z.infer<typeof AuditReferenceSchema>;
2988
-
2989
- declare const GasIDReferenceSchema: z.ZodObject<{
2990
- external_id: z.ZodUUID;
2991
- token_id: z.ZodString;
2992
- external_url: z.ZodURL;
2993
- uri: z.ZodString;
2647
+ type OriginCountryAttribute = z.infer<typeof OriginCountryAttributeSchema>;
2648
+ declare const OriginMunicipalityAttributeSchema: z.ZodObject<{
2649
+ display_type: z.ZodOptional<z.ZodEnum<{
2650
+ number: "number";
2651
+ date: "date";
2652
+ boost_number: "boost_number";
2653
+ boost_percentage: "boost_percentage";
2654
+ }>>;
2655
+ max_value: z.ZodOptional<z.ZodNumber>;
2656
+ trait_type: z.ZodLiteral<"Origin Municipality">;
2657
+ value: z.ZodString;
2994
2658
  }, z.core.$strict>;
2995
- type GasIDReference = z.infer<typeof GasIDReferenceSchema>;
2996
-
2997
- declare const MassIDReferenceSchema: z.ZodObject<{
2659
+ type OriginMunicipalityAttribute = z.infer<typeof OriginMunicipalityAttributeSchema>;
2660
+ declare const RecyclerAttributeSchema: z.ZodObject<{
2661
+ display_type: z.ZodOptional<z.ZodEnum<{
2662
+ number: "number";
2663
+ date: "date";
2664
+ boost_number: "boost_number";
2665
+ boost_percentage: "boost_percentage";
2666
+ }>>;
2667
+ max_value: z.ZodOptional<z.ZodNumber>;
2668
+ trait_type: z.ZodLiteral<"Recycler">;
2669
+ value: z.ZodString;
2670
+ }, z.core.$strict>;
2671
+ type RecyclerAttribute = z.infer<typeof RecyclerAttributeSchema>;
2672
+ declare const MassIDTokenIdAttributeSchema: z.ZodObject<{
2673
+ display_type: z.ZodOptional<z.ZodEnum<{
2674
+ number: "number";
2675
+ date: "date";
2676
+ boost_number: "boost_number";
2677
+ boost_percentage: "boost_percentage";
2678
+ }>>;
2679
+ max_value: z.ZodOptional<z.ZodNumber>;
2680
+ trait_type: z.ZodLiteral<"MassID">;
2681
+ value: z.ZodString;
2682
+ }, z.core.$strict>;
2683
+ type MassIDTokenIdAttribute = z.infer<typeof MassIDTokenIdAttributeSchema>;
2684
+ declare const MassIDRecyclingDateAttributeSchema: z.ZodObject<{
2685
+ trait_type: z.ZodLiteral<"MassID Recycling Date">;
2686
+ value: z.ZodNumber;
2687
+ display_type: z.ZodLiteral<"date">;
2688
+ }, z.core.$strict>;
2689
+ type MassIDRecyclingDateAttribute = z.infer<typeof MassIDRecyclingDateAttributeSchema>;
2690
+
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<{
2998
2776
  external_id: z.ZodUUID;
2999
2777
  token_id: z.ZodString;
3000
2778
  external_url: z.ZodURL;
3001
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>;
3002
2785
  }, z.core.$strict>;
3003
- type MassIDReference = z.infer<typeof MassIDReferenceSchema>;
3004
-
3005
- declare const MethodologyReferenceSchema: z.ZodObject<{
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;
3006
2794
  external_id: z.ZodUUID;
3007
2795
  name: z.ZodString;
3008
- version: z.ZodString;
3009
2796
  external_url: z.ZodURL;
3010
- uri: z.ZodOptional<z.ZodString>;
3011
- }, z.core.$strict>;
3012
- type MethodologyReference = z.infer<typeof MethodologyReferenceSchema>;
3013
-
3014
- declare const WasteClassificationSchema: z.ZodObject<{
3015
- primary_type: z.ZodString;
3016
- subtype: z.ZodString;
3017
- net_weight_kg: z.ZodNumber;
2797
+ uri: z.ZodString;
3018
2798
  }, z.core.$strict>;
3019
- type WasteClassification = z.infer<typeof WasteClassificationSchema>;
3020
- declare const AccreditedParticipantSchema: z.ZodObject<{
3021
- participant_id: z.ZodUUID;
3022
- name: z.ZodString;
3023
- role: z.ZodString;
3024
- accreditation_id: z.ZodUUID;
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;
3025
2815
  external_url: z.ZodURL;
3026
- }, z.core.$strict>;
3027
- type AccreditedParticipant = z.infer<typeof AccreditedParticipantSchema>;
3028
- declare const AccreditedParticipantsSchema: z.ZodArray<z.ZodObject<{
3029
- participant_id: z.ZodUUID;
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<{
3030
2898
  name: z.ZodString;
3031
- role: z.ZodString;
3032
- accreditation_id: z.ZodUUID;
2899
+ external_id: z.ZodUUID;
3033
2900
  external_url: z.ZodURL;
3034
- }, z.core.$strict>>;
3035
- type AccreditedParticipants = z.infer<typeof AccreditedParticipantsSchema>;
3036
- declare const RewardAllocationSchema: z.ZodObject<{
3037
- participant_id: z.ZodUUID;
3038
- participant_name: z.ZodString;
3039
- role: z.ZodString;
3040
- reward_percentage: z.ZodNumber;
3041
- large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
3042
- effective_percentage: z.ZodNumber;
3043
2901
  }, z.core.$strict>;
3044
- type RewardAllocation = z.infer<typeof RewardAllocationSchema>;
3045
- declare const DistributionNotesSchema: z.ZodObject<{
3046
- large_business_discount_applied: z.ZodOptional<z.ZodString>;
3047
- redirected_rewards: z.ZodOptional<z.ZodString>;
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>>;
3048
2910
  }, z.core.$strict>;
3049
- type DistributionNotes = z.infer<typeof DistributionNotesSchema>;
3050
- declare const ParticipantRewardsSchema: z.ZodObject<{
3051
- distribution_basis: z.ZodString;
3052
- reward_allocations: z.ZodArray<z.ZodObject<{
3053
- participant_id: z.ZodUUID;
3054
- participant_name: z.ZodString;
3055
- role: z.ZodString;
3056
- reward_percentage: z.ZodNumber;
3057
- large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
3058
- effective_percentage: z.ZodNumber;
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;
3059
2918
  }, z.core.$strict>>;
3060
- distribution_notes: z.ZodOptional<z.ZodObject<{
3061
- large_business_discount_applied: z.ZodOptional<z.ZodString>;
3062
- redirected_rewards: z.ZodOptional<z.ZodString>;
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>>;
3063
2938
  }, z.core.$strict>>;
3064
2939
  }, z.core.$strict>;
3065
- type ParticipantRewards = z.infer<typeof ParticipantRewardsSchema>;
3066
-
3067
- declare const SchemaInfoSchema: z.ZodObject<{
3068
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
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;
3069
2955
  type: z.ZodEnum<{
3070
- MassID: "MassID";
3071
- "MassID Audit": "MassID Audit";
3072
2956
  RecycledID: "RecycledID";
3073
2957
  GasID: "GasID";
3074
- CreditPurchaseReceipt: "CreditPurchaseReceipt";
3075
- Methodology: "Methodology";
3076
- Credit: "Credit";
3077
- Collection: "Collection";
3078
2958
  }>;
3079
- version: z.ZodString;
3080
- }, z.core.$strict>;
3081
- type SchemaInfo = z.infer<typeof SchemaInfoSchema>;
3082
- declare const RecordCreatorSchema: z.ZodObject<{
3083
- name: z.ZodString;
3084
- id: z.ZodUUID;
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;
3085
2984
  }, z.core.$strict>;
3086
- type RecordCreator = z.infer<typeof RecordCreatorSchema>;
3087
- declare const RecordRelationshipSchema: z.ZodObject<{
3088
- target_uri: z.ZodString;
3089
- type: z.ZodEnum<{
3090
- collection: "collection";
3091
- credit: "credit";
3092
- "gas-id": "gas-id";
3093
- "mass-id": "mass-id";
3094
- "mass-id-audit": "mass-id-audit";
3095
- methodology: "methodology";
3096
- "credit-purchase-receipt": "credit-purchase-receipt";
3097
- "recycled-id": "recycled-id";
3098
- }>;
3099
- description: z.ZodOptional<z.ZodString>;
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;
3100
2991
  }, z.core.$strict>;
3101
- type RecordRelationship = z.infer<typeof RecordRelationshipSchema>;
3102
- declare const RecordEnvironmentSchema: z.ZodObject<{
3103
- blockchain_network: z.ZodEnum<{
3104
- mainnet: "mainnet";
3105
- testnet: "testnet";
3106
- }>;
3107
- deployment: z.ZodEnum<{
3108
- production: "production";
3109
- development: "development";
3110
- testing: "testing";
3111
- }>;
3112
- data_set_name: z.ZodEnum<{
3113
- TEST: "TEST";
3114
- PROD: "PROD";
3115
- }>;
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>;
3116
3003
  }, z.core.$strict>;
3117
- type RecordEnvironment = z.infer<typeof RecordEnvironmentSchema>;
3118
- declare const BaseIpfsSchema: z.ZodObject<{
3119
- $schema: z.ZodURL;
3120
- schema: z.ZodObject<{
3121
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
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;
3122
3063
  type: z.ZodEnum<{
3123
- MassID: "MassID";
3124
- "MassID Audit": "MassID Audit";
3125
3064
  RecycledID: "RecycledID";
3126
3065
  GasID: "GasID";
3127
- CreditPurchaseReceipt: "CreditPurchaseReceipt";
3128
- Methodology: "Methodology";
3129
- Credit: "Credit";
3130
- Collection: "Collection";
3131
3066
  }>;
3132
- version: z.ZodString;
3133
- }, z.core.$strict>;
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;
3134
3124
  created_at: z.ZodISODateTime;
3135
3125
  external_id: z.ZodUUID;
3136
3126
  external_url: z.ZodURL;
@@ -3150,6 +3140,7 @@ declare const BaseIpfsSchema: z.ZodObject<{
3150
3140
  "mass-id-audit": "mass-id-audit";
3151
3141
  methodology: "methodology";
3152
3142
  "credit-purchase-receipt": "credit-purchase-receipt";
3143
+ "credit-retirement-receipt": "credit-retirement-receipt";
3153
3144
  "recycled-id": "recycled-id";
3154
3145
  }>;
3155
3146
  description: z.ZodOptional<z.ZodString>;
@@ -3169,93 +3160,6 @@ declare const BaseIpfsSchema: z.ZodObject<{
3169
3160
  PROD: "PROD";
3170
3161
  }>;
3171
3162
  }, z.core.$strict>>;
3172
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3173
- }, z.core.$strict>;
3174
- type BaseIpfs = z.infer<typeof BaseIpfsSchema>;
3175
-
3176
- declare const NftSchemaTypeSchema: z.ZodEnum<{
3177
- MassID: "MassID";
3178
- RecycledID: "RecycledID";
3179
- GasID: "GasID";
3180
- CreditPurchaseReceipt: "CreditPurchaseReceipt";
3181
- }>;
3182
- type NftSchemaType = z.infer<typeof NftSchemaTypeSchema>;
3183
- declare const BlockchainReferenceSchema: z.ZodObject<{
3184
- smart_contract_address: z.ZodString;
3185
- chain_id: z.ZodNumber;
3186
- network_name: z.ZodString;
3187
- token_id: z.ZodString;
3188
- }, z.core.$strict>;
3189
- type BlockchainReference = z.infer<typeof BlockchainReferenceSchema>;
3190
- declare const ExternalLinkSchema: z.ZodObject<{
3191
- label: z.ZodString;
3192
- url: z.ZodURL;
3193
- description: z.ZodOptional<z.ZodString>;
3194
- }, z.core.$strict>;
3195
- type ExternalLink = z.infer<typeof ExternalLinkSchema>;
3196
- declare const NftAttributeSchema: z.ZodObject<{
3197
- trait_type: z.ZodString;
3198
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3199
- display_type: z.ZodOptional<z.ZodEnum<{
3200
- number: "number";
3201
- date: "date";
3202
- boost_number: "boost_number";
3203
- boost_percentage: "boost_percentage";
3204
- }>>;
3205
- max_value: z.ZodOptional<z.ZodNumber>;
3206
- }, z.core.$strict>;
3207
- type NftAttribute = z.infer<typeof NftAttributeSchema>;
3208
- declare const NftIpfsSchema: z.ZodObject<{
3209
- $schema: z.ZodURL;
3210
- created_at: z.ZodISODateTime;
3211
- external_id: z.ZodUUID;
3212
- external_url: z.ZodURL;
3213
- original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
3214
- content_hash: z.ZodCustomStringFormat<"sha256_hex">;
3215
- creator: z.ZodOptional<z.ZodObject<{
3216
- name: z.ZodString;
3217
- id: z.ZodUUID;
3218
- }, z.core.$strict>>;
3219
- relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
3220
- target_uri: z.ZodString;
3221
- type: z.ZodEnum<{
3222
- collection: "collection";
3223
- credit: "credit";
3224
- "gas-id": "gas-id";
3225
- "mass-id": "mass-id";
3226
- "mass-id-audit": "mass-id-audit";
3227
- methodology: "methodology";
3228
- "credit-purchase-receipt": "credit-purchase-receipt";
3229
- "recycled-id": "recycled-id";
3230
- }>;
3231
- description: z.ZodOptional<z.ZodString>;
3232
- }, z.core.$strict>>>;
3233
- environment: z.ZodOptional<z.ZodObject<{
3234
- blockchain_network: z.ZodEnum<{
3235
- mainnet: "mainnet";
3236
- testnet: "testnet";
3237
- }>;
3238
- deployment: z.ZodEnum<{
3239
- production: "production";
3240
- development: "development";
3241
- testing: "testing";
3242
- }>;
3243
- data_set_name: z.ZodEnum<{
3244
- TEST: "TEST";
3245
- PROD: "PROD";
3246
- }>;
3247
- }, z.core.$strict>>;
3248
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3249
- schema: z.ZodObject<{
3250
- hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
3251
- version: z.ZodString;
3252
- type: z.ZodEnum<{
3253
- MassID: "MassID";
3254
- RecycledID: "RecycledID";
3255
- GasID: "GasID";
3256
- CreditPurchaseReceipt: "CreditPurchaseReceipt";
3257
- }>;
3258
- }, z.core.$strict>;
3259
3163
  blockchain: z.ZodObject<{
3260
3164
  smart_contract_address: z.ZodString;
3261
3165
  chain_id: z.ZodNumber;
@@ -3273,169 +3177,153 @@ declare const NftIpfsSchema: z.ZodObject<{
3273
3177
  url: z.ZodURL;
3274
3178
  description: z.ZodOptional<z.ZodString>;
3275
3179
  }, z.core.$strict>>>;
3276
- attributes: z.ZodArray<z.ZodObject<{
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>;
3277
3187
  trait_type: z.ZodString;
3278
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3279
- display_type: z.ZodOptional<z.ZodEnum<{
3280
- number: "number";
3281
- date: "date";
3282
- boost_number: "boost_number";
3283
- boost_percentage: "boost_percentage";
3284
- }>>;
3188
+ value: z.ZodNumber;
3189
+ display_type: z.ZodLiteral<"number">;
3190
+ }, z.core.$strict>, z.ZodObject<{
3285
3191
  max_value: z.ZodOptional<z.ZodNumber>;
3286
- }, z.core.$strict>>;
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>;
3287
3313
  }, z.core.$strict>;
3288
- type NftIpfs = z.infer<typeof NftIpfsSchema>;
3314
+ type CreditPurchaseReceiptIpfs = z.infer<typeof CreditPurchaseReceiptIpfsSchema>;
3289
3315
 
3290
- declare const UuidSchema: z.ZodUUID;
3291
- type Uuid = z.infer<typeof UuidSchema>;
3292
- declare const EthereumAddressSchema: z.ZodString;
3293
- type EthereumAddress = z.infer<typeof EthereumAddressSchema>;
3294
- declare const IsoTimestampSchema: z.ZodISODateTime;
3295
- type IsoTimestamp = z.infer<typeof IsoTimestampSchema>;
3296
- declare const IsoDateSchema: z.ZodISODate;
3297
- type IsoDate = z.infer<typeof IsoDateSchema>;
3298
- declare const UnixTimestampSchema: z.ZodNumber;
3299
- type UnixTimestamp = z.infer<typeof UnixTimestampSchema>;
3300
- declare const IsoCountryCodeSchema: z.ZodString;
3301
- type IsoCountryCode = z.infer<typeof IsoCountryCodeSchema>;
3302
- declare const IsoAdministrativeDivisionCodeSchema: z.ZodString;
3303
- type IsoAdministrativeDivisionCode = z.infer<typeof IsoAdministrativeDivisionCodeSchema>;
3304
- declare const LatitudeSchema: z.ZodNumber;
3305
- type Latitude = z.infer<typeof LatitudeSchema>;
3306
- declare const LongitudeSchema: z.ZodNumber;
3307
- type Longitude = z.infer<typeof LongitudeSchema>;
3308
- declare const WeightKgSchema: z.ZodNumber;
3309
- type WeightKg = z.infer<typeof WeightKgSchema>;
3310
- declare const NonEmptyStringSchema: z.ZodString;
3311
- type NonEmptyString = z.infer<typeof NonEmptyStringSchema>;
3312
- declare const MunicipalitySchema: z.ZodString;
3313
- type Municipality = z.infer<typeof MunicipalitySchema>;
3314
- declare const AdministrativeDivisionSchema: z.ZodString;
3315
- type AdministrativeDivision = z.infer<typeof AdministrativeDivisionSchema>;
3316
- declare const CountryNameSchema: z.ZodString;
3317
- type CountryName = z.infer<typeof CountryNameSchema>;
3318
- declare const CollectionNameSchema: z.ZodString;
3319
- type CollectionName = z.infer<typeof CollectionNameSchema>;
3320
- declare const MethodologyNameSchema: z.ZodString;
3321
- type MethodologyName = z.infer<typeof MethodologyNameSchema>;
3322
- declare const StringifiedTokenIdSchema: z.ZodString;
3323
- type StringifiedTokenId = z.infer<typeof StringifiedTokenIdSchema>;
3324
- declare const SlugSchema: z.ZodString;
3325
- type Slug = z.infer<typeof SlugSchema>;
3326
- declare const CollectionSlugSchema: z.ZodString;
3327
- type CollectionSlug = z.infer<typeof CollectionSlugSchema>;
3328
- declare const WasteTypeSchema: z.ZodString;
3329
- type WasteType = z.infer<typeof WasteTypeSchema>;
3330
- declare const WasteSubtypeSchema: z.ZodString;
3331
- type WasteSubtype = z.infer<typeof WasteSubtypeSchema>;
3332
- declare const ParticipantRoleSchema: z.ZodString;
3333
- type ParticipantRole = z.infer<typeof ParticipantRoleSchema>;
3334
- declare const ParticipantNameSchema: z.ZodString;
3335
- type ParticipantName = z.infer<typeof ParticipantNameSchema>;
3336
- declare const FacilityTypeSchema: z.ZodEnum<{
3337
- "Collection Point": "Collection Point";
3338
- "Recycling Facility": "Recycling Facility";
3339
- "Administrative Office": "Administrative Office";
3340
- Other: "Other";
3341
- }>;
3342
- type FacilityType = z.infer<typeof FacilityTypeSchema>;
3343
- declare const BlockchainChainIdSchema: z.ZodNumber;
3344
- type BlockchainChainId = z.infer<typeof BlockchainChainIdSchema>;
3345
- declare const BlockchainNetworkNameSchema: z.ZodString;
3346
- type BlockchainNetworkName = z.infer<typeof BlockchainNetworkNameSchema>;
3347
- declare const SmartContractAddressSchema: z.ZodString;
3348
- type SmartContractAddress = z.infer<typeof SmartContractAddressSchema>;
3349
- declare const SmartContractSchema: z.ZodObject<{
3350
- address: z.ZodString;
3351
- chain_id: z.ZodNumber;
3352
- network_name: z.ZodString;
3353
- }, z.core.$strict>;
3354
- type SmartContract = z.infer<typeof SmartContractSchema>;
3355
- declare const PercentageSchema: z.ZodNumber;
3356
- type Percentage = z.infer<typeof PercentageSchema>;
3357
- declare const NonNegativeIntegerSchema: z.ZodNumber;
3358
- type NonNegativeInteger = z.infer<typeof NonNegativeIntegerSchema>;
3359
- declare const PositiveIntegerSchema: z.ZodNumber;
3360
- type PositiveInteger = z.infer<typeof PositiveIntegerSchema>;
3361
- declare const NonNegativeFloatSchema: z.ZodNumber;
3362
- type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
3363
- declare const CreditTypeSchema: z.ZodString;
3364
- type CreditType = z.infer<typeof CreditTypeSchema>;
3365
- declare const CreditAmountSchema: z.ZodNumber;
3366
- type CreditAmount = z.infer<typeof CreditAmountSchema>;
3367
- declare const HoursSchema: z.ZodNumber;
3368
- type Hours = z.infer<typeof HoursSchema>;
3369
- declare const MinutesSchema: z.ZodNumber;
3370
- type Minutes = z.infer<typeof MinutesSchema>;
3371
- declare const IpfsUriSchema: z.ZodString;
3372
- type IpfsUri = z.infer<typeof IpfsUriSchema>;
3373
- declare const SemanticVersionSchema: z.ZodString;
3374
- type SemanticVersion = z.infer<typeof SemanticVersionSchema>;
3375
- declare const TokenIdSchema: z.ZodString;
3376
- type TokenId = z.infer<typeof TokenIdSchema>;
3377
- declare const HexColorSchema: z.ZodString;
3378
- type HexColor = z.infer<typeof HexColorSchema>;
3379
- declare const Sha256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
3380
- type Sha256Hash = z.infer<typeof Sha256HashSchema>;
3381
- declare const Keccak256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
3382
- type Keccak256Hash = z.infer<typeof Keccak256HashSchema>;
3383
- declare const ExternalIdSchema: z.ZodUUID;
3384
- type ExternalId = z.infer<typeof ExternalIdSchema>;
3385
- declare const ExternalUrlSchema: z.ZodURL;
3386
- type ExternalUrl = z.infer<typeof ExternalUrlSchema>;
3387
- declare const RecordSchemaTypeSchema: z.ZodEnum<{
3388
- MassID: "MassID";
3389
- "MassID Audit": "MassID Audit";
3390
- RecycledID: "RecycledID";
3391
- GasID: "GasID";
3392
- CreditPurchaseReceipt: "CreditPurchaseReceipt";
3393
- Methodology: "Methodology";
3394
- Credit: "Credit";
3395
- Collection: "Collection";
3396
- }>;
3397
- type RecordSchemaType = z.infer<typeof RecordSchemaTypeSchema>;
3398
- declare const TokenSymbolSchema: z.ZodString;
3399
- type TokenSymbol = z.infer<typeof TokenSymbolSchema>;
3400
- declare const RecordRelationshipTypeSchema: z.ZodEnum<{
3401
- collection: "collection";
3402
- credit: "credit";
3403
- "gas-id": "gas-id";
3404
- "mass-id": "mass-id";
3405
- "mass-id-audit": "mass-id-audit";
3406
- methodology: "methodology";
3407
- "credit-purchase-receipt": "credit-purchase-receipt";
3408
- "recycled-id": "recycled-id";
3409
- }>;
3410
- type RecordRelationshipType = z.infer<typeof RecordRelationshipTypeSchema>;
3411
-
3412
- declare function uniqueArrayItems<T extends z.ZodTypeAny>(schema: T, errorMessage?: string): z.ZodArray<T>;
3413
- declare function uniqueBy<T extends z.ZodTypeAny, K>(schema: T, selector: (item: z.infer<T>) => K, errorMessage?: string): z.ZodArray<T>;
3414
-
3415
- declare function getSchemaBaseUrl(): string;
3416
- declare function buildSchemaUrl(schemaPath: string): string;
3417
- declare function getSchemaVersionOrDefault(): string;
3418
-
3419
- declare const MethodologyAttributeSchema: z.ZodObject<{
3420
- display_type: z.ZodOptional<z.ZodEnum<{
3421
- number: "number";
3422
- date: "date";
3423
- boost_number: "boost_number";
3424
- boost_percentage: "boost_percentage";
3425
- }>>;
3316
+ declare const CreditRetirementReceiptAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3426
3317
  max_value: z.ZodOptional<z.ZodNumber>;
3427
- trait_type: z.ZodLiteral<"Methodology">;
3428
- value: z.ZodString;
3429
- }, z.core.$strict>;
3430
- type MethodologyAttribute = z.infer<typeof MethodologyAttributeSchema>;
3431
- declare const CreditAmountAttributeSchema: z.ZodObject<{
3318
+ trait_type: z.ZodString;
3319
+ value: z.ZodNumber;
3320
+ display_type: z.ZodLiteral<"number">;
3321
+ }, z.core.$strict>, z.ZodObject<{
3432
3322
  max_value: z.ZodOptional<z.ZodNumber>;
3433
- trait_type: z.ZodLiteral<"Credit Amount">;
3323
+ trait_type: z.ZodLiteral<"Total Credits Retired">;
3434
3324
  value: z.ZodNumber;
3435
3325
  display_type: z.ZodLiteral<"number">;
3436
- }, z.core.$strict>;
3437
- type CreditAmountAttribute = z.infer<typeof CreditAmountAttributeSchema>;
3438
- declare const CreditTypeAttributeSchema: z.ZodObject<{
3326
+ }, z.core.$strict>, z.ZodObject<{
3439
3327
  display_type: z.ZodOptional<z.ZodEnum<{
3440
3328
  number: "number";
3441
3329
  date: "date";
@@ -3443,11 +3331,9 @@ declare const CreditTypeAttributeSchema: z.ZodObject<{
3443
3331
  boost_percentage: "boost_percentage";
3444
3332
  }>>;
3445
3333
  max_value: z.ZodOptional<z.ZodNumber>;
3446
- trait_type: z.ZodLiteral<"Credit Type">;
3334
+ trait_type: z.ZodLiteral<"Beneficiary">;
3447
3335
  value: z.ZodString;
3448
- }, z.core.$strict>;
3449
- type CreditTypeAttribute = z.infer<typeof CreditTypeAttributeSchema>;
3450
- declare const SourceWasteTypeAttributeSchema: z.ZodObject<{
3336
+ }, z.core.$strict>, z.ZodObject<{
3451
3337
  display_type: z.ZodOptional<z.ZodEnum<{
3452
3338
  number: "number";
3453
3339
  date: "date";
@@ -3455,119 +3341,783 @@ declare const SourceWasteTypeAttributeSchema: z.ZodObject<{
3455
3341
  boost_percentage: "boost_percentage";
3456
3342
  }>>;
3457
3343
  max_value: z.ZodOptional<z.ZodNumber>;
3458
- trait_type: z.ZodLiteral<"Source Waste Type">;
3344
+ trait_type: z.ZodLiteral<"Credit Holder">;
3459
3345
  value: z.ZodString;
3460
- }, z.core.$strict>;
3461
- type SourceWasteTypeAttribute = z.infer<typeof SourceWasteTypeAttributeSchema>;
3462
- declare const SourceWeightAttributeSchema: z.ZodObject<{
3346
+ }, z.core.$strict>, z.ZodObject<{
3463
3347
  max_value: z.ZodOptional<z.ZodNumber>;
3464
- trait_type: z.ZodLiteral<"Source Weight (kg)">;
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">;
3465
3354
  value: z.ZodNumber;
3466
3355
  display_type: z.ZodLiteral<"number">;
3467
- }, z.core.$strict>;
3468
- type SourceWeightAttribute = z.infer<typeof SourceWeightAttributeSchema>;
3469
- declare const OriginCountryAttributeSchema: z.ZodObject<{
3470
- display_type: z.ZodOptional<z.ZodEnum<{
3471
- number: "number";
3472
- date: "date";
3473
- boost_number: "boost_number";
3474
- boost_percentage: "boost_percentage";
3475
- }>>;
3356
+ }, z.core.$strict>, z.ZodObject<{
3476
3357
  max_value: z.ZodOptional<z.ZodNumber>;
3477
- trait_type: z.ZodLiteral<"Origin Country">;
3478
- value: z.ZodString;
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;
3479
3369
  }, z.core.$strict>;
3480
- type OriginCountryAttribute = z.infer<typeof OriginCountryAttributeSchema>;
3481
- declare const OriginMunicipalityAttributeSchema: z.ZodObject<{
3482
- display_type: z.ZodOptional<z.ZodEnum<{
3483
- number: "number";
3484
- date: "date";
3485
- boost_number: "boost_number";
3486
- boost_percentage: "boost_percentage";
3487
- }>>;
3488
- max_value: z.ZodOptional<z.ZodNumber>;
3489
- trait_type: z.ZodLiteral<"Origin Municipality">;
3490
- value: z.ZodString;
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>;
3491
3378
  }, z.core.$strict>;
3492
- type OriginMunicipalityAttribute = z.infer<typeof OriginMunicipalityAttributeSchema>;
3493
- declare const RecyclerAttributeSchema: z.ZodObject<{
3494
- display_type: z.ZodOptional<z.ZodEnum<{
3495
- number: "number";
3496
- date: "date";
3497
- boost_number: "boost_number";
3498
- boost_percentage: "boost_percentage";
3499
- }>>;
3500
- max_value: z.ZodOptional<z.ZodNumber>;
3501
- trait_type: z.ZodLiteral<"Recycler">;
3502
- value: z.ZodString;
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>>;
3503
3387
  }, z.core.$strict>;
3504
- type RecyclerAttribute = z.infer<typeof RecyclerAttributeSchema>;
3505
- declare const MassIDTokenIdAttributeSchema: z.ZodObject<{
3506
- display_type: z.ZodOptional<z.ZodEnum<{
3507
- number: "number";
3508
- date: "date";
3509
- boost_number: "boost_number";
3510
- boost_percentage: "boost_percentage";
3511
- }>>;
3512
- max_value: z.ZodOptional<z.ZodNumber>;
3513
- trait_type: z.ZodLiteral<"MassID">;
3514
- value: z.ZodString;
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;
3515
3396
  }, z.core.$strict>;
3516
- type MassIDTokenIdAttribute = z.infer<typeof MassIDTokenIdAttributeSchema>;
3517
- declare const MassIDRecyclingDateAttributeSchema: z.ZodObject<{
3518
- trait_type: z.ZodLiteral<"MassID Recycling Date">;
3519
- value: z.ZodNumber;
3520
- display_type: z.ZodLiteral<"date">;
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>;
3521
3943
  }, z.core.$strict>;
3522
- type MassIDRecyclingDateAttribute = z.infer<typeof MassIDRecyclingDateAttributeSchema>;
3944
+ type Methodology = z.infer<typeof MethodologySchema>;
3523
3945
 
3524
- declare const AuditRuleDefinitionSchema: z.ZodObject<{
3525
- rule_id: z.ZodUUID;
3526
- rule_slug: z.ZodString;
3527
- rule_name: z.ZodString;
3946
+ declare const MethodologyDataSchema: z.ZodObject<{
3947
+ name: z.ZodString;
3948
+ short_name: z.ZodString;
3949
+ slug: z.ZodString;
3950
+ version: z.ZodString;
3528
3951
  description: z.ZodString;
3529
- source_code_url: z.ZodURL;
3530
- mandatory: z.ZodBoolean;
3531
- execution_order: z.ZodNumber;
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>>;
3532
3964
  }, z.core.$strict>;
3533
- type AuditRuleDefinition = z.infer<typeof AuditRuleDefinitionSchema>;
3534
- declare const AuditRuleDefinitionsSchema: z.ZodArray<z.ZodObject<{
3535
- rule_id: z.ZodUUID;
3536
- rule_slug: z.ZodString;
3537
- rule_name: z.ZodString;
3538
- description: z.ZodString;
3539
- source_code_url: z.ZodURL;
3540
- mandatory: z.ZodBoolean;
3541
- execution_order: z.ZodNumber;
3542
- }, z.core.$strict>>;
3543
- type AuditRuleDefinitions = z.infer<typeof AuditRuleDefinitionsSchema>;
3544
- declare const AuditRuleExecutionResultSchema: z.ZodObject<{
3545
- rule_name: z.ZodString;
3546
- rule_id: z.ZodUUID;
3547
- rule_slug: z.ZodString;
3548
- execution_order: z.ZodNumber;
3549
- result: z.ZodEnum<{
3550
- PASSED: "PASSED";
3551
- FAILED: "FAILED";
3552
- }>;
3553
- description: z.ZodString;
3554
- rule_processor_checksum: z.ZodString;
3555
- rule_source_code_version: z.ZodString;
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>;
3556
4063
  }, z.core.$strict>;
3557
- type AuditRuleExecutionResult = z.infer<typeof AuditRuleExecutionResultSchema>;
3558
- declare const AuditRuleExecutionResultsSchema: z.ZodArray<z.ZodObject<{
3559
- rule_name: z.ZodString;
3560
- rule_id: z.ZodUUID;
3561
- rule_slug: z.ZodString;
3562
- execution_order: z.ZodNumber;
3563
- result: z.ZodEnum<{
4064
+ type MassIDAudit = z.infer<typeof MassIDAuditSchema>;
4065
+
4066
+ declare const MassIDAuditSummarySchema: z.ZodObject<{
4067
+ audit_date: z.ZodISODate;
4068
+ methodology_compliance: z.ZodEnum<{
3564
4069
  PASSED: "PASSED";
3565
4070
  FAILED: "FAILED";
3566
4071
  }>;
3567
- description: z.ZodString;
3568
- rule_processor_checksum: z.ZodString;
3569
- rule_source_code_version: z.ZodString;
3570
- }, z.core.$strict>>;
3571
- type AuditRuleExecutionResults = z.infer<typeof AuditRuleExecutionResultsSchema>;
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>;
3572
4122
 
3573
- 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 CreditPurchaseReceiptRetirement, type CreditPurchaseReceiptRetirementReceipt, type CreditPurchaseReceiptSummary, CreditSchema, CreditSchemaMeta, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, type DistributionNotes, DistributionNotesSchema, 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 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 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, getSchemaBaseUrl, getSchemaVersionOrDefault, uniqueArrayItems, uniqueBy };
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 };