@carrot-foundation/schemas 0.1.34 → 0.1.36
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/README.md +1 -1
- package/dist/index.cjs +1128 -1048
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +737 -81
- package/dist/index.d.ts +737 -81
- package/dist/index.js +1108 -1049
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/gas-id/gas-id.example.json +1 -1
- package/schemas/ipfs/gas-id/gas-id.schema.json +82 -70
- package/schemas/ipfs/mass-id/mass-id.schema.json +56 -45
- package/schemas/ipfs/recycled-id/recycled-id.example.json +9 -8
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +1650 -15
- package/schemas/ipfs/shared/definitions/definitions.schema.json +10 -0
- package/schemas/ipfs/shared/entities/location/location.schema.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -628,7 +628,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
628
628
|
description: z.ZodOptional<z.ZodString>;
|
|
629
629
|
}, z.core.$strict>>>;
|
|
630
630
|
schema: z.ZodObject<{
|
|
631
|
-
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
631
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
632
632
|
version: z.ZodString;
|
|
633
633
|
type: z.ZodLiteral<"MassID">;
|
|
634
634
|
}, z.core.$strict>;
|
|
@@ -996,13 +996,501 @@ declare const GasIDAttributeMassIDTokenIdSchema: z.ZodObject<{
|
|
|
996
996
|
}, z.core.$strict>;
|
|
997
997
|
type GasIDAttributeMassIDTokenId = z.infer<typeof GasIDAttributeMassIDTokenIdSchema>;
|
|
998
998
|
declare const GasIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
999
|
+
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1000
|
+
value: z.ZodNumber;
|
|
1001
|
+
display_type: z.ZodLiteral<"date">;
|
|
1002
|
+
}, z.core.$strict>;
|
|
1003
|
+
type GasIDAttributeMassIDRecyclingDate = z.infer<typeof GasIDAttributeMassIDRecyclingDateSchema>;
|
|
1004
|
+
declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
1005
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1006
|
+
number: "number";
|
|
1007
|
+
date: "date";
|
|
1008
|
+
boost_number: "boost_number";
|
|
1009
|
+
boost_percentage: "boost_percentage";
|
|
1010
|
+
}>>;
|
|
1011
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1012
|
+
trait_type: z.ZodLiteral<"Methodology">;
|
|
1013
|
+
value: z.ZodString;
|
|
1014
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1015
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1016
|
+
number: "number";
|
|
1017
|
+
date: "date";
|
|
1018
|
+
boost_number: "boost_number";
|
|
1019
|
+
boost_percentage: "boost_percentage";
|
|
1020
|
+
}>>;
|
|
1021
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1022
|
+
trait_type: z.ZodLiteral<"Gas Type">;
|
|
1023
|
+
value: z.ZodString;
|
|
1024
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1025
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
+
trait_type: z.ZodLiteral<"CO₂e Prevented (kg)">;
|
|
1027
|
+
value: z.ZodNumber;
|
|
1028
|
+
display_type: z.ZodLiteral<"number">;
|
|
1029
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1030
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1031
|
+
trait_type: z.ZodLiteral<"Credit Amount">;
|
|
1032
|
+
value: z.ZodNumber;
|
|
1033
|
+
display_type: z.ZodLiteral<"number">;
|
|
1034
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1035
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
+
number: "number";
|
|
1037
|
+
date: "date";
|
|
1038
|
+
boost_number: "boost_number";
|
|
1039
|
+
boost_percentage: "boost_percentage";
|
|
1040
|
+
}>>;
|
|
1041
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1042
|
+
trait_type: z.ZodLiteral<"Credit Type">;
|
|
1043
|
+
value: z.ZodString;
|
|
1044
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1045
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
number: "number";
|
|
1047
|
+
date: "date";
|
|
1048
|
+
boost_number: "boost_number";
|
|
1049
|
+
boost_percentage: "boost_percentage";
|
|
1050
|
+
}>>;
|
|
1051
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1052
|
+
trait_type: z.ZodLiteral<"Source Waste Type">;
|
|
1053
|
+
value: z.ZodString;
|
|
1054
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1055
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1056
|
+
trait_type: z.ZodLiteral<"Source Weight (kg)">;
|
|
1057
|
+
value: z.ZodNumber;
|
|
1058
|
+
display_type: z.ZodLiteral<"number">;
|
|
1059
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1060
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1061
|
+
number: "number";
|
|
1062
|
+
date: "date";
|
|
1063
|
+
boost_number: "boost_number";
|
|
1064
|
+
boost_percentage: "boost_percentage";
|
|
1065
|
+
}>>;
|
|
1066
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
trait_type: z.ZodLiteral<"Origin Country">;
|
|
1068
|
+
value: z.ZodString;
|
|
1069
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1070
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1071
|
+
number: "number";
|
|
1072
|
+
date: "date";
|
|
1073
|
+
boost_number: "boost_number";
|
|
1074
|
+
boost_percentage: "boost_percentage";
|
|
1075
|
+
}>>;
|
|
999
1076
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1077
|
+
trait_type: z.ZodLiteral<"Origin Municipality">;
|
|
1078
|
+
value: z.ZodString;
|
|
1079
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1080
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1081
|
+
number: "number";
|
|
1082
|
+
date: "date";
|
|
1083
|
+
boost_number: "boost_number";
|
|
1084
|
+
boost_percentage: "boost_percentage";
|
|
1085
|
+
}>>;
|
|
1086
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1087
|
+
trait_type: z.ZodLiteral<"Recycler">;
|
|
1088
|
+
value: z.ZodString;
|
|
1089
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1090
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
+
number: "number";
|
|
1092
|
+
date: "date";
|
|
1093
|
+
boost_number: "boost_number";
|
|
1094
|
+
boost_percentage: "boost_percentage";
|
|
1095
|
+
}>>;
|
|
1096
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1097
|
+
trait_type: z.ZodLiteral<"MassID">;
|
|
1098
|
+
value: z.ZodString;
|
|
1099
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1000
1100
|
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1001
|
-
value: z.
|
|
1101
|
+
value: z.ZodNumber;
|
|
1002
1102
|
display_type: z.ZodLiteral<"date">;
|
|
1103
|
+
}, z.core.$strict>], null>;
|
|
1104
|
+
type GasIDAttributes = z.infer<typeof GasIDAttributesSchema>;
|
|
1105
|
+
|
|
1106
|
+
declare const GasIDSummarySchema: z.ZodObject<{
|
|
1107
|
+
gas_type: z.ZodString;
|
|
1108
|
+
credit_type: z.ZodString;
|
|
1109
|
+
credit_amount: z.ZodNumber;
|
|
1110
|
+
prevented_co2e_kg: z.ZodNumber;
|
|
1111
|
+
}, z.core.$strict>;
|
|
1112
|
+
type GasIDSummary = z.infer<typeof GasIDSummarySchema>;
|
|
1113
|
+
declare const CalculationValueSchema: z.ZodObject<{
|
|
1114
|
+
reference: z.ZodString;
|
|
1115
|
+
value: z.ZodNumber;
|
|
1116
|
+
label: z.ZodString;
|
|
1117
|
+
}, z.core.$strict>;
|
|
1118
|
+
type CalculationValue = z.infer<typeof CalculationValueSchema>;
|
|
1119
|
+
declare const PreventedEmissionsCalculationSchema: z.ZodObject<{
|
|
1120
|
+
formula: z.ZodString;
|
|
1121
|
+
method: z.ZodString;
|
|
1122
|
+
date: z.ZodISODate;
|
|
1123
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1124
|
+
reference: z.ZodString;
|
|
1125
|
+
value: z.ZodNumber;
|
|
1126
|
+
label: z.ZodString;
|
|
1127
|
+
}, z.core.$strict>>;
|
|
1128
|
+
}, z.core.$strict>;
|
|
1129
|
+
type PreventedEmissionsCalculation = z.infer<typeof PreventedEmissionsCalculationSchema>;
|
|
1130
|
+
declare const GasIDDataSchema: z.ZodObject<{
|
|
1131
|
+
summary: z.ZodObject<{
|
|
1132
|
+
gas_type: z.ZodString;
|
|
1133
|
+
credit_type: z.ZodString;
|
|
1134
|
+
credit_amount: z.ZodNumber;
|
|
1135
|
+
prevented_co2e_kg: z.ZodNumber;
|
|
1136
|
+
}, z.core.$strict>;
|
|
1137
|
+
methodology: z.ZodObject<{
|
|
1138
|
+
external_id: z.ZodUUID;
|
|
1139
|
+
name: z.ZodString;
|
|
1140
|
+
version: z.ZodString;
|
|
1141
|
+
external_url: z.ZodURL;
|
|
1142
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
}, z.core.$strict>;
|
|
1144
|
+
audit: z.ZodObject<{
|
|
1145
|
+
date: z.ZodISODate;
|
|
1146
|
+
external_id: z.ZodUUID;
|
|
1147
|
+
external_url: z.ZodURL;
|
|
1148
|
+
methodology_compliance: z.ZodEnum<{
|
|
1149
|
+
PASSED: "PASSED";
|
|
1150
|
+
FAILED: "FAILED";
|
|
1151
|
+
}>;
|
|
1152
|
+
rules_executed: z.ZodNumber;
|
|
1153
|
+
report: z.ZodString;
|
|
1154
|
+
}, z.core.$strict>;
|
|
1155
|
+
mass_id: z.ZodObject<{
|
|
1156
|
+
external_id: z.ZodUUID;
|
|
1157
|
+
token_id: z.ZodString;
|
|
1158
|
+
external_url: z.ZodURL;
|
|
1159
|
+
uri: z.ZodString;
|
|
1160
|
+
}, z.core.$strict>;
|
|
1161
|
+
waste_classification: z.ZodObject<{
|
|
1162
|
+
primary_type: z.ZodString;
|
|
1163
|
+
subtype: z.ZodString;
|
|
1164
|
+
net_weight_kg: z.ZodNumber;
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
origin_location: z.ZodObject<{
|
|
1167
|
+
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1168
|
+
municipality: z.ZodString;
|
|
1169
|
+
administrative_division: z.ZodString;
|
|
1170
|
+
administrative_division_code: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
country: z.ZodString;
|
|
1172
|
+
country_code: z.ZodString;
|
|
1173
|
+
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1174
|
+
coordinates: z.ZodObject<{
|
|
1175
|
+
latitude: z.ZodNumber;
|
|
1176
|
+
longitude: z.ZodNumber;
|
|
1177
|
+
precision_level: z.ZodEnum<{
|
|
1178
|
+
exact: "exact";
|
|
1179
|
+
neighborhood: "neighborhood";
|
|
1180
|
+
city: "city";
|
|
1181
|
+
region: "region";
|
|
1182
|
+
country: "country";
|
|
1183
|
+
}>;
|
|
1184
|
+
}, z.core.$strict>;
|
|
1185
|
+
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
+
"Collection Point": "Collection Point";
|
|
1187
|
+
"Recycling Facility": "Recycling Facility";
|
|
1188
|
+
"Administrative Office": "Administrative Office";
|
|
1189
|
+
Other: "Other";
|
|
1190
|
+
}>>;
|
|
1191
|
+
}, z.core.$strict>;
|
|
1192
|
+
prevented_emissions_calculation: z.ZodObject<{
|
|
1193
|
+
formula: z.ZodString;
|
|
1194
|
+
method: z.ZodString;
|
|
1195
|
+
date: z.ZodISODate;
|
|
1196
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1197
|
+
reference: z.ZodString;
|
|
1198
|
+
value: z.ZodNumber;
|
|
1199
|
+
label: z.ZodString;
|
|
1200
|
+
}, z.core.$strict>>;
|
|
1201
|
+
}, z.core.$strict>;
|
|
1202
|
+
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1203
|
+
participant_id: z.ZodUUID;
|
|
1204
|
+
name: z.ZodString;
|
|
1205
|
+
role: z.ZodString;
|
|
1206
|
+
accreditation_id: z.ZodUUID;
|
|
1207
|
+
external_url: z.ZodURL;
|
|
1208
|
+
}, z.core.$strict>>;
|
|
1209
|
+
participant_rewards: z.ZodOptional<z.ZodObject<{
|
|
1210
|
+
distribution_basis: z.ZodString;
|
|
1211
|
+
reward_allocations: z.ZodArray<z.ZodObject<{
|
|
1212
|
+
participant_id: z.ZodUUID;
|
|
1213
|
+
participant_name: z.ZodString;
|
|
1214
|
+
role: z.ZodString;
|
|
1215
|
+
reward_percentage: z.ZodNumber;
|
|
1216
|
+
large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
|
|
1217
|
+
effective_percentage: z.ZodNumber;
|
|
1218
|
+
}, z.core.$strict>>;
|
|
1219
|
+
distribution_notes: z.ZodOptional<z.ZodObject<{
|
|
1220
|
+
large_business_discount_applied: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
redirected_rewards: z.ZodOptional<z.ZodString>;
|
|
1222
|
+
}, z.core.$strict>>;
|
|
1223
|
+
}, z.core.$strict>>;
|
|
1224
|
+
}, z.core.$strict>;
|
|
1225
|
+
type GasIDData = z.infer<typeof GasIDDataSchema>;
|
|
1226
|
+
|
|
1227
|
+
declare const GasIDIpfsSchemaMeta: {
|
|
1228
|
+
readonly title: "GasID NFT IPFS Record";
|
|
1229
|
+
readonly description: "Complete GasID NFT IPFS record including fixed attributes and detailed carbon emissions prevention data";
|
|
1230
|
+
readonly $id: string;
|
|
1231
|
+
readonly version: string;
|
|
1232
|
+
};
|
|
1233
|
+
declare const GasIDIpfsSchema: z.ZodObject<{
|
|
1234
|
+
$schema: z.ZodURL;
|
|
1235
|
+
created_at: z.ZodISODateTime;
|
|
1236
|
+
external_id: z.ZodUUID;
|
|
1237
|
+
external_url: z.ZodURL;
|
|
1238
|
+
original_content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1239
|
+
content_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1240
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
1241
|
+
name: z.ZodString;
|
|
1242
|
+
id: z.ZodUUID;
|
|
1243
|
+
}, z.core.$strict>>;
|
|
1244
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1245
|
+
target_uri: z.ZodString;
|
|
1246
|
+
type: z.ZodEnum<{
|
|
1247
|
+
collection: "collection";
|
|
1248
|
+
credit: "credit";
|
|
1249
|
+
"gas-id": "gas-id";
|
|
1250
|
+
"mass-id": "mass-id";
|
|
1251
|
+
"mass-id-audit": "mass-id-audit";
|
|
1252
|
+
methodology: "methodology";
|
|
1253
|
+
"purchase-id": "purchase-id";
|
|
1254
|
+
"recycled-id": "recycled-id";
|
|
1255
|
+
}>;
|
|
1256
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
}, z.core.$strict>>>;
|
|
1258
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
blockchain_network: z.ZodEnum<{
|
|
1260
|
+
mainnet: "mainnet";
|
|
1261
|
+
testnet: "testnet";
|
|
1262
|
+
}>;
|
|
1263
|
+
deployment: z.ZodEnum<{
|
|
1264
|
+
production: "production";
|
|
1265
|
+
development: "development";
|
|
1266
|
+
testing: "testing";
|
|
1267
|
+
}>;
|
|
1268
|
+
data_set_name: z.ZodEnum<{
|
|
1269
|
+
TEST: "TEST";
|
|
1270
|
+
PROD: "PROD";
|
|
1271
|
+
}>;
|
|
1272
|
+
}, z.core.$strict>>;
|
|
1273
|
+
blockchain: z.ZodObject<{
|
|
1274
|
+
smart_contract_address: z.ZodString;
|
|
1275
|
+
chain_id: z.ZodNumber;
|
|
1276
|
+
network_name: z.ZodString;
|
|
1277
|
+
token_id: z.ZodString;
|
|
1278
|
+
}, z.core.$strict>;
|
|
1279
|
+
name: z.ZodString;
|
|
1280
|
+
short_name: z.ZodString;
|
|
1281
|
+
description: z.ZodString;
|
|
1282
|
+
image: z.ZodString;
|
|
1283
|
+
background_color: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
animation_url: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
external_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1286
|
+
label: z.ZodString;
|
|
1287
|
+
url: z.ZodURL;
|
|
1288
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strict>>>;
|
|
1290
|
+
schema: z.ZodObject<{
|
|
1291
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
1292
|
+
version: z.ZodString;
|
|
1293
|
+
type: z.ZodLiteral<"GasID">;
|
|
1294
|
+
}, z.core.$strict>;
|
|
1295
|
+
attributes: z.ZodTuple<[z.ZodObject<{
|
|
1296
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1297
|
+
number: "number";
|
|
1298
|
+
date: "date";
|
|
1299
|
+
boost_number: "boost_number";
|
|
1300
|
+
boost_percentage: "boost_percentage";
|
|
1301
|
+
}>>;
|
|
1302
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1303
|
+
trait_type: z.ZodLiteral<"Methodology">;
|
|
1304
|
+
value: z.ZodString;
|
|
1305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1306
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1307
|
+
number: "number";
|
|
1308
|
+
date: "date";
|
|
1309
|
+
boost_number: "boost_number";
|
|
1310
|
+
boost_percentage: "boost_percentage";
|
|
1311
|
+
}>>;
|
|
1312
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1313
|
+
trait_type: z.ZodLiteral<"Gas Type">;
|
|
1314
|
+
value: z.ZodString;
|
|
1315
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1316
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1317
|
+
trait_type: z.ZodLiteral<"CO₂e Prevented (kg)">;
|
|
1318
|
+
value: z.ZodNumber;
|
|
1319
|
+
display_type: z.ZodLiteral<"number">;
|
|
1320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1321
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1322
|
+
trait_type: z.ZodLiteral<"Credit Amount">;
|
|
1323
|
+
value: z.ZodNumber;
|
|
1324
|
+
display_type: z.ZodLiteral<"number">;
|
|
1325
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1326
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1327
|
+
number: "number";
|
|
1328
|
+
date: "date";
|
|
1329
|
+
boost_number: "boost_number";
|
|
1330
|
+
boost_percentage: "boost_percentage";
|
|
1331
|
+
}>>;
|
|
1332
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1333
|
+
trait_type: z.ZodLiteral<"Credit Type">;
|
|
1334
|
+
value: z.ZodString;
|
|
1335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1336
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1337
|
+
number: "number";
|
|
1338
|
+
date: "date";
|
|
1339
|
+
boost_number: "boost_number";
|
|
1340
|
+
boost_percentage: "boost_percentage";
|
|
1341
|
+
}>>;
|
|
1342
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1343
|
+
trait_type: z.ZodLiteral<"Source Waste Type">;
|
|
1344
|
+
value: z.ZodString;
|
|
1345
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1346
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
trait_type: z.ZodLiteral<"Source Weight (kg)">;
|
|
1348
|
+
value: z.ZodNumber;
|
|
1349
|
+
display_type: z.ZodLiteral<"number">;
|
|
1350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1351
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1352
|
+
number: "number";
|
|
1353
|
+
date: "date";
|
|
1354
|
+
boost_number: "boost_number";
|
|
1355
|
+
boost_percentage: "boost_percentage";
|
|
1356
|
+
}>>;
|
|
1357
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1358
|
+
trait_type: z.ZodLiteral<"Origin Country">;
|
|
1359
|
+
value: z.ZodString;
|
|
1360
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1361
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1362
|
+
number: "number";
|
|
1363
|
+
date: "date";
|
|
1364
|
+
boost_number: "boost_number";
|
|
1365
|
+
boost_percentage: "boost_percentage";
|
|
1366
|
+
}>>;
|
|
1367
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1368
|
+
trait_type: z.ZodLiteral<"Origin Municipality">;
|
|
1369
|
+
value: z.ZodString;
|
|
1370
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1371
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1372
|
+
number: "number";
|
|
1373
|
+
date: "date";
|
|
1374
|
+
boost_number: "boost_number";
|
|
1375
|
+
boost_percentage: "boost_percentage";
|
|
1376
|
+
}>>;
|
|
1377
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1378
|
+
trait_type: z.ZodLiteral<"Recycler">;
|
|
1379
|
+
value: z.ZodString;
|
|
1380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1381
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1382
|
+
number: "number";
|
|
1383
|
+
date: "date";
|
|
1384
|
+
boost_number: "boost_number";
|
|
1385
|
+
boost_percentage: "boost_percentage";
|
|
1386
|
+
}>>;
|
|
1387
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1388
|
+
trait_type: z.ZodLiteral<"MassID">;
|
|
1389
|
+
value: z.ZodString;
|
|
1390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1391
|
+
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1392
|
+
value: z.ZodNumber;
|
|
1393
|
+
display_type: z.ZodLiteral<"date">;
|
|
1394
|
+
}, z.core.$strict>], null>;
|
|
1395
|
+
data: z.ZodObject<{
|
|
1396
|
+
summary: z.ZodObject<{
|
|
1397
|
+
gas_type: z.ZodString;
|
|
1398
|
+
credit_type: z.ZodString;
|
|
1399
|
+
credit_amount: z.ZodNumber;
|
|
1400
|
+
prevented_co2e_kg: z.ZodNumber;
|
|
1401
|
+
}, z.core.$strict>;
|
|
1402
|
+
methodology: z.ZodObject<{
|
|
1403
|
+
external_id: z.ZodUUID;
|
|
1404
|
+
name: z.ZodString;
|
|
1405
|
+
version: z.ZodString;
|
|
1406
|
+
external_url: z.ZodURL;
|
|
1407
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
}, z.core.$strict>;
|
|
1409
|
+
audit: z.ZodObject<{
|
|
1410
|
+
date: z.ZodISODate;
|
|
1411
|
+
external_id: z.ZodUUID;
|
|
1412
|
+
external_url: z.ZodURL;
|
|
1413
|
+
methodology_compliance: z.ZodEnum<{
|
|
1414
|
+
PASSED: "PASSED";
|
|
1415
|
+
FAILED: "FAILED";
|
|
1416
|
+
}>;
|
|
1417
|
+
rules_executed: z.ZodNumber;
|
|
1418
|
+
report: z.ZodString;
|
|
1419
|
+
}, z.core.$strict>;
|
|
1420
|
+
mass_id: z.ZodObject<{
|
|
1421
|
+
external_id: z.ZodUUID;
|
|
1422
|
+
token_id: z.ZodString;
|
|
1423
|
+
external_url: z.ZodURL;
|
|
1424
|
+
uri: z.ZodString;
|
|
1425
|
+
}, z.core.$strict>;
|
|
1426
|
+
waste_classification: z.ZodObject<{
|
|
1427
|
+
primary_type: z.ZodString;
|
|
1428
|
+
subtype: z.ZodString;
|
|
1429
|
+
net_weight_kg: z.ZodNumber;
|
|
1430
|
+
}, z.core.$strict>;
|
|
1431
|
+
origin_location: z.ZodObject<{
|
|
1432
|
+
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1433
|
+
municipality: z.ZodString;
|
|
1434
|
+
administrative_division: z.ZodString;
|
|
1435
|
+
administrative_division_code: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
country: z.ZodString;
|
|
1437
|
+
country_code: z.ZodString;
|
|
1438
|
+
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1439
|
+
coordinates: z.ZodObject<{
|
|
1440
|
+
latitude: z.ZodNumber;
|
|
1441
|
+
longitude: z.ZodNumber;
|
|
1442
|
+
precision_level: z.ZodEnum<{
|
|
1443
|
+
exact: "exact";
|
|
1444
|
+
neighborhood: "neighborhood";
|
|
1445
|
+
city: "city";
|
|
1446
|
+
region: "region";
|
|
1447
|
+
country: "country";
|
|
1448
|
+
}>;
|
|
1449
|
+
}, z.core.$strict>;
|
|
1450
|
+
facility_type: z.ZodOptional<z.ZodEnum<{
|
|
1451
|
+
"Collection Point": "Collection Point";
|
|
1452
|
+
"Recycling Facility": "Recycling Facility";
|
|
1453
|
+
"Administrative Office": "Administrative Office";
|
|
1454
|
+
Other: "Other";
|
|
1455
|
+
}>>;
|
|
1456
|
+
}, z.core.$strict>;
|
|
1457
|
+
prevented_emissions_calculation: z.ZodObject<{
|
|
1458
|
+
formula: z.ZodString;
|
|
1459
|
+
method: z.ZodString;
|
|
1460
|
+
date: z.ZodISODate;
|
|
1461
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1462
|
+
reference: z.ZodString;
|
|
1463
|
+
value: z.ZodNumber;
|
|
1464
|
+
label: z.ZodString;
|
|
1465
|
+
}, z.core.$strict>>;
|
|
1466
|
+
}, z.core.$strict>;
|
|
1467
|
+
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1468
|
+
participant_id: z.ZodUUID;
|
|
1469
|
+
name: z.ZodString;
|
|
1470
|
+
role: z.ZodString;
|
|
1471
|
+
accreditation_id: z.ZodUUID;
|
|
1472
|
+
external_url: z.ZodURL;
|
|
1473
|
+
}, z.core.$strict>>;
|
|
1474
|
+
participant_rewards: z.ZodOptional<z.ZodObject<{
|
|
1475
|
+
distribution_basis: z.ZodString;
|
|
1476
|
+
reward_allocations: z.ZodArray<z.ZodObject<{
|
|
1477
|
+
participant_id: z.ZodUUID;
|
|
1478
|
+
participant_name: z.ZodString;
|
|
1479
|
+
role: z.ZodString;
|
|
1480
|
+
reward_percentage: z.ZodNumber;
|
|
1481
|
+
large_business_discount_applied: z.ZodOptional<z.ZodBoolean>;
|
|
1482
|
+
effective_percentage: z.ZodNumber;
|
|
1483
|
+
}, z.core.$strict>>;
|
|
1484
|
+
distribution_notes: z.ZodOptional<z.ZodObject<{
|
|
1485
|
+
large_business_discount_applied: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
redirected_rewards: z.ZodOptional<z.ZodString>;
|
|
1487
|
+
}, z.core.$strict>>;
|
|
1488
|
+
}, z.core.$strict>>;
|
|
1489
|
+
}, z.core.$strict>;
|
|
1003
1490
|
}, z.core.$strict>;
|
|
1004
|
-
type
|
|
1005
|
-
|
|
1491
|
+
type GasIDIpfs = z.infer<typeof GasIDIpfsSchema>;
|
|
1492
|
+
|
|
1493
|
+
declare const RecycledIDAttributeMethodologySchema: z.ZodObject<{
|
|
1006
1494
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1007
1495
|
number: "number";
|
|
1008
1496
|
date: "date";
|
|
@@ -1012,7 +1500,23 @@ declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1012
1500
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1013
1501
|
trait_type: z.ZodLiteral<"Methodology">;
|
|
1014
1502
|
value: z.ZodString;
|
|
1015
|
-
}, z.core.$strict
|
|
1503
|
+
}, z.core.$strict>;
|
|
1504
|
+
type RecycledIDAttributeMethodology = z.infer<typeof RecycledIDAttributeMethodologySchema>;
|
|
1505
|
+
declare const RecycledIDAttributeRecycledMassWeightSchema: z.ZodObject<{
|
|
1506
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1507
|
+
trait_type: z.ZodLiteral<"Recycled Mass Weight (kg)">;
|
|
1508
|
+
value: z.ZodNumber;
|
|
1509
|
+
display_type: z.ZodLiteral<"number">;
|
|
1510
|
+
}, z.core.$strict>;
|
|
1511
|
+
type RecycledIDAttributeRecycledMassWeight = z.infer<typeof RecycledIDAttributeRecycledMassWeightSchema>;
|
|
1512
|
+
declare const RecycledIDAttributeCreditAmountSchema: z.ZodObject<{
|
|
1513
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1514
|
+
trait_type: z.ZodLiteral<"Credit Amount">;
|
|
1515
|
+
value: z.ZodNumber;
|
|
1516
|
+
display_type: z.ZodLiteral<"number">;
|
|
1517
|
+
}, z.core.$strict>;
|
|
1518
|
+
type RecycledIDAttributeCreditAmount = z.infer<typeof RecycledIDAttributeCreditAmountSchema>;
|
|
1519
|
+
declare const RecycledIDAttributeCreditTypeSchema: z.ZodObject<{
|
|
1016
1520
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1017
1521
|
number: "number";
|
|
1018
1522
|
date: "date";
|
|
@@ -1020,11 +1524,96 @@ declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1020
1524
|
boost_percentage: "boost_percentage";
|
|
1021
1525
|
}>>;
|
|
1022
1526
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
-
trait_type: z.ZodLiteral<"
|
|
1527
|
+
trait_type: z.ZodLiteral<"Credit Type">;
|
|
1528
|
+
value: z.ZodString;
|
|
1529
|
+
}, z.core.$strict>;
|
|
1530
|
+
type RecycledIDAttributeCreditType = z.infer<typeof RecycledIDAttributeCreditTypeSchema>;
|
|
1531
|
+
declare const RecycledIDAttributeSourceWasteTypeSchema: z.ZodObject<{
|
|
1532
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1533
|
+
number: "number";
|
|
1534
|
+
date: "date";
|
|
1535
|
+
boost_number: "boost_number";
|
|
1536
|
+
boost_percentage: "boost_percentage";
|
|
1537
|
+
}>>;
|
|
1538
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1539
|
+
trait_type: z.ZodLiteral<"Source Waste Type">;
|
|
1540
|
+
value: z.ZodString;
|
|
1541
|
+
}, z.core.$strict>;
|
|
1542
|
+
type RecycledIDAttributeSourceWasteType = z.infer<typeof RecycledIDAttributeSourceWasteTypeSchema>;
|
|
1543
|
+
declare const RecycledIDAttributeSourceWeightSchema: z.ZodObject<{
|
|
1544
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1545
|
+
trait_type: z.ZodLiteral<"Source Weight (kg)">;
|
|
1546
|
+
value: z.ZodNumber;
|
|
1547
|
+
display_type: z.ZodLiteral<"number">;
|
|
1548
|
+
}, z.core.$strict>;
|
|
1549
|
+
type RecycledIDAttributeSourceWeight = z.infer<typeof RecycledIDAttributeSourceWeightSchema>;
|
|
1550
|
+
declare const RecycledIDAttributeOriginCountrySchema: z.ZodObject<{
|
|
1551
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1552
|
+
number: "number";
|
|
1553
|
+
date: "date";
|
|
1554
|
+
boost_number: "boost_number";
|
|
1555
|
+
boost_percentage: "boost_percentage";
|
|
1556
|
+
}>>;
|
|
1557
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1558
|
+
trait_type: z.ZodLiteral<"Origin Country">;
|
|
1559
|
+
value: z.ZodString;
|
|
1560
|
+
}, z.core.$strict>;
|
|
1561
|
+
type RecycledIDAttributeOriginCountry = z.infer<typeof RecycledIDAttributeOriginCountrySchema>;
|
|
1562
|
+
declare const RecycledIDAttributeOriginMunicipalitySchema: z.ZodObject<{
|
|
1563
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1564
|
+
number: "number";
|
|
1565
|
+
date: "date";
|
|
1566
|
+
boost_number: "boost_number";
|
|
1567
|
+
boost_percentage: "boost_percentage";
|
|
1568
|
+
}>>;
|
|
1569
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
+
trait_type: z.ZodLiteral<"Origin Municipality">;
|
|
1571
|
+
value: z.ZodString;
|
|
1572
|
+
}, z.core.$strict>;
|
|
1573
|
+
type RecycledIDAttributeOriginMunicipality = z.infer<typeof RecycledIDAttributeOriginMunicipalitySchema>;
|
|
1574
|
+
declare const RecycledIDAttributeRecyclerSchema: z.ZodObject<{
|
|
1575
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1576
|
+
number: "number";
|
|
1577
|
+
date: "date";
|
|
1578
|
+
boost_number: "boost_number";
|
|
1579
|
+
boost_percentage: "boost_percentage";
|
|
1580
|
+
}>>;
|
|
1581
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1582
|
+
trait_type: z.ZodLiteral<"Recycler">;
|
|
1583
|
+
value: z.ZodString;
|
|
1584
|
+
}, z.core.$strict>;
|
|
1585
|
+
type RecycledIDAttributeRecycler = z.infer<typeof RecycledIDAttributeRecyclerSchema>;
|
|
1586
|
+
declare const RecycledIDAttributeMassIDTokenIdSchema: z.ZodObject<{
|
|
1587
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1588
|
+
number: "number";
|
|
1589
|
+
date: "date";
|
|
1590
|
+
boost_number: "boost_number";
|
|
1591
|
+
boost_percentage: "boost_percentage";
|
|
1592
|
+
}>>;
|
|
1593
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1594
|
+
trait_type: z.ZodLiteral<"MassID">;
|
|
1595
|
+
value: z.ZodString;
|
|
1596
|
+
}, z.core.$strict>;
|
|
1597
|
+
type RecycledIDAttributeMassIDTokenId = z.infer<typeof RecycledIDAttributeMassIDTokenIdSchema>;
|
|
1598
|
+
declare const RecycledIDAttributeMassIDRecyclingDateSchema: z.ZodObject<{
|
|
1599
|
+
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1600
|
+
value: z.ZodNumber;
|
|
1601
|
+
display_type: z.ZodLiteral<"date">;
|
|
1602
|
+
}, z.core.$strict>;
|
|
1603
|
+
type RecycledIDAttributeMassIDRecyclingDate = z.infer<typeof RecycledIDAttributeMassIDRecyclingDateSchema>;
|
|
1604
|
+
declare const RecycledIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
1605
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1606
|
+
number: "number";
|
|
1607
|
+
date: "date";
|
|
1608
|
+
boost_number: "boost_number";
|
|
1609
|
+
boost_percentage: "boost_percentage";
|
|
1610
|
+
}>>;
|
|
1611
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1612
|
+
trait_type: z.ZodLiteral<"Methodology">;
|
|
1024
1613
|
value: z.ZodString;
|
|
1025
1614
|
}, z.core.$strict>, z.ZodObject<{
|
|
1026
1615
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1027
|
-
trait_type: z.ZodLiteral<"
|
|
1616
|
+
trait_type: z.ZodLiteral<"Recycled Mass Weight (kg)">;
|
|
1028
1617
|
value: z.ZodNumber;
|
|
1029
1618
|
display_type: z.ZodLiteral<"number">;
|
|
1030
1619
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1098,43 +1687,23 @@ declare const GasIDAttributesSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
1098
1687
|
trait_type: z.ZodLiteral<"MassID">;
|
|
1099
1688
|
value: z.ZodString;
|
|
1100
1689
|
}, z.core.$strict>, z.ZodObject<{
|
|
1101
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1102
1690
|
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1103
|
-
value: z.
|
|
1691
|
+
value: z.ZodNumber;
|
|
1104
1692
|
display_type: z.ZodLiteral<"date">;
|
|
1105
1693
|
}, z.core.$strict>], null>;
|
|
1106
|
-
type
|
|
1694
|
+
type RecycledIDAttributes = z.infer<typeof RecycledIDAttributesSchema>;
|
|
1107
1695
|
|
|
1108
|
-
declare const
|
|
1109
|
-
|
|
1696
|
+
declare const RecycledIDSummarySchema: z.ZodObject<{
|
|
1697
|
+
recycled_mass_kg: z.ZodNumber;
|
|
1110
1698
|
credit_type: z.ZodString;
|
|
1111
1699
|
credit_amount: z.ZodNumber;
|
|
1112
|
-
prevented_co2e_kg: z.ZodNumber;
|
|
1113
|
-
}, z.core.$strict>;
|
|
1114
|
-
type GasIDSummary = z.infer<typeof GasIDSummarySchema>;
|
|
1115
|
-
declare const CalculationValueSchema: z.ZodObject<{
|
|
1116
|
-
reference: z.ZodString;
|
|
1117
|
-
value: z.ZodNumber;
|
|
1118
|
-
label: z.ZodString;
|
|
1119
|
-
}, z.core.$strict>;
|
|
1120
|
-
type CalculationValue = z.infer<typeof CalculationValueSchema>;
|
|
1121
|
-
declare const PreventedEmissionsCalculationSchema: z.ZodObject<{
|
|
1122
|
-
formula: z.ZodString;
|
|
1123
|
-
method: z.ZodString;
|
|
1124
|
-
date: z.ZodISODate;
|
|
1125
|
-
values: z.ZodArray<z.ZodObject<{
|
|
1126
|
-
reference: z.ZodString;
|
|
1127
|
-
value: z.ZodNumber;
|
|
1128
|
-
label: z.ZodString;
|
|
1129
|
-
}, z.core.$strict>>;
|
|
1130
1700
|
}, z.core.$strict>;
|
|
1131
|
-
type
|
|
1132
|
-
declare const
|
|
1701
|
+
type RecycledIDSummary = z.infer<typeof RecycledIDSummarySchema>;
|
|
1702
|
+
declare const RecycledIDDataSchema: z.ZodObject<{
|
|
1133
1703
|
summary: z.ZodObject<{
|
|
1134
|
-
|
|
1704
|
+
recycled_mass_kg: z.ZodNumber;
|
|
1135
1705
|
credit_type: z.ZodString;
|
|
1136
1706
|
credit_amount: z.ZodNumber;
|
|
1137
|
-
prevented_co2e_kg: z.ZodNumber;
|
|
1138
1707
|
}, z.core.$strict>;
|
|
1139
1708
|
methodology: z.ZodObject<{
|
|
1140
1709
|
external_id: z.ZodUUID;
|
|
@@ -1191,16 +1760,6 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1191
1760
|
Other: "Other";
|
|
1192
1761
|
}>>;
|
|
1193
1762
|
}, z.core.$strict>;
|
|
1194
|
-
prevented_emissions_calculation: z.ZodObject<{
|
|
1195
|
-
formula: z.ZodString;
|
|
1196
|
-
method: z.ZodString;
|
|
1197
|
-
date: z.ZodISODate;
|
|
1198
|
-
values: z.ZodArray<z.ZodObject<{
|
|
1199
|
-
reference: z.ZodString;
|
|
1200
|
-
value: z.ZodNumber;
|
|
1201
|
-
label: z.ZodString;
|
|
1202
|
-
}, z.core.$strict>>;
|
|
1203
|
-
}, z.core.$strict>;
|
|
1204
1763
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1205
1764
|
participant_id: z.ZodUUID;
|
|
1206
1765
|
name: z.ZodString;
|
|
@@ -1224,15 +1783,15 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1224
1783
|
}, z.core.$strict>>;
|
|
1225
1784
|
}, z.core.$strict>>;
|
|
1226
1785
|
}, z.core.$strict>;
|
|
1227
|
-
type
|
|
1786
|
+
type RecycledIDData = z.infer<typeof RecycledIDDataSchema>;
|
|
1228
1787
|
|
|
1229
|
-
declare const
|
|
1230
|
-
readonly title: "
|
|
1231
|
-
readonly description: "Complete
|
|
1788
|
+
declare const RecycledIDIpfsSchemaMeta: {
|
|
1789
|
+
readonly title: "RecycledID NFT IPFS Record";
|
|
1790
|
+
readonly description: "Complete RecycledID NFT IPFS record including fixed attributes and recycling outcome data";
|
|
1232
1791
|
readonly $id: string;
|
|
1233
1792
|
readonly version: string;
|
|
1234
1793
|
};
|
|
1235
|
-
declare const
|
|
1794
|
+
declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
1236
1795
|
$schema: z.ZodURL;
|
|
1237
1796
|
created_at: z.ZodISODateTime;
|
|
1238
1797
|
external_id: z.ZodUUID;
|
|
@@ -1290,9 +1849,9 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1290
1849
|
description: z.ZodOptional<z.ZodString>;
|
|
1291
1850
|
}, z.core.$strict>>>;
|
|
1292
1851
|
schema: z.ZodObject<{
|
|
1293
|
-
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1852
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
1294
1853
|
version: z.ZodString;
|
|
1295
|
-
type: z.ZodLiteral<"
|
|
1854
|
+
type: z.ZodLiteral<"RecycledID">;
|
|
1296
1855
|
}, z.core.$strict>;
|
|
1297
1856
|
attributes: z.ZodTuple<[z.ZodObject<{
|
|
1298
1857
|
display_type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1304,19 +1863,9 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1304
1863
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1305
1864
|
trait_type: z.ZodLiteral<"Methodology">;
|
|
1306
1865
|
value: z.ZodString;
|
|
1307
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1308
|
-
display_type: z.ZodOptional<z.ZodEnum<{
|
|
1309
|
-
number: "number";
|
|
1310
|
-
date: "date";
|
|
1311
|
-
boost_number: "boost_number";
|
|
1312
|
-
boost_percentage: "boost_percentage";
|
|
1313
|
-
}>>;
|
|
1314
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1315
|
-
trait_type: z.ZodLiteral<"Gas Type">;
|
|
1316
|
-
value: z.ZodString;
|
|
1317
1866
|
}, z.core.$strict>, z.ZodObject<{
|
|
1318
1867
|
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1319
|
-
trait_type: z.ZodLiteral<"
|
|
1868
|
+
trait_type: z.ZodLiteral<"Recycled Mass Weight (kg)">;
|
|
1320
1869
|
value: z.ZodNumber;
|
|
1321
1870
|
display_type: z.ZodLiteral<"number">;
|
|
1322
1871
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1390,17 +1939,15 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1390
1939
|
trait_type: z.ZodLiteral<"MassID">;
|
|
1391
1940
|
value: z.ZodString;
|
|
1392
1941
|
}, z.core.$strict>, z.ZodObject<{
|
|
1393
|
-
max_value: z.ZodOptional<z.ZodNumber>;
|
|
1394
1942
|
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
1395
|
-
value: z.
|
|
1943
|
+
value: z.ZodNumber;
|
|
1396
1944
|
display_type: z.ZodLiteral<"date">;
|
|
1397
1945
|
}, z.core.$strict>], null>;
|
|
1398
1946
|
data: z.ZodObject<{
|
|
1399
1947
|
summary: z.ZodObject<{
|
|
1400
|
-
|
|
1948
|
+
recycled_mass_kg: z.ZodNumber;
|
|
1401
1949
|
credit_type: z.ZodString;
|
|
1402
1950
|
credit_amount: z.ZodNumber;
|
|
1403
|
-
prevented_co2e_kg: z.ZodNumber;
|
|
1404
1951
|
}, z.core.$strict>;
|
|
1405
1952
|
methodology: z.ZodObject<{
|
|
1406
1953
|
external_id: z.ZodUUID;
|
|
@@ -1457,16 +2004,6 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1457
2004
|
Other: "Other";
|
|
1458
2005
|
}>>;
|
|
1459
2006
|
}, z.core.$strict>;
|
|
1460
|
-
prevented_emissions_calculation: z.ZodObject<{
|
|
1461
|
-
formula: z.ZodString;
|
|
1462
|
-
method: z.ZodString;
|
|
1463
|
-
date: z.ZodISODate;
|
|
1464
|
-
values: z.ZodArray<z.ZodObject<{
|
|
1465
|
-
reference: z.ZodString;
|
|
1466
|
-
value: z.ZodNumber;
|
|
1467
|
-
label: z.ZodString;
|
|
1468
|
-
}, z.core.$strict>>;
|
|
1469
|
-
}, z.core.$strict>;
|
|
1470
2007
|
accredited_participants: z.ZodArray<z.ZodObject<{
|
|
1471
2008
|
participant_id: z.ZodUUID;
|
|
1472
2009
|
name: z.ZodString;
|
|
@@ -1491,7 +2028,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1491
2028
|
}, z.core.$strict>>;
|
|
1492
2029
|
}, z.core.$strict>;
|
|
1493
2030
|
}, z.core.$strict>;
|
|
1494
|
-
type
|
|
2031
|
+
type RecycledIDIpfs = z.infer<typeof RecycledIDIpfsSchema>;
|
|
1495
2032
|
|
|
1496
2033
|
declare const ParticipantSchema: z.ZodObject<{
|
|
1497
2034
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
@@ -1645,7 +2182,7 @@ declare const ParticipantRewardsSchema: z.ZodObject<{
|
|
|
1645
2182
|
type ParticipantRewards = z.infer<typeof ParticipantRewardsSchema>;
|
|
1646
2183
|
|
|
1647
2184
|
declare const SchemaInfoSchema: z.ZodObject<{
|
|
1648
|
-
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2185
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
1649
2186
|
type: z.ZodEnum<{
|
|
1650
2187
|
MassID: "MassID";
|
|
1651
2188
|
"MassID Audit": "MassID Audit";
|
|
@@ -1698,7 +2235,7 @@ type RecordEnvironment = z.infer<typeof RecordEnvironmentSchema>;
|
|
|
1698
2235
|
declare const BaseIpfsSchema: z.ZodObject<{
|
|
1699
2236
|
$schema: z.ZodURL;
|
|
1700
2237
|
schema: z.ZodObject<{
|
|
1701
|
-
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2238
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
1702
2239
|
type: z.ZodEnum<{
|
|
1703
2240
|
MassID: "MassID";
|
|
1704
2241
|
"MassID Audit": "MassID Audit";
|
|
@@ -1827,7 +2364,7 @@ declare const NftIpfsSchema: z.ZodObject<{
|
|
|
1827
2364
|
}, z.core.$strict>>;
|
|
1828
2365
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1829
2366
|
schema: z.ZodObject<{
|
|
1830
|
-
hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
2367
|
+
hash: z.ZodUnion<readonly [z.ZodCustomStringFormat<"sha256_hex">, z.ZodString]>;
|
|
1831
2368
|
version: z.ZodString;
|
|
1832
2369
|
type: z.ZodEnum<{
|
|
1833
2370
|
MassID: "MassID";
|
|
@@ -1889,6 +2426,16 @@ declare const WeightKgSchema: z.ZodNumber;
|
|
|
1889
2426
|
type WeightKg = z.infer<typeof WeightKgSchema>;
|
|
1890
2427
|
declare const NonEmptyStringSchema: z.ZodString;
|
|
1891
2428
|
type NonEmptyString = z.infer<typeof NonEmptyStringSchema>;
|
|
2429
|
+
declare const MunicipalitySchema: z.ZodString;
|
|
2430
|
+
type Municipality = z.infer<typeof MunicipalitySchema>;
|
|
2431
|
+
declare const AdministrativeDivisionSchema: z.ZodString;
|
|
2432
|
+
type AdministrativeDivision = z.infer<typeof AdministrativeDivisionSchema>;
|
|
2433
|
+
declare const CountryNameSchema: z.ZodString;
|
|
2434
|
+
type CountryName = z.infer<typeof CountryNameSchema>;
|
|
2435
|
+
declare const MethodologyNameSchema: z.ZodString;
|
|
2436
|
+
type MethodologyName = z.infer<typeof MethodologyNameSchema>;
|
|
2437
|
+
declare const StringifiedTokenIdSchema: z.ZodString;
|
|
2438
|
+
type StringifiedTokenId = z.infer<typeof StringifiedTokenIdSchema>;
|
|
1892
2439
|
declare const SlugSchema: z.ZodString;
|
|
1893
2440
|
type Slug = z.infer<typeof SlugSchema>;
|
|
1894
2441
|
declare const WasteTypeSchema: z.ZodString;
|
|
@@ -1916,6 +2463,10 @@ declare const PositiveIntegerSchema: z.ZodNumber;
|
|
|
1916
2463
|
type PositiveInteger = z.infer<typeof PositiveIntegerSchema>;
|
|
1917
2464
|
declare const NonNegativeFloatSchema: z.ZodNumber;
|
|
1918
2465
|
type NonNegativeFloat = z.infer<typeof NonNegativeFloatSchema>;
|
|
2466
|
+
declare const CreditTypeSchema: z.ZodString;
|
|
2467
|
+
type CreditType = z.infer<typeof CreditTypeSchema>;
|
|
2468
|
+
declare const CreditAmountSchema: z.ZodNumber;
|
|
2469
|
+
type CreditAmount = z.infer<typeof CreditAmountSchema>;
|
|
1919
2470
|
declare const HoursSchema: z.ZodNumber;
|
|
1920
2471
|
type Hours = z.infer<typeof HoursSchema>;
|
|
1921
2472
|
declare const MinutesSchema: z.ZodNumber;
|
|
@@ -1968,4 +2519,109 @@ declare function getSchemaBaseUrl(): string;
|
|
|
1968
2519
|
declare function buildSchemaUrl(schemaPath: string): string;
|
|
1969
2520
|
declare function getSchemaVersionOrDefault(): string;
|
|
1970
2521
|
|
|
1971
|
-
|
|
2522
|
+
declare const MethodologyAttributeSchema: z.ZodObject<{
|
|
2523
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2524
|
+
number: "number";
|
|
2525
|
+
date: "date";
|
|
2526
|
+
boost_number: "boost_number";
|
|
2527
|
+
boost_percentage: "boost_percentage";
|
|
2528
|
+
}>>;
|
|
2529
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2530
|
+
trait_type: z.ZodLiteral<"Methodology">;
|
|
2531
|
+
value: z.ZodString;
|
|
2532
|
+
}, z.core.$strict>;
|
|
2533
|
+
type MethodologyAttribute = z.infer<typeof MethodologyAttributeSchema>;
|
|
2534
|
+
declare const CreditAmountAttributeSchema: z.ZodObject<{
|
|
2535
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2536
|
+
trait_type: z.ZodLiteral<"Credit Amount">;
|
|
2537
|
+
value: z.ZodNumber;
|
|
2538
|
+
display_type: z.ZodLiteral<"number">;
|
|
2539
|
+
}, z.core.$strict>;
|
|
2540
|
+
type CreditAmountAttribute = z.infer<typeof CreditAmountAttributeSchema>;
|
|
2541
|
+
declare const CreditTypeAttributeSchema: z.ZodObject<{
|
|
2542
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2543
|
+
number: "number";
|
|
2544
|
+
date: "date";
|
|
2545
|
+
boost_number: "boost_number";
|
|
2546
|
+
boost_percentage: "boost_percentage";
|
|
2547
|
+
}>>;
|
|
2548
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2549
|
+
trait_type: z.ZodLiteral<"Credit Type">;
|
|
2550
|
+
value: z.ZodString;
|
|
2551
|
+
}, z.core.$strict>;
|
|
2552
|
+
type CreditTypeAttribute = z.infer<typeof CreditTypeAttributeSchema>;
|
|
2553
|
+
declare const SourceWasteTypeAttributeSchema: z.ZodObject<{
|
|
2554
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2555
|
+
number: "number";
|
|
2556
|
+
date: "date";
|
|
2557
|
+
boost_number: "boost_number";
|
|
2558
|
+
boost_percentage: "boost_percentage";
|
|
2559
|
+
}>>;
|
|
2560
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2561
|
+
trait_type: z.ZodLiteral<"Source Waste Type">;
|
|
2562
|
+
value: z.ZodString;
|
|
2563
|
+
}, z.core.$strict>;
|
|
2564
|
+
type SourceWasteTypeAttribute = z.infer<typeof SourceWasteTypeAttributeSchema>;
|
|
2565
|
+
declare const SourceWeightAttributeSchema: z.ZodObject<{
|
|
2566
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2567
|
+
trait_type: z.ZodLiteral<"Source Weight (kg)">;
|
|
2568
|
+
value: z.ZodNumber;
|
|
2569
|
+
display_type: z.ZodLiteral<"number">;
|
|
2570
|
+
}, z.core.$strict>;
|
|
2571
|
+
type SourceWeightAttribute = z.infer<typeof SourceWeightAttributeSchema>;
|
|
2572
|
+
declare const OriginCountryAttributeSchema: z.ZodObject<{
|
|
2573
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2574
|
+
number: "number";
|
|
2575
|
+
date: "date";
|
|
2576
|
+
boost_number: "boost_number";
|
|
2577
|
+
boost_percentage: "boost_percentage";
|
|
2578
|
+
}>>;
|
|
2579
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2580
|
+
trait_type: z.ZodLiteral<"Origin Country">;
|
|
2581
|
+
value: z.ZodString;
|
|
2582
|
+
}, z.core.$strict>;
|
|
2583
|
+
type OriginCountryAttribute = z.infer<typeof OriginCountryAttributeSchema>;
|
|
2584
|
+
declare const OriginMunicipalityAttributeSchema: z.ZodObject<{
|
|
2585
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2586
|
+
number: "number";
|
|
2587
|
+
date: "date";
|
|
2588
|
+
boost_number: "boost_number";
|
|
2589
|
+
boost_percentage: "boost_percentage";
|
|
2590
|
+
}>>;
|
|
2591
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2592
|
+
trait_type: z.ZodLiteral<"Origin Municipality">;
|
|
2593
|
+
value: z.ZodString;
|
|
2594
|
+
}, z.core.$strict>;
|
|
2595
|
+
type OriginMunicipalityAttribute = z.infer<typeof OriginMunicipalityAttributeSchema>;
|
|
2596
|
+
declare const RecyclerAttributeSchema: z.ZodObject<{
|
|
2597
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2598
|
+
number: "number";
|
|
2599
|
+
date: "date";
|
|
2600
|
+
boost_number: "boost_number";
|
|
2601
|
+
boost_percentage: "boost_percentage";
|
|
2602
|
+
}>>;
|
|
2603
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2604
|
+
trait_type: z.ZodLiteral<"Recycler">;
|
|
2605
|
+
value: z.ZodString;
|
|
2606
|
+
}, z.core.$strict>;
|
|
2607
|
+
type RecyclerAttribute = z.infer<typeof RecyclerAttributeSchema>;
|
|
2608
|
+
declare const MassIDTokenIdAttributeSchema: z.ZodObject<{
|
|
2609
|
+
display_type: z.ZodOptional<z.ZodEnum<{
|
|
2610
|
+
number: "number";
|
|
2611
|
+
date: "date";
|
|
2612
|
+
boost_number: "boost_number";
|
|
2613
|
+
boost_percentage: "boost_percentage";
|
|
2614
|
+
}>>;
|
|
2615
|
+
max_value: z.ZodOptional<z.ZodNumber>;
|
|
2616
|
+
trait_type: z.ZodLiteral<"MassID">;
|
|
2617
|
+
value: z.ZodString;
|
|
2618
|
+
}, z.core.$strict>;
|
|
2619
|
+
type MassIDTokenIdAttribute = z.infer<typeof MassIDTokenIdAttributeSchema>;
|
|
2620
|
+
declare const MassIDRecyclingDateAttributeSchema: z.ZodObject<{
|
|
2621
|
+
trait_type: z.ZodLiteral<"MassID Recycling Date">;
|
|
2622
|
+
value: z.ZodNumber;
|
|
2623
|
+
display_type: z.ZodLiteral<"date">;
|
|
2624
|
+
}, z.core.$strict>;
|
|
2625
|
+
type MassIDRecyclingDateAttribute = z.infer<typeof MassIDRecyclingDateAttributeSchema>;
|
|
2626
|
+
|
|
2627
|
+
export { type AccreditedParticipant, AccreditedParticipantSchema, type AccreditedParticipants, AccreditedParticipantsSchema, type AdministrativeDivision, AdministrativeDivisionSchema, type AuditReference, AuditReferenceSchema, type BaseIpfs, BaseIpfsSchema, type BlockchainChainId, BlockchainChainIdSchema, type BlockchainReference, type CalculationValue, type Coordinates, CoordinatesSchema, type CountryName, CountryNameSchema, type CreditAmount, type CreditAmountAttribute, CreditAmountAttributeSchema, CreditAmountSchema, type CreditType, type CreditTypeAttribute, CreditTypeAttributeSchema, CreditTypeSchema, type DistributionNotes, DistributionNotesSchema, type EthereumAddress, EthereumAddressSchema, type EventAttachment, type EventAttribute, type EventAttributeFormat, type ExternalId, ExternalIdSchema, type ExternalLink, type ExternalUrl, ExternalUrlSchema, type FacilityType, FacilityTypeSchema, type GasIDAttributeCo2ePrevented, type GasIDAttributeCreditAmount, type GasIDAttributeCreditType, type GasIDAttributeGasType, type GasIDAttributeMassIDRecyclingDate, type GasIDAttributeMassIDTokenId, type GasIDAttributeMethodology, type GasIDAttributeOriginCountry, type GasIDAttributeOriginMunicipality, type GasIDAttributeRecycler, type GasIDAttributeSourceWasteType, type GasIDAttributeSourceWeight, type GasIDAttributes, GasIDAttributesSchema, type GasIDData, GasIDDataSchema, type GasIDIpfs, GasIDIpfsSchema, GasIDIpfsSchemaMeta, type GasIDReference, GasIDReferenceSchema, type GasIDSummary, type HexColor, HexColorSchema, type Hours, HoursSchema, type IpfsUri, IpfsUriSchema, type IsoAdministrativeDivisionCode, IsoAdministrativeDivisionCodeSchema, type IsoCountryCode, IsoCountryCodeSchema, type IsoDate, IsoDateSchema, type IsoTimestamp, IsoTimestampSchema, type Keccak256Hash, Keccak256HashSchema, type Latitude, LatitudeSchema, type Location, LocationSchema, type Longitude, LongitudeSchema, type MassIDAttributeContainerType, type MassIDAttributeLocalWasteClassificationId, type MassIDAttributeOriginCountry, type MassIDAttributeOriginDivision, type MassIDAttributeOriginMunicipality, type MassIDAttributePickUpDate, type MassIDAttributeProcessingTime, type MassIDAttributeRecyclingDate, type MassIDAttributeRecyclingManifestCode, type MassIDAttributeRecyclingMethod, type MassIDAttributeScaleType, type MassIDAttributeTransportManifestCode, type MassIDAttributeVehicleType, type MassIDAttributeWasteSubtype, type MassIDAttributeWasteType, type MassIDAttributeWeighingCaptureMethod, type MassIDAttributeWeight, type MassIDAttributes, MassIDAttributesSchema, type MassIDChainOfCustody, type MassIDChainOfCustodyEvent, type MassIDData, MassIDDataSchema, type MassIDGeographicData, type MassIDIpfs, MassIDIpfsSchema, MassIDIpfsSchemaMeta, type MassIDLocalClassification, type MassIDMeasurementUnit, type MassIDRecyclingDateAttribute, MassIDRecyclingDateAttributeSchema, type MassIDReference, MassIDReferenceSchema, type MassIDTokenIdAttribute, MassIDTokenIdAttributeSchema, type MassIDWasteProperties, type MethodologyAttribute, MethodologyAttributeSchema, type MethodologyCompliance, MethodologyComplianceSchema, type MethodologyName, MethodologyNameSchema, type MethodologyReference, MethodologyReferenceSchema, type Minutes, MinutesSchema, type Municipality, MunicipalitySchema, type NftAttribute, NftAttributeSchema, type NftIpfs, NftIpfsSchema, type NftSchemaType, type NonEmptyString, NonEmptyStringSchema, type NonNegativeFloat, NonNegativeFloatSchema, type NonNegativeInteger, NonNegativeIntegerSchema, type OriginCountryAttribute, OriginCountryAttributeSchema, type OriginMunicipalityAttribute, OriginMunicipalityAttributeSchema, type Participant, type ParticipantName, ParticipantNameSchema, type ParticipantRewards, ParticipantRewardsSchema, type ParticipantRole, ParticipantRoleSchema, ParticipantSchema, type Percentage, PercentageSchema, type PositiveInteger, PositiveIntegerSchema, type PrecisionLevel, type PreventedEmissionsCalculation, type RecordCreator, type RecordEnvironment, RecordEnvironmentSchema, type RecordRelationship, type RecordRelationshipType, RecordRelationshipTypeSchema, type RecordSchemaType, RecordSchemaTypeSchema, type RecycledIDAttributeCreditAmount, type RecycledIDAttributeCreditType, type RecycledIDAttributeMassIDRecyclingDate, type RecycledIDAttributeMassIDTokenId, type RecycledIDAttributeMethodology, type RecycledIDAttributeOriginCountry, type RecycledIDAttributeOriginMunicipality, type RecycledIDAttributeRecycledMassWeight, type RecycledIDAttributeRecycler, type RecycledIDAttributeSourceWasteType, type RecycledIDAttributeSourceWeight, type RecycledIDAttributes, RecycledIDAttributesSchema, type RecycledIDData, RecycledIDDataSchema, type RecycledIDIpfs, RecycledIDIpfsSchema, RecycledIDIpfsSchemaMeta, type RecycledIDSummary, type RecyclerAttribute, RecyclerAttributeSchema, type RewardAllocation, RewardAllocationSchema, type SchemaInfo, type SemanticVersion, SemanticVersionSchema, type Sha256Hash, Sha256HashSchema, type Slug, SlugSchema, type SourceWasteTypeAttribute, SourceWasteTypeAttributeSchema, type SourceWeightAttribute, SourceWeightAttributeSchema, type StringifiedTokenId, StringifiedTokenIdSchema, type TokenId, TokenIdSchema, type TokenSymbol, TokenSymbolSchema, type UnixTimestamp, UnixTimestampSchema, type Uuid, UuidSchema, type WasteClassification, WasteClassificationSchema, type WasteSubtype, WasteSubtypeSchema, type WasteType, WasteTypeSchema, type WeightKg, WeightKgSchema, buildSchemaUrl, getSchemaBaseUrl, getSchemaVersionOrDefault, uniqueArrayItems, uniqueBy };
|