{"$id": "cct.1.0", "type": "object", "$defs": {"party": {"type": "object", "required": ["party_id", "role", "entity"], "properties": {"role": {"enum": ["SELLER", "BUYER", "PROVIDER", "CLIENT", "LICENSOR", "LICENSEE", "EMPLOYER", "EMPLOYEE", "LANDLORD", "TENANT", "LENDER", "BORROWER", "INSURER", "INSURED", "PRINCIPAL", "AGENT", "CONTRACTOR", "SUBCONTRACTOR", "GUARANTOR", "BENEFICIARY", "WITNESS", "NOTARY"], "type": "string"}, "entity": {"$ref": "#/$defs/entity"}, "capacity": {"$ref": "#/$defs/capacity"}, "party_id": {"type": "string"}, "is_primary": {"type": "boolean"}, "signing_order": {"type": "integer"}, "representative": {"$ref": "#/$defs/representative"}, "role_description": {"type": "string"}, "signing_required": {"type": "boolean"}}}, "clause": {"type": "object", "required": ["clause_id", "type", "content"], "properties": {"type": {"type": "string"}, "title": {"type": "string"}, "number": {"type": "string"}, "content": {"type": "object", "properties": {"text": {"type": "string"}, "summary": {"type": "string"}, "plain_language": {"type": "string"}}}, "category": {"enum": ["essential", "standard", "optional", "boilerplate"], "type": "string"}, "clause_id": {"type": "string"}, "amendments": {"type": "array", "items": {"type": "object"}}, "supersedes": {"type": "string"}, "binding_level": {"enum": ["mandatory", "recommended", "optional"], "type": "string"}, "related_clauses": {"type": "array", "items": {"type": "string"}}, "structured_data": {"type": "object", "properties": {"action": {"type": "string"}, "deadline": {"type": "string"}, "frequency": {"type": "string"}, "conditions": {"type": "array", "items": {"type": "object"}}, "obligated_party": {"type": "string"}, "obligation_type": {"enum": ["do", "dont", "may", "shall_not"], "type": "string"}, "beneficiary_party": {"type": "string"}, "penalty_reference": {"type": "string"}}}, "external_reference": {"type": "string"}}}, "entity": {"type": "object", "required": ["type", "name"], "properties": {"lei": {"type": "string", "pattern": "^[A-Z0-9]{20}$"}, "duns": {"type": "string", "pattern": "^[0-9]{9}$"}, "name": {"type": "string"}, "type": {"enum": ["natural", "legal", "government", "other"], "type": "string"}, "tax_id": {"type": "string"}, "address": {"$ref": "#/$defs/address"}, "contact": {"$ref": "#/$defs/contact"}, "legal_form": {"type": "string"}, "trading_name": {"type": "string"}, "registration_date": {"type": "string", "format": "date"}, "registration_number": {"type": "string"}, "registration_country": {"type": "string", "pattern": "^[A-Z]{2}$"}}}, "address": {"type": "object", "properties": {"city": {"type": "string"}, "line1": {"type": "string"}, "line2": {"type": "string"}, "region": {"type": "string"}, "country": {"type": "string", "pattern": "^[A-Z]{2}$"}, "postal_code": {"type": "string"}}}, "contact": {"type": "object", "properties": {"name": {"type": "string"}, "email": {"type": "string", "format": "email"}, "phone": {"type": "string"}, "position": {"type": "string"}}}, "payment": {"type": "object", "properties": {"id": {"type": "string"}, "amount": {"type": "number"}, "due_date": {"type": "string", "format": "date"}, "due_event": {"type": "string"}, "percentage": {"type": "number"}, "description": {"type": "string"}, "payment_method": {"type": "string"}, "account_details": {"type": "object"}}}, "capacity": {"type": "object", "properties": {"restrictions": {"type": "string"}, "has_legal_capacity": {"type": "boolean"}, "capacity_verification": {"type": "string"}}}, "extended": {"type": "object", "properties": {"ocr": {"type": "object"}, "source": {"type": "object"}, "metadata": {"type": "object", "required": ["created_at", "schema_version"], "properties": {"version": {"type": "integer"}, "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": "cct.1.0"}}}, "workflow": {"type": "object"}, "retention": {"type": "object"}, "ai_analysis": {"type": "object"}, "audit_trail": {"type": "array", "items": {"type": "object"}}, "custom_fields": {"type": "object"}, "risk_assessment": {"type": "object"}}}, "signatures": {"type": "object", "required": ["status"], "properties": {"status": {"enum": ["DRAFT", "REVIEW", "NEGOTIATION", "PENDING_SIGNATURE", "PARTIALLY_SIGNED", "SIGNED", "ACTIVE", "SUSPENDED", "DISPUTED", "RENEWAL", "TERMINATED", "EXPIRED", "CANCELLED", "SUPERSEDED"], "type": "string"}, "witnesses": {"type": "array", "items": {"type": "object"}}, "hash_chain": {"type": "object"}, "signatures": {"type": "array", "items": {"type": "object"}}, "document_hash": {"type": "object"}, "status_reason": {"type": "string"}, "legal_validity": {"type": "object"}, "signing_ceremony": {"type": "object"}, "blockchain_anchor": {"type": "object"}, "status_changed_at": {"type": "string", "format": "date-time"}, "status_changed_by": {"type": "string"}}}, "regional_ae": {"type": "object"}, "regional_cn": {"type": "object"}, "regional_es": {"type": "object"}, "regional_eu": {"type": "object"}, "regional_mx": {"type": "object"}, "regional_uk": {"type": "object"}, "regional_us": {"type": "object"}, "termination": {"type": "object", "properties": {"breach_events": {"type": "array", "items": {"type": "object"}}, "post_termination": {"type": "object", "properties": {"data_return": {"type": "string"}, "final_payment": {"type": "string"}, "data_destruction": {"type": "string"}, "survival_clauses": {"type": "array", "items": {"type": "string"}}, "transition_period": {"type": "string"}, "non_compete_period": {"type": "string"}, "non_solicitation_period": {"type": "string"}}}, "termination_rights": {"type": "array", "items": {"type": "object", "properties": {"fee": {"type": "number"}, "type": {"enum": ["convenience", "cause", "breach", "insolvency", "change_control", "force_majeure"], "type": "string"}, "party": {"type": "string"}, "conditions": {"type": "string"}, "cure_period": {"type": "string"}, "notice_period": {"type": "string"}, "fee_calculation": {"type": "string"}}}}}}, "fixed_amount": {"type": "object", "properties": {"id": {"type": "string"}, "amount": {"type": "number"}, "currency": {"type": "string"}, "due_date": {"type": "string", "format": "date"}, "description": {"type": "string"}, "payment_terms": {"type": "string"}, "tax_treatment": {"enum": ["included", "excluded", "exempt"], "type": "string"}}}, "consideration": {"type": "object", "properties": {"type": {"enum": ["fixed", "variable", "mixed", "non_monetary", "free"], "type": "string"}, "totals": {"type": "object", "properties": {"currency": {"type": "string"}, "total_fixed": {"type": "number"}, "total_estimated": {"type": "number"}, "estimated_variable": {"type": "number"}}}, "currency": {"type": "string", "pattern": "^[A-Z]{3}$"}, "adjustments": {"type": "object", "properties": {"adjustment_cap": {"type": "number"}, "index_reference": {"type": "string"}, "adjustment_frequency": {"type": "string"}, "inflation_indexation": {"type": "boolean"}}}, "non_monetary": {"type": "object", "properties": {"description": {"type": "string"}, "estimated_value": {"type": "number"}, "valuation_method": {"type": "string"}}}, "fixed_amounts": {"type": "array", "items": {"$ref": "#/$defs/fixed_amount"}}, "payment_schedule": {"type": "array", "items": {"$ref": "#/$defs/payment"}}, "variable_amounts": {"type": "array", "items": {"$ref": "#/$defs/variable_amount"}}, "exchange_rate_date": {"type": "string", "format": "date"}}}, "document_links": {"type": "object", "properties": {"amendments": {"type": "array", "items": {"type": "object"}}, "attachments": {"type": "array", "items": {"type": "object"}}, "communications": {"type": "array", "items": {"type": "object"}}, "parent_contract": {"type": "object"}, "project_reference": {"type": "object"}, "related_contracts": {"type": "array", "items": {"type": "object"}}, "schedules_exhibits": {"type": "array", "items": {"type": "object"}}, "external_references": {"type": "array", "items": {"type": "object"}}, "commercial_documents": {"type": "object"}}}, "representative": {"type": "object", "properties": {"name": {"type": "string"}, "id_type": {"type": "string"}, "poa_date": {"type": "string", "format": "date"}, "position": {"type": "string"}, "id_number": {"type": "string"}, "poa_notary": {"type": "string"}, "poa_reference": {"type": "string"}, "power_of_attorney": {"type": "boolean"}}}, "subject_matter": {"type": "object", "properties": {"scope": {"type": "object", "properties": {"exclusions": {"type": "array", "items": {"type": "string"}}, "inclusions": {"type": "array", "items": {"type": "string"}}, "assumptions": {"type": "array", "items": {"type": "string"}}, "constraints": {"type": "array", "items": {"type": "string"}}}}, "territory": {"type": "object", "properties": {"type": {"enum": ["worldwide", "countries", "regions", "custom"], "type": "string"}, "regions": {"type": "array", "items": {"type": "string"}}, "countries": {"type": "array", "items": {"type": "string"}}, "exclusions": {"type": "array", "items": {"type": "string"}}, "description": {"type": "string"}}}, "description": {"type": "string"}, "deliverables": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "type": {"enum": ["product", "service", "license", "asset", "other"], "type": "string"}, "unit": {"type": "string"}, "quantity": {"type": "number"}, "description": {"type": "string"}, "delivery_date": {"type": "string", "format": "date"}, "specifications": {"type": "string"}, "warranty_period": {"type": "string"}, "delivery_location": {"type": "string"}, "acceptance_criteria": {"type": "string"}}}}, "detailed_description": {"type": "string"}}}, "variable_amount": {"type": "object", "properties": {"id": {"type": "string"}, "rate": {"type": "number"}, "formula": {"type": "string"}, "maximum": {"type": "number"}, "minimum": {"type": "number"}, "examples": {"type": "string"}, "rate_type": {"enum": ["percentage", "per_unit", "formula"], "type": "string"}, "cap_period": {"type": "string"}, "description": {"type": "string"}, "calculation_basis": {"type": "string"}}}, "legal_identifiers": {"type": "object", "properties": {"notarization": {"type": "object"}, "party_identifiers": {"type": "object"}, "contract_registration": {"type": "object"}}}, "dispute_resolution": {"type": "object", "properties": {"litigation": {"type": "object", "properties": {"courts": {"type": "string"}, "service_of_process": {"type": "string"}, "exclusive_jurisdiction": {"type": "boolean"}}}, "arbitration": {"type": "object", "properties": {"seat": {"type": "string"}, "rules": {"type": "string"}, "binding": {"type": "boolean"}, "language": {"type": "string"}, "required": {"type": "boolean"}, "arbitrators": {"enum": [1, 3], "type": "integer"}, "institution": {"type": "string"}, "confidential": {"type": "boolean"}, "selection_method": {"type": "string"}, "award_enforcement": {"type": "string"}}}, "jury_waiver": {"type": "boolean"}, "governing_law": {"type": "object", "properties": {"region": {"type": "string"}, "country": {"type": "string"}, "exclusions": {"type": "array", "items": {"type": "string"}}, "specific_laws": {"type": "array", "items": {"type": "string"}}}}, "class_action_waiver": {"type": "boolean"}, "escalation_procedure": {"type": "array", "items": {"type": "object"}}, "statute_of_limitations": {"type": "string"}}}, "insurance_guarantees": {"type": "object", "properties": {"payment_guarantee": {"type": "object"}, "required_insurance": {"type": "array", "items": {"type": "object"}}, "performance_guarantee": {"type": "object"}}}}, "$schema": "https://hst.tzzr.eu/schemas/contract/v1.0/schema.json", "required": ["L1_core", "L3_signatures", "L6_extended"], "properties": {"L1_core": {"type": "object", "required": ["contract_id", "contract_number", "title", "type_code", "duration_type", "effective_date", "parties"], "properties": {"dates": {"type": "object", "required": ["effective_date"], "properties": {"draft_date": {"type": "string", "format": "date"}, "expiry_date": {"type": "string", "format": "date"}, "review_date": {"type": "string", "format": "date"}, "renewal_date": {"type": "string", "format": "date"}, "effective_date": {"type": "string", "format": "date"}, "signature_date": {"type": "string", "format": "date"}, "termination_date": {"type": "string", "format": "date"}, "negotiation_start": {"type": "string", "format": "date"}, "notice_period_days": {"type": "integer", "minimum": 0}}}, "title": {"type": "string", "maxLength": 500}, "clauses": {"type": "array", "items": {"$ref": "#/$defs/clause"}}, "parties": {"type": "array", "items": {"$ref": "#/$defs/party"}, "minItems": 2}, "version": {"type": "string", "default": "1.0"}, "language": {"type": "string", "pattern": "^[a-z]{2}$"}, "type_code": {"enum": ["COM", "SVC", "EMP", "LIC", "NDA", "JVA", "LEA", "LOA", "INS", "CON", "AGY", "FRA", "SLA", "MNT", "SUB", "PAR", "SET", "AMD"], "type": "string"}, "contract_id": {"type": "string", "pattern": "^cct-[a-f0-9-]+$"}, "termination": {"$ref": "#/$defs/termination"}, "subtype_code": {"type": "string"}, "consideration": {"$ref": "#/$defs/consideration"}, "duration_type": {"enum": ["FIX", "IND", "PRJ", "REN", "SPT"], "type": "string"}, "subject_matter": {"$ref": "#/$defs/subject_matter"}, "contract_number": {"type": "string"}, "languages_binding": {"type": "array", "items": {"type": "string"}}, "dispute_resolution": {"$ref": "#/$defs/dispute_resolution"}, "value_classification": {"enum": ["TRV", "STD", "SIG", "MAJ", "STR"], "type": "string"}, "insurance_and_guarantees": {"$ref": "#/$defs/insurance_guarantees"}}}, "L5_links": {"$ref": "#/$defs/document_links"}, "L4_regional": {"type": "object", "properties": {"AE": {"$ref": "#/$defs/regional_ae"}, "CN": {"$ref": "#/$defs/regional_cn"}, "ES": {"$ref": "#/$defs/regional_es"}, "EU": {"$ref": "#/$defs/regional_eu"}, "MX": {"$ref": "#/$defs/regional_mx"}, "UK": {"$ref": "#/$defs/regional_uk"}, "US": {"$ref": "#/$defs/regional_us"}}}, "L6_extended": {"$ref": "#/$defs/extended"}, "L2_legal_ids": {"$ref": "#/$defs/legal_identifiers"}, "L3_signatures": {"$ref": "#/$defs/signatures"}}}