{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debitmydata/json-schema/debitmydata-quote-request-schema.json",
  "title": "QuoteRequest",
  "description": "Request body, as in the directive's example request.",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/debitmydata-openapi.json#/components/schemas/QuoteRequest",
  "properties": {
    "display_name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "pattern": "^[^\\x00-\\x1f\\x7f]+$",
      "title": "Display Name",
      "description": "Name of the agent, e.g. TestAgent-01."
    },
    "participant_type": {
      "$ref": "#/$defs/ParticipantType",
      "description": "What kind of participant this is."
    },
    "controller_public_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256,
          "pattern": "^[a-z0-9-]{2,32}:[A-Za-z0-9+/=_.:-]{8,220}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Controller Public Key",
      "description": "The agent's public key, e.g. ed25519:z6Mk...: the DID-LLM's controller (with a wallet, or alone)."
    },
    "controller_wallet_address": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9:_.-]{8,128}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Controller Wallet Address",
      "description": "An EVM wallet that controls the DID-LLM: `0x...` or `eip155:8453:0x...`. Ordinary wallets and smart-contract wallets (such as Coinbase Smart Wallet) both work. Give a public key, a wallet, or both; each one given must prove control."
    },
    "controller_network": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^eip155:[1-9][0-9]{0,11}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Controller Network",
      "description": "The wallet's network, e.g. eip155:8453 for Base. Optional: by default, the network of the gateway's USDC payments."
    },
    "preferred_payment_option": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Preferred Payment Option",
      "description": "How the agent pays: an id from GET /v1/payment-options, such as dmd_pow_native (DMD, the DebitMyData coin) or x402_usdc_base (USDC through x402)."
    },
    "metadata": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ]
      },
      "type": "object",
      "title": "Metadata"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "display_name",
    "participant_type",
    "preferred_payment_option"
  ],
  "$defs": {
    "ParticipantType": {
      "type": "string",
      "enum": [
        "autonomous_agent",
        "ai_agent",
        "bot",
        "agenticbot",
        "claw",
        "digital_twin",
        "human",
        "organization",
        "approved_digital_entity"
      ],
      "title": "ParticipantType",
      "description": "Participants named in the directive."
    }
  }
}