{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/a2a-callback-receiver.schema.json",
  "title": "Wever Labs A2A Callback Receiver v1",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "schema_version": {
      "const": "a2a_callback_receiver.v1"
    },
    "mode": {
      "type": "string",
      "enum": [
        "read_callback_receiver",
        "register_callback_target",
        "build_completion_callback",
        "receive_a2a_callback",
        "acknowledge_callback",
        "read_recent_callbacks"
      ]
    },
    "event_type": {
      "type": "string"
    },
    "source_agent_id": {
      "type": "string"
    },
    "target_agent_id": {
      "type": "string"
    },
    "production_run_id": {
      "type": "string"
    },
    "return_package_id": {
      "type": "string"
    },
    "receipt_id": {
      "type": "string"
    },
    "verification_id": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "persist": {
      "type": "boolean"
    }
  },
  "required": [
    "mode"
  ]
}