{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-list-response-connection-capability-schema.json",
  "title": "ListResponse_ConnectionCapability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-connections-api-openapi.yml#/components/schemas/ListResponse_ConnectionCapability",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/ConnectionTool"
          },
          {
            "$ref": "#/$defs/ConnectionPointer"
          }
        ]
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "url"
  ],
  "$defs": {
    "ConnectionPointer": {
      "type": "object",
      "description": "A connection operated via its native typed endpoints rather than the generic execute surface.",
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "connection_pointer"
          ]
        },
        "transport_hint": {
          "type": "string",
          "enum": [
            "native"
          ]
        },
        "endpoints": {
          "type": "string",
          "description": "Native API path prefix, e.g. /v1/socials"
        }
      },
      "required": [
        "object",
        "endpoints"
      ]
    },
    "ConnectionTool": {
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "connection_tool"
          ]
        },
        "name": {
          "type": "string",
          "description": "Tool name passed as `tool` to /execute"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "policy": {
          "type": "string",
          "description": "Effective approval policy",
          "enum": [
            "off",
            "always_ask",
            "always_allow"
          ]
        },
        "default_policy": {
          "type": "string",
          "enum": [
            "off",
            "always_ask",
            "always_allow"
          ]
        }
      },
      "required": [
        "object",
        "name",
        "label",
        "policy",
        "default_policy"
      ]
    }
  }
}