telnyx 6.63.0 → 6.65.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 +16 -0
- package/client.d.mts +10 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -11
- 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 +116 -114
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +116 -114
- 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 +332 -112
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +332 -112
- 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 +241 -70
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +241 -70
- 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 +220 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +220 -6
- 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 +113 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +113 -2
- 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 +398 -41
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +398 -41
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +46 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +46 -0
- 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 +11 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +11 -1
- package/resources/conferences/actions.d.ts.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 +2 -25
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +2 -25
- 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 +50 -40
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +50 -40
- 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 +0 -10
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -10
- package/resources/shared.d.ts.map +1 -1
- package/resources/texml/texml.d.mts +30 -10
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +30 -10
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +11 -0
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +11 -0
- 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 +1861 -211
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +1861 -211
- 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 +504 -48
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +504 -48
- 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/wireguard-interfaces.d.mts +127 -43
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +127 -43
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +2 -5
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +2 -5
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +16 -27
- package/src/resources/ai/ai.ts +130 -139
- package/src/resources/ai/assistants/assistants.ts +362 -133
- package/src/resources/ai/assistants/canary-deploys.ts +266 -75
- package/src/resources/ai/assistants/index.ts +0 -10
- package/src/resources/ai/assistants/versions.ts +244 -6
- package/src/resources/ai/index.ts +0 -6
- package/src/resources/ai/openai/openai.ts +131 -2
- package/src/resources/calls/actions.ts +543 -76
- package/src/resources/calls/calls.ts +8 -4
- package/src/resources/calls/index.ts +4 -2
- package/src/resources/conferences/actions.ts +13 -1
- package/src/resources/index.ts +8 -13
- package/src/resources/networks/networks.ts +4 -31
- package/src/resources/public-internet-gateways.ts +55 -46
- package/src/resources/shared.ts +0 -12
- package/src/resources/texml/texml.ts +30 -10
- package/src/resources/uac-connections/index.ts +2 -6
- package/src/resources/uac-connections/uac-connections.ts +2377 -378
- package/src/resources/virtual-cross-connects.ts +595 -54
- package/src/resources/wireguard-interfaces.ts +158 -53
- 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
package/src/client.ts
CHANGED
|
@@ -707,8 +707,8 @@ import {
|
|
|
707
707
|
PublicInternetGatewayCreateResponse,
|
|
708
708
|
PublicInternetGatewayDeleteResponse,
|
|
709
709
|
PublicInternetGatewayListParams,
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
PublicInternetGatewayListResponse,
|
|
711
|
+
PublicInternetGatewayListResponsesDefaultFlatPagination,
|
|
712
712
|
PublicInternetGatewayRetrieveResponse,
|
|
713
713
|
PublicInternetGateways,
|
|
714
714
|
} from './resources/public-internet-gateways';
|
|
@@ -914,12 +914,12 @@ import {
|
|
|
914
914
|
VerifyProfilesDefaultFlatPagination,
|
|
915
915
|
} from './resources/verify-profiles';
|
|
916
916
|
import {
|
|
917
|
-
VirtualCrossConnectCombined,
|
|
918
|
-
VirtualCrossConnectCombinedsDefaultFlatPagination,
|
|
919
917
|
VirtualCrossConnectCreateParams,
|
|
920
918
|
VirtualCrossConnectCreateResponse,
|
|
921
919
|
VirtualCrossConnectDeleteResponse,
|
|
922
920
|
VirtualCrossConnectListParams,
|
|
921
|
+
VirtualCrossConnectListResponse,
|
|
922
|
+
VirtualCrossConnectListResponsesDefaultFlatPagination,
|
|
923
923
|
VirtualCrossConnectRetrieveResponse,
|
|
924
924
|
VirtualCrossConnectUpdateParams,
|
|
925
925
|
VirtualCrossConnectUpdateResponse,
|
|
@@ -1106,8 +1106,8 @@ import {
|
|
|
1106
1106
|
WireguardInterfaceCreateResponse,
|
|
1107
1107
|
WireguardInterfaceDeleteResponse,
|
|
1108
1108
|
WireguardInterfaceListParams,
|
|
1109
|
-
|
|
1110
|
-
|
|
1109
|
+
WireguardInterfaceListResponse,
|
|
1110
|
+
WireguardInterfaceListResponsesDefaultFlatPagination,
|
|
1111
1111
|
WireguardInterfaceRetrieveResponse,
|
|
1112
1112
|
WireguardInterfaces,
|
|
1113
1113
|
} from './resources/wireguard-interfaces';
|
|
@@ -1160,7 +1160,6 @@ import {
|
|
|
1160
1160
|
AIRetrieveModelsResponse,
|
|
1161
1161
|
AISummarizeParams,
|
|
1162
1162
|
AISummarizeResponse,
|
|
1163
|
-
ModelMetadata,
|
|
1164
1163
|
} from './resources/ai/ai';
|
|
1165
1164
|
import { BundlePricing } from './resources/bundle-pricing/bundle-pricing';
|
|
1166
1165
|
import {
|
|
@@ -1540,20 +1539,16 @@ import {
|
|
|
1540
1539
|
TextToSpeechListVoicesResponse,
|
|
1541
1540
|
} from './resources/text-to-speech/text-to-speech';
|
|
1542
1541
|
import {
|
|
1543
|
-
UacConnection,
|
|
1544
1542
|
UacConnectionCreateParams,
|
|
1545
1543
|
UacConnectionCreateResponse,
|
|
1546
1544
|
UacConnectionDeleteResponse,
|
|
1547
1545
|
UacConnectionListParams,
|
|
1546
|
+
UacConnectionListResponse,
|
|
1547
|
+
UacConnectionListResponsesDefaultFlatPagination,
|
|
1548
1548
|
UacConnectionRetrieveResponse,
|
|
1549
1549
|
UacConnectionUpdateParams,
|
|
1550
1550
|
UacConnectionUpdateResponse,
|
|
1551
1551
|
UacConnections,
|
|
1552
|
-
UacConnectionsDefaultFlatPagination,
|
|
1553
|
-
UacExternalSettings,
|
|
1554
|
-
UacInbound,
|
|
1555
|
-
UacInternalSettings,
|
|
1556
|
-
UacOutbound,
|
|
1557
1552
|
} from './resources/uac-connections/uac-connections';
|
|
1558
1553
|
import {
|
|
1559
1554
|
CreateVerificationResponse,
|
|
@@ -3394,7 +3389,6 @@ export declare namespace Telnyx {
|
|
|
3394
3389
|
|
|
3395
3390
|
export {
|
|
3396
3391
|
AI as AI,
|
|
3397
|
-
type ModelMetadata as ModelMetadata,
|
|
3398
3392
|
type AICreateResponseResponse as AICreateResponseResponse,
|
|
3399
3393
|
type AIRetrieveModelsResponse as AIRetrieveModelsResponse,
|
|
3400
3394
|
type AISummarizeResponse as AISummarizeResponse,
|
|
@@ -4312,11 +4306,11 @@ export declare namespace Telnyx {
|
|
|
4312
4306
|
PublicInternetGateways as PublicInternetGateways,
|
|
4313
4307
|
type NetworkInterface as NetworkInterface,
|
|
4314
4308
|
type NetworkInterfaceRegion as NetworkInterfaceRegion,
|
|
4315
|
-
type PublicInternetGatewayRead as PublicInternetGatewayRead,
|
|
4316
4309
|
type PublicInternetGatewayCreateResponse as PublicInternetGatewayCreateResponse,
|
|
4317
4310
|
type PublicInternetGatewayRetrieveResponse as PublicInternetGatewayRetrieveResponse,
|
|
4311
|
+
type PublicInternetGatewayListResponse as PublicInternetGatewayListResponse,
|
|
4318
4312
|
type PublicInternetGatewayDeleteResponse as PublicInternetGatewayDeleteResponse,
|
|
4319
|
-
type
|
|
4313
|
+
type PublicInternetGatewayListResponsesDefaultFlatPagination as PublicInternetGatewayListResponsesDefaultFlatPagination,
|
|
4320
4314
|
type PublicInternetGatewayCreateParams as PublicInternetGatewayCreateParams,
|
|
4321
4315
|
type PublicInternetGatewayListParams as PublicInternetGatewayListParams,
|
|
4322
4316
|
};
|
|
@@ -4659,12 +4653,12 @@ export declare namespace Telnyx {
|
|
|
4659
4653
|
|
|
4660
4654
|
export {
|
|
4661
4655
|
VirtualCrossConnects as VirtualCrossConnects,
|
|
4662
|
-
type VirtualCrossConnectCombined as VirtualCrossConnectCombined,
|
|
4663
4656
|
type VirtualCrossConnectCreateResponse as VirtualCrossConnectCreateResponse,
|
|
4664
4657
|
type VirtualCrossConnectRetrieveResponse as VirtualCrossConnectRetrieveResponse,
|
|
4665
4658
|
type VirtualCrossConnectUpdateResponse as VirtualCrossConnectUpdateResponse,
|
|
4659
|
+
type VirtualCrossConnectListResponse as VirtualCrossConnectListResponse,
|
|
4666
4660
|
type VirtualCrossConnectDeleteResponse as VirtualCrossConnectDeleteResponse,
|
|
4667
|
-
type
|
|
4661
|
+
type VirtualCrossConnectListResponsesDefaultFlatPagination as VirtualCrossConnectListResponsesDefaultFlatPagination,
|
|
4668
4662
|
type VirtualCrossConnectCreateParams as VirtualCrossConnectCreateParams,
|
|
4669
4663
|
type VirtualCrossConnectUpdateParams as VirtualCrossConnectUpdateParams,
|
|
4670
4664
|
type VirtualCrossConnectListParams as VirtualCrossConnectListParams,
|
|
@@ -4689,11 +4683,11 @@ export declare namespace Telnyx {
|
|
|
4689
4683
|
|
|
4690
4684
|
export {
|
|
4691
4685
|
WireguardInterfaces as WireguardInterfaces,
|
|
4692
|
-
type WireguardInterfaceRead as WireguardInterfaceRead,
|
|
4693
4686
|
type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse,
|
|
4694
4687
|
type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse,
|
|
4688
|
+
type WireguardInterfaceListResponse as WireguardInterfaceListResponse,
|
|
4695
4689
|
type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse,
|
|
4696
|
-
type
|
|
4690
|
+
type WireguardInterfaceListResponsesDefaultFlatPagination as WireguardInterfaceListResponsesDefaultFlatPagination,
|
|
4697
4691
|
type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams,
|
|
4698
4692
|
type WireguardInterfaceListParams as WireguardInterfaceListParams,
|
|
4699
4693
|
};
|
|
@@ -4900,16 +4894,12 @@ export declare namespace Telnyx {
|
|
|
4900
4894
|
|
|
4901
4895
|
export {
|
|
4902
4896
|
UacConnections as UacConnections,
|
|
4903
|
-
type UacConnection as UacConnection,
|
|
4904
|
-
type UacExternalSettings as UacExternalSettings,
|
|
4905
|
-
type UacInbound as UacInbound,
|
|
4906
|
-
type UacInternalSettings as UacInternalSettings,
|
|
4907
|
-
type UacOutbound as UacOutbound,
|
|
4908
4897
|
type UacConnectionCreateResponse as UacConnectionCreateResponse,
|
|
4909
4898
|
type UacConnectionRetrieveResponse as UacConnectionRetrieveResponse,
|
|
4910
4899
|
type UacConnectionUpdateResponse as UacConnectionUpdateResponse,
|
|
4900
|
+
type UacConnectionListResponse as UacConnectionListResponse,
|
|
4911
4901
|
type UacConnectionDeleteResponse as UacConnectionDeleteResponse,
|
|
4912
|
-
type
|
|
4902
|
+
type UacConnectionListResponsesDefaultFlatPagination as UacConnectionListResponsesDefaultFlatPagination,
|
|
4913
4903
|
type UacConnectionCreateParams as UacConnectionCreateParams,
|
|
4914
4904
|
type UacConnectionUpdateParams as UacConnectionUpdateParams,
|
|
4915
4905
|
type UacConnectionListParams as UacConnectionListParams,
|
|
@@ -4956,5 +4946,4 @@ export declare namespace Telnyx {
|
|
|
4956
4946
|
export type SimpleSimCard = API.SimpleSimCard;
|
|
4957
4947
|
export type SubNumberOrderRegulatoryRequirementWithValue = API.SubNumberOrderRegulatoryRequirementWithValue;
|
|
4958
4948
|
export type WhatsappTemplateData = API.WhatsappTemplateData;
|
|
4959
|
-
export type XaiVoiceSettings = API.XaiVoiceSettings;
|
|
4960
4949
|
}
|
package/src/resources/ai/ai.ts
CHANGED
|
@@ -52,8 +52,6 @@ import {
|
|
|
52
52
|
AssistantDeleteResponse,
|
|
53
53
|
AssistantGetTexmlResponse,
|
|
54
54
|
AssistantImportsParams,
|
|
55
|
-
AssistantIntegration,
|
|
56
|
-
AssistantMcpServer,
|
|
57
55
|
AssistantRetrieveParams,
|
|
58
56
|
AssistantSendSMSParams,
|
|
59
57
|
AssistantSendSMSResponse,
|
|
@@ -71,7 +69,6 @@ import {
|
|
|
71
69
|
HangupToolParams,
|
|
72
70
|
ImportMetadata,
|
|
73
71
|
InferenceEmbedding,
|
|
74
|
-
InferenceEmbeddingInterruptionSettings,
|
|
75
72
|
InferenceEmbeddingWebhookToolParams,
|
|
76
73
|
InsightSettings,
|
|
77
74
|
MessagingSettings,
|
|
@@ -81,9 +78,7 @@ import {
|
|
|
81
78
|
PostConversationSettingsReq,
|
|
82
79
|
PrivacySettings,
|
|
83
80
|
RetrievalTool,
|
|
84
|
-
StartSpeakingPlan,
|
|
85
81
|
TelephonySettings,
|
|
86
|
-
TranscriptionEndpointingPlan,
|
|
87
82
|
TranscriptionSettings,
|
|
88
83
|
TranscriptionSettingsConfig,
|
|
89
84
|
TransferTool,
|
|
@@ -227,140 +222,142 @@ export class AI extends APIResource {
|
|
|
227
222
|
}
|
|
228
223
|
}
|
|
229
224
|
|
|
230
|
-
|
|
231
|
-
* Metadata for a model available on Telnyx Inference. Returned by
|
|
232
|
-
* `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
|
|
233
|
-
* models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
|
|
234
|
-
* `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
|
|
235
|
-
* the Telnyx organization that trained them.
|
|
236
|
-
*/
|
|
237
|
-
export interface ModelMetadata {
|
|
238
|
-
/**
|
|
239
|
-
* Model identifier. For open-source models, follows the
|
|
240
|
-
* `{organization}/{model_name}` convention from Hugging Face (e.g.
|
|
241
|
-
* `moonshotai/Kimi-K2.6`).
|
|
242
|
-
*/
|
|
243
|
-
id: string;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* Maximum total tokens (prompt + completion) supported by the model in a single
|
|
247
|
-
* request.
|
|
248
|
-
*/
|
|
249
|
-
context_length: number;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
|
|
253
|
-
*/
|
|
254
|
-
created: string;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* ISO language codes the model supports (e.g. `en`, `es`).
|
|
258
|
-
*/
|
|
259
|
-
languages: Array<string>;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
|
|
263
|
-
* `Llama 3 Community License`.
|
|
264
|
-
*/
|
|
265
|
-
license: string;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Organization that originally published the model, matching the prefix of `id`
|
|
269
|
-
* for open-source models.
|
|
270
|
-
*/
|
|
271
|
-
organization: string;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
|
|
275
|
-
* provider name for proxied models, or the Telnyx organization id for fine-tuned
|
|
276
|
-
* models.
|
|
277
|
-
*/
|
|
278
|
-
owned_by: string;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Total parameter count of the model.
|
|
282
|
-
*/
|
|
283
|
-
parameters: number;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Billing tier the model belongs to. Used together with `pricing` to determine
|
|
287
|
-
* cost per 1M tokens.
|
|
288
|
-
*/
|
|
289
|
-
tier: 'small' | 'medium' | 'large' | 'unlisted';
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Base model the fine-tuned model was trained from. Only set for fine-tuned
|
|
293
|
-
* models.
|
|
294
|
-
*/
|
|
295
|
-
base_model?: string | null;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Short, human-readable summary of what the model is best suited for.
|
|
299
|
-
*/
|
|
300
|
-
description?: string | null;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Whether the model can be used as a base for a fine-tuning job via
|
|
304
|
-
* `POST /v2/ai/fine_tuning/jobs`.
|
|
305
|
-
*/
|
|
306
|
-
is_fine_tunable?: boolean;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Whether the model accepts image inputs in chat completions (multimodal vision
|
|
310
|
-
* support).
|
|
311
|
-
*/
|
|
312
|
-
is_vision_supported?: boolean;
|
|
225
|
+
export type AICreateResponseResponse = { [key: string]: unknown };
|
|
313
226
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
* request. `null` if unconstrained beyond `context_length`.
|
|
317
|
-
*/
|
|
318
|
-
max_completion_tokens?: number | null;
|
|
227
|
+
export interface AIRetrieveModelsResponse {
|
|
228
|
+
data: Array<AIRetrieveModelsResponse.Data>;
|
|
319
229
|
|
|
320
|
-
/**
|
|
321
|
-
* Object type. Always `model`.
|
|
322
|
-
*/
|
|
323
230
|
object?: string;
|
|
231
|
+
}
|
|
324
232
|
|
|
233
|
+
export namespace AIRetrieveModelsResponse {
|
|
325
234
|
/**
|
|
326
|
-
*
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
* Mapping of token kind to price, as strings to preserve precision. Typical keys
|
|
332
|
-
* are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
|
|
333
|
-
* block also includes `currency` (ISO 4217 code matching the account's configured
|
|
334
|
-
* billing currency) and `unit` (the denomination the prices are quoted in,
|
|
335
|
-
* currently always `1M_tokens` for token-priced models).
|
|
336
|
-
*/
|
|
337
|
-
pricing?: { [key: string]: string };
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
|
|
341
|
-
* Assistant.
|
|
342
|
-
*/
|
|
343
|
-
recommended_for_assistants?: boolean;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Public region names where the model is currently deployed (e.g. `us-central-1`,
|
|
347
|
-
* `eu-central-1`).
|
|
348
|
-
*/
|
|
349
|
-
regions?: Array<string>;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Primary task the model is intended for, e.g. `text-generation`,
|
|
353
|
-
* `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
235
|
+
* Metadata for a model available on Telnyx Inference. Returned by
|
|
236
|
+
* `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
|
|
237
|
+
* models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
|
|
238
|
+
* `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
|
|
239
|
+
* the Telnyx organization that trained them.
|
|
354
240
|
*/
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
241
|
+
export interface Data {
|
|
242
|
+
/**
|
|
243
|
+
* Model identifier. For open-source models, follows the
|
|
244
|
+
* `{organization}/{model_name}` convention from Hugging Face (e.g.
|
|
245
|
+
* `moonshotai/Kimi-K2.6`).
|
|
246
|
+
*/
|
|
247
|
+
id: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Maximum total tokens (prompt + completion) supported by the model in a single
|
|
251
|
+
* request.
|
|
252
|
+
*/
|
|
253
|
+
context_length: number;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
|
|
257
|
+
*/
|
|
258
|
+
created: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* ISO language codes the model supports (e.g. `en`, `es`).
|
|
262
|
+
*/
|
|
263
|
+
languages: Array<string>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
|
|
267
|
+
* `Llama 3 Community License`.
|
|
268
|
+
*/
|
|
269
|
+
license: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Organization that originally published the model, matching the prefix of `id`
|
|
273
|
+
* for open-source models.
|
|
274
|
+
*/
|
|
275
|
+
organization: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
|
|
279
|
+
* provider name for proxied models, or the Telnyx organization id for fine-tuned
|
|
280
|
+
* models.
|
|
281
|
+
*/
|
|
282
|
+
owned_by: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Total parameter count of the model.
|
|
286
|
+
*/
|
|
287
|
+
parameters: number;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Billing tier the model belongs to. Used together with `pricing` to determine
|
|
291
|
+
* cost per 1M tokens.
|
|
292
|
+
*/
|
|
293
|
+
tier: 'small' | 'medium' | 'large' | 'unlisted';
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Base model the fine-tuned model was trained from. Only set for fine-tuned
|
|
297
|
+
* models.
|
|
298
|
+
*/
|
|
299
|
+
base_model?: string | null;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Short, human-readable summary of what the model is best suited for.
|
|
303
|
+
*/
|
|
304
|
+
description?: string | null;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Whether the model can be used as a base for a fine-tuning job via
|
|
308
|
+
* `POST /v2/ai/fine_tuning/jobs`.
|
|
309
|
+
*/
|
|
310
|
+
is_fine_tunable?: boolean;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Whether the model accepts image inputs in chat completions (multimodal vision
|
|
314
|
+
* support).
|
|
315
|
+
*/
|
|
316
|
+
is_vision_supported?: boolean;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Maximum number of completion (output) tokens the model will generate per
|
|
320
|
+
* request. `null` if unconstrained beyond `context_length`.
|
|
321
|
+
*/
|
|
322
|
+
max_completion_tokens?: number | null;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Object type. Always `model`.
|
|
326
|
+
*/
|
|
327
|
+
object?: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
|
|
331
|
+
*/
|
|
332
|
+
parameters_str?: string | null;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Mapping of token kind to price, as strings to preserve precision. Typical keys
|
|
336
|
+
* are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
|
|
337
|
+
* block also includes `currency` (ISO 4217 code matching the account's configured
|
|
338
|
+
* billing currency) and `unit` (the denomination the prices are quoted in,
|
|
339
|
+
* currently always `1M_tokens` for token-priced models).
|
|
340
|
+
*/
|
|
341
|
+
pricing?: { [key: string]: string };
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
|
|
345
|
+
* Assistant.
|
|
346
|
+
*/
|
|
347
|
+
recommended_for_assistants?: boolean;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Public region names where the model is currently deployed (e.g. `us-central-1`,
|
|
351
|
+
* `eu-central-1`).
|
|
352
|
+
*/
|
|
353
|
+
regions?: Array<string>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Primary task the model is intended for, e.g. `text-generation`,
|
|
357
|
+
* `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
358
|
+
*/
|
|
359
|
+
task?: string;
|
|
360
|
+
}
|
|
364
361
|
}
|
|
365
362
|
|
|
366
363
|
export interface AISummarizeResponse {
|
|
@@ -409,7 +406,6 @@ AI.Tools = Tools;
|
|
|
409
406
|
|
|
410
407
|
export declare namespace AI {
|
|
411
408
|
export {
|
|
412
|
-
type ModelMetadata as ModelMetadata,
|
|
413
409
|
type AICreateResponseResponse as AICreateResponseResponse,
|
|
414
410
|
type AIRetrieveModelsResponse as AIRetrieveModelsResponse,
|
|
415
411
|
type AISummarizeResponse as AISummarizeResponse,
|
|
@@ -420,8 +416,6 @@ export declare namespace AI {
|
|
|
420
416
|
export {
|
|
421
417
|
Assistants as Assistants,
|
|
422
418
|
type Assistant as Assistant,
|
|
423
|
-
type AssistantIntegration as AssistantIntegration,
|
|
424
|
-
type AssistantMcpServer as AssistantMcpServer,
|
|
425
419
|
type AssistantTool as AssistantTool,
|
|
426
420
|
type AssistantsList as AssistantsList,
|
|
427
421
|
type AudioVisualizerConfig as AudioVisualizerConfig,
|
|
@@ -434,7 +428,6 @@ export declare namespace AI {
|
|
|
434
428
|
type HangupToolParams as HangupToolParams,
|
|
435
429
|
type ImportMetadata as ImportMetadata,
|
|
436
430
|
type InferenceEmbedding as InferenceEmbedding,
|
|
437
|
-
type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
|
|
438
431
|
type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
|
|
439
432
|
type InsightSettings as InsightSettings,
|
|
440
433
|
type MessagingSettings as MessagingSettings,
|
|
@@ -444,9 +437,7 @@ export declare namespace AI {
|
|
|
444
437
|
type PostConversationSettingsReq as PostConversationSettingsReq,
|
|
445
438
|
type PrivacySettings as PrivacySettings,
|
|
446
439
|
type RetrievalTool as RetrievalTool,
|
|
447
|
-
type StartSpeakingPlan as StartSpeakingPlan,
|
|
448
440
|
type TelephonySettings as TelephonySettings,
|
|
449
|
-
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
450
441
|
type TranscriptionSettings as TranscriptionSettings,
|
|
451
442
|
type TranscriptionSettingsConfig as TranscriptionSettingsConfig,
|
|
452
443
|
type TransferTool as TransferTool,
|