@carrot-foundation/schemas 0.1.36 → 0.1.37

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.
Files changed (40) hide show
  1. package/dist/index.cjs +1124 -36
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +959 -13
  4. package/dist/index.d.ts +959 -13
  5. package/dist/index.js +1102 -37
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/schemas/ipfs/collection/collection.example.json +1 -0
  9. package/schemas/ipfs/collection/collection.schema.json +305 -32
  10. package/schemas/ipfs/credit/credit.example.json +1 -0
  11. package/schemas/ipfs/credit/credit.schema.json +326 -45
  12. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.example.json +290 -0
  13. package/schemas/ipfs/credit-purchase-receipt/credit-purchase-receipt.schema.json +1768 -0
  14. package/schemas/ipfs/gas-id/gas-id.schema.json +6 -6
  15. package/schemas/ipfs/mass-id/mass-id.schema.json +6 -6
  16. package/schemas/ipfs/mass-id-audit/mass-id-audit.example.json +30 -29
  17. package/schemas/ipfs/mass-id-audit/mass-id-audit.schema.json +636 -15
  18. package/schemas/ipfs/methodology/methodology.example.json +27 -26
  19. package/schemas/ipfs/methodology/methodology.schema.json +457 -15
  20. package/schemas/ipfs/recycled-id/recycled-id.schema.json +6 -6
  21. package/schemas/ipfs/gas-id/gas-id.attributes.schema.json +0 -219
  22. package/schemas/ipfs/gas-id/gas-id.data.schema.json +0 -120
  23. package/schemas/ipfs/mass-id-audit/mass-id-audit.data.schema.json +0 -130
  24. package/schemas/ipfs/methodology/methodology.data.schema.json +0 -121
  25. package/schemas/ipfs/purchase-id/purchase-id.attributes.schema.json +0 -91
  26. package/schemas/ipfs/purchase-id/purchase-id.data.schema.json +0 -337
  27. package/schemas/ipfs/purchase-id/purchase-id.example.json +0 -224
  28. package/schemas/ipfs/purchase-id/purchase-id.schema.json +0 -29
  29. package/schemas/ipfs/recycled-id/recycled-id.attributes.schema.json +0 -202
  30. package/schemas/ipfs/recycled-id/recycled-id.data.schema.json +0 -63
  31. package/schemas/ipfs/shared/base/base.schema.json +0 -163
  32. package/schemas/ipfs/shared/certificate/certificate.schema.json +0 -145
  33. package/schemas/ipfs/shared/definitions/definitions.schema.json +0 -255
  34. package/schemas/ipfs/shared/entities/location/location.schema.json +0 -90
  35. package/schemas/ipfs/shared/entities/participant/participant.schema.json +0 -28
  36. package/schemas/ipfs/shared/nft/nft.schema.json +0 -182
  37. package/schemas/ipfs/shared/references/audit-reference/audit-reference.schema.json +0 -42
  38. package/schemas/ipfs/shared/references/gas-id-reference/gas-id-reference.schema.json +0 -27
  39. package/schemas/ipfs/shared/references/mass-id-reference/mass-id-reference.schema.json +0 -27
  40. package/schemas/ipfs/shared/references/methodology-reference/methodology-reference.schema.json +0 -34
@@ -1,255 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/definitions/definitions.schema.json",
4
- "title": "Carrot Shared Definitions",
5
- "description": "Reusable atomic, domain, and composite definitions for Carrot IPFS JSON schemas.",
6
- "type": "object",
7
- "$defs": {
8
- "uuid": {
9
- "type": "string",
10
- "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
11
- "description": "UUID v4 string in canonical format.",
12
- "example": "6f520d88-864d-432d-bf9f-5c3166c4818f"
13
- },
14
- "ethereum_address": {
15
- "type": "string",
16
- "pattern": "^0x[a-f0-9]{40}$",
17
- "title": "Ethereum Address",
18
- "description": "Ethereum address in lowercase hexadecimal format.",
19
- "example": "0xabc123def456789abcdef123456789abcdef1234"
20
- },
21
- "iso_timestamp": {
22
- "type": "string",
23
- "format": "date-time",
24
- "title": "ISO 8601 Timestamp",
25
- "description": "ISO 8601 timestamp with timezone.",
26
- "example": "2024-12-05T11:02:47.000Z"
27
- },
28
- "iso_date": {
29
- "type": "string",
30
- "format": "date",
31
- "title": "ISO 8601 Date",
32
- "description": "ISO 8601 date (YYYY-MM-DD).",
33
- "example": "2024-02-10"
34
- },
35
- "iso_country_code": {
36
- "type": "string",
37
- "pattern": "^[A-Z]{2}$",
38
- "title": "Country Code",
39
- "description": "ISO 3166-1 alpha-2 country code.",
40
- "example": "BR"
41
- },
42
- "iso_administrative_division_code": {
43
- "type": "string",
44
- "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$",
45
- "title": "Administrative Division Code",
46
- "description": "ISO 3166-2 administrative division code.",
47
- "example": "BR-AP"
48
- },
49
- "latitude": {
50
- "type": "number",
51
- "minimum": -90,
52
- "maximum": 90,
53
- "description": "Latitude in decimal degrees.",
54
- "example": -23.39
55
- },
56
- "longitude": {
57
- "type": "number",
58
- "minimum": -180,
59
- "maximum": 180,
60
- "description": "Longitude in decimal degrees.",
61
- "example": -51.13
62
- },
63
- "weight_kg": {
64
- "type": "number",
65
- "minimum": 0,
66
- "title": "Weight in Kilograms",
67
- "description": "Weight measurement in kilograms.",
68
- "example": 1500.5
69
- },
70
- "name": {
71
- "$ref": "#/$defs/non_empty_string",
72
- "maxLength": 200
73
- },
74
- "slug": {
75
- "$ref": "#/$defs/non_empty_string",
76
- "pattern": "^[a-z0-9-]+$",
77
- "maxLength": 100,
78
- "title": "Slug",
79
- "description": "URL-friendly identifier using lowercase letters, numbers, and hyphens only.",
80
- "example": "bold-carbon-ch4"
81
- },
82
- "non_empty_string": {
83
- "type": "string",
84
- "minLength": 1
85
- },
86
- "waste_type": {
87
- "$ref": "#/$defs/non_empty_string",
88
- "title": "Waste Classification",
89
- "description": "Primary waste material category following international standards.",
90
- "example": "Organic"
91
- },
92
- "waste_subtype": {
93
- "$ref": "#/$defs/non_empty_string",
94
- "maxLength": 100,
95
- "description": "Specific subcategory or detailed classification of the waste material.",
96
- "example": "Food, Food Waste and Beverages"
97
- },
98
- "participant_role": {
99
- "$ref": "#/$defs/non_empty_string",
100
- "maxLength": 100,
101
- "title": "Participant Role",
102
- "description": "Role in the waste management supply chain.",
103
- "example": "Transporter"
104
- },
105
- "participant_name": {
106
- "$ref": "#/$defs/non_empty_string",
107
- "maxLength": 100,
108
- "title": "Participant Name",
109
- "description": "Legal name of the participant.",
110
- "example": "Eco Reciclagem"
111
- },
112
- "facility_type": {
113
- "type": "string",
114
- "enum": [
115
- "Collection Point",
116
- "Recycling Facility",
117
- "Administrative Office",
118
- "Other"
119
- ],
120
- "title": "Facility Type",
121
- "description": "Type of facility in the waste management chain.",
122
- "example": "Recycling Facility"
123
- },
124
- "chain_id": {
125
- "type": "integer",
126
- "minimum": 1,
127
- "title": "Blockchain network chain ID",
128
- "description": "Blockchain network chain ID where the NFT is deployed.",
129
- "example": 137
130
- },
131
- "percentage": {
132
- "type": "number",
133
- "minimum": 0,
134
- "maximum": 100,
135
- "title": "Percentage Value",
136
- "description": "Percentage value between 0 and 100.",
137
- "example": 25.5
138
- },
139
- "non_negative_integer": {
140
- "type": "integer",
141
- "minimum": 0,
142
- "title": "Non-Negative Integer",
143
- "description": "Non-negative integer value.",
144
- "example": 100
145
- },
146
- "positive_integer": {
147
- "type": "integer",
148
- "minimum": 1,
149
- "title": "Positive Integer",
150
- "description": "Positive integer value.",
151
- "example": 100
152
- },
153
- "non_negative_float": {
154
- "type": "number",
155
- "minimum": 0,
156
- "title": "Non-Negative Float",
157
- "description": "Non-negative float value.",
158
- "example": 100.5
159
- },
160
- "hours": {
161
- "type": "number",
162
- "minimum": 0,
163
- "multipleOf": 0.1,
164
- "title": "Hours",
165
- "description": "Time in hours.",
166
- "example": 72.5
167
- },
168
- "ipfs_uri": {
169
- "$ref": "#/$defs/non_empty_string",
170
- "pattern": "^ipfs://[a-zA-Z0-9]+(/.*)?$",
171
- "title": "IPFS URI",
172
- "description": "IPFS URI pointing to content-addressed data using CID (Content Identifier). Format: ipfs://{CID}[/path]",
173
- "examples": [
174
- "ipfs://QmTy8w65yBXgyfG2ZBg5TrfB2hPjrDQH3RCQFJGkARStJb",
175
- "ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi",
176
- "ipfs://QmHashExample/metadata.json"
177
- ]
178
- },
179
- "semantic_version": {
180
- "$ref": "#/$defs/non_empty_string",
181
- "pattern": "^v?\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.-]+)?(\\+[a-zA-Z0-9.-]+)?$",
182
- "title": "Semantic Version",
183
- "description": "Semantic version string (semver.org).",
184
- "example": "v1.2.3"
185
- },
186
- "token_id": {
187
- "$ref": "#/$defs/non_empty_string",
188
- "pattern": "^[0-9]+$",
189
- "title": "Token ID",
190
- "description": "NFT token ID as numeric string (supports uint256).",
191
- "example": "123"
192
- },
193
- "hex_color": {
194
- "$ref": "#/$defs/non_empty_string",
195
- "pattern": "^#[0-9A-F]{6}$",
196
- "title": "Hex Color",
197
- "description": "Hex color code with # prefix and uppercase.",
198
- "example": "#FFFFFF"
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
- },
210
- "keccak256_hash": {
211
- "$ref": "#/$defs/non_empty_string",
212
- "pattern": "^0x[a-fA-F0-9]{64}$",
213
- "title": "Keccak256 Hash",
214
- "description": "Keccak256 hash as 32-byte hex string.",
215
- "example": "0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
216
- },
217
- "external_id": {
218
- "$ref": "#/$defs/uuid",
219
- "title": "External ID",
220
- "description": "Off-chain reference ID (UUID from Carrot backend)."
221
- },
222
- "external_url": {
223
- "$ref": "#/$defs/non_empty_string",
224
- "format": "uri",
225
- "title": "External URL",
226
- "description": "External URL of the content.",
227
- "example": "https://explore.carrot.eco/document/40e44dc8-75d4-4b6f-a5b2-420ab9482ee9"
228
- },
229
- "token_symbol": {
230
- "$ref": "#/$defs/non_empty_string",
231
- "maxLength": 10,
232
- "pattern": "^[A-Z0-9-]+$",
233
- "title": "Token Symbol",
234
- "description": "ERC20 token symbol in uppercase letters and numbers only.",
235
- "example": "C-CARB"
236
- },
237
- "relationship_type": {
238
- "type": "string",
239
- "enum": [
240
- "collection",
241
- "credit",
242
- "gas-id",
243
- "mass-id",
244
- "mass-id-audit",
245
- "methodology",
246
- "purchase-id",
247
- "recycled-id"
248
- ],
249
- "title": "Relationship Type",
250
- "description": "Type of relationship between records.",
251
- "example": "mass-id"
252
- }
253
- },
254
- "additionalProperties": false
255
- }
@@ -1,90 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/entities/location/location.schema.json",
4
- "title": "Geographic Location",
5
- "description": "Geographic location with address and coordinate information.",
6
- "type": "object",
7
- "required": [
8
- "id_hash",
9
- "municipality",
10
- "administrative_division",
11
- "administrative_division_code",
12
- "country",
13
- "country_code",
14
- "responsible_participant_id_hash",
15
- "coordinates",
16
- "facility_type"
17
- ],
18
- "properties": {
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
- },
24
- "municipality": {
25
- "$ref": "../../definitions/definitions.schema.json#/$defs/non_empty_string",
26
- "maxLength": 50,
27
- "description": "Municipality or city name.",
28
- "example": "Macapá"
29
- },
30
- "administrative_division": {
31
- "$ref": "../../definitions/definitions.schema.json#/$defs/non_empty_string",
32
- "title": "Administrative Division",
33
- "maxLength": 50,
34
- "description": "State, province, or administrative region.",
35
- "example": "Amapá"
36
- },
37
- "administrative_division_code": {
38
- "$ref": "../../definitions/definitions.schema.json#/$defs/iso_administrative_division_code"
39
- },
40
- "country": {
41
- "$ref": "../../definitions/definitions.schema.json#/$defs/non_empty_string",
42
- "maxLength": 50,
43
- "description": "Full country name in English.",
44
- "example": "Brazil"
45
- },
46
- "country_code": {
47
- "$ref": "../../definitions/definitions.schema.json#/$defs/iso_country_code"
48
- },
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
- },
54
- "coordinates": {
55
- "type": "object",
56
- "title": "Location Coordinates",
57
- "description": "GPS coordinates of the location.",
58
- "required": ["latitude", "longitude", "precision_level"],
59
- "properties": {
60
- "latitude": {
61
- "$ref": "../../definitions/definitions.schema.json#/$defs/latitude"
62
- },
63
- "longitude": {
64
- "$ref": "../../definitions/definitions.schema.json#/$defs/longitude"
65
- },
66
- "precision_level": {
67
- "type": "string",
68
- "enum": ["exact", "neighborhood", "city", "region", "country"],
69
- "title": "Coordinate Precision Level",
70
- "description": "Level of coordinate precision.",
71
- "example": "city"
72
- }
73
- },
74
- "additionalProperties": false
75
- },
76
- "facility_type": {
77
- "type": "string",
78
- "enum": [
79
- "Collection Point",
80
- "Recycling Facility",
81
- "Administrative Office",
82
- "Other"
83
- ],
84
- "title": "Facility Type",
85
- "description": "Type of facility in the waste management chain.",
86
- "example": "Recycling Facility"
87
- }
88
- },
89
- "additionalProperties": false
90
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/entities/participant/participant.schema.json",
4
- "title": "Participant",
5
- "description": "A participant in the waste management supply chain.",
6
- "type": "object",
7
- "required": ["id", "name", "roles"],
8
- "properties": {
9
- "id": {
10
- "$ref": "../../definitions/definitions.schema.json#/$defs/uuid",
11
- "description": "Unique identifier for the participant."
12
- },
13
- "name": {
14
- "$ref": "../../definitions/definitions.schema.json#/$defs/participant_name"
15
- },
16
- "roles": {
17
- "type": "array",
18
- "minItems": 1,
19
- "uniqueItems": true,
20
- "description": "Roles of the participant in the waste management supply chain.",
21
- "items": {
22
- "$ref": "../../definitions/definitions.schema.json#/$defs/participant_role"
23
- },
24
- "example": ["Waste Generator", "Transporter"]
25
- }
26
- },
27
- "additionalProperties": false
28
- }
@@ -1,182 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/nft/nft.schema.json",
4
- "title": "Carrot NFT IPFS Record",
5
- "description": "NFT-specific fields for Carrot IPFS records.",
6
- "unevaluatedProperties": false,
7
- "allOf": [
8
- {
9
- "$ref": "../base/base.schema.json"
10
- },
11
- {
12
- "type": "object",
13
- "required": [
14
- "blockchain",
15
- "name",
16
- "short_name",
17
- "description",
18
- "image",
19
- "attributes"
20
- ],
21
- "properties": {
22
- "schema": {
23
- "properties": {
24
- "type": {
25
- "type": "string",
26
- "enum": ["MassID", "RecycledID", "GasID", "PurchaseID"],
27
- "title": "NFT Metadata Type",
28
- "description": "Type/category of this NFT schema.",
29
- "example": "MassID"
30
- }
31
- }
32
- },
33
- "blockchain": {
34
- "type": "object",
35
- "title": "NFT Blockchain Information",
36
- "description": "Blockchain-specific information for the NFT.",
37
- "required": [
38
- "smart_contract_address",
39
- "chain_id",
40
- "network_name",
41
- "token_id"
42
- ],
43
- "properties": {
44
- "smart_contract_address": {
45
- "$ref": "../definitions/definitions.schema.json#/$defs/ethereum_address",
46
- "title": "Smart Contract Address"
47
- },
48
- "chain_id": {
49
- "$ref": "../definitions/definitions.schema.json#/$defs/chain_id"
50
- },
51
- "network_name": {
52
- "type": "string",
53
- "title": "Blockchain Network Name",
54
- "description": "Name of the blockchain network.",
55
- "minLength": 5,
56
- "maxLength": 100,
57
- "example": "Polygon"
58
- },
59
- "token_id": {
60
- "$ref": "../definitions/definitions.schema.json#/$defs/token_id"
61
- }
62
- },
63
- "additionalProperties": false
64
- },
65
- "name": {
66
- "type": "string",
67
- "minLength": 1,
68
- "maxLength": 100,
69
- "title": "NFT Name",
70
- "description": "Full display name for this NFT, including extra context.",
71
- "example": "MassID #123 • Organic • 1.79t"
72
- },
73
- "short_name": {
74
- "type": "string",
75
- "minLength": 1,
76
- "maxLength": 50,
77
- "title": "NFT Short Name",
78
- "description": "Compact name for UI summaries, tables, or tooltips.",
79
- "example": "MassID #123"
80
- },
81
- "description": {
82
- "type": "string",
83
- "minLength": 10,
84
- "maxLength": 500,
85
- "title": "NFT Description",
86
- "description": "Human-readable summary of the NFT's role and context. Ideally, maximum 300 characters.",
87
- "example": "This MassID represents a recorded and traceable mass of organic waste."
88
- },
89
- "image": {
90
- "$ref": "../definitions/definitions.schema.json#/$defs/ipfs_uri",
91
- "title": "NFT Image",
92
- "description": "IPFS URI pointing to the preview image."
93
- },
94
- "background_color": {
95
- "$ref": "../definitions/definitions.schema.json#/$defs/hex_color",
96
- "title": "NFT Background Color",
97
- "description": "Hex color code for marketplace background display."
98
- },
99
- "animation_url": {
100
- "$ref": "../definitions/definitions.schema.json#/$defs/ipfs_uri",
101
- "title": "NFT Animation URL",
102
- "description": "IPFS URI pointing to an animated or interactive media file."
103
- },
104
- "external_links": {
105
- "type": "array",
106
- "maxItems": 10,
107
- "uniqueItems": true,
108
- "title": "NFT External Links",
109
- "description": "Optional list of public resource links with labels.",
110
- "items": {
111
- "type": "object",
112
- "required": ["label", "url", "description"],
113
- "properties": {
114
- "label": {
115
- "type": "string",
116
- "minLength": 1,
117
- "maxLength": 50,
118
- "title": "NFT External Link Label",
119
- "description": "Display name for the external link.",
120
- "example": "View on Carrot Explorer"
121
- },
122
- "url": {
123
- "type": "string",
124
- "format": "uri",
125
- "title": "NFT External Link URL",
126
- "description": "Direct URI to the linked resource.",
127
- "example": "https://explorer.carrot.eco/document/ad44dd3f-f176-4b98-bf78-5ee6e77d0530"
128
- },
129
- "description": {
130
- "type": "string",
131
- "minLength": 10,
132
- "maxLength": 100,
133
- "title": "NFT External Link Description",
134
- "description": "Optional context about what the link provides.",
135
- "example": "Complete chain of custody and audit trail"
136
- }
137
- },
138
- "additionalProperties": false
139
- }
140
- },
141
- "attributes": {
142
- "type": "array",
143
- "title": "NFT Attributes",
144
- "description": "List of visual traits and filterable attributes compatible with NFT marketplaces.",
145
- "items": {
146
- "type": "object",
147
- "required": ["trait_type", "value"],
148
- "properties": {
149
- "trait_type": {
150
- "type": "string",
151
- "maxLength": 50,
152
- "description": "Name of the trait or attribute.",
153
- "example": "Waste Type"
154
- },
155
- "value": {
156
- "oneOf": [
157
- { "type": "string" },
158
- { "type": "number" },
159
- { "type": "boolean" }
160
- ],
161
- "description": "Value of the trait - can be string, number, or boolean.",
162
- "example": "Organic"
163
- },
164
- "display_type": {
165
- "type": "string",
166
- "enum": ["number", "date", "boost_number", "boost_percentage"],
167
- "description": "How the trait should be displayed in marketplace UIs.",
168
- "example": "number"
169
- },
170
- "max_value": {
171
- "$ref": "../definitions/definitions.schema.json#/$defs/non_negative_float",
172
- "description": "Maximum possible value for numeric traits.",
173
- "example": 100.5
174
- }
175
- },
176
- "additionalProperties": false
177
- }
178
- }
179
- }
180
- }
181
- ]
182
- }
@@ -1,42 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/references/audit-reference/audit-reference.schema.json",
4
- "title": "Audit Reference",
5
- "description": "Reference to Audit record.",
6
- "type": "object",
7
- "required": [
8
- "date",
9
- "external_id",
10
- "external_url",
11
- "methodology_compliance",
12
- "rules_executed",
13
- "report"
14
- ],
15
- "properties": {
16
- "date": {
17
- "$ref": "../../definitions/definitions.schema.json#/$defs/iso_date",
18
- "title": "Audit Date",
19
- "description": "Date when the audit was completed"
20
- },
21
- "external_id": {
22
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_id"
23
- },
24
- "external_url": {
25
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_url",
26
- "description": "URL to view the audit on Carrot Explorer"
27
- },
28
- "report": {
29
- "$ref": "../../definitions/definitions.schema.json#/$defs/ipfs_uri",
30
- "title": "Audit Report",
31
- "description": "IPFS URI of the audit report"
32
- },
33
- "methodology_compliance": {
34
- "type": "string",
35
- "enum": ["PASSED", "FAILED"]
36
- },
37
- "rules_executed": {
38
- "$ref": "../../definitions/definitions.schema.json#/$defs/non_negative_integer"
39
- }
40
- },
41
- "additionalProperties": false
42
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/references/gas-id-reference/gas-id-reference.schema.json",
4
- "title": "GasID Reference",
5
- "description": "Reference to a GasID record.",
6
- "type": "object",
7
- "required": ["external_id", "token_id", "external_url", "uri"],
8
- "properties": {
9
- "external_id": {
10
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_id",
11
- "description": "Unique identifier for the GasID."
12
- },
13
- "token_id": {
14
- "$ref": "../../definitions/definitions.schema.json#/$defs/token_id",
15
- "description": "NFT token ID of the GasID."
16
- },
17
- "external_url": {
18
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_url",
19
- "description": "URL to view the GasID on Carrot Explorer."
20
- },
21
- "uri": {
22
- "$ref": "../../definitions/definitions.schema.json#/$defs/ipfs_uri",
23
- "description": "IPFS URI of the GasID record."
24
- }
25
- },
26
- "additionalProperties": false
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://raw.githubusercontent.com/carrot-foundation/schemas/refs/heads/main/schemas/ipfs/shared/references/mass-id-reference/mass-id-reference.schema.json",
4
- "title": "MassID Reference",
5
- "description": "Reference to a MassID record.",
6
- "type": "object",
7
- "required": ["external_id", "token_id", "external_url", "uri"],
8
- "properties": {
9
- "external_id": {
10
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_id",
11
- "description": "Unique identifier for the MassID."
12
- },
13
- "token_id": {
14
- "$ref": "../../definitions/definitions.schema.json#/$defs/token_id",
15
- "description": "NFT token ID of the MassID."
16
- },
17
- "external_url": {
18
- "$ref": "../../definitions/definitions.schema.json#/$defs/external_url",
19
- "description": "URL to view the MassID on Carrot Explorer."
20
- },
21
- "uri": {
22
- "$ref": "../../definitions/definitions.schema.json#/$defs/ipfs_uri",
23
- "description": "IPFS URI of the MassID record."
24
- }
25
- },
26
- "additionalProperties": false
27
- }