telnyx 6.47.0 → 6.48.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 (50) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/ai/ai.d.mts +2 -2
  4. package/resources/ai/ai.d.mts.map +1 -1
  5. package/resources/ai/ai.d.ts +2 -2
  6. package/resources/ai/ai.d.ts.map +1 -1
  7. package/resources/ai/ai.js.map +1 -1
  8. package/resources/ai/ai.mjs.map +1 -1
  9. package/resources/ai/assistants/assistants.d.mts +140 -322
  10. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  11. package/resources/ai/assistants/assistants.d.ts +140 -322
  12. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  13. package/resources/ai/assistants/assistants.js.map +1 -1
  14. package/resources/ai/assistants/assistants.mjs.map +1 -1
  15. package/resources/ai/assistants/index.d.mts +1 -1
  16. package/resources/ai/assistants/index.d.mts.map +1 -1
  17. package/resources/ai/assistants/index.d.ts +1 -1
  18. package/resources/ai/assistants/index.d.ts.map +1 -1
  19. package/resources/ai/assistants/index.js.map +1 -1
  20. package/resources/ai/assistants/index.mjs.map +1 -1
  21. package/resources/ai/assistants/versions.d.mts +6 -214
  22. package/resources/ai/assistants/versions.d.mts.map +1 -1
  23. package/resources/ai/assistants/versions.d.ts +6 -214
  24. package/resources/ai/assistants/versions.d.ts.map +1 -1
  25. package/resources/ai/index.d.mts +1 -1
  26. package/resources/ai/index.d.mts.map +1 -1
  27. package/resources/ai/index.d.ts +1 -1
  28. package/resources/ai/index.d.ts.map +1 -1
  29. package/resources/ai/index.js.map +1 -1
  30. package/resources/ai/index.mjs.map +1 -1
  31. package/resources/calls/actions.d.mts +52 -4
  32. package/resources/calls/actions.d.mts.map +1 -1
  33. package/resources/calls/actions.d.ts +52 -4
  34. package/resources/calls/actions.d.ts.map +1 -1
  35. package/resources/conferences/actions.d.mts +13 -1
  36. package/resources/conferences/actions.d.mts.map +1 -1
  37. package/resources/conferences/actions.d.ts +13 -1
  38. package/resources/conferences/actions.d.ts.map +1 -1
  39. package/src/resources/ai/ai.ts +12 -0
  40. package/src/resources/ai/assistants/assistants.ts +167 -375
  41. package/src/resources/ai/assistants/index.ts +6 -0
  42. package/src/resources/ai/assistants/versions.ts +6 -250
  43. package/src/resources/ai/index.ts +6 -0
  44. package/src/resources/calls/actions.ts +64 -4
  45. package/src/resources/conferences/actions.ts +16 -1
  46. package/src/version.ts +1 -1
  47. package/version.d.mts +1 -1
  48. package/version.d.ts +1 -1
  49. package/version.js +1 -1
  50. package/version.mjs +1 -1
@@ -794,6 +794,124 @@ export interface AudioVisualizerConfig {
794
794
  */
795
795
  export type EnabledFeatures = 'telephony' | 'messaging';
796
796
 
797
+ export interface ExternalLlm {
798
+ /**
799
+ * Base URL for the external LLM endpoint.
800
+ */
801
+ base_url: string;
802
+
803
+ /**
804
+ * Model identifier to use with the external LLM endpoint.
805
+ */
806
+ model: string;
807
+
808
+ /**
809
+ * Authentication method used when connecting to the external LLM endpoint.
810
+ */
811
+ authentication_method?: 'token' | 'certificate';
812
+
813
+ /**
814
+ * Integration secret identifier for the client certificate used with certificate
815
+ * authentication.
816
+ */
817
+ certificate_ref?: string;
818
+
819
+ /**
820
+ * When `true`, Telnyx forwards the assistant's dynamic variables to the external
821
+ * LLM endpoint as a top-level `extra_metadata` object on the chat completion
822
+ * request body. Defaults to `false`. Example payload sent to the external
823
+ * endpoint:
824
+ * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
825
+ * Distinct from OpenAI's native `metadata` field, which has its own size and type
826
+ * limits.
827
+ */
828
+ forward_metadata?: boolean;
829
+
830
+ /**
831
+ * Integration secret identifier for the external LLM API key.
832
+ */
833
+ llm_api_key_ref?: string;
834
+
835
+ /**
836
+ * URL used to retrieve an access token when certificate authentication is enabled.
837
+ */
838
+ token_retrieval_url?: string;
839
+ }
840
+
841
+ export interface ExternalLlmReq {
842
+ /**
843
+ * Base URL for the external LLM endpoint.
844
+ */
845
+ base_url: string;
846
+
847
+ /**
848
+ * Model identifier to use with the external LLM endpoint.
849
+ */
850
+ model: string;
851
+
852
+ /**
853
+ * Authentication method used when connecting to the external LLM endpoint.
854
+ */
855
+ authentication_method?: 'token' | 'certificate';
856
+
857
+ /**
858
+ * Integration secret identifier for the client certificate used with certificate
859
+ * authentication.
860
+ */
861
+ certificate_ref?: string;
862
+
863
+ /**
864
+ * When `true`, Telnyx forwards the assistant's dynamic variables to the external
865
+ * LLM endpoint as a top-level `extra_metadata` object on the chat completion
866
+ * request body. Defaults to `false`. Example payload sent to the external
867
+ * endpoint:
868
+ * `{"extra_metadata": {"customer_name": "Jane", "account_id": "acct_789", "telnyx_agent_target": "+13125550100", "telnyx_end_user_target": "+13125550123"}}`.
869
+ * Distinct from OpenAI's native `metadata` field, which has its own size and type
870
+ * limits.
871
+ */
872
+ forward_metadata?: boolean;
873
+
874
+ /**
875
+ * Integration secret identifier for the external LLM API key.
876
+ */
877
+ llm_api_key_ref?: string;
878
+
879
+ /**
880
+ * URL used to retrieve an access token when certificate authentication is enabled.
881
+ */
882
+ token_retrieval_url?: string;
883
+ }
884
+
885
+ export interface FallbackConfig {
886
+ external_llm?: ExternalLlm;
887
+
888
+ /**
889
+ * Integration secret identifier for the fallback model API key.
890
+ */
891
+ llm_api_key_ref?: string;
892
+
893
+ /**
894
+ * Fallback Telnyx-hosted model to use when the primary LLM provider is
895
+ * unavailable.
896
+ */
897
+ model?: string;
898
+ }
899
+
900
+ export interface FallbackConfigReq {
901
+ external_llm?: ExternalLlmReq;
902
+
903
+ /**
904
+ * Integration secret identifier for the fallback model API key.
905
+ */
906
+ llm_api_key_ref?: string;
907
+
908
+ /**
909
+ * Fallback Telnyx-hosted model to use when the primary LLM provider is
910
+ * unavailable.
911
+ */
912
+ model?: string;
913
+ }
914
+
797
915
  export interface HangupTool {
798
916
  hangup: HangupToolParams;
799
917
 
@@ -870,9 +988,9 @@ export interface InferenceEmbedding {
870
988
 
871
989
  enabled_features?: Array<EnabledFeatures>;
872
990
 
873
- external_llm?: InferenceEmbedding.ExternalLlm;
991
+ external_llm?: ExternalLlm;
874
992
 
875
- fallback_config?: InferenceEmbedding.FallbackConfig;
993
+ fallback_config?: FallbackConfig;
876
994
 
877
995
  /**
878
996
  * Text that the assistant will use to start the conversation. This may be
@@ -934,7 +1052,7 @@ export interface InferenceEmbedding {
934
1052
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
935
1053
  * post-conversation. Beta feature.
936
1054
  */
937
- post_conversation_settings?: InferenceEmbedding.PostConversationSettings;
1055
+ post_conversation_settings?: PostConversationSettings;
938
1056
 
939
1057
  privacy_settings?: PrivacySettings;
940
1058
 
@@ -985,111 +1103,6 @@ export interface InferenceEmbedding {
985
1103
  }
986
1104
 
987
1105
  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
1106
  /**
1094
1107
  * Reference to a connected integration attached to an assistant. Discover
1095
1108
  * available integrations with `/ai/integrations` and connected integrations with
@@ -1201,23 +1214,6 @@ export namespace InferenceEmbedding {
1201
1214
  */
1202
1215
  allowed_tools?: Array<string>;
1203
1216
  }
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
1217
  }
1222
1218
 
1223
1219
  export interface InferenceEmbeddingWebhookToolParams {
@@ -1472,6 +1468,40 @@ export interface ObservabilityReq {
1472
1468
  status?: 'enabled' | 'disabled';
1473
1469
  }
1474
1470
 
1471
+ /**
1472
+ * Configuration for post-conversation processing. When enabled, the assistant
1473
+ * receives one additional LLM turn after the conversation ends, allowing it to
1474
+ * execute tool calls such as logging to a CRM or sending a summary. The assistant
1475
+ * can execute multiple parallel or sequential tools during this phase.
1476
+ * Telephony-control tools (e.g. hangup, transfer) are unavailable
1477
+ * post-conversation. Beta feature.
1478
+ */
1479
+ export interface PostConversationSettings {
1480
+ /**
1481
+ * Whether post-conversation processing is enabled. When true, the assistant will
1482
+ * be invoked after the conversation ends to perform any final tool calls. Defaults
1483
+ * to false.
1484
+ */
1485
+ enabled?: boolean;
1486
+ }
1487
+
1488
+ /**
1489
+ * Configuration for post-conversation processing. When enabled, the assistant
1490
+ * receives one additional LLM turn after the conversation ends, allowing it to
1491
+ * execute tool calls such as logging to a CRM or sending a summary. The assistant
1492
+ * can execute multiple parallel or sequential tools during this phase.
1493
+ * Telephony-control tools (e.g. hangup, transfer) are unavailable
1494
+ * post-conversation. Beta feature.
1495
+ */
1496
+ export interface PostConversationSettingsReq {
1497
+ /**
1498
+ * Whether post-conversation processing is enabled. When true, the assistant will
1499
+ * be invoked after the conversation ends to perform any final tool calls. Defaults
1500
+ * to false.
1501
+ */
1502
+ enabled?: boolean;
1503
+ }
1504
+
1475
1505
  export interface PrivacySettings {
1476
1506
  /**
1477
1507
  * If true, conversation history and insights will be stored. If false, they will
@@ -2220,9 +2250,9 @@ export interface AssistantCreateParams {
2220
2250
 
2221
2251
  enabled_features?: Array<EnabledFeatures>;
2222
2252
 
2223
- external_llm?: AssistantCreateParams.ExternalLlm;
2253
+ external_llm?: ExternalLlmReq;
2224
2254
 
2225
- fallback_config?: AssistantCreateParams.FallbackConfig;
2255
+ fallback_config?: FallbackConfigReq;
2226
2256
 
2227
2257
  /**
2228
2258
  * Text that the assistant will use to start the conversation. This may be
@@ -2291,7 +2321,7 @@ export interface AssistantCreateParams {
2291
2321
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
2292
2322
  * post-conversation. Beta feature.
2293
2323
  */
2294
- post_conversation_settings?: AssistantCreateParams.PostConversationSettings;
2324
+ post_conversation_settings?: PostConversationSettingsReq;
2295
2325
 
2296
2326
  privacy_settings?: PrivacySettings;
2297
2327
 
@@ -2327,111 +2357,6 @@ export interface AssistantCreateParams {
2327
2357
  }
2328
2358
 
2329
2359
  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
2360
  /**
2436
2361
  * Reference to a connected integration attached to an assistant. Discover
2437
2362
  * available integrations with `/ai/integrations` and connected integrations with
@@ -2543,23 +2468,6 @@ export namespace AssistantCreateParams {
2543
2468
  */
2544
2469
  allowed_tools?: Array<string>;
2545
2470
  }
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
2471
  }
2564
2472
 
2565
2473
  export interface AssistantRetrieveParams {
@@ -2602,9 +2510,9 @@ export interface AssistantUpdateParams {
2602
2510
 
2603
2511
  enabled_features?: Array<EnabledFeatures>;
2604
2512
 
2605
- external_llm?: AssistantUpdateParams.ExternalLlm;
2513
+ external_llm?: ExternalLlmReq;
2606
2514
 
2607
- fallback_config?: AssistantUpdateParams.FallbackConfig;
2515
+ fallback_config?: FallbackConfigReq;
2608
2516
 
2609
2517
  /**
2610
2518
  * Text that the assistant will use to start the conversation. This may be
@@ -2681,7 +2589,7 @@ export interface AssistantUpdateParams {
2681
2589
  * Telephony-control tools (e.g. hangup, transfer) are unavailable
2682
2590
  * post-conversation. Beta feature.
2683
2591
  */
2684
- post_conversation_settings?: AssistantUpdateParams.PostConversationSettings;
2592
+ post_conversation_settings?: PostConversationSettingsReq;
2685
2593
 
2686
2594
  privacy_settings?: PrivacySettings;
2687
2595
 
@@ -2728,111 +2636,6 @@ export interface AssistantUpdateParams {
2728
2636
  }
2729
2637
 
2730
2638
  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
2639
  /**
2837
2640
  * Reference to a connected integration attached to an assistant. Discover
2838
2641
  * available integrations with `/ai/integrations` and connected integrations with
@@ -2944,23 +2747,6 @@ export namespace AssistantUpdateParams {
2944
2747
  */
2945
2748
  allowed_tools?: Array<string>;
2946
2749
  }
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
2750
  }
2965
2751
 
2966
2752
  export interface AssistantChatParams {
@@ -3026,6 +2812,10 @@ export declare namespace Assistants {
3026
2812
  type AssistantsList as AssistantsList,
3027
2813
  type AudioVisualizerConfig as AudioVisualizerConfig,
3028
2814
  type EnabledFeatures as EnabledFeatures,
2815
+ type ExternalLlm as ExternalLlm,
2816
+ type ExternalLlmReq as ExternalLlmReq,
2817
+ type FallbackConfig as FallbackConfig,
2818
+ type FallbackConfigReq as FallbackConfigReq,
3029
2819
  type HangupTool as HangupTool,
3030
2820
  type HangupToolParams as HangupToolParams,
3031
2821
  type ImportMetadata as ImportMetadata,
@@ -3035,6 +2825,8 @@ export declare namespace Assistants {
3035
2825
  type MessagingSettings as MessagingSettings,
3036
2826
  type Observability as Observability,
3037
2827
  type ObservabilityReq as ObservabilityReq,
2828
+ type PostConversationSettings as PostConversationSettings,
2829
+ type PostConversationSettingsReq as PostConversationSettingsReq,
3038
2830
  type PrivacySettings as PrivacySettings,
3039
2831
  type RetrievalTool as RetrievalTool,
3040
2832
  type TelephonySettings as TelephonySettings,
@@ -7,6 +7,10 @@ export {
7
7
  type AssistantsList,
8
8
  type AudioVisualizerConfig,
9
9
  type EnabledFeatures,
10
+ type ExternalLlm,
11
+ type ExternalLlmReq,
12
+ type FallbackConfig,
13
+ type FallbackConfigReq,
10
14
  type HangupTool,
11
15
  type HangupToolParams,
12
16
  type ImportMetadata,
@@ -16,6 +20,8 @@ export {
16
20
  type MessagingSettings,
17
21
  type Observability,
18
22
  type ObservabilityReq,
23
+ type PostConversationSettings,
24
+ type PostConversationSettingsReq,
19
25
  type PrivacySettings,
20
26
  type RetrievalTool,
21
27
  type TelephonySettings,