{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/detectif-ai/json-schema/detectif-ai-speaker-object-schema.json",
  "title": "SpeakerObject",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/detectif-ai-api-openapi.json#/components/schemas/SpeakerObject",
  "properties": {
    "speaker_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "title": "Speaker Id"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "samples": {
      "type": "integer",
      "title": "Samples",
      "description": "Active enrollment samples for the current speaker model (max 5)."
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "request_id": {
      "type": "string",
      "title": "Request Id"
    },
    "object": {
      "type": "string",
      "const": "speaker",
      "title": "Object"
    }
  },
  "type": "object",
  "required": [
    "speaker_id",
    "display_name",
    "samples",
    "created_at",
    "updated_at",
    "request_id",
    "object"
  ]
}