{"$defs": {"CertificationScheme": {"additionalProperties": false, "description": "A `CertificationScheme` represents an externally verified commitment by an organization to some level of carbon redution,\nbacked by some evidence as disclosures. At a minimum it should refer to a `url` detailing the certification requirements\nand the verifying organization, and an arbitary `id` for reference in `Disclosure` objects. It may optionally include\na string `title` and `description`.", "properties": {"id": {"title": "Id", "type": "string"}, "url": {"title": "Url", "type": "string"}, "title": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Title"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Description"}}, "required": ["id", "url"], "title": "CertificationScheme", "type": "object"}, "Disclosure": {"additionalProperties": false, "description": "Disclosures are essentially supporting documentation shared by an organisation than can\nbe to be used to substantiate a claim like running on green energy, and so on.\nIn the carbontxt version 0.6 syntax, disclosures have all the same fields as in\nversion 0.5, plus an optional description string, and we add the new `measurement-data`\ndocument type to the enumeration of possible values, and the optional ability to refer\nto a list of `certification_schemes` supported by this disclosure.", "properties": {"doc_type": {"enum": ["web-page", "annual-report", "sustainability-page", "certificate", "csrd-report", "ai-model-card", "measurement-data", "other"], "title": "Doc Type", "type": "string"}, "url": {"title": "Url", "type": "string"}, "domain": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Domain"}, "valid_until": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "default": null, "title": "Valid Until"}, "title": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Title"}, "description": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Description"}, "certification_schemes": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}], "default": null, "title": "Certification Schemes"}}, "required": ["doc_type", "url"], "title": "Disclosure", "type": "object"}, "Organisation": {"additionalProperties": false, "description": "An Organisation is the entity making the claim to running its infrastructure\non green energy. In the very least it should have some disclosures point to, even\nif it is exclusively relying on services from upstream providers for its green claims.\nThis class represents the Organization object in version 0.6 which adds support for certification\nscheme declarations.", "properties": {"disclosures": {"items": {"$ref": "#/$defs/Disclosure"}, "minItems": 1, "title": "Disclosures", "type": "array"}, "certification_schemes": {"anyOf": [{"items": {"$ref": "#/$defs/CertificationScheme"}, "type": "array"}, {"type": "null"}], "default": null, "title": "Certification Schemes"}}, "required": ["disclosures"], "title": "Organisation", "type": "object"}, "Service": {"additionalProperties": false, "description": "A service in this context is a hosted service, offered by a provider\nof hosted services.\nThe domain is used as key for looking up a corresponding provider in the\nGreen Web Platform", "properties": {"domain": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Domain"}, "name": {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null, "title": "Name"}, "service_type": {"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "string"}, {"type": "null"}], "default": null, "title": "Service Type"}}, "required": ["domain"], "title": "Service", "type": "object"}, "Upstream": {"additionalProperties": false, "description": "Upstream refers to one or more hosted services that the Organisation\nis relying on to operate a digital service, like running a website, or application.", "properties": {"services": {"anyOf": [{"items": {"anyOf": [{"$ref": "#/$defs/Service"}, {"type": "string"}]}, "type": "array"}, {"type": "null"}], "default": null, "title": "Services"}}, "title": "Upstream", "type": "object"}}, "additionalProperties": false, "description": "A carbon.txt file is the data structure that acts as an index for supporting evidence\nfor green claims made by a specific organisation. It is intended to links to\nmachine readable data or supporting documentation in the public domain.\nThis class represents the version 0.6 syntax, which adds an optional description\nattribute for disclosures, the `measurement-data` disclosure type, and support for\noptional certification schemes.", "properties": {"version": {"pattern": "^(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)(?:\\.(?P<patch>0|[1-9]\\d*))?(?:-(?P<prerelease>(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", "title": "Version", "type": "string"}, "last_updated": {"anyOf": [{"format": "date", "type": "string"}, {"type": "null"}], "default": null, "title": "Last Updated"}, "upstream": {"anyOf": [{"$ref": "#/$defs/Upstream"}, {"type": "null"}], "default": null}, "org": {"$ref": "#/$defs/Organisation"}}, "required": ["version", "org"], "title": "CarbonTxtFile", "type": "object"}