telnyx 7.7.0 → 7.9.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 +17 -0
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +9 -38
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +9 -38
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -30
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +5 -31
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/anthropic/anthropic.d.mts +10 -0
- package/resources/ai/anthropic/anthropic.d.mts.map +1 -0
- package/resources/ai/anthropic/anthropic.d.ts +10 -0
- package/resources/ai/anthropic/anthropic.d.ts.map +1 -0
- package/resources/ai/anthropic/anthropic.js +17 -0
- package/resources/ai/anthropic/anthropic.js.map +1 -0
- package/resources/ai/anthropic/anthropic.mjs +12 -0
- package/resources/ai/anthropic/anthropic.mjs.map +1 -0
- package/resources/ai/anthropic/index.d.mts +3 -0
- package/resources/ai/anthropic/index.d.mts.map +1 -0
- package/resources/ai/anthropic/index.d.ts +3 -0
- package/resources/ai/anthropic/index.d.ts.map +1 -0
- package/resources/ai/anthropic/index.js +9 -0
- package/resources/ai/anthropic/index.js.map +1 -0
- package/resources/ai/anthropic/index.mjs +4 -0
- package/resources/ai/anthropic/index.mjs.map +1 -0
- package/resources/ai/anthropic/v1.d.mts +148 -0
- package/resources/ai/anthropic/v1.d.mts.map +1 -0
- package/resources/ai/anthropic/v1.d.ts +148 -0
- package/resources/ai/anthropic/v1.d.ts.map +1 -0
- package/resources/ai/anthropic/v1.js +35 -0
- package/resources/ai/anthropic/v1.js.map +1 -0
- package/resources/ai/anthropic/v1.mjs +31 -0
- package/resources/ai/anthropic/v1.mjs.map +1 -0
- package/resources/ai/anthropic.d.mts +2 -0
- package/resources/ai/anthropic.d.mts.map +1 -0
- package/resources/ai/anthropic.d.ts +2 -0
- package/resources/ai/anthropic.d.ts.map +1 -0
- package/resources/ai/anthropic.js +6 -0
- package/resources/ai/anthropic.js.map +1 -0
- package/resources/ai/anthropic.mjs +3 -0
- package/resources/ai/anthropic.mjs.map +1 -0
- package/resources/ai/assistants/assistants.d.mts +58 -5
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +58 -5
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +2 -2
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +2 -2
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/chat.d.mts +1 -188
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +1 -188
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/chat.js +0 -14
- package/resources/ai/chat.js.map +1 -1
- package/resources/ai/chat.mjs +0 -14
- package/resources/ai/chat.mjs.map +1 -1
- package/resources/ai/conversations/conversation-insights.d.mts +105 -0
- package/resources/ai/conversations/conversation-insights.d.mts.map +1 -0
- package/resources/ai/conversations/conversation-insights.d.ts +105 -0
- package/resources/ai/conversations/conversation-insights.d.ts.map +1 -0
- package/resources/ai/conversations/conversation-insights.js +24 -0
- package/resources/ai/conversations/conversation-insights.js.map +1 -0
- package/resources/ai/conversations/conversation-insights.mjs +20 -0
- package/resources/ai/conversations/conversation-insights.mjs.map +1 -0
- package/resources/ai/conversations/conversations.d.mts +4 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +4 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js +4 -0
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs +4 -0
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/conversations/index.d.mts +1 -0
- package/resources/ai/conversations/index.d.mts.map +1 -1
- package/resources/ai/conversations/index.d.ts +1 -0
- package/resources/ai/conversations/index.d.ts.map +1 -1
- package/resources/ai/conversations/index.js +3 -1
- package/resources/ai/conversations/index.js.map +1 -1
- package/resources/ai/conversations/index.mjs +1 -0
- package/resources/ai/conversations/index.mjs.map +1 -1
- package/resources/ai/index.d.mts +4 -3
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +4 -3
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +17 -15
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +2 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/tools.d.mts +28 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +28 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +31 -5
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +31 -5
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +11 -0
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +11 -0
- 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/conferences/actions.d.mts +6 -0
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +6 -0
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/managed-accounts/managed-accounts.d.mts +11 -2
- package/resources/managed-accounts/managed-accounts.d.mts.map +1 -1
- package/resources/managed-accounts/managed-accounts.d.ts +11 -2
- package/resources/managed-accounts/managed-accounts.d.ts.map +1 -1
- package/resources/managed-accounts/managed-accounts.js.map +1 -1
- package/resources/managed-accounts/managed-accounts.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +4 -82
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +4 -82
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +3 -15
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +3 -15
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +21 -0
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +21 -0
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/requirements.d.mts +28 -3
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +28 -3
- package/resources/requirements.d.ts.map +1 -1
- package/resources/requirements.js +2 -2
- package/resources/requirements.js.map +1 -1
- package/resources/requirements.mjs +2 -2
- package/resources/requirements.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/storage/cloudfs/actions.d.mts +43 -0
- package/resources/storage/cloudfs/actions.d.mts.map +1 -0
- package/resources/storage/cloudfs/actions.d.ts +43 -0
- package/resources/storage/cloudfs/actions.d.ts.map +1 -0
- package/resources/storage/cloudfs/actions.js +39 -0
- package/resources/storage/cloudfs/actions.js.map +1 -0
- package/resources/storage/cloudfs/actions.mjs +35 -0
- package/resources/storage/cloudfs/actions.mjs.map +1 -0
- package/resources/storage/cloudfs/cloudfs.d.mts +345 -0
- package/resources/storage/cloudfs/cloudfs.d.mts.map +1 -0
- package/resources/storage/cloudfs/cloudfs.d.ts +345 -0
- package/resources/storage/cloudfs/cloudfs.d.ts.map +1 -0
- package/resources/storage/cloudfs/cloudfs.js +116 -0
- package/resources/storage/cloudfs/cloudfs.js.map +1 -0
- package/resources/storage/cloudfs/cloudfs.mjs +111 -0
- package/resources/storage/cloudfs/cloudfs.mjs.map +1 -0
- package/resources/storage/cloudfs/index.d.mts +3 -0
- package/resources/storage/cloudfs/index.d.mts.map +1 -0
- package/resources/storage/cloudfs/index.d.ts +3 -0
- package/resources/storage/cloudfs/index.d.ts.map +1 -0
- package/resources/storage/cloudfs/index.js +9 -0
- package/resources/storage/cloudfs/index.js.map +1 -0
- package/resources/storage/cloudfs/index.mjs +4 -0
- package/resources/storage/cloudfs/index.mjs.map +1 -0
- package/resources/storage/cloudfs.d.mts +2 -0
- package/resources/storage/cloudfs.d.mts.map +1 -0
- package/resources/storage/cloudfs.d.ts +2 -0
- package/resources/storage/cloudfs.d.ts.map +1 -0
- package/resources/storage/cloudfs.js +6 -0
- package/resources/storage/cloudfs.js.map +1 -0
- package/resources/storage/cloudfs.mjs +3 -0
- package/resources/storage/cloudfs.mjs.map +1 -0
- package/resources/storage/index.d.mts +1 -0
- package/resources/storage/index.d.mts.map +1 -1
- package/resources/storage/index.d.ts +1 -0
- package/resources/storage/index.d.ts.map +1 -1
- package/resources/storage/index.js +7 -5
- package/resources/storage/index.js.map +1 -1
- package/resources/storage/index.mjs +1 -0
- package/resources/storage/index.mjs.map +1 -1
- package/resources/storage/storage.d.mts +4 -0
- package/resources/storage/storage.d.mts.map +1 -1
- package/resources/storage/storage.d.ts +4 -0
- package/resources/storage/storage.d.ts.map +1 -1
- package/resources/storage/storage.js +4 -0
- package/resources/storage/storage.js.map +1 -1
- package/resources/storage/storage.mjs +4 -0
- package/resources/storage/storage.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +16 -11
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +16 -11
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/verify-profiles.d.mts +3 -3
- package/resources/verify-profiles.d.ts +3 -3
- package/resources/webhooks.d.mts +125 -19
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +125 -19
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +5 -8
- package/src/resources/ai/ai.ts +10 -57
- package/src/resources/ai/anthropic/anthropic.ts +19 -0
- package/src/resources/ai/anthropic/index.ts +4 -0
- package/src/resources/ai/anthropic/v1.ts +157 -0
- package/src/resources/ai/anthropic.ts +3 -0
- package/src/resources/ai/assistants/assistants.ts +68 -5
- package/src/resources/ai/chat.ts +2 -234
- package/src/resources/ai/conversations/conversation-insights.ts +125 -0
- package/src/resources/ai/conversations/conversations.ts +15 -0
- package/src/resources/ai/conversations/index.ts +5 -0
- package/src/resources/ai/index.ts +3 -9
- package/src/resources/ai/tools.ts +32 -0
- package/src/resources/calls/actions.ts +31 -5
- package/src/resources/calls/calls.ts +12 -0
- package/src/resources/conferences/actions.ts +6 -0
- package/src/resources/index.ts +1 -4
- package/src/resources/managed-accounts/managed-accounts.ts +13 -2
- package/src/resources/messages/index.ts +0 -2
- package/src/resources/messages/messages.ts +3 -112
- package/src/resources/phone-numbers/phone-numbers.ts +24 -0
- package/src/resources/requirements.ts +38 -3
- package/src/resources/speech-to-text/speech-to-text.ts +1 -1
- package/src/resources/storage/cloudfs/actions.ts +59 -0
- package/src/resources/storage/cloudfs/cloudfs.ts +446 -0
- package/src/resources/storage/cloudfs/index.ts +13 -0
- package/src/resources/storage/cloudfs.ts +3 -0
- package/src/resources/storage/index.ts +10 -0
- package/src/resources/storage/storage.ts +24 -0
- package/src/resources/text-to-speech/text-to-speech.ts +16 -11
- package/src/resources/verify-profiles.ts +3 -3
- package/src/resources/webhooks.ts +152 -11
- 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
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
ConversationInsights,
|
|
5
|
+
type ConversationInsightRetrieveAggregatesResponse,
|
|
6
|
+
type ConversationInsightRetrieveAggregatesParams,
|
|
7
|
+
} from './conversation-insights';
|
|
3
8
|
export {
|
|
4
9
|
Conversations,
|
|
5
10
|
type Conversation,
|
|
@@ -4,13 +4,12 @@ export {
|
|
|
4
4
|
AI,
|
|
5
5
|
type ModelMetadata,
|
|
6
6
|
type ModelsResponse,
|
|
7
|
-
type AICreateResponseDeprecatedResponse,
|
|
8
7
|
type AIRetrieveConversationHistoriesResponse,
|
|
9
8
|
type AISummarizeResponse,
|
|
10
9
|
type AISummarizeParams,
|
|
11
|
-
type AICreateResponseDeprecatedParams,
|
|
12
10
|
type AIRetrieveConversationHistoriesParams,
|
|
13
11
|
} from './ai';
|
|
12
|
+
export { Anthropic } from './anthropic/index';
|
|
14
13
|
export {
|
|
15
14
|
Assistants,
|
|
16
15
|
type ArithmeticExpression,
|
|
@@ -69,13 +68,7 @@ export {
|
|
|
69
68
|
type AssistantSendSMSParams,
|
|
70
69
|
} from './assistants/index';
|
|
71
70
|
export { Audio, type AudioTranscribeResponse, type AudioTranscribeParams } from './audio';
|
|
72
|
-
export {
|
|
73
|
-
Chat,
|
|
74
|
-
type BucketIDs,
|
|
75
|
-
type ChatCompletionRequest,
|
|
76
|
-
type ChatCreateCompletionResponse,
|
|
77
|
-
type ChatCreateCompletionParams,
|
|
78
|
-
} from './chat';
|
|
71
|
+
export { Chat, type BucketIDs, type ChatCompletionRequest } from './chat';
|
|
79
72
|
export {
|
|
80
73
|
Clusters,
|
|
81
74
|
type RecursiveCluster,
|
|
@@ -138,6 +131,7 @@ export {
|
|
|
138
131
|
export { OpenAI, type OpenAICreateResponseResponse, type OpenAICreateResponseParams } from './openai/index';
|
|
139
132
|
export {
|
|
140
133
|
Tools,
|
|
134
|
+
type PayToolParams,
|
|
141
135
|
type SharedToolResponse,
|
|
142
136
|
type ToolDeleteResponse,
|
|
143
137
|
type ToolListParams,
|
|
@@ -89,6 +89,29 @@ export class Tools extends APIResource {
|
|
|
89
89
|
|
|
90
90
|
export type SharedToolResponsesDefaultFlatPagination = DefaultFlatPagination<SharedToolResponse>;
|
|
91
91
|
|
|
92
|
+
export interface PayToolParams {
|
|
93
|
+
/**
|
|
94
|
+
* The name of the pay connector configured in the Telnyx API. Must reference an
|
|
95
|
+
* existing pay connector for this organization.
|
|
96
|
+
*/
|
|
97
|
+
connector_name: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Default currency for payments processed by this tool.
|
|
101
|
+
*/
|
|
102
|
+
currency?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Optional description of the pay tool that will be passed to the assistant.
|
|
106
|
+
*/
|
|
107
|
+
description?: string | null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Default payment method for payments processed by this tool.
|
|
111
|
+
*/
|
|
112
|
+
payment_method?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
92
115
|
export interface SharedToolResponse {
|
|
93
116
|
id: string;
|
|
94
117
|
|
|
@@ -122,12 +145,16 @@ export interface ToolCreateParams {
|
|
|
122
145
|
|
|
123
146
|
type: string;
|
|
124
147
|
|
|
148
|
+
client_side_tool?: { [key: string]: unknown };
|
|
149
|
+
|
|
125
150
|
function?: { [key: string]: unknown };
|
|
126
151
|
|
|
127
152
|
handoff?: { [key: string]: unknown };
|
|
128
153
|
|
|
129
154
|
invite?: { [key: string]: unknown };
|
|
130
155
|
|
|
156
|
+
pay?: PayToolParams;
|
|
157
|
+
|
|
131
158
|
retrieval?: { [key: string]: unknown };
|
|
132
159
|
|
|
133
160
|
timeout_ms?: number;
|
|
@@ -138,6 +165,8 @@ export interface ToolCreateParams {
|
|
|
138
165
|
}
|
|
139
166
|
|
|
140
167
|
export interface ToolUpdateParams {
|
|
168
|
+
client_side_tool?: { [key: string]: unknown };
|
|
169
|
+
|
|
141
170
|
display_name?: string;
|
|
142
171
|
|
|
143
172
|
function?: { [key: string]: unknown };
|
|
@@ -146,6 +175,8 @@ export interface ToolUpdateParams {
|
|
|
146
175
|
|
|
147
176
|
invite?: { [key: string]: unknown };
|
|
148
177
|
|
|
178
|
+
pay?: PayToolParams;
|
|
179
|
+
|
|
149
180
|
retrieval?: { [key: string]: unknown };
|
|
150
181
|
|
|
151
182
|
timeout_ms?: number;
|
|
@@ -159,6 +190,7 @@ export interface ToolUpdateParams {
|
|
|
159
190
|
|
|
160
191
|
export declare namespace Tools {
|
|
161
192
|
export {
|
|
193
|
+
type PayToolParams as PayToolParams,
|
|
162
194
|
type SharedToolResponse as SharedToolResponse,
|
|
163
195
|
type ToolDeleteResponse as ToolDeleteResponse,
|
|
164
196
|
type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination,
|
|
@@ -1546,7 +1546,8 @@ export interface TelnyxVoiceSettings {
|
|
|
1546
1546
|
|
|
1547
1547
|
/**
|
|
1548
1548
|
* The voice speed to be used for the voice. The voice speed must be between 0.1
|
|
1549
|
-
* and 2.0. Default value is 1.0.
|
|
1549
|
+
* and 2.0. Default value is 1.0. Not supported for `Telnyx.Bayan.*` or
|
|
1550
|
+
* `Telnyx.Sukhan.*` voices.
|
|
1550
1551
|
*/
|
|
1551
1552
|
voice_speed?: number;
|
|
1552
1553
|
}
|
|
@@ -1588,7 +1589,11 @@ export interface TranscriptionConfig {
|
|
|
1588
1589
|
* controls the language hint), `multi` (no language hint), and language-specific
|
|
1589
1590
|
* hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
1590
1591
|
* `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
1591
|
-
* ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
|
|
1592
|
+
* ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
1593
|
+
* `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
|
|
1594
|
+
* code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
1595
|
+
* `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
1596
|
+
* that language.
|
|
1592
1597
|
*/
|
|
1593
1598
|
language?: string;
|
|
1594
1599
|
|
|
@@ -1604,7 +1609,7 @@ export interface TranscriptionConfig {
|
|
|
1604
1609
|
* - `xai/grok-stt` for live streaming transcription.
|
|
1605
1610
|
* - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
1606
1611
|
* automatic language detection.
|
|
1607
|
-
* - `parakeet
|
|
1612
|
+
* - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
1608
1613
|
* detection.
|
|
1609
1614
|
* - `azure/fast` and `azure/realtime`; Azure models require `region`, and
|
|
1610
1615
|
* unsupported regions require `api_key_ref`.
|
|
@@ -1624,7 +1629,7 @@ export interface TranscriptionConfig {
|
|
|
1624
1629
|
| 'assemblyai/universal-streaming'
|
|
1625
1630
|
| 'xai/grok-stt'
|
|
1626
1631
|
| 'soniox/stt-rt-v4'
|
|
1627
|
-
| 'parakeet
|
|
1632
|
+
| 'nvidia/parakeet-v3'
|
|
1628
1633
|
| 'azure/fast'
|
|
1629
1634
|
| 'azure/realtime'
|
|
1630
1635
|
| 'google/latest_long'
|
|
@@ -1938,7 +1943,7 @@ export interface TranscriptionEngineParakeetConfig {
|
|
|
1938
1943
|
/**
|
|
1939
1944
|
* The model to use for transcription.
|
|
1940
1945
|
*/
|
|
1941
|
-
transcription_model?: 'parakeet
|
|
1946
|
+
transcription_model?: 'nvidia/parakeet-v3';
|
|
1942
1947
|
}
|
|
1943
1948
|
|
|
1944
1949
|
export interface TranscriptionEngineSonioxConfig {
|
|
@@ -2420,6 +2425,9 @@ export interface ActionStartAIAssistantParams {
|
|
|
2420
2425
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
2421
2426
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
2422
2427
|
* `Max`, `TTS2`.
|
|
2428
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
2429
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
2430
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
2423
2431
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
2424
2432
|
* `ara`, `rex`, `sal`, `leo`.
|
|
2425
2433
|
*/
|
|
@@ -3129,6 +3137,9 @@ export interface ActionGatherUsingAIParams {
|
|
|
3129
3137
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
3130
3138
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
3131
3139
|
* `Max`, `TTS2`.
|
|
3140
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
3141
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
3142
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
3132
3143
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
3133
3144
|
* `ara`, `rex`, `sal`, `leo`.
|
|
3134
3145
|
*/
|
|
@@ -3279,6 +3290,9 @@ export interface ActionGatherUsingSpeakParams {
|
|
|
3279
3290
|
* [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
3280
3291
|
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
3281
3292
|
* Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
3293
|
+
* `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
3294
|
+
* `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
3295
|
+
* (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
3282
3296
|
* - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
3283
3297
|
* `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
3284
3298
|
* `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -3293,6 +3307,9 @@ export interface ActionGatherUsingSpeakParams {
|
|
|
3293
3307
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
3294
3308
|
* `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
3295
3309
|
* `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
3310
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
3311
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
3312
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
3296
3313
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
3297
3314
|
* `ara`, `rex`, `sal`, `leo`.
|
|
3298
3315
|
*
|
|
@@ -4162,6 +4179,9 @@ export interface ActionSpeakParams {
|
|
|
4162
4179
|
* [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
4163
4180
|
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
4164
4181
|
* Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
4182
|
+
* `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
4183
|
+
* `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
4184
|
+
* (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
4165
4185
|
* - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
4166
4186
|
* `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
4167
4187
|
* `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -4176,6 +4196,9 @@ export interface ActionSpeakParams {
|
|
|
4176
4196
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
4177
4197
|
* `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
4178
4198
|
* `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
4199
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
4200
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
4201
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
4179
4202
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
4180
4203
|
* `ara`, `rex`, `sal`, `leo`.
|
|
4181
4204
|
*
|
|
@@ -5122,6 +5145,9 @@ export interface ActionStartConversationRelayParams {
|
|
|
5122
5145
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
5123
5146
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
5124
5147
|
* `Max`, `TTS2`.
|
|
5148
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
5149
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
5150
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
5125
5151
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
5126
5152
|
* `ara`, `rex`, `sal`, `leo`.
|
|
5127
5153
|
*/
|
|
@@ -525,6 +525,9 @@ export interface ConversationRelayEmbeddedConfig {
|
|
|
525
525
|
* - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
|
|
526
526
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
527
527
|
* `Max`, `TTS2`.
|
|
528
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
529
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
530
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
528
531
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
529
532
|
* `ara`, `rex`, `sal`, `leo`.
|
|
530
533
|
*/
|
|
@@ -1105,6 +1108,15 @@ export interface CallDialParams {
|
|
|
1105
1108
|
*/
|
|
1106
1109
|
record_trim?: 'trim-silence';
|
|
1107
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* Whether to keep trying the remaining routing paths (e.g. alternate
|
|
1113
|
+
* providers/gateways) for the same destination after `timeout_secs` is reached for
|
|
1114
|
+
* the current attempt. When set to `false`, reaching `timeout_secs` aborts the
|
|
1115
|
+
* entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
|
|
1116
|
+
* `no_answer` instead of `timeout`.
|
|
1117
|
+
*/
|
|
1118
|
+
retry_on_timeout?: boolean;
|
|
1119
|
+
|
|
1108
1120
|
/**
|
|
1109
1121
|
* DTMF digits to send automatically after the called party answers. Useful for
|
|
1110
1122
|
* reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
@@ -778,6 +778,9 @@ export interface ActionSpeakParams {
|
|
|
778
778
|
* [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
779
779
|
* - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>` (e.g., `Telnyx.KokoroTTS.af`).
|
|
780
780
|
* Use `voice_settings` to configure voice_speed and other synthesis parameters.
|
|
781
|
+
* `Bayan` provides Arabic (multiple dialects) and English voices (e.g.,
|
|
782
|
+
* `Telnyx.Bayan.Ahmed`, `Telnyx.Bayan.Amanda`). `Sukhan` provides Urdu voices
|
|
783
|
+
* (e.g., `Telnyx.Sukhan.urdu-professor`); `voice_speed` is not supported.
|
|
781
784
|
* - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
782
785
|
* `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
783
786
|
* `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Use `voice_settings`
|
|
@@ -792,6 +795,9 @@ export interface ActionSpeakParams {
|
|
|
792
795
|
* `Inworld.Max.Oliver`, `Inworld.TTS2.Loretta`). Supported models: `Mini`,
|
|
793
796
|
* `Max`, `TTS2`. Use `voice_settings` to configure `delivery_mode` (`STABLE`,
|
|
794
797
|
* `BALANCED`, `CREATIVE`), supported by `TTS2` only.
|
|
798
|
+
* - **Fish Audio:** Use `FishAudio.<ModelId>.<VoiceId>` (e.g.,
|
|
799
|
+
* `FishAudio.s2.1-pro.<reference_id>`). Supported models: `s2.1-pro`, `s2-pro`,
|
|
800
|
+
* `s1`. `VoiceId` is a Fish Voice-Library reference ID.
|
|
795
801
|
* - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
|
|
796
802
|
* `ara`, `rex`, `sal`, `leo`.
|
|
797
803
|
*
|
package/src/resources/index.ts
CHANGED
|
@@ -5,11 +5,9 @@ export {
|
|
|
5
5
|
AI,
|
|
6
6
|
type ModelMetadata,
|
|
7
7
|
type ModelsResponse,
|
|
8
|
-
type AICreateResponseDeprecatedResponse,
|
|
9
8
|
type AIRetrieveConversationHistoriesResponse,
|
|
10
9
|
type AISummarizeResponse,
|
|
11
10
|
type AISummarizeParams,
|
|
12
|
-
type AICreateResponseDeprecatedParams,
|
|
13
11
|
type AIRetrieveConversationHistoriesParams,
|
|
14
12
|
} from './ai/ai';
|
|
15
13
|
export {
|
|
@@ -593,14 +591,12 @@ export {
|
|
|
593
591
|
type MessageSendLongCodeResponse,
|
|
594
592
|
type MessageSendNumberPoolResponse,
|
|
595
593
|
type MessageSendShortCodeResponse,
|
|
596
|
-
type MessageSendWhatsappResponse,
|
|
597
594
|
type MessageSendWithAlphanumericSenderResponse,
|
|
598
595
|
type MessageSendParams,
|
|
599
596
|
type MessageSendLongCodeParams,
|
|
600
597
|
type MessageSendNumberPoolParams,
|
|
601
598
|
type MessageSendShortCodeParams,
|
|
602
599
|
type MessageSendGroupMmsParams,
|
|
603
|
-
type MessageSendWhatsappParams,
|
|
604
600
|
type MessageScheduleParams,
|
|
605
601
|
type MessageSendWithAlphanumericSenderParams,
|
|
606
602
|
} from './messages/messages';
|
|
@@ -1076,6 +1072,7 @@ export {
|
|
|
1076
1072
|
type DocReqsRequirement,
|
|
1077
1073
|
type RequirementRetrieveResponse,
|
|
1078
1074
|
type RequirementListParams,
|
|
1075
|
+
type RequirementRetrieveParams,
|
|
1079
1076
|
type DocReqsRequirementsDefaultFlatPagination,
|
|
1080
1077
|
} from './requirements';
|
|
1081
1078
|
export {
|
|
@@ -374,7 +374,7 @@ export interface ManagedAccountListParams extends DefaultFlatPaginationParams {
|
|
|
374
374
|
/**
|
|
375
375
|
* Consolidated filter parameter (deepObject style). Originally:
|
|
376
376
|
* filter[email][contains], filter[email][eq], filter[organization_name][contains],
|
|
377
|
-
* filter[organization_name][eq]
|
|
377
|
+
* filter[organization_name][eq], filter[status][eq]
|
|
378
378
|
*/
|
|
379
379
|
filter?: ManagedAccountListParams.Filter;
|
|
380
380
|
|
|
@@ -406,12 +406,14 @@ export namespace ManagedAccountListParams {
|
|
|
406
406
|
/**
|
|
407
407
|
* Consolidated filter parameter (deepObject style). Originally:
|
|
408
408
|
* filter[email][contains], filter[email][eq], filter[organization_name][contains],
|
|
409
|
-
* filter[organization_name][eq]
|
|
409
|
+
* filter[organization_name][eq], filter[status][eq]
|
|
410
410
|
*/
|
|
411
411
|
export interface Filter {
|
|
412
412
|
email?: Filter.Email;
|
|
413
413
|
|
|
414
414
|
organization_name?: Filter.OrganizationName;
|
|
415
|
+
|
|
416
|
+
status?: Filter.Status;
|
|
415
417
|
}
|
|
416
418
|
|
|
417
419
|
export namespace Filter {
|
|
@@ -443,6 +445,15 @@ export namespace ManagedAccountListParams {
|
|
|
443
445
|
*/
|
|
444
446
|
eq?: string;
|
|
445
447
|
}
|
|
448
|
+
|
|
449
|
+
export interface Status {
|
|
450
|
+
/**
|
|
451
|
+
* If present, only returns managed accounts with the <code>status</code> matching
|
|
452
|
+
* exactly the value given. Use <code>enabled</code> or <code>disabled</code> to
|
|
453
|
+
* filter accounts by whether they are currently able to use Telnyx services.
|
|
454
|
+
*/
|
|
455
|
+
eq?: 'all' | 'active' | 'enabled' | 'cancelled' | 'disabled' | 'blocked';
|
|
456
|
+
}
|
|
446
457
|
}
|
|
447
458
|
}
|
|
448
459
|
|
|
@@ -23,14 +23,12 @@ export {
|
|
|
23
23
|
type MessageSendLongCodeResponse,
|
|
24
24
|
type MessageSendNumberPoolResponse,
|
|
25
25
|
type MessageSendShortCodeResponse,
|
|
26
|
-
type MessageSendWhatsappResponse,
|
|
27
26
|
type MessageSendWithAlphanumericSenderResponse,
|
|
28
27
|
type MessageSendParams,
|
|
29
28
|
type MessageSendLongCodeParams,
|
|
30
29
|
type MessageSendNumberPoolParams,
|
|
31
30
|
type MessageSendShortCodeParams,
|
|
32
31
|
type MessageSendGroupMmsParams,
|
|
33
|
-
type MessageSendWhatsappParams,
|
|
34
32
|
type MessageScheduleParams,
|
|
35
33
|
type MessageSendWithAlphanumericSenderParams,
|
|
36
34
|
} from './messages';
|
|
@@ -15,6 +15,9 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
15
15
|
import { RequestOptions } from '../../internal/request-options';
|
|
16
16
|
import { path } from '../../internal/utils/path';
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Messages
|
|
20
|
+
*/
|
|
18
21
|
export class Messages extends APIResource {
|
|
19
22
|
rcs: RcsAPI.Rcs = new RcsAPI.Rcs(this._client);
|
|
20
23
|
|
|
@@ -110,25 +113,6 @@ export class Messages extends APIResource {
|
|
|
110
113
|
return this._client.post('/messages/group_mms', { body, ...options });
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
/**
|
|
114
|
-
* Send a Whatsapp message
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```ts
|
|
118
|
-
* const response = await client.messages.sendWhatsapp({
|
|
119
|
-
* from: '+13125551234',
|
|
120
|
-
* to: '+13125551234',
|
|
121
|
-
* whatsapp_message: {},
|
|
122
|
-
* });
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
sendWhatsapp(
|
|
126
|
-
body: MessageSendWhatsappParams,
|
|
127
|
-
options?: RequestOptions,
|
|
128
|
-
): APIPromise<MessageSendWhatsappResponse> {
|
|
129
|
-
return this._client.post('/messages/whatsapp', { body, ...options });
|
|
130
|
-
}
|
|
131
|
-
|
|
132
116
|
/**
|
|
133
117
|
* Schedule a message with a Phone Number, Alphanumeric Sender ID, Short Code or
|
|
134
118
|
* Number Pool.
|
|
@@ -1560,68 +1544,6 @@ export interface MessageSendShortCodeResponse {
|
|
|
1560
1544
|
data?: OutboundMessagePayload;
|
|
1561
1545
|
}
|
|
1562
1546
|
|
|
1563
|
-
export interface MessageSendWhatsappResponse {
|
|
1564
|
-
data?: MessageSendWhatsappResponse.Data;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
export namespace MessageSendWhatsappResponse {
|
|
1568
|
-
export interface Data {
|
|
1569
|
-
/**
|
|
1570
|
-
* message ID
|
|
1571
|
-
*/
|
|
1572
|
-
id?: string;
|
|
1573
|
-
|
|
1574
|
-
body?: MessagesAPI.WhatsappMessageContent;
|
|
1575
|
-
|
|
1576
|
-
direction?: string;
|
|
1577
|
-
|
|
1578
|
-
encoding?: string;
|
|
1579
|
-
|
|
1580
|
-
from?: Data.From;
|
|
1581
|
-
|
|
1582
|
-
messaging_profile_id?: string;
|
|
1583
|
-
|
|
1584
|
-
organization_id?: string;
|
|
1585
|
-
|
|
1586
|
-
received_at?: string;
|
|
1587
|
-
|
|
1588
|
-
record_type?: string;
|
|
1589
|
-
|
|
1590
|
-
to?: Array<MessagesAPI.RcsToItem>;
|
|
1591
|
-
|
|
1592
|
-
type?: string;
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* Seconds the message is queued due to rate limiting before being sent to the
|
|
1596
|
-
* carrier. Represents the maximum wait across all applicable rate limits (account,
|
|
1597
|
-
* carrier, campaign). 0.0 = no queuing delay.
|
|
1598
|
-
*/
|
|
1599
|
-
wait_seconds?: number | null;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
export namespace Data {
|
|
1603
|
-
export interface From {
|
|
1604
|
-
/**
|
|
1605
|
-
* The carrier of the sender.
|
|
1606
|
-
*/
|
|
1607
|
-
carrier?: string;
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* The line-type of the sender.
|
|
1611
|
-
*/
|
|
1612
|
-
line_type?: 'Wireline' | 'Wireless' | 'VoWiFi' | 'VoIP' | 'Pre-Paid Wireless' | '';
|
|
1613
|
-
|
|
1614
|
-
/**
|
|
1615
|
-
* Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short
|
|
1616
|
-
* code).
|
|
1617
|
-
*/
|
|
1618
|
-
phone_number?: string;
|
|
1619
|
-
|
|
1620
|
-
status?: 'received' | 'delivered';
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
1547
|
export interface MessageSendWithAlphanumericSenderResponse {
|
|
1626
1548
|
data?: OutboundMessagePayload;
|
|
1627
1549
|
}
|
|
@@ -1964,35 +1886,6 @@ export interface MessageSendGroupMmsParams {
|
|
|
1964
1886
|
webhook_url?: string;
|
|
1965
1887
|
}
|
|
1966
1888
|
|
|
1967
|
-
export interface MessageSendWhatsappParams {
|
|
1968
|
-
/**
|
|
1969
|
-
* Phone number in +E.164 format associated with Whatsapp account
|
|
1970
|
-
*/
|
|
1971
|
-
from: string;
|
|
1972
|
-
|
|
1973
|
-
/**
|
|
1974
|
-
* Phone number in +E.164 format
|
|
1975
|
-
*/
|
|
1976
|
-
to: string;
|
|
1977
|
-
|
|
1978
|
-
whatsapp_message: WhatsappMessageContent;
|
|
1979
|
-
|
|
1980
|
-
/**
|
|
1981
|
-
* Messaging profile ID - required if the 'from' number is not SMS-enabled
|
|
1982
|
-
*/
|
|
1983
|
-
messaging_profile_id?: string;
|
|
1984
|
-
|
|
1985
|
-
/**
|
|
1986
|
-
* Message type - must be set to "WHATSAPP"
|
|
1987
|
-
*/
|
|
1988
|
-
type?: 'WHATSAPP';
|
|
1989
|
-
|
|
1990
|
-
/**
|
|
1991
|
-
* The URL where webhooks related to this message will be sent.
|
|
1992
|
-
*/
|
|
1993
|
-
webhook_url?: string;
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
1889
|
export interface MessageScheduleParams {
|
|
1997
1890
|
/**
|
|
1998
1891
|
* Receiving address (+E.164 formatted phone number or short code).
|
|
@@ -2132,14 +2025,12 @@ export declare namespace Messages {
|
|
|
2132
2025
|
type MessageSendLongCodeResponse as MessageSendLongCodeResponse,
|
|
2133
2026
|
type MessageSendNumberPoolResponse as MessageSendNumberPoolResponse,
|
|
2134
2027
|
type MessageSendShortCodeResponse as MessageSendShortCodeResponse,
|
|
2135
|
-
type MessageSendWhatsappResponse as MessageSendWhatsappResponse,
|
|
2136
2028
|
type MessageSendWithAlphanumericSenderResponse as MessageSendWithAlphanumericSenderResponse,
|
|
2137
2029
|
type MessageSendParams as MessageSendParams,
|
|
2138
2030
|
type MessageSendLongCodeParams as MessageSendLongCodeParams,
|
|
2139
2031
|
type MessageSendNumberPoolParams as MessageSendNumberPoolParams,
|
|
2140
2032
|
type MessageSendShortCodeParams as MessageSendShortCodeParams,
|
|
2141
2033
|
type MessageSendGroupMmsParams as MessageSendGroupMmsParams,
|
|
2142
|
-
type MessageSendWhatsappParams as MessageSendWhatsappParams,
|
|
2143
2034
|
type MessageScheduleParams as MessageScheduleParams,
|
|
2144
2035
|
type MessageSendWithAlphanumericSenderParams as MessageSendWithAlphanumericSenderParams,
|
|
2145
2036
|
};
|
|
@@ -264,6 +264,14 @@ export interface PhoneNumberDetailed {
|
|
|
264
264
|
*/
|
|
265
265
|
tags: Array<string>;
|
|
266
266
|
|
|
267
|
+
/**
|
|
268
|
+
* ISO 8601 formatted date indicating when the phone number was first activated
|
|
269
|
+
* (transitioned from purchase-pending or port-pending to active). Will be null for
|
|
270
|
+
* numbers that have not yet been activated, or for legacy numbers activated before
|
|
271
|
+
* this field was tracked.
|
|
272
|
+
*/
|
|
273
|
+
activated_at?: string | null;
|
|
274
|
+
|
|
267
275
|
/**
|
|
268
276
|
* Identifies the billing group associated with the phone number.
|
|
269
277
|
*/
|
|
@@ -384,6 +392,14 @@ export namespace PhoneNumberDeleteResponse {
|
|
|
384
392
|
*/
|
|
385
393
|
id?: string;
|
|
386
394
|
|
|
395
|
+
/**
|
|
396
|
+
* ISO 8601 formatted date indicating when the phone number was first activated
|
|
397
|
+
* (transitioned from purchase-pending or port-pending to active). Will be null for
|
|
398
|
+
* numbers that have not yet been activated, or for legacy numbers activated before
|
|
399
|
+
* this field was tracked.
|
|
400
|
+
*/
|
|
401
|
+
activated_at?: string | null;
|
|
402
|
+
|
|
387
403
|
/**
|
|
388
404
|
* Identifies the billing group associated with the phone number.
|
|
389
405
|
*/
|
|
@@ -530,6 +546,14 @@ export interface PhoneNumberSlimListResponse {
|
|
|
530
546
|
*/
|
|
531
547
|
id?: string;
|
|
532
548
|
|
|
549
|
+
/**
|
|
550
|
+
* ISO 8601 formatted date indicating when the phone number was first activated
|
|
551
|
+
* (transitioned from purchase-pending or port-pending to active). Will be null for
|
|
552
|
+
* numbers that have not yet been activated, or for legacy numbers activated before
|
|
553
|
+
* this field was tracked.
|
|
554
|
+
*/
|
|
555
|
+
activated_at?: string | null;
|
|
556
|
+
|
|
533
557
|
/**
|
|
534
558
|
* Identifies the billing group associated with the phone number.
|
|
535
559
|
*/
|
|
@@ -42,8 +42,12 @@ export class Requirements extends APIResource {
|
|
|
42
42
|
* );
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
retrieve(
|
|
46
|
-
|
|
45
|
+
retrieve(
|
|
46
|
+
id: string,
|
|
47
|
+
query: RequirementRetrieveParams | null | undefined = {},
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<RequirementRetrieveResponse> {
|
|
50
|
+
return this._client.get(path`/requirements/${id}`, { query, ...options });
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -71,6 +75,17 @@ export interface DocReqsRequirement {
|
|
|
71
75
|
*/
|
|
72
76
|
created_at?: string;
|
|
73
77
|
|
|
78
|
+
/**
|
|
79
|
+
* When this version was superseded. NULL means this is the active or pending
|
|
80
|
+
* version.
|
|
81
|
+
*/
|
|
82
|
+
effective_end_at?: string | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* When this version became (or will become) active.
|
|
86
|
+
*/
|
|
87
|
+
effective_start_at?: string | null;
|
|
88
|
+
|
|
74
89
|
/**
|
|
75
90
|
* The locality where this requirement applies
|
|
76
91
|
*/
|
|
@@ -90,12 +105,17 @@ export interface DocReqsRequirement {
|
|
|
90
105
|
/**
|
|
91
106
|
* Lists the requirement types necessary to fulfill this requirement
|
|
92
107
|
*/
|
|
93
|
-
|
|
108
|
+
requirement_types?: Array<Shared.DocReqsRequirementType>;
|
|
94
109
|
|
|
95
110
|
/**
|
|
96
111
|
* ISO 8601 formatted date-time indicating when the resource was last updated.
|
|
97
112
|
*/
|
|
98
113
|
updated_at?: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Version number. Increments with each new version. Defaults to 1.
|
|
117
|
+
*/
|
|
118
|
+
version?: number;
|
|
99
119
|
}
|
|
100
120
|
|
|
101
121
|
export interface RequirementRetrieveResponse {
|
|
@@ -123,6 +143,12 @@ export interface RequirementListParams extends DefaultFlatPaginationParams {
|
|
|
123
143
|
| '-country_code'
|
|
124
144
|
| '-phone_number_type'
|
|
125
145
|
>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
149
|
+
* version.
|
|
150
|
+
*/
|
|
151
|
+
version?: number;
|
|
126
152
|
}
|
|
127
153
|
|
|
128
154
|
export namespace RequirementListParams {
|
|
@@ -149,11 +175,20 @@ export namespace RequirementListParams {
|
|
|
149
175
|
}
|
|
150
176
|
}
|
|
151
177
|
|
|
178
|
+
export interface RequirementRetrieveParams {
|
|
179
|
+
/**
|
|
180
|
+
* Filter by requirement version number. When omitted, returns the currently-active
|
|
181
|
+
* version.
|
|
182
|
+
*/
|
|
183
|
+
version?: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
152
186
|
export declare namespace Requirements {
|
|
153
187
|
export {
|
|
154
188
|
type DocReqsRequirement as DocReqsRequirement,
|
|
155
189
|
type RequirementRetrieveResponse as RequirementRetrieveResponse,
|
|
156
190
|
type DocReqsRequirementsDefaultFlatPagination as DocReqsRequirementsDefaultFlatPagination,
|
|
157
191
|
type RequirementListParams as RequirementListParams,
|
|
192
|
+
type RequirementRetrieveParams as RequirementRetrieveParams,
|
|
158
193
|
};
|
|
159
194
|
}
|
|
@@ -300,7 +300,7 @@ export interface SpeechToTextRetrieveTranscriptionParams {
|
|
|
300
300
|
| 'xai/grok-stt'
|
|
301
301
|
| 'speechmatics/standard'
|
|
302
302
|
| 'soniox/stt-rt-v4'
|
|
303
|
-
| 'parakeet
|
|
303
|
+
| 'nvidia/parakeet-v3';
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* Enable redaction of sensitive information (e.g., PCI data, SSN) from
|