telnyx 6.52.0 → 6.53.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 +13 -0
- package/client.d.mts +5 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -4
- 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 +10 -12
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +10 -12
- 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 +110 -322
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +110 -322
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.mts +70 -241
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +70 -241
- package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
- package/resources/ai/assistants/index.d.mts +2 -2
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -2
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +6 -212
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +6 -212
- 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 +2 -9
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +2 -9
- 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 +41 -119
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +41 -119
- 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 +1 -11
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -11
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/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 +25 -2
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +25 -2
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/public-internet-gateways.d.mts +116 -6
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +116 -6
- 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 +10 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +10 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +211 -1861
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +211 -1861
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +161 -237
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +161 -237
- 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 +117 -6
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +117 -6
- 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 +21 -5
- package/src/resources/ai/ai.ts +20 -11
- package/src/resources/ai/assistants/assistants.ts +131 -350
- package/src/resources/ai/assistants/canary-deploys.ts +75 -266
- package/src/resources/ai/assistants/index.ts +10 -0
- package/src/resources/ai/assistants/versions.ts +6 -234
- package/src/resources/ai/index.ts +12 -1
- package/src/resources/ai/openai/openai.ts +2 -13
- package/src/resources/calls/actions.ts +76 -192
- package/src/resources/calls/calls.ts +4 -0
- package/src/resources/calls/index.ts +2 -0
- package/src/resources/conferences/actions.ts +1 -13
- package/src/resources/index.ts +13 -3
- package/src/resources/networks/networks.ts +31 -4
- package/src/resources/public-internet-gateways.ts +144 -6
- package/src/resources/shared.ts +12 -0
- package/src/resources/uac-connections/index.ts +6 -2
- package/src/resources/uac-connections/uac-connections.ts +397 -2396
- package/src/resources/virtual-cross-connects.ts +176 -249
- package/src/resources/wireguard-interfaces.ts +145 -8
- 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,6 +10,11 @@ import {
|
|
|
10
10
|
CanaryDeployResponse,
|
|
11
11
|
CanaryDeployUpdateParams,
|
|
12
12
|
CanaryDeploys,
|
|
13
|
+
Clause,
|
|
14
|
+
RolloutSlot,
|
|
15
|
+
RuleInput,
|
|
16
|
+
RuleOutput,
|
|
17
|
+
Serve,
|
|
13
18
|
} from './canary-deploys';
|
|
14
19
|
import * as ScheduledEventsAPI from './scheduled-events';
|
|
15
20
|
import {
|
|
@@ -295,6 +300,47 @@ export interface Assistant {
|
|
|
295
300
|
>;
|
|
296
301
|
}
|
|
297
302
|
|
|
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
|
+
|
|
298
344
|
/**
|
|
299
345
|
* The handoff tool allows the assistant to hand off control of the conversation to
|
|
300
346
|
* another AI assistant. By default, this will happen transparently to the end
|
|
@@ -374,7 +420,7 @@ export namespace AssistantTool {
|
|
|
374
420
|
* variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
375
421
|
* variables webhook and resolves to an array of target objects at runtime.
|
|
376
422
|
*/
|
|
377
|
-
targets: Array<Transfer.
|
|
423
|
+
targets: Array<Transfer.TargetsList> | string;
|
|
378
424
|
|
|
379
425
|
/**
|
|
380
426
|
* Custom headers to be added to the SIP INVITE for the transfer command.
|
|
@@ -404,7 +450,7 @@ export namespace AssistantTool {
|
|
|
404
450
|
}
|
|
405
451
|
|
|
406
452
|
export namespace Transfer {
|
|
407
|
-
export interface
|
|
453
|
+
export interface TargetsList {
|
|
408
454
|
/**
|
|
409
455
|
* The destination number or SIP URI of the call.
|
|
410
456
|
*/
|
|
@@ -581,7 +627,7 @@ export namespace AssistantTool {
|
|
|
581
627
|
* omitted or null, the invite tool can still be configured and targets may be
|
|
582
628
|
* supplied dynamically at runtime.
|
|
583
629
|
*/
|
|
584
|
-
targets?: Array<Invite.
|
|
630
|
+
targets?: Array<Invite.TargetsList> | string | null;
|
|
585
631
|
|
|
586
632
|
/**
|
|
587
633
|
* Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
@@ -603,7 +649,7 @@ export namespace AssistantTool {
|
|
|
603
649
|
value?: string;
|
|
604
650
|
}
|
|
605
651
|
|
|
606
|
-
export interface
|
|
652
|
+
export interface TargetsList {
|
|
607
653
|
/**
|
|
608
654
|
* The destination number or SIP URI of the call.
|
|
609
655
|
*/
|
|
@@ -1011,7 +1057,7 @@ export interface InferenceEmbedding {
|
|
|
1011
1057
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
1012
1058
|
* `integration_id`.
|
|
1013
1059
|
*/
|
|
1014
|
-
integrations?: Array<
|
|
1060
|
+
integrations?: Array<AssistantIntegration>;
|
|
1015
1061
|
|
|
1016
1062
|
/**
|
|
1017
1063
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -1021,7 +1067,7 @@ export interface InferenceEmbedding {
|
|
|
1021
1067
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
1022
1068
|
* `eager_eot_threshold`).
|
|
1023
1069
|
*/
|
|
1024
|
-
interruption_settings?:
|
|
1070
|
+
interruption_settings?: InferenceEmbeddingInterruptionSettings;
|
|
1025
1071
|
|
|
1026
1072
|
/**
|
|
1027
1073
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -1037,7 +1083,7 @@ export interface InferenceEmbedding {
|
|
|
1037
1083
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
1038
1084
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
1039
1085
|
*/
|
|
1040
|
-
mcp_servers?: Array<
|
|
1086
|
+
mcp_servers?: Array<AssistantMcpServer>;
|
|
1041
1087
|
|
|
1042
1088
|
messaging_settings?: MessagingSettings;
|
|
1043
1089
|
|
|
@@ -1101,118 +1147,27 @@ export interface InferenceEmbedding {
|
|
|
1101
1147
|
widget_settings?: WidgetSettings;
|
|
1102
1148
|
}
|
|
1103
1149
|
|
|
1104
|
-
|
|
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 {
|
|
1105
1159
|
/**
|
|
1106
|
-
*
|
|
1107
|
-
* available integrations with `/ai/integrations` and connected integrations with
|
|
1108
|
-
* `/ai/integrations/connections`.
|
|
1160
|
+
* Whether users can interrupt the assistant while it is speaking.
|
|
1109
1161
|
*/
|
|
1110
|
-
|
|
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
|
-
}
|
|
1162
|
+
enable?: boolean;
|
|
1126
1163
|
|
|
1127
1164
|
/**
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
*
|
|
1132
|
-
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
1133
|
-
* `eager_eot_threshold`).
|
|
1165
|
+
* Controls when the assistant starts speaking after the user stops. These
|
|
1166
|
+
* thresholds primarily apply to non turn-taking transcription models. For
|
|
1167
|
+
* turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
|
|
1168
|
+
* transcription end-of-turn settings under `transcription.settings` instead.
|
|
1134
1169
|
*/
|
|
1135
|
-
|
|
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
|
-
}
|
|
1170
|
+
start_speaking_plan?: StartSpeakingPlan;
|
|
1216
1171
|
}
|
|
1217
1172
|
|
|
1218
1173
|
export interface InferenceEmbeddingWebhookToolParams {
|
|
@@ -1519,6 +1474,27 @@ export interface RetrievalTool {
|
|
|
1519
1474
|
type: 'retrieval';
|
|
1520
1475
|
}
|
|
1521
1476
|
|
|
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
|
+
|
|
1522
1498
|
export interface TelephonySettings {
|
|
1523
1499
|
/**
|
|
1524
1500
|
* Default Texml App used for voice calls with your assistant. This will be created
|
|
@@ -1682,6 +1658,29 @@ export namespace TelephonySettings {
|
|
|
1682
1658
|
}
|
|
1683
1659
|
}
|
|
1684
1660
|
|
|
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
|
+
|
|
1685
1684
|
export interface TranscriptionSettings {
|
|
1686
1685
|
/**
|
|
1687
1686
|
* Integration secret identifier for the transcription provider API key. Currently
|
|
@@ -1804,11 +1803,11 @@ export namespace TransferTool {
|
|
|
1804
1803
|
* variable string like `{{ targets }}` where `targets` is returned by the dynamic
|
|
1805
1804
|
* variables webhook and resolves to an array of target objects at runtime.
|
|
1806
1805
|
*/
|
|
1807
|
-
targets: Array<Transfer.
|
|
1806
|
+
targets: Array<Transfer.TargetsList> | string;
|
|
1808
1807
|
}
|
|
1809
1808
|
|
|
1810
1809
|
export namespace Transfer {
|
|
1811
|
-
export interface
|
|
1810
|
+
export interface TargetsList {
|
|
1812
1811
|
/**
|
|
1813
1812
|
* The destination number or SIP URI of the call.
|
|
1814
1813
|
*/
|
|
@@ -2271,7 +2270,7 @@ export interface AssistantCreateParams {
|
|
|
2271
2270
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
2272
2271
|
* `integration_id`.
|
|
2273
2272
|
*/
|
|
2274
|
-
integrations?: Array<
|
|
2273
|
+
integrations?: Array<AssistantIntegration>;
|
|
2275
2274
|
|
|
2276
2275
|
/**
|
|
2277
2276
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -2281,7 +2280,7 @@ export interface AssistantCreateParams {
|
|
|
2281
2280
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2282
2281
|
* `eager_eot_threshold`).
|
|
2283
2282
|
*/
|
|
2284
|
-
interruption_settings?:
|
|
2283
|
+
interruption_settings?: InferenceEmbeddingInterruptionSettings;
|
|
2285
2284
|
|
|
2286
2285
|
/**
|
|
2287
2286
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -2297,7 +2296,7 @@ export interface AssistantCreateParams {
|
|
|
2297
2296
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
2298
2297
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
2299
2298
|
*/
|
|
2300
|
-
mcp_servers?: Array<
|
|
2299
|
+
mcp_servers?: Array<AssistantMcpServer>;
|
|
2301
2300
|
|
|
2302
2301
|
messaging_settings?: MessagingSettings;
|
|
2303
2302
|
|
|
@@ -2355,120 +2354,6 @@ export interface AssistantCreateParams {
|
|
|
2355
2354
|
widget_settings?: WidgetSettings;
|
|
2356
2355
|
}
|
|
2357
2356
|
|
|
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
|
-
|
|
2472
2357
|
export interface AssistantRetrieveParams {
|
|
2473
2358
|
call_control_id?: string;
|
|
2474
2359
|
|
|
@@ -2537,7 +2422,7 @@ export interface AssistantUpdateParams {
|
|
|
2537
2422
|
* `/ai/integrations/connections`. Each item references a catalog integration by
|
|
2538
2423
|
* `integration_id`.
|
|
2539
2424
|
*/
|
|
2540
|
-
integrations?: Array<
|
|
2425
|
+
integrations?: Array<AssistantIntegration>;
|
|
2541
2426
|
|
|
2542
2427
|
/**
|
|
2543
2428
|
* Settings for interruptions and how the assistant decides the user has finished
|
|
@@ -2547,7 +2432,7 @@ export interface AssistantUpdateParams {
|
|
|
2547
2432
|
* `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
|
|
2548
2433
|
* `eager_eot_threshold`).
|
|
2549
2434
|
*/
|
|
2550
|
-
interruption_settings?:
|
|
2435
|
+
interruption_settings?: InferenceEmbeddingInterruptionSettings;
|
|
2551
2436
|
|
|
2552
2437
|
/**
|
|
2553
2438
|
* This is only needed when using third-party inference providers selected by
|
|
@@ -2563,7 +2448,7 @@ export interface AssistantUpdateParams {
|
|
|
2563
2448
|
* MCP servers attached to the assistant. Create MCP servers with
|
|
2564
2449
|
* `/ai/mcp_servers`, then reference them by `id` here.
|
|
2565
2450
|
*/
|
|
2566
|
-
mcp_servers?: Array<
|
|
2451
|
+
mcp_servers?: Array<AssistantMcpServer>;
|
|
2567
2452
|
|
|
2568
2453
|
messaging_settings?: MessagingSettings;
|
|
2569
2454
|
|
|
@@ -2634,120 +2519,6 @@ export interface AssistantUpdateParams {
|
|
|
2634
2519
|
widget_settings?: WidgetSettings;
|
|
2635
2520
|
}
|
|
2636
2521
|
|
|
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
|
-
|
|
2751
2522
|
export interface AssistantChatParams {
|
|
2752
2523
|
/**
|
|
2753
2524
|
* The message content sent by the client to the assistant
|
|
@@ -2807,6 +2578,8 @@ Assistants.Tags = Tags;
|
|
|
2807
2578
|
export declare namespace Assistants {
|
|
2808
2579
|
export {
|
|
2809
2580
|
type Assistant as Assistant,
|
|
2581
|
+
type AssistantIntegration as AssistantIntegration,
|
|
2582
|
+
type AssistantMcpServer as AssistantMcpServer,
|
|
2810
2583
|
type AssistantTool as AssistantTool,
|
|
2811
2584
|
type AssistantsList as AssistantsList,
|
|
2812
2585
|
type AudioVisualizerConfig as AudioVisualizerConfig,
|
|
@@ -2819,6 +2592,7 @@ export declare namespace Assistants {
|
|
|
2819
2592
|
type HangupToolParams as HangupToolParams,
|
|
2820
2593
|
type ImportMetadata as ImportMetadata,
|
|
2821
2594
|
type InferenceEmbedding as InferenceEmbedding,
|
|
2595
|
+
type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
|
|
2822
2596
|
type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
|
|
2823
2597
|
type InsightSettings as InsightSettings,
|
|
2824
2598
|
type MessagingSettings as MessagingSettings,
|
|
@@ -2828,7 +2602,9 @@ export declare namespace Assistants {
|
|
|
2828
2602
|
type PostConversationSettingsReq as PostConversationSettingsReq,
|
|
2829
2603
|
type PrivacySettings as PrivacySettings,
|
|
2830
2604
|
type RetrievalTool as RetrievalTool,
|
|
2605
|
+
type StartSpeakingPlan as StartSpeakingPlan,
|
|
2831
2606
|
type TelephonySettings as TelephonySettings,
|
|
2607
|
+
type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
|
|
2832
2608
|
type TranscriptionSettings as TranscriptionSettings,
|
|
2833
2609
|
type TranscriptionSettingsConfig as TranscriptionSettingsConfig,
|
|
2834
2610
|
type TransferTool as TransferTool,
|
|
@@ -2861,6 +2637,11 @@ export declare namespace Assistants {
|
|
|
2861
2637
|
CanaryDeploys as CanaryDeploys,
|
|
2862
2638
|
type CanaryDeploy as CanaryDeploy,
|
|
2863
2639
|
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,
|
|
2864
2645
|
type CanaryDeployCreateParams as CanaryDeployCreateParams,
|
|
2865
2646
|
type CanaryDeployUpdateParams as CanaryDeployUpdateParams,
|
|
2866
2647
|
};
|