{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/packetops-manifest-loop.schema.json",
  "title": "PacketOps Manifest Loop v1",
  "type": "object",
  "required": [
    "schema_version",
    "packet_type",
    "available_documents"
  ],
  "properties": {
    "schema_version": {
      "const": "packetops_manifest_loop.v1"
    },
    "packet_type": {
      "type": "string"
    },
    "packet_name": {
      "type": "string"
    },
    "available_documents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expected_documents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "submission_context": {
      "type": "string"
    },
    "operator_decision": {
      "type": "string",
      "enum": [
        "needs_review",
        "approved_for_release",
        "waived_missing_items",
        "request_more_information",
        "hold",
        "rejected",
        "archive"
      ]
    },
    "persist_records": {
      "type": "boolean"
    }
  },
  "additionalProperties": true
}
