{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-tts-key-state-schema.json",
  "title": "TtsKeyState",
  "description": "One provider's BYOK status for the calling user.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-billing-tts-api-openapi.yml#/components/schemas/TtsKeyState",
  "properties": {
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "has_key": {
      "type": "boolean",
      "title": "Has Key"
    },
    "masked_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Masked Key"
    },
    "last_uploaded_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Uploaded At"
    }
  },
  "type": "object",
  "required": [
    "provider",
    "label",
    "has_key"
  ]
}