{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokolaku-id/json-schema/tokolaku-id-channel-schema.json",
  "title": "Channel",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokolaku-id-openapi.yml#/components/schemas/Channel",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "provider": {
      "type": "string",
      "enum": [
        "cloud_api",
        "instagram",
        "messenger"
      ]
    },
    "phone_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "inbound_mode": {
      "type": "string",
      "enum": [
        "bot",
        "webhook",
        "both"
      ]
    }
  },
  "required": [
    "id",
    "tenant_id",
    "provider",
    "phone_number",
    "inbound_mode"
  ]
}