{
  "openapi": "3.1.0",
  "info": {
    "title": "NexCom MRO Airworthiness Records",
    "version": "0.2.1",
    "description": "Controlled maintenance evidence. No airworthiness certification or military authority approval is conferred."
  },
  "servers": [
    {
      "url": "https://erpstaging.nexcommand.ai"
    },
    {
      "url": "https://enterprise.nexcommand.ai"
    },
    {
      "url": "https://mai.ai-erp-demo.nexcommand.ai"
    },
    {
      "url": "https://neo.ai-erp-demo.nexcommand.ai"
    },
    {
      "url": "https://nora.ai-erp-demo.nexcommand.ai"
    }
  ],
  "security": [
    {
      "FrappeToken": []
    }
  ],
  "paths": {
    "/api/method/nexcom_branding.mro.api.overview": {
      "get": {
        "operationId": "overview",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Native Frappe message envelope"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient permission"
          },
          "417": {
            "description": "MRO validation failed"
          }
        }
      }
    },
    "/api/method/nexcom_branding.mro.api.release_readiness": {
      "get": {
        "operationId": "release_readiness",
        "parameters": [
          {
            "name": "work_package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native Frappe message envelope"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient permission"
          },
          "417": {
            "description": "MRO validation failed"
          }
        }
      }
    },
    "/api/method/nexcom_branding.mro.api.evidence_pack": {
      "get": {
        "operationId": "evidence_pack",
        "parameters": [
          {
            "name": "work_package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native Frappe message envelope"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Insufficient permission"
          },
          "417": {
            "description": "MRO validation failed"
          }
        }
      }
    },
    "/api/method/nexcom_branding.mro.api.draft_stock_issue": {
      "post": {
        "operationId": "draftStockIssue",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "work_package",
                  "item",
                  "quantity",
                  "expense_account"
                ],
                "properties": {
                  "work_package": {
                    "type": "string"
                  },
                  "item": {
                    "type": "string"
                  },
                  "quantity": {
                    "type": "number"
                  },
                  "expense_account": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Draft native stock entry"
          },
          "403": {
            "description": "Scope or native permission denied"
          },
          "417": {
            "description": "Validation failure"
          }
        }
      }
    },
    "/api/resource/{doctype}": {
      "post": {
        "operationId": "createDraft",
        "parameters": [
          {
            "name": "doctype",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "NexCom MRO Reference",
                "NexCom MRO Profile",
                "NexCom MRO Authorization",
                "NexCom MRO Aircraft",
                "NexCom MRO Component",
                "NexCom MRO Usage",
                "NexCom MRO Obligation",
                "NexCom MRO Work Package",
                "NexCom MRO Task",
                "NexCom MRO Tool",
                "NexCom MRO Check",
                "NexCom MRO Finding",
                "NexCom MRO Disposition",
                "NexCom MRO Material",
                "NexCom MRO Release",
                "NexCom MRO Handoff",
                "NexCom MRO Withdrawal",
                "NexCom MRO Component Movement",
                "NexCom MRO Configuration Revision"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Reference"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Profile"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Authorization"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Aircraft"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Component"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Usage"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Obligation"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Work_Package"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Task"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Tool"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Check"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Finding"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Disposition"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Material"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Release"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Handoff"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Withdrawal"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Component_Movement"
                  },
                  {
                    "$ref": "#/components/schemas/NexCom_MRO_Configuration_Revision"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created draft"
          },
          "403": {
            "description": "Permission denied"
          }
        }
      }
    },
    "/api/method/frappe.client.submit": {
      "post": {
        "operationId": "submitControlledEvidence",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "doc"
                ],
                "properties": {
                  "doc": {
                    "type": "object",
                    "description": "Complete current native document; native submit and all MRO gates apply."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submitted evidence with server actor/time/hash"
          },
          "403": {
            "description": "Permission denied"
          },
          "417": {
            "description": "Release or record gate failed"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "FrappeToken": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "token api_key:api_secret; inherits native roles and Company permissions. Browser sessions retain native CSRF protections."
      }
    },
    "schemas": {
      "NexCom_MRO_Reference": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Reference"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "title": {
            "type": "string",
            "description": "Title"
          },
          "issuer": {
            "type": "string",
            "description": "Issuing authority"
          },
          "edition": {
            "type": "string",
            "description": "Edition / revision"
          },
          "locator": {
            "type": "string",
            "description": "Clause / work package / paragraph"
          },
          "source_uri": {
            "type": "string",
            "description": "Controlled source location"
          },
          "source_hash": {
            "type": "string",
            "description": "Source SHA-256"
          },
          "effective_from": {
            "type": "string",
            "description": "Effective from",
            "format": "date"
          },
          "review_due": {
            "type": "string",
            "description": "Currency review due",
            "format": "date"
          },
          "applicability": {
            "type": "string",
            "description": "Applicability and exclusions"
          },
          "approval_evidence": {
            "type": "string",
            "description": "Applicability approval evidence"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "title",
          "issuer",
          "edition",
          "locator",
          "source_uri",
          "source_hash",
          "effective_from",
          "review_due",
          "applicability",
          "approval_evidence"
        ]
      },
      "NexCom_MRO_Profile": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Profile"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "profile_name": {
            "type": "string",
            "description": "Profile"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Jurisdiction",
            "enum": [
              "US Army / DoD",
              "Saudi military",
              "Other"
            ]
          },
          "authority": {
            "type": "string",
            "description": "Named airworthiness authority"
          },
          "model": {
            "type": "string",
            "description": "Exact aircraft model / configuration family"
          },
          "scope": {
            "type": "string",
            "description": "Organization approval and work scope"
          },
          "approval_identifier": {
            "type": "string",
            "description": "Authority / contract approval reference"
          },
          "governing_reference": {
            "type": "string",
            "description": "Governing reference"
          },
          "valid_until": {
            "type": "string",
            "description": "Approval valid through",
            "format": "date"
          },
          "retention_years": {
            "type": "integer",
            "description": "Minimum record retention years"
          },
          "retention_basis": {
            "type": "string",
            "description": "Retention authority / contract clause"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "profile_name",
          "jurisdiction",
          "authority",
          "model",
          "scope",
          "approval_identifier",
          "governing_reference",
          "valid_until",
          "retention_years",
          "retention_basis"
        ]
      },
      "NexCom_MRO_Authorization": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Authorization"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "user": {
            "type": "string",
            "description": "Authorized user"
          },
          "profile": {
            "type": "string",
            "description": "Profile"
          },
          "capability": {
            "type": "string",
            "description": "Capability",
            "enum": [
              "Plan",
              "Perform",
              "Inspect",
              "Release",
              "Engineering",
              "Quality",
              "Material"
            ]
          },
          "task_scope": {
            "type": "string",
            "description": "Task scope code (exact match)"
          },
          "valid_from": {
            "type": "string",
            "description": "Valid from",
            "format": "date"
          },
          "valid_until": {
            "type": "string",
            "description": "Valid through",
            "format": "date"
          },
          "appointment_evidence": {
            "type": "string",
            "description": "Written appointment and competency evidence"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "user",
          "profile",
          "capability",
          "task_scope",
          "valid_from",
          "valid_until",
          "appointment_evidence"
        ]
      },
      "NexCom_MRO_Aircraft": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Aircraft"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "tail_number": {
            "type": "string",
            "description": "Aircraft identifier"
          },
          "serial_number": {
            "type": "string",
            "description": "Aircraft serial number"
          },
          "model": {
            "type": "string",
            "description": "Exact model"
          },
          "profile": {
            "type": "string",
            "description": "Opening authority profile"
          },
          "baseline": {
            "type": "string",
            "description": "Opening approved configuration baseline"
          },
          "approval_evidence": {
            "type": "string",
            "description": "Configuration / airworthiness approval evidence"
          },
          "opening_hours": {
            "type": "number",
            "description": "Verified opening total hours"
          },
          "opening_cycles": {
            "type": "integer",
            "description": "Verified opening total cycles"
          },
          "opening_history": {
            "type": "string",
            "description": "Opening history / reconciliation evidence"
          },
          "asset": {
            "type": "string",
            "description": "Fixed asset"
          },
          "customer": {
            "type": "string",
            "description": "Owner / customer"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "tail_number",
          "serial_number",
          "model",
          "profile",
          "baseline",
          "approval_evidence",
          "opening_hours",
          "opening_cycles",
          "opening_history"
        ]
      },
      "NexCom_MRO_Component": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Component"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "part_number": {
            "type": "string",
            "description": "Part number"
          },
          "serial_number": {
            "type": "string",
            "description": "Serial number"
          },
          "item": {
            "type": "string",
            "description": "Inventory item"
          },
          "native_serial": {
            "type": "string",
            "description": "Native inventory serial"
          },
          "no_life_limit_approval": {
            "type": "string",
            "description": "Approved determination of no numeric/calendar life limit"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft (blank when off-aircraft)"
          },
          "position": {
            "type": "string",
            "description": "Installation position"
          },
          "configuration": {
            "type": "string",
            "description": "Approved configuration / effectivity"
          },
          "opening_hours": {
            "type": "number",
            "description": "Verified total hours since new"
          },
          "opening_cycles": {
            "type": "integer",
            "description": "Verified total cycles since new"
          },
          "life_hours": {
            "type": "number",
            "description": "Approved total life hours (blank if no hours limit)"
          },
          "life_cycles": {
            "type": "integer",
            "description": "Approved total life cycles (blank if no cycle limit)"
          },
          "life_reference": {
            "type": "string",
            "description": "Life / configuration authority"
          },
          "history_evidence": {
            "type": "string",
            "description": "Continuous history and eligibility evidence"
          },
          "shelf_expiry": {
            "type": "string",
            "description": "Shelf / calendar expiry",
            "format": "date"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "part_number",
          "serial_number",
          "item",
          "configuration",
          "opening_hours",
          "opening_cycles",
          "life_reference",
          "history_evidence"
        ]
      },
      "NexCom_MRO_Usage": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Usage"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft"
          },
          "occurred_at": {
            "type": "string",
            "description": "Usage event at"
          },
          "hours": {
            "type": "number",
            "description": "Actual incremental hours"
          },
          "cycles": {
            "type": "integer",
            "description": "Actual incremental cycles"
          },
          "evidence": {
            "type": "string",
            "description": "Source flight / operating log"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "aircraft",
          "occurred_at",
          "hours",
          "cycles",
          "evidence"
        ]
      },
      "NexCom_MRO_Obligation": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Obligation"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft"
          },
          "subject": {
            "type": "string",
            "description": "Inspection / directive / life obligation"
          },
          "reference": {
            "type": "string",
            "description": "Applicable requirement"
          },
          "task_scope": {
            "type": "string",
            "description": "Required task scope"
          },
          "due_date": {
            "type": "string",
            "description": "Due date",
            "format": "date"
          },
          "due_hours": {
            "type": "number",
            "description": "Due total aircraft hours"
          },
          "due_cycles": {
            "type": "integer",
            "description": "Due total aircraft cycles"
          },
          "applicability_evidence": {
            "type": "string",
            "description": "Applicability assessment"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "aircraft",
          "subject",
          "reference",
          "task_scope",
          "applicability_evidence"
        ]
      },
      "NexCom_MRO_Work_Package": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Work Package"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft"
          },
          "subject": {
            "type": "string",
            "description": "Work scope"
          },
          "task_scope": {
            "type": "string",
            "description": "Authorization scope code"
          },
          "scope_evidence": {
            "type": "string",
            "description": "Customer / work authorization"
          },
          "baseline": {
            "type": "string",
            "description": "Pinned opening configuration baseline"
          },
          "target_baseline": {
            "type": "string",
            "description": "Approved planned configuration after work"
          },
          "project": {
            "type": "string",
            "description": "Cost collection project"
          },
          "cost_center": {
            "type": "string",
            "description": "Cost center"
          },
          "warehouse": {
            "type": "string",
            "description": "Issue warehouse"
          },
          "wip_account": {
            "type": "string",
            "description": "WIP / maintenance expense account"
          },
          "requires_tool": {
            "type": "integer",
            "description": "Controlled measuring tool required"
          },
          "no_tool_basis": {
            "type": "string",
            "description": "Approved basis when no measuring tool is required"
          },
          "planned_tasks": {
            "type": "integer",
            "description": "Minimum required task records"
          },
          "required_checks": {
            "type": "string",
            "description": "Required check categories",
            "readOnly": true
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "aircraft",
          "subject",
          "task_scope",
          "scope_evidence",
          "baseline",
          "planned_tasks"
        ]
      },
      "NexCom_MRO_Task": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Task"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "task_scope": {
            "type": "string",
            "description": "Task scope code"
          },
          "reference": {
            "type": "string",
            "description": "Approved task reference"
          },
          "instruction_locator": {
            "type": "string",
            "description": "Approved task / step locator"
          },
          "completed_at": {
            "type": "string",
            "description": "Actual completion at"
          },
          "result": {
            "type": "string",
            "description": "Result",
            "enum": [
              "Pass",
              "Fail"
            ]
          },
          "results": {
            "type": "string",
            "description": "Actual measurements / results"
          },
          "evidence": {
            "type": "string",
            "description": "Work / measurement record evidence"
          },
          "labor_hours": {
            "type": "number",
            "description": "Actual labor hours"
          },
          "requires_tool": {
            "type": "integer",
            "description": "Requires controlled measuring tool"
          },
          "tool": {
            "type": "string",
            "description": "Tool used"
          },
          "measurement_scope": {
            "type": "string",
            "description": "Exact measurement scope code"
          },
          "measured_value": {
            "type": "number",
            "description": "Measured value"
          },
          "tool_snapshot": {
            "type": "string",
            "description": "Tool eligibility at completion",
            "readOnly": true
          },
          "obligation": {
            "type": "string",
            "description": "Obligation accomplished"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "task_scope",
          "reference",
          "instruction_locator",
          "completed_at",
          "result",
          "results",
          "evidence",
          "labor_hours"
        ]
      },
      "NexCom_MRO_Tool": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Tool"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "tool_serial": {
            "type": "string",
            "description": "Unique tool / calibration revision ID"
          },
          "physical_serial": {
            "type": "string",
            "description": "Physical instrument serial / asset ID"
          },
          "measurement_scope": {
            "type": "string",
            "description": "Exact measurement scope code"
          },
          "unit": {
            "type": "string",
            "description": "Measurement unit"
          },
          "range_min": {
            "type": "number",
            "description": "Minimum authorized value"
          },
          "range_max": {
            "type": "number",
            "description": "Maximum authorized value"
          },
          "calibrated_on": {
            "type": "string",
            "description": "Calibrated on",
            "format": "date"
          },
          "calibration_due": {
            "type": "string",
            "description": "Calibration due",
            "format": "date"
          },
          "certificate": {
            "type": "string",
            "description": "Calibration certificate and traceability evidence"
          },
          "lab_scope": {
            "type": "string",
            "description": "Approved laboratory scope"
          },
          "reference": {
            "type": "string",
            "description": "Calibration requirement"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "tool_serial",
          "physical_serial",
          "measurement_scope",
          "unit",
          "range_min",
          "range_max",
          "calibrated_on",
          "calibration_due",
          "certificate",
          "lab_scope",
          "reference"
        ]
      },
      "NexCom_MRO_Check": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Check"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "category": {
            "type": "string",
            "description": "Check category",
            "enum": [
              "Inspection",
              "Configuration",
              "Weight and Balance",
              "FOD and Tools",
              "Records",
              "Materials",
              "Obligation Closure",
              "Cost Reconciliation"
            ]
          },
          "result": {
            "type": "string",
            "description": "Check result",
            "enum": [
              "Pass",
              "Fail"
            ]
          },
          "details": {
            "type": "string",
            "description": "Actual scope and results"
          },
          "evidence": {
            "type": "string",
            "description": "Inspection / reconciliation evidence"
          },
          "quality_inspection": {
            "type": "string",
            "description": "Native quality inspection"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "category",
          "result",
          "details",
          "evidence"
        ]
      },
      "NexCom_MRO_Finding": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Finding"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "task": {
            "type": "string",
            "description": "Failed task / affected prior work"
          },
          "tool": {
            "type": "string",
            "description": "Suspect tool"
          },
          "finding_type": {
            "type": "string",
            "description": "Finding type",
            "enum": [
              "Defect",
              "NCR",
              "Tool Impact",
              "Safety Notice",
              "Record Gap"
            ]
          },
          "description": {
            "type": "string",
            "description": "Finding / containment"
          },
          "evidence": {
            "type": "string",
            "description": "Finding evidence"
          },
          "quality_action": {
            "type": "string",
            "description": "Native corrective action"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "aircraft",
          "finding_type",
          "description",
          "evidence"
        ]
      },
      "NexCom_MRO_Disposition": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Disposition"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "finding": {
            "type": "string",
            "description": "Finding"
          },
          "disposition": {
            "type": "string",
            "description": "Disposition",
            "enum": [
              "Rectified",
              "Deferred",
              "Rejected"
            ]
          },
          "authority_evidence": {
            "type": "string",
            "description": "Authorized disposition evidence"
          },
          "reference": {
            "type": "string",
            "description": "Disposition authority"
          },
          "retest_task": {
            "type": "string",
            "description": "Passed retest"
          },
          "limitations": {
            "type": "string",
            "description": "Limitations / conditions"
          },
          "valid_until": {
            "type": "string",
            "description": "Deferral expires at"
          },
          "root_cause": {
            "type": "string",
            "description": "Root cause / applicability"
          },
          "effectiveness": {
            "type": "string",
            "description": "Corrective action effectiveness evidence"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "finding",
          "disposition",
          "authority_evidence",
          "reference",
          "root_cause",
          "effectiveness"
        ]
      },
      "NexCom_MRO_Material": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Material"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "item": {
            "type": "string",
            "description": "Item"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity"
          },
          "action": {
            "type": "string",
            "description": "Action",
            "enum": [
              "Issue",
              "Return",
              "Quarantine"
            ]
          },
          "stock_entry": {
            "type": "string",
            "description": "Submitted native stock movement"
          },
          "serial_lot": {
            "type": "string",
            "description": "Serial / lot and genealogy evidence"
          },
          "eligibility": {
            "type": "string",
            "description": "Approved source, condition, shelf-life and effectivity evidence"
          },
          "component": {
            "type": "string",
            "description": "Component instance"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "item",
          "quantity",
          "action",
          "stock_entry",
          "serial_lot",
          "eligibility"
        ]
      },
      "NexCom_MRO_Release": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Release"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "statement": {
            "type": "string",
            "description": "Authorized maintenance release statement"
          },
          "external_release_id": {
            "type": "string",
            "description": "Authority-specific release / form reference"
          },
          "limitations": {
            "type": "string",
            "description": "Release limitations"
          },
          "snapshot": {
            "type": "string",
            "description": "Release evidence snapshot",
            "readOnly": true
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "statement",
          "external_release_id"
        ]
      },
      "NexCom_MRO_Handoff": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Handoff"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "department": {
            "type": "string",
            "description": "Department",
            "enum": [
              "Supply Chain",
              "Inventory",
              "Finance",
              "Manufacturing",
              "Quality",
              "Human Resources",
              "Engineering",
              "Operations"
            ]
          },
          "target_type": {
            "type": "string",
            "description": "Native record type"
          },
          "target_name": {
            "type": "string",
            "description": "Native record"
          },
          "purpose": {
            "type": "string",
            "description": "Handoff and reconciliation purpose"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "department",
          "target_type",
          "target_name",
          "purpose"
        ]
      },
      "NexCom_MRO_Withdrawal": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Withdrawal"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "target_type": {
            "type": "string",
            "description": "Affected record type"
          },
          "target_name": {
            "type": "string",
            "description": "Affected submitted record"
          },
          "reason": {
            "type": "string",
            "description": "Withdrawal / safety hold reason"
          },
          "evidence": {
            "type": "string",
            "description": "Authorized withdrawal evidence"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "target_type",
          "target_name",
          "reason",
          "evidence"
        ]
      },
      "NexCom_MRO_Component_Movement": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Component Movement"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "work_package": {
            "type": "string",
            "description": "Work package"
          },
          "component": {
            "type": "string",
            "description": "Component"
          },
          "action": {
            "type": "string",
            "description": "Action",
            "enum": [
              "Install",
              "Remove"
            ]
          },
          "position": {
            "type": "string",
            "description": "Installation position"
          },
          "aircraft_hours": {
            "type": "number",
            "description": "Aircraft total hours at event",
            "readOnly": true
          },
          "aircraft_cycles": {
            "type": "integer",
            "description": "Aircraft total cycles at event",
            "readOnly": true
          },
          "eligibility_evidence": {
            "type": "string",
            "description": "Approved eligibility / removal condition evidence"
          },
          "material": {
            "type": "string",
            "description": "Linked stock and genealogy evidence"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "work_package",
          "component",
          "action",
          "position",
          "eligibility_evidence",
          "material"
        ]
      },
      "NexCom_MRO_Configuration_Revision": {
        "type": "object",
        "properties": {
          "doctype": {
            "const": "NexCom MRO Configuration Revision"
          },
          "name": {
            "type": "string"
          },
          "docstatus": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "company": {
            "type": "string",
            "description": "Company"
          },
          "synthetic": {
            "type": "integer",
            "description": "Synthetic demonstration only"
          },
          "record_note": {
            "type": "string",
            "description": "Record note"
          },
          "aircraft": {
            "type": "string",
            "description": "Aircraft"
          },
          "work_package": {
            "type": "string",
            "description": "Physical change work package"
          },
          "change_type": {
            "type": "string",
            "description": "Revision type",
            "enum": [
              "Baseline change",
              "Authority renewal"
            ]
          },
          "baseline": {
            "type": "string",
            "description": "Approved configuration baseline"
          },
          "profile": {
            "type": "string",
            "description": "Approved authority profile"
          },
          "reference": {
            "type": "string",
            "description": "Approved change / renewal reference"
          },
          "approval_evidence": {
            "type": "string",
            "description": "Designated authority approval evidence"
          },
          "weight_balance_evidence": {
            "type": "string",
            "description": "Weight/balance impact assessment evidence"
          },
          "effectivity_evidence": {
            "type": "string",
            "description": "Component effectivity assessment evidence"
          },
          "component_manifest": {
            "type": "string",
            "description": "Eligible component record IDs (JSON list)"
          },
          "signed_by": {
            "type": "string",
            "description": "Recorded by",
            "readOnly": true
          },
          "signed_at": {
            "type": "string",
            "description": "Recorded at",
            "readOnly": true
          },
          "content_hash": {
            "type": "string",
            "description": "Submitted content SHA-256",
            "readOnly": true
          },
          "signed_payload": {
            "type": "string",
            "description": "Exact submitted payload",
            "readOnly": true
          }
        },
        "required": [
          "company",
          "aircraft",
          "change_type",
          "baseline",
          "profile",
          "reference",
          "approval_evidence",
          "weight_balance_evidence",
          "effectivity_evidence",
          "component_manifest"
        ]
      }
    }
  }
}
