/** * @packageDocumentation * **Agent scripting SDK**: typed **`defineScript`** context, * {@link import('./types/media-channel').MediaChannel}, ASR/TTS, LLM, SIP, and platform helpers. * * Full API reference: **`README.md`** in this package (`@voctiv/agent-sdk` on npm). * * These exports are types plus the `defineScript` identity helper; runtime behavior is * provided by the host when it loads and executes your script. * * ### Selecting ASR/TTS credentials by name (platform key catalog) * * When the host loads platform credential catalogs, **`channel.params.authentication_data`** * may contain named ASR/TTS key rows for the current dialog agent and company. Use: * - {@link import('./types/asr-handle').AsrConfig.name} or **`data.name`** on **`createAsr`** * - {@link import('./types/tts-handle').TtsConfig.name} or **`data.name`** on **`createTts`** * - {@link import('./types/mixer').PlayOptions.name} or **`ttsConfig.name`** on **`say`/`play`/`presay`** * * Channel defaults **`defaultAsrName`** / **`defaultTtsName`** apply when **`name`** is omitted. * * Platform APIs (`platform.nlu`, `platform.call`, messaging, dialog writes, phrase records) * are available when the host enables platform integration. * * ### SIP metadata on live calls * * On SIP channels, {@link import('./types/sip').ChannelSip} exposes INVITE header snapshots * ({@link import('./types/sip').SipInviteHeaders}), negotiated {@link import('./types/sip').ChannelSip.remoteSdp}, * parsed SDP attributes ({@link import('./types/sip').ParsedSdpDetails} via `getRemoteSdpDetails()`), * and live SIP INFO ({@link import('./types/events').SipInfo} on `sipInfo$`). See **`README.md`** → SIP Signalling Metadata. */ export { defineScript } from './define-script'; export type { ScriptContext, ScriptFn, ScriptFnWithCallOptions, } from './define-script'; export type { ScriptCallOptions, OutboundCallMode, } from './types/call-options'; export { defineMediaProviders } from './types/media-providers'; export type { MediaProvidersDefinition, MediaConnectorContext, MediaProviderShared, AsrProviderFactory, TtsProviderFactory, ScriptAsrConnector, ScriptAsrConnectorError, ScriptTtsConnector, TtsSynthesisContext as ScriptTtsSynthesisContext, } from './types/media-providers'; export type { ScriptDialogContext, ScriptPhase, ScriptRunTime, ScriptResult, PersistedScriptResult, ScriptError, AgentContext, AgentEnvSetOptions, StorageContextApi, } from './types/script-context'; export { getScriptPhase } from './types/script-context'; export type { NluScriptApi, PlatformApi, DialogApi, ScheduleCallOptions, SendMessageOptions, InboundMessage, MessagingApi, } from './types/platform'; export type { ScriptLogger } from './types/logger'; export { TranscriptionRole } from './types/logger'; export type { MediaChannel, ChannelAudio, ChannelEvents, } from './types/media-channel'; export type { ChannelLlm, LlmOptions, LlmStreamChunk, ExtractOptions, PersistentLlmStreamHandle, PersistentLlmSendHandle, CreateDialogOptions, UpdateDialogOptions, DialogInfo, } from './types/llm'; export type { ChannelSip, SipState, SipProgressEvent, SipInviteHeaders, ParsedSdpDetails, } from './types/sip'; export type { MediaError } from './types/errors'; export type { AsrHandle, AsrConfig, AsrVadConfig, AsrSmartTurnConfig } from './types/asr-handle'; export type { TtsHandle, TtsConfig, TtsSayOptions, TtsPresayOptions, TtsUtteranceEvent, TtsUtteranceCancelReason, } from './types/tts-handle'; export type { MixerQueueControl, PlayOptions, PresayOptions, PreloadOptions, TtsStrategy, TtsVendor } from './types/mixer'; export type { LegacyPhraseRecord, LegacyGetRecordsParams, CacheOptions, } from './types/legacy-phrase'; export { LEGACY_PHRASE_RECORD_BRAND, isLegacyPhraseRecord, } from './types/legacy-phrase'; export type { TextInput } from './types/text-input'; export type { DtmfEvent, SipInfo, SipSignal, DataMessage, } from './types/events'; export type { NluExtractOptions, NluInferResult } from './types/nlu'; export { parseRecallCount, parseRecallDelaySeconds } from './recall-utils'; //# sourceMappingURL=index.d.ts.map