twilio-agent-connect 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +99 -23
- package/dist/index.js +252 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -104,8 +104,9 @@ declare const EnvironmentVariables: {
|
|
|
104
104
|
* Memory retrieval mode for channels.
|
|
105
105
|
*
|
|
106
106
|
* - "always": Fetch memory with the message as query on every inbound message.
|
|
107
|
-
* - "once": Fetch memory once at conversation start with
|
|
108
|
-
* cache it. The cache is
|
|
107
|
+
* - "once": Fetch memory once at conversation start with no query (and no
|
|
108
|
+
* conversation id, skipping query expansion) and cache it. The cache is
|
|
109
|
+
* invalidated when the conversation becomes INACTIVE.
|
|
109
110
|
* - "never": Never automatically fetch memory (default).
|
|
110
111
|
*/
|
|
111
112
|
declare const MemoryModeSchema: z.ZodEnum<{
|
|
@@ -1483,8 +1484,8 @@ interface InitiateConversationResult {
|
|
|
1483
1484
|
/**
|
|
1484
1485
|
* Result of initiating an outbound voice conversation.
|
|
1485
1486
|
* Note: conversationId is not included because the conversation is created by
|
|
1486
|
-
* Conversation Orchestrator during passive hydration — the SDK discovers it
|
|
1487
|
-
*
|
|
1487
|
+
* Conversation Orchestrator during passive hydration — the SDK discovers it by
|
|
1488
|
+
* callSid, in the background from WebSocket setup.
|
|
1488
1489
|
*/
|
|
1489
1490
|
interface InitiateVoiceConversationResult {
|
|
1490
1491
|
callSid: string;
|
|
@@ -1648,6 +1649,19 @@ declare const InterruptMessageSchema: z.ZodObject<{
|
|
|
1648
1649
|
durationUntilInterruptMs: z.ZodOptional<z.ZodNumber>;
|
|
1649
1650
|
}, z.core.$strip>;
|
|
1650
1651
|
type InterruptMessage = z.infer<typeof InterruptMessageSchema>;
|
|
1652
|
+
/**
|
|
1653
|
+
* WebSocket DTMF message (caller pressed a key).
|
|
1654
|
+
*
|
|
1655
|
+
* Only sent when `dtmfDetection` is enabled on `<ConversationRelay>`, and one
|
|
1656
|
+
* message per keypress — digits are never batched.
|
|
1657
|
+
*
|
|
1658
|
+
* @see https://www.twilio.com/docs/voice/conversationrelay/websocket-messages#dtmf-message
|
|
1659
|
+
*/
|
|
1660
|
+
declare const DtmfMessageSchema: z.ZodObject<{
|
|
1661
|
+
type: z.ZodLiteral<"dtmf">;
|
|
1662
|
+
digit: z.ZodString;
|
|
1663
|
+
}, z.core.$strip>;
|
|
1664
|
+
type DtmfMessage = z.infer<typeof DtmfMessageSchema>;
|
|
1651
1665
|
/**
|
|
1652
1666
|
* Union of all WebSocket message types
|
|
1653
1667
|
*/
|
|
@@ -1675,6 +1689,9 @@ declare const WebSocketMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1675
1689
|
type: z.ZodLiteral<"interrupt">;
|
|
1676
1690
|
utteranceUntilInterrupt: z.ZodOptional<z.ZodString>;
|
|
1677
1691
|
durationUntilInterruptMs: z.ZodOptional<z.ZodNumber>;
|
|
1692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1693
|
+
type: z.ZodLiteral<"dtmf">;
|
|
1694
|
+
digit: z.ZodString;
|
|
1678
1695
|
}, z.core.$strip>]>;
|
|
1679
1696
|
type WebSocketMessage = z.infer<typeof WebSocketMessageSchema>;
|
|
1680
1697
|
/**
|
|
@@ -2481,7 +2498,7 @@ declare class TACConfig {
|
|
|
2481
2498
|
* Optional environment variables:
|
|
2482
2499
|
* - TWILIO_WHATSAPP_NUMBER: WhatsApp number for WhatsApp channel (e.g., 'whatsapp:+1234567890')
|
|
2483
2500
|
* - TWILIO_CONVERSATION_CONFIGURATION_ID: Conversation Orchestrator configuration ID (enables orchestrated mode)
|
|
2484
|
-
* - TWILIO_VOICE_PUBLIC_DOMAIN: Public domain for voice routes (required for voice;
|
|
2501
|
+
* - TWILIO_VOICE_PUBLIC_DOMAIN: Public domain for voice routes (required for voice; a port and/or base path are allowed, e.g., 'abc123.ngrok.app', 'example.ngrok.app:8080', or 'example.com/server1')
|
|
2485
2502
|
* - TWILIO_VOICE_WEBSOCKET_PATH: Path for the voice WebSocket (default: /ws)
|
|
2486
2503
|
* - TWILIO_VOICE_ACTION_PATH: Path for the ConversationRelay action callback (default: /conversation-relay-callback)
|
|
2487
2504
|
* - TWILIO_VOICE_CALL_EVENT_PATH: Base path for the call-event callbacks — status, async AMD, recording (default: /twilio/call-events)
|
|
@@ -2846,7 +2863,7 @@ interface BaseChannelOptions {
|
|
|
2846
2863
|
*
|
|
2847
2864
|
* - "never": Memory is not automatically retrieved. Use the memory TAC tool or manually call `tac.retrieveMemory()` in callbacks for conditional retrieval.
|
|
2848
2865
|
* - "always": Memory is automatically retrieved (using the message as query) for every inbound message and available in `onMessageReady` callback.
|
|
2849
|
-
* - "once": Memory is retrieved once at conversation start with
|
|
2866
|
+
* - "once": Memory is retrieved once at conversation start with no query (and no conversation id) and cached on the session. Subsequent messages reuse the cache until the conversation becomes INACTIVE.
|
|
2850
2867
|
*/
|
|
2851
2868
|
memoryMode?: MemoryMode;
|
|
2852
2869
|
/**
|
|
@@ -2984,9 +3001,9 @@ declare abstract class BaseChannel {
|
|
|
2984
3001
|
*
|
|
2985
3002
|
* Modes:
|
|
2986
3003
|
* - "always": Fetch with the provided query on every message.
|
|
2987
|
-
* - "once": Fetch once with
|
|
2988
|
-
*
|
|
2989
|
-
* INACTIVE transition.
|
|
3004
|
+
* - "once": Fetch once with neither a query nor a conversation id (skipping
|
|
3005
|
+
* query expansion) and cache the result on the session. Subsequent calls
|
|
3006
|
+
* reuse the cache until it is invalidated on the INACTIVE transition.
|
|
2990
3007
|
* - "never": Skip retrieval.
|
|
2991
3008
|
*
|
|
2992
3009
|
* Memory retrieval failures are logged and swallowed so message processing
|
|
@@ -3137,6 +3154,10 @@ declare class TAC {
|
|
|
3137
3154
|
*
|
|
3138
3155
|
* @param session - Conversation session context
|
|
3139
3156
|
* @param query - Optional semantic search query
|
|
3157
|
+
* @param conversationId - Passed through to `/Recall` as-is. Sending one
|
|
3158
|
+
* without a `query` makes Memory infer one from that conversation's history
|
|
3159
|
+
* — an expensive server-side step — so leave it unset when there is no
|
|
3160
|
+
* per-turn topic (e.g. `"once"` mode's cache-priming fetch).
|
|
3140
3161
|
* @returns Promise containing TACMemoryResponse wrapper providing unified access to memory data.
|
|
3141
3162
|
*
|
|
3142
3163
|
* Attempts to retrieve from Memory API first:
|
|
@@ -3147,7 +3168,7 @@ declare class TAC {
|
|
|
3147
3168
|
* - observations and summaries are empty arrays
|
|
3148
3169
|
* - communications have basic fields only (no author name/type)
|
|
3149
3170
|
*/
|
|
3150
|
-
retrieveMemory(session: ConversationSession, query?: string): Promise<TACMemoryResponse>;
|
|
3171
|
+
retrieveMemory(session: ConversationSession, query?: string, conversationId?: string): Promise<TACMemoryResponse>;
|
|
3151
3172
|
/**
|
|
3152
3173
|
* Fetch profile information with traits
|
|
3153
3174
|
*
|
|
@@ -3527,6 +3548,22 @@ type CallStatusHandler = (event: CallStatusEvent) => Promise<void> | void;
|
|
|
3527
3548
|
type AmdHandler = (event: AmdEvent) => Promise<void> | void;
|
|
3528
3549
|
/** Handler for Twilio `recordingStatusCallback` webhooks. */
|
|
3529
3550
|
type RecordingHandler = (event: RecordingEvent) => Promise<void> | void;
|
|
3551
|
+
/** One ConversationRelay keypress, as delivered to a {@link DtmfHandler}. */
|
|
3552
|
+
interface DtmfEvent {
|
|
3553
|
+
/**
|
|
3554
|
+
* Undefined only when the keypress beat conversation setup: `dtmf` before
|
|
3555
|
+
* ConversationRelay's `setup`, or an orchestrated-mode lookup that failed.
|
|
3556
|
+
*/
|
|
3557
|
+
conversationId: ConversationId | undefined;
|
|
3558
|
+
/** Undefined only before ConversationRelay's `setup` message. */
|
|
3559
|
+
callSid: string | undefined;
|
|
3560
|
+
/** The key pressed: `0`-`9`, `*`, `#`, or `A`-`D`. */
|
|
3561
|
+
digit: string;
|
|
3562
|
+
/** Present whenever `conversationId` is. */
|
|
3563
|
+
session?: ConversationSession;
|
|
3564
|
+
}
|
|
3565
|
+
/** Handler for ConversationRelay `dtmf` messages (caller keypresses). */
|
|
3566
|
+
type DtmfHandler = (event: DtmfEvent) => Promise<void> | void;
|
|
3530
3567
|
/**
|
|
3531
3568
|
* Voice channel event callbacks extending base callbacks
|
|
3532
3569
|
*/
|
|
@@ -3549,6 +3586,12 @@ interface VoiceChannelEvents extends BaseChannelEvents {
|
|
|
3549
3586
|
utteranceUntilInterrupt: string | undefined;
|
|
3550
3587
|
durationUntilInterruptMs: number | undefined;
|
|
3551
3588
|
}) => void;
|
|
3589
|
+
/** Caller keypress. See {@link VoiceChannel.onDtmf}. */
|
|
3590
|
+
onDtmf?: DtmfHandler;
|
|
3591
|
+
/**
|
|
3592
|
+
* Fired once the session and WebSocket registration exist — in orchestrated
|
|
3593
|
+
* mode possibly before the first prompt, since the lookup starts at setup.
|
|
3594
|
+
*/
|
|
3552
3595
|
onWebSocketConnected?: (data: {
|
|
3553
3596
|
conversationId: ConversationId;
|
|
3554
3597
|
}) => void;
|
|
@@ -3666,6 +3709,30 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3666
3709
|
* ```
|
|
3667
3710
|
*/
|
|
3668
3711
|
onRecording(callback: RecordingHandler): void;
|
|
3712
|
+
/**
|
|
3713
|
+
* Register a handler for DTMF keypresses, called once per key in order.
|
|
3714
|
+
*
|
|
3715
|
+
* Requires `dtmfDetection: true` on the ConversationRelay config — without it
|
|
3716
|
+
* Twilio sends nothing and this never fires. Digits aren't buffered, so
|
|
3717
|
+
* accumulating a multi-digit entry is the handler's job.
|
|
3718
|
+
*
|
|
3719
|
+
* A keypress initializes the conversation just as a prompt does, since a
|
|
3720
|
+
* caller can type without ever speaking; if that fails the digit still
|
|
3721
|
+
* arrives, with `conversationId` and `session` undefined. Keypresses don't
|
|
3722
|
+
* cancel in-flight streaming on their own — that's a separate `interrupt`
|
|
3723
|
+
* message, sent when `interruptible` includes `dtmf`.
|
|
3724
|
+
*
|
|
3725
|
+
* @example
|
|
3726
|
+
* ```typescript
|
|
3727
|
+
* const digits = new Map<string, string>();
|
|
3728
|
+
*
|
|
3729
|
+
* voiceChannel.onDtmf(({ conversationId, digit }) => {
|
|
3730
|
+
* if (!conversationId) return;
|
|
3731
|
+
* digits.set(conversationId, (digits.get(conversationId) ?? '') + digit);
|
|
3732
|
+
* });
|
|
3733
|
+
* ```
|
|
3734
|
+
*/
|
|
3735
|
+
onDtmf(callback: DtmfHandler): void;
|
|
3669
3736
|
/**
|
|
3670
3737
|
* Resolve the public WebSocket URL from `TACConfig.voicePublicDomain` +
|
|
3671
3738
|
* `TACConfig.voiceWebsocketPath`. Throws if `voicePublicDomain` isn't set.
|
|
@@ -3706,6 +3773,13 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3706
3773
|
* Get active WebSocket connection for a conversation
|
|
3707
3774
|
*/
|
|
3708
3775
|
getWebsocket(conversationId: ConversationId): WebSocket | null;
|
|
3776
|
+
/**
|
|
3777
|
+
* Poll Conversation Orchestrator for the conversation ConversationRelay
|
|
3778
|
+
* created for `callSid`, then register the local session and WebSocket.
|
|
3779
|
+
* Runs in the background from `setup`, so those can exist before the
|
|
3780
|
+
* caller speaks.
|
|
3781
|
+
*/
|
|
3782
|
+
private initializeOrchestratedConversation;
|
|
3709
3783
|
/**
|
|
3710
3784
|
* Handle WebSocket connection from ConversationRelay
|
|
3711
3785
|
*/
|
|
@@ -3718,6 +3792,10 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3718
3792
|
* Handle WebSocket interrupt message
|
|
3719
3793
|
*/
|
|
3720
3794
|
private handleInterruptMessage;
|
|
3795
|
+
/**
|
|
3796
|
+
* Handle WebSocket DTMF message (caller keypress)
|
|
3797
|
+
*/
|
|
3798
|
+
private handleDtmfMessage;
|
|
3721
3799
|
/**
|
|
3722
3800
|
* Handle WebSocket disconnection. In orchestrated mode the conversation stays
|
|
3723
3801
|
* tracked until the CLOSED webhook (so a follow-up call can reuse it); in
|
|
@@ -3860,8 +3938,8 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3860
3938
|
*
|
|
3861
3939
|
* Places an outbound call with inline TwiML that connects to ConversationRelay.
|
|
3862
3940
|
* The conversationConfiguration attribute tells CO to create and manage the
|
|
3863
|
-
* conversation during passive hydration. The session is initialized
|
|
3864
|
-
*
|
|
3941
|
+
* conversation during passive hydration. The session is initialized when the
|
|
3942
|
+
* background callSid lookup started at WebSocket setup finds it.
|
|
3865
3943
|
*
|
|
3866
3944
|
* TwiML fields are merged per-field, highest precedence first:
|
|
3867
3945
|
* 1. `options.twimlOptions` — per-call overrides
|
|
@@ -3959,9 +4037,8 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3959
4037
|
/**
|
|
3960
4038
|
* Hang up a call and clean up its ConversationRelay session.
|
|
3961
4039
|
*
|
|
3962
|
-
* Works on `callSid` alone,
|
|
3963
|
-
*
|
|
3964
|
-
* cleanup no-ops if no tracked session matches.
|
|
4040
|
+
* Works on `callSid` alone, whether or not a session exists yet. No-ops the
|
|
4041
|
+
* session cleanup if none is tracked.
|
|
3965
4042
|
*
|
|
3966
4043
|
* Does not throw — hanging up an already-ended call is routine (the callee
|
|
3967
4044
|
* hangs up while AMD is still resolving), and handlers shouldn't have to
|
|
@@ -3981,11 +4058,10 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
3981
4058
|
* keyed by conversation id: the Orchestrator conversation id in orchestrator
|
|
3982
4059
|
* mode, the CallSid only in ConversationRelay-only mode.
|
|
3983
4060
|
*
|
|
3984
|
-
*
|
|
3985
|
-
*
|
|
3986
|
-
*
|
|
3987
|
-
*
|
|
3988
|
-
* needs no session.
|
|
4061
|
+
* Relay-only mode creates the session on the first prompt; orchestrated
|
|
4062
|
+
* mode creates it when the lookup started at setup finishes, so it may
|
|
4063
|
+
* exist before the caller speaks — including before `onAmd` fires. Treat it
|
|
4064
|
+
* as racy and hang up with {@link endCall}, which needs no session.
|
|
3989
4065
|
*
|
|
3990
4066
|
* At the other end, orchestrator mode keeps the session until Conversation
|
|
3991
4067
|
* Orchestrator's CLOSED webhook, so it outlives the call and `onCallStatus` /
|
|
@@ -4004,8 +4080,8 @@ declare class VoiceChannel extends BaseChannel {
|
|
|
4004
4080
|
*
|
|
4005
4081
|
* @param callSid - Twilio Call SID, e.g. from
|
|
4006
4082
|
* `InitiateVoiceConversationResult.callSid` or a call event.
|
|
4007
|
-
* @returns The session, or `undefined` —
|
|
4008
|
-
*
|
|
4083
|
+
* @returns The session, or `undefined` — not created yet, the call ended, or
|
|
4084
|
+
* it landed on another instance (see the horizontal-scaling note in
|
|
4009
4085
|
* CLAUDE.md).
|
|
4010
4086
|
*/
|
|
4011
4087
|
getConversationSessionByCallSid(callSid: string): ConversationSession | undefined;
|
|
@@ -4636,4 +4712,4 @@ declare class TACServer {
|
|
|
4636
4712
|
stop(): Promise<void>;
|
|
4637
4713
|
}
|
|
4638
4714
|
|
|
4639
|
-
export { type ActionChannelSettings, ActionChannelSettingsSchema, type ActionParticipantRef, ActionParticipantRefSchema, type ActionResponse, ActionResponseSchema, type ActionTextContent, ActionTextContentSchema, type AdapterOptions, type AmdEvent, AmdEventSchema, type AmdHandler, type AnthropicTool, AnthropicToolSchema, type AuthorInfo, AuthorInfoSchema, BaseChannel, type BaseChannelEvents, type BaseChannelOptions, BaseClient, type BuiltInToolName, BuiltInTools, CALL_EVENT_KINDS, type CallEventKind, CallEventKindSchema, type CallOptions, CallOptionsSchema, type CallStatusEvent, CallStatusEventSchema, type CallStatusHandler, type CaptureRule, CaptureRuleSchema, type ChannelSettings, ChannelSettingsSchema, type ChannelType, ChannelTypeSchema, ChatChannel, type ChatChannelConfig, type CintelParticipant, CintelParticipantSchema, type Communication, type CommunicationContent, CommunicationContentSchema, type CommunicationParticipant, CommunicationParticipantSchema, CommunicationSchema, type ConversationAddress, ConversationAddressSchema, ConversationClient, type ConversationConfiguration, ConversationConfigurationSchema, type ConversationEndedCallback, type ConversationGroupingType, ConversationGroupingTypeSchema, type ConversationId, type ConversationIntelligenceConfig, ConversationIntelligenceConfigSchema, type ConversationParticipant, ConversationParticipantSchema, type ConversationRelayAttributes, ConversationRelayAttributesSchema, type ConversationRelayCallbackPayload, ConversationRelayCallbackPayloadSchema, type ConversationRelayConfig, ConversationRelayConfigSchema, type ConversationResponse, ConversationResponseSchema, type ConversationSession, ConversationSessionSchema, type ConversationSummaryItem, ConversationSummaryItemSchema, type ConversationWebhookPayload, type CreateConversationSummariesResponse, CreateConversationSummariesResponseSchema, type CreateObservationResponse, CreateObservationResponseSchema, type CreateObservationsRequest, CreateObservationsRequestSchema, type CustomParameters, CustomParametersSchema, EMPTY_MEMORY_RESPONSE, EnvironmentVariables, type ExecutionDetails, ExecutionDetailsSchema, type HandoffPayload, HandoffPayloadSchema, type HandoffResult, type InboundCallTwimlHandler, type InitiateChatConversationOptions, type InitiateConversationResult, type InitiateMessagingConversationOptions, InitiateMessagingConversationOptionsSchema, type InitiateVoiceConversationOptions, InitiateVoiceConversationOptionsSchema, type InitiateVoiceConversationResult, type IntelligenceConfiguration, IntelligenceConfigurationSchema, type InterruptCallback, type InterruptMessage, InterruptMessageSchema, type InterruptMode, InterruptModeSchema, type JSONSchema, JSONSchemaSchema, type KnowledgeBase, KnowledgeBaseSchema, type KnowledgeBaseStatus, KnowledgeBaseStatusSchema, type KnowledgeChunkResult, KnowledgeChunkResultSchema, KnowledgeClient, type KnowledgeSearchResponse, KnowledgeSearchResponseSchema, type LanguageAttributes, LanguageAttributesSchema, type LanguageConfig, LanguageConfigSchema, type ListCommunicationsResponse, ListCommunicationsResponseSchema, type ListConversationsResponse, ListConversationsResponseSchema, type ListParticipantsResponse, ListParticipantsResponseSchema, type Logger, type MemoryChannelType, MemoryChannelTypeSchema, MemoryClient, type MemoryCommunication, type MemoryCommunicationContent, MemoryCommunicationContentSchema, MemoryCommunicationSchema, type MemoryDeliveryStatus, MemoryDeliveryStatusSchema, type MemoryMode, MemoryModeSchema, type MemoryParticipant, MemoryParticipantSchema, type MemoryParticipantType, MemoryParticipantTypeSchema, MemoryPromptBuilder, type MemoryRetrievalRequest, MemoryRetrievalRequestSchema, type MemoryRetrievalResponse, MemoryRetrievalResponseSchema, type MessageDirection, MessageDirectionSchema, type MessageReadyCallback, MessagingChannel, type MessagingChannelConfig, type MessagingChannelEvents, type ObservationCreateRequest, ObservationCreateRequestSchema, type ObservationInfo, ObservationInfoSchema, type OpenAITool, OpenAIToolSchema, type Operator, type OperatorProcessingResult, OperatorProcessingResultSchema, type OperatorResult, type OperatorResultEvent, OperatorResultEventSchema, OperatorResultProcessor, OperatorResultSchema, OperatorSchema, type ParticipantAddress, ParticipantAddressSchema, type ParticipantAddressType, ParticipantAddressTypeSchema, type ParticipantId, type PendingHandoffData, PendingHandoffDataSchema, type Profile, type ProfileId, type ProfileLookupResponse, ProfileLookupResponseSchema, type ProfileResponse, ProfileResponseSchema, type PromptMessage, PromptMessageSchema, RCSChannel, type RecordingEvent, RecordingEventSchema, type RecordingHandler, SMSChannel, type SendMessageActionPayload, SendMessageActionPayloadSchema, type SendMessageActionRequest, SendMessageActionRequestSchema, type SessionInfo, SessionInfoSchema, type SessionMessage, SessionMessageSchema, type SetupMessage, SetupMessageSchema, type StatusCallback, StatusCallbackSchema, type StatusTimeouts, StatusTimeoutsSchema, type StreamTask, type SummaryInfo, SummaryInfoSchema, TAC, type TACChannelType, TACChannelTypeSchema, type TACCommunication, type TACCommunicationAuthor, TACCommunicationAuthorSchema, type TACCommunicationContent, TACCommunicationContentSchema, TACCommunicationSchema, TACConfig, type TACConfigData, TACConfigSchema, type TACDeliveryStatus, TACDeliveryStatusSchema, TACMemoryResponse, type TACOptions, type TACParticipantType, TACParticipantTypeSchema, TACServer, type TACServerConfig, TACTool, type TextTokenMessage, TextTokenMessageSchema, type ToolContext, type ToolExecutionResult, ToolExecutionResultSchema, type ToolFunction, type Transcription, TranscriptionSchema, type TranscriptionWord, TranscriptionWordSchema, type TwiMLOptions, TwiMLOptionsSchema, type TwiMLRequest, TwiMLRequestSchema, type TwilioMemoryConfig, TwilioMemoryConfigSchema, type TypedCallOptions, VoiceChannel, type VoiceChannelConfig, type VoiceChannelEvents, type WebSocketMessage, WebSocketMessageSchema, WhatsAppChannel, type _CallsCreateDriftGuards, type _SDKDriftGuards, amdEventFromForm, buildHandoffPayload, callOptionsToCreateParams, callStatusEventFromForm, createKnowledgeSearchTool, createKnowledgeSearchToolAsync, createKnowledgeTools, createLogger, createMemoryRetrievalTool, createMemoryTools, createMessagingTools, createSendMessageTool, createStudioHandoffTool, defineTool, isConversationId, isParticipantId, isProfileId, maskAddress, maskEmail, maskPhone, postStudioHandoff, recordingEventFromForm, redactTwimlParameters, scrubObject, scrubPii, studioExecutionsUrl, studioVoiceHandoffUrl, twiMLRequestFromForm };
|
|
4715
|
+
export { type ActionChannelSettings, ActionChannelSettingsSchema, type ActionParticipantRef, ActionParticipantRefSchema, type ActionResponse, ActionResponseSchema, type ActionTextContent, ActionTextContentSchema, type AdapterOptions, type AmdEvent, AmdEventSchema, type AmdHandler, type AnthropicTool, AnthropicToolSchema, type AuthorInfo, AuthorInfoSchema, BaseChannel, type BaseChannelEvents, type BaseChannelOptions, BaseClient, type BuiltInToolName, BuiltInTools, CALL_EVENT_KINDS, type CallEventKind, CallEventKindSchema, type CallOptions, CallOptionsSchema, type CallStatusEvent, CallStatusEventSchema, type CallStatusHandler, type CaptureRule, CaptureRuleSchema, type ChannelSettings, ChannelSettingsSchema, type ChannelType, ChannelTypeSchema, ChatChannel, type ChatChannelConfig, type CintelParticipant, CintelParticipantSchema, type Communication, type CommunicationContent, CommunicationContentSchema, type CommunicationParticipant, CommunicationParticipantSchema, CommunicationSchema, type ConversationAddress, ConversationAddressSchema, ConversationClient, type ConversationConfiguration, ConversationConfigurationSchema, type ConversationEndedCallback, type ConversationGroupingType, ConversationGroupingTypeSchema, type ConversationId, type ConversationIntelligenceConfig, ConversationIntelligenceConfigSchema, type ConversationParticipant, ConversationParticipantSchema, type ConversationRelayAttributes, ConversationRelayAttributesSchema, type ConversationRelayCallbackPayload, ConversationRelayCallbackPayloadSchema, type ConversationRelayConfig, ConversationRelayConfigSchema, type ConversationResponse, ConversationResponseSchema, type ConversationSession, ConversationSessionSchema, type ConversationSummaryItem, ConversationSummaryItemSchema, type ConversationWebhookPayload, type CreateConversationSummariesResponse, CreateConversationSummariesResponseSchema, type CreateObservationResponse, CreateObservationResponseSchema, type CreateObservationsRequest, CreateObservationsRequestSchema, type CustomParameters, CustomParametersSchema, type DtmfEvent, type DtmfHandler, type DtmfMessage, DtmfMessageSchema, EMPTY_MEMORY_RESPONSE, EnvironmentVariables, type ExecutionDetails, ExecutionDetailsSchema, type HandoffPayload, HandoffPayloadSchema, type HandoffResult, type InboundCallTwimlHandler, type InitiateChatConversationOptions, type InitiateConversationResult, type InitiateMessagingConversationOptions, InitiateMessagingConversationOptionsSchema, type InitiateVoiceConversationOptions, InitiateVoiceConversationOptionsSchema, type InitiateVoiceConversationResult, type IntelligenceConfiguration, IntelligenceConfigurationSchema, type InterruptCallback, type InterruptMessage, InterruptMessageSchema, type InterruptMode, InterruptModeSchema, type JSONSchema, JSONSchemaSchema, type KnowledgeBase, KnowledgeBaseSchema, type KnowledgeBaseStatus, KnowledgeBaseStatusSchema, type KnowledgeChunkResult, KnowledgeChunkResultSchema, KnowledgeClient, type KnowledgeSearchResponse, KnowledgeSearchResponseSchema, type LanguageAttributes, LanguageAttributesSchema, type LanguageConfig, LanguageConfigSchema, type ListCommunicationsResponse, ListCommunicationsResponseSchema, type ListConversationsResponse, ListConversationsResponseSchema, type ListParticipantsResponse, ListParticipantsResponseSchema, type Logger, type MemoryChannelType, MemoryChannelTypeSchema, MemoryClient, type MemoryCommunication, type MemoryCommunicationContent, MemoryCommunicationContentSchema, MemoryCommunicationSchema, type MemoryDeliveryStatus, MemoryDeliveryStatusSchema, type MemoryMode, MemoryModeSchema, type MemoryParticipant, MemoryParticipantSchema, type MemoryParticipantType, MemoryParticipantTypeSchema, MemoryPromptBuilder, type MemoryRetrievalRequest, MemoryRetrievalRequestSchema, type MemoryRetrievalResponse, MemoryRetrievalResponseSchema, type MessageDirection, MessageDirectionSchema, type MessageReadyCallback, MessagingChannel, type MessagingChannelConfig, type MessagingChannelEvents, type ObservationCreateRequest, ObservationCreateRequestSchema, type ObservationInfo, ObservationInfoSchema, type OpenAITool, OpenAIToolSchema, type Operator, type OperatorProcessingResult, OperatorProcessingResultSchema, type OperatorResult, type OperatorResultEvent, OperatorResultEventSchema, OperatorResultProcessor, OperatorResultSchema, OperatorSchema, type ParticipantAddress, ParticipantAddressSchema, type ParticipantAddressType, ParticipantAddressTypeSchema, type ParticipantId, type PendingHandoffData, PendingHandoffDataSchema, type Profile, type ProfileId, type ProfileLookupResponse, ProfileLookupResponseSchema, type ProfileResponse, ProfileResponseSchema, type PromptMessage, PromptMessageSchema, RCSChannel, type RecordingEvent, RecordingEventSchema, type RecordingHandler, SMSChannel, type SendMessageActionPayload, SendMessageActionPayloadSchema, type SendMessageActionRequest, SendMessageActionRequestSchema, type SessionInfo, SessionInfoSchema, type SessionMessage, SessionMessageSchema, type SetupMessage, SetupMessageSchema, type StatusCallback, StatusCallbackSchema, type StatusTimeouts, StatusTimeoutsSchema, type StreamTask, type SummaryInfo, SummaryInfoSchema, TAC, type TACChannelType, TACChannelTypeSchema, type TACCommunication, type TACCommunicationAuthor, TACCommunicationAuthorSchema, type TACCommunicationContent, TACCommunicationContentSchema, TACCommunicationSchema, TACConfig, type TACConfigData, TACConfigSchema, type TACDeliveryStatus, TACDeliveryStatusSchema, TACMemoryResponse, type TACOptions, type TACParticipantType, TACParticipantTypeSchema, TACServer, type TACServerConfig, TACTool, type TextTokenMessage, TextTokenMessageSchema, type ToolContext, type ToolExecutionResult, ToolExecutionResultSchema, type ToolFunction, type Transcription, TranscriptionSchema, type TranscriptionWord, TranscriptionWordSchema, type TwiMLOptions, TwiMLOptionsSchema, type TwiMLRequest, TwiMLRequestSchema, type TwilioMemoryConfig, TwilioMemoryConfigSchema, type TypedCallOptions, VoiceChannel, type VoiceChannelConfig, type VoiceChannelEvents, type WebSocketMessage, WebSocketMessageSchema, WhatsAppChannel, type _CallsCreateDriftGuards, type _SDKDriftGuards, amdEventFromForm, buildHandoffPayload, callOptionsToCreateParams, callStatusEventFromForm, createKnowledgeSearchTool, createKnowledgeSearchToolAsync, createKnowledgeTools, createLogger, createMemoryRetrievalTool, createMemoryTools, createMessagingTools, createSendMessageTool, createStudioHandoffTool, defineTool, isConversationId, isParticipantId, isProfileId, maskAddress, maskEmail, maskPhone, postStudioHandoff, recordingEventFromForm, redactTwimlParameters, scrubObject, scrubPii, studioExecutionsUrl, studioVoiceHandoffUrl, twiMLRequestFromForm };
|