{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-capability-binding-response-schema.json",
  "title": "CapabilityBindingResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-capability-plane-api-openapi.yml#/components/schemas/CapabilityBindingResponse",
  "properties": {
    "binding_id": {
      "type": "string",
      "title": "Binding Id"
    },
    "provider_id": {
      "type": "string",
      "title": "Provider Id"
    },
    "profile_id": {
      "type": "string",
      "title": "Profile Id"
    },
    "binding_name": {
      "type": "string",
      "title": "Binding Name"
    },
    "scope": {
      "$ref": "#/$defs/BindingScope"
    },
    "scope_ref": {
      "type": "string",
      "title": "Scope Ref"
    },
    "status": {
      "$ref": "#/$defs/BindingStatus"
    },
    "execution_owner": {
      "$ref": "#/$defs/ExecutionOwner"
    },
    "config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Config"
    },
    "customer_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Metadata"
    },
    "system_managed": {
      "type": "boolean",
      "title": "System Managed"
    },
    "last_tested_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Tested At"
    },
    "last_discovered_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Discovered At"
    },
    "authorized_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Authorized At"
    },
    "quarantine_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quarantine Reason"
    },
    "discovery_error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discovery Error Message"
    },
    "test_error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Error Message"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "binding_id",
    "provider_id",
    "profile_id",
    "binding_name",
    "scope",
    "scope_ref",
    "status",
    "execution_owner",
    "system_managed",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "BindingScope": {
      "type": "string",
      "enum": [
        "user",
        "workspace",
        "organization"
      ],
      "title": "BindingScope"
    },
    "BindingStatus": {
      "type": "string",
      "enum": [
        "unconfigured",
        "authorizing",
        "ready",
        "degraded",
        "quarantined"
      ],
      "title": "BindingStatus"
    },
    "ExecutionOwner": {
      "type": "string",
      "enum": [
        "algenta_managed",
        "client_managed"
      ],
      "title": "ExecutionOwner"
    }
  }
}