telnyx 6.65.0 → 6.66.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/CHANGELOG.md +24 -0
- package/client.d.mts +11 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -10
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +114 -116
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +114 -116
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +139 -334
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +139 -334
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.mts +70 -241
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +70 -241
- package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
- package/resources/ai/assistants/index.d.mts +2 -2
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -2
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +6 -220
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +6 -220
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +2 -113
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +2 -113
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +177 -120
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +177 -120
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +3 -5
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +3 -5
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +1 -11
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -11
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/faxes/faxes.d.mts +24 -8
- package/resources/faxes/faxes.d.mts.map +1 -1
- package/resources/faxes/faxes.d.ts +24 -8
- package/resources/faxes/faxes.d.ts.map +1 -1
- package/resources/faxes/faxes.js +12 -0
- package/resources/faxes/faxes.js.map +1 -1
- package/resources/faxes/faxes.mjs +12 -0
- package/resources/faxes/faxes.mjs.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +25 -2
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +25 -2
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/public-internet-gateways.d.mts +40 -50
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +40 -50
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js +1 -1
- package/resources/public-internet-gateways.js.map +1 -1
- package/resources/public-internet-gateways.mjs +1 -1
- package/resources/public-internet-gateways.mjs.map +1 -1
- package/resources/shared.d.mts +10 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +10 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +27 -6
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +27 -6
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/texml.d.mts +9 -2
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +9 -2
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +211 -1861
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +211 -1861
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +48 -504
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +48 -504
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/webhooks.d.mts +20 -10
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +20 -10
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/wireguard-interfaces.d.mts +43 -127
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +43 -127
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +5 -2
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +5 -2
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +27 -16
- package/src/resources/ai/ai.ts +139 -130
- package/src/resources/ai/assistants/assistants.ts +164 -363
- package/src/resources/ai/assistants/canary-deploys.ts +75 -266
- package/src/resources/ai/assistants/index.ts +10 -0
- package/src/resources/ai/assistants/versions.ts +6 -244
- package/src/resources/ai/index.ts +6 -0
- package/src/resources/ai/openai/openai.ts +2 -131
- package/src/resources/calls/actions.ts +284 -184
- package/src/resources/calls/calls.ts +4 -0
- package/src/resources/calls/index.ts +2 -0
- package/src/resources/conferences/actions.ts +1 -13
- package/src/resources/faxes/faxes.ts +24 -8
- package/src/resources/index.ts +13 -8
- package/src/resources/networks/networks.ts +31 -4
- package/src/resources/public-internet-gateways.ts +46 -55
- package/src/resources/shared.ts +12 -0
- package/src/resources/texml/accounts/calls/calls.ts +30 -6
- package/src/resources/texml/texml.ts +10 -2
- package/src/resources/uac-connections/index.ts +6 -2
- package/src/resources/uac-connections/uac-connections.ts +397 -2396
- package/src/resources/virtual-cross-connects.ts +54 -595
- package/src/resources/webhooks.ts +21 -10
- package/src/resources/wireguard-interfaces.ts +53 -158
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -509,17 +509,15 @@ export class Actions extends APIResource {
|
|
|
509
509
|
*
|
|
510
510
|
* **Expected Webhooks:**
|
|
511
511
|
*
|
|
512
|
-
* - `
|
|
512
|
+
* - `call.conversation.ended` - Sent when the Conversation Relay session ends. If
|
|
513
|
+
* the customer WebSocket disconnects, the webhook payload `reason` is
|
|
514
|
+
* `customer_disconnect`.
|
|
513
515
|
*
|
|
514
516
|
* @example
|
|
515
517
|
* ```ts
|
|
516
518
|
* const response =
|
|
517
519
|
* await client.calls.actions.startConversationRelay(
|
|
518
520
|
* 'call_control_id',
|
|
519
|
-
* {
|
|
520
|
-
* conversation_relay_url:
|
|
521
|
-
* 'wss://example.com/conversation-relay',
|
|
522
|
-
* },
|
|
523
521
|
* );
|
|
524
522
|
* ```
|
|
525
523
|
*/
|
|
@@ -1404,7 +1402,9 @@ export interface TranscriptionConfig {
|
|
|
1404
1402
|
* meaningful values depend on the selected transcription `model`. For
|
|
1405
1403
|
* `deepgram/flux`, supported values are: `auto` (Telnyx language detection
|
|
1406
1404
|
* controls the language hint), `multi` (no language hint), and language-specific
|
|
1407
|
-
* hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`.
|
|
1405
|
+
* hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
1406
|
+
* `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
1407
|
+
* ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
1408
1408
|
*/
|
|
1409
1409
|
language?: string;
|
|
1410
1410
|
|
|
@@ -1418,6 +1418,8 @@ export interface TranscriptionConfig {
|
|
|
1418
1418
|
* transcription.
|
|
1419
1419
|
* - `assemblyai/universal-streaming` for live streaming transcription.
|
|
1420
1420
|
* - `xai/grok-stt` for live streaming transcription.
|
|
1421
|
+
* - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
1422
|
+
* automatic language detection.
|
|
1421
1423
|
* - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
1422
1424
|
* unsupported regions require `api_key_ref`.
|
|
1423
1425
|
* - `google/latest_long` for non-streaming multilingual transcription.
|
|
@@ -1435,6 +1437,7 @@ export interface TranscriptionConfig {
|
|
|
1435
1437
|
| 'speechmatics/enhanced'
|
|
1436
1438
|
| 'assemblyai/universal-streaming'
|
|
1437
1439
|
| 'xai/grok-stt'
|
|
1440
|
+
| 'soniox/stt-rt-v4'
|
|
1438
1441
|
| 'azure/fast'
|
|
1439
1442
|
| 'azure/realtime'
|
|
1440
1443
|
| 'google/latest_long'
|
|
@@ -1519,6 +1522,24 @@ export namespace TranscriptionEngineAConfig {
|
|
|
1519
1522
|
}
|
|
1520
1523
|
}
|
|
1521
1524
|
|
|
1525
|
+
export interface TranscriptionEngineAssemblyaiConfig {
|
|
1526
|
+
/**
|
|
1527
|
+
* Whether to send also interim results. If set to false, only final results will
|
|
1528
|
+
* be sent.
|
|
1529
|
+
*/
|
|
1530
|
+
interim_results?: boolean;
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Engine identifier for AssemblyAI transcription service
|
|
1534
|
+
*/
|
|
1535
|
+
transcription_engine?: 'AssemblyAI';
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* The model to use for transcription.
|
|
1539
|
+
*/
|
|
1540
|
+
transcription_model?: 'assemblyai/universal-streaming';
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1522
1543
|
export interface TranscriptionEngineAzureConfig {
|
|
1523
1544
|
/**
|
|
1524
1545
|
* Azure region to use for speech recognition
|
|
@@ -1732,6 +1753,54 @@ export interface TranscriptionEngineTelnyxConfig {
|
|
|
1732
1753
|
transcription_model?: 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo';
|
|
1733
1754
|
}
|
|
1734
1755
|
|
|
1756
|
+
export interface TranscriptionEngineXaiConfig {
|
|
1757
|
+
/**
|
|
1758
|
+
* Whether to send also interim results. If set to false, only final results will
|
|
1759
|
+
* be sent.
|
|
1760
|
+
*/
|
|
1761
|
+
interim_results?: boolean;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Language to use for speech recognition
|
|
1765
|
+
*/
|
|
1766
|
+
language?:
|
|
1767
|
+
| 'ar'
|
|
1768
|
+
| 'cs'
|
|
1769
|
+
| 'da'
|
|
1770
|
+
| 'de'
|
|
1771
|
+
| 'en'
|
|
1772
|
+
| 'es'
|
|
1773
|
+
| 'fa'
|
|
1774
|
+
| 'fil'
|
|
1775
|
+
| 'fr'
|
|
1776
|
+
| 'hi'
|
|
1777
|
+
| 'id'
|
|
1778
|
+
| 'it'
|
|
1779
|
+
| 'ja'
|
|
1780
|
+
| 'ko'
|
|
1781
|
+
| 'mk'
|
|
1782
|
+
| 'ms'
|
|
1783
|
+
| 'nl'
|
|
1784
|
+
| 'pl'
|
|
1785
|
+
| 'pt'
|
|
1786
|
+
| 'ro'
|
|
1787
|
+
| 'ru'
|
|
1788
|
+
| 'sv'
|
|
1789
|
+
| 'th'
|
|
1790
|
+
| 'tr'
|
|
1791
|
+
| 'vi';
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* Engine identifier for xAI transcription service
|
|
1795
|
+
*/
|
|
1796
|
+
transcription_engine?: 'xAI';
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* The model to use for transcription.
|
|
1800
|
+
*/
|
|
1801
|
+
transcription_model?: 'xai/grok-stt';
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1735
1804
|
export interface TranscriptionStartRequest {
|
|
1736
1805
|
/**
|
|
1737
1806
|
* Use this field to add state to every subsequent webhook. It must be a valid
|
|
@@ -1749,14 +1818,26 @@ export interface TranscriptionStartRequest {
|
|
|
1749
1818
|
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1750
1819
|
* `Telnyx` are supported for backward compatibility.
|
|
1751
1820
|
*/
|
|
1752
|
-
transcription_engine?:
|
|
1821
|
+
transcription_engine?:
|
|
1822
|
+
| 'Google'
|
|
1823
|
+
| 'Telnyx'
|
|
1824
|
+
| 'Deepgram'
|
|
1825
|
+
| 'Azure'
|
|
1826
|
+
| 'xAI'
|
|
1827
|
+
| 'AssemblyAI'
|
|
1828
|
+
| 'Speechmatics'
|
|
1829
|
+
| 'Soniox'
|
|
1830
|
+
| 'A'
|
|
1831
|
+
| 'B';
|
|
1753
1832
|
|
|
1754
1833
|
transcription_engine_config?:
|
|
1755
1834
|
| TranscriptionEngineGoogleConfig
|
|
1756
1835
|
| TranscriptionEngineTelnyxConfig
|
|
1757
1836
|
| TranscriptionEngineAzureConfig
|
|
1758
|
-
|
|
|
1759
|
-
|
|
|
1837
|
+
| TranscriptionEngineXaiConfig
|
|
1838
|
+
| TranscriptionEngineAssemblyaiConfig
|
|
1839
|
+
| TranscriptionStartRequest.TranscriptionEngineSpeechmaticsConfig
|
|
1840
|
+
| TranscriptionStartRequest.TranscriptionEngineSonioxConfig
|
|
1760
1841
|
| TranscriptionEngineAConfig
|
|
1761
1842
|
| TranscriptionEngineBConfig
|
|
1762
1843
|
| DeepgramNova2Config
|
|
@@ -1771,7 +1852,7 @@ export interface TranscriptionStartRequest {
|
|
|
1771
1852
|
}
|
|
1772
1853
|
|
|
1773
1854
|
export namespace TranscriptionStartRequest {
|
|
1774
|
-
export interface
|
|
1855
|
+
export interface TranscriptionEngineSpeechmaticsConfig {
|
|
1775
1856
|
/**
|
|
1776
1857
|
* Whether to send also interim results. If set to false, only final results will
|
|
1777
1858
|
* be sent.
|
|
@@ -1782,44 +1863,47 @@ export namespace TranscriptionStartRequest {
|
|
|
1782
1863
|
* Language to use for speech recognition
|
|
1783
1864
|
*/
|
|
1784
1865
|
language?:
|
|
1785
|
-
| 'ar'
|
|
1786
|
-
| 'cs'
|
|
1787
|
-
| 'da'
|
|
1788
|
-
| 'de'
|
|
1789
1866
|
| 'en'
|
|
1790
|
-
| '
|
|
1791
|
-
| '
|
|
1792
|
-
| '
|
|
1793
|
-
| '
|
|
1794
|
-
| '
|
|
1795
|
-
| '
|
|
1796
|
-
| '
|
|
1797
|
-
| '
|
|
1798
|
-
| '
|
|
1799
|
-
| '
|
|
1800
|
-
| '
|
|
1801
|
-
| '
|
|
1802
|
-
| '
|
|
1803
|
-
| '
|
|
1804
|
-
| '
|
|
1805
|
-
| '
|
|
1806
|
-
| 'sv'
|
|
1807
|
-
| 'th'
|
|
1808
|
-
| 'tr'
|
|
1809
|
-
| 'vi';
|
|
1867
|
+
| 'ba'
|
|
1868
|
+
| 'eu'
|
|
1869
|
+
| 'gl'
|
|
1870
|
+
| 'ga'
|
|
1871
|
+
| 'mt'
|
|
1872
|
+
| 'mn'
|
|
1873
|
+
| 'sw'
|
|
1874
|
+
| 'ug'
|
|
1875
|
+
| 'cy'
|
|
1876
|
+
| 'ar_en'
|
|
1877
|
+
| 'cmn_en'
|
|
1878
|
+
| 'en_ms'
|
|
1879
|
+
| 'en_ta'
|
|
1880
|
+
| 'tl'
|
|
1881
|
+
| 'es-bilingual-en'
|
|
1882
|
+
| 'cmn_en_ms_ta';
|
|
1810
1883
|
|
|
1811
1884
|
/**
|
|
1812
|
-
* Engine identifier for
|
|
1885
|
+
* Engine identifier for Speechmatics transcription service
|
|
1813
1886
|
*/
|
|
1814
|
-
transcription_engine?: '
|
|
1887
|
+
transcription_engine?: 'Speechmatics';
|
|
1815
1888
|
|
|
1816
1889
|
/**
|
|
1817
1890
|
* The model to use for transcription.
|
|
1818
1891
|
*/
|
|
1819
|
-
transcription_model?: '
|
|
1892
|
+
transcription_model?: 'speechmatics/standard';
|
|
1820
1893
|
}
|
|
1821
1894
|
|
|
1822
|
-
export interface
|
|
1895
|
+
export interface TranscriptionEngineSonioxConfig {
|
|
1896
|
+
/**
|
|
1897
|
+
* Engine identifier for Soniox transcription service
|
|
1898
|
+
*/
|
|
1899
|
+
transcription_engine: 'Soniox';
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* When true, Soniox emits end-of-utterance events at the cadence configured by
|
|
1903
|
+
* `max_endpoint_delay_ms`.
|
|
1904
|
+
*/
|
|
1905
|
+
enable_endpoint_detection?: boolean;
|
|
1906
|
+
|
|
1823
1907
|
/**
|
|
1824
1908
|
* Whether to send also interim results. If set to false, only final results will
|
|
1825
1909
|
* be sent.
|
|
@@ -1827,14 +1911,21 @@ export namespace TranscriptionStartRequest {
|
|
|
1827
1911
|
interim_results?: boolean;
|
|
1828
1912
|
|
|
1829
1913
|
/**
|
|
1830
|
-
*
|
|
1914
|
+
* ISO 639-1 language hint (e.g. `en`, `es`), or `auto` to omit the hint and let
|
|
1915
|
+
* Soniox auto-detect supported languages multilingually.
|
|
1831
1916
|
*/
|
|
1832
|
-
|
|
1917
|
+
language?: string;
|
|
1918
|
+
|
|
1919
|
+
/**
|
|
1920
|
+
* Maximum silence (in milliseconds) before Soniox emits an end-of-utterance event.
|
|
1921
|
+
* Only honored when `enable_endpoint_detection` is true. Range: 500-3000 ms.
|
|
1922
|
+
*/
|
|
1923
|
+
max_endpoint_delay_ms?: number;
|
|
1833
1924
|
|
|
1834
1925
|
/**
|
|
1835
1926
|
* The model to use for transcription.
|
|
1836
1927
|
*/
|
|
1837
|
-
transcription_model?: '
|
|
1928
|
+
transcription_model?: 'soniox/stt-rt-v4';
|
|
1838
1929
|
}
|
|
1839
1930
|
}
|
|
1840
1931
|
|
|
@@ -2797,7 +2888,7 @@ export interface ActionGatherUsingAIParams {
|
|
|
2797
2888
|
| Shared.AzureVoiceSettings
|
|
2798
2889
|
| Shared.RimeVoiceSettings
|
|
2799
2890
|
| Shared.ResembleVoiceSettings
|
|
2800
|
-
|
|
|
2891
|
+
| Shared.XaiVoiceSettings;
|
|
2801
2892
|
}
|
|
2802
2893
|
|
|
2803
2894
|
export namespace ActionGatherUsingAIParams {
|
|
@@ -2812,18 +2903,6 @@ export namespace ActionGatherUsingAIParams {
|
|
|
2812
2903
|
*/
|
|
2813
2904
|
role?: 'assistant' | 'user';
|
|
2814
2905
|
}
|
|
2815
|
-
|
|
2816
|
-
export interface XaiVoiceSettings {
|
|
2817
|
-
/**
|
|
2818
|
-
* Voice settings provider type
|
|
2819
|
-
*/
|
|
2820
|
-
type: 'xai';
|
|
2821
|
-
|
|
2822
|
-
/**
|
|
2823
|
-
* Language code, or `auto` to detect automatically.
|
|
2824
|
-
*/
|
|
2825
|
-
language?: string;
|
|
2826
|
-
}
|
|
2827
2906
|
}
|
|
2828
2907
|
|
|
2829
2908
|
export interface ActionGatherUsingAudioParams {
|
|
@@ -3081,7 +3160,7 @@ export interface ActionGatherUsingSpeakParams {
|
|
|
3081
3160
|
| Shared.RimeVoiceSettings
|
|
3082
3161
|
| Shared.ResembleVoiceSettings
|
|
3083
3162
|
| ActionGatherUsingSpeakParams.InworldVoiceSettings
|
|
3084
|
-
|
|
|
3163
|
+
| Shared.XaiVoiceSettings;
|
|
3085
3164
|
}
|
|
3086
3165
|
|
|
3087
3166
|
export namespace ActionGatherUsingSpeakParams {
|
|
@@ -3091,18 +3170,6 @@ export namespace ActionGatherUsingSpeakParams {
|
|
|
3091
3170
|
*/
|
|
3092
3171
|
type: 'inworld';
|
|
3093
3172
|
}
|
|
3094
|
-
|
|
3095
|
-
export interface XaiVoiceSettings {
|
|
3096
|
-
/**
|
|
3097
|
-
* Voice settings provider type
|
|
3098
|
-
*/
|
|
3099
|
-
type: 'xai';
|
|
3100
|
-
|
|
3101
|
-
/**
|
|
3102
|
-
* Language code, or `auto` to detect automatically.
|
|
3103
|
-
*/
|
|
3104
|
-
language?: string;
|
|
3105
|
-
}
|
|
3106
3173
|
}
|
|
3107
3174
|
|
|
3108
3175
|
export interface ActionHangupParams {
|
|
@@ -3476,7 +3543,7 @@ export interface ActionSpeakParams {
|
|
|
3476
3543
|
| Shared.RimeVoiceSettings
|
|
3477
3544
|
| Shared.ResembleVoiceSettings
|
|
3478
3545
|
| ActionSpeakParams.InworldVoiceSettings
|
|
3479
|
-
|
|
|
3546
|
+
| Shared.XaiVoiceSettings;
|
|
3480
3547
|
}
|
|
3481
3548
|
|
|
3482
3549
|
export namespace ActionSpeakParams {
|
|
@@ -3486,18 +3553,6 @@ export namespace ActionSpeakParams {
|
|
|
3486
3553
|
*/
|
|
3487
3554
|
type: 'inworld';
|
|
3488
3555
|
}
|
|
3489
|
-
|
|
3490
|
-
export interface XaiVoiceSettings {
|
|
3491
|
-
/**
|
|
3492
|
-
* Voice settings provider type
|
|
3493
|
-
*/
|
|
3494
|
-
type: 'xai';
|
|
3495
|
-
|
|
3496
|
-
/**
|
|
3497
|
-
* Language code, or `auto` to detect automatically.
|
|
3498
|
-
*/
|
|
3499
|
-
language?: string;
|
|
3500
|
-
}
|
|
3501
3556
|
}
|
|
3502
3557
|
|
|
3503
3558
|
export interface ActionStartAIAssistantParams {
|
|
@@ -3603,7 +3658,7 @@ export interface ActionStartAIAssistantParams {
|
|
|
3603
3658
|
| Shared.AzureVoiceSettings
|
|
3604
3659
|
| Shared.RimeVoiceSettings
|
|
3605
3660
|
| Shared.ResembleVoiceSettings
|
|
3606
|
-
|
|
|
3661
|
+
| Shared.XaiVoiceSettings;
|
|
3607
3662
|
}
|
|
3608
3663
|
|
|
3609
3664
|
export namespace ActionStartAIAssistantParams {
|
|
@@ -3771,27 +3826,9 @@ export namespace ActionStartAIAssistantParams {
|
|
|
3771
3826
|
*/
|
|
3772
3827
|
on_hangup?: 'continue_conversation' | 'end_conversation';
|
|
3773
3828
|
}
|
|
3774
|
-
|
|
3775
|
-
export interface XaiVoiceSettings {
|
|
3776
|
-
/**
|
|
3777
|
-
* Voice settings provider type
|
|
3778
|
-
*/
|
|
3779
|
-
type: 'xai';
|
|
3780
|
-
|
|
3781
|
-
/**
|
|
3782
|
-
* Language code, or `auto` to detect automatically.
|
|
3783
|
-
*/
|
|
3784
|
-
language?: string;
|
|
3785
|
-
}
|
|
3786
3829
|
}
|
|
3787
3830
|
|
|
3788
3831
|
export interface ActionStartConversationRelayParams {
|
|
3789
|
-
/**
|
|
3790
|
-
* WebSocket URL for your Conversation Relay server. Must start with `ws://` or
|
|
3791
|
-
* `wss://`.
|
|
3792
|
-
*/
|
|
3793
|
-
conversation_relay_url: string;
|
|
3794
|
-
|
|
3795
3832
|
/**
|
|
3796
3833
|
* Custom parameters for the Conversation Relay session. Pass key-value data as
|
|
3797
3834
|
* `assistant.dynamic_variables` to make it available to the relay session.
|
|
@@ -3815,6 +3852,22 @@ export interface ActionStartConversationRelayParams {
|
|
|
3815
3852
|
*/
|
|
3816
3853
|
conversation_relay_dtmf_detection?: boolean;
|
|
3817
3854
|
|
|
3855
|
+
/**
|
|
3856
|
+
* Conversation Relay connection settings. This object is used by TeXML Call
|
|
3857
|
+
* Scripting's `<ConversationRelay>` verb. The `interruptible` and
|
|
3858
|
+
* `interruptible_greeting` fields are shorthand for
|
|
3859
|
+
* `interruption_settings.interruptible` and
|
|
3860
|
+
* `interruption_settings.interruptible_greeting`; use top-level
|
|
3861
|
+
* `interruption_settings` for the full interruption settings shape.
|
|
3862
|
+
*/
|
|
3863
|
+
conversation_relay_settings?: ActionStartConversationRelayParams.ConversationRelaySettings;
|
|
3864
|
+
|
|
3865
|
+
/**
|
|
3866
|
+
* WebSocket URL for your Conversation Relay server. Must start with `ws://` or
|
|
3867
|
+
* `wss://`.
|
|
3868
|
+
*/
|
|
3869
|
+
conversation_relay_url?: string;
|
|
3870
|
+
|
|
3818
3871
|
/**
|
|
3819
3872
|
* Text played when the relay session starts.
|
|
3820
3873
|
*/
|
|
@@ -3838,16 +3891,6 @@ export interface ActionStartConversationRelayParams {
|
|
|
3838
3891
|
*/
|
|
3839
3892
|
languages?: Array<ActionStartConversationRelayParams.Language>;
|
|
3840
3893
|
|
|
3841
|
-
/**
|
|
3842
|
-
* Participants to add to the conversation.
|
|
3843
|
-
*/
|
|
3844
|
-
participants?: Array<ActionStartConversationRelayParams.Participant>;
|
|
3845
|
-
|
|
3846
|
-
/**
|
|
3847
|
-
* When true, sends message history update webhooks.
|
|
3848
|
-
*/
|
|
3849
|
-
send_message_history_updates?: boolean;
|
|
3850
|
-
|
|
3851
3894
|
/**
|
|
3852
3895
|
* Speech-to-text settings for Conversation Relay.
|
|
3853
3896
|
*/
|
|
@@ -3864,11 +3907,6 @@ export interface ActionStartConversationRelayParams {
|
|
|
3864
3907
|
*/
|
|
3865
3908
|
tts_language?: string;
|
|
3866
3909
|
|
|
3867
|
-
/**
|
|
3868
|
-
* Time in milliseconds to wait for caller input before timing out.
|
|
3869
|
-
*/
|
|
3870
|
-
user_response_timeout_ms?: number;
|
|
3871
|
-
|
|
3872
3910
|
/**
|
|
3873
3911
|
* The voice to be used by the voice assistant. Currently we support ElevenLabs,
|
|
3874
3912
|
* Telnyx and AWS voices.
|
|
@@ -3909,7 +3947,7 @@ export interface ActionStartConversationRelayParams {
|
|
|
3909
3947
|
| Shared.AzureVoiceSettings
|
|
3910
3948
|
| Shared.RimeVoiceSettings
|
|
3911
3949
|
| Shared.ResembleVoiceSettings
|
|
3912
|
-
|
|
|
3950
|
+
| Shared.XaiVoiceSettings;
|
|
3913
3951
|
}
|
|
3914
3952
|
|
|
3915
3953
|
export namespace ActionStartConversationRelayParams {
|
|
@@ -3926,6 +3964,78 @@ export namespace ActionStartConversationRelayParams {
|
|
|
3926
3964
|
[k: string]: unknown;
|
|
3927
3965
|
}
|
|
3928
3966
|
|
|
3967
|
+
/**
|
|
3968
|
+
* Conversation Relay connection settings. This object is used by TeXML Call
|
|
3969
|
+
* Scripting's `<ConversationRelay>` verb. The `interruptible` and
|
|
3970
|
+
* `interruptible_greeting` fields are shorthand for
|
|
3971
|
+
* `interruption_settings.interruptible` and
|
|
3972
|
+
* `interruption_settings.interruptible_greeting`; use top-level
|
|
3973
|
+
* `interruption_settings` for the full interruption settings shape.
|
|
3974
|
+
*/
|
|
3975
|
+
export interface ConversationRelaySettings {
|
|
3976
|
+
/**
|
|
3977
|
+
* WebSocket URL for your Conversation Relay server. Must start with `ws://` or
|
|
3978
|
+
* `wss://`.
|
|
3979
|
+
*/
|
|
3980
|
+
url: string;
|
|
3981
|
+
|
|
3982
|
+
/**
|
|
3983
|
+
* Whether to enable DTMF detection during the relay session.
|
|
3984
|
+
*/
|
|
3985
|
+
dtmf_detection?: boolean;
|
|
3986
|
+
|
|
3987
|
+
/**
|
|
3988
|
+
* Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
3989
|
+
* or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
3990
|
+
* only; `dtmf` allows DTMF only.
|
|
3991
|
+
*/
|
|
3992
|
+
interruptible?: 'none' | 'any' | 'speech' | 'dtmf';
|
|
3993
|
+
|
|
3994
|
+
/**
|
|
3995
|
+
* Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
3996
|
+
* or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
3997
|
+
* only; `dtmf` allows DTMF only.
|
|
3998
|
+
*/
|
|
3999
|
+
interruptible_greeting?: 'none' | 'any' | 'speech' | 'dtmf';
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* Language-specific TTS and transcription settings.
|
|
4003
|
+
*/
|
|
4004
|
+
languages?: Array<ConversationRelaySettings.Language>;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
export namespace ConversationRelaySettings {
|
|
4008
|
+
/**
|
|
4009
|
+
* Language-specific speech and transcription settings for Conversation Relay.
|
|
4010
|
+
*/
|
|
4011
|
+
export interface Language {
|
|
4012
|
+
/**
|
|
4013
|
+
* BCP 47 language code.
|
|
4014
|
+
*/
|
|
4015
|
+
code?: string;
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* Speech recognition model for this language.
|
|
4019
|
+
*/
|
|
4020
|
+
speech_model?: string;
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Speech-to-text provider for this language.
|
|
4024
|
+
*/
|
|
4025
|
+
transcription_provider?: string;
|
|
4026
|
+
|
|
4027
|
+
/**
|
|
4028
|
+
* Text-to-speech provider for this language.
|
|
4029
|
+
*/
|
|
4030
|
+
tts_provider?: string;
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Voice identifier for this language.
|
|
4034
|
+
*/
|
|
4035
|
+
voice?: string;
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
|
|
3929
4039
|
/**
|
|
3930
4040
|
* Settings for handling caller interruptions during Conversation Relay speech.
|
|
3931
4041
|
*/
|
|
@@ -3988,28 +4098,6 @@ export namespace ActionStartConversationRelayParams {
|
|
|
3988
4098
|
voice?: string;
|
|
3989
4099
|
}
|
|
3990
4100
|
|
|
3991
|
-
export interface Participant {
|
|
3992
|
-
/**
|
|
3993
|
-
* The call_control_id of the participant to add to the conversation.
|
|
3994
|
-
*/
|
|
3995
|
-
id: string;
|
|
3996
|
-
|
|
3997
|
-
/**
|
|
3998
|
-
* The role of the participant in the conversation.
|
|
3999
|
-
*/
|
|
4000
|
-
role: 'user';
|
|
4001
|
-
|
|
4002
|
-
/**
|
|
4003
|
-
* Display name for the participant.
|
|
4004
|
-
*/
|
|
4005
|
-
name?: string;
|
|
4006
|
-
|
|
4007
|
-
/**
|
|
4008
|
-
* Determines what happens to the conversation when this participant hangs up.
|
|
4009
|
-
*/
|
|
4010
|
-
on_hangup?: 'continue_conversation' | 'end_conversation';
|
|
4011
|
-
}
|
|
4012
|
-
|
|
4013
4101
|
/**
|
|
4014
4102
|
* Speech-to-text settings for Conversation Relay.
|
|
4015
4103
|
*/
|
|
@@ -4029,18 +4117,6 @@ export namespace ActionStartConversationRelayParams {
|
|
|
4029
4117
|
*/
|
|
4030
4118
|
provider?: string;
|
|
4031
4119
|
}
|
|
4032
|
-
|
|
4033
|
-
export interface XaiVoiceSettings {
|
|
4034
|
-
/**
|
|
4035
|
-
* Voice settings provider type
|
|
4036
|
-
*/
|
|
4037
|
-
type: 'xai';
|
|
4038
|
-
|
|
4039
|
-
/**
|
|
4040
|
-
* Language code, or `auto` to detect automatically.
|
|
4041
|
-
*/
|
|
4042
|
-
language?: string;
|
|
4043
|
-
}
|
|
4044
4120
|
}
|
|
4045
4121
|
|
|
4046
4122
|
export interface ActionStartForkingParams {
|
|
@@ -4731,14 +4807,26 @@ export interface ActionStartTranscriptionParams {
|
|
|
4731
4807
|
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
4732
4808
|
* `Telnyx` are supported for backward compatibility.
|
|
4733
4809
|
*/
|
|
4734
|
-
transcription_engine?:
|
|
4810
|
+
transcription_engine?:
|
|
4811
|
+
| 'Google'
|
|
4812
|
+
| 'Telnyx'
|
|
4813
|
+
| 'Deepgram'
|
|
4814
|
+
| 'Azure'
|
|
4815
|
+
| 'xAI'
|
|
4816
|
+
| 'AssemblyAI'
|
|
4817
|
+
| 'Speechmatics'
|
|
4818
|
+
| 'Soniox'
|
|
4819
|
+
| 'A'
|
|
4820
|
+
| 'B';
|
|
4735
4821
|
|
|
4736
4822
|
transcription_engine_config?:
|
|
4737
4823
|
| TranscriptionEngineGoogleConfig
|
|
4738
4824
|
| TranscriptionEngineTelnyxConfig
|
|
4739
4825
|
| TranscriptionEngineAzureConfig
|
|
4740
|
-
|
|
|
4741
|
-
|
|
|
4826
|
+
| TranscriptionEngineXaiConfig
|
|
4827
|
+
| TranscriptionEngineAssemblyaiConfig
|
|
4828
|
+
| ActionStartTranscriptionParams.TranscriptionEngineSpeechmaticsConfig
|
|
4829
|
+
| ActionStartTranscriptionParams.TranscriptionEngineSonioxConfig
|
|
4742
4830
|
| TranscriptionEngineAConfig
|
|
4743
4831
|
| TranscriptionEngineBConfig
|
|
4744
4832
|
| DeepgramNova2Config
|
|
@@ -4753,7 +4841,7 @@ export interface ActionStartTranscriptionParams {
|
|
|
4753
4841
|
}
|
|
4754
4842
|
|
|
4755
4843
|
export namespace ActionStartTranscriptionParams {
|
|
4756
|
-
export interface
|
|
4844
|
+
export interface TranscriptionEngineSpeechmaticsConfig {
|
|
4757
4845
|
/**
|
|
4758
4846
|
* Whether to send also interim results. If set to false, only final results will
|
|
4759
4847
|
* be sent.
|
|
@@ -4764,44 +4852,47 @@ export namespace ActionStartTranscriptionParams {
|
|
|
4764
4852
|
* Language to use for speech recognition
|
|
4765
4853
|
*/
|
|
4766
4854
|
language?:
|
|
4767
|
-
| 'ar'
|
|
4768
|
-
| 'cs'
|
|
4769
|
-
| 'da'
|
|
4770
|
-
| 'de'
|
|
4771
4855
|
| 'en'
|
|
4772
|
-
| '
|
|
4773
|
-
| '
|
|
4774
|
-
| '
|
|
4775
|
-
| '
|
|
4776
|
-
| '
|
|
4777
|
-
| '
|
|
4778
|
-
| '
|
|
4779
|
-
| '
|
|
4780
|
-
| '
|
|
4781
|
-
| '
|
|
4782
|
-
| '
|
|
4783
|
-
| '
|
|
4784
|
-
| '
|
|
4785
|
-
| '
|
|
4786
|
-
| '
|
|
4787
|
-
| '
|
|
4788
|
-
| 'sv'
|
|
4789
|
-
| 'th'
|
|
4790
|
-
| 'tr'
|
|
4791
|
-
| 'vi';
|
|
4856
|
+
| 'ba'
|
|
4857
|
+
| 'eu'
|
|
4858
|
+
| 'gl'
|
|
4859
|
+
| 'ga'
|
|
4860
|
+
| 'mt'
|
|
4861
|
+
| 'mn'
|
|
4862
|
+
| 'sw'
|
|
4863
|
+
| 'ug'
|
|
4864
|
+
| 'cy'
|
|
4865
|
+
| 'ar_en'
|
|
4866
|
+
| 'cmn_en'
|
|
4867
|
+
| 'en_ms'
|
|
4868
|
+
| 'en_ta'
|
|
4869
|
+
| 'tl'
|
|
4870
|
+
| 'es-bilingual-en'
|
|
4871
|
+
| 'cmn_en_ms_ta';
|
|
4792
4872
|
|
|
4793
4873
|
/**
|
|
4794
|
-
* Engine identifier for
|
|
4874
|
+
* Engine identifier for Speechmatics transcription service
|
|
4795
4875
|
*/
|
|
4796
|
-
transcription_engine?: '
|
|
4876
|
+
transcription_engine?: 'Speechmatics';
|
|
4797
4877
|
|
|
4798
4878
|
/**
|
|
4799
4879
|
* The model to use for transcription.
|
|
4800
4880
|
*/
|
|
4801
|
-
transcription_model?: '
|
|
4881
|
+
transcription_model?: 'speechmatics/standard';
|
|
4802
4882
|
}
|
|
4803
4883
|
|
|
4804
|
-
export interface
|
|
4884
|
+
export interface TranscriptionEngineSonioxConfig {
|
|
4885
|
+
/**
|
|
4886
|
+
* Engine identifier for Soniox transcription service
|
|
4887
|
+
*/
|
|
4888
|
+
transcription_engine: 'Soniox';
|
|
4889
|
+
|
|
4890
|
+
/**
|
|
4891
|
+
* When true, Soniox emits end-of-utterance events at the cadence configured by
|
|
4892
|
+
* `max_endpoint_delay_ms`.
|
|
4893
|
+
*/
|
|
4894
|
+
enable_endpoint_detection?: boolean;
|
|
4895
|
+
|
|
4805
4896
|
/**
|
|
4806
4897
|
* Whether to send also interim results. If set to false, only final results will
|
|
4807
4898
|
* be sent.
|
|
@@ -4809,14 +4900,21 @@ export namespace ActionStartTranscriptionParams {
|
|
|
4809
4900
|
interim_results?: boolean;
|
|
4810
4901
|
|
|
4811
4902
|
/**
|
|
4812
|
-
*
|
|
4903
|
+
* ISO 639-1 language hint (e.g. `en`, `es`), or `auto` to omit the hint and let
|
|
4904
|
+
* Soniox auto-detect supported languages multilingually.
|
|
4905
|
+
*/
|
|
4906
|
+
language?: string;
|
|
4907
|
+
|
|
4908
|
+
/**
|
|
4909
|
+
* Maximum silence (in milliseconds) before Soniox emits an end-of-utterance event.
|
|
4910
|
+
* Only honored when `enable_endpoint_detection` is true. Range: 500-3000 ms.
|
|
4813
4911
|
*/
|
|
4814
|
-
|
|
4912
|
+
max_endpoint_delay_ms?: number;
|
|
4815
4913
|
|
|
4816
4914
|
/**
|
|
4817
4915
|
* The model to use for transcription.
|
|
4818
4916
|
*/
|
|
4819
|
-
transcription_model?: '
|
|
4917
|
+
transcription_model?: 'soniox/stt-rt-v4';
|
|
4820
4918
|
}
|
|
4821
4919
|
}
|
|
4822
4920
|
|
|
@@ -5354,11 +5452,13 @@ export declare namespace Actions {
|
|
|
5354
5452
|
type TelnyxVoiceSettings as TelnyxVoiceSettings,
|
|
5355
5453
|
type TranscriptionConfig as TranscriptionConfig,
|
|
5356
5454
|
type TranscriptionEngineAConfig as TranscriptionEngineAConfig,
|
|
5455
|
+
type TranscriptionEngineAssemblyaiConfig as TranscriptionEngineAssemblyaiConfig,
|
|
5357
5456
|
type TranscriptionEngineAzureConfig as TranscriptionEngineAzureConfig,
|
|
5358
5457
|
type TranscriptionEngineBConfig as TranscriptionEngineBConfig,
|
|
5359
5458
|
type TranscriptionEngineDeepgramConfig as TranscriptionEngineDeepgramConfig,
|
|
5360
5459
|
type TranscriptionEngineGoogleConfig as TranscriptionEngineGoogleConfig,
|
|
5361
5460
|
type TranscriptionEngineTelnyxConfig as TranscriptionEngineTelnyxConfig,
|
|
5461
|
+
type TranscriptionEngineXaiConfig as TranscriptionEngineXaiConfig,
|
|
5362
5462
|
type TranscriptionStartRequest as TranscriptionStartRequest,
|
|
5363
5463
|
type ActionAddAIAssistantMessagesResponse as ActionAddAIAssistantMessagesResponse,
|
|
5364
5464
|
type ActionAnswerResponse as ActionAnswerResponse,
|