{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infrapulse-ai/json-schema/infrapulse-ai-establish-connection-request-schema.json",
  "title": "EstablishConnectionRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infrapulse-ai-openapi.json#/components/schemas/EstablishConnectionRequest",
  "properties": {
    "client_name": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1,
      "title": "Client Name"
    },
    "client_kind": {
      "type": "string",
      "maxLength": 80,
      "title": "Client Kind",
      "default": "ai_agent"
    },
    "owner_email": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 320
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Email"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "protocols": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Protocols"
    },
    "requested_scopes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Requested Scopes"
    },
    "callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Url"
    },
    "spend_policy": {
      "additionalProperties": true,
      "type": "object",
      "title": "Spend Policy"
    },
    "approval_policy": {
      "additionalProperties": true,
      "type": "object",
      "title": "Approval Policy"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "ttl_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ttl Seconds"
    },
    "issue_scoped_token": {
      "type": "boolean",
      "title": "Issue Scoped Token",
      "default": false
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key"
    }
  },
  "type": "object",
  "required": [
    "client_name"
  ]
}