{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.dev/2026-08-25/schemas/common/types/binding.json",
  "title": "Binding",
  "description": "Binds a credential or token to a specific capability resource. Prevents reuse across different resources.",
  "type": "object",
  "required": [
    "type",
    "id"
  ],
  "properties": {
    "type": {
      "$ref": "https://ucp.dev/2026-08-25/schemas/common/types/reverse_domain_name.json",
      "description": "The capability that owns the bound resource, for example dev.ucp.shopping.checkout. MUST be a capability name declared in the UCP namespace."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "Opaque identifier of the bound resource within the owning capability, for example a checkout identifier."
    }
  }
}