{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dnsofmoney-com/json-schema/dnsofmoney-com-agent-authority-request-schema.json",
  "title": "AgentAuthorityRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dnsofmoney-com-admin-api-openapi.yml#/components/schemas/AgentAuthorityRequest",
  "properties": {
    "principal_alias": {
      "type": "string",
      "title": "Principal Alias",
      "description": "pay: alias the agent may act for"
    },
    "max_amount": {
      "type": "string",
      "title": "Max Amount",
      "description": "decimal string — max per-payment amount"
    },
    "currency": {
      "type": "string",
      "title": "Currency",
      "description": "e.g. XRP, RLUSD"
    },
    "allowed_payees": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Payees",
      "description": "optional destination allow-list"
    },
    "valid_until": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid Until",
      "description": "optional RFC3339 expiry"
    }
  },
  "type": "object",
  "required": [
    "principal_alias",
    "max_amount",
    "currency"
  ]
}