CumulusDocs
Open Studio
On this page

Preview a Retell import

Preview a Retell import without writing changes. The response reports diagnostics, the target agent and any draft changes the import would replace.

Operation ID: agents.import_inspect.

Request

POST /api/v1/agents/import/inspect

  • TypeScript SDK: client.agents.import_inspect (path arguments use path).
  • MCP tool: sdk_client_call with operationId: "agents.import_inspect" (path arguments use input.path). Legacy alias: agents_import_inspect. Connect to your authenticated /mcp endpoint with an API key for the same environment.
  • Minimum API key role: member.
  • Idempotency: No idempotency header required.

Read resource IDs from earlier responses and use a key for the same environment.

Request example

This compact Retell conversation-flow greets and ends. Replace tenant_id with the selected environment and choose a ready model and speech profile from models.list and voices.list. Inspect writes nothing; review its diagnostics and target before importing. An export declaring models also needs the model_bindings named by inspect.

Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Example values are synthetic.

cURL

curl
curl --fail-with-body -sS -X POST "${CUMULUS_BASE_URL%/}/api/v1/agents/import/inspect" \
  -H "Authorization: Bearer $CUMULUS_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "reference": {
    "tenant_id": "22222222-2222-4222-8222-222222222222",
    "kind": "agent",
    "id": "support-import"
  },
  "agent_version": 1,
  "flow": {
    "conversation_flow_id": "support-greeting",
    "version": 1,
    "start_node_id": "hello",
    "nodes": [
      {
        "id": "hello",
        "type": "conversation",
        "instruction": {
          "type": "static_text",
          "text": "Thanks for calling the service desk."
        },
        "always_edge": {
          "destination_node_id": "end",
          "transition_condition": {
            "type": "prompt",
            "prompt": "Always"
          }
        }
      },
      {
        "id": "end",
        "type": "end"
      }
    ]
  },
  "agent": {
    "agent_name": "Imported service desk",
    "version": 1,
    "webhook_url": null
  },
  "config": {
    "providers": {
      "llm": {
        "provider": "openai",
        "model": {
          "model_id": "gpt-5.4-mini",
          "provider": "openai",
          "tier": "frontier"
        }
      },
      "stt": {
        "provider": "elevenlabs",
        "model": "scribe_v2_realtime"
      },
      "tts": {
        "provider": "elevenlabs",
        "model": "eleven_flash_v2_5",
        "voiceId": "replace-with-catalog-voice-id"
      }
    },
    "recording": {
      "required": false,
      "channels": "dual"
    }
  },
  "model_bindings": {}
}'

TypeScript

typescript
import { Cumulus } from "@cumulus/sdk";

const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });

const response = await client.agents.import_inspect({
  "body": {
    "reference": {
      "tenant_id": "22222222-2222-4222-8222-222222222222",
      "kind": "agent",
      "id": "support-import"
    },
    "agent_version": 1,
    "flow": {
      "conversation_flow_id": "support-greeting",
      "version": 1,
      "start_node_id": "hello",
      "nodes": [
        {
          "id": "hello",
          "type": "conversation",
          "instruction": {
            "type": "static_text",
            "text": "Thanks for calling the service desk."
          },
          "always_edge": {
            "destination_node_id": "end",
            "transition_condition": {
              "type": "prompt",
              "prompt": "Always"
            }
          }
        },
        {
          "id": "end",
          "type": "end"
        }
      ]
    },
    "agent": {
      "agent_name": "Imported service desk",
      "version": 1,
      "webhook_url": null
    },
    "config": {
      "providers": {
        "llm": {
          "provider": "openai",
          "model": {
            "model_id": "gpt-5.4-mini",
            "provider": "openai",
            "tier": "frontier"
          }
        },
        "stt": {
          "provider": "elevenlabs",
          "model": "scribe_v2_realtime"
        },
        "tts": {
          "provider": "elevenlabs",
          "model": "eleven_flash_v2_5",
          "voiceId": "replace-with-catalog-voice-id"
        }
      },
      "recording": {
        "required": false,
        "channels": "dual"
      }
    },
    "model_bindings": {}
  }
});

Integration notes

Send the same body you would use for agents_import, without an idempotency key. This operation writes nothing.

Use the diagnostics to resolve import issues. Each model_binding_required diagnostic names a path to supply in model_bindings. The response also reports whether the import would create an agent, open or replace a draft, or discard unpublished changes.

Input schema

Path, query and header parameters

No path or query parameters.

JSON request body

FieldType or valuesRequiredDescription and limits
referenceobjectRequired—
reference.tenant_idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
reference.kind"agent"Required—
reference.idstringRequiredminLength: 1. maxLength: 512.
agent_versionintegerRequiredAt least 0. At most 2147483647.
flowobjectRequired—
flow.*any JSON valueOptionalAdditional keys are allowed.
agentobjectRequired—
agent.*any JSON valueOptionalAdditional keys are allowed.
configobjectRequired—
config.providersobjectRequired—
config.providers.sttobjectRequired—
config.providers.stt.providerstringRequiredminLength: 1. maxLength: 256.
config.providers.stt.modelstringRequiredminLength: 1. maxLength: 256.
config.providers.stt.credentialobjectOptional—
config.providers.stt.credential.idstringRequiredminLength: 1. maxLength: 256.
config.providers.stt.credential.versionstringRequiredminLength: 1. maxLength: 256.
config.providers.stt.endpointstring (uri)Optional—
config.providers.stt.voiceIdstringOptionalminLength: 1. maxLength: 256.
config.providers.llmobjectRequired—
config.providers.llm.modelobjectRequired—
config.providers.llm.model.model_idstringRequiredminLength: 1. pattern: \S.
config.providers.llm.model.providerstringRequiredminLength: 1. pattern: \S.
config.providers.llm.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
config.providers.llm.credentialobjectOptional—
config.providers.llm.credential.idstringRequiredminLength: 1. maxLength: 256.
config.providers.llm.credential.versionstringRequiredminLength: 1. maxLength: 256.
config.providers.llm.credential.providerstringRequiredminLength: 1. maxLength: 256.
config.providers.llm.provider"openai" · "simulated_openai" · "self_hosted" · "simulated_self_hosted"Required—
config.providers.llm.endpointstring (uri)Optional—
config.providers.ttsobjectRequired—
config.providers.tts.providerstringRequiredminLength: 1. maxLength: 256.
config.providers.tts.modelstringRequiredminLength: 1. maxLength: 256.
config.providers.tts.credentialobjectOptional—
config.providers.tts.credential.idstringRequiredminLength: 1. maxLength: 256.
config.providers.tts.credential.versionstringRequiredminLength: 1. maxLength: 256.
config.providers.tts.endpointstring (uri)Optional—
config.providers.tts.voiceIdstringOptionalminLength: 1. maxLength: 256.
config.telephonyobjectOptional—
config.telephony.trunkIdstringRequiredminLength: 1. maxLength: 256.
config.telephony.fromstringOptionalpattern: ^+[1-9][0-9]{6,14}$.
config.recordingobjectRequired—
config.recording.requiredbooleanRequired—
config.recording.channels"dual"Required—
config.webhookobjectOptional—
config.webhook.urlstring (uri)Required—
config.webhook.secretRefstringRequiredminLength: 1. maxLength: 256.
model_bindingsobjectRequired—
model_bindings.*objectOptionalAdditional keys are allowed.
replace_draftobjectOptional—
replace_draft.draft_idstring (uuid)RequiredIdentifier of the editable draft. Read it from the agent or draft response. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
replace_draft.expected_revisionintegerRequiredRevision you last read. A stale revision is refused so another edit is not overwritten. Greater than 0. At most 2147483647.
allow_blockedbooleanOptional—
require_paritybooleanOptional—
Complete OpenAPI schema
OpenAPI JSON
{
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/AgentsImportRequest"
        }
      }
    }
  }
}

Responses

HTTP 200

Compile a Retell export and say what agents.import would do (new agent, new or replaced draft, unpublished changes it would discard) without importing it

application/json

FieldType or valuesRequiredDescription and limits
okbooleanRequired—
versionintegerRequiredAt least 0. At most 2147483647.
digeststring or nullRequiredpattern: ^sha256:[a-f0-9]{64}$.
diagnosticsarray of objectRequired—
diagnostics[].codestringRequiredminLength: 1. maxLength: 128.
diagnostics[].pathstringRequiredmaxLength: 1024.
diagnostics[].messagestringRequiredmaxLength: 4096.
diagnostics[].severity"warning" · "error"Required—
diagnostics[].fixesarray of objectOptionalmaxItems: 8.
diagnostics[].fixes[].idstringRequiredminLength: 1. maxLength: 64.
diagnostics[].fixes[].labelstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].editsarray of objectRequiredminItems: 1. maxItems: 100.
diagnostics[].fixes[].edits[] · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.name"Required—
diagnostics[].fixes[].edits[].namestringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[] · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.settings"Required—
diagnostics[].fixes[].edits[].valuesobjectRequired—
diagnostics[].fixes[].edits[].values.voiceIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.voiceModelstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.voiceSpeednumberOptionalAt least 0.5. At most 2.
diagnostics[].fixes[].edits[].values.voiceTemperaturenumberOptionalAt least 0. At most 2.
diagnostics[].fixes[].edits[].values.volumenumberOptionalAt least 0. At most 2.
diagnostics[].fixes[].edits[].values.languagestring or array of stringOptional—
diagnostics[].fixes[].edits[].values.language · variant 1string—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.language · variant 2array of string—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.responsivenessnumberOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].values.interruptionSensitivitynumberOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].values.enableBackchannelbooleanOptional—
diagnostics[].fixes[].edits[].values.backchannelFrequencynumberOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].values.backchannelWordsarray of stringOptional—
diagnostics[].fixes[].edits[].values.reminderTriggerMsintegerOptionalAt least 0. At most 3600000.
diagnostics[].fixes[].edits[].values.reminderMaxCountintegerOptionalAt least 0. At most 100.
diagnostics[].fixes[].edits[].values.maxCallDurationMsintegerOptionalAt least 1000. At most 86400000.
diagnostics[].fixes[].edits[].values.endCallAfterSilenceMsintegerOptionalAt least 1000. At most 3600000.
diagnostics[].fixes[].edits[].values.ringDurationMsintegerOptionalAt least 1000. At most 300000.
diagnostics[].fixes[].edits[].values.beginMessageDelayMsintegerOptionalAt least 0. At most 60000.
diagnostics[].fixes[].edits[].values.normalizeForSpeechbooleanOptional—
diagnostics[].fixes[].edits[].values.openerWaitsForCalleebooleanOptional—
diagnostics[].fixes[].edits[].values.voicemailobjectOptional—
diagnostics[].fixes[].edits[].values.voicemail.enabledbooleanRequired—
diagnostics[].fixes[].edits[].values.voicemail.detectionTimeoutMsintegerOptionalGreater than 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].values.voicemail.action"hangup" · "leave_message"Optional—
diagnostics[].fixes[].edits[].values.voicemail.messageobjectOptional—
diagnostics[].fixes[].edits[].values.voicemail.message.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].values.voicemail.message.textstringRequired—
diagnostics[].fixes[].edits[].values.ambientSoundstringOptional—
diagnostics[].fixes[].edits[].values.ambientSoundVolumenumberOptionalAt least 0. At most 2.
diagnostics[].fixes[].edits[].values.boostedKeywordsarray of stringOptional—
diagnostics[].fixes[].edits[].values.pronunciationDictionaryarray of objectOptional—
diagnostics[].fixes[].edits[].values.pronunciationDictionary[].wordstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.pronunciationDictionary[].alphabet"ipa" · "cmu"Required—
diagnostics[].fixes[].edits[].values.pronunciationDictionary[].phonemestringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.denoisingModestringOptional—
diagnostics[].fixes[].edits[].values.sttModestringOptional—
diagnostics[].fixes[].edits[].values.allowUserDtmfbooleanOptional—
diagnostics[].fixes[].edits[].values.allowDtmfInterruptionbooleanOptional—
diagnostics[].fixes[].edits[].values.userDtmfOptionsobject or nullOptional—
diagnostics[].fixes[].edits[].values.userDtmfOptions.digitLimitinteger or nullOptionalGreater than 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].values.userDtmfOptions.terminationKey"0" · "1" · "2" · "3" · "4" · "5" · "6" · "7" · "8" · "9" · "*" · "#" or nullOptional—
diagnostics[].fixes[].edits[].values.userDtmfOptions.timeoutMsintegerOptionalGreater than 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].values.dataStorageSetting"everything" · "everything_except_pii" · "basic_attributes_only"Optional—
diagnostics[].fixes[].edits[].values.optInSignedUrlbooleanOptional—
diagnostics[].fixes[].edits[].values.piiConfigobjectOptional—
diagnostics[].fixes[].edits[].values.piiConfig.mode"post_call"Required—
diagnostics[].fixes[].edits[].values.piiConfig.categoriesarray of "person_name" · "address" · "email" · "phone_number" · "ssn" · "passport" · "driver_license" · "credit_card" · "bank_account" · "password" · "pin" · "medical_id" · "date_of_birth" · "customer_account_number"Required—
diagnostics[].fixes[].edits[].values.handbookConfigobjectOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.defaultPersonalitybooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.conversationalPersonalitybooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.naturalFillerWordsbooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.highEmpathybooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.echoVerificationbooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.natoPhoneticAlphabetbooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.speechNormalizationbooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.smartMatchingbooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.aiDisclosurebooleanOptional—
diagnostics[].fixes[].edits[].values.handbookConfig.scopeBoundariesbooleanOptional—
diagnostics[].fixes[].edits[].values.ivrobjectOptional—
diagnostics[].fixes[].edits[].values.ivr · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.ivr.enabledfalseRequired—
diagnostics[].fixes[].edits[].values.ivr · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.ivr.enabledtrueRequired—
diagnostics[].fixes[].edits[].values.ivr.action"hangup"Required—
diagnostics[].fixes[].edits[].values.ivr.detectionWindowMs180000Required—
diagnostics[].fixes[].edits[].values.ivr.detectionPromptstring or nullOptional—
diagnostics[].fixes[].edits[].values.screenerobjectOptional—
diagnostics[].fixes[].edits[].values.screener · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.screener.action"hangup"Required—
diagnostics[].fixes[].edits[].values.screener · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.screener.action"wait"Required—
diagnostics[].fixes[].edits[].values.screener.waitMsintegerOptionalAt least 5000. At most 120000.
diagnostics[].fixes[].edits[].values.screener · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.screener.action"play_line"Required—
diagnostics[].fixes[].edits[].values.screener.waitMsintegerOptionalAt least 5000. At most 120000.
diagnostics[].fixes[].edits[].values.screener.lineobjectRequired—
diagnostics[].fixes[].edits[].values.screener.line.enstringOptionalminLength: 1. maxLength: 500.
diagnostics[].fixes[].edits[].values.screener.line.esstringOptionalminLength: 1. maxLength: 500.
diagnostics[].fixes[].edits[].values.screener · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].values.screener.action"treat_as_human"Required—
diagnostics[].fixes[].edits[].values.postCallAnalysisModelobjectOptional—
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.modelobjectRequired—
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.model.model_idstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.model.providerstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.credentialobjectOptional—
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.credential.idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.credential.versionstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.postCallAnalysisModel.credential.providerstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].values.complianceobjectOptional—
diagnostics[].fixes[].edits[].values.compliance.profile"fdcpa"Optional—
diagnostics[].fixes[].edits[].cleararray of "voiceId" · "voiceModel" · "voiceSpeed" · "voiceTemperature" · "volume" · "language" · "responsiveness" · "interruptionSensitivity" · "enableBackchannel" · "backchannelFrequency" · "backchannelWords" · "reminderTriggerMs" · "reminderMaxCount" · "maxCallDurationMs" · "endCallAfterSilenceMs" · "ringDurationMs" · "beginMessageDelayMs" · "normalizeForSpeech" · "openerWaitsForCallee" · "voicemail" · "ambientSound" · "ambientSoundVolume" · "boostedKeywords" · "pronunciationDictionary" · "denoisingMode" · "sttMode" · "allowUserDtmf" · "allowDtmfInterruption" · "userDtmfOptions" · "dataStorageSetting" · "optInSignedUrl" · "piiConfig" · "handbookConfig" · "ivr" · "screener" · "postCallAnalysisModel" · "compliance"Required—
diagnostics[].fixes[].edits[] · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.analysis"Required—
diagnostics[].fixes[].edits[].fieldsarray of objectRequired—
diagnostics[].fixes[].edits[].fields[].namestringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].fields[].type"string" · "number" · "boolean" · "enum"Required—
diagnostics[].fixes[].edits[].fields[].descriptionstringRequired—
diagnostics[].fixes[].edits[].fields[].choicesarray of stringOptional—
diagnostics[].fixes[].edits[].fields[].examplesarray of stringOptional—
diagnostics[].fixes[].edits[] · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.provider"Required—
diagnostics[].fixes[].edits[].role"stt" · "llm" · "tts"Required—
diagnostics[].fixes[].edits[].changesobjectRequired—
diagnostics[].fixes[].edits[].changes · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.providerstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.voiceIdstring or nullOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.endpointstring (uri) or nullOptional—
diagnostics[].fixes[].edits[].changes.credentialobject or nullOptional—
diagnostics[].fixes[].edits[].changes.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].changes.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].changes · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.modelobjectOptional—
diagnostics[].fixes[].edits[].changes.model · combined section 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.model.model_idstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.model.providerstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
diagnostics[].fixes[].edits[].changes.credentialobject or nullOptional—
diagnostics[].fixes[].edits[].changes.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.credential.providerstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.provider"openai" · "simulated_openai" · "self_hosted" · "simulated_self_hosted"Optional—
diagnostics[].fixes[].edits[].changes.endpointstring (uri) or nullOptional—
diagnostics[].fixes[].edits[] · variant 5object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.telephony"Required—
diagnostics[].fixes[].edits[].valueobjectRequired—
diagnostics[].fixes[].edits[].value.trunkIdstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].value.fromstringOptionalpattern: ^+[1-9][0-9]{6,14}$.
diagnostics[].fixes[].edits[] · variant 6object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"agent.recording"Required—
diagnostics[].fixes[].edits[].valueobjectRequired—
diagnostics[].fixes[].edits[].value.requiredbooleanRequired—
diagnostics[].fixes[].edits[].value.channels"dual"Required—
diagnostics[].fixes[].edits[] · variant 7object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"phone.inbound_context"Required—
diagnostics[].fixes[].edits[].valueobject or nullRequired—
diagnostics[].fixes[].edits[].value.action_idstringRequired in a non-null parentpattern: ^[a-z][a-z0-9_]{0,62}$.
diagnostics[].fixes[].edits[].value.variablesarray of stringRequired in a non-null parentminItems: 1. maxItems: 256.
diagnostics[].fixes[].edits[] · variant 8object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"flow.prompt"Required—
diagnostics[].fixes[].edits[].textstringRequired—
diagnostics[].fixes[].edits[] · variant 9object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.name"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].namestring or nullRequired—
diagnostics[].fixes[].edits[] · variant 10object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.instruction"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].instructionobject or nullRequired—
diagnostics[].fixes[].edits[].instruction.type"prompt" · "static_text"Required in a non-null parent—
diagnostics[].fixes[].edits[].instruction.textstringRequired in a non-null parent—
diagnostics[].fixes[].edits[] · variant 11object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.transitions"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].edgesarray of objectRequired—
diagnostics[].fixes[].edits[].edges[].idstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].edges[].destinationNodeIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
diagnostics[].fixes[].edits[].edges[].conditionobjectRequired—
diagnostics[].fixes[].edits[].edges[].condition · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].edges[].condition.type"always"Required—
diagnostics[].fixes[].edits[].edges[].condition · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].edges[].condition.type"conversation_language"Required—
diagnostics[].fixes[].edits[].edges[].condition.language"en" · "es"Required—
diagnostics[].fixes[].edits[].edges[].condition · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].edges[].condition.type"prompt"Required—
diagnostics[].fixes[].edits[].edges[].condition.promptstringRequired—
diagnostics[].fixes[].edits[].edges[].condition · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].edges[].condition.type"equation"Required—
diagnostics[].fixes[].edits[].edges[].condition.operator"&&" · "||"Required—
diagnostics[].fixes[].edits[].edges[].condition.equationsarray of objectRequiredminItems: 1.
diagnostics[].fixes[].edits[].edges[].condition.equations[].leftstringRequired—
diagnostics[].fixes[].edits[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
diagnostics[].fixes[].edits[].edges[].condition.equations[].rightstringRequired—
diagnostics[].fixes[].edits[].edges[].complianceobjectOptional—
diagnostics[].fixes[].edits[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
diagnostics[].fixes[].edits[] · variant 12object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.configure"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changesobjectRequired—
diagnostics[].fixes[].edits[].changes.namestring or nullOptional—
diagnostics[].fixes[].edits[].changes.instructionobject or nullOptional—
diagnostics[].fixes[].edits[].changes.instruction.type"prompt" · "static_text"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.instruction.textstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.startSpeaker"agent" · "user" or nullOptional—
diagnostics[].fixes[].edits[].changes.interruptionSensitivitynumber or nullOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].changes.voiceSpeednumber or nullOptionalAt least 0.5. At most 2.
diagnostics[].fixes[].edits[].changes.languageLockedboolean or nullOptional—
diagnostics[].fixes[].edits[].changes.globalNodeSettingobject or nullOptional—
diagnostics[].fixes[].edits[].changes.globalNodeSetting.conditionstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.globalNodeSetting.coolDownnumberOptionalAt least 0.
diagnostics[].fixes[].edits[].changes.toolIdstring or nullOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.waitForResultboolean or nullOptional—
diagnostics[].fixes[].edits[].changes.speakDuringExecutionboolean or nullOptional—
diagnostics[].fixes[].edits[].changes.executionMessageobject or nullOptional—
diagnostics[].fixes[].edits[].changes.executionMessage.type"prompt" · "static_text"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.executionMessage.textstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transferobject or nullOptional—
diagnostics[].fixes[].edits[].changes.transfer.destinationobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.destination · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.transfer.destination.type"predefined"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.destination.numberstringRequired in a non-null parentmaxLength: 256.
diagnostics[].fixes[].edits[].changes.transfer.destination · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.transfer.destination.type"inferred"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.destination.promptstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.optionobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.type"cold_transfer" · "warm_transfer"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.showTransfereeAsCallerbooleanOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.optOutHumanDetectionbooleanOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.enableBridgeAudioCuebooleanOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.onHoldMusicstringOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.agentDetectionTimeoutMsintegerOptionalAt least 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].changes.transfer.option.agentDetectionPromptstringOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.transferMessageobjectOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.transferMessage.type"prompt" · "static_text"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.transferMessage.textstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.privateHandoffMessageobjectOptional—
diagnostics[].fixes[].edits[].changes.transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.privateHandoffMessage.textstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.transfer.option.coldTransferModestringOptional—
diagnostics[].fixes[].edits[].changes.transfer.ignoreE164ValidationbooleanRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.variablesarray of object or nullOptional—
diagnostics[].fixes[].edits[].changes.variables[].namestringRequired in a non-null parentmaxLength: 256.
diagnostics[].fixes[].edits[].changes.variables[].type"string" · "number" · "boolean" · "enum"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.variables[].descriptionstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.variables[].choicesarray of stringOptional—
diagnostics[].fixes[].edits[].changes.modelChoiceobject or nullOptional—
diagnostics[].fixes[].edits[].changes.modelChoice.modelobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.model.model_idstringRequired in a non-null parentminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.modelChoice.model.providerstringRequired in a non-null parentminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.credentialobjectOptional—
diagnostics[].fixes[].edits[].changes.modelChoice.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.credential.providerstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.type"cascading"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.highPrioritybooleanRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
diagnostics[].fixes[].edits[].changes.componentIdstring or nullOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.verificationobject or nullOptional—
diagnostics[].fixes[].edits[].changes.verification.subjectVariablestringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.fieldsarray of objectRequired in a non-null parentmaxItems: 8.
diagnostics[].fixes[].edits[].changes.verification.fields[].idstringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].changes.verification.fields[].expectedVariablestringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
diagnostics[].fixes[].edits[].changes.verification.fields[].enabledVariablestringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.fields[].formatobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.fields[].format · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.verification.fields[].format.kind"digits"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.fields[].format.lengthintegerRequired in a non-null parentAt least 1. At most 32.
diagnostics[].fixes[].edits[].changes.verification.fields[].format · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.verification.fields[].format.kind"date_yyyymmdd"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.fields[].promptobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.fields[].prompt.enstringRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.fields[].prompt.esstringOptional—
diagnostics[].fixes[].edits[].changes.verification.requiredobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.required · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.verification.required.kind"fixed"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.required.countintegerRequired in a non-null parentAt least 1. At most 8.
diagnostics[].fixes[].edits[].changes.verification.required · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.verification.required.kind"variable"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.verification.required.namestringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.timeoutMsintegerRequired in a non-null parentAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].changes.verification.lookupobjectOptional—
diagnostics[].fixes[].edits[].changes.verification.lookup.toolIdstringRequired in a non-null parentminLength: 1.
diagnostics[].fixes[].edits[].changes.verification.lookup.fieldIdstringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].changes.verification.lookup.parameterstringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.lookup.argumentsarray of objectRequired in a non-null parentmaxItems: 64.
diagnostics[].fixes[].edits[].changes.verification.lookup.arguments[].parameterstringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.verification.lookup.arguments[].variablestringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.tokenizationobject or nullOptional—
diagnostics[].fixes[].edits[].changes.tokenization.toolIdstringRequired in a non-null parentmaxLength: 256.
diagnostics[].fixes[].edits[].changes.tokenization.subjectVariablestringRequired in a non-null parentpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.tokenization.consentPromptobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.consentPrompt.enstringRequired in a non-null parentmaxLength: 4096.
diagnostics[].fixes[].edits[].changes.tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].changes.tokenization.timeoutMsintegerRequired in a non-null parentAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].changes.tokenization.fieldsarray of objectRequired in a non-null parentmaxItems: 7.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].idstringRequired in a non-null parentpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].parameterstringRequired in a non-null parentmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].minDigitsintegerRequired in a non-null parentAt least 1. At most 32.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].maxDigitsintegerRequired in a non-null parentAt least 1. At most 32.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].encoding"string" · "integer"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].promptobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.fields[].prompt.enstringRequired in a non-null parentmaxLength: 4096.
diagnostics[].fixes[].edits[].changes.tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].changes.tokenization.argumentsarray of objectRequired in a non-null parentmaxItems: 64.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].parameterstringRequired in a non-null parentmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].sourceobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.kind"variable"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.namestringRequired in a non-null parentpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.kind"constant"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.valuestring or number or boolean or nullRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
diagnostics[].fixes[].edits[].changes.tokenization.tokenIdPathstringRequired in a non-null parentmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].changes.tokenization.tokenVariablestringRequired in a non-null parentpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.tokenization.last4VariablestringRequired in a non-null parentpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].changes.tokenization.last4FieldstringRequired in a non-null parentmaxLength: 64.
diagnostics[].fixes[].edits[] · variant 13object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.create"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].nodeobjectRequired—
diagnostics[].fixes[].edits[].node.idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.kind"conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component"Required—
diagnostics[].fixes[].edits[].node.edgesarray of objectRequired—
diagnostics[].fixes[].edits[].node.edges[].idstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.edges[].destinationNodeIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
diagnostics[].fixes[].edits[].node.edges[].conditionobjectRequired—
diagnostics[].fixes[].edits[].node.edges[].condition · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.edges[].condition.type"always"Required—
diagnostics[].fixes[].edits[].node.edges[].condition · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.edges[].condition.type"conversation_language"Required—
diagnostics[].fixes[].edits[].node.edges[].condition.language"en" · "es"Required—
diagnostics[].fixes[].edits[].node.edges[].condition · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.edges[].condition.type"prompt"Required—
diagnostics[].fixes[].edits[].node.edges[].condition.promptstringRequired—
diagnostics[].fixes[].edits[].node.edges[].condition · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.edges[].condition.type"equation"Required—
diagnostics[].fixes[].edits[].node.edges[].condition.operator"&&" · "||"Required—
diagnostics[].fixes[].edits[].node.edges[].condition.equationsarray of objectRequiredminItems: 1.
diagnostics[].fixes[].edits[].node.edges[].condition.equations[].leftstringRequired—
diagnostics[].fixes[].edits[].node.edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
diagnostics[].fixes[].edits[].node.edges[].condition.equations[].rightstringRequired—
diagnostics[].fixes[].edits[].node.edges[].complianceobjectOptional—
diagnostics[].fixes[].edits[].node.edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
diagnostics[].fixes[].edits[].node.namestringOptional—
diagnostics[].fixes[].edits[].node.instructionobjectOptional—
diagnostics[].fixes[].edits[].node.instruction.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].node.instruction.textstringRequired—
diagnostics[].fixes[].edits[].node.startSpeaker"agent" · "user"Optional—
diagnostics[].fixes[].edits[].node.interruptionSensitivitynumberOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].node.voiceSpeednumberOptionalAt least 0.5. At most 2.
diagnostics[].fixes[].edits[].node.languageLockedbooleanOptional—
diagnostics[].fixes[].edits[].node.globalNodeSettingobjectOptional—
diagnostics[].fixes[].edits[].node.globalNodeSetting.conditionstringRequired—
diagnostics[].fixes[].edits[].node.globalNodeSetting.coolDownnumberOptionalAt least 0.
diagnostics[].fixes[].edits[].node.toolIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.waitForResultbooleanOptional—
diagnostics[].fixes[].edits[].node.speakDuringExecutionbooleanOptional—
diagnostics[].fixes[].edits[].node.executionMessageobjectOptional—
diagnostics[].fixes[].edits[].node.executionMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].node.executionMessage.textstringRequired—
diagnostics[].fixes[].edits[].node.transferobjectOptional—
diagnostics[].fixes[].edits[].node.transfer.destinationobjectRequired—
diagnostics[].fixes[].edits[].node.transfer.destination · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.transfer.destination.type"predefined"Required—
diagnostics[].fixes[].edits[].node.transfer.destination.numberstringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].node.transfer.destination · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.transfer.destination.type"inferred"Required—
diagnostics[].fixes[].edits[].node.transfer.destination.promptstringRequired—
diagnostics[].fixes[].edits[].node.transfer.optionobjectRequired—
diagnostics[].fixes[].edits[].node.transfer.option.type"cold_transfer" · "warm_transfer"Required—
diagnostics[].fixes[].edits[].node.transfer.option.showTransfereeAsCallerbooleanOptional—
diagnostics[].fixes[].edits[].node.transfer.option.optOutHumanDetectionbooleanOptional—
diagnostics[].fixes[].edits[].node.transfer.option.enableBridgeAudioCuebooleanOptional—
diagnostics[].fixes[].edits[].node.transfer.option.onHoldMusicstringOptional—
diagnostics[].fixes[].edits[].node.transfer.option.agentDetectionTimeoutMsintegerOptionalAt least 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].node.transfer.option.agentDetectionPromptstringOptional—
diagnostics[].fixes[].edits[].node.transfer.option.transferMessageobjectOptional—
diagnostics[].fixes[].edits[].node.transfer.option.transferMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].node.transfer.option.transferMessage.textstringRequired—
diagnostics[].fixes[].edits[].node.transfer.option.privateHandoffMessageobjectOptional—
diagnostics[].fixes[].edits[].node.transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].node.transfer.option.privateHandoffMessage.textstringRequired—
diagnostics[].fixes[].edits[].node.transfer.option.coldTransferModestringOptional—
diagnostics[].fixes[].edits[].node.transfer.ignoreE164ValidationbooleanRequired—
diagnostics[].fixes[].edits[].node.variablesarray of objectOptional—
diagnostics[].fixes[].edits[].node.variables[].namestringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].node.variables[].type"string" · "number" · "boolean" · "enum"Required—
diagnostics[].fixes[].edits[].node.variables[].descriptionstringRequired—
diagnostics[].fixes[].edits[].node.variables[].choicesarray of stringOptional—
diagnostics[].fixes[].edits[].node.modelChoiceobjectOptional—
diagnostics[].fixes[].edits[].node.modelChoice.modelobjectRequired—
diagnostics[].fixes[].edits[].node.modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].node.modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].node.modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
diagnostics[].fixes[].edits[].node.modelChoice.credentialobjectOptional—
diagnostics[].fixes[].edits[].node.modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.modelChoice.type"cascading"Required—
diagnostics[].fixes[].edits[].node.modelChoice.highPrioritybooleanRequired—
diagnostics[].fixes[].edits[].node.modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
diagnostics[].fixes[].edits[].node.componentIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node.verificationobjectOptional—
diagnostics[].fixes[].edits[].node.verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.fieldsarray of objectRequiredmaxItems: 8.
diagnostics[].fixes[].edits[].node.verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].node.verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
diagnostics[].fixes[].edits[].node.verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.fields[].formatobjectRequired—
diagnostics[].fixes[].edits[].node.verification.fields[].format · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.verification.fields[].format.kind"digits"Required—
diagnostics[].fixes[].edits[].node.verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].node.verification.fields[].format · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.verification.fields[].format.kind"date_yyyymmdd"Required—
diagnostics[].fixes[].edits[].node.verification.fields[].promptobjectRequired—
diagnostics[].fixes[].edits[].node.verification.fields[].prompt.enstringRequired—
diagnostics[].fixes[].edits[].node.verification.fields[].prompt.esstringOptional—
diagnostics[].fixes[].edits[].node.verification.requiredobjectRequired—
diagnostics[].fixes[].edits[].node.verification.required · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.verification.required.kind"fixed"Required—
diagnostics[].fixes[].edits[].node.verification.required.countintegerRequiredAt least 1. At most 8.
diagnostics[].fixes[].edits[].node.verification.required · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.verification.required.kind"variable"Required—
diagnostics[].fixes[].edits[].node.verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].node.verification.lookupobjectOptional—
diagnostics[].fixes[].edits[].node.verification.lookup.toolIdstringRequiredminLength: 1.
diagnostics[].fixes[].edits[].node.verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].node.verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
diagnostics[].fixes[].edits[].node.verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.tokenizationobjectOptional—
diagnostics[].fixes[].edits[].node.tokenization.toolIdstringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].node.tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.tokenization.consentPromptobjectRequired—
diagnostics[].fixes[].edits[].node.tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
diagnostics[].fixes[].edits[].node.tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].node.tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].node.tokenization.fieldsarray of objectRequiredmaxItems: 7.
diagnostics[].fixes[].edits[].node.tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].node.tokenization.fields[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].node.tokenization.fields[].minDigitsintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].node.tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].node.tokenization.fields[].encoding"string" · "integer"Required—
diagnostics[].fixes[].edits[].node.tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].node.tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].node.tokenization.fields[].promptobjectRequired—
diagnostics[].fixes[].edits[].node.tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
diagnostics[].fixes[].edits[].node.tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].node.tokenization.argumentsarray of objectRequiredmaxItems: 64.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].sourceobjectRequired—
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.kind"variable"Required—
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.kind"constant"Required—
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
diagnostics[].fixes[].edits[].node.tokenization.tokenIdPathstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].node.tokenization.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].node.tokenization.last4FieldstringRequiredmaxLength: 64.
diagnostics[].fixes[].edits[] · variant 14object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"node.remove"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[] · variant 15object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"flow.configure"Required—
diagnostics[].fixes[].edits[].changesobjectRequired—
diagnostics[].fixes[].edits[].changes.startNodeIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.startSpeaker"agent" · "user"Optional—
diagnostics[].fixes[].edits[].changes.globalPromptstringOptional—
diagnostics[].fixes[].edits[].changes.defaultDynamicVariablesobjectOptional—
diagnostics[].fixes[].edits[].changes.defaultDynamicVariables.*stringOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].changes.callContextVariablesarray of stringOptional—
diagnostics[].fixes[].edits[].changes.modelChoiceobject or nullOptional—
diagnostics[].fixes[].edits[].changes.modelChoice.modelobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.model.model_idstringRequired in a non-null parentminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.modelChoice.model.providerstringRequired in a non-null parentminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].changes.modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.credentialobjectOptional—
diagnostics[].fixes[].edits[].changes.modelChoice.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.credential.providerstringRequired in a non-null parentminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].changes.modelChoice.type"cascading"Required in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.highPrioritybooleanRequired in a non-null parent—
diagnostics[].fixes[].edits[].changes.modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
diagnostics[].fixes[].edits[].changes.toolCallStrictModebooleanOptional—
diagnostics[].fixes[].edits[] · variant 16object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"component.create"Required—
diagnostics[].fixes[].edits[].componentobjectRequired—
diagnostics[].fixes[].edits[].component.idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.startNodeIdstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodesarray of objectRequiredminItems: 1.
diagnostics[].fixes[].edits[].component.nodes[].idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].kind"conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component"Required—
diagnostics[].fixes[].edits[].component.nodes[].edgesarray of objectRequired—
diagnostics[].fixes[].edits[].component.nodes[].edges[].idstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].edges[].destinationNodeIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].conditionobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.type"always"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.type"conversation_language"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.language"en" · "es"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.type"prompt"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.promptstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.type"equation"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.operator"&&" · "||"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.equationsarray of objectRequiredminItems: 1.
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.equations[].leftstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
diagnostics[].fixes[].edits[].component.nodes[].edges[].condition.equations[].rightstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].edges[].complianceobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
diagnostics[].fixes[].edits[].component.nodes[].namestringOptional—
diagnostics[].fixes[].edits[].component.nodes[].instructionobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].instruction.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].component.nodes[].instruction.textstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].startSpeaker"agent" · "user"Optional—
diagnostics[].fixes[].edits[].component.nodes[].interruptionSensitivitynumberOptionalAt least 0. At most 1.
diagnostics[].fixes[].edits[].component.nodes[].voiceSpeednumberOptionalAt least 0.5. At most 2.
diagnostics[].fixes[].edits[].component.nodes[].languageLockedbooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].globalNodeSettingobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].globalNodeSetting.conditionstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].globalNodeSetting.coolDownnumberOptionalAt least 0.
diagnostics[].fixes[].edits[].component.nodes[].toolIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].waitForResultbooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].speakDuringExecutionbooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].executionMessageobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].executionMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].component.nodes[].executionMessage.textstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].transferobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.destinationobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination.type"predefined"Required—
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination.numberstringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination.type"inferred"Required—
diagnostics[].fixes[].edits[].component.nodes[].transfer.destination.promptstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].transfer.optionobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.type"cold_transfer" · "warm_transfer"Required—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.showTransfereeAsCallerbooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.optOutHumanDetectionbooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.enableBridgeAudioCuebooleanOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.onHoldMusicstringOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.agentDetectionTimeoutMsintegerOptionalAt least 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.agentDetectionPromptstringOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.transferMessageobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.transferMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.transferMessage.textstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.privateHandoffMessageobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.privateHandoffMessage.textstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].transfer.option.coldTransferModestringOptional—
diagnostics[].fixes[].edits[].component.nodes[].transfer.ignoreE164ValidationbooleanRequired—
diagnostics[].fixes[].edits[].component.nodes[].variablesarray of objectOptional—
diagnostics[].fixes[].edits[].component.nodes[].variables[].namestringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].variables[].type"string" · "number" · "boolean" · "enum"Required—
diagnostics[].fixes[].edits[].component.nodes[].variables[].descriptionstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].variables[].choicesarray of stringOptional—
diagnostics[].fixes[].edits[].component.nodes[].modelChoiceobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.modelobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.credentialobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.type"cascading"Required—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.highPrioritybooleanRequired—
diagnostics[].fixes[].edits[].component.nodes[].modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
diagnostics[].fixes[].edits[].component.nodes[].componentIdstringOptionalminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].verificationobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.fieldsarray of objectRequiredmaxItems: 8.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].formatobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].format · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].format.kind"digits"Required—
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].format · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].format.kind"date_yyyymmdd"Required—
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].promptobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].prompt.enstringRequired—
diagnostics[].fixes[].edits[].component.nodes[].verification.fields[].prompt.esstringOptional—
diagnostics[].fixes[].edits[].component.nodes[].verification.requiredobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].verification.required · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].verification.required.kind"fixed"Required—
diagnostics[].fixes[].edits[].component.nodes[].verification.required.countintegerRequiredAt least 1. At most 8.
diagnostics[].fixes[].edits[].component.nodes[].verification.required · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].verification.required.kind"variable"Required—
diagnostics[].fixes[].edits[].component.nodes[].verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookupobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.toolIdstringRequiredminLength: 1.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenizationobjectOptional—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.toolIdstringRequiredmaxLength: 256.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.consentPromptobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fieldsarray of objectRequiredmaxItems: 7.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].minDigitsintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].encoding"string" · "integer"Required—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].promptobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.argumentsarray of objectRequiredmaxItems: 64.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].sourceobjectRequired—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.kind"variable"Required—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.kind"constant"Required—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.tokenIdPathstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
diagnostics[].fixes[].edits[].component.nodes[].tokenization.last4FieldstringRequiredmaxLength: 64.
diagnostics[].fixes[].edits[].component.toolsarray of objectRequired—
diagnostics[].fixes[].edits[].component.tools[].namestringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.tools[].descriptionstringRequired—
diagnostics[].fixes[].edits[].component.tools[].urlstring (uri)Required—
diagnostics[].fixes[].edits[].component.tools[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
diagnostics[].fixes[].edits[].component.tools[].parametersobjectRequired—
diagnostics[].fixes[].edits[].component.tools[].parameters.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].component.tools[].responseVariablesobjectRequired—
diagnostics[].fixes[].edits[].component.tools[].responseVariables.*stringOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].component.tools[].timeoutMsintegerRequiredGreater than 0. At most 9007199254740991.
diagnostics[].fixes[].edits[].component.tools[].responseVariablePolicy"required" · "replace_available"Optional—
diagnostics[].fixes[].edits[].component.tools[].argsAtRootbooleanRequired—
diagnostics[].fixes[].edits[].component.tools[].parameterType"json"Required—
diagnostics[].fixes[].edits[].component.tools[].speakAfterExecutionbooleanOptional—
diagnostics[].fixes[].edits[].component.tools[].idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].component.tools[].credentialobjectOptional—
diagnostics[].fixes[].edits[].component.tools[].credential.idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
diagnostics[].fixes[].edits[].component.tools[].credential.versionstringRequiredpattern: ^[a-f0-9]{64}$.
diagnostics[].fixes[].edits[].component.flexModebooleanOptional—
diagnostics[].fixes[].edits[] · variant 17object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"component.start"Required—
diagnostics[].fixes[].edits[].component_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].start_node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[] · variant 18object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"component.remove"Required—
diagnostics[].fixes[].edits[].component_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[] · variant 19object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"transfer.credential"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].node_idstringRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].credentialobjectRequired—
diagnostics[].fixes[].edits[].credential · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].credential.action"keep"Required—
diagnostics[].fixes[].edits[].credential · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].credential.action"replace"Required—
diagnostics[].fixes[].edits[].credential.referenceobjectRequired—
diagnostics[].fixes[].edits[].credential.reference.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].credential.reference.versionstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].credential · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].credential.action"remove"Required—
diagnostics[].fixes[].edits[].clear_inlinebooleanRequired—
diagnostics[].fixes[].edits[] · variant 20object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"channels.set"Required—
diagnostics[].fixes[].edits[].channelsarray of "cloud" · "phone"RequiredminItems: 1. maxItems: 2.
diagnostics[].fixes[].edits[] · variant 21object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"languages.set"Required—
diagnostics[].fixes[].edits[].languagesarray of "en" · "es"RequiredminItems: 1. maxItems: 2.
diagnostics[].fixes[].edits[] · variant 22object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"trigger.put"Required—
diagnostics[].fixes[].edits[].triggerobjectRequired—
diagnostics[].fixes[].edits[].trigger · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].trigger.kind"schedule"Required—
diagnostics[].fixes[].edits[].trigger.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].trigger.cronstringRequiredpattern: ^(\S+\s+){4}\S+$.
diagnostics[].fixes[].edits[].trigger.timezonestringRequiredminLength: 1. maxLength: 64.
diagnostics[].fixes[].edits[].trigger.inputobjectRequired—
diagnostics[].fixes[].edits[].trigger.input.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].trigger · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].trigger.kind"event"Required—
diagnostics[].fixes[].edits[].trigger.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].trigger.event_type"run.ended" · "analysis.updated"Required—
diagnostics[].fixes[].edits[].trigger.sourceobjectRequired—
diagnostics[].fixes[].edits[].trigger.source.agent_idstringOptionalAgent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
diagnostics[].fixes[].edits[].trigger.source.channel"cloud" · "phone" · "web"Optional—
diagnostics[].fixes[].edits[].trigger.source.dispositionsarray of stringOptionalmaxItems: 32.
diagnostics[].fixes[].edits[].trigger.input_mappingobjectRequired—
diagnostics[].fixes[].edits[].trigger.input_mapping.*stringOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[] · variant 23object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"trigger.remove"Required—
diagnostics[].fixes[].edits[].trigger_idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[] · variant 24object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"action.put"Required—
diagnostics[].fixes[].edits[].actionobjectRequired—
diagnostics[].fixes[].edits[].action.purpose"tokenization"Optional—
diagnostics[].fixes[].edits[].action.namestringRequiredpattern: ^[a-z][a-z0-9_]{0,62}$.
diagnostics[].fixes[].edits[].action.descriptionstringRequiredminLength: 1. maxLength: 1024.
diagnostics[].fixes[].edits[].action.channelsarray of "cloud" · "phone"RequiredminItems: 1.
diagnostics[].fixes[].edits[].action.method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
diagnostics[].fixes[].edits[].action.urlstring (uri)Required—
diagnostics[].fixes[].edits[].action.headersobjectOptionalDefault: {}.
diagnostics[].fixes[].edits[].action.headers.*stringOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].action.authobjectRequired—
diagnostics[].fixes[].edits[].action.auth · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.auth.scheme"none"Required—
diagnostics[].fixes[].edits[].action.auth · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.auth.scheme"bearer" · "basic"Required—
diagnostics[].fixes[].edits[].action.auth.secret_refobjectRequired—
diagnostics[].fixes[].edits[].action.auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.auth.scheme"retell_signature"Required—
diagnostics[].fixes[].edits[].action.auth.secret_refobjectRequired—
diagnostics[].fixes[].edits[].action.auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth · variant 4object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.auth.scheme"header"Required—
diagnostics[].fixes[].edits[].action.auth.header_namestringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth.secret_refobjectRequired—
diagnostics[].fixes[].edits[].action.auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].action.input_schemaobjectRequired—
diagnostics[].fixes[].edits[].action.input_schema.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].action.output_schemaobjectRequired—
diagnostics[].fixes[].edits[].action.output_schema.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].action.idempotencyobjectRequired—
diagnostics[].fixes[].edits[].action.idempotency · variant 1object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.idempotency.mode"effect_key"Required—
diagnostics[].fixes[].edits[].action.idempotency · variant 2object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.idempotency.mode"template"Required—
diagnostics[].fixes[].edits[].action.idempotency.headerstringOptionalDefault: "Idempotency-Key".
diagnostics[].fixes[].edits[].action.idempotency.templatestringRequiredminLength: 1. maxLength: 512.
diagnostics[].fixes[].edits[].action.idempotency · variant 3object—Fields for this schema branch.
diagnostics[].fixes[].edits[].action.idempotency.mode"none_read_only"Required—
diagnostics[].fixes[].edits[].action.timeout_msintegerRequiredAt least 500. At most 120000.
diagnostics[].fixes[].edits[].action.on_uncertain"failure_edge" · "uncertain_edge"OptionalDefault: "failure_edge".
diagnostics[].fixes[].edits[].response_variablesobjectOptionalFlow variables set from the action's 2xx JSON response, name to path ($.account.balance). Omitted keeps the current ones; {} removes them.
diagnostics[].fixes[].edits[].response_variables.*stringOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].response_variable_policy"required" · "replace_available"OptionalRequired (default) rejects missing mapped outputs. Replace_available replaces the mapped variable set with present scalar outputs and clears missing/null values, for conditional lookup responses. Objects and arrays are rejected in both modes. Omitted preserves the current policy.
diagnostics[].fixes[].edits[].speak_after_executionbooleanOptionalGenerate a spoken response after the action result. False continues routing without an extra reply; omitted preserves the current setting.
diagnostics[].fixes[].edits[] · variant 25object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"action.remove"Required—
diagnostics[].fixes[].edits[].namestringRequiredpattern: ^[a-z][a-z0-9_]{0,62}$.
diagnostics[].fixes[].edits[] · variant 26object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"notification.put"Required—
diagnostics[].fixes[].edits[].notificationobjectRequired—
diagnostics[].fixes[].edits[].notification.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].notification.urlstring (uri)Required—
diagnostics[].fixes[].edits[].notification.secret_refobjectRequired—
diagnostics[].fixes[].edits[].notification.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].notification.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[].notification.format"semantic.v1"Required—
diagnostics[].fixes[].edits[].notification.eventsarray of "run.admitted" · "run.ended" · "recording.updated" · "analysis.updated"RequiredminItems: 1.
diagnostics[].fixes[].edits[] · variant 27object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"notification.remove"Required—
diagnostics[].fixes[].edits[].notification_idstringRequiredminLength: 1. maxLength: 128.
diagnostics[].fixes[].edits[] · variant 28object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"knowledge.set"Required—
diagnostics[].fixes[].edits[].document_idsarray of string (uuid) or nullRequiredminItems: 1. maxItems: 200.
diagnostics[].fixes[].edits[] · variant 29object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"cloud.io.set"Required—
diagnostics[].fixes[].edits[].cloudobject or nullRequired—
diagnostics[].fixes[].edits[].cloud.modesarray of "task" · "chat" · "background"Required in a non-null parentminItems: 1.
diagnostics[].fixes[].edits[].cloud.input_schemaobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].cloud.input_schema.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].cloud.output_schemaobjectRequired in a non-null parent—
diagnostics[].fixes[].edits[].cloud.output_schema.*any JSON valueOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].cloud.max_turnsintegerRequired in a non-null parentAt least 1. At most 200.
diagnostics[].fixes[].edits[].cloud.idle_timeout_msintegerRequired in a non-null parentAt least 10000. At most 86400000.
diagnostics[].fixes[].edits[].cloud.deadline_msintegerRequired in a non-null parentAt least 1000. At most 3600000.
diagnostics[].fixes[].edits[] · variant 30object—Fields for this schema branch.
diagnostics[].fixes[].edits[].type"layout.set"Required—
diagnostics[].fixes[].edits[].component_idstring or nullRequiredminLength: 1. maxLength: 256.
diagnostics[].fixes[].edits[].nodesobjectOptional—
diagnostics[].fixes[].edits[].nodes.*object or nullOptionalAdditional keys are allowed.
diagnostics[].fixes[].edits[].startobject or nullOptional—
diagnostics[].fixes[].edits[].start.xnumberRequired in a non-null parentAt least -10000000. At most 10000000.
diagnostics[].fixes[].edits[].start.ynumberRequired in a non-null parentAt least -10000000. At most 10000000.
diagnostics[].fixes[].edits[].viewportobject or nullOptional—
diagnostics[].fixes[].edits[].viewport.xnumberRequired in a non-null parentAt least -10000000. At most 10000000.
diagnostics[].fixes[].edits[].viewport.ynumberRequired in a non-null parentAt least -10000000. At most 10000000.
diagnostics[].fixes[].edits[].viewport.zoomnumberRequired in a non-null parentAt least 0.01. At most 100.
planobjectOptional—
plan · combined section 1object—Fields for this schema branch.
plan.plan_schema_version2Required—
plan.compilerobjectRequired—
plan.compiler.name"talos-compiler"Required—
plan.compiler.versionstringRequiredminLength: 1.
plan.agentobjectRequired—
plan.agent.agent_idstringRequiredAgent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
plan.agent.versionintegerRequiredAt least 0. At most 2147483647.
plan.agent.namestringRequiredminLength: 1. maxLength: 256.
plan.sourceobjectRequired—
plan.source.kind"studio" · "retell_import" · "api"Required—
plan.source.sha256stringRequiredpattern: ^[a-f0-9]{64}$.
plan.channelsobjectRequired—
plan.channels.cloudobject or nullRequired—
plan.channels.cloud.modesarray of "task" · "chat" · "background"Required in a non-null parentminItems: 1.
plan.channels.cloud.input_schemaobjectRequired in a non-null parent—
plan.channels.cloud.input_schema.*any JSON valueOptionalAdditional keys are allowed.
plan.channels.cloud.output_schemaobjectRequired in a non-null parent—
plan.channels.cloud.output_schema.*any JSON valueOptionalAdditional keys are allowed.
plan.channels.cloud.max_turnsintegerRequired in a non-null parentAt least 1. At most 200.
plan.channels.cloud.idle_timeout_msintegerRequired in a non-null parentAt least 10000. At most 86400000.
plan.channels.cloud.deadline_msintegerRequired in a non-null parentAt least 1000. At most 3600000.
plan.channels.phoneobject or nullRequired—
plan.channels.phone.telephonyobject or nullRequired in a non-null parent—
plan.channels.phone.telephony.trunk_idstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.channels.phone.telephony.fromstring or nullRequired in a non-null parentpattern: ^+[1-9][0-9]{6,14}$.
plan.channels.phone.inbound_contextobjectOptional—
plan.channels.phone.inbound_context.action_idstringRequired in a non-null parentpattern: ^[a-z][a-z0-9_]{0,62}$.
plan.channels.phone.inbound_context.variablesarray of stringRequired in a non-null parentminItems: 1. maxItems: 256.
plan.channels.phone.settingsobjectRequired in a non-null parent—
plan.channels.phone.settings.*any JSON valueOptionalAdditional keys are allowed.
plan.channels.phone.recordingobjectRequired in a non-null parent—
plan.channels.phone.recording.requiredbooleanRequired in a non-null parent—
plan.channels.phone.recording.channels"dual"Required in a non-null parent—
plan.languagesarray of "en" · "es"RequiredminItems: 1.
plan.flowobjectRequired—
plan.flow.schemaVersion2Required—
plan.flow.compilerVersionstringRequiredminLength: 1.
plan.flow.sourceHashstringRequiredpattern: ^[a-f0-9]{64}$.
plan.flow.idstringRequiredminLength: 1.
plan.flow.versionintegerRequiredAt least 0. At most 9007199254740991.
plan.flow.startNodeIdstringRequiredminLength: 1.
plan.flow.startSpeaker"agent" · "user"Required—
plan.flow.globalPromptstringRequired—
plan.flow.nodesarray of objectRequired—
plan.flow.nodes[].idstringRequiredminLength: 1.
plan.flow.nodes[].kind"conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component"Required—
plan.flow.nodes[].namestringOptional—
plan.flow.nodes[].instructionobjectOptional—
plan.flow.nodes[].instruction.type"prompt" · "static_text"Required—
plan.flow.nodes[].instruction.textstringRequired—
plan.flow.nodes[].edgesarray of objectRequired—
plan.flow.nodes[].edges[].idstringOptionalminLength: 1.
plan.flow.nodes[].edges[].destinationNodeIdstringOptionalminLength: 1.
plan.flow.nodes[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
plan.flow.nodes[].edges[].conditionobjectRequired—
plan.flow.nodes[].edges[].condition · variant 1object—Fields for this schema branch.
plan.flow.nodes[].edges[].condition.type"always"Required—
plan.flow.nodes[].edges[].condition · variant 2object—Fields for this schema branch.
plan.flow.nodes[].edges[].condition.type"conversation_language"Required—
plan.flow.nodes[].edges[].condition.language"en" · "es"Required—
plan.flow.nodes[].edges[].condition · variant 3object—Fields for this schema branch.
plan.flow.nodes[].edges[].condition.type"prompt"Required—
plan.flow.nodes[].edges[].condition.promptstringRequired—
plan.flow.nodes[].edges[].condition · variant 4object—Fields for this schema branch.
plan.flow.nodes[].edges[].condition.type"equation"Required—
plan.flow.nodes[].edges[].condition.operator"&&" · "||"Required—
plan.flow.nodes[].edges[].condition.equationsarray of objectRequiredminItems: 1.
plan.flow.nodes[].edges[].condition.equations[].leftstringRequired—
plan.flow.nodes[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
plan.flow.nodes[].edges[].condition.equations[].rightstringRequired—
plan.flow.nodes[].edges[].labelstringOptional—
plan.flow.nodes[].edges[].complianceobjectOptional—
plan.flow.nodes[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
plan.flow.nodes[].startSpeaker"agent" · "user"Optional—
plan.flow.nodes[].interruptionSensitivitynumberOptional—
plan.flow.nodes[].voiceSpeednumberOptional—
plan.flow.nodes[].languageLockedbooleanOptional—
plan.flow.nodes[].globalNodeSettingobjectOptional—
plan.flow.nodes[].globalNodeSetting.conditionstringRequired—
plan.flow.nodes[].globalNodeSetting.coolDownnumberOptional—
plan.flow.nodes[].speakDuringExecutionbooleanOptional—
plan.flow.nodes[].executionMessageobjectOptional—
plan.flow.nodes[].executionMessage.type"prompt" · "static_text"Required—
plan.flow.nodes[].executionMessage.textstringRequired—
plan.flow.nodes[].toolIdstringOptionalminLength: 1.
plan.flow.nodes[].waitForResultbooleanOptional—
plan.flow.nodes[].transferobjectOptional—
plan.flow.nodes[].transfer.destinationobjectRequired—
plan.flow.nodes[].transfer.destination · variant 1object—Fields for this schema branch.
plan.flow.nodes[].transfer.destination.type"predefined"Required—
plan.flow.nodes[].transfer.destination.numberstringRequired—
plan.flow.nodes[].transfer.destination · variant 2object—Fields for this schema branch.
plan.flow.nodes[].transfer.destination.type"inferred"Required—
plan.flow.nodes[].transfer.destination.promptstringRequired—
plan.flow.nodes[].transfer.optionobjectRequired—
plan.flow.nodes[].transfer.option.type"cold_transfer" · "warm_transfer"Required—
plan.flow.nodes[].transfer.option.showTransfereeAsCallerbooleanOptional—
plan.flow.nodes[].transfer.option.optOutHumanDetectionbooleanOptional—
plan.flow.nodes[].transfer.option.enableBridgeAudioCuebooleanOptional—
plan.flow.nodes[].transfer.option.onHoldMusicstringOptional—
plan.flow.nodes[].transfer.option.agentDetectionTimeoutMsintegerOptionalAt least -9007199254740991. At most 9007199254740991.
plan.flow.nodes[].transfer.option.agentDetectionPromptstringOptional—
plan.flow.nodes[].transfer.option.transferMessageobjectOptional—
plan.flow.nodes[].transfer.option.transferMessage.type"prompt" · "static_text"Required—
plan.flow.nodes[].transfer.option.transferMessage.textstringRequired—
plan.flow.nodes[].transfer.option.privateHandoffMessageobjectOptional—
plan.flow.nodes[].transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
plan.flow.nodes[].transfer.option.privateHandoffMessage.textstringRequired—
plan.flow.nodes[].transfer.option.coldTransferModestringOptional—
plan.flow.nodes[].transfer.customSipHeadersobjectRequired—
plan.flow.nodes[].transfer.customSipHeaders.*stringOptionalAdditional keys are allowed.
plan.flow.nodes[].transfer.headerCredentialobjectOptional—
plan.flow.nodes[].transfer.headerCredential.idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.flow.nodes[].transfer.headerCredential.versionstringRequiredpattern: ^[a-f0-9]{64}$.
plan.flow.nodes[].transfer.ignoreE164ValidationbooleanRequired—
plan.flow.nodes[].variablesarray of objectOptional—
plan.flow.nodes[].variables[].namestringRequiredminLength: 1.
plan.flow.nodes[].variables[].type"string" · "number" · "boolean" · "enum"Required—
plan.flow.nodes[].variables[].descriptionstringRequired—
plan.flow.nodes[].variables[].choicesarray of stringOptional—
plan.flow.nodes[].modelChoiceobjectOptional—
plan.flow.nodes[].modelChoice.modelobjectRequired—
plan.flow.nodes[].modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
plan.flow.nodes[].modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
plan.flow.nodes[].modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
plan.flow.nodes[].modelChoice.credentialobjectOptional—
plan.flow.nodes[].modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
plan.flow.nodes[].modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
plan.flow.nodes[].modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
plan.flow.nodes[].modelChoice.type"cascading"Required—
plan.flow.nodes[].modelChoice.highPrioritybooleanRequired—
plan.flow.nodes[].modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
plan.flow.nodes[].verificationobjectOptional—
plan.flow.nodes[].verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.fieldsarray of objectRequiredmaxItems: 8.
plan.flow.nodes[].verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.nodes[].verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
plan.flow.nodes[].verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.fields[].formatobjectRequired—
plan.flow.nodes[].verification.fields[].format · variant 1object—Fields for this schema branch.
plan.flow.nodes[].verification.fields[].format.kind"digits"Required—
plan.flow.nodes[].verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
plan.flow.nodes[].verification.fields[].format · variant 2object—Fields for this schema branch.
plan.flow.nodes[].verification.fields[].format.kind"date_yyyymmdd"Required—
plan.flow.nodes[].verification.fields[].promptobjectRequired—
plan.flow.nodes[].verification.fields[].prompt.enstringRequired—
plan.flow.nodes[].verification.fields[].prompt.esstringOptional—
plan.flow.nodes[].verification.requiredobjectRequired—
plan.flow.nodes[].verification.required · variant 1object—Fields for this schema branch.
plan.flow.nodes[].verification.required.kind"fixed"Required—
plan.flow.nodes[].verification.required.countintegerRequiredAt least 1. At most 8.
plan.flow.nodes[].verification.required · variant 2object—Fields for this schema branch.
plan.flow.nodes[].verification.required.kind"variable"Required—
plan.flow.nodes[].verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
plan.flow.nodes[].verification.lookupobjectOptional—
plan.flow.nodes[].verification.lookup.toolIdstringRequiredminLength: 1.
plan.flow.nodes[].verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.nodes[].verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
plan.flow.nodes[].verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].tokenizationobjectOptional—
plan.flow.nodes[].tokenization.toolIdstringRequiredmaxLength: 256.
plan.flow.nodes[].tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].tokenization.consentPromptobjectRequired—
plan.flow.nodes[].tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
plan.flow.nodes[].tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
plan.flow.nodes[].tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
plan.flow.nodes[].tokenization.fieldsarray of objectRequiredmaxItems: 7.
plan.flow.nodes[].tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.nodes[].tokenization.fields[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.nodes[].tokenization.fields[].minDigitsintegerRequiredAt least 1. At most 32.
plan.flow.nodes[].tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
plan.flow.nodes[].tokenization.fields[].encoding"string" · "integer"Required—
plan.flow.nodes[].tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
plan.flow.nodes[].tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
plan.flow.nodes[].tokenization.fields[].promptobjectRequired—
plan.flow.nodes[].tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
plan.flow.nodes[].tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
plan.flow.nodes[].tokenization.argumentsarray of objectRequiredmaxItems: 64.
plan.flow.nodes[].tokenization.arguments[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.nodes[].tokenization.arguments[].sourceobjectRequired—
plan.flow.nodes[].tokenization.arguments[].source · variant 1object—Fields for this schema branch.
plan.flow.nodes[].tokenization.arguments[].source.kind"variable"Required—
plan.flow.nodes[].tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].tokenization.arguments[].source · variant 2object—Fields for this schema branch.
plan.flow.nodes[].tokenization.arguments[].source.kind"constant"Required—
plan.flow.nodes[].tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
plan.flow.nodes[].tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
plan.flow.nodes[].tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
plan.flow.nodes[].tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
plan.flow.nodes[].tokenization.tokenIdPathstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.nodes[].tokenization.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.nodes[].tokenization.last4FieldstringRequiredmaxLength: 64.
plan.flow.nodes[].componentIdstringOptionalminLength: 1.
plan.flow.componentsarray of objectRequired—
plan.flow.components[].idstringRequiredminLength: 1.
plan.flow.components[].startNodeIdstringRequiredminLength: 1.
plan.flow.components[].nodesarray of objectRequired—
plan.flow.components[].nodes[].idstringRequiredminLength: 1.
plan.flow.components[].nodes[].kind"conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component"Required—
plan.flow.components[].nodes[].namestringOptional—
plan.flow.components[].nodes[].instructionobjectOptional—
plan.flow.components[].nodes[].instruction.type"prompt" · "static_text"Required—
plan.flow.components[].nodes[].instruction.textstringRequired—
plan.flow.components[].nodes[].edgesarray of objectRequired—
plan.flow.components[].nodes[].edges[].idstringOptionalminLength: 1.
plan.flow.components[].nodes[].edges[].destinationNodeIdstringOptionalminLength: 1.
plan.flow.components[].nodes[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
plan.flow.components[].nodes[].edges[].conditionobjectRequired—
plan.flow.components[].nodes[].edges[].condition · variant 1object—Fields for this schema branch.
plan.flow.components[].nodes[].edges[].condition.type"always"Required—
plan.flow.components[].nodes[].edges[].condition · variant 2object—Fields for this schema branch.
plan.flow.components[].nodes[].edges[].condition.type"conversation_language"Required—
plan.flow.components[].nodes[].edges[].condition.language"en" · "es"Required—
plan.flow.components[].nodes[].edges[].condition · variant 3object—Fields for this schema branch.
plan.flow.components[].nodes[].edges[].condition.type"prompt"Required—
plan.flow.components[].nodes[].edges[].condition.promptstringRequired—
plan.flow.components[].nodes[].edges[].condition · variant 4object—Fields for this schema branch.
plan.flow.components[].nodes[].edges[].condition.type"equation"Required—
plan.flow.components[].nodes[].edges[].condition.operator"&&" · "||"Required—
plan.flow.components[].nodes[].edges[].condition.equationsarray of objectRequiredminItems: 1.
plan.flow.components[].nodes[].edges[].condition.equations[].leftstringRequired—
plan.flow.components[].nodes[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
plan.flow.components[].nodes[].edges[].condition.equations[].rightstringRequired—
plan.flow.components[].nodes[].edges[].labelstringOptional—
plan.flow.components[].nodes[].edges[].complianceobjectOptional—
plan.flow.components[].nodes[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
plan.flow.components[].nodes[].startSpeaker"agent" · "user"Optional—
plan.flow.components[].nodes[].interruptionSensitivitynumberOptional—
plan.flow.components[].nodes[].voiceSpeednumberOptional—
plan.flow.components[].nodes[].languageLockedbooleanOptional—
plan.flow.components[].nodes[].globalNodeSettingobjectOptional—
plan.flow.components[].nodes[].globalNodeSetting.conditionstringRequired—
plan.flow.components[].nodes[].globalNodeSetting.coolDownnumberOptional—
plan.flow.components[].nodes[].speakDuringExecutionbooleanOptional—
plan.flow.components[].nodes[].executionMessageobjectOptional—
plan.flow.components[].nodes[].executionMessage.type"prompt" · "static_text"Required—
plan.flow.components[].nodes[].executionMessage.textstringRequired—
plan.flow.components[].nodes[].toolIdstringOptionalminLength: 1.
plan.flow.components[].nodes[].waitForResultbooleanOptional—
plan.flow.components[].nodes[].transferobjectOptional—
plan.flow.components[].nodes[].transfer.destinationobjectRequired—
plan.flow.components[].nodes[].transfer.destination · variant 1object—Fields for this schema branch.
plan.flow.components[].nodes[].transfer.destination.type"predefined"Required—
plan.flow.components[].nodes[].transfer.destination.numberstringRequired—
plan.flow.components[].nodes[].transfer.destination · variant 2object—Fields for this schema branch.
plan.flow.components[].nodes[].transfer.destination.type"inferred"Required—
plan.flow.components[].nodes[].transfer.destination.promptstringRequired—
plan.flow.components[].nodes[].transfer.optionobjectRequired—
plan.flow.components[].nodes[].transfer.option.type"cold_transfer" · "warm_transfer"Required—
plan.flow.components[].nodes[].transfer.option.showTransfereeAsCallerbooleanOptional—
plan.flow.components[].nodes[].transfer.option.optOutHumanDetectionbooleanOptional—
plan.flow.components[].nodes[].transfer.option.enableBridgeAudioCuebooleanOptional—
plan.flow.components[].nodes[].transfer.option.onHoldMusicstringOptional—
plan.flow.components[].nodes[].transfer.option.agentDetectionTimeoutMsintegerOptionalAt least -9007199254740991. At most 9007199254740991.
plan.flow.components[].nodes[].transfer.option.agentDetectionPromptstringOptional—
plan.flow.components[].nodes[].transfer.option.transferMessageobjectOptional—
plan.flow.components[].nodes[].transfer.option.transferMessage.type"prompt" · "static_text"Required—
plan.flow.components[].nodes[].transfer.option.transferMessage.textstringRequired—
plan.flow.components[].nodes[].transfer.option.privateHandoffMessageobjectOptional—
plan.flow.components[].nodes[].transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
plan.flow.components[].nodes[].transfer.option.privateHandoffMessage.textstringRequired—
plan.flow.components[].nodes[].transfer.option.coldTransferModestringOptional—
plan.flow.components[].nodes[].transfer.customSipHeadersobjectRequired—
plan.flow.components[].nodes[].transfer.customSipHeaders.*stringOptionalAdditional keys are allowed.
plan.flow.components[].nodes[].transfer.headerCredentialobjectOptional—
plan.flow.components[].nodes[].transfer.headerCredential.idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.flow.components[].nodes[].transfer.headerCredential.versionstringRequiredpattern: ^[a-f0-9]{64}$.
plan.flow.components[].nodes[].transfer.ignoreE164ValidationbooleanRequired—
plan.flow.components[].nodes[].variablesarray of objectOptional—
plan.flow.components[].nodes[].variables[].namestringRequiredminLength: 1.
plan.flow.components[].nodes[].variables[].type"string" · "number" · "boolean" · "enum"Required—
plan.flow.components[].nodes[].variables[].descriptionstringRequired—
plan.flow.components[].nodes[].variables[].choicesarray of stringOptional—
plan.flow.components[].nodes[].modelChoiceobjectOptional—
plan.flow.components[].nodes[].modelChoice.modelobjectRequired—
plan.flow.components[].nodes[].modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
plan.flow.components[].nodes[].modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
plan.flow.components[].nodes[].modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
plan.flow.components[].nodes[].modelChoice.credentialobjectOptional—
plan.flow.components[].nodes[].modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
plan.flow.components[].nodes[].modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
plan.flow.components[].nodes[].modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
plan.flow.components[].nodes[].modelChoice.type"cascading"Required—
plan.flow.components[].nodes[].modelChoice.highPrioritybooleanRequired—
plan.flow.components[].nodes[].modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
plan.flow.components[].nodes[].verificationobjectOptional—
plan.flow.components[].nodes[].verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.fieldsarray of objectRequiredmaxItems: 8.
plan.flow.components[].nodes[].verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.components[].nodes[].verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
plan.flow.components[].nodes[].verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.fields[].formatobjectRequired—
plan.flow.components[].nodes[].verification.fields[].format · variant 1object—Fields for this schema branch.
plan.flow.components[].nodes[].verification.fields[].format.kind"digits"Required—
plan.flow.components[].nodes[].verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
plan.flow.components[].nodes[].verification.fields[].format · variant 2object—Fields for this schema branch.
plan.flow.components[].nodes[].verification.fields[].format.kind"date_yyyymmdd"Required—
plan.flow.components[].nodes[].verification.fields[].promptobjectRequired—
plan.flow.components[].nodes[].verification.fields[].prompt.enstringRequired—
plan.flow.components[].nodes[].verification.fields[].prompt.esstringOptional—
plan.flow.components[].nodes[].verification.requiredobjectRequired—
plan.flow.components[].nodes[].verification.required · variant 1object—Fields for this schema branch.
plan.flow.components[].nodes[].verification.required.kind"fixed"Required—
plan.flow.components[].nodes[].verification.required.countintegerRequiredAt least 1. At most 8.
plan.flow.components[].nodes[].verification.required · variant 2object—Fields for this schema branch.
plan.flow.components[].nodes[].verification.required.kind"variable"Required—
plan.flow.components[].nodes[].verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
plan.flow.components[].nodes[].verification.lookupobjectOptional—
plan.flow.components[].nodes[].verification.lookup.toolIdstringRequiredminLength: 1.
plan.flow.components[].nodes[].verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.components[].nodes[].verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
plan.flow.components[].nodes[].verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].tokenizationobjectOptional—
plan.flow.components[].nodes[].tokenization.toolIdstringRequiredmaxLength: 256.
plan.flow.components[].nodes[].tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].tokenization.consentPromptobjectRequired—
plan.flow.components[].nodes[].tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
plan.flow.components[].nodes[].tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
plan.flow.components[].nodes[].tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
plan.flow.components[].nodes[].tokenization.fieldsarray of objectRequiredmaxItems: 7.
plan.flow.components[].nodes[].tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
plan.flow.components[].nodes[].tokenization.fields[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.components[].nodes[].tokenization.fields[].minDigitsintegerRequiredAt least 1. At most 32.
plan.flow.components[].nodes[].tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
plan.flow.components[].nodes[].tokenization.fields[].encoding"string" · "integer"Required—
plan.flow.components[].nodes[].tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
plan.flow.components[].nodes[].tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
plan.flow.components[].nodes[].tokenization.fields[].promptobjectRequired—
plan.flow.components[].nodes[].tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
plan.flow.components[].nodes[].tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
plan.flow.components[].nodes[].tokenization.argumentsarray of objectRequiredmaxItems: 64.
plan.flow.components[].nodes[].tokenization.arguments[].parameterstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.components[].nodes[].tokenization.arguments[].sourceobjectRequired—
plan.flow.components[].nodes[].tokenization.arguments[].source · variant 1object—Fields for this schema branch.
plan.flow.components[].nodes[].tokenization.arguments[].source.kind"variable"Required—
plan.flow.components[].nodes[].tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].tokenization.arguments[].source · variant 2object—Fields for this schema branch.
plan.flow.components[].nodes[].tokenization.arguments[].source.kind"constant"Required—
plan.flow.components[].nodes[].tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
plan.flow.components[].nodes[].tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
plan.flow.components[].nodes[].tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
plan.flow.components[].nodes[].tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
plan.flow.components[].nodes[].tokenization.tokenIdPathstringRequiredmaxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$.
plan.flow.components[].nodes[].tokenization.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
plan.flow.components[].nodes[].tokenization.last4FieldstringRequiredmaxLength: 64.
plan.flow.components[].nodes[].componentIdstringOptionalminLength: 1.
plan.flow.components[].toolsarray of objectRequired—
plan.flow.components[].tools[].idstringRequiredminLength: 1.
plan.flow.components[].tools[].type"custom"Required—
plan.flow.components[].tools[].namestringRequiredminLength: 1.
plan.flow.components[].tools[].descriptionstringRequired—
plan.flow.components[].tools[].urlstringRequired—
plan.flow.components[].tools[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
plan.flow.components[].tools[].headersobjectRequired—
plan.flow.components[].tools[].headers.*stringOptionalAdditional keys are allowed.
plan.flow.components[].tools[].queryParamsobjectRequired—
plan.flow.components[].tools[].queryParams.*stringOptionalAdditional keys are allowed.
plan.flow.components[].tools[].credentialobjectOptional—
plan.flow.components[].tools[].credential.idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.flow.components[].tools[].credential.versionstringRequiredpattern: ^[a-f0-9]{64}$.
plan.flow.components[].tools[].parametersobjectRequired—
plan.flow.components[].tools[].parameters.*any JSON valueOptionalAdditional keys are allowed.
plan.flow.components[].tools[].responseVariablesobjectRequired—
plan.flow.components[].tools[].responseVariables.*stringOptionalAdditional keys are allowed.
plan.flow.components[].tools[].timeoutMsintegerRequiredAt least -9007199254740991. At most 9007199254740991.
plan.flow.components[].tools[].responseVariablePolicy"required" · "replace_available"Optional—
plan.flow.components[].tools[].argsAtRootbooleanRequired—
plan.flow.components[].tools[].parameterType"json"Required—
plan.flow.components[].tools[].speakAfterExecutionbooleanOptional—
plan.flow.components[].flexModebooleanOptional—
plan.flow.toolsarray of objectRequired—
plan.flow.tools[].idstringRequiredminLength: 1.
plan.flow.tools[].type"custom"Required—
plan.flow.tools[].namestringRequiredminLength: 1.
plan.flow.tools[].descriptionstringRequired—
plan.flow.tools[].urlstringRequired—
plan.flow.tools[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
plan.flow.tools[].headersobjectRequired—
plan.flow.tools[].headers.*stringOptionalAdditional keys are allowed.
plan.flow.tools[].queryParamsobjectRequired—
plan.flow.tools[].queryParams.*stringOptionalAdditional keys are allowed.
plan.flow.tools[].credentialobjectOptional—
plan.flow.tools[].credential.idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.flow.tools[].credential.versionstringRequiredpattern: ^[a-f0-9]{64}$.
plan.flow.tools[].parametersobjectRequired—
plan.flow.tools[].parameters.*any JSON valueOptionalAdditional keys are allowed.
plan.flow.tools[].responseVariablesobjectRequired—
plan.flow.tools[].responseVariables.*stringOptionalAdditional keys are allowed.
plan.flow.tools[].timeoutMsintegerRequiredAt least -9007199254740991. At most 9007199254740991.
plan.flow.tools[].responseVariablePolicy"required" · "replace_available"Optional—
plan.flow.tools[].argsAtRootbooleanRequired—
plan.flow.tools[].parameterType"json"Required—
plan.flow.tools[].speakAfterExecutionbooleanOptional—
plan.flow.defaultDynamicVariablesobjectRequired—
plan.flow.defaultDynamicVariables.*stringOptionalAdditional keys are allowed.
plan.flow.callContextVariablesarray of stringOptional—
plan.flow.modelChoiceobjectOptional—
plan.flow.modelChoice.modelobjectRequired—
plan.flow.modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
plan.flow.modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
plan.flow.modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
plan.flow.modelChoice.credentialobjectOptional—
plan.flow.modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
plan.flow.modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
plan.flow.modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
plan.flow.modelChoice.type"cascading"Required—
plan.flow.modelChoice.highPrioritybooleanRequired—
plan.flow.modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
plan.flow.toolCallStrictModebooleanRequired—
plan.actionsarray of objectRequired—
plan.actions[].binding_idstringRequiredminLength: 1. maxLength: 128.
plan.actions[].actionobjectRequired—
plan.actions[].action.idstringRequired—
plan.actions[].action.versionintegerRequiredGreater than 0. At most 9007199254740991.
plan.actions[].configobjectRequired—
plan.actions[].config.*any JSON valueOptionalAdditional keys are allowed.
plan.actions[].secret_refsarray of objectRequired—
plan.actions[].secret_refs[].idstringRequiredminLength: 1. maxLength: 128.
plan.actions[].secret_refs[].versionstringRequiredminLength: 1. maxLength: 128.
plan.actions[].node_idsarray of stringRequired—
plan.notificationsarray of objectRequired—
plan.notifications[].idstringRequiredminLength: 1. maxLength: 128.
plan.notifications[].urlstring (uri)Required—
plan.notifications[].secret_refobjectRequired—
plan.notifications[].secret_ref.idstringRequiredminLength: 1. maxLength: 128.
plan.notifications[].secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
plan.notifications[].format"semantic.v1"Required—
plan.notifications[].eventsarray of "run.admitted" · "run.ended" · "recording.updated" · "analysis.updated"RequiredminItems: 1.
plan.knowledgearray of objectRequired—
plan.knowledge[].pin_idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.knowledge[].generation_idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
plan.knowledge[].model_identityobjectRequired—
plan.knowledge[].model_identity.model_idstringRequiredminLength: 1. pattern: \S.
plan.knowledge[].model_identity.providerstringRequiredminLength: 1. pattern: \S.
plan.knowledge[].model_identity.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
plan.knowledge[].dimensionintegerRequiredGreater than 0. At most 9007199254740991.
plan.knowledge[].document_idsarray of string (uuid)RequiredminItems: 1.
plan.knowledge[].documents_sha256stringRequiredpattern: ^[a-f0-9]{64}$.
plan.triggersarray of objectRequired—
plan.triggers[] · variant 1object—Fields for this schema branch.
plan.triggers[].kind"schedule"Required—
plan.triggers[].idstringRequiredminLength: 1. maxLength: 128.
plan.triggers[].cronstringRequiredpattern: ^(\S+\s+){4}\S+$.
plan.triggers[].timezonestringRequiredminLength: 1. maxLength: 64.
plan.triggers[].inputobjectRequired—
plan.triggers[].input.*any JSON valueOptionalAdditional keys are allowed.
plan.triggers[] · variant 2object—Fields for this schema branch.
plan.triggers[].kind"event"Required—
plan.triggers[].idstringRequiredminLength: 1. maxLength: 128.
plan.triggers[].event_type"run.ended" · "analysis.updated"Required—
plan.triggers[].sourceobjectRequired—
plan.triggers[].source.agent_idstringOptionalAgent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
plan.triggers[].source.channel"cloud" · "phone" · "web"Optional—
plan.triggers[].source.dispositionsarray of stringOptionalmaxItems: 32.
plan.triggers[].input_mappingobjectRequired—
plan.triggers[].input_mapping.*stringOptionalAdditional keys are allowed.
plan.providersobjectRequired—
plan.providers.llmobjectRequired—
plan.providers.llm.modelobjectRequired—
plan.providers.llm.model.model_idstringRequiredminLength: 1. pattern: \S.
plan.providers.llm.model.providerstringRequiredminLength: 1. pattern: \S.
plan.providers.llm.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
plan.providers.llm.route"platform" · "fleet" · "simulated"Required—
plan.providers.llm.credentialobject or nullRequired—
plan.providers.llm.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.llm.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.llm.credential.providerstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.analysisobject or nullRequired—
plan.providers.analysis.modelobjectRequired in a non-null parent—
plan.providers.analysis.model.model_idstringRequired in a non-null parentminLength: 1. pattern: \S.
plan.providers.analysis.model.providerstringRequired in a non-null parentminLength: 1. pattern: \S.
plan.providers.analysis.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required in a non-null parent—
plan.providers.analysis.route"platform" · "fleet" · "simulated"Required in a non-null parent—
plan.providers.analysis.credentialobject or nullRequired in a non-null parent—
plan.providers.analysis.credential.idstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.analysis.credential.versionstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.analysis.credential.providerstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.sttobject or nullRequired—
plan.providers.stt.providerstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.stt.modelstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.stt.route"platform" · "fleet" · "simulated"Required in a non-null parent—
plan.providers.stt.languagesarray of "en" · "es"Required in a non-null parentminItems: 1.
plan.providers.ttsobject or nullRequired—
plan.providers.tts.providerstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.tts.modelstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.tts.voice_idstringRequired in a non-null parentminLength: 1. maxLength: 128.
plan.providers.tts.route"platform" · "simulated"Required in a non-null parent—
plan.providers.tts.languagesarray of "en" · "es"Required in a non-null parentminItems: 1.
plan.analysisarray of objectRequired—
plan.analysis[].*any JSON valueOptionalAdditional keys are allowed.
plan.policyobjectRequired—
plan.policy.policy_versionstringRequiredpattern: ^[a-f0-9]{12}$.
targetobjectRequired—
target.outcome"create_agent" · "open_draft" · "replace_draft" · "unchanged"Required—
target.agentobjectRequired—
target.agent.tenant_idstring (uuid)Requiredpattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
target.agent.kind"agent"Required—
target.agent.idstringRequiredminLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
target.namestring or nullRequired—
target.head_versioninteger or nullRequiredAt least 0. At most 2147483647.
target.draftobject or nullRequired—
target.draft.draft_idstring (uuid)Required in a non-null parentIdentifier of the editable draft. Read it from the agent or draft response. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$.
target.draft.revisionintegerRequired in a non-null parentGreater than 0. At most 2147483647.
target.draft.base_versioninteger or nullRequired in a non-null parentAt least 0. At most 2147483647.
target.draft.published_revisioninteger or nullRequired in a non-null parentGreater than 0. At most 2147483647.
target.draft.unpublished_changesbooleanRequired in a non-null parent—
target.draft.updated_atstring (date-time)Required in a non-null parentpattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$.

Error responses

HTTPDescription
4XXTyped error (ApiError)
5XXTyped error (ApiError)

Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.

Complete OpenAPI schema
OpenAPI JSON
{
  "200": {
    "description": "Compile a Retell export and say what agents.import would do (new agent, new or replaced draft, unpublished changes it would discard) without importing it",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/AgentsImportInspectResponse200"
        }
      }
    }
  },
  "4XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  },
  "5XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

Referenced schemas

Expand the complete OpenAPI definitions for integrations that generate their own clients.

Complete OpenAPI schema
OpenAPI JSON
{
  "components": {
    "schemas": {
      "AgentsImportRequest": {
        "type": "object",
        "properties": {
          "reference": {
            "type": "object",
            "properties": {
              "tenant_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "agent"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              }
            },
            "required": [
              "tenant_id",
              "kind",
              "id"
            ],
            "additionalProperties": false
          },
          "agent_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "flow": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            }
          },
          "agent": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue"
            }
          },
          "config": {
            "type": "object",
            "properties": {
              "providers": {
                "type": "object",
                "properties": {
                  "stt": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "endpoint": {
                        "type": "string",
                        "format": "uri"
                      },
                      "voiceId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "provider",
                      "model"
                    ],
                    "additionalProperties": false
                  },
                  "llm": {
                    "type": "object",
                    "properties": {
                      "model": {
                        "$ref": "#/components/schemas/ModelIdentity"
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "openai",
                          "simulated_openai",
                          "self_hosted",
                          "simulated_self_hosted"
                        ]
                      },
                      "endpoint": {
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "required": [
                      "model",
                      "provider"
                    ],
                    "additionalProperties": false
                  },
                  "tts": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "endpoint": {
                        "type": "string",
                        "format": "uri"
                      },
                      "voiceId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "provider",
                      "model"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "stt",
                  "llm",
                  "tts"
                ],
                "additionalProperties": false
              },
              "telephony": {
                "type": "object",
                "properties": {
                  "trunkId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "from": {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{6,14}$"
                  }
                },
                "required": [
                  "trunkId"
                ],
                "additionalProperties": false
              },
              "recording": {
                "type": "object",
                "properties": {
                  "required": {
                    "type": "boolean"
                  },
                  "channels": {
                    "type": "string",
                    "enum": [
                      "dual"
                    ]
                  }
                },
                "required": [
                  "required",
                  "channels"
                ],
                "additionalProperties": false
              },
              "webhook": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "secretRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "url",
                  "secretRef"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "providers",
              "recording"
            ],
            "additionalProperties": false
          },
          "model_bindings": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "model": {
                  "$ref": "#/components/schemas/ModelIdentity"
                },
                "credential": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "provider": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "id",
                    "version",
                    "provider"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "model"
              ],
              "additionalProperties": false
            }
          },
          "replace_draft": {
            "type": "object",
            "properties": {
              "draft_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
              },
              "expected_revision": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true,
                "maximum": 2147483647
              }
            },
            "required": [
              "draft_id",
              "expected_revision"
            ],
            "additionalProperties": false
          },
          "allow_blocked": {
            "type": "boolean"
          },
          "require_parity": {
            "type": "boolean"
          }
        },
        "required": [
          "reference",
          "agent_version",
          "flow",
          "agent",
          "config",
          "model_bindings"
        ],
        "additionalProperties": false
      },
      "JsonValue": {
        "nullable": true,
        "description": "Any JSON value: null, boolean, number, string, array or object."
      },
      "ModelIdentity": {
        "type": "object",
        "properties": {
          "model_id": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "provider": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "tier": {
            "type": "string",
            "enum": [
              "frontier",
              "cumulus-served",
              "customer-gpu"
            ]
          }
        },
        "required": [
          "model_id",
          "provider",
          "tier"
        ],
        "additionalProperties": false
      },
      "AgentsImportInspectResponse200": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "digest": {
            "nullable": true,
            "type": "string",
            "pattern": "^sha256:[a-f0-9]{64}$"
          },
          "diagnostics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Diagnostic"
            }
          },
          "plan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicationPlan"
              }
            ]
          },
          "target": {
            "type": "object",
            "properties": {
              "outcome": {
                "type": "string",
                "enum": [
                  "create_agent",
                  "open_draft",
                  "replace_draft",
                  "unchanged"
                ]
              },
              "agent": {
                "type": "object",
                "properties": {
                  "tenant_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "agent"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
                  }
                },
                "required": [
                  "tenant_id",
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              },
              "name": {
                "nullable": true,
                "type": "string"
              },
              "head_version": {
                "nullable": true,
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "draft": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "draft_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 2147483647
                  },
                  "base_version": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2147483647
                  },
                  "published_revision": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 2147483647
                  },
                  "unpublished_changes": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "draft_id",
                  "revision",
                  "base_version",
                  "published_revision",
                  "unpublished_changes",
                  "updated_at"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "outcome",
              "agent",
              "name",
              "head_version",
              "draft"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "ok",
          "version",
          "digest",
          "diagnostics",
          "target"
        ],
        "additionalProperties": false
      },
      "Diagnostic": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "path": {
            "type": "string",
            "maxLength": 1024
          },
          "message": {
            "type": "string",
            "maxLength": 4096
          },
          "severity": {
            "type": "string",
            "enum": [
              "warning",
              "error"
            ]
          },
          "fixes": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiagnosticFix"
            }
          }
        },
        "required": [
          "code",
          "path",
          "message",
          "severity"
        ],
        "additionalProperties": false
      },
      "DiagnosticFix": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "edits": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DraftEdit"
            }
          }
        },
        "required": [
          "id",
          "label",
          "edits"
        ],
        "additionalProperties": false
      },
      "DraftEdit": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.name"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.settings"
                ]
              },
              "values": {
                "type": "object",
                "properties": {
                  "voiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "voiceModel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "voiceSpeed": {
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 2
                  },
                  "voiceTemperature": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                  },
                  "volume": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                  },
                  "language": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      {
                        "minItems": 1,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      }
                    ]
                  },
                  "responsiveness": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "interruptionSensitivity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "enableBackchannel": {
                    "type": "boolean"
                  },
                  "backchannelFrequency": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "backchannelWords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "reminderTriggerMs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3600000
                  },
                  "reminderMaxCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "maxCallDurationMs": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 86400000
                  },
                  "endCallAfterSilenceMs": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 3600000
                  },
                  "ringDurationMs": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 300000
                  },
                  "beginMessageDelayMs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 60000
                  },
                  "normalizeForSpeech": {
                    "type": "boolean"
                  },
                  "openerWaitsForCallee": {
                    "type": "boolean"
                  },
                  "voicemail": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "detectionTimeoutMs": {
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "maximum": 9007199254740991
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "hangup",
                          "leave_message"
                        ]
                      },
                      "message": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "prompt",
                              "static_text"
                            ]
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "text"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "additionalProperties": false
                  },
                  "ambientSound": {
                    "type": "string"
                  },
                  "ambientSoundVolume": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 2
                  },
                  "boostedKeywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "pronunciationDictionary": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "word": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "alphabet": {
                          "type": "string",
                          "enum": [
                            "ipa",
                            "cmu"
                          ]
                        },
                        "phoneme": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "word",
                        "alphabet",
                        "phoneme"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "denoisingMode": {
                    "type": "string"
                  },
                  "sttMode": {
                    "type": "string"
                  },
                  "allowUserDtmf": {
                    "type": "boolean"
                  },
                  "allowDtmfInterruption": {
                    "type": "boolean"
                  },
                  "userDtmfOptions": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "digitLimit": {
                        "nullable": true,
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "maximum": 9007199254740991
                      },
                      "terminationKey": {
                        "nullable": true,
                        "type": "string",
                        "enum": [
                          "0",
                          "1",
                          "2",
                          "3",
                          "4",
                          "5",
                          "6",
                          "7",
                          "8",
                          "9",
                          "*",
                          "#"
                        ]
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "maximum": 9007199254740991
                      }
                    },
                    "additionalProperties": false
                  },
                  "dataStorageSetting": {
                    "type": "string",
                    "enum": [
                      "everything",
                      "everything_except_pii",
                      "basic_attributes_only"
                    ]
                  },
                  "optInSignedUrl": {
                    "type": "boolean"
                  },
                  "piiConfig": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "post_call"
                        ]
                      },
                      "categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "person_name",
                            "address",
                            "email",
                            "phone_number",
                            "ssn",
                            "passport",
                            "driver_license",
                            "credit_card",
                            "bank_account",
                            "password",
                            "pin",
                            "medical_id",
                            "date_of_birth",
                            "customer_account_number"
                          ]
                        }
                      }
                    },
                    "required": [
                      "mode",
                      "categories"
                    ],
                    "additionalProperties": false
                  },
                  "handbookConfig": {
                    "type": "object",
                    "properties": {
                      "defaultPersonality": {
                        "type": "boolean"
                      },
                      "conversationalPersonality": {
                        "type": "boolean"
                      },
                      "naturalFillerWords": {
                        "type": "boolean"
                      },
                      "highEmpathy": {
                        "type": "boolean"
                      },
                      "echoVerification": {
                        "type": "boolean"
                      },
                      "natoPhoneticAlphabet": {
                        "type": "boolean"
                      },
                      "speechNormalization": {
                        "type": "boolean"
                      },
                      "smartMatching": {
                        "type": "boolean"
                      },
                      "aiDisclosure": {
                        "type": "boolean"
                      },
                      "scopeBoundaries": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "ivr": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          }
                        },
                        "required": [
                          "enabled"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "enum": [
                              true
                            ]
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "hangup"
                            ]
                          },
                          "detectionWindowMs": {
                            "type": "number",
                            "enum": [
                              180000
                            ]
                          },
                          "detectionPrompt": {
                            "nullable": true,
                            "type": "string"
                          }
                        },
                        "required": [
                          "enabled",
                          "action",
                          "detectionWindowMs"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "screener": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "hangup"
                            ]
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "wait"
                            ]
                          },
                          "waitMs": {
                            "type": "integer",
                            "minimum": 5000,
                            "maximum": 120000
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "play_line"
                            ]
                          },
                          "waitMs": {
                            "type": "integer",
                            "minimum": 5000,
                            "maximum": 120000
                          },
                          "line": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 500
                              },
                              "es": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 500
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "action",
                          "line"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "treat_as_human"
                            ]
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "postCallAnalysisModel": {
                    "type": "object",
                    "properties": {
                      "model": {
                        "$ref": "#/components/schemas/ModelIdentity"
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "model"
                    ],
                    "additionalProperties": false
                  },
                  "compliance": {
                    "type": "object",
                    "properties": {
                      "profile": {
                        "type": "string",
                        "enum": [
                          "fdcpa"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "clear": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "voiceId",
                    "voiceModel",
                    "voiceSpeed",
                    "voiceTemperature",
                    "volume",
                    "language",
                    "responsiveness",
                    "interruptionSensitivity",
                    "enableBackchannel",
                    "backchannelFrequency",
                    "backchannelWords",
                    "reminderTriggerMs",
                    "reminderMaxCount",
                    "maxCallDurationMs",
                    "endCallAfterSilenceMs",
                    "ringDurationMs",
                    "beginMessageDelayMs",
                    "normalizeForSpeech",
                    "openerWaitsForCallee",
                    "voicemail",
                    "ambientSound",
                    "ambientSoundVolume",
                    "boostedKeywords",
                    "pronunciationDictionary",
                    "denoisingMode",
                    "sttMode",
                    "allowUserDtmf",
                    "allowDtmfInterruption",
                    "userDtmfOptions",
                    "dataStorageSetting",
                    "optInSignedUrl",
                    "piiConfig",
                    "handbookConfig",
                    "ivr",
                    "screener",
                    "postCallAnalysisModel",
                    "compliance"
                  ]
                }
              }
            },
            "required": [
              "type",
              "values",
              "clear"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.analysis"
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "string",
                        "number",
                        "boolean",
                        "enum"
                      ]
                    },
                    "description": {
                      "type": "string"
                    },
                    "choices": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "examples": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "type",
              "fields"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.provider"
                ]
              },
              "role": {
                "type": "string",
                "enum": [
                  "stt",
                  "llm",
                  "tts"
                ]
              },
              "changes": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "model": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "voiceId": {
                        "nullable": true,
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "endpoint": {
                        "nullable": true,
                        "type": "string",
                        "format": "uri"
                      },
                      "credential": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "required": [
                          "id",
                          "version"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "model": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/ModelIdentity"
                          }
                        ]
                      },
                      "credential": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "openai",
                          "simulated_openai",
                          "self_hosted",
                          "simulated_self_hosted"
                        ]
                      },
                      "endpoint": {
                        "nullable": true,
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "type",
              "role",
              "changes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.telephony"
                ]
              },
              "value": {
                "type": "object",
                "properties": {
                  "trunkId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "from": {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{6,14}$"
                  }
                },
                "required": [
                  "trunkId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "agent.recording"
                ]
              },
              "value": {
                "type": "object",
                "properties": {
                  "required": {
                    "type": "boolean"
                  },
                  "channels": {
                    "type": "string",
                    "enum": [
                      "dual"
                    ]
                  }
                },
                "required": [
                  "required",
                  "channels"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "phone.inbound_context"
                ]
              },
              "value": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "action_id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,62}$"
                  },
                  "variables": {
                    "minItems": 1,
                    "maxItems": 256,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
                    }
                  }
                },
                "required": [
                  "action_id",
                  "variables"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "flow.prompt"
                ]
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.name"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "name": {
                "nullable": true,
                "type": "string"
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.instruction"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "instruction": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "prompt",
                      "static_text"
                    ]
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "text"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id",
              "instruction"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.transitions"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "edges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "destinationNodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "slot": {
                      "type": "string",
                      "enum": [
                        "edges",
                        "else_edge",
                        "skip_response_edge",
                        "always_edge",
                        "edge",
                        "success_edge"
                      ]
                    },
                    "condition": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "always"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "conversation_language"
                              ]
                            },
                            "language": {
                              "type": "string",
                              "enum": [
                                "en",
                                "es"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "language"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "prompt"
                              ]
                            },
                            "prompt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "prompt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "equation"
                              ]
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "&&",
                                "||"
                              ]
                            },
                            "equations": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "left": {
                                    "type": "string"
                                  },
                                  "operator": {
                                    "type": "string",
                                    "enum": [
                                      "==",
                                      "!=",
                                      ">",
                                      "<",
                                      ">=",
                                      "<=",
                                      "contains",
                                      "is_set",
                                      "is_not_set"
                                    ]
                                  },
                                  "right": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "left",
                                  "operator",
                                  "right"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "type",
                            "operator",
                            "equations"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "compliance": {
                      "type": "object",
                      "properties": {
                        "sets": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "rpc_confirmed"
                            ]
                          }
                        }
                      },
                      "required": [
                        "sets"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "slot",
                    "condition"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id",
              "edges"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.configure"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "changes": {
                "type": "object",
                "properties": {
                  "name": {
                    "nullable": true,
                    "type": "string"
                  },
                  "instruction": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "startSpeaker": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "agent",
                      "user"
                    ]
                  },
                  "interruptionSensitivity": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "voiceSpeed": {
                    "nullable": true,
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 2
                  },
                  "languageLocked": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "globalNodeSetting": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "condition": {
                        "type": "string"
                      },
                      "coolDown": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "condition"
                    ],
                    "additionalProperties": false
                  },
                  "toolId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "waitForResult": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "speakDuringExecution": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "executionMessage": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "transfer": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "destination": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "predefined"
                                ]
                              },
                              "number": {
                                "type": "string",
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "type",
                              "number"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "inferred"
                                ]
                              },
                              "prompt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "prompt"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "option": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "cold_transfer",
                              "warm_transfer"
                            ]
                          },
                          "showTransfereeAsCaller": {
                            "type": "boolean"
                          },
                          "optOutHumanDetection": {
                            "type": "boolean"
                          },
                          "enableBridgeAudioCue": {
                            "type": "boolean"
                          },
                          "onHoldMusic": {
                            "type": "string"
                          },
                          "agentDetectionTimeoutMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "agentDetectionPrompt": {
                            "type": "string"
                          },
                          "transferMessage": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "prompt",
                                  "static_text"
                                ]
                              },
                              "text": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "text"
                            ],
                            "additionalProperties": false
                          },
                          "privateHandoffMessage": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "prompt",
                                  "static_text"
                                ]
                              },
                              "text": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "text"
                            ],
                            "additionalProperties": false
                          },
                          "coldTransferMode": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      "ignoreE164Validation": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "destination",
                      "option",
                      "ignoreE164Validation"
                    ],
                    "additionalProperties": false
                  },
                  "variables": {
                    "nullable": true,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "string",
                            "number",
                            "boolean",
                            "enum"
                          ]
                        },
                        "description": {
                          "type": "string"
                        },
                        "choices": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "type",
                        "description"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "modelChoice": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "model": {
                        "$ref": "#/components/schemas/ModelIdentity"
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "cascading"
                        ]
                      },
                      "highPriority": {
                        "type": "boolean"
                      },
                      "reasoningEffort": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      }
                    },
                    "required": [
                      "model",
                      "type",
                      "highPriority"
                    ],
                    "additionalProperties": false
                  },
                  "componentId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "verification": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "subjectVariable": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "fields": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                            },
                            "expectedVariable": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "privateAliases": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                              }
                            },
                            "enabledVariable": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "format": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "digits"
                                      ]
                                    },
                                    "length": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 32
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "length"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "date_yyyymmdd"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "prompt": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "en"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "expectedVariable",
                            "enabledVariable",
                            "format",
                            "prompt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "fixed"
                                ]
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 8
                              }
                            },
                            "required": [
                              "kind",
                              "count"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "variable"
                                ]
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                              }
                            },
                            "required": [
                              "kind",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": 1000,
                        "maximum": 180000
                      },
                      "lookup": {
                        "type": "object",
                        "properties": {
                          "toolId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "fieldId": {
                            "type": "string",
                            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                          },
                          "parameter": {
                            "type": "string",
                            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                          },
                          "arguments": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "parameter": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                },
                                "variable": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                }
                              },
                              "required": [
                                "parameter",
                                "variable"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "toolId",
                          "fieldId",
                          "parameter",
                          "arguments"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "subjectVariable",
                      "fields",
                      "required",
                      "timeoutMs"
                    ],
                    "additionalProperties": false
                  },
                  "tokenization": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "toolId": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "subjectVariable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "consentPrompt": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "es": {
                            "type": "string",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "en"
                        ],
                        "additionalProperties": false
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": 1000,
                        "maximum": 180000
                      },
                      "fields": {
                        "maxItems": 7,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                            },
                            "parameter": {
                              "type": "string",
                              "maxLength": 256,
                              "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                            },
                            "minDigits": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            },
                            "maxDigits": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            },
                            "encoding": {
                              "type": "string",
                              "enum": [
                                "string",
                                "integer"
                              ]
                            },
                            "minimum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 999999999
                            },
                            "maximum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 999999999
                            },
                            "prompt": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                "es": {
                                  "type": "string",
                                  "maxLength": 4096
                                }
                              },
                              "required": [
                                "en"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "parameter",
                            "minDigits",
                            "maxDigits",
                            "encoding",
                            "prompt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "arguments": {
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "parameter": {
                              "type": "string",
                              "maxLength": 256,
                              "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                            },
                            "source": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "variable"
                                      ]
                                    },
                                    "name": {
                                      "type": "string",
                                      "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "constant"
                                      ]
                                    },
                                    "value": {
                                      "nullable": true,
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 512
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "parameter",
                            "source"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "tokenIdPath": {
                        "type": "string",
                        "maxLength": 256,
                        "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                      },
                      "tokenVariable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "last4Variable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "last4Field": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "toolId",
                      "subjectVariable",
                      "consentPrompt",
                      "timeoutMs",
                      "fields",
                      "arguments",
                      "tokenIdPath",
                      "tokenVariable",
                      "last4Variable",
                      "last4Field"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id",
              "changes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.create"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "conversation",
                      "end",
                      "branch",
                      "transfer_call",
                      "function",
                      "extract_dynamic_variables",
                      "verify_identity",
                      "tokenize_private",
                      "component"
                    ]
                  },
                  "edges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "destinationNodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "slot": {
                          "type": "string",
                          "enum": [
                            "edges",
                            "else_edge",
                            "skip_response_edge",
                            "always_edge",
                            "edge",
                            "success_edge"
                          ]
                        },
                        "condition": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "always"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "conversation_language"
                                  ]
                                },
                                "language": {
                                  "type": "string",
                                  "enum": [
                                    "en",
                                    "es"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "language"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "prompt"
                                  ]
                                },
                                "prompt": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "prompt"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "equation"
                                  ]
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "&&",
                                    "||"
                                  ]
                                },
                                "equations": {
                                  "minItems": 1,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "left": {
                                        "type": "string"
                                      },
                                      "operator": {
                                        "type": "string",
                                        "enum": [
                                          "==",
                                          "!=",
                                          ">",
                                          "<",
                                          ">=",
                                          "<=",
                                          "contains",
                                          "is_set",
                                          "is_not_set"
                                        ]
                                      },
                                      "right": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "left",
                                      "operator",
                                      "right"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "operator",
                                "equations"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "compliance": {
                          "type": "object",
                          "properties": {
                            "sets": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "rpc_confirmed"
                                ]
                              }
                            }
                          },
                          "required": [
                            "sets"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "slot",
                        "condition"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "name": {
                    "type": "string"
                  },
                  "instruction": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "startSpeaker": {
                    "type": "string",
                    "enum": [
                      "agent",
                      "user"
                    ]
                  },
                  "interruptionSensitivity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "voiceSpeed": {
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 2
                  },
                  "languageLocked": {
                    "type": "boolean"
                  },
                  "globalNodeSetting": {
                    "type": "object",
                    "properties": {
                      "condition": {
                        "type": "string"
                      },
                      "coolDown": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "condition"
                    ],
                    "additionalProperties": false
                  },
                  "toolId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "waitForResult": {
                    "type": "boolean"
                  },
                  "speakDuringExecution": {
                    "type": "boolean"
                  },
                  "executionMessage": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "transfer": {
                    "type": "object",
                    "properties": {
                      "destination": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "predefined"
                                ]
                              },
                              "number": {
                                "type": "string",
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "type",
                              "number"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "inferred"
                                ]
                              },
                              "prompt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "prompt"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "option": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "cold_transfer",
                              "warm_transfer"
                            ]
                          },
                          "showTransfereeAsCaller": {
                            "type": "boolean"
                          },
                          "optOutHumanDetection": {
                            "type": "boolean"
                          },
                          "enableBridgeAudioCue": {
                            "type": "boolean"
                          },
                          "onHoldMusic": {
                            "type": "string"
                          },
                          "agentDetectionTimeoutMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "agentDetectionPrompt": {
                            "type": "string"
                          },
                          "transferMessage": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "prompt",
                                  "static_text"
                                ]
                              },
                              "text": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "text"
                            ],
                            "additionalProperties": false
                          },
                          "privateHandoffMessage": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "prompt",
                                  "static_text"
                                ]
                              },
                              "text": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "text"
                            ],
                            "additionalProperties": false
                          },
                          "coldTransferMode": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      "ignoreE164Validation": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "destination",
                      "option",
                      "ignoreE164Validation"
                    ],
                    "additionalProperties": false
                  },
                  "variables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "string",
                            "number",
                            "boolean",
                            "enum"
                          ]
                        },
                        "description": {
                          "type": "string"
                        },
                        "choices": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "name",
                        "type",
                        "description"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "modelChoice": {
                    "type": "object",
                    "properties": {
                      "model": {
                        "$ref": "#/components/schemas/ModelIdentity"
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "cascading"
                        ]
                      },
                      "highPriority": {
                        "type": "boolean"
                      },
                      "reasoningEffort": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      }
                    },
                    "required": [
                      "model",
                      "type",
                      "highPriority"
                    ],
                    "additionalProperties": false
                  },
                  "componentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "verification": {
                    "type": "object",
                    "properties": {
                      "subjectVariable": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "fields": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                            },
                            "expectedVariable": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "privateAliases": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                              }
                            },
                            "enabledVariable": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "format": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "digits"
                                      ]
                                    },
                                    "length": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 32
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "length"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "date_yyyymmdd"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "prompt": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "en"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "expectedVariable",
                            "enabledVariable",
                            "format",
                            "prompt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "fixed"
                                ]
                              },
                              "count": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 8
                              }
                            },
                            "required": [
                              "kind",
                              "count"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "variable"
                                ]
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                              }
                            },
                            "required": [
                              "kind",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": 1000,
                        "maximum": 180000
                      },
                      "lookup": {
                        "type": "object",
                        "properties": {
                          "toolId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "fieldId": {
                            "type": "string",
                            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                          },
                          "parameter": {
                            "type": "string",
                            "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                          },
                          "arguments": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "parameter": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                },
                                "variable": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                }
                              },
                              "required": [
                                "parameter",
                                "variable"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "toolId",
                          "fieldId",
                          "parameter",
                          "arguments"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "subjectVariable",
                      "fields",
                      "required",
                      "timeoutMs"
                    ],
                    "additionalProperties": false
                  },
                  "tokenization": {
                    "type": "object",
                    "properties": {
                      "toolId": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "subjectVariable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "consentPrompt": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "es": {
                            "type": "string",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "en"
                        ],
                        "additionalProperties": false
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": 1000,
                        "maximum": 180000
                      },
                      "fields": {
                        "maxItems": 7,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                            },
                            "parameter": {
                              "type": "string",
                              "maxLength": 256,
                              "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                            },
                            "minDigits": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            },
                            "maxDigits": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            },
                            "encoding": {
                              "type": "string",
                              "enum": [
                                "string",
                                "integer"
                              ]
                            },
                            "minimum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 999999999
                            },
                            "maximum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 999999999
                            },
                            "prompt": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                "es": {
                                  "type": "string",
                                  "maxLength": 4096
                                }
                              },
                              "required": [
                                "en"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "parameter",
                            "minDigits",
                            "maxDigits",
                            "encoding",
                            "prompt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "arguments": {
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "parameter": {
                              "type": "string",
                              "maxLength": 256,
                              "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                            },
                            "source": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "variable"
                                      ]
                                    },
                                    "name": {
                                      "type": "string",
                                      "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "constant"
                                      ]
                                    },
                                    "value": {
                                      "nullable": true,
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 512
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "parameter",
                            "source"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "tokenIdPath": {
                        "type": "string",
                        "maxLength": 256,
                        "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                      },
                      "tokenVariable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "last4Variable": {
                        "type": "string",
                        "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      },
                      "last4Field": {
                        "type": "string",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "toolId",
                      "subjectVariable",
                      "consentPrompt",
                      "timeoutMs",
                      "fields",
                      "arguments",
                      "tokenIdPath",
                      "tokenVariable",
                      "last4Variable",
                      "last4Field"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "kind",
                  "edges"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "component_id",
              "node"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "node.remove"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "flow.configure"
                ]
              },
              "changes": {
                "type": "object",
                "properties": {
                  "startNodeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "startSpeaker": {
                    "type": "string",
                    "enum": [
                      "agent",
                      "user"
                    ]
                  },
                  "globalPrompt": {
                    "type": "string"
                  },
                  "defaultDynamicVariables": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "callContextVariables": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "modelChoice": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "model": {
                        "$ref": "#/components/schemas/ModelIdentity"
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "provider": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "cascading"
                        ]
                      },
                      "highPriority": {
                        "type": "boolean"
                      },
                      "reasoningEffort": {
                        "type": "string",
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ]
                      }
                    },
                    "required": [
                      "model",
                      "type",
                      "highPriority"
                    ],
                    "additionalProperties": false
                  },
                  "toolCallStrictMode": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "changes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "component.create"
                ]
              },
              "component": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "startNodeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "nodes": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "conversation",
                            "end",
                            "branch",
                            "transfer_call",
                            "function",
                            "extract_dynamic_variables",
                            "verify_identity",
                            "tokenize_private",
                            "component"
                          ]
                        },
                        "edges": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "destinationNodeId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "slot": {
                                "type": "string",
                                "enum": [
                                  "edges",
                                  "else_edge",
                                  "skip_response_edge",
                                  "always_edge",
                                  "edge",
                                  "success_edge"
                                ]
                              },
                              "condition": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "always"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "conversation_language"
                                        ]
                                      },
                                      "language": {
                                        "type": "string",
                                        "enum": [
                                          "en",
                                          "es"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "language"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "prompt"
                                        ]
                                      },
                                      "prompt": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "prompt"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "equation"
                                        ]
                                      },
                                      "operator": {
                                        "type": "string",
                                        "enum": [
                                          "&&",
                                          "||"
                                        ]
                                      },
                                      "equations": {
                                        "minItems": 1,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "left": {
                                              "type": "string"
                                            },
                                            "operator": {
                                              "type": "string",
                                              "enum": [
                                                "==",
                                                "!=",
                                                ">",
                                                "<",
                                                ">=",
                                                "<=",
                                                "contains",
                                                "is_set",
                                                "is_not_set"
                                              ]
                                            },
                                            "right": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "left",
                                            "operator",
                                            "right"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "operator",
                                      "equations"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "compliance": {
                                "type": "object",
                                "properties": {
                                  "sets": {
                                    "minItems": 1,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "rpc_confirmed"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "sets"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "slot",
                              "condition"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "name": {
                          "type": "string"
                        },
                        "instruction": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "prompt",
                                "static_text"
                              ]
                            },
                            "text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": false
                        },
                        "startSpeaker": {
                          "type": "string",
                          "enum": [
                            "agent",
                            "user"
                          ]
                        },
                        "interruptionSensitivity": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "voiceSpeed": {
                          "type": "number",
                          "minimum": 0.5,
                          "maximum": 2
                        },
                        "languageLocked": {
                          "type": "boolean"
                        },
                        "globalNodeSetting": {
                          "type": "object",
                          "properties": {
                            "condition": {
                              "type": "string"
                            },
                            "coolDown": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "condition"
                          ],
                          "additionalProperties": false
                        },
                        "toolId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "waitForResult": {
                          "type": "boolean"
                        },
                        "speakDuringExecution": {
                          "type": "boolean"
                        },
                        "executionMessage": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "prompt",
                                "static_text"
                              ]
                            },
                            "text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": false
                        },
                        "transfer": {
                          "type": "object",
                          "properties": {
                            "destination": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "predefined"
                                      ]
                                    },
                                    "number": {
                                      "type": "string",
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "number"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "inferred"
                                      ]
                                    },
                                    "prompt": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "prompt"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "option": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "cold_transfer",
                                    "warm_transfer"
                                  ]
                                },
                                "showTransfereeAsCaller": {
                                  "type": "boolean"
                                },
                                "optOutHumanDetection": {
                                  "type": "boolean"
                                },
                                "enableBridgeAudioCue": {
                                  "type": "boolean"
                                },
                                "onHoldMusic": {
                                  "type": "string"
                                },
                                "agentDetectionTimeoutMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "agentDetectionPrompt": {
                                  "type": "string"
                                },
                                "transferMessage": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "prompt",
                                        "static_text"
                                      ]
                                    },
                                    "text": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                },
                                "privateHandoffMessage": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "prompt",
                                        "static_text"
                                      ]
                                    },
                                    "text": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "additionalProperties": false
                                },
                                "coldTransferMode": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            "ignoreE164Validation": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "destination",
                            "option",
                            "ignoreE164Validation"
                          ],
                          "additionalProperties": false
                        },
                        "variables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "string",
                                  "number",
                                  "boolean",
                                  "enum"
                                ]
                              },
                              "description": {
                                "type": "string"
                              },
                              "choices": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "modelChoice": {
                          "type": "object",
                          "properties": {
                            "model": {
                              "$ref": "#/components/schemas/ModelIdentity"
                            },
                            "credential": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "provider": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": [
                                "id",
                                "version",
                                "provider"
                              ],
                              "additionalProperties": false
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "cascading"
                              ]
                            },
                            "highPriority": {
                              "type": "boolean"
                            },
                            "reasoningEffort": {
                              "type": "string",
                              "enum": [
                                "low",
                                "medium",
                                "high"
                              ]
                            }
                          },
                          "required": [
                            "model",
                            "type",
                            "highPriority"
                          ],
                          "additionalProperties": false
                        },
                        "componentId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "verification": {
                          "type": "object",
                          "properties": {
                            "subjectVariable": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "fields": {
                              "maxItems": 8,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                                  },
                                  "expectedVariable": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                  },
                                  "privateAliases": {
                                    "maxItems": 16,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                    }
                                  },
                                  "enabledVariable": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                  },
                                  "format": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "digits"
                                            ]
                                          },
                                          "length": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 32
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "length"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "date_yyyymmdd"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "kind"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "prompt": {
                                    "type": "object",
                                    "properties": {
                                      "en": {
                                        "type": "string"
                                      },
                                      "es": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "en"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "expectedVariable",
                                  "enabledVariable",
                                  "format",
                                  "prompt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "fixed"
                                      ]
                                    },
                                    "count": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 8
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "count"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "variable"
                                      ]
                                    },
                                    "name": {
                                      "type": "string",
                                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "timeoutMs": {
                              "type": "integer",
                              "minimum": 1000,
                              "maximum": 180000
                            },
                            "lookup": {
                              "type": "object",
                              "properties": {
                                "toolId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "fieldId": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                                },
                                "parameter": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                },
                                "arguments": {
                                  "maxItems": 64,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "parameter": {
                                        "type": "string",
                                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                      },
                                      "variable": {
                                        "type": "string",
                                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                      }
                                    },
                                    "required": [
                                      "parameter",
                                      "variable"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "toolId",
                                "fieldId",
                                "parameter",
                                "arguments"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "subjectVariable",
                            "fields",
                            "required",
                            "timeoutMs"
                          ],
                          "additionalProperties": false
                        },
                        "tokenization": {
                          "type": "object",
                          "properties": {
                            "toolId": {
                              "type": "string",
                              "maxLength": 256
                            },
                            "subjectVariable": {
                              "type": "string",
                              "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "consentPrompt": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                "es": {
                                  "type": "string",
                                  "maxLength": 4096
                                }
                              },
                              "required": [
                                "en"
                              ],
                              "additionalProperties": false
                            },
                            "timeoutMs": {
                              "type": "integer",
                              "minimum": 1000,
                              "maximum": 180000
                            },
                            "fields": {
                              "maxItems": 7,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                                  },
                                  "parameter": {
                                    "type": "string",
                                    "maxLength": 256,
                                    "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                                  },
                                  "minDigits": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 32
                                  },
                                  "maxDigits": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 32
                                  },
                                  "encoding": {
                                    "type": "string",
                                    "enum": [
                                      "string",
                                      "integer"
                                    ]
                                  },
                                  "minimum": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 999999999
                                  },
                                  "maximum": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 999999999
                                  },
                                  "prompt": {
                                    "type": "object",
                                    "properties": {
                                      "en": {
                                        "type": "string",
                                        "maxLength": 4096
                                      },
                                      "es": {
                                        "type": "string",
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "en"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "parameter",
                                  "minDigits",
                                  "maxDigits",
                                  "encoding",
                                  "prompt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "arguments": {
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "parameter": {
                                    "type": "string",
                                    "maxLength": 256,
                                    "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                                  },
                                  "source": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "variable"
                                            ]
                                          },
                                          "name": {
                                            "type": "string",
                                            "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "name"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "constant"
                                            ]
                                          },
                                          "value": {
                                            "nullable": true,
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "maxLength": 512
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "parameter",
                                  "source"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "tokenIdPath": {
                              "type": "string",
                              "maxLength": 256,
                              "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                            },
                            "tokenVariable": {
                              "type": "string",
                              "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "last4Variable": {
                              "type": "string",
                              "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            },
                            "last4Field": {
                              "type": "string",
                              "maxLength": 64
                            }
                          },
                          "required": [
                            "toolId",
                            "subjectVariable",
                            "consentPrompt",
                            "timeoutMs",
                            "fields",
                            "arguments",
                            "tokenIdPath",
                            "tokenVariable",
                            "last4Variable",
                            "last4Field"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "edges"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "method": {
                          "type": "string",
                          "enum": [
                            "GET",
                            "POST",
                            "PUT",
                            "PATCH",
                            "DELETE"
                          ]
                        },
                        "parameters": {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        "responseVariables": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "timeoutMs": {
                          "type": "integer",
                          "minimum": 0,
                          "exclusiveMinimum": true,
                          "maximum": 9007199254740991
                        },
                        "responseVariablePolicy": {
                          "type": "string",
                          "enum": [
                            "required",
                            "replace_available"
                          ]
                        },
                        "argsAtRoot": {
                          "type": "boolean"
                        },
                        "parameterType": {
                          "type": "string",
                          "enum": [
                            "json"
                          ]
                        },
                        "speakAfterExecution": {
                          "type": "boolean"
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "credential": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                            },
                            "version": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            }
                          },
                          "required": [
                            "id",
                            "version"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "name",
                        "description",
                        "url",
                        "method",
                        "parameters",
                        "responseVariables",
                        "timeoutMs",
                        "argsAtRoot",
                        "parameterType",
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "flexMode": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "startNodeId",
                  "nodes",
                  "tools"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "component"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "component.start"
                ]
              },
              "component_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "start_node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "component_id",
              "start_node_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "component.remove"
                ]
              },
              "component_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "component_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "transfer.credential"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "node_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "credential": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "keep"
                        ]
                      }
                    },
                    "required": [
                      "action"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "replace"
                        ]
                      },
                      "reference": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "version": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "required": [
                          "id",
                          "version"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "action",
                      "reference"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "remove"
                        ]
                      }
                    },
                    "required": [
                      "action"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "clear_inline": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "component_id",
              "node_id",
              "credential",
              "clear_inline"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "channels.set"
                ]
              },
              "channels": {
                "minItems": 1,
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "cloud",
                    "phone"
                  ]
                }
              }
            },
            "required": [
              "type",
              "channels"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "languages.set"
                ]
              },
              "languages": {
                "minItems": 1,
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "en",
                    "es"
                  ]
                }
              }
            },
            "required": [
              "type",
              "languages"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "trigger.put"
                ]
              },
              "trigger": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "schedule"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "cron": {
                        "type": "string",
                        "pattern": "^(\\S+\\s+){4}\\S+$"
                      },
                      "timezone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "input": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "cron",
                      "timezone",
                      "input"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "event"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "event_type": {
                        "type": "string",
                        "enum": [
                          "run.ended",
                          "analysis.updated"
                        ]
                      },
                      "source": {
                        "type": "object",
                        "properties": {
                          "agent_id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
                          },
                          "channel": {
                            "type": "string",
                            "enum": [
                              "cloud",
                              "phone",
                              "web"
                            ]
                          },
                          "dispositions": {
                            "maxItems": 32,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "input_mapping": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string",
                          "pattern": "^\\/[A-Za-z0-9_/-]*$"
                        }
                      }
                    },
                    "required": [
                      "kind",
                      "id",
                      "event_type",
                      "source",
                      "input_mapping"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "type",
              "trigger"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "trigger.remove"
                ]
              },
              "trigger_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "type",
              "trigger_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "action.put"
                ]
              },
              "action": {
                "type": "object",
                "properties": {
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "tokenization"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,62}$"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  },
                  "channels": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "cloud",
                        "phone"
                      ]
                    }
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ]
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "headers": {
                    "default": {},
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 1024
                    }
                  },
                  "auth": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "enum": [
                              "none"
                            ]
                          }
                        },
                        "required": [
                          "scheme"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "enum": [
                              "bearer",
                              "basic"
                            ]
                          },
                          "secret_ref": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "version": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "id",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "scheme",
                          "secret_ref"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "enum": [
                              "retell_signature"
                            ]
                          },
                          "secret_ref": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "version": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "id",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "scheme",
                          "secret_ref"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "scheme": {
                            "type": "string",
                            "enum": [
                              "header"
                            ]
                          },
                          "header_name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "secret_ref": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "version": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "id",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "scheme",
                          "header_name",
                          "secret_ref"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "input_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "output_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "idempotency": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "effect_key"
                            ]
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "template"
                            ]
                          },
                          "header": {
                            "default": "Idempotency-Key",
                            "type": "string"
                          },
                          "template": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "mode",
                          "template"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "none_read_only"
                            ]
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "timeout_ms": {
                    "type": "integer",
                    "minimum": 500,
                    "maximum": 120000
                  },
                  "on_uncertain": {
                    "default": "failure_edge",
                    "type": "string",
                    "enum": [
                      "failure_edge",
                      "uncertain_edge"
                    ]
                  }
                },
                "required": [
                  "name",
                  "description",
                  "channels",
                  "method",
                  "url",
                  "auth",
                  "input_schema",
                  "output_schema",
                  "idempotency",
                  "timeout_ms"
                ],
                "additionalProperties": false
              },
              "response_variables": {
                "description": "Flow variables set from the action's 2xx JSON response, name to path ($.account.balance). Omitted keeps the current ones; {} removes them.",
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                }
              },
              "response_variable_policy": {
                "description": "Required (default) rejects missing mapped outputs. Replace_available replaces the mapped variable set with present scalar outputs and clears missing/null values, for conditional lookup responses. Objects and arrays are rejected in both modes. Omitted preserves the current policy.",
                "type": "string",
                "enum": [
                  "required",
                  "replace_available"
                ]
              },
              "speak_after_execution": {
                "description": "Generate a spoken response after the action result. False continues routing without an extra reply; omitted preserves the current setting.",
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "action"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "action.remove"
                ]
              },
              "name": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,62}$"
              }
            },
            "required": [
              "type",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "notification.put"
                ]
              },
              "notification": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "secret_ref": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "id",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "semantic.v1"
                    ]
                  },
                  "events": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "run.admitted",
                        "run.ended",
                        "recording.updated",
                        "analysis.updated"
                      ]
                    }
                  }
                },
                "required": [
                  "id",
                  "url",
                  "secret_ref",
                  "format",
                  "events"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "notification"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "notification.remove"
                ]
              },
              "notification_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "type",
              "notification_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "knowledge.set"
                ]
              },
              "document_ids": {
                "nullable": true,
                "minItems": 1,
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                }
              }
            },
            "required": [
              "type",
              "document_ids"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "cloud.io.set"
                ]
              },
              "cloud": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "modes": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "task",
                        "chat",
                        "background"
                      ]
                    }
                  },
                  "input_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "output_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "max_turns": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200
                  },
                  "idle_timeout_ms": {
                    "type": "integer",
                    "minimum": 10000,
                    "maximum": 86400000
                  },
                  "deadline_ms": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 3600000
                  }
                },
                "required": [
                  "modes",
                  "input_schema",
                  "output_schema",
                  "max_turns",
                  "idle_timeout_ms",
                  "deadline_ms"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "cloud"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "layout.set"
                ]
              },
              "component_id": {
                "nullable": true,
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "nodes": {
                "type": "object",
                "additionalProperties": {
                  "nullable": true,
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number",
                      "minimum": -10000000,
                      "maximum": 10000000
                    },
                    "y": {
                      "type": "number",
                      "minimum": -10000000,
                      "maximum": 10000000
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "additionalProperties": false
                }
              },
              "start": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": -10000000,
                    "maximum": 10000000
                  },
                  "y": {
                    "type": "number",
                    "minimum": -10000000,
                    "maximum": 10000000
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "viewport": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": -10000000,
                    "maximum": 10000000
                  },
                  "y": {
                    "type": "number",
                    "minimum": -10000000,
                    "maximum": 10000000
                  },
                  "zoom": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 100
                  }
                },
                "required": [
                  "x",
                  "y",
                  "zoom"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "component_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PublicationPlan": {
        "type": "object",
        "properties": {
          "plan_schema_version": {
            "type": "number",
            "enum": [
              2
            ]
          },
          "compiler": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "talos-compiler"
                ]
              },
              "version": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "name",
              "version"
            ],
            "additionalProperties": false
          },
          "agent": {
            "type": "object",
            "properties": {
              "agent_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "agent_id",
              "version",
              "name"
            ],
            "additionalProperties": false
          },
          "source": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "studio",
                  "retell_import",
                  "api"
                ]
              },
              "sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": [
              "kind",
              "sha256"
            ],
            "additionalProperties": false
          },
          "channels": {
            "type": "object",
            "properties": {
              "cloud": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "modes": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "task",
                        "chat",
                        "background"
                      ]
                    }
                  },
                  "input_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "output_schema": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "max_turns": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200
                  },
                  "idle_timeout_ms": {
                    "type": "integer",
                    "minimum": 10000,
                    "maximum": 86400000
                  },
                  "deadline_ms": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 3600000
                  }
                },
                "required": [
                  "modes",
                  "input_schema",
                  "output_schema",
                  "max_turns",
                  "idle_timeout_ms",
                  "deadline_ms"
                ],
                "additionalProperties": false
              },
              "phone": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "telephony": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "trunk_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "from": {
                        "nullable": true,
                        "type": "string",
                        "pattern": "^\\+[1-9][0-9]{6,14}$"
                      }
                    },
                    "required": [
                      "trunk_id",
                      "from"
                    ],
                    "additionalProperties": false
                  },
                  "inbound_context": {
                    "type": "object",
                    "properties": {
                      "action_id": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,62}$"
                      },
                      "variables": {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
                        }
                      }
                    },
                    "required": [
                      "action_id",
                      "variables"
                    ],
                    "additionalProperties": false
                  },
                  "settings": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "recording": {
                    "type": "object",
                    "properties": {
                      "required": {
                        "type": "boolean"
                      },
                      "channels": {
                        "type": "string",
                        "enum": [
                          "dual"
                        ]
                      }
                    },
                    "required": [
                      "required",
                      "channels"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "telephony",
                  "settings",
                  "recording"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "cloud",
              "phone"
            ],
            "additionalProperties": false
          },
          "languages": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es"
              ]
            }
          },
          "flow": {
            "$ref": "#/components/schemas/PlanFlow"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "binding_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "action": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "exclusiveMinimum": true,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "id",
                    "version"
                  ],
                  "additionalProperties": false
                },
                "config": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "secret_refs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "id",
                      "version"
                    ],
                    "additionalProperties": false
                  }
                },
                "node_ids": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              },
              "required": [
                "binding_id",
                "action",
                "config",
                "secret_refs",
                "node_ids"
              ],
              "additionalProperties": false
            }
          },
          "notifications": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "secret_ref": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "required": [
                    "id",
                    "version"
                  ],
                  "additionalProperties": false
                },
                "format": {
                  "type": "string",
                  "enum": [
                    "semantic.v1"
                  ]
                },
                "events": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "run.admitted",
                      "run.ended",
                      "recording.updated",
                      "analysis.updated"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "url",
                "secret_ref",
                "format",
                "events"
              ],
              "additionalProperties": false
            }
          },
          "knowledge": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pin_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "generation_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                },
                "model_identity": {
                  "$ref": "#/components/schemas/ModelIdentity"
                },
                "dimension": {
                  "type": "integer",
                  "minimum": 0,
                  "exclusiveMinimum": true,
                  "maximum": 9007199254740991
                },
                "document_ids": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  }
                },
                "documents_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "pin_id",
                "generation_id",
                "model_identity",
                "dimension",
                "document_ids",
                "documents_sha256"
              ],
              "additionalProperties": false
            }
          },
          "triggers": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "schedule"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "cron": {
                      "type": "string",
                      "pattern": "^(\\S+\\s+){4}\\S+$"
                    },
                    "timezone": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "cron",
                    "timezone",
                    "input"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "event"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "event_type": {
                      "type": "string",
                      "enum": [
                        "run.ended",
                        "analysis.updated"
                      ]
                    },
                    "source": {
                      "type": "object",
                      "properties": {
                        "agent_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
                        },
                        "channel": {
                          "type": "string",
                          "enum": [
                            "cloud",
                            "phone",
                            "web"
                          ]
                        },
                        "dispositions": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "input_mapping": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^\\/[A-Za-z0-9_/-]*$"
                      }
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "event_type",
                    "source",
                    "input_mapping"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "providers": {
            "type": "object",
            "properties": {
              "llm": {
                "type": "object",
                "properties": {
                  "model": {
                    "$ref": "#/components/schemas/ModelIdentity"
                  },
                  "route": {
                    "type": "string",
                    "enum": [
                      "platform",
                      "fleet",
                      "simulated"
                    ]
                  },
                  "credential": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "id",
                      "version",
                      "provider"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "model",
                  "route",
                  "credential"
                ],
                "additionalProperties": false
              },
              "analysis": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "model": {
                    "$ref": "#/components/schemas/ModelIdentity"
                  },
                  "route": {
                    "type": "string",
                    "enum": [
                      "platform",
                      "fleet",
                      "simulated"
                    ]
                  },
                  "credential": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "provider": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "id",
                      "version",
                      "provider"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "model",
                  "route",
                  "credential"
                ],
                "additionalProperties": false
              },
              "stt": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "route": {
                    "type": "string",
                    "enum": [
                      "platform",
                      "fleet",
                      "simulated"
                    ]
                  },
                  "languages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "en",
                        "es"
                      ]
                    }
                  }
                },
                "required": [
                  "provider",
                  "model",
                  "route",
                  "languages"
                ],
                "additionalProperties": false
              },
              "tts": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "voice_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "route": {
                    "type": "string",
                    "enum": [
                      "platform",
                      "simulated"
                    ]
                  },
                  "languages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "en",
                        "es"
                      ]
                    }
                  }
                },
                "required": [
                  "provider",
                  "model",
                  "voice_id",
                  "route",
                  "languages"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "llm",
              "analysis",
              "stt",
              "tts"
            ],
            "additionalProperties": false
          },
          "analysis": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "policy": {
            "type": "object",
            "properties": {
              "policy_version": {
                "type": "string",
                "pattern": "^[a-f0-9]{12}$"
              }
            },
            "required": [
              "policy_version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "plan_schema_version",
          "compiler",
          "agent",
          "source",
          "channels",
          "languages",
          "flow",
          "actions",
          "notifications",
          "knowledge",
          "triggers",
          "providers",
          "analysis",
          "policy"
        ],
        "additionalProperties": false
      },
      "PlanFlow": {
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "number",
            "enum": [
              2
            ]
          },
          "compilerVersion": {
            "type": "string",
            "minLength": 1
          },
          "sourceHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "id": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "startNodeId": {
            "type": "string",
            "minLength": 1
          },
          "startSpeaker": {
            "type": "string",
            "enum": [
              "agent",
              "user"
            ]
          },
          "globalPrompt": {
            "type": "string"
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanFlowNode"
            }
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "startNodeId": {
                  "type": "string",
                  "minLength": 1
                },
                "nodes": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlanFlowNode"
                  }
                },
                "tools": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "custom"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "description": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "GET",
                          "POST",
                          "PUT",
                          "PATCH",
                          "DELETE"
                        ]
                      },
                      "headers": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "queryParams": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "credential": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                          },
                          "version": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          }
                        },
                        "required": [
                          "id",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "parameters": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "responseVariables": {
                        "type": "object",
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "responseVariablePolicy": {
                        "type": "string",
                        "enum": [
                          "required",
                          "replace_available"
                        ]
                      },
                      "argsAtRoot": {
                        "type": "boolean"
                      },
                      "parameterType": {
                        "type": "string",
                        "enum": [
                          "json"
                        ]
                      },
                      "speakAfterExecution": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "name",
                      "description",
                      "url",
                      "method",
                      "headers",
                      "queryParams",
                      "parameters",
                      "responseVariables",
                      "timeoutMs",
                      "argsAtRoot",
                      "parameterType"
                    ],
                    "additionalProperties": false
                  }
                },
                "flexMode": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "startNodeId",
                "nodes",
                "tools"
              ],
              "additionalProperties": false
            }
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "custom"
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET",
                    "POST",
                    "PUT",
                    "PATCH",
                    "DELETE"
                  ]
                },
                "headers": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "queryParams": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "credential": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "id",
                    "version"
                  ],
                  "additionalProperties": false
                },
                "parameters": {
                  "type": "object",
                  "additionalProperties": {}
                },
                "responseVariables": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "timeoutMs": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "responseVariablePolicy": {
                  "type": "string",
                  "enum": [
                    "required",
                    "replace_available"
                  ]
                },
                "argsAtRoot": {
                  "type": "boolean"
                },
                "parameterType": {
                  "type": "string",
                  "enum": [
                    "json"
                  ]
                },
                "speakAfterExecution": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "type",
                "name",
                "description",
                "url",
                "method",
                "headers",
                "queryParams",
                "parameters",
                "responseVariables",
                "timeoutMs",
                "argsAtRoot",
                "parameterType"
              ],
              "additionalProperties": false
            }
          },
          "defaultDynamicVariables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "callContextVariables": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "modelChoice": {
            "type": "object",
            "properties": {
              "model": {
                "$ref": "#/components/schemas/ModelIdentity"
              },
              "credential": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "id",
                  "version",
                  "provider"
                ],
                "additionalProperties": false
              },
              "type": {
                "type": "string",
                "enum": [
                  "cascading"
                ]
              },
              "highPriority": {
                "type": "boolean"
              },
              "reasoningEffort": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              }
            },
            "required": [
              "model",
              "type",
              "highPriority"
            ],
            "additionalProperties": false
          },
          "toolCallStrictMode": {
            "type": "boolean"
          }
        },
        "required": [
          "schemaVersion",
          "compilerVersion",
          "sourceHash",
          "id",
          "version",
          "startNodeId",
          "startSpeaker",
          "globalPrompt",
          "nodes",
          "components",
          "tools",
          "defaultDynamicVariables",
          "toolCallStrictMode"
        ],
        "additionalProperties": false
      },
      "PlanFlowNode": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "conversation",
              "end",
              "branch",
              "transfer_call",
              "function",
              "extract_dynamic_variables",
              "verify_identity",
              "tokenize_private",
              "component"
            ]
          },
          "name": {
            "type": "string"
          },
          "instruction": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "prompt",
                  "static_text"
                ]
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": false
          },
          "edges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "destinationNodeId": {
                  "type": "string",
                  "minLength": 1
                },
                "slot": {
                  "type": "string",
                  "enum": [
                    "edges",
                    "else_edge",
                    "skip_response_edge",
                    "always_edge",
                    "edge",
                    "success_edge"
                  ]
                },
                "condition": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "always"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "conversation_language"
                          ]
                        },
                        "language": {
                          "type": "string",
                          "enum": [
                            "en",
                            "es"
                          ]
                        }
                      },
                      "required": [
                        "type",
                        "language"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "prompt"
                          ]
                        },
                        "prompt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "prompt"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "equation"
                          ]
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "&&",
                            "||"
                          ]
                        },
                        "equations": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "left": {
                                "type": "string"
                              },
                              "operator": {
                                "type": "string",
                                "enum": [
                                  "==",
                                  "!=",
                                  ">",
                                  "<",
                                  ">=",
                                  "<=",
                                  "contains",
                                  "is_set",
                                  "is_not_set"
                                ]
                              },
                              "right": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "left",
                              "operator",
                              "right"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "type",
                        "operator",
                        "equations"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "label": {
                  "type": "string"
                },
                "compliance": {
                  "type": "object",
                  "properties": {
                    "sets": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "rpc_confirmed"
                        ]
                      }
                    }
                  },
                  "required": [
                    "sets"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "slot",
                "condition"
              ],
              "additionalProperties": false
            }
          },
          "startSpeaker": {
            "type": "string",
            "enum": [
              "agent",
              "user"
            ]
          },
          "interruptionSensitivity": {
            "type": "number"
          },
          "voiceSpeed": {
            "type": "number"
          },
          "languageLocked": {
            "type": "boolean"
          },
          "globalNodeSetting": {
            "type": "object",
            "properties": {
              "condition": {
                "type": "string"
              },
              "coolDown": {
                "type": "number"
              }
            },
            "required": [
              "condition"
            ],
            "additionalProperties": false
          },
          "speakDuringExecution": {
            "type": "boolean"
          },
          "executionMessage": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "prompt",
                  "static_text"
                ]
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": false
          },
          "toolId": {
            "type": "string",
            "minLength": 1
          },
          "waitForResult": {
            "type": "boolean"
          },
          "transfer": {
            "type": "object",
            "properties": {
              "destination": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "predefined"
                        ]
                      },
                      "number": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "number"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "inferred"
                        ]
                      },
                      "prompt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "prompt"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "option": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "cold_transfer",
                      "warm_transfer"
                    ]
                  },
                  "showTransfereeAsCaller": {
                    "type": "boolean"
                  },
                  "optOutHumanDetection": {
                    "type": "boolean"
                  },
                  "enableBridgeAudioCue": {
                    "type": "boolean"
                  },
                  "onHoldMusic": {
                    "type": "string"
                  },
                  "agentDetectionTimeoutMs": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "agentDetectionPrompt": {
                    "type": "string"
                  },
                  "transferMessage": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "privateHandoffMessage": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "prompt",
                          "static_text"
                        ]
                      },
                      "text": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "coldTransferMode": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              },
              "customSipHeaders": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "headerCredential": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "id",
                  "version"
                ],
                "additionalProperties": false
              },
              "ignoreE164Validation": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "option",
              "customSipHeaders",
              "ignoreE164Validation"
            ],
            "additionalProperties": false
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "enum"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "choices": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "name",
                "type",
                "description"
              ],
              "additionalProperties": false
            }
          },
          "modelChoice": {
            "type": "object",
            "properties": {
              "model": {
                "$ref": "#/components/schemas/ModelIdentity"
              },
              "credential": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "id",
                  "version",
                  "provider"
                ],
                "additionalProperties": false
              },
              "type": {
                "type": "string",
                "enum": [
                  "cascading"
                ]
              },
              "highPriority": {
                "type": "boolean"
              },
              "reasoningEffort": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              }
            },
            "required": [
              "model",
              "type",
              "highPriority"
            ],
            "additionalProperties": false
          },
          "verification": {
            "type": "object",
            "properties": {
              "subjectVariable": {
                "type": "string",
                "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
              },
              "fields": {
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                    },
                    "expectedVariable": {
                      "type": "string",
                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                    },
                    "privateAliases": {
                      "maxItems": 16,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      }
                    },
                    "enabledVariable": {
                      "type": "string",
                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                    },
                    "format": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "digits"
                              ]
                            },
                            "length": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            }
                          },
                          "required": [
                            "kind",
                            "length"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "date_yyyymmdd"
                              ]
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "en": {
                          "type": "string"
                        },
                        "es": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "en"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "expectedVariable",
                    "enabledVariable",
                    "format",
                    "prompt"
                  ],
                  "additionalProperties": false
                }
              },
              "required": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "fixed"
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8
                      }
                    },
                    "required": [
                      "kind",
                      "count"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "variable"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                      }
                    },
                    "required": [
                      "kind",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "timeoutMs": {
                "type": "integer",
                "minimum": 1000,
                "maximum": 180000
              },
              "lookup": {
                "type": "object",
                "properties": {
                  "toolId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "fieldId": {
                    "type": "string",
                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                  },
                  "parameter": {
                    "type": "string",
                    "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                  },
                  "arguments": {
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "parameter": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                        },
                        "variable": {
                          "type": "string",
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
                        }
                      },
                      "required": [
                        "parameter",
                        "variable"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "toolId",
                  "fieldId",
                  "parameter",
                  "arguments"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "subjectVariable",
              "fields",
              "required",
              "timeoutMs"
            ],
            "additionalProperties": false
          },
          "tokenization": {
            "type": "object",
            "properties": {
              "toolId": {
                "type": "string",
                "maxLength": 256
              },
              "subjectVariable": {
                "type": "string",
                "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
              },
              "consentPrompt": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "es": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": [
                  "en"
                ],
                "additionalProperties": false
              },
              "timeoutMs": {
                "type": "integer",
                "minimum": 1000,
                "maximum": 180000
              },
              "fields": {
                "maxItems": 7,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                    },
                    "parameter": {
                      "type": "string",
                      "maxLength": 256,
                      "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                    },
                    "minDigits": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 32
                    },
                    "maxDigits": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 32
                    },
                    "encoding": {
                      "type": "string",
                      "enum": [
                        "string",
                        "integer"
                      ]
                    },
                    "minimum": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 999999999
                    },
                    "maximum": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 999999999
                    },
                    "prompt": {
                      "type": "object",
                      "properties": {
                        "en": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "es": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "en"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "parameter",
                    "minDigits",
                    "maxDigits",
                    "encoding",
                    "prompt"
                  ],
                  "additionalProperties": false
                }
              },
              "arguments": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "parameter": {
                      "type": "string",
                      "maxLength": 256,
                      "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
                    },
                    "source": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "variable"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
                            }
                          },
                          "required": [
                            "kind",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "constant"
                              ]
                            },
                            "value": {
                              "nullable": true,
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 512
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "parameter",
                    "source"
                  ],
                  "additionalProperties": false
                }
              },
              "tokenIdPath": {
                "type": "string",
                "maxLength": 256,
                "pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
              },
              "tokenVariable": {
                "type": "string",
                "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
              },
              "last4Variable": {
                "type": "string",
                "pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
              },
              "last4Field": {
                "type": "string",
                "maxLength": 64
              }
            },
            "required": [
              "toolId",
              "subjectVariable",
              "consentPrompt",
              "timeoutMs",
              "fields",
              "arguments",
              "tokenIdPath",
              "tokenVariable",
              "last4Variable",
              "last4Field"
            ],
            "additionalProperties": false
          },
          "componentId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "id",
          "kind",
          "edges"
        ],
        "additionalProperties": false
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthenticated",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "invalid_request",
                  "idempotency_conflict",
                  "policy_denied",
                  "capability_unavailable",
                  "provider_unavailable",
                  "knowledge_unavailable",
                  "publication_invalid",
                  "run_not_active",
                  "rate_limited",
                  "outcome_unknown",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "none",
                  "unknown"
                ]
              },
              "details": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "outcome"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}

Errors and recovery

See API error handling and Troubleshooting.

Content version c807ef9dCustomer SDKMarkdown source
Preview a Retell import · Cumulus developer docs