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
|
@@ -99,11 +99,13 @@ import {
|
|
|
99
99
|
TelnyxVoiceSettings,
|
|
100
100
|
TranscriptionConfig,
|
|
101
101
|
TranscriptionEngineAConfig,
|
|
102
|
+
TranscriptionEngineAssemblyaiConfig,
|
|
102
103
|
TranscriptionEngineAzureConfig,
|
|
103
104
|
TranscriptionEngineBConfig,
|
|
104
105
|
TranscriptionEngineDeepgramConfig,
|
|
105
106
|
TranscriptionEngineGoogleConfig,
|
|
106
107
|
TranscriptionEngineTelnyxConfig,
|
|
108
|
+
TranscriptionEngineXaiConfig,
|
|
107
109
|
TranscriptionStartRequest,
|
|
108
110
|
} from './actions';
|
|
109
111
|
import * as AssistantsAPI from '../ai/assistants/assistants';
|
|
@@ -1210,11 +1212,13 @@ export declare namespace Calls {
|
|
|
1210
1212
|
type TelnyxVoiceSettings as TelnyxVoiceSettings,
|
|
1211
1213
|
type TranscriptionConfig as TranscriptionConfig,
|
|
1212
1214
|
type TranscriptionEngineAConfig as TranscriptionEngineAConfig,
|
|
1215
|
+
type TranscriptionEngineAssemblyaiConfig as TranscriptionEngineAssemblyaiConfig,
|
|
1213
1216
|
type TranscriptionEngineAzureConfig as TranscriptionEngineAzureConfig,
|
|
1214
1217
|
type TranscriptionEngineBConfig as TranscriptionEngineBConfig,
|
|
1215
1218
|
type TranscriptionEngineDeepgramConfig as TranscriptionEngineDeepgramConfig,
|
|
1216
1219
|
type TranscriptionEngineGoogleConfig as TranscriptionEngineGoogleConfig,
|
|
1217
1220
|
type TranscriptionEngineTelnyxConfig as TranscriptionEngineTelnyxConfig,
|
|
1221
|
+
type TranscriptionEngineXaiConfig as TranscriptionEngineXaiConfig,
|
|
1218
1222
|
type TranscriptionStartRequest as TranscriptionStartRequest,
|
|
1219
1223
|
type ActionAddAIAssistantMessagesResponse as ActionAddAIAssistantMessagesResponse,
|
|
1220
1224
|
type ActionAnswerResponse as ActionAnswerResponse,
|
|
@@ -16,11 +16,13 @@ export {
|
|
|
16
16
|
type TelnyxVoiceSettings,
|
|
17
17
|
type TranscriptionConfig,
|
|
18
18
|
type TranscriptionEngineAConfig,
|
|
19
|
+
type TranscriptionEngineAssemblyaiConfig,
|
|
19
20
|
type TranscriptionEngineAzureConfig,
|
|
20
21
|
type TranscriptionEngineBConfig,
|
|
21
22
|
type TranscriptionEngineDeepgramConfig,
|
|
22
23
|
type TranscriptionEngineGoogleConfig,
|
|
23
24
|
type TranscriptionEngineTelnyxConfig,
|
|
25
|
+
type TranscriptionEngineXaiConfig,
|
|
24
26
|
type TranscriptionStartRequest,
|
|
25
27
|
type ActionAddAIAssistantMessagesResponse,
|
|
26
28
|
type ActionAnswerResponse,
|
|
@@ -1020,7 +1020,7 @@ export interface ActionSpeakParams {
|
|
|
1020
1020
|
| Shared.RimeVoiceSettings
|
|
1021
1021
|
| Shared.ResembleVoiceSettings
|
|
1022
1022
|
| ActionSpeakParams.InworldVoiceSettings
|
|
1023
|
-
|
|
|
1023
|
+
| Shared.XaiVoiceSettings;
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
export namespace ActionSpeakParams {
|
|
@@ -1030,18 +1030,6 @@ export namespace ActionSpeakParams {
|
|
|
1030
1030
|
*/
|
|
1031
1031
|
type: 'inworld';
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1034
|
-
export interface XaiVoiceSettings {
|
|
1035
|
-
/**
|
|
1036
|
-
* Voice settings provider type
|
|
1037
|
-
*/
|
|
1038
|
-
type: 'xai';
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* Language code, or `auto` to detect automatically.
|
|
1042
|
-
*/
|
|
1043
|
-
language?: string;
|
|
1044
|
-
}
|
|
1045
1033
|
}
|
|
1046
1034
|
|
|
1047
1035
|
export interface ActionStopParams {
|
|
@@ -21,6 +21,18 @@ export class Faxes extends APIResource {
|
|
|
21
21
|
* is bigger than 50MB or has more than 350 pages it will fail with
|
|
22
22
|
* `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively.
|
|
23
23
|
*
|
|
24
|
+
* **Supported file formats:**
|
|
25
|
+
*
|
|
26
|
+
* - PDF (`application/pdf`)
|
|
27
|
+
* - TIFF (`application/tiff`, `image/tiff`)
|
|
28
|
+
* - JPEG (`image/jpeg`)
|
|
29
|
+
* - PNG (`image/png`)
|
|
30
|
+
* - Microsoft Word `.doc` (`application/msword`)
|
|
31
|
+
* - Microsoft Word `.docx`
|
|
32
|
+
* (`application/vnd.openxmlformats-officedocument.wordprocessingml.document`)
|
|
33
|
+
* - Rich Text Format `.rtf` (`application/rtf`)
|
|
34
|
+
* - Plain text `.txt` (`text/plain`)
|
|
35
|
+
*
|
|
24
36
|
* **Expected Webhooks:**
|
|
25
37
|
*
|
|
26
38
|
* - `fax.queued`
|
|
@@ -133,14 +145,16 @@ export interface Fax {
|
|
|
133
145
|
|
|
134
146
|
/**
|
|
135
147
|
* The media_name used for the fax's media. Must point to a file previously
|
|
136
|
-
* uploaded to api.telnyx.com/v2/media by the same user/organization.
|
|
137
|
-
*
|
|
148
|
+
* uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
|
|
149
|
+
* formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
|
|
150
|
+
* media_url/contents can't be submitted together.
|
|
138
151
|
*/
|
|
139
152
|
media_name?: string;
|
|
140
153
|
|
|
141
154
|
/**
|
|
142
|
-
* The URL (or list of URLs) to the
|
|
143
|
-
* media_name/contents can't be
|
|
155
|
+
* The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
|
|
156
|
+
* JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
|
|
157
|
+
* submitted together.
|
|
144
158
|
*/
|
|
145
159
|
media_url?: string;
|
|
146
160
|
|
|
@@ -257,14 +271,16 @@ export interface FaxCreateParams {
|
|
|
257
271
|
|
|
258
272
|
/**
|
|
259
273
|
* The media_name used for the fax's media. Must point to a file previously
|
|
260
|
-
* uploaded to api.telnyx.com/v2/media by the same user/organization.
|
|
261
|
-
*
|
|
274
|
+
* uploaded to api.telnyx.com/v2/media by the same user/organization. Supported
|
|
275
|
+
* formats: PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, and TXT. media_name and
|
|
276
|
+
* media_url/contents can't be submitted together.
|
|
262
277
|
*/
|
|
263
278
|
media_name?: string;
|
|
264
279
|
|
|
265
280
|
/**
|
|
266
|
-
* The URL (or list of URLs) to the
|
|
267
|
-
* media_name/contents can't be
|
|
281
|
+
* The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF,
|
|
282
|
+
* JPEG, PNG, DOC, DOCX, RTF, and TXT. media_url and media_name/contents can't be
|
|
283
|
+
* submitted together.
|
|
268
284
|
*/
|
|
269
285
|
media_url?: string;
|
|
270
286
|
|
package/src/resources/index.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from './shared';
|
|
4
4
|
export {
|
|
5
5
|
AI,
|
|
6
|
+
type ModelMetadata,
|
|
6
7
|
type AICreateResponseResponse,
|
|
7
8
|
type AIRetrieveModelsResponse,
|
|
8
9
|
type AISummarizeResponse,
|
|
@@ -968,13 +969,13 @@ export {
|
|
|
968
969
|
PublicInternetGateways,
|
|
969
970
|
type NetworkInterface,
|
|
970
971
|
type NetworkInterfaceRegion,
|
|
972
|
+
type PublicInternetGatewayRead,
|
|
971
973
|
type PublicInternetGatewayCreateResponse,
|
|
972
974
|
type PublicInternetGatewayRetrieveResponse,
|
|
973
|
-
type PublicInternetGatewayListResponse,
|
|
974
975
|
type PublicInternetGatewayDeleteResponse,
|
|
975
976
|
type PublicInternetGatewayCreateParams,
|
|
976
977
|
type PublicInternetGatewayListParams,
|
|
977
|
-
type
|
|
978
|
+
type PublicInternetGatewayReadsDefaultFlatPagination,
|
|
978
979
|
} from './public-internet-gateways';
|
|
979
980
|
export {
|
|
980
981
|
Queues,
|
|
@@ -1251,15 +1252,19 @@ export {
|
|
|
1251
1252
|
} from './traffic-policy-profiles';
|
|
1252
1253
|
export {
|
|
1253
1254
|
UacConnections,
|
|
1255
|
+
type UacConnection,
|
|
1256
|
+
type UacExternalSettings,
|
|
1257
|
+
type UacInbound,
|
|
1258
|
+
type UacInternalSettings,
|
|
1259
|
+
type UacOutbound,
|
|
1254
1260
|
type UacConnectionCreateResponse,
|
|
1255
1261
|
type UacConnectionRetrieveResponse,
|
|
1256
1262
|
type UacConnectionUpdateResponse,
|
|
1257
|
-
type UacConnectionListResponse,
|
|
1258
1263
|
type UacConnectionDeleteResponse,
|
|
1259
1264
|
type UacConnectionCreateParams,
|
|
1260
1265
|
type UacConnectionUpdateParams,
|
|
1261
1266
|
type UacConnectionListParams,
|
|
1262
|
-
type
|
|
1267
|
+
type UacConnectionsDefaultFlatPagination,
|
|
1263
1268
|
} from './uac-connections/uac-connections';
|
|
1264
1269
|
export {
|
|
1265
1270
|
UsageReports,
|
|
@@ -1314,15 +1319,15 @@ export {
|
|
|
1314
1319
|
} from './verify-profiles';
|
|
1315
1320
|
export {
|
|
1316
1321
|
VirtualCrossConnects,
|
|
1322
|
+
type VirtualCrossConnectCombined,
|
|
1317
1323
|
type VirtualCrossConnectCreateResponse,
|
|
1318
1324
|
type VirtualCrossConnectRetrieveResponse,
|
|
1319
1325
|
type VirtualCrossConnectUpdateResponse,
|
|
1320
|
-
type VirtualCrossConnectListResponse,
|
|
1321
1326
|
type VirtualCrossConnectDeleteResponse,
|
|
1322
1327
|
type VirtualCrossConnectCreateParams,
|
|
1323
1328
|
type VirtualCrossConnectUpdateParams,
|
|
1324
1329
|
type VirtualCrossConnectListParams,
|
|
1325
|
-
type
|
|
1330
|
+
type VirtualCrossConnectCombinedsDefaultFlatPagination,
|
|
1326
1331
|
} from './virtual-cross-connects';
|
|
1327
1332
|
export {
|
|
1328
1333
|
VirtualCrossConnectsCoverage,
|
|
@@ -1503,13 +1508,13 @@ export {
|
|
|
1503
1508
|
} from './whatsapp-message-templates';
|
|
1504
1509
|
export {
|
|
1505
1510
|
WireguardInterfaces,
|
|
1511
|
+
type WireguardInterfaceRead,
|
|
1506
1512
|
type WireguardInterfaceCreateResponse,
|
|
1507
1513
|
type WireguardInterfaceRetrieveResponse,
|
|
1508
|
-
type WireguardInterfaceListResponse,
|
|
1509
1514
|
type WireguardInterfaceDeleteResponse,
|
|
1510
1515
|
type WireguardInterfaceCreateParams,
|
|
1511
1516
|
type WireguardInterfaceListParams,
|
|
1512
|
-
type
|
|
1517
|
+
type WireguardInterfaceReadsDefaultFlatPagination,
|
|
1513
1518
|
} from './wireguard-interfaces';
|
|
1514
1519
|
export {
|
|
1515
1520
|
WireguardPeers,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as GlobalIPAssignmentsAPI from '../global-ip-assignments';
|
|
5
|
-
import * as PublicInternetGatewaysAPI from '../public-internet-gateways';
|
|
6
5
|
import * as DefaultGatewayAPI from './default-gateway';
|
|
7
6
|
import {
|
|
8
7
|
DefaultGateway,
|
|
@@ -206,9 +205,27 @@ export namespace NetworkDeleteResponse {
|
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
207
|
|
|
209
|
-
export interface NetworkListInterfacesResponse
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
export interface NetworkListInterfacesResponse {
|
|
209
|
+
/**
|
|
210
|
+
* Identifies the resource.
|
|
211
|
+
*/
|
|
212
|
+
id?: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
216
|
+
*/
|
|
217
|
+
created_at?: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* A user specified name for the interface.
|
|
221
|
+
*/
|
|
222
|
+
name?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The id of the network associated with the interface.
|
|
226
|
+
*/
|
|
227
|
+
network_id?: string;
|
|
228
|
+
|
|
212
229
|
/**
|
|
213
230
|
* Identifies the type of the resource.
|
|
214
231
|
*/
|
|
@@ -221,10 +238,20 @@ export interface NetworkListInterfacesResponse
|
|
|
221
238
|
*/
|
|
222
239
|
region_code?: string;
|
|
223
240
|
|
|
241
|
+
/**
|
|
242
|
+
* The current status of the interface deployment.
|
|
243
|
+
*/
|
|
244
|
+
status?: InterfaceStatus;
|
|
245
|
+
|
|
224
246
|
/**
|
|
225
247
|
* Identifies the type of the interface.
|
|
226
248
|
*/
|
|
227
249
|
type?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
253
|
+
*/
|
|
254
|
+
updated_at?: string;
|
|
228
255
|
}
|
|
229
256
|
|
|
230
257
|
export namespace NetworkListInterfacesResponse {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as PublicInternetGatewaysAPI from './public-internet-gateways';
|
|
5
|
-
import * as GlobalIPAssignmentsAPI from './global-ip-assignments';
|
|
6
4
|
import * as NetworksAPI from './networks/networks';
|
|
7
5
|
import { APIPromise } from '../core/api-promise';
|
|
8
6
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from '../core/pagination';
|
|
@@ -50,7 +48,7 @@ export class PublicInternetGateways extends APIResource {
|
|
|
50
48
|
* @example
|
|
51
49
|
* ```ts
|
|
52
50
|
* // Automatically fetches more pages as needed.
|
|
53
|
-
* for await (const
|
|
51
|
+
* for await (const publicInternetGatewayRead of client.publicInternetGateways.list()) {
|
|
54
52
|
* // ...
|
|
55
53
|
* }
|
|
56
54
|
* ```
|
|
@@ -58,10 +56,10 @@ export class PublicInternetGateways extends APIResource {
|
|
|
58
56
|
list(
|
|
59
57
|
query: PublicInternetGatewayListParams | null | undefined = {},
|
|
60
58
|
options?: RequestOptions,
|
|
61
|
-
): PagePromise<
|
|
59
|
+
): PagePromise<PublicInternetGatewayReadsDefaultFlatPagination, PublicInternetGatewayRead> {
|
|
62
60
|
return this._client.getAPIList(
|
|
63
61
|
'/public_internet_gateways',
|
|
64
|
-
DefaultFlatPagination<
|
|
62
|
+
DefaultFlatPagination<PublicInternetGatewayRead>,
|
|
65
63
|
{ query, ...options },
|
|
66
64
|
);
|
|
67
65
|
}
|
|
@@ -82,8 +80,8 @@ export class PublicInternetGateways extends APIResource {
|
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
export type
|
|
86
|
-
DefaultFlatPagination<
|
|
83
|
+
export type PublicInternetGatewayReadsDefaultFlatPagination =
|
|
84
|
+
DefaultFlatPagination<PublicInternetGatewayRead>;
|
|
87
85
|
|
|
88
86
|
export interface NetworkInterface {
|
|
89
87
|
/**
|
|
@@ -109,70 +107,63 @@ export interface NetworkInterfaceRegion {
|
|
|
109
107
|
region_code?: string;
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
export interface
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
118
|
-
/**
|
|
119
|
-
* The publically accessible ip for this interface.
|
|
120
|
-
*/
|
|
121
|
-
public_ip?: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The region interface is deployed to.
|
|
125
|
-
*/
|
|
126
|
-
region_code?: string;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
110
|
+
export interface PublicInternetGatewayRead {
|
|
111
|
+
/**
|
|
112
|
+
* Identifies the resource.
|
|
113
|
+
*/
|
|
114
|
+
id?: string;
|
|
129
115
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
/**
|
|
117
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
118
|
+
*/
|
|
119
|
+
created_at?: string;
|
|
133
120
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*/
|
|
139
|
-
public_ip?: string;
|
|
121
|
+
/**
|
|
122
|
+
* A user specified name for the interface.
|
|
123
|
+
*/
|
|
124
|
+
name?: string;
|
|
140
125
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
}
|
|
126
|
+
/**
|
|
127
|
+
* The id of the network associated with the interface.
|
|
128
|
+
*/
|
|
129
|
+
network_id?: string;
|
|
147
130
|
|
|
148
|
-
export interface PublicInternetGatewayListResponse extends GlobalIPAssignmentsAPI.Record, NetworkInterface {
|
|
149
131
|
/**
|
|
150
132
|
* The publically accessible ip for this interface.
|
|
151
133
|
*/
|
|
152
134
|
public_ip?: string;
|
|
153
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Identifies the type of the resource.
|
|
138
|
+
*/
|
|
139
|
+
record_type?: string;
|
|
140
|
+
|
|
154
141
|
/**
|
|
155
142
|
* The region interface is deployed to.
|
|
156
143
|
*/
|
|
157
144
|
region_code?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The current status of the interface deployment.
|
|
148
|
+
*/
|
|
149
|
+
status?: NetworksAPI.InterfaceStatus;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
153
|
+
*/
|
|
154
|
+
updated_at?: string;
|
|
158
155
|
}
|
|
159
156
|
|
|
160
|
-
export interface
|
|
161
|
-
data?:
|
|
157
|
+
export interface PublicInternetGatewayCreateResponse {
|
|
158
|
+
data?: PublicInternetGatewayRead;
|
|
162
159
|
}
|
|
163
160
|
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* The publically accessible ip for this interface.
|
|
168
|
-
*/
|
|
169
|
-
public_ip?: string;
|
|
161
|
+
export interface PublicInternetGatewayRetrieveResponse {
|
|
162
|
+
data?: PublicInternetGatewayRead;
|
|
163
|
+
}
|
|
170
164
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
*/
|
|
174
|
-
region_code?: string;
|
|
175
|
-
}
|
|
165
|
+
export interface PublicInternetGatewayDeleteResponse {
|
|
166
|
+
data?: PublicInternetGatewayRead;
|
|
176
167
|
}
|
|
177
168
|
|
|
178
169
|
export interface PublicInternetGatewayCreateParams {
|
|
@@ -215,11 +206,11 @@ export declare namespace PublicInternetGateways {
|
|
|
215
206
|
export {
|
|
216
207
|
type NetworkInterface as NetworkInterface,
|
|
217
208
|
type NetworkInterfaceRegion as NetworkInterfaceRegion,
|
|
209
|
+
type PublicInternetGatewayRead as PublicInternetGatewayRead,
|
|
218
210
|
type PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
|
|
219
211
|
type PublicInternetGatewayRetrieveResponse as PublicInternetGatewayRetrieveResponse,
|
|
220
|
-
type PublicInternetGatewayListResponse as PublicInternetGatewayListResponse,
|
|
221
212
|
type PublicInternetGatewayDeleteResponse as PublicInternetGatewayDeleteResponse,
|
|
222
|
-
type
|
|
213
|
+
type PublicInternetGatewayReadsDefaultFlatPagination as PublicInternetGatewayReadsDefaultFlatPagination,
|
|
223
214
|
type PublicInternetGatewayCreateParams as PublicInternetGatewayCreateParams,
|
|
224
215
|
type PublicInternetGatewayListParams as PublicInternetGatewayListParams,
|
|
225
216
|
};
|
package/src/resources/shared.ts
CHANGED
|
@@ -1423,6 +1423,18 @@ export namespace WhatsappTemplateData {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
+
export interface XaiVoiceSettings {
|
|
1427
|
+
/**
|
|
1428
|
+
* Voice settings provider type
|
|
1429
|
+
*/
|
|
1430
|
+
type: 'xai';
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Language code, or `auto` to detect automatically.
|
|
1434
|
+
*/
|
|
1435
|
+
language?: string;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1426
1438
|
export type MessagingHostedNumberOrdersDefaultFlatPagination =
|
|
1427
1439
|
DefaultFlatPagination<MessagingHostedNumberOrder>;
|
|
1428
1440
|
|
|
@@ -754,9 +754,11 @@ export namespace CallCallsParams {
|
|
|
754
754
|
DeepfakeDetectionCallbackUrl?: string;
|
|
755
755
|
|
|
756
756
|
/**
|
|
757
|
-
* Allows you to
|
|
757
|
+
* Allows you to choose between Regular, Premium, and PremiumCallScreening
|
|
758
|
+
* detections. See
|
|
759
|
+
* https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
|
|
758
760
|
*/
|
|
759
|
-
DetectionMode?: 'Premium' | 'Regular';
|
|
761
|
+
DetectionMode?: 'Premium' | 'Regular' | 'PremiumCallScreening';
|
|
760
762
|
|
|
761
763
|
/**
|
|
762
764
|
* A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
@@ -775,6 +777,12 @@ export namespace CallCallsParams {
|
|
|
775
777
|
*/
|
|
776
778
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
777
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Silence duration threshold after a call screening prompt before ending prompt
|
|
782
|
+
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
783
|
+
*/
|
|
784
|
+
MachineDetectionPromptEndTimeout?: number;
|
|
785
|
+
|
|
778
786
|
/**
|
|
779
787
|
* If initial silence duration is greater than this value, consider it a machine.
|
|
780
788
|
* Ignored when `premium` detection is used.
|
|
@@ -1022,9 +1030,11 @@ export namespace CallCallsParams {
|
|
|
1022
1030
|
DeepfakeDetectionCallbackUrl?: string;
|
|
1023
1031
|
|
|
1024
1032
|
/**
|
|
1025
|
-
* Allows you to
|
|
1033
|
+
* Allows you to choose between Regular, Premium, and PremiumCallScreening
|
|
1034
|
+
* detections. See
|
|
1035
|
+
* https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
|
|
1026
1036
|
*/
|
|
1027
|
-
DetectionMode?: 'Premium' | 'Regular';
|
|
1037
|
+
DetectionMode?: 'Premium' | 'Regular' | 'PremiumCallScreening';
|
|
1028
1038
|
|
|
1029
1039
|
/**
|
|
1030
1040
|
* A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
@@ -1043,6 +1053,12 @@ export namespace CallCallsParams {
|
|
|
1043
1053
|
*/
|
|
1044
1054
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
1045
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Silence duration threshold after a call screening prompt before ending prompt
|
|
1058
|
+
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
1059
|
+
*/
|
|
1060
|
+
MachineDetectionPromptEndTimeout?: number;
|
|
1061
|
+
|
|
1046
1062
|
/**
|
|
1047
1063
|
* If initial silence duration is greater than this value, consider it a machine.
|
|
1048
1064
|
* Ignored when `premium` detection is used.
|
|
@@ -1284,9 +1300,11 @@ export namespace CallCallsParams {
|
|
|
1284
1300
|
DeepfakeDetectionCallbackUrl?: string;
|
|
1285
1301
|
|
|
1286
1302
|
/**
|
|
1287
|
-
* Allows you to
|
|
1303
|
+
* Allows you to choose between Regular, Premium, and PremiumCallScreening
|
|
1304
|
+
* detections. See
|
|
1305
|
+
* https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
|
|
1288
1306
|
*/
|
|
1289
|
-
DetectionMode?: 'Premium' | 'Regular';
|
|
1307
|
+
DetectionMode?: 'Premium' | 'Regular' | 'PremiumCallScreening';
|
|
1290
1308
|
|
|
1291
1309
|
/**
|
|
1292
1310
|
* A failover URL for which Telnyx will retrieve the TeXML call instructions if the
|
|
@@ -1305,6 +1323,12 @@ export namespace CallCallsParams {
|
|
|
1305
1323
|
*/
|
|
1306
1324
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
1307
1325
|
|
|
1326
|
+
/**
|
|
1327
|
+
* Silence duration threshold after a call screening prompt before ending prompt
|
|
1328
|
+
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
1329
|
+
*/
|
|
1330
|
+
MachineDetectionPromptEndTimeout?: number;
|
|
1331
|
+
|
|
1308
1332
|
/**
|
|
1309
1333
|
* If initial silence duration is greater than this value, consider it a machine.
|
|
1310
1334
|
* Ignored when `premium` detection is used.
|
|
@@ -180,15 +180,23 @@ export interface TexmlInitiateAICallParams {
|
|
|
180
180
|
CustomHeaders?: Array<TexmlInitiateAICallParams.CustomHeader>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Allows you to choose between Premium and
|
|
183
|
+
* Allows you to choose between Regular, Premium, and PremiumCallScreening
|
|
184
|
+
* detections. See
|
|
185
|
+
* https://developers.telnyx.com/docs/voice/programmable-voice/answering-machine-detection
|
|
184
186
|
*/
|
|
185
|
-
DetectionMode?: 'Premium' | 'Regular';
|
|
187
|
+
DetectionMode?: 'Premium' | 'Regular' | 'PremiumCallScreening';
|
|
186
188
|
|
|
187
189
|
/**
|
|
188
190
|
* Enables Answering Machine Detection.
|
|
189
191
|
*/
|
|
190
192
|
MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
|
|
191
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Silence duration threshold after a call screening prompt before ending prompt
|
|
196
|
+
* detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
197
|
+
*/
|
|
198
|
+
MachineDetectionPromptEndTimeout?: number;
|
|
199
|
+
|
|
192
200
|
/**
|
|
193
201
|
* If initial silence duration is greater than this value, consider it a machine.
|
|
194
202
|
* Ignored when `premium` detection is used.
|
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
export { Actions, type ActionCheckRegistrationStatusResponse } from './actions';
|
|
4
4
|
export {
|
|
5
5
|
UacConnections,
|
|
6
|
+
type UacConnection,
|
|
7
|
+
type UacExternalSettings,
|
|
8
|
+
type UacInbound,
|
|
9
|
+
type UacInternalSettings,
|
|
10
|
+
type UacOutbound,
|
|
6
11
|
type UacConnectionCreateResponse,
|
|
7
12
|
type UacConnectionRetrieveResponse,
|
|
8
13
|
type UacConnectionUpdateResponse,
|
|
9
|
-
type UacConnectionListResponse,
|
|
10
14
|
type UacConnectionDeleteResponse,
|
|
11
15
|
type UacConnectionCreateParams,
|
|
12
16
|
type UacConnectionUpdateParams,
|
|
13
17
|
type UacConnectionListParams,
|
|
14
|
-
type
|
|
18
|
+
type UacConnectionsDefaultFlatPagination,
|
|
15
19
|
} from './uac-connections';
|