@carrot-foundation/schemas 0.1.39 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +589 -524
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +466 -673
- package/dist/index.d.ts +466 -673
- package/dist/index.js +589 -522
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -7
- package/schemas/ipfs/collection/collection.schema.json +17 -130
- package/schemas/ipfs/credit/credit.example.json +3 -7
- package/schemas/ipfs/credit/credit.schema.json +17 -130
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +3 -7
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +144 -243
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +3 -7
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +143 -239
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -9
- package/schemas/ipfs/gas-id/gas-id.schema.json +63 -206
- package/schemas/ipfs/mass-id/mass-id.example.json +88 -188
- package/schemas/ipfs/mass-id/mass-id.schema.json +675 -646
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -7
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +28 -150
- package/schemas/ipfs/methodology/methodology.example.json +3 -28
- package/schemas/ipfs/methodology/methodology.schema.json +20 -145
- package/schemas/ipfs/recycled-id/recycled-id.example.json +5 -10
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +62 -203
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ declare const MassIDAttributeOriginDivisionSchema: z.ZodObject<{
|
|
|
67
67
|
value: z.ZodString;
|
|
68
68
|
}, z.core.$strict>;
|
|
69
69
|
type MassIDAttributeOriginDivision = z.infer<typeof MassIDAttributeOriginDivisionSchema>;
|
|
70
|
-
declare const
|
|
70
|
+
declare const MassIDAttributePickUpVehicleTypeSchema: z.ZodObject<{
|
|
71
71
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
72
72
|
number: "number";
|
|
73
73
|
date: "date";
|
|
@@ -75,10 +75,10 @@ declare const MassIDAttributeVehicleTypeSchema: z.ZodObject<{
|
|
|
75
75
|
boost_percentage: "boost_percentage";
|
|
76
76
|
}>>;
|
|
77
77
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
78
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
78
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
79
79
|
value: z.ZodString;
|
|
80
80
|
}, z.core.$strict>;
|
|
81
|
-
type
|
|
81
|
+
type MassIDAttributePickUpVehicleType = z.infer<typeof MassIDAttributePickUpVehicleTypeSchema>;
|
|
82
82
|
declare const MassIDAttributeRecyclingMethodSchema: z.ZodObject<{
|
|
83
83
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
84
84
|
number: "number";
|
|
@@ -91,19 +91,6 @@ declare const MassIDAttributeRecyclingMethodSchema: z.ZodObject<{
|
|
|
91
91
|
value: z.ZodString;
|
|
92
92
|
}, z.core.$strict>;
|
|
93
93
|
type MassIDAttributeRecyclingMethod = z.infer<typeof MassIDAttributeRecyclingMethodSchema>;
|
|
94
|
-
declare const MassIDAttributeProcessingTimeSchema: z.ZodObject<{
|
|
95
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
96
|
-
number: "number";
|
|
97
|
-
date: "date";
|
|
98
|
-
boost_number: "boost_number";
|
|
99
|
-
boost_percentage: "boost_percentage";
|
|
100
|
-
}>>;
|
|
101
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
103
|
-
value: z.ZodNumber;
|
|
104
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$strict>;
|
|
106
|
-
type MassIDAttributeProcessingTime = z.infer<typeof MassIDAttributeProcessingTimeSchema>;
|
|
107
94
|
declare const MassIDAttributeLocalWasteClassificationIdSchema: z.ZodObject<{
|
|
108
95
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
109
96
|
number: "number";
|
|
@@ -124,7 +111,7 @@ declare const MassIDAttributeRecyclingManifestCodeSchema: z.ZodObject<{
|
|
|
124
111
|
boost_percentage: "boost_percentage";
|
|
125
112
|
}>>;
|
|
126
113
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
114
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
128
115
|
value: z.ZodString;
|
|
129
116
|
}, z.core.$strict>;
|
|
130
117
|
type MassIDAttributeRecyclingManifestCode = z.infer<typeof MassIDAttributeRecyclingManifestCodeSchema>;
|
|
@@ -136,7 +123,7 @@ declare const MassIDAttributeTransportManifestCodeSchema: z.ZodObject<{
|
|
|
136
123
|
boost_percentage: "boost_percentage";
|
|
137
124
|
}>>;
|
|
138
125
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
126
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
140
127
|
value: z.ZodString;
|
|
141
128
|
}, z.core.$strict>;
|
|
142
129
|
type MassIDAttributeTransportManifestCode = z.infer<typeof MassIDAttributeTransportManifestCodeSchema>;
|
|
@@ -164,18 +151,6 @@ declare const MassIDAttributeScaleTypeSchema: z.ZodObject<{
|
|
|
164
151
|
value: z.ZodString;
|
|
165
152
|
}, z.core.$strict>;
|
|
166
153
|
type MassIDAttributeScaleType = z.infer<typeof MassIDAttributeScaleTypeSchema>;
|
|
167
|
-
declare const MassIDAttributeContainerTypeSchema: z.ZodObject<{
|
|
168
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
number: "number";
|
|
170
|
-
date: "date";
|
|
171
|
-
boost_number: "boost_number";
|
|
172
|
-
boost_percentage: "boost_percentage";
|
|
173
|
-
}>>;
|
|
174
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
175
|
-
trait_type: z.ZodLiteral<"Container Type">;
|
|
176
|
-
value: z.ZodString;
|
|
177
|
-
}, z.core.$strict>;
|
|
178
|
-
type MassIDAttributeContainerType = z.infer<typeof MassIDAttributeContainerTypeSchema>;
|
|
179
154
|
declare const MassIDAttributePickUpDateSchema: z.ZodObject<{
|
|
180
155
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
181
156
|
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
@@ -183,6 +158,13 @@ declare const MassIDAttributePickUpDateSchema: z.ZodObject<{
|
|
|
183
158
|
display_type: z.ZodLiteral<"date">;
|
|
184
159
|
}, z.core.$strict>;
|
|
185
160
|
type MassIDAttributePickUpDate = z.infer<typeof MassIDAttributePickUpDateSchema>;
|
|
161
|
+
declare const MassIDAttributeDropOffDateSchema: z.ZodObject<{
|
|
162
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
164
|
+
value: z.ZodNumber;
|
|
165
|
+
display_type: z.ZodLiteral<"date">;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
type MassIDAttributeDropOffDate = z.infer<typeof MassIDAttributeDropOffDateSchema>;
|
|
186
168
|
declare const MassIDAttributeRecyclingDateSchema: z.ZodObject<{
|
|
187
169
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
188
170
|
trait_type: z.ZodLiteral<"Recycling Date">;
|
|
@@ -253,7 +235,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
253
235
|
boost_percentage: "boost_percentage";
|
|
254
236
|
}>>;
|
|
255
237
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
256
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
238
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
257
239
|
value: z.ZodString;
|
|
258
240
|
}, z.core.$strict>, z.ZodObject<{
|
|
259
241
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -265,17 +247,6 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
265
247
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
266
248
|
trait_type: z.ZodLiteral<"Recycling Method">;
|
|
267
249
|
value: z.ZodString;
|
|
268
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
269
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
270
|
-
number: "number";
|
|
271
|
-
date: "date";
|
|
272
|
-
boost_number: "boost_number";
|
|
273
|
-
boost_percentage: "boost_percentage";
|
|
274
|
-
}>>;
|
|
275
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
276
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
277
|
-
value: z.ZodNumber;
|
|
278
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
279
250
|
}, z.core.$strict>, z.ZodObject<{
|
|
280
251
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
281
252
|
number: "number";
|
|
@@ -294,7 +265,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
294
265
|
boost_percentage: "boost_percentage";
|
|
295
266
|
}>>;
|
|
296
267
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
268
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
298
269
|
value: z.ZodString;
|
|
299
270
|
}, z.core.$strict>, z.ZodObject<{
|
|
300
271
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -304,7 +275,7 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
304
275
|
boost_percentage: "boost_percentage";
|
|
305
276
|
}>>;
|
|
306
277
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
307
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
278
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
308
279
|
value: z.ZodString;
|
|
309
280
|
}, z.core.$strict>, z.ZodObject<{
|
|
310
281
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -327,18 +298,13 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
327
298
|
trait_type: z.ZodLiteral<"Scale Type">;
|
|
328
299
|
value: z.ZodString;
|
|
329
300
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
331
|
-
number: "number";
|
|
332
|
-
date: "date";
|
|
333
|
-
boost_number: "boost_number";
|
|
334
|
-
boost_percentage: "boost_percentage";
|
|
335
|
-
}>>;
|
|
336
301
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
trait_type: z.ZodLiteral<"
|
|
338
|
-
value: z.
|
|
302
|
+
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
303
|
+
value: z.ZodNumber;
|
|
304
|
+
display_type: z.ZodLiteral<"date">;
|
|
339
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
340
306
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
trait_type: z.ZodLiteral<"
|
|
307
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
342
308
|
value: z.ZodNumber;
|
|
343
309
|
display_type: z.ZodLiteral<"date">;
|
|
344
310
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -349,148 +315,162 @@ declare const MassIDAttributesSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObjec
|
|
|
349
315
|
}, z.core.$strict>]>>;
|
|
350
316
|
type MassIDAttributes = z.infer<typeof MassIDAttributesSchema>;
|
|
351
317
|
|
|
318
|
+
declare const IbamaWasteClassificationSchema: z.ZodString;
|
|
352
319
|
declare const MassIDLocalClassificationSchema: z.ZodObject<{
|
|
353
320
|
code: z.ZodString;
|
|
354
|
-
|
|
355
|
-
system: z.ZodEnum<{
|
|
356
|
-
IBAMA: "IBAMA";
|
|
357
|
-
}>;
|
|
321
|
+
system: z.ZodLiteral<"Ibama">;
|
|
358
322
|
}, z.core.$strict>;
|
|
323
|
+
type IbamaWasteClassification = z.infer<typeof IbamaWasteClassificationSchema>;
|
|
359
324
|
type MassIDLocalClassification = z.infer<typeof MassIDLocalClassificationSchema>;
|
|
360
|
-
declare const MassIDMeasurementUnitSchema: z.ZodEnum<{
|
|
361
|
-
kg: "kg";
|
|
362
|
-
ton: "ton";
|
|
363
|
-
}>;
|
|
364
|
-
type MassIDMeasurementUnit = z.infer<typeof MassIDMeasurementUnitSchema>;
|
|
365
325
|
declare const MassIDWastePropertiesSchema: z.ZodObject<{
|
|
366
326
|
type: z.ZodString;
|
|
367
327
|
subtype: z.ZodString;
|
|
368
328
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
369
329
|
code: z.ZodString;
|
|
370
|
-
|
|
371
|
-
system: z.ZodEnum<{
|
|
372
|
-
IBAMA: "IBAMA";
|
|
373
|
-
}>;
|
|
330
|
+
system: z.ZodLiteral<"Ibama">;
|
|
374
331
|
}, z.core.$strict>>;
|
|
375
|
-
measurement_unit: z.ZodEnum<{
|
|
376
|
-
kg: "kg";
|
|
377
|
-
ton: "ton";
|
|
378
|
-
}>;
|
|
379
332
|
net_weight: z.ZodNumber;
|
|
380
333
|
}, z.core.$strict>;
|
|
381
334
|
type MassIDWasteProperties = z.infer<typeof MassIDWastePropertiesSchema>;
|
|
382
|
-
declare const
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
CURRENCY: "CURRENCY";
|
|
386
|
-
PERCENTAGE: "PERCENTAGE";
|
|
387
|
-
COORDINATE: "COORDINATE";
|
|
335
|
+
declare const MassIDAttachmentTypeSchema: z.ZodEnum<{
|
|
336
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
337
|
+
"Transport Manifest": "Transport Manifest";
|
|
388
338
|
}>;
|
|
389
|
-
type
|
|
390
|
-
declare const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
KILOGRAM: "KILOGRAM";
|
|
396
|
-
DATE: "DATE";
|
|
397
|
-
CURRENCY: "CURRENCY";
|
|
398
|
-
PERCENTAGE: "PERCENTAGE";
|
|
399
|
-
COORDINATE: "COORDINATE";
|
|
400
|
-
}>>;
|
|
401
|
-
}, z.core.$strict>;
|
|
402
|
-
type EventAttribute = z.infer<typeof EventAttributeSchema>;
|
|
403
|
-
declare const EventAttachmentSchema: z.ZodObject<{
|
|
404
|
-
type: z.ZodString;
|
|
339
|
+
type MassIDAttachmentType = z.infer<typeof MassIDAttachmentTypeSchema>;
|
|
340
|
+
declare const MassIDAttachmentSchema: z.ZodObject<{
|
|
341
|
+
type: z.ZodEnum<{
|
|
342
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
343
|
+
"Transport Manifest": "Transport Manifest";
|
|
344
|
+
}>;
|
|
405
345
|
document_number: z.ZodOptional<z.ZodString>;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
346
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
347
|
+
event_id: z.ZodUUID;
|
|
409
348
|
}, z.core.$strict>;
|
|
410
|
-
type
|
|
411
|
-
declare const
|
|
349
|
+
type MassIDAttachment = z.infer<typeof MassIDAttachmentSchema>;
|
|
350
|
+
declare const MassIDEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
412
351
|
event_id: z.ZodUUID;
|
|
413
|
-
event_name: z.ZodString;
|
|
414
352
|
description: z.ZodOptional<z.ZodString>;
|
|
415
|
-
timestamp: z.
|
|
353
|
+
timestamp: z.ZodString;
|
|
416
354
|
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
417
355
|
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
418
356
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
424
|
-
KILOGRAM: "KILOGRAM";
|
|
425
|
-
DATE: "DATE";
|
|
426
|
-
CURRENCY: "CURRENCY";
|
|
427
|
-
PERCENTAGE: "PERCENTAGE";
|
|
428
|
-
COORDINATE: "COORDINATE";
|
|
429
|
-
}>>;
|
|
430
|
-
}, z.core.$strict>>>;
|
|
431
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
|
-
type: z.ZodString;
|
|
433
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
434
|
-
reference: z.ZodString;
|
|
435
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
436
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
437
|
-
}, z.core.$strict>>>;
|
|
438
|
-
}, z.core.$strict>;
|
|
439
|
-
type MassIDChainOfCustodyEvent = z.infer<typeof MassIDChainOfCustodyEventSchema>;
|
|
440
|
-
declare const MassIDChainOfCustodySchema: z.ZodObject<{
|
|
441
|
-
events: z.ZodArray<z.ZodObject<{
|
|
442
|
-
event_id: z.ZodUUID;
|
|
443
|
-
event_name: z.ZodString;
|
|
444
|
-
description: z.ZodOptional<z.ZodString>;
|
|
445
|
-
timestamp: z.ZodNumber;
|
|
446
|
-
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
447
|
-
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
448
|
-
weight: z.ZodOptional<z.ZodNumber>;
|
|
449
|
-
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
|
-
name: z.ZodString;
|
|
451
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
452
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
453
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
KILOGRAM: "KILOGRAM";
|
|
455
|
-
DATE: "DATE";
|
|
456
|
-
CURRENCY: "CURRENCY";
|
|
457
|
-
PERCENTAGE: "PERCENTAGE";
|
|
458
|
-
COORDINATE: "COORDINATE";
|
|
459
|
-
}>>;
|
|
460
|
-
}, z.core.$strict>>>;
|
|
461
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
|
-
type: z.ZodString;
|
|
463
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
464
|
-
reference: z.ZodString;
|
|
465
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
466
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
467
|
-
}, z.core.$strict>>>;
|
|
357
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
358
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
468
360
|
}, z.core.$strict>>;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
362
|
+
event_id: z.ZodUUID;
|
|
363
|
+
description: z.ZodOptional<z.ZodString>;
|
|
364
|
+
timestamp: z.ZodString;
|
|
365
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
366
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
367
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
369
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
371
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
372
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
373
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
374
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
379
|
+
event_id: z.ZodUUID;
|
|
380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
381
|
+
timestamp: z.ZodString;
|
|
382
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
383
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
384
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
386
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
387
|
+
event_id: z.ZodUUID;
|
|
388
|
+
description: z.ZodOptional<z.ZodString>;
|
|
389
|
+
timestamp: z.ZodString;
|
|
390
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
391
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
392
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
393
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
394
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
397
|
+
}, z.core.$strict>>;
|
|
398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
399
|
+
event_id: z.ZodUUID;
|
|
400
|
+
description: z.ZodOptional<z.ZodString>;
|
|
401
|
+
timestamp: z.ZodString;
|
|
402
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
403
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
404
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
405
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
406
|
+
}, z.core.$strict>], "event_name">;
|
|
407
|
+
type MassIDEvent = z.infer<typeof MassIDEventSchema>;
|
|
408
|
+
declare const MassIDEventsSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
409
|
+
event_id: z.ZodUUID;
|
|
410
|
+
description: z.ZodOptional<z.ZodString>;
|
|
411
|
+
timestamp: z.ZodString;
|
|
412
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
413
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
414
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
416
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strict>>;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
event_id: z.ZodUUID;
|
|
421
|
+
description: z.ZodOptional<z.ZodString>;
|
|
422
|
+
timestamp: z.ZodString;
|
|
423
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
424
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
425
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
427
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
429
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
430
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
431
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
432
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
437
|
+
event_id: z.ZodUUID;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
timestamp: z.ZodString;
|
|
440
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
441
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
442
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
+
event_id: z.ZodUUID;
|
|
446
|
+
description: z.ZodOptional<z.ZodString>;
|
|
447
|
+
timestamp: z.ZodString;
|
|
448
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
449
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
450
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
452
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
+
event_id: z.ZodUUID;
|
|
458
|
+
description: z.ZodOptional<z.ZodString>;
|
|
459
|
+
timestamp: z.ZodString;
|
|
460
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
461
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
462
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
464
|
+
}, z.core.$strict>], "event_name">>;
|
|
465
|
+
type MassIDEvents = z.infer<typeof MassIDEventsSchema>;
|
|
479
466
|
declare const MassIDDataSchema: z.ZodObject<{
|
|
480
467
|
waste_properties: z.ZodObject<{
|
|
481
468
|
type: z.ZodString;
|
|
482
469
|
subtype: z.ZodString;
|
|
483
470
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
484
471
|
code: z.ZodString;
|
|
485
|
-
|
|
486
|
-
system: z.ZodEnum<{
|
|
487
|
-
IBAMA: "IBAMA";
|
|
488
|
-
}>;
|
|
472
|
+
system: z.ZodLiteral<"Ibama">;
|
|
489
473
|
}, z.core.$strict>>;
|
|
490
|
-
measurement_unit: z.ZodEnum<{
|
|
491
|
-
kg: "kg";
|
|
492
|
-
ton: "ton";
|
|
493
|
-
}>;
|
|
494
474
|
net_weight: z.ZodNumber;
|
|
495
475
|
}, z.core.$strict>;
|
|
496
476
|
locations: z.ZodArray<z.ZodObject<{
|
|
@@ -505,62 +485,83 @@ declare const MassIDDataSchema: z.ZodObject<{
|
|
|
505
485
|
latitude: z.ZodNumber;
|
|
506
486
|
longitude: z.ZodNumber;
|
|
507
487
|
precision_level: z.ZodEnum<{
|
|
508
|
-
exact: "exact";
|
|
509
|
-
neighborhood: "neighborhood";
|
|
510
488
|
city: "city";
|
|
511
489
|
region: "region";
|
|
512
490
|
country: "country";
|
|
513
491
|
}>;
|
|
514
492
|
}, z.core.$strict>;
|
|
515
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
516
|
-
"Collection Point": "Collection Point";
|
|
517
|
-
"Recycling Facility": "Recycling Facility";
|
|
518
|
-
"Administrative Office": "Administrative Office";
|
|
519
|
-
Other: "Other";
|
|
520
|
-
}>>;
|
|
521
493
|
}, z.core.$strict>>;
|
|
522
494
|
participants: z.ZodArray<z.ZodObject<{
|
|
523
495
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
524
496
|
name: z.ZodString;
|
|
525
497
|
roles: z.ZodArray<z.ZodString>;
|
|
526
498
|
}, z.core.$strict>>;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
name: z.ZodString;
|
|
538
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
539
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
541
|
-
KILOGRAM: "KILOGRAM";
|
|
542
|
-
DATE: "DATE";
|
|
543
|
-
CURRENCY: "CURRENCY";
|
|
544
|
-
PERCENTAGE: "PERCENTAGE";
|
|
545
|
-
COORDINATE: "COORDINATE";
|
|
546
|
-
}>>;
|
|
547
|
-
}, z.core.$strict>>>;
|
|
548
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
-
type: z.ZodString;
|
|
550
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
551
|
-
reference: z.ZodString;
|
|
552
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
553
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
554
|
-
}, z.core.$strict>>>;
|
|
499
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
500
|
+
event_id: z.ZodUUID;
|
|
501
|
+
description: z.ZodOptional<z.ZodString>;
|
|
502
|
+
timestamp: z.ZodString;
|
|
503
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
504
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
505
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
507
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
555
509
|
}, z.core.$strict>>;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
510
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
511
|
+
event_id: z.ZodUUID;
|
|
512
|
+
description: z.ZodOptional<z.ZodString>;
|
|
513
|
+
timestamp: z.ZodString;
|
|
514
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
515
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
516
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
518
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
519
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
520
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
521
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
522
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
523
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
}, z.core.$strict>>;
|
|
527
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
528
|
+
event_id: z.ZodUUID;
|
|
529
|
+
description: z.ZodOptional<z.ZodString>;
|
|
530
|
+
timestamp: z.ZodString;
|
|
531
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
532
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
533
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
535
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
536
|
+
event_id: z.ZodUUID;
|
|
537
|
+
description: z.ZodOptional<z.ZodString>;
|
|
538
|
+
timestamp: z.ZodString;
|
|
539
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
540
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
541
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
542
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
543
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
544
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
545
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
548
|
+
event_id: z.ZodUUID;
|
|
549
|
+
description: z.ZodOptional<z.ZodString>;
|
|
550
|
+
timestamp: z.ZodString;
|
|
551
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
552
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
553
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
555
|
+
}, z.core.$strict>], "event_name">>;
|
|
556
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
557
|
+
type: z.ZodEnum<{
|
|
558
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
559
|
+
"Transport Manifest": "Transport Manifest";
|
|
560
|
+
}>;
|
|
561
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
562
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
563
|
+
event_id: z.ZodUUID;
|
|
564
|
+
}, z.core.$strict>>>;
|
|
564
565
|
}, z.core.$strict>;
|
|
565
566
|
type MassIDData = z.infer<typeof MassIDDataSchema>;
|
|
566
567
|
|
|
@@ -572,30 +573,11 @@ declare const MassIDIpfsSchemaMeta: {
|
|
|
572
573
|
};
|
|
573
574
|
declare const MassIDIpfsSchema: z.ZodObject<{
|
|
574
575
|
$schema: z.ZodURL;
|
|
575
|
-
created_at: z.
|
|
576
|
+
created_at: z.ZodString;
|
|
576
577
|
external_id: z.ZodUUID;
|
|
577
578
|
external_url: z.ZodURL;
|
|
578
579
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
579
580
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
580
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
581
|
-
name: z.ZodString;
|
|
582
|
-
id: z.ZodUUID;
|
|
583
|
-
}, z.core.$strict>>;
|
|
584
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
585
|
-
target_uri: z.ZodString;
|
|
586
|
-
type: z.ZodEnum<{
|
|
587
|
-
collection: "collection";
|
|
588
|
-
credit: "credit";
|
|
589
|
-
"gas-id": "gas-id";
|
|
590
|
-
"mass-id": "mass-id";
|
|
591
|
-
"mass-id-audit": "mass-id-audit";
|
|
592
|
-
methodology: "methodology";
|
|
593
|
-
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
594
|
-
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
595
|
-
"recycled-id": "recycled-id";
|
|
596
|
-
}>;
|
|
597
|
-
description: z.ZodOptional<z.ZodString>;
|
|
598
|
-
}, z.core.$strict>>>;
|
|
599
581
|
environment: z.ZodOptional<z.ZodObject<{
|
|
600
582
|
blockchain_network: z.ZodEnum<{
|
|
601
583
|
mainnet: "mainnet";
|
|
@@ -613,8 +595,11 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
613
595
|
}, z.core.$strict>>;
|
|
614
596
|
blockchain: z.ZodObject<{
|
|
615
597
|
smart_contract_address: z.ZodString;
|
|
616
|
-
chain_id: z.
|
|
617
|
-
network_name: z.
|
|
598
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
599
|
+
network_name: z.ZodEnum<{
|
|
600
|
+
Polygon: "Polygon";
|
|
601
|
+
Amoy: "Amoy";
|
|
602
|
+
}>;
|
|
618
603
|
token_id: z.ZodString;
|
|
619
604
|
}, z.core.$strict>;
|
|
620
605
|
name: z.ZodString;
|
|
@@ -629,7 +614,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
629
614
|
description: z.ZodOptional<z.ZodString>;
|
|
630
615
|
}, z.core.$strict>>>;
|
|
631
616
|
schema: z.ZodObject<{
|
|
632
|
-
hash: z.
|
|
617
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
633
618
|
version: z.ZodString;
|
|
634
619
|
type: z.ZodLiteral<"MassID">;
|
|
635
620
|
}, z.core.$strict>;
|
|
@@ -696,7 +681,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
696
681
|
boost_percentage: "boost_percentage";
|
|
697
682
|
}>>;
|
|
698
683
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
699
|
-
trait_type: z.ZodLiteral<"Vehicle Type">;
|
|
684
|
+
trait_type: z.ZodLiteral<"Pick-up Vehicle Type">;
|
|
700
685
|
value: z.ZodString;
|
|
701
686
|
}, z.core.$strict>, z.ZodObject<{
|
|
702
687
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -708,17 +693,6 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
708
693
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
709
694
|
trait_type: z.ZodLiteral<"Recycling Method">;
|
|
710
695
|
value: z.ZodString;
|
|
711
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
712
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
713
|
-
number: "number";
|
|
714
|
-
date: "date";
|
|
715
|
-
boost_number: "boost_number";
|
|
716
|
-
boost_percentage: "boost_percentage";
|
|
717
|
-
}>>;
|
|
718
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
719
|
-
trait_type: z.ZodLiteral<"Processing Time (hours)">;
|
|
720
|
-
value: z.ZodNumber;
|
|
721
|
-
trait_description: z.ZodOptional<z.ZodString>;
|
|
722
696
|
}, z.core.$strict>, z.ZodObject<{
|
|
723
697
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
724
698
|
number: "number";
|
|
@@ -737,7 +711,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
737
711
|
boost_percentage: "boost_percentage";
|
|
738
712
|
}>>;
|
|
739
713
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
740
|
-
trait_type: z.ZodLiteral<"Recycling Manifest
|
|
714
|
+
trait_type: z.ZodLiteral<"Recycling Manifest Number">;
|
|
741
715
|
value: z.ZodString;
|
|
742
716
|
}, z.core.$strict>, z.ZodObject<{
|
|
743
717
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -747,7 +721,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
747
721
|
boost_percentage: "boost_percentage";
|
|
748
722
|
}>>;
|
|
749
723
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
750
|
-
trait_type: z.ZodLiteral<"Transport Manifest
|
|
724
|
+
trait_type: z.ZodLiteral<"Transport Manifest Number">;
|
|
751
725
|
value: z.ZodString;
|
|
752
726
|
}, z.core.$strict>, z.ZodObject<{
|
|
753
727
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -770,18 +744,13 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
770
744
|
trait_type: z.ZodLiteral<"Scale Type">;
|
|
771
745
|
value: z.ZodString;
|
|
772
746
|
}, z.core.$strict>, z.ZodObject<{
|
|
773
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
774
|
-
number: "number";
|
|
775
|
-
date: "date";
|
|
776
|
-
boost_number: "boost_number";
|
|
777
|
-
boost_percentage: "boost_percentage";
|
|
778
|
-
}>>;
|
|
779
747
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
780
|
-
trait_type: z.ZodLiteral<"
|
|
781
|
-
value: z.
|
|
748
|
+
trait_type: z.ZodLiteral<"Pick-up Date">;
|
|
749
|
+
value: z.ZodNumber;
|
|
750
|
+
display_type: z.ZodLiteral<"date">;
|
|
782
751
|
}, z.core.$strict>, z.ZodObject<{
|
|
783
752
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
784
|
-
trait_type: z.ZodLiteral<"
|
|
753
|
+
trait_type: z.ZodLiteral<"Drop-off Date">;
|
|
785
754
|
value: z.ZodNumber;
|
|
786
755
|
display_type: z.ZodLiteral<"date">;
|
|
787
756
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -796,15 +765,8 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
796
765
|
subtype: z.ZodString;
|
|
797
766
|
local_classification: z.ZodOptional<z.ZodObject<{
|
|
798
767
|
code: z.ZodString;
|
|
799
|
-
|
|
800
|
-
system: z.ZodEnum<{
|
|
801
|
-
IBAMA: "IBAMA";
|
|
802
|
-
}>;
|
|
768
|
+
system: z.ZodLiteral<"Ibama">;
|
|
803
769
|
}, z.core.$strict>>;
|
|
804
|
-
measurement_unit: z.ZodEnum<{
|
|
805
|
-
kg: "kg";
|
|
806
|
-
ton: "ton";
|
|
807
|
-
}>;
|
|
808
770
|
net_weight: z.ZodNumber;
|
|
809
771
|
}, z.core.$strict>;
|
|
810
772
|
locations: z.ZodArray<z.ZodObject<{
|
|
@@ -819,62 +781,83 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
819
781
|
latitude: z.ZodNumber;
|
|
820
782
|
longitude: z.ZodNumber;
|
|
821
783
|
precision_level: z.ZodEnum<{
|
|
822
|
-
exact: "exact";
|
|
823
|
-
neighborhood: "neighborhood";
|
|
824
784
|
city: "city";
|
|
825
785
|
region: "region";
|
|
826
786
|
country: "country";
|
|
827
787
|
}>;
|
|
828
788
|
}, z.core.$strict>;
|
|
829
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
830
|
-
"Collection Point": "Collection Point";
|
|
831
|
-
"Recycling Facility": "Recycling Facility";
|
|
832
|
-
"Administrative Office": "Administrative Office";
|
|
833
|
-
Other: "Other";
|
|
834
|
-
}>>;
|
|
835
789
|
}, z.core.$strict>>;
|
|
836
790
|
participants: z.ZodArray<z.ZodObject<{
|
|
837
791
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
838
792
|
name: z.ZodString;
|
|
839
793
|
roles: z.ZodArray<z.ZodString>;
|
|
840
794
|
}, z.core.$strict>>;
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
name: z.ZodString;
|
|
852
|
-
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
853
|
-
preserved_sensitivity: z.ZodOptional<z.ZodBoolean>;
|
|
854
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
855
|
-
KILOGRAM: "KILOGRAM";
|
|
856
|
-
DATE: "DATE";
|
|
857
|
-
CURRENCY: "CURRENCY";
|
|
858
|
-
PERCENTAGE: "PERCENTAGE";
|
|
859
|
-
COORDINATE: "COORDINATE";
|
|
860
|
-
}>>;
|
|
861
|
-
}, z.core.$strict>>>;
|
|
862
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
863
|
-
type: z.ZodString;
|
|
864
|
-
document_number: z.ZodOptional<z.ZodString>;
|
|
865
|
-
reference: z.ZodString;
|
|
866
|
-
issue_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
867
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
868
|
-
}, z.core.$strict>>>;
|
|
795
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
796
|
+
event_id: z.ZodUUID;
|
|
797
|
+
description: z.ZodOptional<z.ZodString>;
|
|
798
|
+
timestamp: z.ZodString;
|
|
799
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
800
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
801
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
event_name: z.ZodLiteral<"Pick-up">;
|
|
803
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
804
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
869
805
|
}, z.core.$strict>>;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
806
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
807
|
+
event_id: z.ZodUUID;
|
|
808
|
+
description: z.ZodOptional<z.ZodString>;
|
|
809
|
+
timestamp: z.ZodString;
|
|
810
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
811
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
812
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
813
|
+
event_name: z.ZodLiteral<"Weighing">;
|
|
814
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
815
|
+
weighing_capture_method: z.ZodOptional<z.ZodString>;
|
|
816
|
+
scale_type: z.ZodOptional<z.ZodString>;
|
|
817
|
+
container_type: z.ZodOptional<z.ZodString>;
|
|
818
|
+
vehicle_type: z.ZodOptional<z.ZodString>;
|
|
819
|
+
container_capacity: z.ZodOptional<z.ZodNumber>;
|
|
820
|
+
gross_weight: z.ZodOptional<z.ZodNumber>;
|
|
821
|
+
tare: z.ZodOptional<z.ZodNumber>;
|
|
822
|
+
}, z.core.$strict>>;
|
|
823
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
824
|
+
event_id: z.ZodUUID;
|
|
825
|
+
description: z.ZodOptional<z.ZodString>;
|
|
826
|
+
timestamp: z.ZodString;
|
|
827
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
828
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
829
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
event_name: z.ZodLiteral<"Drop-off">;
|
|
831
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
832
|
+
event_id: z.ZodUUID;
|
|
833
|
+
description: z.ZodOptional<z.ZodString>;
|
|
834
|
+
timestamp: z.ZodString;
|
|
835
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
836
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
837
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
838
|
+
event_name: z.ZodLiteral<"Sorting">;
|
|
839
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
840
|
+
initial_weight: z.ZodOptional<z.ZodNumber>;
|
|
841
|
+
deducted_weight: z.ZodOptional<z.ZodNumber>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
844
|
+
event_id: z.ZodUUID;
|
|
845
|
+
description: z.ZodOptional<z.ZodString>;
|
|
846
|
+
timestamp: z.ZodString;
|
|
847
|
+
participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
848
|
+
location_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
849
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
event_name: z.ZodLiteral<"Recycling">;
|
|
851
|
+
}, z.core.$strict>], "event_name">>;
|
|
852
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
853
|
+
type: z.ZodEnum<{
|
|
854
|
+
"Recycling Manifest": "Recycling Manifest";
|
|
855
|
+
"Transport Manifest": "Transport Manifest";
|
|
856
|
+
}>;
|
|
857
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
858
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
859
|
+
event_id: z.ZodUUID;
|
|
860
|
+
}, z.core.$strict>>>;
|
|
878
861
|
}, z.core.$strict>;
|
|
879
862
|
}, z.core.$strict>;
|
|
880
863
|
type MassIDIpfs = z.infer<typeof MassIDIpfsSchema>;
|
|
@@ -1176,19 +1159,11 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1176
1159
|
latitude: z.ZodNumber;
|
|
1177
1160
|
longitude: z.ZodNumber;
|
|
1178
1161
|
precision_level: z.ZodEnum<{
|
|
1179
|
-
exact: "exact";
|
|
1180
|
-
neighborhood: "neighborhood";
|
|
1181
1162
|
city: "city";
|
|
1182
1163
|
region: "region";
|
|
1183
1164
|
country: "country";
|
|
1184
1165
|
}>;
|
|
1185
1166
|
}, z.core.$strict>;
|
|
1186
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1187
|
-
"Collection Point": "Collection Point";
|
|
1188
|
-
"Recycling Facility": "Recycling Facility";
|
|
1189
|
-
"Administrative Office": "Administrative Office";
|
|
1190
|
-
Other: "Other";
|
|
1191
|
-
}>>;
|
|
1192
1167
|
}, z.core.$strict>;
|
|
1193
1168
|
prevented_emissions_calculation: z.ZodObject<{
|
|
1194
1169
|
formula: z.ZodString;
|
|
@@ -1233,30 +1208,11 @@ declare const GasIDIpfsSchemaMeta: {
|
|
|
1233
1208
|
};
|
|
1234
1209
|
declare const GasIDIpfsSchema: z.ZodObject<{
|
|
1235
1210
|
$schema: z.ZodURL;
|
|
1236
|
-
created_at: z.
|
|
1211
|
+
created_at: z.ZodString;
|
|
1237
1212
|
external_id: z.ZodUUID;
|
|
1238
1213
|
external_url: z.ZodURL;
|
|
1239
1214
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1240
1215
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1241
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
1242
|
-
name: z.ZodString;
|
|
1243
|
-
id: z.ZodUUID;
|
|
1244
|
-
}, z.core.$strict>>;
|
|
1245
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1246
|
-
target_uri: z.ZodString;
|
|
1247
|
-
type: z.ZodEnum<{
|
|
1248
|
-
collection: "collection";
|
|
1249
|
-
credit: "credit";
|
|
1250
|
-
"gas-id": "gas-id";
|
|
1251
|
-
"mass-id": "mass-id";
|
|
1252
|
-
"mass-id-audit": "mass-id-audit";
|
|
1253
|
-
methodology: "methodology";
|
|
1254
|
-
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
1255
|
-
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
1256
|
-
"recycled-id": "recycled-id";
|
|
1257
|
-
}>;
|
|
1258
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1259
|
-
}, z.core.$strict>>>;
|
|
1260
1216
|
environment: z.ZodOptional<z.ZodObject<{
|
|
1261
1217
|
blockchain_network: z.ZodEnum<{
|
|
1262
1218
|
mainnet: "mainnet";
|
|
@@ -1274,8 +1230,11 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1274
1230
|
}, z.core.$strict>>;
|
|
1275
1231
|
blockchain: z.ZodObject<{
|
|
1276
1232
|
smart_contract_address: z.ZodString;
|
|
1277
|
-
chain_id: z.
|
|
1278
|
-
network_name: z.
|
|
1233
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
1234
|
+
network_name: z.ZodEnum<{
|
|
1235
|
+
Polygon: "Polygon";
|
|
1236
|
+
Amoy: "Amoy";
|
|
1237
|
+
}>;
|
|
1279
1238
|
token_id: z.ZodString;
|
|
1280
1239
|
}, z.core.$strict>;
|
|
1281
1240
|
name: z.ZodString;
|
|
@@ -1290,7 +1249,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1290
1249
|
description: z.ZodOptional<z.ZodString>;
|
|
1291
1250
|
}, z.core.$strict>>>;
|
|
1292
1251
|
schema: z.ZodObject<{
|
|
1293
|
-
hash: z.
|
|
1252
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1294
1253
|
version: z.ZodString;
|
|
1295
1254
|
type: z.ZodLiteral<"GasID">;
|
|
1296
1255
|
}, z.core.$strict>;
|
|
@@ -1442,19 +1401,11 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1442
1401
|
latitude: z.ZodNumber;
|
|
1443
1402
|
longitude: z.ZodNumber;
|
|
1444
1403
|
precision_level: z.ZodEnum<{
|
|
1445
|
-
exact: "exact";
|
|
1446
|
-
neighborhood: "neighborhood";
|
|
1447
1404
|
city: "city";
|
|
1448
1405
|
region: "region";
|
|
1449
1406
|
country: "country";
|
|
1450
1407
|
}>;
|
|
1451
1408
|
}, z.core.$strict>;
|
|
1452
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1453
|
-
"Collection Point": "Collection Point";
|
|
1454
|
-
"Recycling Facility": "Recycling Facility";
|
|
1455
|
-
"Administrative Office": "Administrative Office";
|
|
1456
|
-
Other: "Other";
|
|
1457
|
-
}>>;
|
|
1458
1409
|
}, z.core.$strict>;
|
|
1459
1410
|
prevented_emissions_calculation: z.ZodObject<{
|
|
1460
1411
|
formula: z.ZodString;
|
|
@@ -1748,19 +1699,11 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1748
1699
|
latitude: z.ZodNumber;
|
|
1749
1700
|
longitude: z.ZodNumber;
|
|
1750
1701
|
precision_level: z.ZodEnum<{
|
|
1751
|
-
exact: "exact";
|
|
1752
|
-
neighborhood: "neighborhood";
|
|
1753
1702
|
city: "city";
|
|
1754
1703
|
region: "region";
|
|
1755
1704
|
country: "country";
|
|
1756
1705
|
}>;
|
|
1757
1706
|
}, z.core.$strict>;
|
|
1758
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1759
|
-
"Collection Point": "Collection Point";
|
|
1760
|
-
"Recycling Facility": "Recycling Facility";
|
|
1761
|
-
"Administrative Office": "Administrative Office";
|
|
1762
|
-
Other: "Other";
|
|
1763
|
-
}>>;
|
|
1764
1707
|
}, z.core.$strict>;
|
|
1765
1708
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1766
1709
|
participant_id: z.ZodUUID;
|
|
@@ -1795,30 +1738,11 @@ declare const RecycledIDIpfsSchemaMeta: {
|
|
|
1795
1738
|
};
|
|
1796
1739
|
declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
1797
1740
|
$schema: z.ZodURL;
|
|
1798
|
-
created_at: z.
|
|
1741
|
+
created_at: z.ZodString;
|
|
1799
1742
|
external_id: z.ZodUUID;
|
|
1800
1743
|
external_url: z.ZodURL;
|
|
1801
1744
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1802
1745
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1803
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
1804
|
-
name: z.ZodString;
|
|
1805
|
-
id: z.ZodUUID;
|
|
1806
|
-
}, z.core.$strict>>;
|
|
1807
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1808
|
-
target_uri: z.ZodString;
|
|
1809
|
-
type: z.ZodEnum<{
|
|
1810
|
-
collection: "collection";
|
|
1811
|
-
credit: "credit";
|
|
1812
|
-
"gas-id": "gas-id";
|
|
1813
|
-
"mass-id": "mass-id";
|
|
1814
|
-
"mass-id-audit": "mass-id-audit";
|
|
1815
|
-
methodology: "methodology";
|
|
1816
|
-
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
1817
|
-
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
1818
|
-
"recycled-id": "recycled-id";
|
|
1819
|
-
}>;
|
|
1820
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1821
|
-
}, z.core.$strict>>>;
|
|
1822
1746
|
environment: z.ZodOptional<z.ZodObject<{
|
|
1823
1747
|
blockchain_network: z.ZodEnum<{
|
|
1824
1748
|
mainnet: "mainnet";
|
|
@@ -1836,8 +1760,11 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1836
1760
|
}, z.core.$strict>>;
|
|
1837
1761
|
blockchain: z.ZodObject<{
|
|
1838
1762
|
smart_contract_address: z.ZodString;
|
|
1839
|
-
chain_id: z.
|
|
1840
|
-
network_name: z.
|
|
1763
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
1764
|
+
network_name: z.ZodEnum<{
|
|
1765
|
+
Polygon: "Polygon";
|
|
1766
|
+
Amoy: "Amoy";
|
|
1767
|
+
}>;
|
|
1841
1768
|
token_id: z.ZodString;
|
|
1842
1769
|
}, z.core.$strict>;
|
|
1843
1770
|
name: z.ZodString;
|
|
@@ -1852,7 +1779,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1852
1779
|
description: z.ZodOptional<z.ZodString>;
|
|
1853
1780
|
}, z.core.$strict>>>;
|
|
1854
1781
|
schema: z.ZodObject<{
|
|
1855
|
-
hash: z.
|
|
1782
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1856
1783
|
version: z.ZodString;
|
|
1857
1784
|
type: z.ZodLiteral<"RecycledID">;
|
|
1858
1785
|
}, z.core.$strict>;
|
|
@@ -1993,19 +1920,11 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1993
1920
|
latitude: z.ZodNumber;
|
|
1994
1921
|
longitude: z.ZodNumber;
|
|
1995
1922
|
precision_level: z.ZodEnum<{
|
|
1996
|
-
exact: "exact";
|
|
1997
|
-
neighborhood: "neighborhood";
|
|
1998
1923
|
city: "city";
|
|
1999
1924
|
region: "region";
|
|
2000
1925
|
country: "country";
|
|
2001
1926
|
}>;
|
|
2002
1927
|
}, z.core.$strict>;
|
|
2003
|
-
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
2004
|
-
"Collection Point": "Collection Point";
|
|
2005
|
-
"Recycling Facility": "Recycling Facility";
|
|
2006
|
-
"Administrative Office": "Administrative Office";
|
|
2007
|
-
Other: "Other";
|
|
2008
|
-
}>>;
|
|
2009
1928
|
}, z.core.$strict>;
|
|
2010
1929
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
2011
1930
|
participant_id: z.ZodUUID;
|
|
@@ -2077,8 +1996,6 @@ declare const ParticipantSchema: z.ZodObject<{
|
|
|
2077
1996
|
type Participant = z.infer<typeof ParticipantSchema>;
|
|
2078
1997
|
|
|
2079
1998
|
declare const PrecisionLevelSchema: z.ZodEnum<{
|
|
2080
|
-
exact: "exact";
|
|
2081
|
-
neighborhood: "neighborhood";
|
|
2082
1999
|
city: "city";
|
|
2083
2000
|
region: "region";
|
|
2084
2001
|
country: "country";
|
|
@@ -2088,8 +2005,6 @@ declare const CoordinatesSchema: z.ZodObject<{
|
|
|
2088
2005
|
latitude: z.ZodNumber;
|
|
2089
2006
|
longitude: z.ZodNumber;
|
|
2090
2007
|
precision_level: z.ZodEnum<{
|
|
2091
|
-
exact: "exact";
|
|
2092
|
-
neighborhood: "neighborhood";
|
|
2093
2008
|
city: "city";
|
|
2094
2009
|
region: "region";
|
|
2095
2010
|
country: "country";
|
|
@@ -2108,19 +2023,11 @@ declare const LocationSchema: z.ZodObject<{
|
|
|
2108
2023
|
latitude: z.ZodNumber;
|
|
2109
2024
|
longitude: z.ZodNumber;
|
|
2110
2025
|
precision_level: z.ZodEnum<{
|
|
2111
|
-
exact: "exact";
|
|
2112
|
-
neighborhood: "neighborhood";
|
|
2113
2026
|
city: "city";
|
|
2114
2027
|
region: "region";
|
|
2115
2028
|
country: "country";
|
|
2116
2029
|
}>;
|
|
2117
2030
|
}, 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
2031
|
}, z.core.$strict>;
|
|
2125
2032
|
type Location = z.infer<typeof LocationSchema>;
|
|
2126
2033
|
|
|
@@ -2221,7 +2128,7 @@ declare const ParticipantRewardsSchema: z.ZodObject<{
|
|
|
2221
2128
|
type ParticipantRewards = z.infer<typeof ParticipantRewardsSchema>;
|
|
2222
2129
|
|
|
2223
2130
|
declare const SchemaInfoSchema: z.ZodObject<{
|
|
2224
|
-
hash: z.
|
|
2131
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2225
2132
|
type: z.ZodEnum<{
|
|
2226
2133
|
MassID: "MassID";
|
|
2227
2134
|
"MassID Audit": "MassID Audit";
|
|
@@ -2236,27 +2143,6 @@ declare const SchemaInfoSchema: z.ZodObject<{
|
|
|
2236
2143
|
version: z.ZodString;
|
|
2237
2144
|
}, z.core.$strict>;
|
|
2238
2145
|
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
2146
|
declare const RecordEnvironmentSchema: z.ZodObject<{
|
|
2261
2147
|
blockchain_network: z.ZodEnum<{
|
|
2262
2148
|
mainnet: "mainnet";
|
|
@@ -2276,7 +2162,7 @@ type RecordEnvironment = z.infer<typeof RecordEnvironmentSchema>;
|
|
|
2276
2162
|
declare const BaseIpfsSchema: z.ZodObject<{
|
|
2277
2163
|
$schema: z.ZodURL;
|
|
2278
2164
|
schema: z.ZodObject<{
|
|
2279
|
-
hash: z.
|
|
2165
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2280
2166
|
type: z.ZodEnum<{
|
|
2281
2167
|
MassID: "MassID";
|
|
2282
2168
|
"MassID Audit": "MassID Audit";
|
|
@@ -2290,30 +2176,11 @@ declare const BaseIpfsSchema: z.ZodObject<{
|
|
|
2290
2176
|
}>;
|
|
2291
2177
|
version: z.ZodString;
|
|
2292
2178
|
}, z.core.$strict>;
|
|
2293
|
-
created_at: z.
|
|
2179
|
+
created_at: z.ZodString;
|
|
2294
2180
|
external_id: z.ZodUUID;
|
|
2295
2181
|
external_url: z.ZodURL;
|
|
2296
2182
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2297
2183
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2298
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
2299
|
-
name: z.ZodString;
|
|
2300
|
-
id: z.ZodUUID;
|
|
2301
|
-
}, z.core.$strict>>;
|
|
2302
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2303
|
-
target_uri: z.ZodString;
|
|
2304
|
-
type: z.ZodEnum<{
|
|
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
2184
|
environment: z.ZodOptional<z.ZodObject<{
|
|
2318
2185
|
blockchain_network: z.ZodEnum<{
|
|
2319
2186
|
mainnet: "mainnet";
|
|
@@ -2343,8 +2210,11 @@ declare const NftSchemaTypeSchema: z.ZodEnum<{
|
|
|
2343
2210
|
type NftSchemaType = z.infer<typeof NftSchemaTypeSchema>;
|
|
2344
2211
|
declare const BlockchainReferenceSchema: z.ZodObject<{
|
|
2345
2212
|
smart_contract_address: z.ZodString;
|
|
2346
|
-
chain_id: z.
|
|
2347
|
-
network_name: z.
|
|
2213
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2214
|
+
network_name: z.ZodEnum<{
|
|
2215
|
+
Polygon: "Polygon";
|
|
2216
|
+
Amoy: "Amoy";
|
|
2217
|
+
}>;
|
|
2348
2218
|
token_id: z.ZodString;
|
|
2349
2219
|
}, z.core.$strict>;
|
|
2350
2220
|
type BlockchainReference = z.infer<typeof BlockchainReferenceSchema>;
|
|
@@ -2368,30 +2238,11 @@ declare const NftAttributeSchema: z.ZodObject<{
|
|
|
2368
2238
|
type NftAttribute = z.infer<typeof NftAttributeSchema>;
|
|
2369
2239
|
declare const NftIpfsSchema: z.ZodObject<{
|
|
2370
2240
|
$schema: z.ZodURL;
|
|
2371
|
-
created_at: z.
|
|
2241
|
+
created_at: z.ZodString;
|
|
2372
2242
|
external_id: z.ZodUUID;
|
|
2373
2243
|
external_url: z.ZodURL;
|
|
2374
2244
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2375
2245
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2376
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
2377
|
-
name: z.ZodString;
|
|
2378
|
-
id: z.ZodUUID;
|
|
2379
|
-
}, z.core.$strict>>;
|
|
2380
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2381
|
-
target_uri: z.ZodString;
|
|
2382
|
-
type: z.ZodEnum<{
|
|
2383
|
-
collection: "collection";
|
|
2384
|
-
credit: "credit";
|
|
2385
|
-
"gas-id": "gas-id";
|
|
2386
|
-
"mass-id": "mass-id";
|
|
2387
|
-
"mass-id-audit": "mass-id-audit";
|
|
2388
|
-
methodology: "methodology";
|
|
2389
|
-
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
2390
|
-
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
2391
|
-
"recycled-id": "recycled-id";
|
|
2392
|
-
}>;
|
|
2393
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2394
|
-
}, z.core.$strict>>>;
|
|
2395
2246
|
environment: z.ZodOptional<z.ZodObject<{
|
|
2396
2247
|
blockchain_network: z.ZodEnum<{
|
|
2397
2248
|
mainnet: "mainnet";
|
|
@@ -2409,7 +2260,7 @@ declare const NftIpfsSchema: z.ZodObject<{
|
|
|
2409
2260
|
}, z.core.$strict>>;
|
|
2410
2261
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2411
2262
|
schema: z.ZodObject<{
|
|
2412
|
-
hash: z.
|
|
2263
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2413
2264
|
version: z.ZodString;
|
|
2414
2265
|
type: z.ZodEnum<{
|
|
2415
2266
|
MassID: "MassID";
|
|
@@ -2421,8 +2272,11 @@ declare const NftIpfsSchema: z.ZodObject<{
|
|
|
2421
2272
|
}, z.core.$strict>;
|
|
2422
2273
|
blockchain: z.ZodObject<{
|
|
2423
2274
|
smart_contract_address: z.ZodString;
|
|
2424
|
-
chain_id: z.
|
|
2425
|
-
network_name: z.
|
|
2275
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2276
|
+
network_name: z.ZodEnum<{
|
|
2277
|
+
Polygon: "Polygon";
|
|
2278
|
+
Amoy: "Amoy";
|
|
2279
|
+
}>;
|
|
2426
2280
|
token_id: z.ZodString;
|
|
2427
2281
|
}, z.core.$strict>;
|
|
2428
2282
|
name: z.ZodString;
|
|
@@ -2454,7 +2308,7 @@ declare const UuidSchema: z.ZodUUID;
|
|
|
2454
2308
|
type Uuid = z.infer<typeof UuidSchema>;
|
|
2455
2309
|
declare const EthereumAddressSchema: z.ZodString;
|
|
2456
2310
|
type EthereumAddress = z.infer<typeof EthereumAddressSchema>;
|
|
2457
|
-
declare const IsoTimestampSchema: z.
|
|
2311
|
+
declare const IsoTimestampSchema: z.ZodString;
|
|
2458
2312
|
type IsoTimestamp = z.infer<typeof IsoTimestampSchema>;
|
|
2459
2313
|
declare const IsoDateSchema: z.ZodISODate;
|
|
2460
2314
|
type IsoDate = z.infer<typeof IsoDateSchema>;
|
|
@@ -2468,6 +2322,8 @@ declare const LatitudeSchema: z.ZodNumber;
|
|
|
2468
2322
|
type Latitude = z.infer<typeof LatitudeSchema>;
|
|
2469
2323
|
declare const LongitudeSchema: z.ZodNumber;
|
|
2470
2324
|
type Longitude = z.infer<typeof LongitudeSchema>;
|
|
2325
|
+
declare const NonNegativeFloatSchema: z.ZodNumber;
|
|
2326
|
+
type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
|
|
2471
2327
|
declare const WeightKgSchema: z.ZodNumber;
|
|
2472
2328
|
type WeightKg = z.infer<typeof WeightKgSchema>;
|
|
2473
2329
|
declare const NonEmptyStringSchema: z.ZodString;
|
|
@@ -2496,23 +2352,22 @@ declare const ParticipantRoleSchema: z.ZodString;
|
|
|
2496
2352
|
type ParticipantRole = z.infer<typeof ParticipantRoleSchema>;
|
|
2497
2353
|
declare const ParticipantNameSchema: z.ZodString;
|
|
2498
2354
|
type ParticipantName = z.infer<typeof ParticipantNameSchema>;
|
|
2499
|
-
declare const
|
|
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;
|
|
2355
|
+
declare const BlockchainChainIdSchema: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2507
2356
|
type BlockchainChainId = z.infer<typeof BlockchainChainIdSchema>;
|
|
2508
|
-
declare const BlockchainNetworkNameSchema: z.
|
|
2357
|
+
declare const BlockchainNetworkNameSchema: z.ZodEnum<{
|
|
2358
|
+
Polygon: "Polygon";
|
|
2359
|
+
Amoy: "Amoy";
|
|
2360
|
+
}>;
|
|
2509
2361
|
type BlockchainNetworkName = z.infer<typeof BlockchainNetworkNameSchema>;
|
|
2510
2362
|
declare const SmartContractAddressSchema: z.ZodString;
|
|
2511
2363
|
type SmartContractAddress = z.infer<typeof SmartContractAddressSchema>;
|
|
2512
2364
|
declare const SmartContractSchema: z.ZodObject<{
|
|
2513
2365
|
address: z.ZodString;
|
|
2514
|
-
chain_id: z.
|
|
2515
|
-
network_name: z.
|
|
2366
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2367
|
+
network_name: z.ZodEnum<{
|
|
2368
|
+
Polygon: "Polygon";
|
|
2369
|
+
Amoy: "Amoy";
|
|
2370
|
+
}>;
|
|
2516
2371
|
}, z.core.$strict>;
|
|
2517
2372
|
type SmartContract = z.infer<typeof SmartContractSchema>;
|
|
2518
2373
|
declare const PercentageSchema: z.ZodNumber;
|
|
@@ -2521,8 +2376,6 @@ declare const NonNegativeIntegerSchema: z.ZodNumber;
|
|
|
2521
2376
|
type NonNegativeInteger = z.infer<typeof NonNegativeIntegerSchema>;
|
|
2522
2377
|
declare const PositiveIntegerSchema: z.ZodNumber;
|
|
2523
2378
|
type PositiveInteger = z.infer<typeof PositiveIntegerSchema>;
|
|
2524
|
-
declare const NonNegativeFloatSchema: z.ZodNumber;
|
|
2525
|
-
type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
|
|
2526
2379
|
declare const CreditTypeSchema: z.ZodString;
|
|
2527
2380
|
type CreditType = z.infer<typeof CreditTypeSchema>;
|
|
2528
2381
|
declare const CreditAmountSchema: z.ZodNumber;
|
|
@@ -2541,8 +2394,6 @@ declare const HexColorSchema: z.ZodString;
|
|
|
2541
2394
|
type HexColor = z.infer<typeof HexColorSchema>;
|
|
2542
2395
|
declare const Sha256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2543
2396
|
type Sha256Hash = z.infer<typeof Sha256HashSchema>;
|
|
2544
|
-
declare const Keccak256HashSchema: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2545
|
-
type Keccak256Hash = z.infer<typeof Keccak256HashSchema>;
|
|
2546
2397
|
declare const ExternalIdSchema: z.ZodUUID;
|
|
2547
2398
|
type ExternalId = z.infer<typeof ExternalIdSchema>;
|
|
2548
2399
|
declare const ExternalUrlSchema: z.ZodURL;
|
|
@@ -2563,18 +2414,6 @@ declare const TokenSymbolSchema: z.ZodString;
|
|
|
2563
2414
|
type TokenSymbol = z.infer<typeof TokenSymbolSchema>;
|
|
2564
2415
|
declare const CreditTokenSymbolSchema: z.ZodString;
|
|
2565
2416
|
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>;
|
|
2578
2417
|
|
|
2579
2418
|
declare function uniqueArrayItems<T extends z.ZodTypeAny>(schema: T, errorMessage?: string): z.ZodArray<T>;
|
|
2580
2419
|
declare function uniqueBy<T extends z.ZodTypeAny, K>(schema: T, selector: (item: z.infer<T>) => K, errorMessage?: string): z.ZodArray<T>;
|
|
@@ -2694,7 +2533,6 @@ declare const AuditRuleDefinitionSchema: z.ZodObject<{
|
|
|
2694
2533
|
rule_name: z.ZodString;
|
|
2695
2534
|
description: z.ZodString;
|
|
2696
2535
|
source_code_url: z.ZodURL;
|
|
2697
|
-
mandatory: z.ZodBoolean;
|
|
2698
2536
|
execution_order: z.ZodNumber;
|
|
2699
2537
|
}, z.core.$strict>;
|
|
2700
2538
|
type AuditRuleDefinition = z.infer<typeof AuditRuleDefinitionSchema>;
|
|
@@ -2704,7 +2542,6 @@ declare const AuditRuleDefinitionsSchema: z.ZodArray<z.ZodObject<{
|
|
|
2704
2542
|
rule_name: z.ZodString;
|
|
2705
2543
|
description: z.ZodString;
|
|
2706
2544
|
source_code_url: z.ZodURL;
|
|
2707
|
-
mandatory: z.ZodBoolean;
|
|
2708
2545
|
execution_order: z.ZodNumber;
|
|
2709
2546
|
}, z.core.$strict>>;
|
|
2710
2547
|
type AuditRuleDefinitions = z.infer<typeof AuditRuleDefinitionsSchema>;
|
|
@@ -2779,8 +2616,11 @@ declare const MassIdReferenceWithContractSchema: z.ZodObject<{
|
|
|
2779
2616
|
uri: z.ZodString;
|
|
2780
2617
|
smart_contract: z.ZodObject<{
|
|
2781
2618
|
address: z.ZodString;
|
|
2782
|
-
chain_id: z.
|
|
2783
|
-
network_name: z.
|
|
2619
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2620
|
+
network_name: z.ZodEnum<{
|
|
2621
|
+
Polygon: "Polygon";
|
|
2622
|
+
Amoy: "Amoy";
|
|
2623
|
+
}>;
|
|
2784
2624
|
}, z.core.$strict>;
|
|
2785
2625
|
}, z.core.$strict>;
|
|
2786
2626
|
type MassIdReferenceWithContract = z.infer<typeof MassIdReferenceWithContractSchema>;
|
|
@@ -2816,8 +2656,11 @@ declare function createReceiptCertificateSchema<T extends ZodRawShape>(params: {
|
|
|
2816
2656
|
uri: z.ZodString;
|
|
2817
2657
|
smart_contract: z.ZodObject<{
|
|
2818
2658
|
address: z.ZodString;
|
|
2819
|
-
chain_id: z.
|
|
2820
|
-
network_name: z.
|
|
2659
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2660
|
+
network_name: z.ZodEnum<{
|
|
2661
|
+
Polygon: "Polygon";
|
|
2662
|
+
Amoy: "Amoy";
|
|
2663
|
+
}>;
|
|
2821
2664
|
}, z.core.$strict>;
|
|
2822
2665
|
collection_slug: z.ZodString;
|
|
2823
2666
|
total_amount: z.ZodNumber;
|
|
@@ -2828,8 +2671,11 @@ declare function createReceiptCertificateSchema<T extends ZodRawShape>(params: {
|
|
|
2828
2671
|
uri: z.ZodString;
|
|
2829
2672
|
smart_contract: z.ZodObject<{
|
|
2830
2673
|
address: z.ZodString;
|
|
2831
|
-
chain_id: z.
|
|
2832
|
-
network_name: z.
|
|
2674
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2675
|
+
network_name: z.ZodEnum<{
|
|
2676
|
+
Polygon: "Polygon";
|
|
2677
|
+
Amoy: "Amoy";
|
|
2678
|
+
}>;
|
|
2833
2679
|
}, z.core.$strict>;
|
|
2834
2680
|
}, z.core.$strict>;
|
|
2835
2681
|
} & T, z.core.$strict>;
|
|
@@ -2961,8 +2807,11 @@ declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
|
|
|
2961
2807
|
uri: z.ZodString;
|
|
2962
2808
|
smart_contract: z.ZodObject<{
|
|
2963
2809
|
address: z.ZodString;
|
|
2964
|
-
chain_id: z.
|
|
2965
|
-
network_name: z.
|
|
2810
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2811
|
+
network_name: z.ZodEnum<{
|
|
2812
|
+
Polygon: "Polygon";
|
|
2813
|
+
Amoy: "Amoy";
|
|
2814
|
+
}>;
|
|
2966
2815
|
}, z.core.$strict>;
|
|
2967
2816
|
collection_slug: z.ZodString;
|
|
2968
2817
|
total_amount: z.ZodNumber;
|
|
@@ -2973,8 +2822,11 @@ declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
|
|
|
2973
2822
|
uri: z.ZodString;
|
|
2974
2823
|
smart_contract: z.ZodObject<{
|
|
2975
2824
|
address: z.ZodString;
|
|
2976
|
-
chain_id: z.
|
|
2977
|
-
network_name: z.
|
|
2825
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2826
|
+
network_name: z.ZodEnum<{
|
|
2827
|
+
Polygon: "Polygon";
|
|
2828
|
+
Amoy: "Amoy";
|
|
2829
|
+
}>;
|
|
2978
2830
|
}, z.core.$strict>;
|
|
2979
2831
|
}, z.core.$strict>;
|
|
2980
2832
|
} & {
|
|
@@ -2997,8 +2849,11 @@ declare const CreditPurchaseReceiptRetirementReceiptSchema: z.ZodObject<{
|
|
|
2997
2849
|
uri: z.ZodString;
|
|
2998
2850
|
smart_contract: z.ZodObject<{
|
|
2999
2851
|
address: z.ZodString;
|
|
3000
|
-
chain_id: z.
|
|
3001
|
-
network_name: z.
|
|
2852
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2853
|
+
network_name: z.ZodEnum<{
|
|
2854
|
+
Polygon: "Polygon";
|
|
2855
|
+
Amoy: "Amoy";
|
|
2856
|
+
}>;
|
|
3002
2857
|
}, z.core.$strict>;
|
|
3003
2858
|
}, z.core.$strict>;
|
|
3004
2859
|
type CreditPurchaseReceiptRetirementReceipt = z.infer<typeof CreditPurchaseReceiptRetirementReceiptSchema>;
|
|
@@ -3011,8 +2866,11 @@ declare const CreditPurchaseReceiptRetirementSchema: z.ZodObject<{
|
|
|
3011
2866
|
uri: z.ZodString;
|
|
3012
2867
|
smart_contract: z.ZodObject<{
|
|
3013
2868
|
address: z.ZodString;
|
|
3014
|
-
chain_id: z.
|
|
3015
|
-
network_name: z.
|
|
2869
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2870
|
+
network_name: z.ZodEnum<{
|
|
2871
|
+
Polygon: "Polygon";
|
|
2872
|
+
Amoy: "Amoy";
|
|
2873
|
+
}>;
|
|
3016
2874
|
}, z.core.$strict>;
|
|
3017
2875
|
}, z.core.$strict>>;
|
|
3018
2876
|
}, z.core.$strict>;
|
|
@@ -3069,8 +2927,11 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
3069
2927
|
uri: z.ZodString;
|
|
3070
2928
|
smart_contract: z.ZodObject<{
|
|
3071
2929
|
address: z.ZodString;
|
|
3072
|
-
chain_id: z.
|
|
3073
|
-
network_name: z.
|
|
2930
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2931
|
+
network_name: z.ZodEnum<{
|
|
2932
|
+
Polygon: "Polygon";
|
|
2933
|
+
Amoy: "Amoy";
|
|
2934
|
+
}>;
|
|
3074
2935
|
}, z.core.$strict>;
|
|
3075
2936
|
collection_slug: z.ZodString;
|
|
3076
2937
|
total_amount: z.ZodNumber;
|
|
@@ -3081,8 +2942,11 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
3081
2942
|
uri: z.ZodString;
|
|
3082
2943
|
smart_contract: z.ZodObject<{
|
|
3083
2944
|
address: z.ZodString;
|
|
3084
|
-
chain_id: z.
|
|
3085
|
-
network_name: z.
|
|
2945
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2946
|
+
network_name: z.ZodEnum<{
|
|
2947
|
+
Polygon: "Polygon";
|
|
2948
|
+
Amoy: "Amoy";
|
|
2949
|
+
}>;
|
|
3086
2950
|
}, z.core.$strict>;
|
|
3087
2951
|
}, z.core.$strict>;
|
|
3088
2952
|
} & {
|
|
@@ -3105,8 +2969,11 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
|
|
|
3105
2969
|
uri: z.ZodString;
|
|
3106
2970
|
smart_contract: z.ZodObject<{
|
|
3107
2971
|
address: z.ZodString;
|
|
3108
|
-
chain_id: z.
|
|
3109
|
-
network_name: z.
|
|
2972
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
2973
|
+
network_name: z.ZodEnum<{
|
|
2974
|
+
Polygon: "Polygon";
|
|
2975
|
+
Amoy: "Amoy";
|
|
2976
|
+
}>;
|
|
3110
2977
|
}, z.core.$strict>;
|
|
3111
2978
|
}, z.core.$strict>>;
|
|
3112
2979
|
}, z.core.$strict>>;
|
|
@@ -3121,30 +2988,11 @@ declare const CreditPurchaseReceiptIpfsSchemaMeta: {
|
|
|
3121
2988
|
};
|
|
3122
2989
|
declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
3123
2990
|
$schema: z.ZodURL;
|
|
3124
|
-
created_at: z.
|
|
2991
|
+
created_at: z.ZodString;
|
|
3125
2992
|
external_id: z.ZodUUID;
|
|
3126
2993
|
external_url: z.ZodURL;
|
|
3127
2994
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3128
2995
|
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3129
|
-
creator: z.ZodOptional<z.ZodObject<{
|
|
3130
|
-
name: z.ZodString;
|
|
3131
|
-
id: z.ZodUUID;
|
|
3132
|
-
}, z.core.$strict>>;
|
|
3133
|
-
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3134
|
-
target_uri: z.ZodString;
|
|
3135
|
-
type: z.ZodEnum<{
|
|
3136
|
-
collection: "collection";
|
|
3137
|
-
credit: "credit";
|
|
3138
|
-
"gas-id": "gas-id";
|
|
3139
|
-
"mass-id": "mass-id";
|
|
3140
|
-
"mass-id-audit": "mass-id-audit";
|
|
3141
|
-
methodology: "methodology";
|
|
3142
|
-
"credit-purchase-receipt": "credit-purchase-receipt";
|
|
3143
|
-
"credit-retirement-receipt": "credit-retirement-receipt";
|
|
3144
|
-
"recycled-id": "recycled-id";
|
|
3145
|
-
}>;
|
|
3146
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3147
|
-
}, z.core.$strict>>>;
|
|
3148
2996
|
environment: z.ZodOptional<z.ZodObject<{
|
|
3149
2997
|
blockchain_network: z.ZodEnum<{
|
|
3150
2998
|
mainnet: "mainnet";
|
|
@@ -3162,8 +3010,11 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
3162
3010
|
}, z.core.$strict>>;
|
|
3163
3011
|
blockchain: z.ZodObject<{
|
|
3164
3012
|
smart_contract_address: z.ZodString;
|
|
3165
|
-
chain_id: z.
|
|
3166
|
-
network_name: z.
|
|
3013
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3014
|
+
network_name: z.ZodEnum<{
|
|
3015
|
+
Polygon: "Polygon";
|
|
3016
|
+
Amoy: "Amoy";
|
|
3017
|
+
}>;
|
|
3167
3018
|
token_id: z.ZodString;
|
|
3168
3019
|
}, z.core.$strict>;
|
|
3169
3020
|
name: z.ZodString;
|
|
@@ -3178,7 +3029,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
3178
3029
|
description: z.ZodOptional<z.ZodString>;
|
|
3179
3030
|
}, z.core.$strict>>>;
|
|
3180
3031
|
schema: z.ZodObject<{
|
|
3181
|
-
hash: z.
|
|
3032
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3182
3033
|
version: z.ZodString;
|
|
3183
3034
|
type: z.ZodLiteral<"CreditPurchaseReceipt">;
|
|
3184
3035
|
}, z.core.$strict>;
|
|
@@ -3268,8 +3119,11 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
3268
3119
|
uri: z.ZodString;
|
|
3269
3120
|
smart_contract: z.ZodObject<{
|
|
3270
3121
|
address: z.ZodString;
|
|
3271
|
-
chain_id: z.
|
|
3272
|
-
network_name: z.
|
|
3122
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3123
|
+
network_name: z.ZodEnum<{
|
|
3124
|
+
Polygon: "Polygon";
|
|
3125
|
+
Amoy: "Amoy";
|
|
3126
|
+
}>;
|
|
3273
3127
|
}, z.core.$strict>;
|
|
3274
3128
|
collection_slug: z.ZodString;
|
|
3275
3129
|
total_amount: z.ZodNumber;
|
|
@@ -3280,8 +3134,11 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
3280
3134
|
uri: z.ZodString;
|
|
3281
3135
|
smart_contract: z.ZodObject<{
|
|
3282
3136
|
address: z.ZodString;
|
|
3283
|
-
chain_id: z.
|
|
3284
|
-
network_name: z.
|
|
3137
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3138
|
+
network_name: z.ZodEnum<{
|
|
3139
|
+
Polygon: "Polygon";
|
|
3140
|
+
Amoy: "Amoy";
|
|
3141
|
+
}>;
|
|
3285
3142
|
}, z.core.$strict>;
|
|
3286
3143
|
}, z.core.$strict>;
|
|
3287
3144
|
} & {
|
|
@@ -3304,8 +3161,11 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
|
|
|
3304
3161
|
uri: z.ZodString;
|
|
3305
3162
|
smart_contract: z.ZodObject<{
|
|
3306
3163
|
address: z.ZodString;
|
|
3307
|
-
chain_id: z.
|
|
3308
|
-
network_name: z.
|
|
3164
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3165
|
+
network_name: z.ZodEnum<{
|
|
3166
|
+
Polygon: "Polygon";
|
|
3167
|
+
Amoy: "Amoy";
|
|
3168
|
+
}>;
|
|
3309
3169
|
}, z.core.$strict>;
|
|
3310
3170
|
}, z.core.$strict>>;
|
|
3311
3171
|
}, z.core.$strict>>;
|
|
@@ -3413,8 +3273,11 @@ declare const CreditPurchaseReceiptReferenceSchema: z.ZodObject<{
|
|
|
3413
3273
|
uri: z.ZodString;
|
|
3414
3274
|
smart_contract: z.ZodObject<{
|
|
3415
3275
|
address: z.ZodString;
|
|
3416
|
-
chain_id: z.
|
|
3417
|
-
network_name: z.
|
|
3276
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3277
|
+
network_name: z.ZodEnum<{
|
|
3278
|
+
Polygon: "Polygon";
|
|
3279
|
+
Amoy: "Amoy";
|
|
3280
|
+
}>;
|
|
3418
3281
|
}, z.core.$strict>;
|
|
3419
3282
|
}, z.core.$strict>;
|
|
3420
3283
|
type CreditPurchaseReceiptReference = z.infer<typeof CreditPurchaseReceiptReferenceSchema>;
|
|
@@ -3429,8 +3292,11 @@ declare const CreditRetirementReceiptCertificateSchema: z.ZodObject<{
|
|
|
3429
3292
|
uri: z.ZodString;
|
|
3430
3293
|
smart_contract: z.ZodObject<{
|
|
3431
3294
|
address: z.ZodString;
|
|
3432
|
-
chain_id: z.
|
|
3433
|
-
network_name: z.
|
|
3295
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3296
|
+
network_name: z.ZodEnum<{
|
|
3297
|
+
Polygon: "Polygon";
|
|
3298
|
+
Amoy: "Amoy";
|
|
3299
|
+
}>;
|
|
3434
3300
|
}, z.core.$strict>;
|
|
3435
3301
|
collection_slug: z.ZodString;
|
|
3436
3302
|
total_amount: z.ZodNumber;
|
|
@@ -3441,8 +3307,11 @@ declare const CreditRetirementReceiptCertificateSchema: z.ZodObject<{
|
|
|
3441
3307
|
uri: z.ZodString;
|
|
3442
3308
|
smart_contract: z.ZodObject<{
|
|
3443
3309
|
address: z.ZodString;
|
|
3444
|
-
chain_id: z.
|
|
3445
|
-
network_name: z.
|
|
3310
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3311
|
+
network_name: z.ZodEnum<{
|
|
3312
|
+
Polygon: "Polygon";
|
|
3313
|
+
Amoy: "Amoy";
|
|
3314
|
+
}>;
|
|
3446
3315
|
}, z.core.$strict>;
|
|
3447
3316
|
}, z.core.$strict>;
|
|
3448
3317
|
} & {
|
|
@@ -3504,8 +3373,11 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
|
3504
3373
|
uri: z.ZodString;
|
|
3505
3374
|
smart_contract: z.ZodObject<{
|
|
3506
3375
|
address: z.ZodString;
|
|
3507
|
-
chain_id: z.
|
|
3508
|
-
network_name: z.
|
|
3376
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3377
|
+
network_name: z.ZodEnum<{
|
|
3378
|
+
Polygon: "Polygon";
|
|
3379
|
+
Amoy: "Amoy";
|
|
3380
|
+
}>;
|
|
3509
3381
|
}, z.core.$strict>;
|
|
3510
3382
|
collection_slug: z.ZodString;
|
|
3511
3383
|
total_amount: z.ZodNumber;
|
|
@@ -3516,8 +3388,11 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
|
3516
3388
|
uri: z.ZodString;
|
|
3517
3389
|
smart_contract: z.ZodObject<{
|
|
3518
3390
|
address: z.ZodString;
|
|
3519
|
-
chain_id: z.
|
|
3520
|
-
network_name: z.
|
|
3391
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3392
|
+
network_name: z.ZodEnum<{
|
|
3393
|
+
Polygon: "Polygon";
|
|
3394
|
+
Amoy: "Amoy";
|
|
3395
|
+
}>;
|
|
3521
3396
|
}, z.core.$strict>;
|
|
3522
3397
|
}, z.core.$strict>;
|
|
3523
3398
|
} & {
|
|
@@ -3537,8 +3412,11 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
|
|
|
3537
3412
|
uri: z.ZodString;
|
|
3538
3413
|
smart_contract: z.ZodObject<{
|
|
3539
3414
|
address: z.ZodString;
|
|
3540
|
-
chain_id: z.
|
|
3541
|
-
network_name: z.
|
|
3415
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3416
|
+
network_name: z.ZodEnum<{
|
|
3417
|
+
Polygon: "Polygon";
|
|
3418
|
+
Amoy: "Amoy";
|
|
3419
|
+
}>;
|
|
3542
3420
|
}, z.core.$strict>;
|
|
3543
3421
|
}, z.core.$strict>>;
|
|
3544
3422
|
}, z.core.$strict>;
|
|
@@ -3556,27 +3434,8 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3556
3434
|
external_id: z.ZodUUID;
|
|
3557
3435
|
external_url: z.ZodURL;
|
|
3558
3436
|
$schema: z.ZodURL;
|
|
3559
|
-
created_at: z.
|
|
3437
|
+
created_at: z.ZodString;
|
|
3560
3438
|
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
3439
|
environment: z.ZodOptional<z.ZodObject<{
|
|
3581
3440
|
blockchain_network: z.ZodEnum<{
|
|
3582
3441
|
mainnet: "mainnet";
|
|
@@ -3594,8 +3453,11 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3594
3453
|
}, z.core.$strict>>;
|
|
3595
3454
|
blockchain: z.ZodObject<{
|
|
3596
3455
|
smart_contract_address: z.ZodString;
|
|
3597
|
-
chain_id: z.
|
|
3598
|
-
network_name: z.
|
|
3456
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3457
|
+
network_name: z.ZodEnum<{
|
|
3458
|
+
Polygon: "Polygon";
|
|
3459
|
+
Amoy: "Amoy";
|
|
3460
|
+
}>;
|
|
3599
3461
|
token_id: z.ZodString;
|
|
3600
3462
|
}, z.core.$strict>;
|
|
3601
3463
|
short_name: z.ZodString;
|
|
@@ -3608,7 +3470,7 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3608
3470
|
description: z.ZodOptional<z.ZodString>;
|
|
3609
3471
|
}, z.core.$strict>>>;
|
|
3610
3472
|
schema: z.ZodObject<{
|
|
3611
|
-
hash: z.
|
|
3473
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3612
3474
|
version: z.ZodString;
|
|
3613
3475
|
type: z.ZodLiteral<"CreditRetirementReceipt">;
|
|
3614
3476
|
}, z.core.$strict>;
|
|
@@ -3706,8 +3568,11 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3706
3568
|
uri: z.ZodString;
|
|
3707
3569
|
smart_contract: z.ZodObject<{
|
|
3708
3570
|
address: z.ZodString;
|
|
3709
|
-
chain_id: z.
|
|
3710
|
-
network_name: z.
|
|
3571
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3572
|
+
network_name: z.ZodEnum<{
|
|
3573
|
+
Polygon: "Polygon";
|
|
3574
|
+
Amoy: "Amoy";
|
|
3575
|
+
}>;
|
|
3711
3576
|
}, z.core.$strict>;
|
|
3712
3577
|
collection_slug: z.ZodString;
|
|
3713
3578
|
total_amount: z.ZodNumber;
|
|
@@ -3718,8 +3583,11 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3718
3583
|
uri: z.ZodString;
|
|
3719
3584
|
smart_contract: z.ZodObject<{
|
|
3720
3585
|
address: z.ZodString;
|
|
3721
|
-
chain_id: z.
|
|
3722
|
-
network_name: z.
|
|
3586
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3587
|
+
network_name: z.ZodEnum<{
|
|
3588
|
+
Polygon: "Polygon";
|
|
3589
|
+
Amoy: "Amoy";
|
|
3590
|
+
}>;
|
|
3723
3591
|
}, z.core.$strict>;
|
|
3724
3592
|
}, z.core.$strict>;
|
|
3725
3593
|
} & {
|
|
@@ -3739,8 +3607,11 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
|
|
|
3739
3607
|
uri: z.ZodString;
|
|
3740
3608
|
smart_contract: z.ZodObject<{
|
|
3741
3609
|
address: z.ZodString;
|
|
3742
|
-
chain_id: z.
|
|
3743
|
-
network_name: z.
|
|
3610
|
+
chain_id: z.ZodUnion<readonly [z.ZodLiteral<137>, z.ZodLiteral<80002>]>;
|
|
3611
|
+
network_name: z.ZodEnum<{
|
|
3612
|
+
Polygon: "Polygon";
|
|
3613
|
+
Amoy: "Amoy";
|
|
3614
|
+
}>;
|
|
3744
3615
|
}, z.core.$strict>;
|
|
3745
3616
|
}, z.core.$strict>>;
|
|
3746
3617
|
}, z.core.$strict>;
|
|
@@ -3755,30 +3626,11 @@ declare const CollectionSchemaMeta: {
|
|
|
3755
3626
|
};
|
|
3756
3627
|
declare const CollectionSchema: z.ZodObject<{
|
|
3757
3628
|
$schema: z.ZodURL;
|
|
3758
|
-
created_at: z.
|
|
3629
|
+
created_at: z.ZodString;
|
|
3759
3630
|
external_id: z.ZodUUID;
|
|
3760
3631
|
external_url: z.ZodURL;
|
|
3761
3632
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3762
3633
|
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
3634
|
environment: z.ZodOptional<z.ZodObject<{
|
|
3783
3635
|
blockchain_network: z.ZodEnum<{
|
|
3784
3636
|
mainnet: "mainnet";
|
|
@@ -3796,7 +3648,7 @@ declare const CollectionSchema: z.ZodObject<{
|
|
|
3796
3648
|
}, z.core.$strict>>;
|
|
3797
3649
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3798
3650
|
schema: z.ZodObject<{
|
|
3799
|
-
hash: z.
|
|
3651
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3800
3652
|
version: z.ZodString;
|
|
3801
3653
|
type: z.ZodLiteral<"Collection">;
|
|
3802
3654
|
}, z.core.$strict>;
|
|
@@ -3815,30 +3667,11 @@ declare const CreditSchemaMeta: {
|
|
|
3815
3667
|
};
|
|
3816
3668
|
declare const CreditSchema: z.ZodObject<{
|
|
3817
3669
|
$schema: z.ZodURL;
|
|
3818
|
-
created_at: z.
|
|
3670
|
+
created_at: z.ZodString;
|
|
3819
3671
|
external_id: z.ZodUUID;
|
|
3820
3672
|
external_url: z.ZodURL;
|
|
3821
3673
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3822
3674
|
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
3675
|
environment: z.ZodOptional<z.ZodObject<{
|
|
3843
3676
|
blockchain_network: z.ZodEnum<{
|
|
3844
3677
|
mainnet: "mainnet";
|
|
@@ -3856,7 +3689,7 @@ declare const CreditSchema: z.ZodObject<{
|
|
|
3856
3689
|
}, z.core.$strict>>;
|
|
3857
3690
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3858
3691
|
schema: z.ZodObject<{
|
|
3859
|
-
hash: z.
|
|
3692
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3860
3693
|
version: z.ZodString;
|
|
3861
3694
|
type: z.ZodLiteral<"Credit">;
|
|
3862
3695
|
}, z.core.$strict>;
|
|
@@ -3877,30 +3710,11 @@ declare const MethodologySchemaMeta: {
|
|
|
3877
3710
|
};
|
|
3878
3711
|
declare const MethodologySchema: z.ZodObject<{
|
|
3879
3712
|
$schema: z.ZodURL;
|
|
3880
|
-
created_at: z.
|
|
3713
|
+
created_at: z.ZodString;
|
|
3881
3714
|
external_id: z.ZodUUID;
|
|
3882
3715
|
external_url: z.ZodURL;
|
|
3883
3716
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3884
3717
|
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
3718
|
environment: z.ZodOptional<z.ZodObject<{
|
|
3905
3719
|
blockchain_network: z.ZodEnum<{
|
|
3906
3720
|
mainnet: "mainnet";
|
|
@@ -3917,7 +3731,7 @@ declare const MethodologySchema: z.ZodObject<{
|
|
|
3917
3731
|
}>;
|
|
3918
3732
|
}, z.core.$strict>>;
|
|
3919
3733
|
schema: z.ZodObject<{
|
|
3920
|
-
hash: z.
|
|
3734
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3921
3735
|
version: z.ZodString;
|
|
3922
3736
|
type: z.ZodLiteral<"Methodology">;
|
|
3923
3737
|
}, z.core.$strict>;
|
|
@@ -3936,7 +3750,6 @@ declare const MethodologySchema: z.ZodObject<{
|
|
|
3936
3750
|
rule_name: z.ZodString;
|
|
3937
3751
|
description: z.ZodString;
|
|
3938
3752
|
source_code_url: z.ZodURL;
|
|
3939
|
-
mandatory: z.ZodBoolean;
|
|
3940
3753
|
execution_order: z.ZodNumber;
|
|
3941
3754
|
}, z.core.$strict>>;
|
|
3942
3755
|
}, z.core.$strict>;
|
|
@@ -3958,7 +3771,6 @@ declare const MethodologyDataSchema: z.ZodObject<{
|
|
|
3958
3771
|
rule_name: z.ZodString;
|
|
3959
3772
|
description: z.ZodString;
|
|
3960
3773
|
source_code_url: z.ZodURL;
|
|
3961
|
-
mandatory: z.ZodBoolean;
|
|
3962
3774
|
execution_order: z.ZodNumber;
|
|
3963
3775
|
}, z.core.$strict>>;
|
|
3964
3776
|
}, z.core.$strict>;
|
|
@@ -3972,30 +3784,11 @@ declare const MassIDAuditSchemaMeta: {
|
|
|
3972
3784
|
};
|
|
3973
3785
|
declare const MassIDAuditSchema: z.ZodObject<{
|
|
3974
3786
|
$schema: z.ZodURL;
|
|
3975
|
-
created_at: z.
|
|
3787
|
+
created_at: z.ZodString;
|
|
3976
3788
|
external_id: z.ZodUUID;
|
|
3977
3789
|
external_url: z.ZodURL;
|
|
3978
3790
|
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3979
3791
|
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
3792
|
environment: z.ZodOptional<z.ZodObject<{
|
|
4000
3793
|
blockchain_network: z.ZodEnum<{
|
|
4001
3794
|
mainnet: "mainnet";
|
|
@@ -4012,7 +3805,7 @@ declare const MassIDAuditSchema: z.ZodObject<{
|
|
|
4012
3805
|
}>;
|
|
4013
3806
|
}, z.core.$strict>>;
|
|
4014
3807
|
schema: z.ZodObject<{
|
|
4015
|
-
hash: z.
|
|
3808
|
+
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
4016
3809
|
version: z.ZodString;
|
|
4017
3810
|
type: z.ZodLiteral<"MassID Audit">;
|
|
4018
3811
|
}, z.core.$strict>;
|
|
@@ -4120,4 +3913,4 @@ declare const MassIDAuditDataSchema: z.ZodObject<{
|
|
|
4120
3913
|
}, z.core.$strict>;
|
|
4121
3914
|
type MassIDAuditData = z.infer<typeof MassIDAuditDataSchema>;
|
|
4122
3915
|
|
|
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
|
|
3916
|
+
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 ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, 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 IbamaWasteClassification, IbamaWasteClassificationSchema, type IpfsUri, IpfsUriSchema, type IsoAdministrativeDivisionCode, IsoAdministrativeDivisionCodeSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoDate, IsoDateSchema, type IsoTimestamp, IsoTimestampSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttachment, type MassIDAttachmentType, type MassIDAttributeDropOffDate, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributePickUpVehicleType, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDAudit, type MassIDAuditData, MassIDAuditDataSchema, MassIDAuditSchema, MassIDAuditSchemaMeta, type MassIDAuditSummary, type MassIDData, MassIDDataSchema, type MassIDEvent, type MassIDEvents, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, 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 RecordEnvironment, RecordEnvironmentSchema, 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 };
|