{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/agent-self-onboarding-request.schema.json",
  "title": "Agent Self-Onboarding Request",
  "description": "Public-safe schema for an external agent introducing itself to Wever Labs OS and requesting a structured operating path.",
  "type": "object",
  "required": [
    "request_type",
    "agent_name",
    "agent_owner",
    "manifest_url",
    "callback_url",
    "requested_tools",
    "data_mode"
  ],
  "properties": {
    "request_type": {
      "type": "string",
      "const": "agent_self_onboarding_request"
    },
    "agent_name": {
      "type": "string"
    },
    "agent_owner": {
      "type": "string"
    },
    "agent_description": {
      "type": "string"
    },
    "manifest_url": {
      "type": "string",
      "format": "uri"
    },
    "agent_card_url": {
      "type": "string",
      "format": "uri"
    },
    "operator_contact": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "status_callback_url": {
      "type": "string",
      "format": "uri"
    },
    "requested_tools": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "packetops",
          "distributionops",
          "tokenops",
          "wever_labs_os"
        ]
      },
      "minItems": 1
    },
    "requested_capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "requested_operating_path": {
      "type": "string",
      "enum": [
        "self_onboarding",
        "trust_review",
        "quote_request",
        "run_contract",
        "agent_run_gateway"
      ]
    },
    "data_mode": {
      "type": "string",
      "enum": [
        "public_safe_demo",
        "metadata_only",
        "public_records",
        "client_provided_files"
      ]
    },
    "evidence_summary": {
      "type": "string"
    },
    "preferred_result_format": {
      "type": "string",
      "enum": [
        "json",
        "human_readable",
        "json_and_human_readable"
      ]
    },
    "requested_settlement_rail": {
      "type": "string",
      "enum": [
        "stripe_stablecoin",
        "x402",
        "circle_usdc",
        "credit_balance",
        "provider_agnostic"
      ]
    },
    "public_safe_acknowledgement": {
      "type": "boolean"
    }
  },
  "additionalProperties": true
}
