@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
|
@@ -197,6 +197,16 @@
|
|
|
197
197
|
"description": "Hex color code with # prefix and uppercase.",
|
|
198
198
|
"example": "#FFFFFF"
|
|
199
199
|
},
|
|
200
|
+
"sha256_hash": {
|
|
201
|
+
"$ref": "#/$defs/non_empty_string",
|
|
202
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
203
|
+
"title": "SHA-256 Hash",
|
|
204
|
+
"description": "SHA-256 cryptographic hash as hexadecimal string.",
|
|
205
|
+
"examples": [
|
|
206
|
+
"87f633634cc4b02f628685651f0a29b7bfa22a0bd841f725c6772dd00a58d489",
|
|
207
|
+
"6e83b8e6373847bbdc056549bedda38dc88854ce41ba4fca11e0fc6ce3e07ef6"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
200
210
|
"keccak256_hash": {
|
|
201
211
|
"$ref": "#/$defs/non_empty_string",
|
|
202
212
|
"pattern": "^0x[a-fA-F0-9]{64}$",
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
"description": "Geographic location with address and coordinate information.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": [
|
|
8
|
-
"
|
|
8
|
+
"id_hash",
|
|
9
9
|
"municipality",
|
|
10
10
|
"administrative_division",
|
|
11
11
|
"administrative_division_code",
|
|
12
12
|
"country",
|
|
13
13
|
"country_code",
|
|
14
|
-
"
|
|
14
|
+
"responsible_participant_id_hash",
|
|
15
15
|
"coordinates",
|
|
16
16
|
"facility_type"
|
|
17
17
|
],
|
|
18
18
|
"properties": {
|
|
19
|
-
"
|
|
20
|
-
"$ref": "../../definitions/definitions.schema.json#/$defs/
|
|
21
|
-
"title": "Location ID",
|
|
22
|
-
"description": "
|
|
19
|
+
"id_hash": {
|
|
20
|
+
"$ref": "../../definitions/definitions.schema.json#/$defs/sha256_hash",
|
|
21
|
+
"title": "Location ID Hash",
|
|
22
|
+
"description": "Anonymized identifier for the location."
|
|
23
23
|
},
|
|
24
24
|
"municipality": {
|
|
25
25
|
"$ref": "../../definitions/definitions.schema.json#/$defs/non_empty_string",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"country_code": {
|
|
47
47
|
"$ref": "../../definitions/definitions.schema.json#/$defs/iso_country_code"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
50
|
-
"$ref": "../../definitions/definitions.schema.json#/$defs/
|
|
51
|
-
"title": "Responsible Participant ID",
|
|
52
|
-
"description": "ID of the participant responsible for this location."
|
|
49
|
+
"responsible_participant_id_hash": {
|
|
50
|
+
"$ref": "../../definitions/definitions.schema.json#/$defs/sha256_hash",
|
|
51
|
+
"title": "Responsible Participant ID Hash",
|
|
52
|
+
"description": "Anonymized ID of the participant responsible for this location."
|
|
53
53
|
},
|
|
54
54
|
"coordinates": {
|
|
55
55
|
"type": "object",
|