telnyx 6.47.0 → 6.49.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.
Files changed (113) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +2 -2
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +2 -2
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js.map +1 -1
  16. package/resources/ai/ai.mjs.map +1 -1
  17. package/resources/ai/assistants/assistants.d.mts +142 -324
  18. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  19. package/resources/ai/assistants/assistants.d.ts +142 -324
  20. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  21. package/resources/ai/assistants/assistants.js.map +1 -1
  22. package/resources/ai/assistants/assistants.mjs.map +1 -1
  23. package/resources/ai/assistants/canary-deploys.d.mts +246 -30
  24. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  25. package/resources/ai/assistants/canary-deploys.d.ts +246 -30
  26. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  27. package/resources/ai/assistants/canary-deploys.js +0 -10
  28. package/resources/ai/assistants/canary-deploys.js.map +1 -1
  29. package/resources/ai/assistants/canary-deploys.mjs +0 -10
  30. package/resources/ai/assistants/canary-deploys.mjs.map +1 -1
  31. package/resources/ai/assistants/index.d.mts +2 -2
  32. package/resources/ai/assistants/index.d.mts.map +1 -1
  33. package/resources/ai/assistants/index.d.ts +2 -2
  34. package/resources/ai/assistants/index.d.ts.map +1 -1
  35. package/resources/ai/assistants/index.js.map +1 -1
  36. package/resources/ai/assistants/index.mjs.map +1 -1
  37. package/resources/ai/assistants/versions.d.mts +6 -214
  38. package/resources/ai/assistants/versions.d.mts.map +1 -1
  39. package/resources/ai/assistants/versions.d.ts +6 -214
  40. package/resources/ai/assistants/versions.d.ts.map +1 -1
  41. package/resources/ai/index.d.mts +1 -1
  42. package/resources/ai/index.d.mts.map +1 -1
  43. package/resources/ai/index.d.ts +1 -1
  44. package/resources/ai/index.d.ts.map +1 -1
  45. package/resources/ai/index.js.map +1 -1
  46. package/resources/ai/index.mjs.map +1 -1
  47. package/resources/calls/actions.d.mts +52 -4
  48. package/resources/calls/actions.d.mts.map +1 -1
  49. package/resources/calls/actions.d.ts +52 -4
  50. package/resources/calls/actions.d.ts.map +1 -1
  51. package/resources/conferences/actions.d.mts +13 -1
  52. package/resources/conferences/actions.d.mts.map +1 -1
  53. package/resources/conferences/actions.d.ts +13 -1
  54. package/resources/conferences/actions.d.ts.map +1 -1
  55. package/resources/index.d.mts +1 -0
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +1 -0
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +4 -2
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +1 -0
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/uac-connections/actions.d.mts +65 -0
  64. package/resources/uac-connections/actions.d.mts.map +1 -0
  65. package/resources/uac-connections/actions.d.ts +65 -0
  66. package/resources/uac-connections/actions.d.ts.map +1 -0
  67. package/resources/uac-connections/actions.js +29 -0
  68. package/resources/uac-connections/actions.js.map +1 -0
  69. package/resources/uac-connections/actions.mjs +25 -0
  70. package/resources/uac-connections/actions.mjs.map +1 -0
  71. package/resources/uac-connections/index.d.mts +3 -0
  72. package/resources/uac-connections/index.d.mts.map +1 -0
  73. package/resources/uac-connections/index.d.ts +3 -0
  74. package/resources/uac-connections/index.d.ts.map +1 -0
  75. package/resources/uac-connections/index.js +9 -0
  76. package/resources/uac-connections/index.js.map +1 -0
  77. package/resources/uac-connections/index.mjs +4 -0
  78. package/resources/uac-connections/index.mjs.map +1 -0
  79. package/resources/uac-connections/uac-connections.d.mts +2588 -0
  80. package/resources/uac-connections/uac-connections.d.mts.map +1 -0
  81. package/resources/uac-connections/uac-connections.d.ts +2588 -0
  82. package/resources/uac-connections/uac-connections.d.ts.map +1 -0
  83. package/resources/uac-connections/uac-connections.js +97 -0
  84. package/resources/uac-connections/uac-connections.js.map +1 -0
  85. package/resources/uac-connections/uac-connections.mjs +92 -0
  86. package/resources/uac-connections/uac-connections.mjs.map +1 -0
  87. package/resources/uac-connections.d.mts +2 -0
  88. package/resources/uac-connections.d.mts.map +1 -0
  89. package/resources/uac-connections.d.ts +2 -0
  90. package/resources/uac-connections.d.ts.map +1 -0
  91. package/resources/uac-connections.js +6 -0
  92. package/resources/uac-connections.js.map +1 -0
  93. package/resources/uac-connections.mjs +3 -0
  94. package/resources/uac-connections.mjs.map +1 -0
  95. package/src/client.ts +30 -0
  96. package/src/resources/ai/ai.ts +12 -0
  97. package/src/resources/ai/assistants/assistants.ts +167 -377
  98. package/src/resources/ai/assistants/canary-deploys.ts +280 -31
  99. package/src/resources/ai/assistants/index.ts +6 -1
  100. package/src/resources/ai/assistants/versions.ts +6 -250
  101. package/src/resources/ai/index.ts +6 -0
  102. package/src/resources/calls/actions.ts +64 -4
  103. package/src/resources/conferences/actions.ts +16 -1
  104. package/src/resources/index.ts +12 -0
  105. package/src/resources/uac-connections/actions.ts +83 -0
  106. package/src/resources/uac-connections/index.ts +15 -0
  107. package/src/resources/uac-connections/uac-connections.ts +3153 -0
  108. package/src/resources/uac-connections.ts +3 -0
  109. package/src/version.ts +1 -1
  110. package/version.d.mts +1 -1
  111. package/version.d.ts +1 -1
  112. package/version.js +1 -1
  113. package/version.mjs +1 -1
@@ -10,7 +10,6 @@ import {
10
10
  CanaryDeployResponse,
11
11
  CanaryDeployUpdateParams,
12
12
  CanaryDeploys,
13
- VersionConfig,
14
13
  } from './canary-deploys';
15
14
  import * as ScheduledEventsAPI from './scheduled-events';
16
15
  import {
@@ -794,6 +793,124 @@ export interface AudioVisualizerConfig {
794
793
  */
795
794
  export type EnabledFeatures = 'telephony' | 'messaging';
796
795
 
796
+ export interface ExternalLlm {
797
+ /**
798
+ * Base URL for the external LLM endpoint.
799
+ */
800
+ base_url: string;
801
+
802
+ /**
803
+ * Model identifier to use with the external LLM endpoint.
804
+ */
805
+ model: string;
806
+
807
+ /**
808
+ * Authentication method used when connecting to the external LLM endpoint.
809
+ */
810
+ authentication_method?: 'token' | 'certificate';
811
+
812
+ /**
813
+ * Integration secret identifier for the client certificate used with certificate
814
+ * authentication.
815
+ */
816
+ certificate_ref?: string;
817
+
818
+ /**
819
+ * When `true`, Telnyx forwards the assistant's dynamic variables to the external
820
+ * LLM endpoint as a top-level `extra_metadata` object on the chat completion
821
+ * request body. Defaults to `false`. Example payload sent to the external
822
+ * endpoint:
823
+ * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
824
+ * Distinct from OpenAI's native `metadata` field, which has its own size and type
825
+ * limits.
826
+ */
827
+ forward_metadata?: boolean;
828
+
829
+ /**
830
+ * Integration secret identifier for the external LLM API key.
831
+ */
832
+ llm_api_key_ref?: string;
833
+
834
+ /**
835
+ * URL used to retrieve an access token when certificate authentication is enabled.
836
+ */
837
+ token_retrieval_url?: string;
838
+ }
839
+
840
+ export interface ExternalLlmReq {
841
+ /**
842
+ * Base URL for the external LLM endpoint.
843
+ */
844
+ base_url: string;
845
+
846
+ /**
847
+ * Model identifier to use with the external LLM endpoint.
848
+ */
849
+ model: string;
850
+
851
+ /**
852
+ * Authentication method used when connecting to the external LLM endpoint.
853
+ */
854
+ authentication_method?: 'token' | 'certificate';
855
+
856
+ /**
857
+ * Integration secret identifier for the client certificate used with certificate
858
+ * authentication.
859
+ */
860
+ certificate_ref?: string;
861
+
862
+ /**
863
+ * When `true`, Telnyx forwards the assistant's dynamic variables to the external
864
+ * LLM endpoint as a top-level `extra_metadata` object on the chat completion
865
+ * request body. Defaults to `false`. Example payload sent to the external
866
+ * endpoint:
867
+ * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
868
+ * Distinct from OpenAI's native `metadata` field, which has its own size and type
869
+ * limits.
870
+ */
871
+ forward_metadata?: boolean;
872
+
873
+ /**
874
+ * Integration secret identifier for the external LLM API key.
875
+ */
876
+ llm_api_key_ref?: string;
877
+
878
+ /**
879
+ * URL used to retrieve an access token when certificate authentication is enabled.
880
+ */
881
+ token_retrieval_url?: string;
882
+ }
883
+
884
+ export interface FallbackConfig {
885
+ external_llm?: ExternalLlm;
886
+
887
+ /**
888
+ * Integration secret identifier for the fallback model API key.
889
+ */
890
+ llm_api_key_ref?: string;
891
+
892
+ /**
893
+ * Fallback Telnyx-hosted model to use when the primary LLM provider is
894
+ * unavailable.
895
+ */
896
+ model?: string;
897
+ }
898
+
899
+ export interface FallbackConfigReq {
900
+ external_llm?: ExternalLlmReq;
901
+
902
+ /**
903
+ * Integration secret identifier for the fallback model API key.
904
+ */
905
+ llm_api_key_ref?: string;
906
+
907
+ /**
908
+ * Fallback Telnyx-hosted model to use when the primary LLM provider is
909
+ * unavailable.
910
+ */
911
+ model?: string;
912
+ }
913
+
797
914
  export interface HangupTool {
798
915
  hangup: HangupToolParams;
799
916
 
@@ -870,9 +987,9 @@ export interface InferenceEmbedding {
870
987
 
871
988
  enabled_features?: Array<EnabledFeatures>;
872
989
 
873
- external_llm?: InferenceEmbedding.ExternalLlm;
990
+ external_llm?: ExternalLlm;
874
991
 
875
- fallback_config?: InferenceEmbedding.FallbackConfig;
992
+ fallback_config?: FallbackConfig;
876
993
 
877
994
  /**
878
995
  * Text that the assistant will use to start the conversation. This may be
@@ -934,7 +1051,7 @@ export interface InferenceEmbedding {
934
1051
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
935
1052
  * post-conversation. Beta feature.
936
1053
  */
937
- post_conversation_settings?: InferenceEmbedding.PostConversationSettings;
1054
+ post_conversation_settings?: PostConversationSettings;
938
1055
 
939
1056
  privacy_settings?: PrivacySettings;
940
1057
 
@@ -985,111 +1102,6 @@ export interface InferenceEmbedding {
985
1102
  }
986
1103
 
987
1104
  export namespace InferenceEmbedding {
988
- export interface ExternalLlm {
989
- /**
990
- * Base URL for the external LLM endpoint.
991
- */
992
- base_url: string;
993
-
994
- /**
995
- * Model identifier to use with the external LLM endpoint.
996
- */
997
- model: string;
998
-
999
- /**
1000
- * Authentication method used when connecting to the external LLM endpoint.
1001
- */
1002
- authentication_method?: 'token' | 'certificate';
1003
-
1004
- /**
1005
- * Integration secret identifier for the client certificate used with certificate
1006
- * authentication.
1007
- */
1008
- certificate_ref?: string;
1009
-
1010
- /**
1011
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
1012
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
1013
- * request body. Defaults to `false`. Example payload sent to the external
1014
- * endpoint:
1015
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
1016
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
1017
- * limits.
1018
- */
1019
- forward_metadata?: boolean;
1020
-
1021
- /**
1022
- * Integration secret identifier for the external LLM API key.
1023
- */
1024
- llm_api_key_ref?: string;
1025
-
1026
- /**
1027
- * URL used to retrieve an access token when certificate authentication is enabled.
1028
- */
1029
- token_retrieval_url?: string;
1030
- }
1031
-
1032
- export interface FallbackConfig {
1033
- external_llm?: FallbackConfig.ExternalLlm;
1034
-
1035
- /**
1036
- * Integration secret identifier for the fallback model API key.
1037
- */
1038
- llm_api_key_ref?: string;
1039
-
1040
- /**
1041
- * Fallback Telnyx-hosted model to use when the primary LLM provider is
1042
- * unavailable.
1043
- */
1044
- model?: string;
1045
- }
1046
-
1047
- export namespace FallbackConfig {
1048
- export interface ExternalLlm {
1049
- /**
1050
- * Base URL for the external LLM endpoint.
1051
- */
1052
- base_url: string;
1053
-
1054
- /**
1055
- * Model identifier to use with the external LLM endpoint.
1056
- */
1057
- model: string;
1058
-
1059
- /**
1060
- * Authentication method used when connecting to the external LLM endpoint.
1061
- */
1062
- authentication_method?: 'token' | 'certificate';
1063
-
1064
- /**
1065
- * Integration secret identifier for the client certificate used with certificate
1066
- * authentication.
1067
- */
1068
- certificate_ref?: string;
1069
-
1070
- /**
1071
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
1072
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
1073
- * request body. Defaults to `false`. Example payload sent to the external
1074
- * endpoint:
1075
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
1076
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
1077
- * limits.
1078
- */
1079
- forward_metadata?: boolean;
1080
-
1081
- /**
1082
- * Integration secret identifier for the external LLM API key.
1083
- */
1084
- llm_api_key_ref?: string;
1085
-
1086
- /**
1087
- * URL used to retrieve an access token when certificate authentication is enabled.
1088
- */
1089
- token_retrieval_url?: string;
1090
- }
1091
- }
1092
-
1093
1105
  /**
1094
1106
  * Reference to a connected integration attached to an assistant. Discover
1095
1107
  * available integrations with `/ai/integrations` and connected integrations with
@@ -1201,23 +1213,6 @@ export namespace InferenceEmbedding {
1201
1213
  */
1202
1214
  allowed_tools?: Array<string>;
1203
1215
  }
1204
-
1205
- /**
1206
- * Configuration for post-conversation processing. When enabled, the assistant
1207
- * receives one additional LLM turn after the conversation ends, allowing it to
1208
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1209
- * can execute multiple parallel or sequential tools during this phase.
1210
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1211
- * post-conversation. Beta feature.
1212
- */
1213
- export interface PostConversationSettings {
1214
- /**
1215
- * Whether post-conversation processing is enabled. When true, the assistant will
1216
- * be invoked after the conversation ends to perform any final tool calls. Defaults
1217
- * to false.
1218
- */
1219
- enabled?: boolean;
1220
- }
1221
1216
  }
1222
1217
 
1223
1218
  export interface InferenceEmbeddingWebhookToolParams {
@@ -1472,6 +1467,40 @@ export interface ObservabilityReq {
1472
1467
  status?: 'enabled' | 'disabled';
1473
1468
  }
1474
1469
 
1470
+ /**
1471
+ * Configuration for post-conversation processing. When enabled, the assistant
1472
+ * receives one additional LLM turn after the conversation ends, allowing it to
1473
+ * execute tool calls such as logging to a CRM or sending a summary. The assistant
1474
+ * can execute multiple parallel or sequential tools during this phase.
1475
+ * Telephony-control tools (e.g. hangup, transfer) are unavailable
1476
+ * post-conversation. Beta feature.
1477
+ */
1478
+ export interface PostConversationSettings {
1479
+ /**
1480
+ * Whether post-conversation processing is enabled. When true, the assistant will
1481
+ * be invoked after the conversation ends to perform any final tool calls. Defaults
1482
+ * to false.
1483
+ */
1484
+ enabled?: boolean;
1485
+ }
1486
+
1487
+ /**
1488
+ * Configuration for post-conversation processing. When enabled, the assistant
1489
+ * receives one additional LLM turn after the conversation ends, allowing it to
1490
+ * execute tool calls such as logging to a CRM or sending a summary. The assistant
1491
+ * can execute multiple parallel or sequential tools during this phase.
1492
+ * Telephony-control tools (e.g. hangup, transfer) are unavailable
1493
+ * post-conversation. Beta feature.
1494
+ */
1495
+ export interface PostConversationSettingsReq {
1496
+ /**
1497
+ * Whether post-conversation processing is enabled. When true, the assistant will
1498
+ * be invoked after the conversation ends to perform any final tool calls. Defaults
1499
+ * to false.
1500
+ */
1501
+ enabled?: boolean;
1502
+ }
1503
+
1475
1504
  export interface PrivacySettings {
1476
1505
  /**
1477
1506
  * If true, conversation history and insights will be stored. If false, they will
@@ -2220,9 +2249,9 @@ export interface AssistantCreateParams {
2220
2249
 
2221
2250
  enabled_features?: Array<EnabledFeatures>;
2222
2251
 
2223
- external_llm?: AssistantCreateParams.ExternalLlm;
2252
+ external_llm?: ExternalLlmReq;
2224
2253
 
2225
- fallback_config?: AssistantCreateParams.FallbackConfig;
2254
+ fallback_config?: FallbackConfigReq;
2226
2255
 
2227
2256
  /**
2228
2257
  * Text that the assistant will use to start the conversation. This may be
@@ -2291,7 +2320,7 @@ export interface AssistantCreateParams {
2291
2320
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
2292
2321
  * post-conversation. Beta feature.
2293
2322
  */
2294
- post_conversation_settings?: AssistantCreateParams.PostConversationSettings;
2323
+ post_conversation_settings?: PostConversationSettingsReq;
2295
2324
 
2296
2325
  privacy_settings?: PrivacySettings;
2297
2326
 
@@ -2327,111 +2356,6 @@ export interface AssistantCreateParams {
2327
2356
  }
2328
2357
 
2329
2358
  export namespace AssistantCreateParams {
2330
- export interface ExternalLlm {
2331
- /**
2332
- * Base URL for the external LLM endpoint.
2333
- */
2334
- base_url: string;
2335
-
2336
- /**
2337
- * Model identifier to use with the external LLM endpoint.
2338
- */
2339
- model: string;
2340
-
2341
- /**
2342
- * Authentication method used when connecting to the external LLM endpoint.
2343
- */
2344
- authentication_method?: 'token' | 'certificate';
2345
-
2346
- /**
2347
- * Integration secret identifier for the client certificate used with certificate
2348
- * authentication.
2349
- */
2350
- certificate_ref?: string;
2351
-
2352
- /**
2353
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
2354
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
2355
- * request body. Defaults to `false`. Example payload sent to the external
2356
- * endpoint:
2357
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
2358
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
2359
- * limits.
2360
- */
2361
- forward_metadata?: boolean;
2362
-
2363
- /**
2364
- * Integration secret identifier for the external LLM API key.
2365
- */
2366
- llm_api_key_ref?: string;
2367
-
2368
- /**
2369
- * URL used to retrieve an access token when certificate authentication is enabled.
2370
- */
2371
- token_retrieval_url?: string;
2372
- }
2373
-
2374
- export interface FallbackConfig {
2375
- external_llm?: FallbackConfig.ExternalLlm;
2376
-
2377
- /**
2378
- * Integration secret identifier for the fallback model API key.
2379
- */
2380
- llm_api_key_ref?: string;
2381
-
2382
- /**
2383
- * Fallback Telnyx-hosted model to use when the primary LLM provider is
2384
- * unavailable.
2385
- */
2386
- model?: string;
2387
- }
2388
-
2389
- export namespace FallbackConfig {
2390
- export interface ExternalLlm {
2391
- /**
2392
- * Base URL for the external LLM endpoint.
2393
- */
2394
- base_url: string;
2395
-
2396
- /**
2397
- * Model identifier to use with the external LLM endpoint.
2398
- */
2399
- model: string;
2400
-
2401
- /**
2402
- * Authentication method used when connecting to the external LLM endpoint.
2403
- */
2404
- authentication_method?: 'token' | 'certificate';
2405
-
2406
- /**
2407
- * Integration secret identifier for the client certificate used with certificate
2408
- * authentication.
2409
- */
2410
- certificate_ref?: string;
2411
-
2412
- /**
2413
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
2414
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
2415
- * request body. Defaults to `false`. Example payload sent to the external
2416
- * endpoint:
2417
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
2418
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
2419
- * limits.
2420
- */
2421
- forward_metadata?: boolean;
2422
-
2423
- /**
2424
- * Integration secret identifier for the external LLM API key.
2425
- */
2426
- llm_api_key_ref?: string;
2427
-
2428
- /**
2429
- * URL used to retrieve an access token when certificate authentication is enabled.
2430
- */
2431
- token_retrieval_url?: string;
2432
- }
2433
- }
2434
-
2435
2359
  /**
2436
2360
  * Reference to a connected integration attached to an assistant. Discover
2437
2361
  * available integrations with `/ai/integrations` and connected integrations with
@@ -2543,23 +2467,6 @@ export namespace AssistantCreateParams {
2543
2467
  */
2544
2468
  allowed_tools?: Array<string>;
2545
2469
  }
2546
-
2547
- /**
2548
- * Configuration for post-conversation processing. When enabled, the assistant
2549
- * receives one additional LLM turn after the conversation ends, allowing it to
2550
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2551
- * can execute multiple parallel or sequential tools during this phase.
2552
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2553
- * post-conversation. Beta feature.
2554
- */
2555
- export interface PostConversationSettings {
2556
- /**
2557
- * Whether post-conversation processing is enabled. When true, the assistant will
2558
- * be invoked after the conversation ends to perform any final tool calls. Defaults
2559
- * to false.
2560
- */
2561
- enabled?: boolean;
2562
- }
2563
2470
  }
2564
2471
 
2565
2472
  export interface AssistantRetrieveParams {
@@ -2602,9 +2509,9 @@ export interface AssistantUpdateParams {
2602
2509
 
2603
2510
  enabled_features?: Array<EnabledFeatures>;
2604
2511
 
2605
- external_llm?: AssistantUpdateParams.ExternalLlm;
2512
+ external_llm?: ExternalLlmReq;
2606
2513
 
2607
- fallback_config?: AssistantUpdateParams.FallbackConfig;
2514
+ fallback_config?: FallbackConfigReq;
2608
2515
 
2609
2516
  /**
2610
2517
  * Text that the assistant will use to start the conversation. This may be
@@ -2681,7 +2588,7 @@ export interface AssistantUpdateParams {
2681
2588
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
2682
2589
  * post-conversation. Beta feature.
2683
2590
  */
2684
- post_conversation_settings?: AssistantUpdateParams.PostConversationSettings;
2591
+ post_conversation_settings?: PostConversationSettingsReq;
2685
2592
 
2686
2593
  privacy_settings?: PrivacySettings;
2687
2594
 
@@ -2728,111 +2635,6 @@ export interface AssistantUpdateParams {
2728
2635
  }
2729
2636
 
2730
2637
  export namespace AssistantUpdateParams {
2731
- export interface ExternalLlm {
2732
- /**
2733
- * Base URL for the external LLM endpoint.
2734
- */
2735
- base_url: string;
2736
-
2737
- /**
2738
- * Model identifier to use with the external LLM endpoint.
2739
- */
2740
- model: string;
2741
-
2742
- /**
2743
- * Authentication method used when connecting to the external LLM endpoint.
2744
- */
2745
- authentication_method?: 'token' | 'certificate';
2746
-
2747
- /**
2748
- * Integration secret identifier for the client certificate used with certificate
2749
- * authentication.
2750
- */
2751
- certificate_ref?: string;
2752
-
2753
- /**
2754
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
2755
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
2756
- * request body. Defaults to `false`. Example payload sent to the external
2757
- * endpoint:
2758
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
2759
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
2760
- * limits.
2761
- */
2762
- forward_metadata?: boolean;
2763
-
2764
- /**
2765
- * Integration secret identifier for the external LLM API key.
2766
- */
2767
- llm_api_key_ref?: string;
2768
-
2769
- /**
2770
- * URL used to retrieve an access token when certificate authentication is enabled.
2771
- */
2772
- token_retrieval_url?: string;
2773
- }
2774
-
2775
- export interface FallbackConfig {
2776
- external_llm?: FallbackConfig.ExternalLlm;
2777
-
2778
- /**
2779
- * Integration secret identifier for the fallback model API key.
2780
- */
2781
- llm_api_key_ref?: string;
2782
-
2783
- /**
2784
- * Fallback Telnyx-hosted model to use when the primary LLM provider is
2785
- * unavailable.
2786
- */
2787
- model?: string;
2788
- }
2789
-
2790
- export namespace FallbackConfig {
2791
- export interface ExternalLlm {
2792
- /**
2793
- * Base URL for the external LLM endpoint.
2794
- */
2795
- base_url: string;
2796
-
2797
- /**
2798
- * Model identifier to use with the external LLM endpoint.
2799
- */
2800
- model: string;
2801
-
2802
- /**
2803
- * Authentication method used when connecting to the external LLM endpoint.
2804
- */
2805
- authentication_method?: 'token' | 'certificate';
2806
-
2807
- /**
2808
- * Integration secret identifier for the client certificate used with certificate
2809
- * authentication.
2810
- */
2811
- certificate_ref?: string;
2812
-
2813
- /**
2814
- * When `true`, Telnyx forwards the assistant's dynamic variables to the external
2815
- * LLM endpoint as a top-level `extra_metadata` object on the chat completion
2816
- * request body. Defaults to `false`. Example payload sent to the external
2817
- * endpoint:
2818
- * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
2819
- * Distinct from OpenAI's native `metadata` field, which has its own size and type
2820
- * limits.
2821
- */
2822
- forward_metadata?: boolean;
2823
-
2824
- /**
2825
- * Integration secret identifier for the external LLM API key.
2826
- */
2827
- llm_api_key_ref?: string;
2828
-
2829
- /**
2830
- * URL used to retrieve an access token when certificate authentication is enabled.
2831
- */
2832
- token_retrieval_url?: string;
2833
- }
2834
- }
2835
-
2836
2638
  /**
2837
2639
  * Reference to a connected integration attached to an assistant. Discover
2838
2640
  * available integrations with `/ai/integrations` and connected integrations with
@@ -2944,23 +2746,6 @@ export namespace AssistantUpdateParams {
2944
2746
  */
2945
2747
  allowed_tools?: Array<string>;
2946
2748
  }
2947
-
2948
- /**
2949
- * Configuration for post-conversation processing. When enabled, the assistant
2950
- * receives one additional LLM turn after the conversation ends, allowing it to
2951
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2952
- * can execute multiple parallel or sequential tools during this phase.
2953
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2954
- * post-conversation. Beta feature.
2955
- */
2956
- export interface PostConversationSettings {
2957
- /**
2958
- * Whether post-conversation processing is enabled. When true, the assistant will
2959
- * be invoked after the conversation ends to perform any final tool calls. Defaults
2960
- * to false.
2961
- */
2962
- enabled?: boolean;
2963
- }
2964
2749
  }
2965
2750
 
2966
2751
  export interface AssistantChatParams {
@@ -3026,6 +2811,10 @@ export declare namespace Assistants {
3026
2811
  type AssistantsList as AssistantsList,
3027
2812
  type AudioVisualizerConfig as AudioVisualizerConfig,
3028
2813
  type EnabledFeatures as EnabledFeatures,
2814
+ type ExternalLlm as ExternalLlm,
2815
+ type ExternalLlmReq as ExternalLlmReq,
2816
+ type FallbackConfig as FallbackConfig,
2817
+ type FallbackConfigReq as FallbackConfigReq,
3029
2818
  type HangupTool as HangupTool,
3030
2819
  type HangupToolParams as HangupToolParams,
3031
2820
  type ImportMetadata as ImportMetadata,
@@ -3035,6 +2824,8 @@ export declare namespace Assistants {
3035
2824
  type MessagingSettings as MessagingSettings,
3036
2825
  type Observability as Observability,
3037
2826
  type ObservabilityReq as ObservabilityReq,
2827
+ type PostConversationSettings as PostConversationSettings,
2828
+ type PostConversationSettingsReq as PostConversationSettingsReq,
3038
2829
  type PrivacySettings as PrivacySettings,
3039
2830
  type RetrievalTool as RetrievalTool,
3040
2831
  type TelephonySettings as TelephonySettings,
@@ -3070,7 +2861,6 @@ export declare namespace Assistants {
3070
2861
  CanaryDeploys as CanaryDeploys,
3071
2862
  type CanaryDeploy as CanaryDeploy,
3072
2863
  type CanaryDeployResponse as CanaryDeployResponse,
3073
- type VersionConfig as VersionConfig,
3074
2864
  type CanaryDeployCreateParams as CanaryDeployCreateParams,
3075
2865
  type CanaryDeployUpdateParams as CanaryDeployUpdateParams,
3076
2866
  };