telnyx 6.53.0 → 6.55.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 +4 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -5
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +12 -10
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +12 -10
- 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 +322 -110
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +322 -110
- 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/scheduled-events.d.mts +43 -0
- package/resources/ai/assistants/scheduled-events.d.mts.map +1 -1
- package/resources/ai/assistants/scheduled-events.d.ts +43 -0
- package/resources/ai/assistants/scheduled-events.d.ts.map +1 -1
- package/resources/ai/assistants/versions.d.mts +212 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +212 -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 +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +9 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +9 -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 +119 -41
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +119 -41
- package/resources/calls/actions.d.ts.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 +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +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 +6 -116
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +6 -116
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js.map +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 +237 -161
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +237 -161
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/wireguard-interfaces.d.mts +6 -117
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +6 -117
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +5 -21
- package/src/resources/ai/ai.ts +11 -20
- package/src/resources/ai/assistants/assistants.ts +350 -131
- package/src/resources/ai/assistants/canary-deploys.ts +266 -75
- package/src/resources/ai/assistants/index.ts +0 -10
- package/src/resources/ai/assistants/scheduled-events.ts +56 -0
- package/src/resources/ai/assistants/versions.ts +234 -6
- package/src/resources/ai/index.ts +1 -12
- package/src/resources/ai/openai/openai.ts +13 -2
- package/src/resources/calls/actions.ts +192 -76
- package/src/resources/calls/calls.ts +0 -4
- package/src/resources/calls/index.ts +0 -2
- package/src/resources/conferences/actions.ts +13 -1
- package/src/resources/index.ts +3 -13
- package/src/resources/networks/networks.ts +4 -31
- package/src/resources/public-internet-gateways.ts +6 -144
- 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 +249 -176
- package/src/resources/wireguard-interfaces.ts +8 -145
- 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
|
@@ -10,11 +10,6 @@ import {
|
|
|
10
10
|
CanaryDeployResponse,
|
|
11
11
|
CanaryDeployUpdateParams,
|
|
12
12
|
CanaryDeploys,
|
|
13
|
-
Clause,
|
|
14
|
-
RolloutSlot,
|
|
15
|
-
RuleInput,
|
|
16
|
-
RuleOutput,
|
|
17
|
-
Serve,
|
|
18
13
|
} from './canary-deploys';
|
|
19
14
|
import * as ScheduledEventsAPI from './scheduled-events';
|
|
20
15
|
import {
|
|
@@ -300,47 +295,6 @@ export interface Assistant {
|
|
|
300
295
|
>;
|
|
301
296
|
}
|
|
302
297
|
|
|
303
|
-
/**
|
|
304
|
-
* Reference to a connected integration attached to an assistant. Discover
|
|
305
|
-
* available integrations with `/ai/integrations` and connected integrations with
|
|
306
|
-
* `/ai/integrations/connections`.
|
|
307
|
-
*/
|
|
308
|
-
export interface AssistantIntegration {
|
|
309
|
-
/**
|
|
310
|
-
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
311
|
-
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
312
|
-
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
313
|
-
* connection-level `id` from `/ai/integrations/connections`.
|
|
314
|
-
*/
|
|
315
|
-
integration_id: string;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
319
|
-
* empty, all tools allowed by the connected integration are available to the
|
|
320
|
-
* assistant.
|
|
321
|
-
*/
|
|
322
|
-
allowed_list?: Array<string>;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
327
|
-
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
328
|
-
* ID.
|
|
329
|
-
*/
|
|
330
|
-
export interface AssistantMcpServer {
|
|
331
|
-
/**
|
|
332
|
-
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
333
|
-
* by the `/ai/mcp_servers` endpoints.
|
|
334
|
-
*/
|
|
335
|
-
id: string;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
339
|
-
* uses the MCP server's configured `allowed_tools`.
|
|
340
|
-
*/
|
|
341
|
-
allowed_tools?: Array<string>;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
298
|
/**
|
|
345
299
|
* The handoff tool allows the assistant to hand off control of the conversation to
|
|
346
300
|
* another AI assistant. By default, this will happen transparently to the end
|
|
@@ -420,7 +374,7 @@ export namespace AssistantTool {
|
|
|
420
374
|
* variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
421
375
|
* variables webhook and resolves to an array of target objects at runtime.
|
|
422
376
|
*/
|
|
423
|
-
targets: Array<Transfer.
|
|
377
|
+
targets: Array<Transfer.UnionMember0> | string;
|
|
424
378
|
|
|
425
379
|
/**
|
|
426
380
|
* Custom headers to be added to the SIP INVITE for the transfer command.
|
|
@@ -450,7 +404,7 @@ export namespace AssistantTool {
|
|
|
450
404
|
}
|
|
451
405
|
|
|
452
406
|
export namespace Transfer {
|
|
453
|
-
export interface
|
|
407
|
+
export interface UnionMember0 {
|
|
454
408
|
/**
|
|
455
409
|
* The destination number or SIP URI of the call.
|
|
456
410
|
*/
|
|
@@ -627,7 +581,7 @@ export namespace AssistantTool {
|
|
|
627
581
|
* omitted or null, the invite tool can still be configured and targets may be
|
|
628
582
|
* supplied dynamically at runtime.
|
|
629
583
|
*/
|
|
630
|
-
targets?: Array<Invite.
|
|
584
|
+
targets?: Array<Invite.UnionMember0> | string | null;
|
|
631
585
|
|
|
632
586
|
/**
|
|
633
587
|
* Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
@@ -649,7 +603,7 @@ export namespace AssistantTool {
|
|
|
649
603
|
value?: string;
|
|
650
604
|
}
|
|
651
605
|
|
|
652
|
-
export interface
|
|
606
|
+
export interface UnionMember0 {
|
|
653
607
|
/**
|
|
654
608
|
* The destination number or SIP URI of the call.
|
|
655
609
|
*/
|
|
@@ -1057,7 +1011,7 @@ export interface InferenceEmbedding {
|
|
|
1057
1011
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
1058
1012
|
* `integration_id`.
|
|
1059
1013
|
*/
|
|
1060
|
-
integrations?: Array<
|
|
1014
|
+
integrations?: Array<InferenceEmbedding.Integration>;
|
|
1061
1015
|
|
|
1062
1016
|
/**
|
|
1063
1017
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -1067,7 +1021,7 @@ export interface InferenceEmbedding {
|
|
|
1067
1021
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
1068
1022
|
* `eager_eot_threshold`).
|
|
1069
1023
|
*/
|
|
1070
|
-
interruption_settings?:
|
|
1024
|
+
interruption_settings?: InferenceEmbedding.InterruptionSettings;
|
|
1071
1025
|
|
|
1072
1026
|
/**
|
|
1073
1027
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -1083,7 +1037,7 @@ export interface InferenceEmbedding {
|
|
|
1083
1037
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
1084
1038
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
1085
1039
|
*/
|
|
1086
|
-
mcp_servers?: Array<
|
|
1040
|
+
mcp_servers?: Array<InferenceEmbedding.McpServer>;
|
|
1087
1041
|
|
|
1088
1042
|
messaging_settings?: MessagingSettings;
|
|
1089
1043
|
|
|
@@ -1147,27 +1101,118 @@ export interface InferenceEmbedding {
|
|
|
1147
1101
|
widget_settings?: WidgetSettings;
|
|
1148
1102
|
}
|
|
1149
1103
|
|
|
1150
|
-
|
|
1151
|
-
* Settings for interruptions and how the assistant decides the user has finished
|
|
1152
|
-
* speaking. These timings are most relevant when using non turn-taking
|
|
1153
|
-
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
1154
|
-
* behavior is controlled by the transcription end-of-turn settings under
|
|
1155
|
-
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
1156
|
-
* `eager_eot_threshold`).
|
|
1157
|
-
*/
|
|
1158
|
-
export interface InferenceEmbeddingInterruptionSettings {
|
|
1104
|
+
export namespace InferenceEmbedding {
|
|
1159
1105
|
/**
|
|
1160
|
-
*
|
|
1106
|
+
* Reference to a connected integration attached to an assistant. Discover
|
|
1107
|
+
* available integrations with `/ai/integrations` and connected integrations with
|
|
1108
|
+
* `/ai/integrations/connections`.
|
|
1161
1109
|
*/
|
|
1162
|
-
|
|
1110
|
+
export interface Integration {
|
|
1111
|
+
/**
|
|
1112
|
+
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
1113
|
+
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
1114
|
+
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
1115
|
+
* connection-level `id` from `/ai/integrations/connections`.
|
|
1116
|
+
*/
|
|
1117
|
+
integration_id: string;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
1121
|
+
* empty, all tools allowed by the connected integration are available to the
|
|
1122
|
+
* assistant.
|
|
1123
|
+
*/
|
|
1124
|
+
allowed_list?: Array<string>;
|
|
1125
|
+
}
|
|
1163
1126
|
|
|
1164
1127
|
/**
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
* turn-taking models like `deepgram/flux`, end-of-turn
|
|
1168
|
-
* transcription end-of-turn settings under
|
|
1128
|
+
* Settings for interruptions and how the assistant decides the user has finished
|
|
1129
|
+
* speaking. These timings are most relevant when using non turn-taking
|
|
1130
|
+
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
1131
|
+
* behavior is controlled by the transcription end-of-turn settings under
|
|
1132
|
+
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
1133
|
+
* `eager_eot_threshold`).
|
|
1169
1134
|
*/
|
|
1170
|
-
|
|
1135
|
+
export interface InterruptionSettings {
|
|
1136
|
+
/**
|
|
1137
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
1138
|
+
*/
|
|
1139
|
+
enable?: boolean;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
1143
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
1144
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
1145
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
1146
|
+
*/
|
|
1147
|
+
start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
export namespace InterruptionSettings {
|
|
1151
|
+
/**
|
|
1152
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
1153
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
1154
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
1155
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
1156
|
+
*/
|
|
1157
|
+
export interface StartSpeakingPlan {
|
|
1158
|
+
/**
|
|
1159
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
1160
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
1161
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
1162
|
+
* `eager_eot_threshold`.
|
|
1163
|
+
*/
|
|
1164
|
+
transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Minimum seconds to wait before the assistant starts speaking.
|
|
1168
|
+
*/
|
|
1169
|
+
wait_seconds?: number;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export namespace StartSpeakingPlan {
|
|
1173
|
+
/**
|
|
1174
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
1175
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
1176
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
1177
|
+
* `eager_eot_threshold`.
|
|
1178
|
+
*/
|
|
1179
|
+
export interface TranscriptionEndpointingPlan {
|
|
1180
|
+
/**
|
|
1181
|
+
* Seconds to wait after the transcript ends without punctuation.
|
|
1182
|
+
*/
|
|
1183
|
+
on_no_punctuation_seconds?: number;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Seconds to wait after the transcript ends with a number.
|
|
1187
|
+
*/
|
|
1188
|
+
on_number_seconds?: number;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Seconds to wait after the transcript ends with punctuation.
|
|
1192
|
+
*/
|
|
1193
|
+
on_punctuation_seconds?: number;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
1200
|
+
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
1201
|
+
* ID.
|
|
1202
|
+
*/
|
|
1203
|
+
export interface McpServer {
|
|
1204
|
+
/**
|
|
1205
|
+
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
1206
|
+
* by the `/ai/mcp_servers` endpoints.
|
|
1207
|
+
*/
|
|
1208
|
+
id: string;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
1212
|
+
* uses the MCP server's configured `allowed_tools`.
|
|
1213
|
+
*/
|
|
1214
|
+
allowed_tools?: Array<string>;
|
|
1215
|
+
}
|
|
1171
1216
|
}
|
|
1172
1217
|
|
|
1173
1218
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
@@ -1474,27 +1519,6 @@ export interface RetrievalTool {
|
|
|
1474
1519
|
type: 'retrieval';
|
|
1475
1520
|
}
|
|
1476
1521
|
|
|
1477
|
-
/**
|
|
1478
|
-
* Controls when the assistant starts speaking after the user stops. These
|
|
1479
|
-
* thresholds primarily apply to non turn-taking transcription models. For
|
|
1480
|
-
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
1481
|
-
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
1482
|
-
*/
|
|
1483
|
-
export interface StartSpeakingPlan {
|
|
1484
|
-
/**
|
|
1485
|
-
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
1486
|
-
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
1487
|
-
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
1488
|
-
* `eager_eot_threshold`.
|
|
1489
|
-
*/
|
|
1490
|
-
transcription_endpointing_plan?: TranscriptionEndpointingPlan;
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* Minimum seconds to wait before the assistant starts speaking.
|
|
1494
|
-
*/
|
|
1495
|
-
wait_seconds?: number;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
1522
|
export interface TelephonySettings {
|
|
1499
1523
|
/**
|
|
1500
1524
|
* Default Texml App used for voice calls with your assistant. This will be created
|
|
@@ -1658,29 +1682,6 @@ export namespace TelephonySettings {
|
|
|
1658
1682
|
}
|
|
1659
1683
|
}
|
|
1660
1684
|
|
|
1661
|
-
/**
|
|
1662
|
-
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
1663
|
-
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
1664
|
-
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
1665
|
-
* `eager_eot_threshold`.
|
|
1666
|
-
*/
|
|
1667
|
-
export interface TranscriptionEndpointingPlan {
|
|
1668
|
-
/**
|
|
1669
|
-
* Seconds to wait after the transcript ends without punctuation.
|
|
1670
|
-
*/
|
|
1671
|
-
on_no_punctuation_seconds?: number;
|
|
1672
|
-
|
|
1673
|
-
/**
|
|
1674
|
-
* Seconds to wait after the transcript ends with a number.
|
|
1675
|
-
*/
|
|
1676
|
-
on_number_seconds?: number;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* Seconds to wait after the transcript ends with punctuation.
|
|
1680
|
-
*/
|
|
1681
|
-
on_punctuation_seconds?: number;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
1685
|
export interface TranscriptionSettings {
|
|
1685
1686
|
/**
|
|
1686
1687
|
* Integration secret identifier for the transcription provider API key. Currently
|
|
@@ -1803,11 +1804,11 @@ export namespace TransferTool {
|
|
|
1803
1804
|
* variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
1804
1805
|
* variables webhook and resolves to an array of target objects at runtime.
|
|
1805
1806
|
*/
|
|
1806
|
-
targets: Array<Transfer.
|
|
1807
|
+
targets: Array<Transfer.UnionMember0> | string;
|
|
1807
1808
|
}
|
|
1808
1809
|
|
|
1809
1810
|
export namespace Transfer {
|
|
1810
|
-
export interface
|
|
1811
|
+
export interface UnionMember0 {
|
|
1811
1812
|
/**
|
|
1812
1813
|
* The destination number or SIP URI of the call.
|
|
1813
1814
|
*/
|
|
@@ -2270,7 +2271,7 @@ export interface AssistantCreateParams {
|
|
|
2270
2271
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
2271
2272
|
* `integration_id`.
|
|
2272
2273
|
*/
|
|
2273
|
-
integrations?: Array<
|
|
2274
|
+
integrations?: Array<AssistantCreateParams.Integration>;
|
|
2274
2275
|
|
|
2275
2276
|
/**
|
|
2276
2277
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -2280,7 +2281,7 @@ export interface AssistantCreateParams {
|
|
|
2280
2281
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2281
2282
|
* `eager_eot_threshold`).
|
|
2282
2283
|
*/
|
|
2283
|
-
interruption_settings?:
|
|
2284
|
+
interruption_settings?: AssistantCreateParams.InterruptionSettings;
|
|
2284
2285
|
|
|
2285
2286
|
/**
|
|
2286
2287
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -2296,7 +2297,7 @@ export interface AssistantCreateParams {
|
|
|
2296
2297
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
2297
2298
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
2298
2299
|
*/
|
|
2299
|
-
mcp_servers?: Array<
|
|
2300
|
+
mcp_servers?: Array<AssistantCreateParams.McpServer>;
|
|
2300
2301
|
|
|
2301
2302
|
messaging_settings?: MessagingSettings;
|
|
2302
2303
|
|
|
@@ -2354,6 +2355,120 @@ export interface AssistantCreateParams {
|
|
|
2354
2355
|
widget_settings?: WidgetSettings;
|
|
2355
2356
|
}
|
|
2356
2357
|
|
|
2358
|
+
export namespace AssistantCreateParams {
|
|
2359
|
+
/**
|
|
2360
|
+
* Reference to a connected integration attached to an assistant. Discover
|
|
2361
|
+
* available integrations with `/ai/integrations` and connected integrations with
|
|
2362
|
+
* `/ai/integrations/connections`.
|
|
2363
|
+
*/
|
|
2364
|
+
export interface Integration {
|
|
2365
|
+
/**
|
|
2366
|
+
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
2367
|
+
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
2368
|
+
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
2369
|
+
* connection-level `id` from `/ai/integrations/connections`.
|
|
2370
|
+
*/
|
|
2371
|
+
integration_id: string;
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
2375
|
+
* empty, all tools allowed by the connected integration are available to the
|
|
2376
|
+
* assistant.
|
|
2377
|
+
*/
|
|
2378
|
+
allowed_list?: Array<string>;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* Settings for interruptions and how the assistant decides the user has finished
|
|
2383
|
+
* speaking. These timings are most relevant when using non turn-taking
|
|
2384
|
+
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
2385
|
+
* behavior is controlled by the transcription end-of-turn settings under
|
|
2386
|
+
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2387
|
+
* `eager_eot_threshold`).
|
|
2388
|
+
*/
|
|
2389
|
+
export interface InterruptionSettings {
|
|
2390
|
+
/**
|
|
2391
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
2392
|
+
*/
|
|
2393
|
+
enable?: boolean;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
2397
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
2398
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
2399
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
2400
|
+
*/
|
|
2401
|
+
start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
export namespace InterruptionSettings {
|
|
2405
|
+
/**
|
|
2406
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
2407
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
2408
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
2409
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
2410
|
+
*/
|
|
2411
|
+
export interface StartSpeakingPlan {
|
|
2412
|
+
/**
|
|
2413
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
2414
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
2415
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
2416
|
+
* `eager_eot_threshold`.
|
|
2417
|
+
*/
|
|
2418
|
+
transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Minimum seconds to wait before the assistant starts speaking.
|
|
2422
|
+
*/
|
|
2423
|
+
wait_seconds?: number;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
export namespace StartSpeakingPlan {
|
|
2427
|
+
/**
|
|
2428
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
2429
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
2430
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
2431
|
+
* `eager_eot_threshold`.
|
|
2432
|
+
*/
|
|
2433
|
+
export interface TranscriptionEndpointingPlan {
|
|
2434
|
+
/**
|
|
2435
|
+
* Seconds to wait after the transcript ends without punctuation.
|
|
2436
|
+
*/
|
|
2437
|
+
on_no_punctuation_seconds?: number;
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* Seconds to wait after the transcript ends with a number.
|
|
2441
|
+
*/
|
|
2442
|
+
on_number_seconds?: number;
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* Seconds to wait after the transcript ends with punctuation.
|
|
2446
|
+
*/
|
|
2447
|
+
on_punctuation_seconds?: number;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
2454
|
+
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
2455
|
+
* ID.
|
|
2456
|
+
*/
|
|
2457
|
+
export interface McpServer {
|
|
2458
|
+
/**
|
|
2459
|
+
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
2460
|
+
* by the `/ai/mcp_servers` endpoints.
|
|
2461
|
+
*/
|
|
2462
|
+
id: string;
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
2466
|
+
* uses the MCP server's configured `allowed_tools`.
|
|
2467
|
+
*/
|
|
2468
|
+
allowed_tools?: Array<string>;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2357
2472
|
export interface AssistantRetrieveParams {
|
|
2358
2473
|
call_control_id?: string;
|
|
2359
2474
|
|
|
@@ -2422,7 +2537,7 @@ export interface AssistantUpdateParams {
|
|
|
2422
2537
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
2423
2538
|
* `integration_id`.
|
|
2424
2539
|
*/
|
|
2425
|
-
integrations?: Array<
|
|
2540
|
+
integrations?: Array<AssistantUpdateParams.Integration>;
|
|
2426
2541
|
|
|
2427
2542
|
/**
|
|
2428
2543
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -2432,7 +2547,7 @@ export interface AssistantUpdateParams {
|
|
|
2432
2547
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2433
2548
|
* `eager_eot_threshold`).
|
|
2434
2549
|
*/
|
|
2435
|
-
interruption_settings?:
|
|
2550
|
+
interruption_settings?: AssistantUpdateParams.InterruptionSettings;
|
|
2436
2551
|
|
|
2437
2552
|
/**
|
|
2438
2553
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -2448,7 +2563,7 @@ export interface AssistantUpdateParams {
|
|
|
2448
2563
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
2449
2564
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
2450
2565
|
*/
|
|
2451
|
-
mcp_servers?: Array<
|
|
2566
|
+
mcp_servers?: Array<AssistantUpdateParams.McpServer>;
|
|
2452
2567
|
|
|
2453
2568
|
messaging_settings?: MessagingSettings;
|
|
2454
2569
|
|
|
@@ -2519,6 +2634,120 @@ export interface AssistantUpdateParams {
|
|
|
2519
2634
|
widget_settings?: WidgetSettings;
|
|
2520
2635
|
}
|
|
2521
2636
|
|
|
2637
|
+
export namespace AssistantUpdateParams {
|
|
2638
|
+
/**
|
|
2639
|
+
* Reference to a connected integration attached to an assistant. Discover
|
|
2640
|
+
* available integrations with `/ai/integrations` and connected integrations with
|
|
2641
|
+
* `/ai/integrations/connections`.
|
|
2642
|
+
*/
|
|
2643
|
+
export interface Integration {
|
|
2644
|
+
/**
|
|
2645
|
+
* Catalog integration ID to attach. This is the `id` from the integrations catalog
|
|
2646
|
+
* at `/ai/integrations` (the same value also appears as `integration_id` on
|
|
2647
|
+
* entries returned by `/ai/integrations/connections`). It is **not** the
|
|
2648
|
+
* connection-level `id` from `/ai/integrations/connections`.
|
|
2649
|
+
*/
|
|
2650
|
+
integration_id: string;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* Optional per-assistant allowlist of integration tool names. When omitted or
|
|
2654
|
+
* empty, all tools allowed by the connected integration are available to the
|
|
2655
|
+
* assistant.
|
|
2656
|
+
*/
|
|
2657
|
+
allowed_list?: Array<string>;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* Settings for interruptions and how the assistant decides the user has finished
|
|
2662
|
+
* speaking. These timings are most relevant when using non turn-taking
|
|
2663
|
+
* transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
|
|
2664
|
+
* behavior is controlled by the transcription end-of-turn settings under
|
|
2665
|
+
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2666
|
+
* `eager_eot_threshold`).
|
|
2667
|
+
*/
|
|
2668
|
+
export interface InterruptionSettings {
|
|
2669
|
+
/**
|
|
2670
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
2671
|
+
*/
|
|
2672
|
+
enable?: boolean;
|
|
2673
|
+
|
|
2674
|
+
/**
|
|
2675
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
2676
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
2677
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
2678
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
2679
|
+
*/
|
|
2680
|
+
start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
export namespace InterruptionSettings {
|
|
2684
|
+
/**
|
|
2685
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
2686
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
2687
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
2688
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
2689
|
+
*/
|
|
2690
|
+
export interface StartSpeakingPlan {
|
|
2691
|
+
/**
|
|
2692
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
2693
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
2694
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
2695
|
+
* `eager_eot_threshold`.
|
|
2696
|
+
*/
|
|
2697
|
+
transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Minimum seconds to wait before the assistant starts speaking.
|
|
2701
|
+
*/
|
|
2702
|
+
wait_seconds?: number;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
export namespace StartSpeakingPlan {
|
|
2706
|
+
/**
|
|
2707
|
+
* Endpointing thresholds used to decide when the user has finished speaking.
|
|
2708
|
+
* Applies to non turn-taking transcription models. For `deepgram/flux`, use
|
|
2709
|
+
* `transcription.settings.eot_threshold` / `eot_timeout_ms` /
|
|
2710
|
+
* `eager_eot_threshold`.
|
|
2711
|
+
*/
|
|
2712
|
+
export interface TranscriptionEndpointingPlan {
|
|
2713
|
+
/**
|
|
2714
|
+
* Seconds to wait after the transcript ends without punctuation.
|
|
2715
|
+
*/
|
|
2716
|
+
on_no_punctuation_seconds?: number;
|
|
2717
|
+
|
|
2718
|
+
/**
|
|
2719
|
+
* Seconds to wait after the transcript ends with a number.
|
|
2720
|
+
*/
|
|
2721
|
+
on_number_seconds?: number;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Seconds to wait after the transcript ends with punctuation.
|
|
2725
|
+
*/
|
|
2726
|
+
on_punctuation_seconds?: number;
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* Reference to an MCP server attached to an assistant. Create and manage MCP
|
|
2733
|
+
* servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
|
|
2734
|
+
* ID.
|
|
2735
|
+
*/
|
|
2736
|
+
export interface McpServer {
|
|
2737
|
+
/**
|
|
2738
|
+
* ID of the MCP server to attach. This must be the `id` of an MCP server returned
|
|
2739
|
+
* by the `/ai/mcp_servers` endpoints.
|
|
2740
|
+
*/
|
|
2741
|
+
id: string;
|
|
2742
|
+
|
|
2743
|
+
/**
|
|
2744
|
+
* Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
|
|
2745
|
+
* uses the MCP server's configured `allowed_tools`.
|
|
2746
|
+
*/
|
|
2747
|
+
allowed_tools?: Array<string>;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2522
2751
|
export interface AssistantChatParams {
|
|
2523
2752
|
/**
|
|
2524
2753
|
* The message content sent by the client to the assistant
|
|
@@ -2578,8 +2807,6 @@ Assistants.Tags = Tags;
|
|
|
2578
2807
|
export declare namespace Assistants {
|
|
2579
2808
|
export {
|
|
2580
2809
|
type Assistant as Assistant,
|
|
2581
|
-
type AssistantIntegration as AssistantIntegration,
|
|
2582
|
-
type AssistantMcpServer as AssistantMcpServer,
|
|
2583
2810
|
type AssistantTool as AssistantTool,
|
|
2584
2811
|
type AssistantsList as AssistantsList,
|
|
2585
2812
|
type AudioVisualizerConfig as AudioVisualizerConfig,
|
|
@@ -2592,7 +2819,6 @@ export declare namespace Assistants {
|
|
|
2592
2819
|
type HangupToolParams as HangupToolParams,
|
|
2593
2820
|
type ImportMetadata as ImportMetadata,
|
|
2594
2821
|
type InferenceEmbedding as InferenceEmbedding,
|
|
2595
|
-
type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
|
|
2596
2822
|
type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
|
|
2597
2823
|
type InsightSettings as InsightSettings,
|
|
2598
2824
|
type MessagingSettings as MessagingSettings,
|
|
@@ -2602,9 +2828,7 @@ export declare namespace Assistants {
|
|
|
2602
2828
|
type PostConversationSettingsReq as PostConversationSettingsReq,
|
|
2603
2829
|
type PrivacySettings as PrivacySettings,
|
|
2604
2830
|
type RetrievalTool as RetrievalTool,
|
|
2605
|
-
type StartSpeakingPlan as StartSpeakingPlan,
|
|
2606
2831
|
type TelephonySettings as TelephonySettings,
|
|
2607
|
-
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
2608
2832
|
type TranscriptionSettings as TranscriptionSettings,
|
|
2609
2833
|
type TranscriptionSettingsConfig as TranscriptionSettingsConfig,
|
|
2610
2834
|
type TransferTool as TransferTool,
|
|
@@ -2637,11 +2861,6 @@ export declare namespace Assistants {
|
|
|
2637
2861
|
CanaryDeploys as CanaryDeploys,
|
|
2638
2862
|
type CanaryDeploy as CanaryDeploy,
|
|
2639
2863
|
type CanaryDeployResponse as CanaryDeployResponse,
|
|
2640
|
-
type Clause as Clause,
|
|
2641
|
-
type RolloutSlot as RolloutSlot,
|
|
2642
|
-
type RuleInput as RuleInput,
|
|
2643
|
-
type RuleOutput as RuleOutput,
|
|
2644
|
-
type Serve as Serve,
|
|
2645
2864
|
type CanaryDeployCreateParams as CanaryDeployCreateParams,
|
|
2646
2865
|
type CanaryDeployUpdateParams as CanaryDeployUpdateParams,
|
|
2647
2866
|
};
|