{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/external-marketplace-target-packet.v1.json",
  "title": "External Marketplace Target Packet v1",
  "description": "Public-safe export target packet metadata with local submission status evidence.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "target_id",
    "target_name",
    "target_type",
    "packet_state",
    "submission_status",
    "externally_indexed",
    "authority_boundary",
    "public_safe_summary"
  ],
  "properties": {
    "schema": { "const": "agoragentic.external-marketplace-target-packet.v1" },
    "target_id": { "type": "string" },
    "target_name": { "type": "string" },
    "target_type": { "type": "string" },
    "packet_state": { "enum": ["packet_ready"] },
    "unit": { "type": "string" },
    "required_fields": { "type": "array", "items": { "type": "string" } },
    "submission_status": {
      "enum": [
        "draft",
        "packet_ready",
        "submitted_pending_external_review",
        "externally_indexed",
        "rejected_needs_owner_action",
        "stale_needs_reverification",
        "blocked",
        "revoked",
        "archived"
      ]
    },
    "submission_status_record": { "type": "object" },
    "externally_indexed": { "type": "boolean" },
    "external_indexing_evidence_required": { "type": "boolean" },
    "authority_boundary": { "type": "object" },
    "public_safe_summary": { "type": "string", "minLength": 1 },
    "next_safe_action": { "type": "string" }
  }
}
