{"$id": "gtc.1.0", "type": "object", "$defs": {"links": {"type": "object", "properties": {"used_by": {"type": "object"}, "translations": {"type": "array"}, "related_documents": {"type": "array"}, "published_locations": {"type": "array"}}}, "clause": {"type": "object", "required": ["clause_id", "title", "type", "content"], "properties": {"type": {"enum": ["DEF", "SCO", "ORD", "PRC", "PAY", "DLV", "RIS", "OWN", "RET", "WRN", "LIA", "FRC", "IPR", "CNF", "DPR", "TRM", "DSP", "GOV", "SEV", "AMD", "WAV", "ASG", "NTC", "ENT", "CUS"], "type": "string"}, "title": {"type": "string"}, "number": {"type": "string"}, "content": {"type": "object", "required": ["text"], "properties": {"text": {"type": "string"}, "summary": {"type": "string"}, "plain_language": {"type": "string"}}}, "clause_id": {"type": "string"}, "mandatory": {"type": "boolean"}, "variables": {"type": "array"}, "related_clauses": {"type": "array", "items": {"type": "string"}}, "legal_references": {"type": "array"}, "regional_variations": {"type": "object"}, "mutually_exclusive_with": {"type": "array", "items": {"type": "string"}}}}, "entity": {"type": "object", "properties": {"name": {"type": "string"}, "tax_id": {"type": "string"}, "address": {"type": "object"}, "entity_ref": {"type": "string"}, "legal_name": {"type": "string"}}}, "extended": {"type": "object", "properties": {"metadata": {"type": "object", "required": ["schema_version"], "properties": {"h_maestro": {"type": "string"}, "created_at": {"type": "string", "format": "date-time"}, "created_by": {"type": "string"}, "updated_at": {"type": "string", "format": "date-time"}, "updated_by": {"type": "string"}, "schema_version": {"type": "string", "const": "gtc.1.0"}}}, "analytics": {"type": "object"}, "ai_analysis": {"type": "object"}, "publication": {"type": "object"}, "legal_review": {"type": "object"}}}, "regional": {"type": "object", "properties": {"DE": {"type": "object"}, "ES": {"type": "object"}, "EU": {"type": "object"}, "FR": {"type": "object"}, "UK": {"type": "object"}, "US": {"type": "object"}}}, "versions": {"type": "object", "properties": {"history": {"type": "array"}, "version": {"type": "string"}, "supersedes": {"type": "object"}, "transition": {"type": "object"}, "version_date": {"type": "string", "format": "date"}, "change_reason": {"type": "string"}, "superseded_by": {"type": "object"}, "change_summary": {"type": "string"}, "effective_date": {"type": "string", "format": "date"}}}, "applicability": {"type": "object", "properties": {"territory": {"type": "object"}, "applies_to": {"type": "object", "properties": {"customer_types": {"type": "array", "items": {"type": "string"}}, "document_types": {"type": "array", "items": {"type": "string"}}, "transaction_types": {"type": "array", "items": {"type": "string"}}, "product_categories": {"type": "array", "items": {"type": "string"}}, "service_categories": {"type": "array", "items": {"type": "string"}}}}, "value_thresholds": {"type": "object"}, "acceptance_method": {"type": "object"}}}, "legal_framework": {"type": "object", "properties": {"jurisdiction": {"type": "object"}, "governing_law": {"type": "object"}, "consumer_protection": {"type": "object"}, "unfair_terms_review": {"type": "object"}, "regulatory_compliance": {"type": "object"}}}}, "$schema": "https://hst.tzzr.eu/schemas/gtc/v1.0/schema.json", "required": ["L1_core"], "properties": {"L1_core": {"type": "object", "required": ["header", "clauses"], "properties": {"header": {"type": "object", "required": ["gtc_id", "code", "title", "type_code", "version", "effective_date", "status"], "properties": {"code": {"type": "string"}, "scope": {"type": "string"}, "title": {"type": "string"}, "gtc_id": {"type": "string", "pattern": "^gtc-[a-f0-9-]+$"}, "issuer": {"$ref": "#/$defs/entity"}, "status": {"enum": ["draft", "active", "superseded", "archived"], "type": "string"}, "summary": {"type": "string"}, "version": {"type": "string"}, "language": {"type": "string", "pattern": "^[a-z]{2}$"}, "type_code": {"enum": ["GCS", "GCP", "GTS", "GTL", "GTW", "NDA", "DPA", "AUP"], "type": "string"}, "expiry_date": {"type": "string", "format": "date"}, "effective_date": {"type": "string", "format": "date"}, "supersedes_version": {"type": "string"}, "languages_available": {"type": "array", "items": {"type": "string"}}}}, "clauses": {"type": "array", "items": {"$ref": "#/$defs/clause"}, "minItems": 1}, "applicability": {"$ref": "#/$defs/applicability"}, "standard_sections": {"type": "object"}}}, "L5_links": {"$ref": "#/$defs/links"}, "L3_versions": {"$ref": "#/$defs/versions"}, "L4_regional": {"$ref": "#/$defs/regional"}, "L6_extended": {"$ref": "#/$defs/extended"}, "L2_legal_framework": {"$ref": "#/$defs/legal_framework"}}}