@carrot-foundation/schemas 0.5.1 → 1.0.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/dist/index.cjs +24 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -101
- package/dist/index.d.ts +107 -101
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/ipfs/collection/collection.example.json +3 -3
- package/schemas/ipfs/collection/collection.schema.json +4 -4
- package/schemas/ipfs/credit/credit.example.json +3 -3
- package/schemas/ipfs/credit/credit.schema.json +4 -4
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +5 -5
- package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +17 -18
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.example.json +6 -5
- package/schemas/ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json +34 -17
- package/schemas/ipfs/gas-id/gas-id.example.json +4 -4
- package/schemas/ipfs/gas-id/gas-id.schema.json +7 -7
- package/schemas/ipfs/mass-id/mass-id.example.json +4 -4
- package/schemas/ipfs/mass-id/mass-id.schema.json +18 -18
- package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +3 -3
- package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +4 -4
- package/schemas/ipfs/methodology/methodology.example.json +3 -3
- package/schemas/ipfs/methodology/methodology.schema.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.example.json +4 -4
- package/schemas/ipfs/recycled-id/recycled-id.schema.json +7 -7
- package/schemas/schema-hashes.json +10 -10
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -674,6 +674,6 @@
|
|
|
674
674
|
"additionalProperties": false,
|
|
675
675
|
"title": "MassID Audit IPFS Record",
|
|
676
676
|
"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",
|
|
677
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
678
|
-
"version": "0.
|
|
677
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json",
|
|
678
|
+
"version": "1.0.0"
|
|
679
679
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/methodology/methodology.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "5918bd6b97e1d531dee7f8d47298eefbb6408ccb9bc1fe11ac7e3f9542d3ff5b",
|
|
5
5
|
"type": "Methodology",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -369,6 +369,6 @@
|
|
|
369
369
|
"additionalProperties": false,
|
|
370
370
|
"title": "Methodology IPFS Record",
|
|
371
371
|
"description": "Methodology metadata stored in IPFS, defining the environmental impact measurement approach including versioning, documentation, and MassID audit rules",
|
|
372
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
373
|
-
"version": "0.
|
|
372
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/methodology/methodology.schema.json",
|
|
373
|
+
"version": "1.0.0"
|
|
374
374
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/recycled-id/recycled-id.schema.json",
|
|
3
3
|
"schema": {
|
|
4
|
-
"hash": "
|
|
4
|
+
"hash": "71c722749e1b6a7c6a7bdc15a6ad97fa47c0f383dc95353f47f15a859036e226",
|
|
5
5
|
"type": "RecycledID",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "1.0.0",
|
|
7
7
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm"
|
|
8
8
|
},
|
|
9
9
|
"environment": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"created_at": "2024-12-08T11:32:47.000Z",
|
|
21
21
|
"external_id": "f47ac10b-58cc-4372-a567-0e02b2c3d489",
|
|
22
22
|
"external_url": "https://explore.carrot.eco/document/f47ac10b-58cc-4372-a567-0e02b2c3d489",
|
|
23
|
-
"audit_data_hash": "
|
|
23
|
+
"audit_data_hash": "36a4678d9f59d39a66fbe94ceee5eec8c719741ffc5e708b9ad3f62fe95ae792",
|
|
24
24
|
"viewer_reference": {
|
|
25
25
|
"ipfs_uri": "ipfs://bafybeigdyrztvzl5cceubvaxob7iqh6f3f7s36c74ojav2xsz2uib2g3vm",
|
|
26
26
|
"integrity_hash": "87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"properties": {
|
|
15
15
|
"hash": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^[
|
|
17
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
18
18
|
"title": "Schema Hash",
|
|
19
19
|
"description": "SHA-256 hash of the JSON Schema this record was validated against",
|
|
20
20
|
"examples": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
"integrity_hash": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"pattern": "^[
|
|
108
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
109
109
|
"title": "Viewer Integrity Hash",
|
|
110
110
|
"description": "SHA-256 hash of the published viewer bundle to verify integrity",
|
|
111
111
|
"examples": [
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
"properties": {
|
|
511
511
|
"id_hash": {
|
|
512
512
|
"type": "string",
|
|
513
|
-
"pattern": "^[
|
|
513
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
514
514
|
"title": "Location ID Hash",
|
|
515
515
|
"description": "SHA-256 hash anonymizing the real location identifier for privacy",
|
|
516
516
|
"examples": [
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
},
|
|
554
554
|
"responsible_participant_id_hash": {
|
|
555
555
|
"type": "string",
|
|
556
|
-
"pattern": "^[
|
|
556
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
557
557
|
"title": "Responsible Participant ID Hash",
|
|
558
558
|
"description": "SHA-256 hash identifying the participant responsible for operations at this location",
|
|
559
559
|
"examples": [
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
},
|
|
624
624
|
"audit_data_hash": {
|
|
625
625
|
"type": "string",
|
|
626
|
-
"pattern": "^[
|
|
626
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
627
627
|
"title": "Audit Data Hash",
|
|
628
628
|
"description": "SHA-256 hash of the original JSON content including private data before schema validation, used for data audit purposes",
|
|
629
629
|
"examples": [
|
|
@@ -1359,6 +1359,6 @@
|
|
|
1359
1359
|
"additionalProperties": false,
|
|
1360
1360
|
"title": "RecycledID NFT IPFS Record",
|
|
1361
1361
|
"description": "Complete RecycledID NFT IPFS record including recycling outcome metrics, source waste provenance, methodology reference, and NFT display attributes",
|
|
1362
|
-
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/0.
|
|
1363
|
-
"version": "0.
|
|
1362
|
+
"$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/tags/1.0.0/schemas/ipfs/recycled-id/recycled-id.schema.json",
|
|
1363
|
+
"version": "1.0.0"
|
|
1364
1364
|
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "1.0.0",
|
|
3
3
|
"schemas": {
|
|
4
4
|
"ipfs/recycled-id/recycled-id.schema.json": {
|
|
5
|
-
"hash": "
|
|
5
|
+
"hash": "71c722749e1b6a7c6a7bdc15a6ad97fa47c0f383dc95353f47f15a859036e226",
|
|
6
6
|
"path": "ipfs/recycled-id/recycled-id.schema.json"
|
|
7
7
|
},
|
|
8
8
|
"ipfs/methodology/methodology.schema.json": {
|
|
9
|
-
"hash": "
|
|
9
|
+
"hash": "5918bd6b97e1d531dee7f8d47298eefbb6408ccb9bc1fe11ac7e3f9542d3ff5b",
|
|
10
10
|
"path": "ipfs/methodology/methodology.schema.json"
|
|
11
11
|
},
|
|
12
12
|
"ipfs/mass-id-audit/mass-id-audit.schema.json": {
|
|
13
|
-
"hash": "
|
|
13
|
+
"hash": "cf096c292fc53b287132d75f2103cf347b3025740cd94f796dfc5105e226a1de",
|
|
14
14
|
"path": "ipfs/mass-id-audit/mass-id-audit.schema.json"
|
|
15
15
|
},
|
|
16
16
|
"ipfs/mass-id/mass-id.schema.json": {
|
|
17
|
-
"hash": "
|
|
17
|
+
"hash": "83c6cb2ac7a54c7d7830c7fd8a3953cd6e96f1a656a54e22928ea5530f229bf4",
|
|
18
18
|
"path": "ipfs/mass-id/mass-id.schema.json"
|
|
19
19
|
},
|
|
20
20
|
"ipfs/gas-id/gas-id.schema.json": {
|
|
21
|
-
"hash": "
|
|
21
|
+
"hash": "e105d033ada2f243313d9da8a9d7517b8f562a47ba78df510ea8613299eb5b50",
|
|
22
22
|
"path": "ipfs/gas-id/gas-id.schema.json"
|
|
23
23
|
},
|
|
24
24
|
"ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json": {
|
|
25
|
-
"hash": "
|
|
25
|
+
"hash": "343a22f6bd51a89b8a6ca83c5136938a2bd3e3c1b42645d05216476085d28d06",
|
|
26
26
|
"path": "ipfs/credit-retirement-receipt/credit-retirement-receipt.schema.json"
|
|
27
27
|
},
|
|
28
28
|
"ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json": {
|
|
29
|
-
"hash": "
|
|
29
|
+
"hash": "baf3544f11c71c86c2187af967635ccf1ffdddd70cb14365f44d08a32bc3d1f7",
|
|
30
30
|
"path": "ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json"
|
|
31
31
|
},
|
|
32
32
|
"ipfs/credit/credit.schema.json": {
|
|
33
|
-
"hash": "
|
|
33
|
+
"hash": "376766cbbb9d3cb87a29eb223776fd97ef3a95ba849c0c77b2ad22daec7510b5",
|
|
34
34
|
"path": "ipfs/credit/credit.schema.json"
|
|
35
35
|
},
|
|
36
36
|
"ipfs/collection/collection.schema.json": {
|
|
37
|
-
"hash": "
|
|
37
|
+
"hash": "fb878d368df937ac422ef163bb0b261d8f97cd3525dc232fda128fbd0116c154",
|
|
38
38
|
"path": "ipfs/collection/collection.schema.json"
|
|
39
39
|
}
|
|
40
40
|
}
|