telnyx 6.64.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 +8 -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/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/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
|
@@ -174,7 +174,7 @@ export interface UpdateAssistant {
|
|
|
174
174
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
175
175
|
* `integration_id`.
|
|
176
176
|
*/
|
|
177
|
-
integrations?: Array<
|
|
177
|
+
integrations?: Array<UpdateAssistant.Integration>;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -184,7 +184,7 @@ export interface UpdateAssistant {
|
|
|
184
184
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
185
185
|
* `eager_eot_threshold`).
|
|
186
186
|
*/
|
|
187
|
-
interruption_settings?:
|
|
187
|
+
interruption_settings?: UpdateAssistant.InterruptionSettings;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -200,7 +200,7 @@ export interface UpdateAssistant {
|
|
|
200
200
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
201
201
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
202
202
|
*/
|
|
203
|
-
mcp_servers?: Array<
|
|
203
|
+
mcp_servers?: Array<UpdateAssistant.McpServer>;
|
|
204
204
|
|
|
205
205
|
messaging_settings?: AssistantsAPI.MessagingSettings;
|
|
206
206
|
|
|
@@ -265,6 +265,125 @@ export interface UpdateAssistant {
|
|
|
265
265
|
widget_settings?: AssistantsAPI.WidgetSettings;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
+
export namespace UpdateAssistant {
|
|
269
|
+
/**
|
|
270
|
+
* Reference to a connected integration attached to an assistant. Discover
|
|
271
|
+
* available integrations with `/ai/integrations` and connected integrations with
|
|
272
|
+
* `/ai/integrations/connections`.
|
|
273
|
+
*/
|
|
274
|
+
export interface Integration {
|
|
275
|
+
/**
|
|
276
|
+
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
277
|
+
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
278
|
+
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
279
|
+
* connection-level `id` from `/ai/integrations/connections`.
|
|
280
|
+
*/
|
|
281
|
+
integration_id: string;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
285
|
+
* empty, all tools allowed by the connected integration are available to the
|
|
286
|
+
* assistant.
|
|
287
|
+
*/
|
|
288
|
+
allowed_list?: Array<string>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Settings for interruptions and how the assistant decides the user has finished
|
|
293
|
+
* speaking. These timings are most relevant when using non turn-taking
|
|
294
|
+
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
295
|
+
* behavior is controlled by the transcription end-of-turn settings under
|
|
296
|
+
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
297
|
+
* `eager_eot_threshold`).
|
|
298
|
+
*/
|
|
299
|
+
export interface InterruptionSettings {
|
|
300
|
+
/**
|
|
301
|
+
* When true, disables user interruptions while the assistant greeting is playing.
|
|
302
|
+
*/
|
|
303
|
+
disable_greeting_interruption?: boolean;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
307
|
+
*/
|
|
308
|
+
enable?: boolean;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
312
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
313
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
314
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
315
|
+
*/
|
|
316
|
+
start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export namespace InterruptionSettings {
|
|
320
|
+
/**
|
|
321
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
322
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
323
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
324
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
325
|
+
*/
|
|
326
|
+
export interface StartSpeakingPlan {
|
|
327
|
+
/**
|
|
328
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
329
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
330
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
331
|
+
* `eager_eot_threshold`.
|
|
332
|
+
*/
|
|
333
|
+
transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Minimum seconds to wait before the assistant starts speaking.
|
|
337
|
+
*/
|
|
338
|
+
wait_seconds?: number;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export namespace StartSpeakingPlan {
|
|
342
|
+
/**
|
|
343
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
344
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
345
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
346
|
+
* `eager_eot_threshold`.
|
|
347
|
+
*/
|
|
348
|
+
export interface TranscriptionEndpointingPlan {
|
|
349
|
+
/**
|
|
350
|
+
* Seconds to wait after the transcript ends without punctuation.
|
|
351
|
+
*/
|
|
352
|
+
on_no_punctuation_seconds?: number;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Seconds to wait after the transcript ends with a number.
|
|
356
|
+
*/
|
|
357
|
+
on_number_seconds?: number;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Seconds to wait after the transcript ends with punctuation.
|
|
361
|
+
*/
|
|
362
|
+
on_punctuation_seconds?: number;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
369
|
+
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
370
|
+
* ID.
|
|
371
|
+
*/
|
|
372
|
+
export interface McpServer {
|
|
373
|
+
/**
|
|
374
|
+
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
375
|
+
* by the `/ai/mcp_servers` endpoints.
|
|
376
|
+
*/
|
|
377
|
+
id: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
381
|
+
* uses the MCP server's configured `allowed_tools`.
|
|
382
|
+
*/
|
|
383
|
+
allowed_tools?: Array<string>;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
268
387
|
export interface VersionRetrieveParams {
|
|
269
388
|
/**
|
|
270
389
|
* Path param
|
|
@@ -355,7 +474,7 @@ export interface VersionUpdateParams {
|
|
|
355
474
|
* integrations are at `/ai/integrations/connections`. Each item references a
|
|
356
475
|
* catalog integration by `integration_id`.
|
|
357
476
|
*/
|
|
358
|
-
integrations?: Array<
|
|
477
|
+
integrations?: Array<VersionUpdateParams.Integration>;
|
|
359
478
|
|
|
360
479
|
/**
|
|
361
480
|
* Body param: Settings for interruptions and how the assistant decides the user
|
|
@@ -365,7 +484,7 @@ export interface VersionUpdateParams {
|
|
|
365
484
|
* under `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
366
485
|
* `eager_eot_threshold`).
|
|
367
486
|
*/
|
|
368
|
-
interruption_settings?:
|
|
487
|
+
interruption_settings?: VersionUpdateParams.InterruptionSettings;
|
|
369
488
|
|
|
370
489
|
/**
|
|
371
490
|
* Body param: This is only needed when using third-party inference providers
|
|
@@ -381,7 +500,7 @@ export interface VersionUpdateParams {
|
|
|
381
500
|
* Body param: MCP servers attached to the assistant. Create MCP servers with
|
|
382
501
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
383
502
|
*/
|
|
384
|
-
mcp_servers?: Array<
|
|
503
|
+
mcp_servers?: Array<VersionUpdateParams.McpServer>;
|
|
385
504
|
|
|
386
505
|
/**
|
|
387
506
|
* Body param
|
|
@@ -468,6 +587,125 @@ export interface VersionUpdateParams {
|
|
|
468
587
|
widget_settings?: AssistantsAPI.WidgetSettings;
|
|
469
588
|
}
|
|
470
589
|
|
|
590
|
+
export namespace VersionUpdateParams {
|
|
591
|
+
/**
|
|
592
|
+
* Reference to a connected integration attached to an assistant. Discover
|
|
593
|
+
* available integrations with `/ai/integrations` and connected integrations with
|
|
594
|
+
* `/ai/integrations/connections`.
|
|
595
|
+
*/
|
|
596
|
+
export interface Integration {
|
|
597
|
+
/**
|
|
598
|
+
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
599
|
+
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
600
|
+
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
601
|
+
* connection-level `id` from `/ai/integrations/connections`.
|
|
602
|
+
*/
|
|
603
|
+
integration_id: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
607
|
+
* empty, all tools allowed by the connected integration are available to the
|
|
608
|
+
* assistant.
|
|
609
|
+
*/
|
|
610
|
+
allowed_list?: Array<string>;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Settings for interruptions and how the assistant decides the user has finished
|
|
615
|
+
* speaking. These timings are most relevant when using non turn-taking
|
|
616
|
+
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
617
|
+
* behavior is controlled by the transcription end-of-turn settings under
|
|
618
|
+
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
619
|
+
* `eager_eot_threshold`).
|
|
620
|
+
*/
|
|
621
|
+
export interface InterruptionSettings {
|
|
622
|
+
/**
|
|
623
|
+
* When true, disables user interruptions while the assistant greeting is playing.
|
|
624
|
+
*/
|
|
625
|
+
disable_greeting_interruption?: boolean;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
629
|
+
*/
|
|
630
|
+
enable?: boolean;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
634
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
635
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
636
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
637
|
+
*/
|
|
638
|
+
start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export namespace InterruptionSettings {
|
|
642
|
+
/**
|
|
643
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
644
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
645
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
646
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
647
|
+
*/
|
|
648
|
+
export interface StartSpeakingPlan {
|
|
649
|
+
/**
|
|
650
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
651
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
652
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
653
|
+
* `eager_eot_threshold`.
|
|
654
|
+
*/
|
|
655
|
+
transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Minimum seconds to wait before the assistant starts speaking.
|
|
659
|
+
*/
|
|
660
|
+
wait_seconds?: number;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export namespace StartSpeakingPlan {
|
|
664
|
+
/**
|
|
665
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
666
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
667
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
668
|
+
* `eager_eot_threshold`.
|
|
669
|
+
*/
|
|
670
|
+
export interface TranscriptionEndpointingPlan {
|
|
671
|
+
/**
|
|
672
|
+
* Seconds to wait after the transcript ends without punctuation.
|
|
673
|
+
*/
|
|
674
|
+
on_no_punctuation_seconds?: number;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Seconds to wait after the transcript ends with a number.
|
|
678
|
+
*/
|
|
679
|
+
on_number_seconds?: number;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Seconds to wait after the transcript ends with punctuation.
|
|
683
|
+
*/
|
|
684
|
+
on_punctuation_seconds?: number;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
691
|
+
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
692
|
+
* ID.
|
|
693
|
+
*/
|
|
694
|
+
export interface McpServer {
|
|
695
|
+
/**
|
|
696
|
+
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
697
|
+
* by the `/ai/mcp_servers` endpoints.
|
|
698
|
+
*/
|
|
699
|
+
id: string;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
703
|
+
* uses the MCP server's configured `allowed_tools`.
|
|
704
|
+
*/
|
|
705
|
+
allowed_tools?: Array<string>;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
471
709
|
export interface VersionDeleteParams {
|
|
472
710
|
assistant_id: string;
|
|
473
711
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
AI,
|
|
5
|
-
type ModelMetadata,
|
|
6
5
|
type AICreateResponseResponse,
|
|
7
6
|
type AIRetrieveModelsResponse,
|
|
8
7
|
type AISummarizeResponse,
|
|
@@ -12,8 +11,6 @@ export {
|
|
|
12
11
|
export {
|
|
13
12
|
Assistants,
|
|
14
13
|
type Assistant,
|
|
15
|
-
type AssistantIntegration,
|
|
16
|
-
type AssistantMcpServer,
|
|
17
14
|
type AssistantTool,
|
|
18
15
|
type AssistantsList,
|
|
19
16
|
type AudioVisualizerConfig,
|
|
@@ -26,7 +23,6 @@ export {
|
|
|
26
23
|
type HangupToolParams,
|
|
27
24
|
type ImportMetadata,
|
|
28
25
|
type InferenceEmbedding,
|
|
29
|
-
type InferenceEmbeddingInterruptionSettings,
|
|
30
26
|
type InferenceEmbeddingWebhookToolParams,
|
|
31
27
|
type InsightSettings,
|
|
32
28
|
type MessagingSettings,
|
|
@@ -36,9 +32,7 @@ export {
|
|
|
36
32
|
type PostConversationSettingsReq,
|
|
37
33
|
type PrivacySettings,
|
|
38
34
|
type RetrievalTool,
|
|
39
|
-
type StartSpeakingPlan,
|
|
40
35
|
type TelephonySettings,
|
|
41
|
-
type TranscriptionEndpointingPlan,
|
|
42
36
|
type TranscriptionSettings,
|
|
43
37
|
type TranscriptionSettingsConfig,
|
|
44
38
|
type TransferTool,
|
|
@@ -1,7 +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 AIAPI from '../ai';
|
|
5
4
|
import * as ChatAPI from './chat';
|
|
6
5
|
import { Chat, ChatCreateCompletionParams, ChatCreateCompletionResponse } from './chat';
|
|
7
6
|
import * as EmbeddingsAPI from './embeddings';
|
|
@@ -102,11 +101,141 @@ export class OpenAI extends APIResource {
|
|
|
102
101
|
export type OpenAICreateResponseResponse = { [key: string]: unknown };
|
|
103
102
|
|
|
104
103
|
export interface OpenAIListModelsResponse {
|
|
105
|
-
data: Array<
|
|
104
|
+
data: Array<OpenAIListModelsResponse.Data>;
|
|
106
105
|
|
|
107
106
|
object?: string;
|
|
108
107
|
}
|
|
109
108
|
|
|
109
|
+
export namespace OpenAIListModelsResponse {
|
|
110
|
+
/**
|
|
111
|
+
* Metadata for a model available on Telnyx Inference. Returned by
|
|
112
|
+
* `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
|
|
113
|
+
* models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
|
|
114
|
+
* `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
|
|
115
|
+
* the Telnyx organization that trained them.
|
|
116
|
+
*/
|
|
117
|
+
export interface Data {
|
|
118
|
+
/**
|
|
119
|
+
* Model identifier. For open-source models, follows the
|
|
120
|
+
* `{organization}/{model_name}` convention from Hugging Face (e.g.
|
|
121
|
+
* `moonshotai/Kimi-K2.6`).
|
|
122
|
+
*/
|
|
123
|
+
id: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Maximum total tokens (prompt + completion) supported by the model in a single
|
|
127
|
+
* request.
|
|
128
|
+
*/
|
|
129
|
+
context_length: number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
|
|
133
|
+
*/
|
|
134
|
+
created: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* ISO language codes the model supports (e.g. `en`, `es`).
|
|
138
|
+
*/
|
|
139
|
+
languages: Array<string>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
|
|
143
|
+
* `Llama 3 Community License`.
|
|
144
|
+
*/
|
|
145
|
+
license: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Organization that originally published the model, matching the prefix of `id`
|
|
149
|
+
* for open-source models.
|
|
150
|
+
*/
|
|
151
|
+
organization: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
|
|
155
|
+
* provider name for proxied models, or the Telnyx organization id for fine-tuned
|
|
156
|
+
* models.
|
|
157
|
+
*/
|
|
158
|
+
owned_by: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Total parameter count of the model.
|
|
162
|
+
*/
|
|
163
|
+
parameters: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Billing tier the model belongs to. Used together with `pricing` to determine
|
|
167
|
+
* cost per 1M tokens.
|
|
168
|
+
*/
|
|
169
|
+
tier: 'small' | 'medium' | 'large' | 'unlisted';
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Base model the fine-tuned model was trained from. Only set for fine-tuned
|
|
173
|
+
* models.
|
|
174
|
+
*/
|
|
175
|
+
base_model?: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Short, human-readable summary of what the model is best suited for.
|
|
179
|
+
*/
|
|
180
|
+
description?: string | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Whether the model can be used as a base for a fine-tuning job via
|
|
184
|
+
* `POST /v2/ai/fine_tuning/jobs`.
|
|
185
|
+
*/
|
|
186
|
+
is_fine_tunable?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Whether the model accepts image inputs in chat completions (multimodal vision
|
|
190
|
+
* support).
|
|
191
|
+
*/
|
|
192
|
+
is_vision_supported?: boolean;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Maximum number of completion (output) tokens the model will generate per
|
|
196
|
+
* request. `null` if unconstrained beyond `context_length`.
|
|
197
|
+
*/
|
|
198
|
+
max_completion_tokens?: number | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Object type. Always `model`.
|
|
202
|
+
*/
|
|
203
|
+
object?: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
|
|
207
|
+
*/
|
|
208
|
+
parameters_str?: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Mapping of token kind to price, as strings to preserve precision. Typical keys
|
|
212
|
+
* are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
|
|
213
|
+
* block also includes `currency` (ISO 4217 code matching the account's configured
|
|
214
|
+
* billing currency) and `unit` (the denomination the prices are quoted in,
|
|
215
|
+
* currently always `1M_tokens` for token-priced models).
|
|
216
|
+
*/
|
|
217
|
+
pricing?: { [key: string]: string };
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
|
|
221
|
+
* Assistant.
|
|
222
|
+
*/
|
|
223
|
+
recommended_for_assistants?: boolean;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Public region names where the model is currently deployed (e.g. `us-central-1`,
|
|
227
|
+
* `eu-central-1`).
|
|
228
|
+
*/
|
|
229
|
+
regions?: Array<string>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Primary task the model is intended for, e.g. `text-generation`,
|
|
233
|
+
* `audio-text-to-text`, `feature-extraction` (embeddings).
|
|
234
|
+
*/
|
|
235
|
+
task?: string;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
110
239
|
export interface OpenAICreateResponseParams {
|
|
111
240
|
/**
|
|
112
241
|
* Optional Telnyx Conversation ID from `POST /ai/conversations`. When provided,
|