@carrot-foundation/schemas 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -116
- package/dist/index.cjs +204 -267
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.js +204 -267
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +77 -77
- package/schemas/ipfs/credit/credit.example.json +4 -4
- package/schemas/ipfs/credit/credit.schema.json +85 -85
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +15 -15
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +432 -424
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +15 -15
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +465 -457
- package/schemas/ipfs/gas-id/gas-id.example.json +9 -9
- package/schemas/ipfs/gas-id/gas-id.schema.json +448 -432
- package/schemas/ipfs/mass-id/mass-id.example.json +7 -7
- package/schemas/ipfs/mass-id/mass-id.schema.json +533 -512
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +57 -57
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +225 -217
- package/schemas/ipfs/methodology/methodology.example.json +5 -5
- package/schemas/ipfs/methodology/methodology.schema.json +124 -124
- package/schemas/ipfs/recycled-id/recycled-id.example.json +9 -9
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +400 -384
- package/schemas/schema-hashes.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -462,7 +462,7 @@ declare const MassIDDataSchema: z.ZodObject<{
|
|
|
462
462
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
463
463
|
city: z.ZodString;
|
|
464
464
|
subdivision_code: z.ZodString;
|
|
465
|
-
country_code: z.ZodString
|
|
465
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
466
466
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
467
467
|
coordinates: z.ZodObject<{
|
|
468
468
|
latitude: z.ZodNumber;
|
|
@@ -591,7 +591,7 @@ type MassIDData = z.infer<typeof MassIDDataSchema>;
|
|
|
591
591
|
|
|
592
592
|
declare const MassIDIpfsSchemaMeta: {
|
|
593
593
|
readonly title: "MassID NFT IPFS Record";
|
|
594
|
-
readonly description: "Complete MassID NFT IPFS record
|
|
594
|
+
readonly description: "Complete MassID NFT IPFS record including waste classification, chain-of-custody lifecycle events, geographic locations, supply-chain participants, and NFT display attributes";
|
|
595
595
|
readonly $id: string;
|
|
596
596
|
readonly version: string;
|
|
597
597
|
};
|
|
@@ -681,7 +681,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
681
681
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
682
682
|
city: z.ZodString;
|
|
683
683
|
subdivision_code: z.ZodString;
|
|
684
|
-
country_code: z.ZodString
|
|
684
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
685
685
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
686
686
|
coordinates: z.ZodObject<{
|
|
687
687
|
latitude: z.ZodNumber;
|
|
@@ -1144,7 +1144,7 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1144
1144
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1145
1145
|
city: z.ZodString;
|
|
1146
1146
|
subdivision_code: z.ZodString;
|
|
1147
|
-
country_code: z.ZodString
|
|
1147
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1148
1148
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1149
1149
|
coordinates: z.ZodObject<{
|
|
1150
1150
|
latitude: z.ZodNumber;
|
|
@@ -1166,7 +1166,7 @@ type GasIDData = z.infer<typeof GasIDDataSchema>;
|
|
|
1166
1166
|
|
|
1167
1167
|
declare const GasIDIpfsSchemaMeta: {
|
|
1168
1168
|
readonly title: "GasID NFT IPFS Record";
|
|
1169
|
-
readonly description: "Complete GasID NFT IPFS record including
|
|
1169
|
+
readonly description: "Complete GasID NFT IPFS record including prevented emissions calculation, source waste provenance, methodology reference, and NFT display attributes";
|
|
1170
1170
|
readonly $id: string;
|
|
1171
1171
|
readonly version: string;
|
|
1172
1172
|
};
|
|
@@ -1390,7 +1390,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1390
1390
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1391
1391
|
city: z.ZodString;
|
|
1392
1392
|
subdivision_code: z.ZodString;
|
|
1393
|
-
country_code: z.ZodString
|
|
1393
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1394
1394
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1395
1395
|
coordinates: z.ZodObject<{
|
|
1396
1396
|
latitude: z.ZodNumber;
|
|
@@ -1697,7 +1697,7 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1697
1697
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1698
1698
|
city: z.ZodString;
|
|
1699
1699
|
subdivision_code: z.ZodString;
|
|
1700
|
-
country_code: z.ZodString
|
|
1700
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1701
1701
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1702
1702
|
coordinates: z.ZodObject<{
|
|
1703
1703
|
latitude: z.ZodNumber;
|
|
@@ -1709,7 +1709,7 @@ type RecycledIDData = z.infer<typeof RecycledIDDataSchema>;
|
|
|
1709
1709
|
|
|
1710
1710
|
declare const RecycledIDIpfsSchemaMeta: {
|
|
1711
1711
|
readonly title: "RecycledID NFT IPFS Record";
|
|
1712
|
-
readonly description: "Complete RecycledID NFT IPFS record including
|
|
1712
|
+
readonly description: "Complete RecycledID NFT IPFS record including recycling outcome metrics, source waste provenance, methodology reference, and NFT display attributes";
|
|
1713
1713
|
readonly $id: string;
|
|
1714
1714
|
readonly version: string;
|
|
1715
1715
|
};
|
|
@@ -1918,7 +1918,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1918
1918
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1919
1919
|
city: z.ZodString;
|
|
1920
1920
|
subdivision_code: z.ZodString;
|
|
1921
|
-
country_code: z.ZodString
|
|
1921
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1922
1922
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1923
1923
|
coordinates: z.ZodObject<{
|
|
1924
1924
|
latitude: z.ZodNumber;
|
|
@@ -2125,7 +2125,7 @@ type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>
|
|
|
2125
2125
|
|
|
2126
2126
|
declare const CreditPurchaseReceiptIpfsSchemaMeta: {
|
|
2127
2127
|
readonly title: "CreditPurchaseReceipt NFT IPFS Record";
|
|
2128
|
-
readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including
|
|
2128
|
+
readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2129
2129
|
readonly $id: string;
|
|
2130
2130
|
readonly version: string;
|
|
2131
2131
|
};
|
|
@@ -2514,7 +2514,7 @@ type CreditRetirementReceiptData = z.infer<typeof CreditRetirementReceiptDataSch
|
|
|
2514
2514
|
|
|
2515
2515
|
declare const CreditRetirementReceiptIpfsSchemaMeta: {
|
|
2516
2516
|
readonly title: "CreditRetirementReceipt NFT IPFS Record";
|
|
2517
|
-
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including
|
|
2517
|
+
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2518
2518
|
readonly $id: string;
|
|
2519
2519
|
readonly version: string;
|
|
2520
2520
|
};
|
|
@@ -2796,7 +2796,7 @@ type Credit = z.infer<typeof CreditSchema>;
|
|
|
2796
2796
|
|
|
2797
2797
|
declare const MethodologySchemaMeta: {
|
|
2798
2798
|
readonly title: "Methodology IPFS Record";
|
|
2799
|
-
readonly description: "Methodology metadata stored in IPFS,
|
|
2799
|
+
readonly description: "Methodology metadata stored in IPFS, defining the environmental impact measurement approach including versioning, documentation, and MassID audit rules";
|
|
2800
2800
|
readonly $id: string;
|
|
2801
2801
|
readonly version: string;
|
|
2802
2802
|
};
|
|
@@ -2891,7 +2891,7 @@ type MethodologyData = z.infer<typeof MethodologyDataSchema>;
|
|
|
2891
2891
|
|
|
2892
2892
|
declare const MassIDAuditSchemaMeta: {
|
|
2893
2893
|
readonly title: "MassID Audit IPFS Record";
|
|
2894
|
-
readonly description: "MassID audit
|
|
2894
|
+
readonly description: "MassID audit record stored in IPFS, containing methodology reference, audit summary, rule execution results, and links to the source MassID and resulting GasID or RecycledID";
|
|
2895
2895
|
readonly $id: string;
|
|
2896
2896
|
readonly version: string;
|
|
2897
2897
|
};
|
|
@@ -3249,23 +3249,23 @@ type NftIpfs = z.infer<typeof NftIpfsSchema>;
|
|
|
3249
3249
|
|
|
3250
3250
|
declare const MassIDNameSchema: zod.ZodString;
|
|
3251
3251
|
declare const MassIDShortNameSchema: zod.ZodString;
|
|
3252
|
+
declare const createMassIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3253
|
+
declare const createMassIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3252
3254
|
declare const GasIDNameSchema: zod.ZodString;
|
|
3253
3255
|
declare const GasIDShortNameSchema: zod.ZodString;
|
|
3256
|
+
declare const createGasIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3257
|
+
declare const createGasIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3254
3258
|
declare const RecycledIDNameSchema: zod.ZodString;
|
|
3255
3259
|
declare const RecycledIDShortNameSchema: zod.ZodString;
|
|
3260
|
+
declare const createRecycledIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3261
|
+
declare const createRecycledIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3256
3262
|
declare const CreditPurchaseReceiptNameSchema: zod.ZodString;
|
|
3257
3263
|
declare const CreditPurchaseReceiptShortNameSchema: zod.ZodString;
|
|
3264
|
+
declare const createCreditPurchaseReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3265
|
+
declare const createCreditPurchaseReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3258
3266
|
declare const CreditRetirementReceiptNameSchema: zod.ZodString;
|
|
3259
3267
|
declare const CreditRetirementReceiptShortNameSchema: zod.ZodString;
|
|
3260
|
-
declare const createMassIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3261
|
-
declare const createGasIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3262
|
-
declare const createRecycledIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3263
|
-
declare const createCreditPurchaseReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3264
3268
|
declare const createCreditRetirementReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3265
|
-
declare const createMassIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3266
|
-
declare const createGasIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3267
|
-
declare const createRecycledIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3268
|
-
declare const createCreditPurchaseReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3269
3269
|
declare const createCreditRetirementReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3270
3270
|
|
|
3271
3271
|
declare function createDateAttributeSchema(params: {
|
|
@@ -3454,7 +3454,7 @@ type IsoDate = z.infer<typeof IsoDateSchema>;
|
|
|
3454
3454
|
declare const UnixTimestampSchema: z.ZodNumber;
|
|
3455
3455
|
type UnixTimestamp = z.infer<typeof UnixTimestampSchema>;
|
|
3456
3456
|
|
|
3457
|
-
declare const IsoCountryCodeSchema: z.ZodString
|
|
3457
|
+
declare const IsoCountryCodeSchema: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
3458
3458
|
type IsoCountryCode = z.infer<typeof IsoCountryCodeSchema>;
|
|
3459
3459
|
declare const IsoCountrySubdivisionCodeSchema: z.ZodString;
|
|
3460
3460
|
type IsoCountrySubdivisionCode = z.infer<typeof IsoCountrySubdivisionCodeSchema>;
|
|
@@ -3753,7 +3753,7 @@ declare const LocationSchema: z.ZodObject<{
|
|
|
3753
3753
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3754
3754
|
city: z.ZodString;
|
|
3755
3755
|
subdivision_code: z.ZodString;
|
|
3756
|
-
country_code: z.ZodString
|
|
3756
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
3757
3757
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3758
3758
|
coordinates: z.ZodObject<{
|
|
3759
3759
|
latitude: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -462,7 +462,7 @@ declare const MassIDDataSchema: z.ZodObject<{
|
|
|
462
462
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
463
463
|
city: z.ZodString;
|
|
464
464
|
subdivision_code: z.ZodString;
|
|
465
|
-
country_code: z.ZodString
|
|
465
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
466
466
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
467
467
|
coordinates: z.ZodObject<{
|
|
468
468
|
latitude: z.ZodNumber;
|
|
@@ -591,7 +591,7 @@ type MassIDData = z.infer<typeof MassIDDataSchema>;
|
|
|
591
591
|
|
|
592
592
|
declare const MassIDIpfsSchemaMeta: {
|
|
593
593
|
readonly title: "MassID NFT IPFS Record";
|
|
594
|
-
readonly description: "Complete MassID NFT IPFS record
|
|
594
|
+
readonly description: "Complete MassID NFT IPFS record including waste classification, chain-of-custody lifecycle events, geographic locations, supply-chain participants, and NFT display attributes";
|
|
595
595
|
readonly $id: string;
|
|
596
596
|
readonly version: string;
|
|
597
597
|
};
|
|
@@ -681,7 +681,7 @@ declare const MassIDIpfsSchema: z.ZodObject<{
|
|
|
681
681
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
682
682
|
city: z.ZodString;
|
|
683
683
|
subdivision_code: z.ZodString;
|
|
684
|
-
country_code: z.ZodString
|
|
684
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
685
685
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
686
686
|
coordinates: z.ZodObject<{
|
|
687
687
|
latitude: z.ZodNumber;
|
|
@@ -1144,7 +1144,7 @@ declare const GasIDDataSchema: z.ZodObject<{
|
|
|
1144
1144
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1145
1145
|
city: z.ZodString;
|
|
1146
1146
|
subdivision_code: z.ZodString;
|
|
1147
|
-
country_code: z.ZodString
|
|
1147
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1148
1148
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1149
1149
|
coordinates: z.ZodObject<{
|
|
1150
1150
|
latitude: z.ZodNumber;
|
|
@@ -1166,7 +1166,7 @@ type GasIDData = z.infer<typeof GasIDDataSchema>;
|
|
|
1166
1166
|
|
|
1167
1167
|
declare const GasIDIpfsSchemaMeta: {
|
|
1168
1168
|
readonly title: "GasID NFT IPFS Record";
|
|
1169
|
-
readonly description: "Complete GasID NFT IPFS record including
|
|
1169
|
+
readonly description: "Complete GasID NFT IPFS record including prevented emissions calculation, source waste provenance, methodology reference, and NFT display attributes";
|
|
1170
1170
|
readonly $id: string;
|
|
1171
1171
|
readonly version: string;
|
|
1172
1172
|
};
|
|
@@ -1390,7 +1390,7 @@ declare const GasIDIpfsSchema: z.ZodObject<{
|
|
|
1390
1390
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1391
1391
|
city: z.ZodString;
|
|
1392
1392
|
subdivision_code: z.ZodString;
|
|
1393
|
-
country_code: z.ZodString
|
|
1393
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1394
1394
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1395
1395
|
coordinates: z.ZodObject<{
|
|
1396
1396
|
latitude: z.ZodNumber;
|
|
@@ -1697,7 +1697,7 @@ declare const RecycledIDDataSchema: z.ZodObject<{
|
|
|
1697
1697
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1698
1698
|
city: z.ZodString;
|
|
1699
1699
|
subdivision_code: z.ZodString;
|
|
1700
|
-
country_code: z.ZodString
|
|
1700
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1701
1701
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1702
1702
|
coordinates: z.ZodObject<{
|
|
1703
1703
|
latitude: z.ZodNumber;
|
|
@@ -1709,7 +1709,7 @@ type RecycledIDData = z.infer<typeof RecycledIDDataSchema>;
|
|
|
1709
1709
|
|
|
1710
1710
|
declare const RecycledIDIpfsSchemaMeta: {
|
|
1711
1711
|
readonly title: "RecycledID NFT IPFS Record";
|
|
1712
|
-
readonly description: "Complete RecycledID NFT IPFS record including
|
|
1712
|
+
readonly description: "Complete RecycledID NFT IPFS record including recycling outcome metrics, source waste provenance, methodology reference, and NFT display attributes";
|
|
1713
1713
|
readonly $id: string;
|
|
1714
1714
|
readonly version: string;
|
|
1715
1715
|
};
|
|
@@ -1918,7 +1918,7 @@ declare const RecycledIDIpfsSchema: z.ZodObject<{
|
|
|
1918
1918
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1919
1919
|
city: z.ZodString;
|
|
1920
1920
|
subdivision_code: z.ZodString;
|
|
1921
|
-
country_code: z.ZodString
|
|
1921
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
1922
1922
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
1923
1923
|
coordinates: z.ZodObject<{
|
|
1924
1924
|
latitude: z.ZodNumber;
|
|
@@ -2125,7 +2125,7 @@ type CreditPurchaseReceiptData = z.infer<typeof CreditPurchaseReceiptDataSchema>
|
|
|
2125
2125
|
|
|
2126
2126
|
declare const CreditPurchaseReceiptIpfsSchemaMeta: {
|
|
2127
2127
|
readonly title: "CreditPurchaseReceipt NFT IPFS Record";
|
|
2128
|
-
readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including
|
|
2128
|
+
readonly description: "Complete CreditPurchaseReceipt NFT IPFS record including purchase summary, buyer details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2129
2129
|
readonly $id: string;
|
|
2130
2130
|
readonly version: string;
|
|
2131
2131
|
};
|
|
@@ -2514,7 +2514,7 @@ type CreditRetirementReceiptData = z.infer<typeof CreditRetirementReceiptDataSch
|
|
|
2514
2514
|
|
|
2515
2515
|
declare const CreditRetirementReceiptIpfsSchemaMeta: {
|
|
2516
2516
|
readonly title: "CreditRetirementReceipt NFT IPFS Record";
|
|
2517
|
-
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including
|
|
2517
|
+
readonly description: "Complete CreditRetirementReceipt NFT IPFS record including retirement summary, beneficiary and credit holder details, credit breakdowns, certificate allocations, and NFT display attributes";
|
|
2518
2518
|
readonly $id: string;
|
|
2519
2519
|
readonly version: string;
|
|
2520
2520
|
};
|
|
@@ -2796,7 +2796,7 @@ type Credit = z.infer<typeof CreditSchema>;
|
|
|
2796
2796
|
|
|
2797
2797
|
declare const MethodologySchemaMeta: {
|
|
2798
2798
|
readonly title: "Methodology IPFS Record";
|
|
2799
|
-
readonly description: "Methodology metadata stored in IPFS,
|
|
2799
|
+
readonly description: "Methodology metadata stored in IPFS, defining the environmental impact measurement approach including versioning, documentation, and MassID audit rules";
|
|
2800
2800
|
readonly $id: string;
|
|
2801
2801
|
readonly version: string;
|
|
2802
2802
|
};
|
|
@@ -2891,7 +2891,7 @@ type MethodologyData = z.infer<typeof MethodologyDataSchema>;
|
|
|
2891
2891
|
|
|
2892
2892
|
declare const MassIDAuditSchemaMeta: {
|
|
2893
2893
|
readonly title: "MassID Audit IPFS Record";
|
|
2894
|
-
readonly description: "MassID audit
|
|
2894
|
+
readonly description: "MassID audit record stored in IPFS, containing methodology reference, audit summary, rule execution results, and links to the source MassID and resulting GasID or RecycledID";
|
|
2895
2895
|
readonly $id: string;
|
|
2896
2896
|
readonly version: string;
|
|
2897
2897
|
};
|
|
@@ -3249,23 +3249,23 @@ type NftIpfs = z.infer<typeof NftIpfsSchema>;
|
|
|
3249
3249
|
|
|
3250
3250
|
declare const MassIDNameSchema: zod.ZodString;
|
|
3251
3251
|
declare const MassIDShortNameSchema: zod.ZodString;
|
|
3252
|
+
declare const createMassIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3253
|
+
declare const createMassIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3252
3254
|
declare const GasIDNameSchema: zod.ZodString;
|
|
3253
3255
|
declare const GasIDShortNameSchema: zod.ZodString;
|
|
3256
|
+
declare const createGasIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3257
|
+
declare const createGasIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3254
3258
|
declare const RecycledIDNameSchema: zod.ZodString;
|
|
3255
3259
|
declare const RecycledIDShortNameSchema: zod.ZodString;
|
|
3260
|
+
declare const createRecycledIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3261
|
+
declare const createRecycledIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3256
3262
|
declare const CreditPurchaseReceiptNameSchema: zod.ZodString;
|
|
3257
3263
|
declare const CreditPurchaseReceiptShortNameSchema: zod.ZodString;
|
|
3264
|
+
declare const createCreditPurchaseReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3265
|
+
declare const createCreditPurchaseReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3258
3266
|
declare const CreditRetirementReceiptNameSchema: zod.ZodString;
|
|
3259
3267
|
declare const CreditRetirementReceiptShortNameSchema: zod.ZodString;
|
|
3260
|
-
declare const createMassIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3261
|
-
declare const createGasIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3262
|
-
declare const createRecycledIDNameSchema: (tokenId: string) => zod.ZodString;
|
|
3263
|
-
declare const createCreditPurchaseReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3264
3268
|
declare const createCreditRetirementReceiptNameSchema: (tokenId: string) => zod.ZodString;
|
|
3265
|
-
declare const createMassIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3266
|
-
declare const createGasIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3267
|
-
declare const createRecycledIDShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3268
|
-
declare const createCreditPurchaseReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3269
3269
|
declare const createCreditRetirementReceiptShortNameSchema: (tokenId: string) => zod.ZodString;
|
|
3270
3270
|
|
|
3271
3271
|
declare function createDateAttributeSchema(params: {
|
|
@@ -3454,7 +3454,7 @@ type IsoDate = z.infer<typeof IsoDateSchema>;
|
|
|
3454
3454
|
declare const UnixTimestampSchema: z.ZodNumber;
|
|
3455
3455
|
type UnixTimestamp = z.infer<typeof UnixTimestampSchema>;
|
|
3456
3456
|
|
|
3457
|
-
declare const IsoCountryCodeSchema: z.ZodString
|
|
3457
|
+
declare const IsoCountryCodeSchema: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
3458
3458
|
type IsoCountryCode = z.infer<typeof IsoCountryCodeSchema>;
|
|
3459
3459
|
declare const IsoCountrySubdivisionCodeSchema: z.ZodString;
|
|
3460
3460
|
type IsoCountrySubdivisionCode = z.infer<typeof IsoCountrySubdivisionCodeSchema>;
|
|
@@ -3753,7 +3753,7 @@ declare const LocationSchema: z.ZodObject<{
|
|
|
3753
3753
|
id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3754
3754
|
city: z.ZodString;
|
|
3755
3755
|
subdivision_code: z.ZodString;
|
|
3756
|
-
country_code: z.ZodString
|
|
3756
|
+
country_code: z.ZodString & z.ZodType<"BR", string, z.core.$ZodTypeInternals<"BR", string>>;
|
|
3757
3757
|
responsible_participant_id_hash: z.ZodCustomStringFormat<"sha256_hex">;
|
|
3758
3758
|
coordinates: z.ZodObject<{
|
|
3759
3759
|
latitude: z.ZodNumber;
|