telnyx-mcp 6.63.0 → 6.64.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/local-docs-search.js +2 -2
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +2 -2
- package/local-docs-search.mjs.map +1 -1
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/local-docs-search.ts +2 -2
- package/src/server.ts +1 -1
package/local-docs-search.js
CHANGED
|
@@ -38557,7 +38557,7 @@ const EMBEDDED_METHODS = [
|
|
|
38557
38557
|
endpoint: '/texml/ai_calls/{connection_id}',
|
|
38558
38558
|
httpMethod: 'post',
|
|
38559
38559
|
summary: 'Initiate an outbound AI call',
|
|
38560
|
-
description: 'Initiate an outbound AI call with warm-up support. Validates parameters, builds an internal TeXML with an AI Assistant configuration, encodes instructions into client state, and calls the dial API. The Twiml, Texml, and Url parameters are not allowed and will result in a 422 error
|
|
38560
|
+
description: 'Initiate an outbound AI call with warm-up support. Validates parameters, builds an internal TeXML with an AI Assistant configuration, encodes instructions into client state, and calls the dial API. The Twiml, Texml, and Url parameters are not allowed and will result in a 422 error.\n\n**Expected callback events:**\n\nStatus callbacks: `initiated`, `ringing`, `answered`, one terminal status (`completed`, `no-answer`, `busy`, `canceled`, or `failed`), then `analyzed` after post-call processing completes.\n\nConversation callbacks: `conversation_created` and `conversation_ended`.\n\nRecording, AMD, transcription, and deepfake detection callbacks are only sent when those features are enabled.\n',
|
|
38561
38561
|
stainlessPath: '(resource) texml > (method) initiate_ai_call',
|
|
38562
38562
|
qualified: 'client.texml.initiateAICall',
|
|
38563
38563
|
params: [
|
|
@@ -38603,7 +38603,7 @@ const EMBEDDED_METHODS = [
|
|
|
38603
38603
|
"Trim?: 'trim-silence' | 'do-not-trim';",
|
|
38604
38604
|
],
|
|
38605
38605
|
response: '{ call_sid?: string; from?: string; status?: string; to?: string; }',
|
|
38606
|
-
markdown: "## initiate_ai_call\n\n`client.texml.initiateAICall(connection_id: string, AIAssistantId: string, From: string, To: string, AIAssistantDynamicVariables?: object, AIAssistantVersion?: string, AsyncAmd?: boolean, AsyncAmdStatusCallback?: string, AsyncAmdStatusCallbackMethod?: 'GET' | 'POST', CallerId?: string, ConversationCallback?: string, ConversationCallbackMethod?: 'GET' | 'POST', ConversationCallbacks?: string[], CustomHeaders?: { name: string; value: string; }[], DetectionMode?: 'Premium' | 'Regular', MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd', MachineDetectionSilenceTimeout?: number, MachineDetectionSpeechEndThreshold?: number, MachineDetectionSpeechThreshold?: number, MachineDetectionTimeout?: number, Passports?: string, PreferredCodecs?: string, Record?: boolean, RecordingChannels?: 'mono' | 'dual', RecordingStatusCallback?: string, RecordingStatusCallbackEvent?: string, RecordingStatusCallbackMethod?: 'GET' | 'POST', RecordingTimeout?: number, RecordingTrack?: 'inbound' | 'outbound' | 'both', SendRecordingUrl?: boolean, SipAuthPassword?: string, SipAuthUsername?: string, SipRegion?: 'US' | 'Europe' | 'Canada' | 'Australia' | 'Middle East', StatusCallback?: string, StatusCallbackEvent?: string, StatusCallbackMethod?: 'GET' | 'POST', StatusCallbacks?: string[], TimeLimit?: number, Timeout?: number, Trim?: 'trim-silence' | 'do-not-trim'): { call_sid?: string; from?: string; status?: string; to?: string; }`\n\n**post** `/texml/ai_calls/{connection_id}`\n\nInitiate an outbound AI call with warm-up support. Validates parameters, builds an internal TeXML with an AI Assistant configuration, encodes instructions into client state, and calls the dial API. The Twiml, Texml, and Url parameters are not allowed and will result in a 422 error.\n\n### Parameters\n\n- `connection_id: string`\n\n- `AIAssistantId: string`\n The ID of the AI assistant to use for the call.\n\n- `From: string`\n The phone number of the party initiating the call. Phone numbers are formatted with a `+` and country code.\n\n- `To: string`\n The phone number of the called party. Phone numbers are formatted with a `+` and country code.\n\n- `AIAssistantDynamicVariables?: object`\n Key-value map of dynamic variables to pass to the AI assistant.\n\n- `AIAssistantVersion?: string`\n The version of the AI assistant to use.\n\n- `AsyncAmd?: boolean`\n Select whether to perform answering machine detection in the background. By default execution is blocked until Answering Machine Detection is completed.\n\n- `AsyncAmdStatusCallback?: string`\n URL destination for Telnyx to send AMD callback events to for the call.\n\n- `AsyncAmdStatusCallbackMethod?: 'GET' | 'POST'`\n HTTP request type used for `AsyncAmdStatusCallback`.\n\n- `CallerId?: string`\n To be used as the caller id name (SIP From Display Name) presented to the destination (`To` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and `-_~!.+` special characters. If omitted, the display name will be the same as the number in the `From` field.\n\n- `ConversationCallback?: string`\n URL destination for Telnyx to send conversation callback events
|
|
38606
|
+
markdown: "## initiate_ai_call\n\n`client.texml.initiateAICall(connection_id: string, AIAssistantId: string, From: string, To: string, AIAssistantDynamicVariables?: object, AIAssistantVersion?: string, AsyncAmd?: boolean, AsyncAmdStatusCallback?: string, AsyncAmdStatusCallbackMethod?: 'GET' | 'POST', CallerId?: string, ConversationCallback?: string, ConversationCallbackMethod?: 'GET' | 'POST', ConversationCallbacks?: string[], CustomHeaders?: { name: string; value: string; }[], DetectionMode?: 'Premium' | 'Regular', MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd', MachineDetectionSilenceTimeout?: number, MachineDetectionSpeechEndThreshold?: number, MachineDetectionSpeechThreshold?: number, MachineDetectionTimeout?: number, Passports?: string, PreferredCodecs?: string, Record?: boolean, RecordingChannels?: 'mono' | 'dual', RecordingStatusCallback?: string, RecordingStatusCallbackEvent?: string, RecordingStatusCallbackMethod?: 'GET' | 'POST', RecordingTimeout?: number, RecordingTrack?: 'inbound' | 'outbound' | 'both', SendRecordingUrl?: boolean, SipAuthPassword?: string, SipAuthUsername?: string, SipRegion?: 'US' | 'Europe' | 'Canada' | 'Australia' | 'Middle East', StatusCallback?: string, StatusCallbackEvent?: string, StatusCallbackMethod?: 'GET' | 'POST', StatusCallbacks?: string[], TimeLimit?: number, Timeout?: number, Trim?: 'trim-silence' | 'do-not-trim'): { call_sid?: string; from?: string; status?: string; to?: string; }`\n\n**post** `/texml/ai_calls/{connection_id}`\n\nInitiate an outbound AI call with warm-up support. Validates parameters, builds an internal TeXML with an AI Assistant configuration, encodes instructions into client state, and calls the dial API. The Twiml, Texml, and Url parameters are not allowed and will result in a 422 error.\n\n**Expected callback events:**\n\nStatus callbacks: `initiated`, `ringing`, `answered`, one terminal status (`completed`, `no-answer`, `busy`, `canceled`, or `failed`), then `analyzed` after post-call processing completes.\n\nConversation callbacks: `conversation_created` and `conversation_ended`.\n\nRecording, AMD, transcription, and deepfake detection callbacks are only sent when those features are enabled.\n\n\n### Parameters\n\n- `connection_id: string`\n\n- `AIAssistantId: string`\n The ID of the AI assistant to use for the call.\n\n- `From: string`\n The phone number of the party initiating the call. Phone numbers are formatted with a `+` and country code.\n\n- `To: string`\n The phone number of the called party. Phone numbers are formatted with a `+` and country code.\n\n- `AIAssistantDynamicVariables?: object`\n Key-value map of dynamic variables to pass to the AI assistant.\n\n- `AIAssistantVersion?: string`\n The version of the AI assistant to use.\n\n- `AsyncAmd?: boolean`\n Select whether to perform answering machine detection in the background. By default execution is blocked until Answering Machine Detection is completed.\n\n- `AsyncAmdStatusCallback?: string`\n URL destination for Telnyx to send AMD callback events to for the call.\n\n- `AsyncAmdStatusCallbackMethod?: 'GET' | 'POST'`\n HTTP request type used for `AsyncAmdStatusCallback`.\n\n- `CallerId?: string`\n To be used as the caller id name (SIP From Display Name) presented to the destination (`To` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and `-_~!.+` special characters. If omitted, the display name will be the same as the number in the `From` field.\n\n- `ConversationCallback?: string`\n URL destination for Telnyx to send AI conversation callback events for this call. Events include `conversation_created` and `conversation_ended`.\n\n- `ConversationCallbackMethod?: 'GET' | 'POST'`\n HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.\n\n- `ConversationCallbacks?: string[]`\n Array of URL destinations for AI conversation callback events for this call. Events include `conversation_created` and `conversation_ended`.\n\n- `CustomHeaders?: { name: string; value: string; }[]`\n Custom HTTP headers to be sent with the call. Each header should be an object with 'name' and 'value' properties.\n\n- `DetectionMode?: 'Premium' | 'Regular'`\n Allows you to choose between Premium and Standard detections.\n\n- `MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd'`\n Enables Answering Machine Detection.\n\n- `MachineDetectionSilenceTimeout?: number`\n If initial silence duration is greater than this value, consider it a machine. Ignored when `premium` detection is used.\n\n- `MachineDetectionSpeechEndThreshold?: number`\n Silence duration threshold after a greeting message or voice for it be considered human. Ignored when `premium` detection is used.\n\n- `MachineDetectionSpeechThreshold?: number`\n Maximum threshold of a human greeting. If greeting longer than this value, considered machine. Ignored when `premium` detection is used.\n\n- `MachineDetectionTimeout?: number`\n Maximum timeout threshold in milliseconds for overall detection.\n\n- `Passports?: string`\n A string of passport identifiers to associate with the call.\n\n- `PreferredCodecs?: string`\n The list of comma-separated codecs to be offered on a call.\n\n- `Record?: boolean`\n Whether to record the entire participant's call leg. Defaults to `false`.\n\n- `RecordingChannels?: 'mono' | 'dual'`\n The number of channels in the final recording. Defaults to `mono`.\n\n- `RecordingStatusCallback?: string`\n The URL the recording callbacks will be sent to.\n\n- `RecordingStatusCallbackEvent?: string`\n The changes to the recording's state that should generate a call to `RecordingStatusCallback`. Can be: `in-progress`, `completed` and `absent`. Separate multiple values with a space. Defaults to `completed`.\n\n- `RecordingStatusCallbackMethod?: 'GET' | 'POST'`\n HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.\n\n- `RecordingTimeout?: number`\n The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite).\n\n- `RecordingTrack?: 'inbound' | 'outbound' | 'both'`\n The audio track to record for the call. The default is `both`.\n\n- `SendRecordingUrl?: boolean`\n Whether to send RecordingUrl in webhooks.\n\n- `SipAuthPassword?: string`\n The password to use for SIP authentication.\n\n- `SipAuthUsername?: string`\n The username to use for SIP authentication.\n\n- `SipRegion?: 'US' | 'Europe' | 'Canada' | 'Australia' | 'Middle East'`\n Defines the SIP region to be used for the call.\n\n- `StatusCallback?: string`\n URL destination for Telnyx to send status callback events for this AI call. When provided, this per-call value overrides the status callback URL configured on the TeXML application/connection.\n\n- `StatusCallbackEvent?: string`\n The status callback events for which Telnyx should send a webhook for this AI call. Multiple events can be defined when separated by a space. Valid values: initiated, ringing, answered, completed, no-answer, busy, canceled, failed, analyzed. When provided, this per-call value overrides the status callback events configured on the TeXML application/connection.\n\n- `StatusCallbackMethod?: 'GET' | 'POST'`\n HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI call. When provided, this per-call value overrides the status callback method configured on the TeXML application/connection.\n\n- `StatusCallbacks?: string[]`\n Array of URL destinations for Telnyx to send status callback events for this AI call. When provided, these per-call values override the status callback URL configured on the TeXML application/connection.\n\n- `TimeLimit?: number`\n The maximum duration of the call in seconds. The minimum value is 30 and the maximum value is 14400 (4 hours). Default is 14400 seconds.\n\n- `Timeout?: number`\n The number of seconds to wait for the called party to answer the call before the call is canceled. The minimum value is 5 and the maximum value is 120. Default is 30 seconds.\n\n- `Trim?: 'trim-silence' | 'do-not-trim'`\n Whether to trim any leading and trailing silence from the recording. Defaults to `trim-silence`.\n\n### Returns\n\n- `{ call_sid?: string; from?: string; status?: string; to?: string; }`\n\n - `call_sid?: string`\n - `from?: string`\n - `status?: string`\n - `to?: string`\n\n### Example\n\n```typescript\nimport Telnyx from 'telnyx';\n\nconst client = new Telnyx();\n\nconst response = await client.texml.initiateAICall('connection_id', {\n AIAssistantId: 'ai-assistant-id-123',\n From: '+13120001234',\n To: '+13121230000',\n});\n\nconsole.log(response);\n```",
|
|
38607
38607
|
perLanguage: {
|
|
38608
38608
|
typescript: {
|
|
38609
38609
|
method: 'client.texml.initiateAICall',
|