retell-sdk 5.17.0 → 5.19.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 (97) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/agent.d.mts +143 -17
  16. package/resources/agent.d.mts.map +1 -1
  17. package/resources/agent.d.ts +143 -17
  18. package/resources/agent.d.ts.map +1 -1
  19. package/resources/agent.js +2 -19
  20. package/resources/agent.js.map +1 -1
  21. package/resources/agent.mjs +2 -19
  22. package/resources/agent.mjs.map +1 -1
  23. package/resources/batch-call.d.mts +43 -4
  24. package/resources/batch-call.d.mts.map +1 -1
  25. package/resources/batch-call.d.ts +43 -4
  26. package/resources/batch-call.d.ts.map +1 -1
  27. package/resources/call.d.mts +129 -12
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +129 -12
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/chat-agent.d.mts +29 -20
  32. package/resources/chat-agent.d.mts.map +1 -1
  33. package/resources/chat-agent.d.ts +29 -20
  34. package/resources/chat-agent.d.ts.map +1 -1
  35. package/resources/chat-agent.js +2 -19
  36. package/resources/chat-agent.js.map +1 -1
  37. package/resources/chat-agent.mjs +2 -19
  38. package/resources/chat-agent.mjs.map +1 -1
  39. package/resources/chat.d.mts +2 -2
  40. package/resources/chat.d.mts.map +1 -1
  41. package/resources/chat.d.ts +2 -2
  42. package/resources/chat.d.ts.map +1 -1
  43. package/resources/conversation-flow-component.d.mts +186 -48
  44. package/resources/conversation-flow-component.d.mts.map +1 -1
  45. package/resources/conversation-flow-component.d.ts +186 -48
  46. package/resources/conversation-flow-component.d.ts.map +1 -1
  47. package/resources/conversation-flow.d.mts +375 -99
  48. package/resources/conversation-flow.d.mts.map +1 -1
  49. package/resources/conversation-flow.d.ts +375 -99
  50. package/resources/conversation-flow.d.ts.map +1 -1
  51. package/resources/export-request.d.mts +48 -0
  52. package/resources/export-request.d.mts.map +1 -0
  53. package/resources/export-request.d.ts +48 -0
  54. package/resources/export-request.d.ts.map +1 -0
  55. package/resources/export-request.js +15 -0
  56. package/resources/export-request.js.map +1 -0
  57. package/resources/export-request.mjs +11 -0
  58. package/resources/export-request.mjs.map +1 -0
  59. package/resources/index.d.mts +3 -2
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +3 -2
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +3 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +1 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/llm.d.mts +9 -9
  68. package/resources/llm.d.mts.map +1 -1
  69. package/resources/llm.d.ts +9 -9
  70. package/resources/llm.d.ts.map +1 -1
  71. package/resources/phone-number.d.mts +108 -12
  72. package/resources/phone-number.d.mts.map +1 -1
  73. package/resources/phone-number.d.ts +108 -12
  74. package/resources/phone-number.d.ts.map +1 -1
  75. package/resources/tests.d.mts +3 -3
  76. package/resources/tests.d.mts.map +1 -1
  77. package/resources/tests.d.ts +3 -3
  78. package/resources/tests.d.ts.map +1 -1
  79. package/src/client.ts +17 -0
  80. package/src/internal/types.ts +6 -8
  81. package/src/resources/agent.ts +167 -23
  82. package/src/resources/batch-call.ts +46 -4
  83. package/src/resources/call.ts +138 -12
  84. package/src/resources/chat-agent.ts +35 -26
  85. package/src/resources/chat.ts +2 -2
  86. package/src/resources/conversation-flow-component.ts +168 -48
  87. package/src/resources/conversation-flow.ts +336 -99
  88. package/src/resources/export-request.ts +71 -0
  89. package/src/resources/index.ts +7 -0
  90. package/src/resources/llm.ts +6 -9
  91. package/src/resources/phone-number.ts +108 -12
  92. package/src/resources/tests.ts +0 -3
  93. package/src/version.ts +1 -1
  94. package/version.d.mts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/version.mjs +1 -1
@@ -309,6 +309,11 @@ export namespace ConversationFlowResponse {
309
309
  */
310
310
  type: 'conversation';
311
311
 
312
+ /**
313
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
314
+ */
315
+ allow_dtmf_interruption?: boolean | null;
316
+
312
317
  always_edge?: ConversationNode.AlwaysEdge;
313
318
 
314
319
  /**
@@ -326,6 +331,12 @@ export namespace ConversationFlowResponse {
326
331
 
327
332
  interruption_sensitivity?: number | null;
328
333
 
334
+ /**
335
+ * Knowledge base configuration for RAG retrieval at the node level. If
336
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
337
+ */
338
+ kb_config?: ConversationNode.KBConfig;
339
+
329
340
  /**
330
341
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
331
342
  */
@@ -770,6 +781,22 @@ export namespace ConversationFlowResponse {
770
781
  }
771
782
  }
772
783
 
784
+ /**
785
+ * Knowledge base configuration for RAG retrieval at the node level. If
786
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
787
+ */
788
+ export interface KBConfig {
789
+ /**
790
+ * Similarity threshold for filtering search results
791
+ */
792
+ filter_score?: number;
793
+
794
+ /**
795
+ * Max number of knowledge base chunks to retrieve
796
+ */
797
+ top_k?: number;
798
+ }
799
+
773
800
  export interface ModelChoice {
774
801
  /**
775
802
  * The LLM model to use
@@ -790,7 +817,6 @@ export namespace ConversationFlowResponse {
790
817
  | 'claude-4.5-sonnet'
791
818
  | 'claude-4.6-sonnet'
792
819
  | 'claude-4.5-haiku'
793
- | 'gemini-2.5-flash'
794
820
  | 'gemini-2.5-flash-lite'
795
821
  | 'gemini-3.0-flash'
796
822
  | 'gemini-3.1-flash-lite';
@@ -897,6 +923,11 @@ export namespace ConversationFlowResponse {
897
923
  */
898
924
  type: 'subagent';
899
925
 
926
+ /**
927
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
928
+ */
929
+ allow_dtmf_interruption?: boolean | null;
930
+
900
931
  always_edge?: SubagentNode.AlwaysEdge;
901
932
 
902
933
  /**
@@ -914,6 +945,12 @@ export namespace ConversationFlowResponse {
914
945
 
915
946
  interruption_sensitivity?: number | null;
916
947
 
948
+ /**
949
+ * Knowledge base configuration for RAG retrieval at the node level. If
950
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
951
+ */
952
+ kb_config?: SubagentNode.KBConfig;
953
+
917
954
  /**
918
955
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
919
956
  */
@@ -1372,6 +1409,22 @@ export namespace ConversationFlowResponse {
1372
1409
  }
1373
1410
  }
1374
1411
 
1412
+ /**
1413
+ * Knowledge base configuration for RAG retrieval at the node level. If
1414
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
1415
+ */
1416
+ export interface KBConfig {
1417
+ /**
1418
+ * Similarity threshold for filtering search results
1419
+ */
1420
+ filter_score?: number;
1421
+
1422
+ /**
1423
+ * Max number of knowledge base chunks to retrieve
1424
+ */
1425
+ top_k?: number;
1426
+ }
1427
+
1375
1428
  export interface ModelChoice {
1376
1429
  /**
1377
1430
  * The LLM model to use
@@ -1392,7 +1445,6 @@ export namespace ConversationFlowResponse {
1392
1445
  | 'claude-4.5-sonnet'
1393
1446
  | 'claude-4.6-sonnet'
1394
1447
  | 'claude-4.5-haiku'
1395
- | 'gemini-2.5-flash'
1396
1448
  | 'gemini-2.5-flash-lite'
1397
1449
  | 'gemini-3.0-flash'
1398
1450
  | 'gemini-3.1-flash-lite';
@@ -1968,7 +2020,7 @@ export namespace ConversationFlowResponse {
1968
2020
  * The version of the agent to swap to. If not specified, will use the latest
1969
2021
  * version.
1970
2022
  */
1971
- agent_version?: number;
2023
+ agent_version?: number | string;
1972
2024
 
1973
2025
  /**
1974
2026
  * Describes what the tool does, sometimes can also include information about when
@@ -2865,7 +2917,6 @@ export namespace ConversationFlowResponse {
2865
2917
  | 'claude-4.5-sonnet'
2866
2918
  | 'claude-4.6-sonnet'
2867
2919
  | 'claude-4.5-haiku'
2868
- | 'gemini-2.5-flash'
2869
2920
  | 'gemini-2.5-flash-lite'
2870
2921
  | 'gemini-3.0-flash'
2871
2922
  | 'gemini-3.1-flash-lite';
@@ -3341,7 +3392,6 @@ export namespace ConversationFlowResponse {
3341
3392
  | 'claude-4.5-sonnet'
3342
3393
  | 'claude-4.6-sonnet'
3343
3394
  | 'claude-4.5-haiku'
3344
- | 'gemini-2.5-flash'
3345
3395
  | 'gemini-2.5-flash-lite'
3346
3396
  | 'gemini-3.0-flash'
3347
3397
  | 'gemini-3.1-flash-lite';
@@ -3824,7 +3874,6 @@ export namespace ConversationFlowResponse {
3824
3874
  | 'claude-4.5-sonnet'
3825
3875
  | 'claude-4.6-sonnet'
3826
3876
  | 'claude-4.5-haiku'
3827
- | 'gemini-2.5-flash'
3828
3877
  | 'gemini-2.5-flash-lite'
3829
3878
  | 'gemini-3.0-flash'
3830
3879
  | 'gemini-3.1-flash-lite';
@@ -4478,7 +4527,6 @@ export namespace ConversationFlowResponse {
4478
4527
  | 'claude-4.5-sonnet'
4479
4528
  | 'claude-4.6-sonnet'
4480
4529
  | 'claude-4.5-haiku'
4481
- | 'gemini-2.5-flash'
4482
4530
  | 'gemini-2.5-flash-lite'
4483
4531
  | 'gemini-3.0-flash'
4484
4532
  | 'gemini-3.1-flash-lite';
@@ -4846,7 +4894,6 @@ export namespace ConversationFlowResponse {
4846
4894
  | 'claude-4.5-sonnet'
4847
4895
  | 'claude-4.6-sonnet'
4848
4896
  | 'claude-4.5-haiku'
4849
- | 'gemini-2.5-flash'
4850
4897
  | 'gemini-2.5-flash-lite'
4851
4898
  | 'gemini-3.0-flash'
4852
4899
  | 'gemini-3.1-flash-lite';
@@ -5271,7 +5318,6 @@ export namespace ConversationFlowResponse {
5271
5318
  | 'claude-4.5-sonnet'
5272
5319
  | 'claude-4.6-sonnet'
5273
5320
  | 'claude-4.5-haiku'
5274
- | 'gemini-2.5-flash'
5275
5321
  | 'gemini-2.5-flash-lite'
5276
5322
  | 'gemini-3.0-flash'
5277
5323
  | 'gemini-3.1-flash-lite';
@@ -5709,7 +5755,6 @@ export namespace ConversationFlowResponse {
5709
5755
  | 'claude-4.5-sonnet'
5710
5756
  | 'claude-4.6-sonnet'
5711
5757
  | 'claude-4.5-haiku'
5712
- | 'gemini-2.5-flash'
5713
5758
  | 'gemini-2.5-flash-lite'
5714
5759
  | 'gemini-3.0-flash'
5715
5760
  | 'gemini-3.1-flash-lite';
@@ -6271,7 +6316,6 @@ export namespace ConversationFlowResponse {
6271
6316
  | 'claude-4.5-sonnet'
6272
6317
  | 'claude-4.6-sonnet'
6273
6318
  | 'claude-4.5-haiku'
6274
- | 'gemini-2.5-flash'
6275
6319
  | 'gemini-2.5-flash-lite'
6276
6320
  | 'gemini-3.0-flash'
6277
6321
  | 'gemini-3.1-flash-lite';
@@ -6318,7 +6362,7 @@ export namespace ConversationFlowResponse {
6318
6362
  * The version of the agent to swap to. If not specified, will use the latest
6319
6363
  * version
6320
6364
  */
6321
- agent_version?: number;
6365
+ agent_version?: number | string;
6322
6366
 
6323
6367
  /**
6324
6368
  * Position for frontend display
@@ -6656,7 +6700,6 @@ export namespace ConversationFlowResponse {
6656
6700
  | 'claude-4.5-sonnet'
6657
6701
  | 'claude-4.6-sonnet'
6658
6702
  | 'claude-4.5-haiku'
6659
- | 'gemini-2.5-flash'
6660
6703
  | 'gemini-2.5-flash-lite'
6661
6704
  | 'gemini-3.0-flash'
6662
6705
  | 'gemini-3.1-flash-lite';
@@ -7141,7 +7184,6 @@ export namespace ConversationFlowResponse {
7141
7184
  | 'claude-4.5-sonnet'
7142
7185
  | 'claude-4.6-sonnet'
7143
7186
  | 'claude-4.5-haiku'
7144
- | 'gemini-2.5-flash'
7145
7187
  | 'gemini-2.5-flash-lite'
7146
7188
  | 'gemini-3.0-flash'
7147
7189
  | 'gemini-3.1-flash-lite';
@@ -7823,7 +7865,6 @@ export namespace ConversationFlowResponse {
7823
7865
  | 'claude-4.5-sonnet'
7824
7866
  | 'claude-4.6-sonnet'
7825
7867
  | 'claude-4.5-haiku'
7826
- | 'gemini-2.5-flash'
7827
7868
  | 'gemini-2.5-flash-lite'
7828
7869
  | 'gemini-3.0-flash'
7829
7870
  | 'gemini-3.1-flash-lite';
@@ -8096,7 +8137,6 @@ export namespace ConversationFlowResponse {
8096
8137
  | 'claude-4.5-sonnet'
8097
8138
  | 'claude-4.6-sonnet'
8098
8139
  | 'claude-4.5-haiku'
8099
- | 'gemini-2.5-flash'
8100
8140
  | 'gemini-2.5-flash-lite'
8101
8141
  | 'gemini-3.0-flash'
8102
8142
  | 'gemini-3.1-flash-lite';
@@ -8482,7 +8522,6 @@ export namespace ConversationFlowResponse {
8482
8522
  | 'claude-4.5-sonnet'
8483
8523
  | 'claude-4.6-sonnet'
8484
8524
  | 'claude-4.5-haiku'
8485
- | 'gemini-2.5-flash'
8486
8525
  | 'gemini-2.5-flash-lite'
8487
8526
  | 'gemini-3.0-flash'
8488
8527
  | 'gemini-3.1-flash-lite';
@@ -8511,6 +8550,11 @@ export namespace ConversationFlowResponse {
8511
8550
  */
8512
8551
  type: 'conversation';
8513
8552
 
8553
+ /**
8554
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
8555
+ */
8556
+ allow_dtmf_interruption?: boolean | null;
8557
+
8514
8558
  always_edge?: ConversationNode.AlwaysEdge;
8515
8559
 
8516
8560
  /**
@@ -8528,6 +8572,12 @@ export namespace ConversationFlowResponse {
8528
8572
 
8529
8573
  interruption_sensitivity?: number | null;
8530
8574
 
8575
+ /**
8576
+ * Knowledge base configuration for RAG retrieval at the node level. If
8577
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
8578
+ */
8579
+ kb_config?: ConversationNode.KBConfig;
8580
+
8531
8581
  /**
8532
8582
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
8533
8583
  */
@@ -8972,6 +9022,22 @@ export namespace ConversationFlowResponse {
8972
9022
  }
8973
9023
  }
8974
9024
 
9025
+ /**
9026
+ * Knowledge base configuration for RAG retrieval at the node level. If
9027
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
9028
+ */
9029
+ export interface KBConfig {
9030
+ /**
9031
+ * Similarity threshold for filtering search results
9032
+ */
9033
+ filter_score?: number;
9034
+
9035
+ /**
9036
+ * Max number of knowledge base chunks to retrieve
9037
+ */
9038
+ top_k?: number;
9039
+ }
9040
+
8975
9041
  export interface ModelChoice {
8976
9042
  /**
8977
9043
  * The LLM model to use
@@ -8992,7 +9058,6 @@ export namespace ConversationFlowResponse {
8992
9058
  | 'claude-4.5-sonnet'
8993
9059
  | 'claude-4.6-sonnet'
8994
9060
  | 'claude-4.5-haiku'
8995
- | 'gemini-2.5-flash'
8996
9061
  | 'gemini-2.5-flash-lite'
8997
9062
  | 'gemini-3.0-flash'
8998
9063
  | 'gemini-3.1-flash-lite';
@@ -9099,6 +9164,11 @@ export namespace ConversationFlowResponse {
9099
9164
  */
9100
9165
  type: 'subagent';
9101
9166
 
9167
+ /**
9168
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
9169
+ */
9170
+ allow_dtmf_interruption?: boolean | null;
9171
+
9102
9172
  always_edge?: SubagentNode.AlwaysEdge;
9103
9173
 
9104
9174
  /**
@@ -9116,6 +9186,12 @@ export namespace ConversationFlowResponse {
9116
9186
 
9117
9187
  interruption_sensitivity?: number | null;
9118
9188
 
9189
+ /**
9190
+ * Knowledge base configuration for RAG retrieval at the node level. If
9191
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
9192
+ */
9193
+ kb_config?: SubagentNode.KBConfig;
9194
+
9119
9195
  /**
9120
9196
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
9121
9197
  */
@@ -9574,6 +9650,22 @@ export namespace ConversationFlowResponse {
9574
9650
  }
9575
9651
  }
9576
9652
 
9653
+ /**
9654
+ * Knowledge base configuration for RAG retrieval at the node level. If
9655
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
9656
+ */
9657
+ export interface KBConfig {
9658
+ /**
9659
+ * Similarity threshold for filtering search results
9660
+ */
9661
+ filter_score?: number;
9662
+
9663
+ /**
9664
+ * Max number of knowledge base chunks to retrieve
9665
+ */
9666
+ top_k?: number;
9667
+ }
9668
+
9577
9669
  export interface ModelChoice {
9578
9670
  /**
9579
9671
  * The LLM model to use
@@ -9594,7 +9686,6 @@ export namespace ConversationFlowResponse {
9594
9686
  | 'claude-4.5-sonnet'
9595
9687
  | 'claude-4.6-sonnet'
9596
9688
  | 'claude-4.5-haiku'
9597
- | 'gemini-2.5-flash'
9598
9689
  | 'gemini-2.5-flash-lite'
9599
9690
  | 'gemini-3.0-flash'
9600
9691
  | 'gemini-3.1-flash-lite';
@@ -10170,7 +10261,7 @@ export namespace ConversationFlowResponse {
10170
10261
  * The version of the agent to swap to. If not specified, will use the latest
10171
10262
  * version.
10172
10263
  */
10173
- agent_version?: number;
10264
+ agent_version?: number | string;
10174
10265
 
10175
10266
  /**
10176
10267
  * Describes what the tool does, sometimes can also include information about when
@@ -11067,7 +11158,6 @@ export namespace ConversationFlowResponse {
11067
11158
  | 'claude-4.5-sonnet'
11068
11159
  | 'claude-4.6-sonnet'
11069
11160
  | 'claude-4.5-haiku'
11070
- | 'gemini-2.5-flash'
11071
11161
  | 'gemini-2.5-flash-lite'
11072
11162
  | 'gemini-3.0-flash'
11073
11163
  | 'gemini-3.1-flash-lite';
@@ -11543,7 +11633,6 @@ export namespace ConversationFlowResponse {
11543
11633
  | 'claude-4.5-sonnet'
11544
11634
  | 'claude-4.6-sonnet'
11545
11635
  | 'claude-4.5-haiku'
11546
- | 'gemini-2.5-flash'
11547
11636
  | 'gemini-2.5-flash-lite'
11548
11637
  | 'gemini-3.0-flash'
11549
11638
  | 'gemini-3.1-flash-lite';
@@ -12026,7 +12115,6 @@ export namespace ConversationFlowResponse {
12026
12115
  | 'claude-4.5-sonnet'
12027
12116
  | 'claude-4.6-sonnet'
12028
12117
  | 'claude-4.5-haiku'
12029
- | 'gemini-2.5-flash'
12030
12118
  | 'gemini-2.5-flash-lite'
12031
12119
  | 'gemini-3.0-flash'
12032
12120
  | 'gemini-3.1-flash-lite';
@@ -12680,7 +12768,6 @@ export namespace ConversationFlowResponse {
12680
12768
  | 'claude-4.5-sonnet'
12681
12769
  | 'claude-4.6-sonnet'
12682
12770
  | 'claude-4.5-haiku'
12683
- | 'gemini-2.5-flash'
12684
12771
  | 'gemini-2.5-flash-lite'
12685
12772
  | 'gemini-3.0-flash'
12686
12773
  | 'gemini-3.1-flash-lite';
@@ -13048,7 +13135,6 @@ export namespace ConversationFlowResponse {
13048
13135
  | 'claude-4.5-sonnet'
13049
13136
  | 'claude-4.6-sonnet'
13050
13137
  | 'claude-4.5-haiku'
13051
- | 'gemini-2.5-flash'
13052
13138
  | 'gemini-2.5-flash-lite'
13053
13139
  | 'gemini-3.0-flash'
13054
13140
  | 'gemini-3.1-flash-lite';
@@ -13473,7 +13559,6 @@ export namespace ConversationFlowResponse {
13473
13559
  | 'claude-4.5-sonnet'
13474
13560
  | 'claude-4.6-sonnet'
13475
13561
  | 'claude-4.5-haiku'
13476
- | 'gemini-2.5-flash'
13477
13562
  | 'gemini-2.5-flash-lite'
13478
13563
  | 'gemini-3.0-flash'
13479
13564
  | 'gemini-3.1-flash-lite';
@@ -13911,7 +13996,6 @@ export namespace ConversationFlowResponse {
13911
13996
  | 'claude-4.5-sonnet'
13912
13997
  | 'claude-4.6-sonnet'
13913
13998
  | 'claude-4.5-haiku'
13914
- | 'gemini-2.5-flash'
13915
13999
  | 'gemini-2.5-flash-lite'
13916
14000
  | 'gemini-3.0-flash'
13917
14001
  | 'gemini-3.1-flash-lite';
@@ -14473,7 +14557,6 @@ export namespace ConversationFlowResponse {
14473
14557
  | 'claude-4.5-sonnet'
14474
14558
  | 'claude-4.6-sonnet'
14475
14559
  | 'claude-4.5-haiku'
14476
- | 'gemini-2.5-flash'
14477
14560
  | 'gemini-2.5-flash-lite'
14478
14561
  | 'gemini-3.0-flash'
14479
14562
  | 'gemini-3.1-flash-lite';
@@ -14520,7 +14603,7 @@ export namespace ConversationFlowResponse {
14520
14603
  * The version of the agent to swap to. If not specified, will use the latest
14521
14604
  * version
14522
14605
  */
14523
- agent_version?: number;
14606
+ agent_version?: number | string;
14524
14607
 
14525
14608
  /**
14526
14609
  * Position for frontend display
@@ -14858,7 +14941,6 @@ export namespace ConversationFlowResponse {
14858
14941
  | 'claude-4.5-sonnet'
14859
14942
  | 'claude-4.6-sonnet'
14860
14943
  | 'claude-4.5-haiku'
14861
- | 'gemini-2.5-flash'
14862
14944
  | 'gemini-2.5-flash-lite'
14863
14945
  | 'gemini-3.0-flash'
14864
14946
  | 'gemini-3.1-flash-lite';
@@ -15343,7 +15425,6 @@ export namespace ConversationFlowResponse {
15343
15425
  | 'claude-4.5-sonnet'
15344
15426
  | 'claude-4.6-sonnet'
15345
15427
  | 'claude-4.5-haiku'
15346
- | 'gemini-2.5-flash'
15347
15428
  | 'gemini-2.5-flash-lite'
15348
15429
  | 'gemini-3.0-flash'
15349
15430
  | 'gemini-3.1-flash-lite';
@@ -16025,7 +16106,6 @@ export namespace ConversationFlowResponse {
16025
16106
  | 'claude-4.5-sonnet'
16026
16107
  | 'claude-4.6-sonnet'
16027
16108
  | 'claude-4.5-haiku'
16028
- | 'gemini-2.5-flash'
16029
16109
  | 'gemini-2.5-flash-lite'
16030
16110
  | 'gemini-3.0-flash'
16031
16111
  | 'gemini-3.1-flash-lite';
@@ -16298,7 +16378,6 @@ export namespace ConversationFlowResponse {
16298
16378
  | 'claude-4.5-sonnet'
16299
16379
  | 'claude-4.6-sonnet'
16300
16380
  | 'claude-4.5-haiku'
16301
- | 'gemini-2.5-flash'
16302
16381
  | 'gemini-2.5-flash-lite'
16303
16382
  | 'gemini-3.0-flash'
16304
16383
  | 'gemini-3.1-flash-lite';
@@ -16726,7 +16805,6 @@ export namespace ConversationFlowCreateParams {
16726
16805
  | 'claude-4.5-sonnet'
16727
16806
  | 'claude-4.6-sonnet'
16728
16807
  | 'claude-4.5-haiku'
16729
- | 'gemini-2.5-flash'
16730
16808
  | 'gemini-2.5-flash-lite'
16731
16809
  | 'gemini-3.0-flash'
16732
16810
  | 'gemini-3.1-flash-lite';
@@ -16755,6 +16833,11 @@ export namespace ConversationFlowCreateParams {
16755
16833
  */
16756
16834
  type: 'conversation';
16757
16835
 
16836
+ /**
16837
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
16838
+ */
16839
+ allow_dtmf_interruption?: boolean | null;
16840
+
16758
16841
  always_edge?: ConversationNode.AlwaysEdge;
16759
16842
 
16760
16843
  /**
@@ -16772,6 +16855,12 @@ export namespace ConversationFlowCreateParams {
16772
16855
 
16773
16856
  interruption_sensitivity?: number | null;
16774
16857
 
16858
+ /**
16859
+ * Knowledge base configuration for RAG retrieval at the node level. If
16860
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
16861
+ */
16862
+ kb_config?: ConversationNode.KBConfig;
16863
+
16775
16864
  /**
16776
16865
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
16777
16866
  */
@@ -17216,6 +17305,22 @@ export namespace ConversationFlowCreateParams {
17216
17305
  }
17217
17306
  }
17218
17307
 
17308
+ /**
17309
+ * Knowledge base configuration for RAG retrieval at the node level. If
17310
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17311
+ */
17312
+ export interface KBConfig {
17313
+ /**
17314
+ * Similarity threshold for filtering search results
17315
+ */
17316
+ filter_score?: number;
17317
+
17318
+ /**
17319
+ * Max number of knowledge base chunks to retrieve
17320
+ */
17321
+ top_k?: number;
17322
+ }
17323
+
17219
17324
  export interface ModelChoice {
17220
17325
  /**
17221
17326
  * The LLM model to use
@@ -17236,7 +17341,6 @@ export namespace ConversationFlowCreateParams {
17236
17341
  | 'claude-4.5-sonnet'
17237
17342
  | 'claude-4.6-sonnet'
17238
17343
  | 'claude-4.5-haiku'
17239
- | 'gemini-2.5-flash'
17240
17344
  | 'gemini-2.5-flash-lite'
17241
17345
  | 'gemini-3.0-flash'
17242
17346
  | 'gemini-3.1-flash-lite';
@@ -17343,6 +17447,11 @@ export namespace ConversationFlowCreateParams {
17343
17447
  */
17344
17448
  type: 'subagent';
17345
17449
 
17450
+ /**
17451
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
17452
+ */
17453
+ allow_dtmf_interruption?: boolean | null;
17454
+
17346
17455
  always_edge?: SubagentNode.AlwaysEdge;
17347
17456
 
17348
17457
  /**
@@ -17360,6 +17469,12 @@ export namespace ConversationFlowCreateParams {
17360
17469
 
17361
17470
  interruption_sensitivity?: number | null;
17362
17471
 
17472
+ /**
17473
+ * Knowledge base configuration for RAG retrieval at the node level. If
17474
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17475
+ */
17476
+ kb_config?: SubagentNode.KBConfig;
17477
+
17363
17478
  /**
17364
17479
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
17365
17480
  */
@@ -17818,6 +17933,22 @@ export namespace ConversationFlowCreateParams {
17818
17933
  }
17819
17934
  }
17820
17935
 
17936
+ /**
17937
+ * Knowledge base configuration for RAG retrieval at the node level. If
17938
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17939
+ */
17940
+ export interface KBConfig {
17941
+ /**
17942
+ * Similarity threshold for filtering search results
17943
+ */
17944
+ filter_score?: number;
17945
+
17946
+ /**
17947
+ * Max number of knowledge base chunks to retrieve
17948
+ */
17949
+ top_k?: number;
17950
+ }
17951
+
17821
17952
  export interface ModelChoice {
17822
17953
  /**
17823
17954
  * The LLM model to use
@@ -17838,7 +17969,6 @@ export namespace ConversationFlowCreateParams {
17838
17969
  | 'claude-4.5-sonnet'
17839
17970
  | 'claude-4.6-sonnet'
17840
17971
  | 'claude-4.5-haiku'
17841
- | 'gemini-2.5-flash'
17842
17972
  | 'gemini-2.5-flash-lite'
17843
17973
  | 'gemini-3.0-flash'
17844
17974
  | 'gemini-3.1-flash-lite';
@@ -18414,7 +18544,7 @@ export namespace ConversationFlowCreateParams {
18414
18544
  * The version of the agent to swap to. If not specified, will use the latest
18415
18545
  * version.
18416
18546
  */
18417
- agent_version?: number;
18547
+ agent_version?: number | string;
18418
18548
 
18419
18549
  /**
18420
18550
  * Describes what the tool does, sometimes can also include information about when
@@ -19311,7 +19441,6 @@ export namespace ConversationFlowCreateParams {
19311
19441
  | 'claude-4.5-sonnet'
19312
19442
  | 'claude-4.6-sonnet'
19313
19443
  | 'claude-4.5-haiku'
19314
- | 'gemini-2.5-flash'
19315
19444
  | 'gemini-2.5-flash-lite'
19316
19445
  | 'gemini-3.0-flash'
19317
19446
  | 'gemini-3.1-flash-lite';
@@ -19787,7 +19916,6 @@ export namespace ConversationFlowCreateParams {
19787
19916
  | 'claude-4.5-sonnet'
19788
19917
  | 'claude-4.6-sonnet'
19789
19918
  | 'claude-4.5-haiku'
19790
- | 'gemini-2.5-flash'
19791
19919
  | 'gemini-2.5-flash-lite'
19792
19920
  | 'gemini-3.0-flash'
19793
19921
  | 'gemini-3.1-flash-lite';
@@ -20270,7 +20398,6 @@ export namespace ConversationFlowCreateParams {
20270
20398
  | 'claude-4.5-sonnet'
20271
20399
  | 'claude-4.6-sonnet'
20272
20400
  | 'claude-4.5-haiku'
20273
- | 'gemini-2.5-flash'
20274
20401
  | 'gemini-2.5-flash-lite'
20275
20402
  | 'gemini-3.0-flash'
20276
20403
  | 'gemini-3.1-flash-lite';
@@ -20924,7 +21051,6 @@ export namespace ConversationFlowCreateParams {
20924
21051
  | 'claude-4.5-sonnet'
20925
21052
  | 'claude-4.6-sonnet'
20926
21053
  | 'claude-4.5-haiku'
20927
- | 'gemini-2.5-flash'
20928
21054
  | 'gemini-2.5-flash-lite'
20929
21055
  | 'gemini-3.0-flash'
20930
21056
  | 'gemini-3.1-flash-lite';
@@ -21292,7 +21418,6 @@ export namespace ConversationFlowCreateParams {
21292
21418
  | 'claude-4.5-sonnet'
21293
21419
  | 'claude-4.6-sonnet'
21294
21420
  | 'claude-4.5-haiku'
21295
- | 'gemini-2.5-flash'
21296
21421
  | 'gemini-2.5-flash-lite'
21297
21422
  | 'gemini-3.0-flash'
21298
21423
  | 'gemini-3.1-flash-lite';
@@ -21717,7 +21842,6 @@ export namespace ConversationFlowCreateParams {
21717
21842
  | 'claude-4.5-sonnet'
21718
21843
  | 'claude-4.6-sonnet'
21719
21844
  | 'claude-4.5-haiku'
21720
- | 'gemini-2.5-flash'
21721
21845
  | 'gemini-2.5-flash-lite'
21722
21846
  | 'gemini-3.0-flash'
21723
21847
  | 'gemini-3.1-flash-lite';
@@ -22155,7 +22279,6 @@ export namespace ConversationFlowCreateParams {
22155
22279
  | 'claude-4.5-sonnet'
22156
22280
  | 'claude-4.6-sonnet'
22157
22281
  | 'claude-4.5-haiku'
22158
- | 'gemini-2.5-flash'
22159
22282
  | 'gemini-2.5-flash-lite'
22160
22283
  | 'gemini-3.0-flash'
22161
22284
  | 'gemini-3.1-flash-lite';
@@ -22717,7 +22840,6 @@ export namespace ConversationFlowCreateParams {
22717
22840
  | 'claude-4.5-sonnet'
22718
22841
  | 'claude-4.6-sonnet'
22719
22842
  | 'claude-4.5-haiku'
22720
- | 'gemini-2.5-flash'
22721
22843
  | 'gemini-2.5-flash-lite'
22722
22844
  | 'gemini-3.0-flash'
22723
22845
  | 'gemini-3.1-flash-lite';
@@ -22764,7 +22886,7 @@ export namespace ConversationFlowCreateParams {
22764
22886
  * The version of the agent to swap to. If not specified, will use the latest
22765
22887
  * version
22766
22888
  */
22767
- agent_version?: number;
22889
+ agent_version?: number | string;
22768
22890
 
22769
22891
  /**
22770
22892
  * Position for frontend display
@@ -23102,7 +23224,6 @@ export namespace ConversationFlowCreateParams {
23102
23224
  | 'claude-4.5-sonnet'
23103
23225
  | 'claude-4.6-sonnet'
23104
23226
  | 'claude-4.5-haiku'
23105
- | 'gemini-2.5-flash'
23106
23227
  | 'gemini-2.5-flash-lite'
23107
23228
  | 'gemini-3.0-flash'
23108
23229
  | 'gemini-3.1-flash-lite';
@@ -23587,7 +23708,6 @@ export namespace ConversationFlowCreateParams {
23587
23708
  | 'claude-4.5-sonnet'
23588
23709
  | 'claude-4.6-sonnet'
23589
23710
  | 'claude-4.5-haiku'
23590
- | 'gemini-2.5-flash'
23591
23711
  | 'gemini-2.5-flash-lite'
23592
23712
  | 'gemini-3.0-flash'
23593
23713
  | 'gemini-3.1-flash-lite';
@@ -24269,7 +24389,6 @@ export namespace ConversationFlowCreateParams {
24269
24389
  | 'claude-4.5-sonnet'
24270
24390
  | 'claude-4.6-sonnet'
24271
24391
  | 'claude-4.5-haiku'
24272
- | 'gemini-2.5-flash'
24273
24392
  | 'gemini-2.5-flash-lite'
24274
24393
  | 'gemini-3.0-flash'
24275
24394
  | 'gemini-3.1-flash-lite';
@@ -24542,7 +24661,6 @@ export namespace ConversationFlowCreateParams {
24542
24661
  | 'claude-4.5-sonnet'
24543
24662
  | 'claude-4.6-sonnet'
24544
24663
  | 'claude-4.5-haiku'
24545
- | 'gemini-2.5-flash'
24546
24664
  | 'gemini-2.5-flash-lite'
24547
24665
  | 'gemini-3.0-flash'
24548
24666
  | 'gemini-3.1-flash-lite';
@@ -24637,6 +24755,11 @@ export namespace ConversationFlowCreateParams {
24637
24755
  */
24638
24756
  type: 'conversation';
24639
24757
 
24758
+ /**
24759
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
24760
+ */
24761
+ allow_dtmf_interruption?: boolean | null;
24762
+
24640
24763
  always_edge?: ConversationNode.AlwaysEdge;
24641
24764
 
24642
24765
  /**
@@ -24654,6 +24777,12 @@ export namespace ConversationFlowCreateParams {
24654
24777
 
24655
24778
  interruption_sensitivity?: number | null;
24656
24779
 
24780
+ /**
24781
+ * Knowledge base configuration for RAG retrieval at the node level. If
24782
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
24783
+ */
24784
+ kb_config?: ConversationNode.KBConfig;
24785
+
24657
24786
  /**
24658
24787
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
24659
24788
  */
@@ -25098,6 +25227,22 @@ export namespace ConversationFlowCreateParams {
25098
25227
  }
25099
25228
  }
25100
25229
 
25230
+ /**
25231
+ * Knowledge base configuration for RAG retrieval at the node level. If
25232
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
25233
+ */
25234
+ export interface KBConfig {
25235
+ /**
25236
+ * Similarity threshold for filtering search results
25237
+ */
25238
+ filter_score?: number;
25239
+
25240
+ /**
25241
+ * Max number of knowledge base chunks to retrieve
25242
+ */
25243
+ top_k?: number;
25244
+ }
25245
+
25101
25246
  export interface ModelChoice {
25102
25247
  /**
25103
25248
  * The LLM model to use
@@ -25118,7 +25263,6 @@ export namespace ConversationFlowCreateParams {
25118
25263
  | 'claude-4.5-sonnet'
25119
25264
  | 'claude-4.6-sonnet'
25120
25265
  | 'claude-4.5-haiku'
25121
- | 'gemini-2.5-flash'
25122
25266
  | 'gemini-2.5-flash-lite'
25123
25267
  | 'gemini-3.0-flash'
25124
25268
  | 'gemini-3.1-flash-lite';
@@ -25225,6 +25369,11 @@ export namespace ConversationFlowCreateParams {
25225
25369
  */
25226
25370
  type: 'subagent';
25227
25371
 
25372
+ /**
25373
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
25374
+ */
25375
+ allow_dtmf_interruption?: boolean | null;
25376
+
25228
25377
  always_edge?: SubagentNode.AlwaysEdge;
25229
25378
 
25230
25379
  /**
@@ -25242,6 +25391,12 @@ export namespace ConversationFlowCreateParams {
25242
25391
 
25243
25392
  interruption_sensitivity?: number | null;
25244
25393
 
25394
+ /**
25395
+ * Knowledge base configuration for RAG retrieval at the node level. If
25396
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
25397
+ */
25398
+ kb_config?: SubagentNode.KBConfig;
25399
+
25245
25400
  /**
25246
25401
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
25247
25402
  */
@@ -25700,6 +25855,22 @@ export namespace ConversationFlowCreateParams {
25700
25855
  }
25701
25856
  }
25702
25857
 
25858
+ /**
25859
+ * Knowledge base configuration for RAG retrieval at the node level. If
25860
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
25861
+ */
25862
+ export interface KBConfig {
25863
+ /**
25864
+ * Similarity threshold for filtering search results
25865
+ */
25866
+ filter_score?: number;
25867
+
25868
+ /**
25869
+ * Max number of knowledge base chunks to retrieve
25870
+ */
25871
+ top_k?: number;
25872
+ }
25873
+
25703
25874
  export interface ModelChoice {
25704
25875
  /**
25705
25876
  * The LLM model to use
@@ -25720,7 +25891,6 @@ export namespace ConversationFlowCreateParams {
25720
25891
  | 'claude-4.5-sonnet'
25721
25892
  | 'claude-4.6-sonnet'
25722
25893
  | 'claude-4.5-haiku'
25723
- | 'gemini-2.5-flash'
25724
25894
  | 'gemini-2.5-flash-lite'
25725
25895
  | 'gemini-3.0-flash'
25726
25896
  | 'gemini-3.1-flash-lite';
@@ -26296,7 +26466,7 @@ export namespace ConversationFlowCreateParams {
26296
26466
  * The version of the agent to swap to. If not specified, will use the latest
26297
26467
  * version.
26298
26468
  */
26299
- agent_version?: number;
26469
+ agent_version?: number | string;
26300
26470
 
26301
26471
  /**
26302
26472
  * Describes what the tool does, sometimes can also include information about when
@@ -27193,7 +27363,6 @@ export namespace ConversationFlowCreateParams {
27193
27363
  | 'claude-4.5-sonnet'
27194
27364
  | 'claude-4.6-sonnet'
27195
27365
  | 'claude-4.5-haiku'
27196
- | 'gemini-2.5-flash'
27197
27366
  | 'gemini-2.5-flash-lite'
27198
27367
  | 'gemini-3.0-flash'
27199
27368
  | 'gemini-3.1-flash-lite';
@@ -27669,7 +27838,6 @@ export namespace ConversationFlowCreateParams {
27669
27838
  | 'claude-4.5-sonnet'
27670
27839
  | 'claude-4.6-sonnet'
27671
27840
  | 'claude-4.5-haiku'
27672
- | 'gemini-2.5-flash'
27673
27841
  | 'gemini-2.5-flash-lite'
27674
27842
  | 'gemini-3.0-flash'
27675
27843
  | 'gemini-3.1-flash-lite';
@@ -28152,7 +28320,6 @@ export namespace ConversationFlowCreateParams {
28152
28320
  | 'claude-4.5-sonnet'
28153
28321
  | 'claude-4.6-sonnet'
28154
28322
  | 'claude-4.5-haiku'
28155
- | 'gemini-2.5-flash'
28156
28323
  | 'gemini-2.5-flash-lite'
28157
28324
  | 'gemini-3.0-flash'
28158
28325
  | 'gemini-3.1-flash-lite';
@@ -28806,7 +28973,6 @@ export namespace ConversationFlowCreateParams {
28806
28973
  | 'claude-4.5-sonnet'
28807
28974
  | 'claude-4.6-sonnet'
28808
28975
  | 'claude-4.5-haiku'
28809
- | 'gemini-2.5-flash'
28810
28976
  | 'gemini-2.5-flash-lite'
28811
28977
  | 'gemini-3.0-flash'
28812
28978
  | 'gemini-3.1-flash-lite';
@@ -29174,7 +29340,6 @@ export namespace ConversationFlowCreateParams {
29174
29340
  | 'claude-4.5-sonnet'
29175
29341
  | 'claude-4.6-sonnet'
29176
29342
  | 'claude-4.5-haiku'
29177
- | 'gemini-2.5-flash'
29178
29343
  | 'gemini-2.5-flash-lite'
29179
29344
  | 'gemini-3.0-flash'
29180
29345
  | 'gemini-3.1-flash-lite';
@@ -29599,7 +29764,6 @@ export namespace ConversationFlowCreateParams {
29599
29764
  | 'claude-4.5-sonnet'
29600
29765
  | 'claude-4.6-sonnet'
29601
29766
  | 'claude-4.5-haiku'
29602
- | 'gemini-2.5-flash'
29603
29767
  | 'gemini-2.5-flash-lite'
29604
29768
  | 'gemini-3.0-flash'
29605
29769
  | 'gemini-3.1-flash-lite';
@@ -30037,7 +30201,6 @@ export namespace ConversationFlowCreateParams {
30037
30201
  | 'claude-4.5-sonnet'
30038
30202
  | 'claude-4.6-sonnet'
30039
30203
  | 'claude-4.5-haiku'
30040
- | 'gemini-2.5-flash'
30041
30204
  | 'gemini-2.5-flash-lite'
30042
30205
  | 'gemini-3.0-flash'
30043
30206
  | 'gemini-3.1-flash-lite';
@@ -30599,7 +30762,6 @@ export namespace ConversationFlowCreateParams {
30599
30762
  | 'claude-4.5-sonnet'
30600
30763
  | 'claude-4.6-sonnet'
30601
30764
  | 'claude-4.5-haiku'
30602
- | 'gemini-2.5-flash'
30603
30765
  | 'gemini-2.5-flash-lite'
30604
30766
  | 'gemini-3.0-flash'
30605
30767
  | 'gemini-3.1-flash-lite';
@@ -30646,7 +30808,7 @@ export namespace ConversationFlowCreateParams {
30646
30808
  * The version of the agent to swap to. If not specified, will use the latest
30647
30809
  * version
30648
30810
  */
30649
- agent_version?: number;
30811
+ agent_version?: number | string;
30650
30812
 
30651
30813
  /**
30652
30814
  * Position for frontend display
@@ -30984,7 +31146,6 @@ export namespace ConversationFlowCreateParams {
30984
31146
  | 'claude-4.5-sonnet'
30985
31147
  | 'claude-4.6-sonnet'
30986
31148
  | 'claude-4.5-haiku'
30987
- | 'gemini-2.5-flash'
30988
31149
  | 'gemini-2.5-flash-lite'
30989
31150
  | 'gemini-3.0-flash'
30990
31151
  | 'gemini-3.1-flash-lite';
@@ -31469,7 +31630,6 @@ export namespace ConversationFlowCreateParams {
31469
31630
  | 'claude-4.5-sonnet'
31470
31631
  | 'claude-4.6-sonnet'
31471
31632
  | 'claude-4.5-haiku'
31472
- | 'gemini-2.5-flash'
31473
31633
  | 'gemini-2.5-flash-lite'
31474
31634
  | 'gemini-3.0-flash'
31475
31635
  | 'gemini-3.1-flash-lite';
@@ -32151,7 +32311,6 @@ export namespace ConversationFlowCreateParams {
32151
32311
  | 'claude-4.5-sonnet'
32152
32312
  | 'claude-4.6-sonnet'
32153
32313
  | 'claude-4.5-haiku'
32154
- | 'gemini-2.5-flash'
32155
32314
  | 'gemini-2.5-flash-lite'
32156
32315
  | 'gemini-3.0-flash'
32157
32316
  | 'gemini-3.1-flash-lite';
@@ -32424,7 +32583,6 @@ export namespace ConversationFlowCreateParams {
32424
32583
  | 'claude-4.5-sonnet'
32425
32584
  | 'claude-4.6-sonnet'
32426
32585
  | 'claude-4.5-haiku'
32427
- | 'gemini-2.5-flash'
32428
32586
  | 'gemini-2.5-flash-lite'
32429
32587
  | 'gemini-3.0-flash'
32430
32588
  | 'gemini-3.1-flash-lite';
@@ -33266,6 +33424,11 @@ export namespace ConversationFlowUpdateParams {
33266
33424
  */
33267
33425
  type: 'conversation';
33268
33426
 
33427
+ /**
33428
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
33429
+ */
33430
+ allow_dtmf_interruption?: boolean | null;
33431
+
33269
33432
  always_edge?: ConversationNode.AlwaysEdge;
33270
33433
 
33271
33434
  /**
@@ -33283,6 +33446,12 @@ export namespace ConversationFlowUpdateParams {
33283
33446
 
33284
33447
  interruption_sensitivity?: number | null;
33285
33448
 
33449
+ /**
33450
+ * Knowledge base configuration for RAG retrieval at the node level. If
33451
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
33452
+ */
33453
+ kb_config?: ConversationNode.KBConfig;
33454
+
33286
33455
  /**
33287
33456
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
33288
33457
  */
@@ -33727,6 +33896,22 @@ export namespace ConversationFlowUpdateParams {
33727
33896
  }
33728
33897
  }
33729
33898
 
33899
+ /**
33900
+ * Knowledge base configuration for RAG retrieval at the node level. If
33901
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
33902
+ */
33903
+ export interface KBConfig {
33904
+ /**
33905
+ * Similarity threshold for filtering search results
33906
+ */
33907
+ filter_score?: number;
33908
+
33909
+ /**
33910
+ * Max number of knowledge base chunks to retrieve
33911
+ */
33912
+ top_k?: number;
33913
+ }
33914
+
33730
33915
  export interface ModelChoice {
33731
33916
  /**
33732
33917
  * The LLM model to use
@@ -33747,7 +33932,6 @@ export namespace ConversationFlowUpdateParams {
33747
33932
  | 'claude-4.5-sonnet'
33748
33933
  | 'claude-4.6-sonnet'
33749
33934
  | 'claude-4.5-haiku'
33750
- | 'gemini-2.5-flash'
33751
33935
  | 'gemini-2.5-flash-lite'
33752
33936
  | 'gemini-3.0-flash'
33753
33937
  | 'gemini-3.1-flash-lite';
@@ -33854,6 +34038,11 @@ export namespace ConversationFlowUpdateParams {
33854
34038
  */
33855
34039
  type: 'subagent';
33856
34040
 
34041
+ /**
34042
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
34043
+ */
34044
+ allow_dtmf_interruption?: boolean | null;
34045
+
33857
34046
  always_edge?: SubagentNode.AlwaysEdge;
33858
34047
 
33859
34048
  /**
@@ -33871,6 +34060,12 @@ export namespace ConversationFlowUpdateParams {
33871
34060
 
33872
34061
  interruption_sensitivity?: number | null;
33873
34062
 
34063
+ /**
34064
+ * Knowledge base configuration for RAG retrieval at the node level. If
34065
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
34066
+ */
34067
+ kb_config?: SubagentNode.KBConfig;
34068
+
33874
34069
  /**
33875
34070
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
33876
34071
  */
@@ -34329,6 +34524,22 @@ export namespace ConversationFlowUpdateParams {
34329
34524
  }
34330
34525
  }
34331
34526
 
34527
+ /**
34528
+ * Knowledge base configuration for RAG retrieval at the node level. If
34529
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
34530
+ */
34531
+ export interface KBConfig {
34532
+ /**
34533
+ * Similarity threshold for filtering search results
34534
+ */
34535
+ filter_score?: number;
34536
+
34537
+ /**
34538
+ * Max number of knowledge base chunks to retrieve
34539
+ */
34540
+ top_k?: number;
34541
+ }
34542
+
34332
34543
  export interface ModelChoice {
34333
34544
  /**
34334
34545
  * The LLM model to use
@@ -34349,7 +34560,6 @@ export namespace ConversationFlowUpdateParams {
34349
34560
  | 'claude-4.5-sonnet'
34350
34561
  | 'claude-4.6-sonnet'
34351
34562
  | 'claude-4.5-haiku'
34352
- | 'gemini-2.5-flash'
34353
34563
  | 'gemini-2.5-flash-lite'
34354
34564
  | 'gemini-3.0-flash'
34355
34565
  | 'gemini-3.1-flash-lite';
@@ -34925,7 +35135,7 @@ export namespace ConversationFlowUpdateParams {
34925
35135
  * The version of the agent to swap to. If not specified, will use the latest
34926
35136
  * version.
34927
35137
  */
34928
- agent_version?: number;
35138
+ agent_version?: number | string;
34929
35139
 
34930
35140
  /**
34931
35141
  * Describes what the tool does, sometimes can also include information about when
@@ -35822,7 +36032,6 @@ export namespace ConversationFlowUpdateParams {
35822
36032
  | 'claude-4.5-sonnet'
35823
36033
  | 'claude-4.6-sonnet'
35824
36034
  | 'claude-4.5-haiku'
35825
- | 'gemini-2.5-flash'
35826
36035
  | 'gemini-2.5-flash-lite'
35827
36036
  | 'gemini-3.0-flash'
35828
36037
  | 'gemini-3.1-flash-lite';
@@ -36298,7 +36507,6 @@ export namespace ConversationFlowUpdateParams {
36298
36507
  | 'claude-4.5-sonnet'
36299
36508
  | 'claude-4.6-sonnet'
36300
36509
  | 'claude-4.5-haiku'
36301
- | 'gemini-2.5-flash'
36302
36510
  | 'gemini-2.5-flash-lite'
36303
36511
  | 'gemini-3.0-flash'
36304
36512
  | 'gemini-3.1-flash-lite';
@@ -36781,7 +36989,6 @@ export namespace ConversationFlowUpdateParams {
36781
36989
  | 'claude-4.5-sonnet'
36782
36990
  | 'claude-4.6-sonnet'
36783
36991
  | 'claude-4.5-haiku'
36784
- | 'gemini-2.5-flash'
36785
36992
  | 'gemini-2.5-flash-lite'
36786
36993
  | 'gemini-3.0-flash'
36787
36994
  | 'gemini-3.1-flash-lite';
@@ -37435,7 +37642,6 @@ export namespace ConversationFlowUpdateParams {
37435
37642
  | 'claude-4.5-sonnet'
37436
37643
  | 'claude-4.6-sonnet'
37437
37644
  | 'claude-4.5-haiku'
37438
- | 'gemini-2.5-flash'
37439
37645
  | 'gemini-2.5-flash-lite'
37440
37646
  | 'gemini-3.0-flash'
37441
37647
  | 'gemini-3.1-flash-lite';
@@ -37803,7 +38009,6 @@ export namespace ConversationFlowUpdateParams {
37803
38009
  | 'claude-4.5-sonnet'
37804
38010
  | 'claude-4.6-sonnet'
37805
38011
  | 'claude-4.5-haiku'
37806
- | 'gemini-2.5-flash'
37807
38012
  | 'gemini-2.5-flash-lite'
37808
38013
  | 'gemini-3.0-flash'
37809
38014
  | 'gemini-3.1-flash-lite';
@@ -38228,7 +38433,6 @@ export namespace ConversationFlowUpdateParams {
38228
38433
  | 'claude-4.5-sonnet'
38229
38434
  | 'claude-4.6-sonnet'
38230
38435
  | 'claude-4.5-haiku'
38231
- | 'gemini-2.5-flash'
38232
38436
  | 'gemini-2.5-flash-lite'
38233
38437
  | 'gemini-3.0-flash'
38234
38438
  | 'gemini-3.1-flash-lite';
@@ -38666,7 +38870,6 @@ export namespace ConversationFlowUpdateParams {
38666
38870
  | 'claude-4.5-sonnet'
38667
38871
  | 'claude-4.6-sonnet'
38668
38872
  | 'claude-4.5-haiku'
38669
- | 'gemini-2.5-flash'
38670
38873
  | 'gemini-2.5-flash-lite'
38671
38874
  | 'gemini-3.0-flash'
38672
38875
  | 'gemini-3.1-flash-lite';
@@ -39228,7 +39431,6 @@ export namespace ConversationFlowUpdateParams {
39228
39431
  | 'claude-4.5-sonnet'
39229
39432
  | 'claude-4.6-sonnet'
39230
39433
  | 'claude-4.5-haiku'
39231
- | 'gemini-2.5-flash'
39232
39434
  | 'gemini-2.5-flash-lite'
39233
39435
  | 'gemini-3.0-flash'
39234
39436
  | 'gemini-3.1-flash-lite';
@@ -39275,7 +39477,7 @@ export namespace ConversationFlowUpdateParams {
39275
39477
  * The version of the agent to swap to. If not specified, will use the latest
39276
39478
  * version
39277
39479
  */
39278
- agent_version?: number;
39480
+ agent_version?: number | string;
39279
39481
 
39280
39482
  /**
39281
39483
  * Position for frontend display
@@ -39613,7 +39815,6 @@ export namespace ConversationFlowUpdateParams {
39613
39815
  | 'claude-4.5-sonnet'
39614
39816
  | 'claude-4.6-sonnet'
39615
39817
  | 'claude-4.5-haiku'
39616
- | 'gemini-2.5-flash'
39617
39818
  | 'gemini-2.5-flash-lite'
39618
39819
  | 'gemini-3.0-flash'
39619
39820
  | 'gemini-3.1-flash-lite';
@@ -40098,7 +40299,6 @@ export namespace ConversationFlowUpdateParams {
40098
40299
  | 'claude-4.5-sonnet'
40099
40300
  | 'claude-4.6-sonnet'
40100
40301
  | 'claude-4.5-haiku'
40101
- | 'gemini-2.5-flash'
40102
40302
  | 'gemini-2.5-flash-lite'
40103
40303
  | 'gemini-3.0-flash'
40104
40304
  | 'gemini-3.1-flash-lite';
@@ -40780,7 +40980,6 @@ export namespace ConversationFlowUpdateParams {
40780
40980
  | 'claude-4.5-sonnet'
40781
40981
  | 'claude-4.6-sonnet'
40782
40982
  | 'claude-4.5-haiku'
40783
- | 'gemini-2.5-flash'
40784
40983
  | 'gemini-2.5-flash-lite'
40785
40984
  | 'gemini-3.0-flash'
40786
40985
  | 'gemini-3.1-flash-lite';
@@ -41053,7 +41252,6 @@ export namespace ConversationFlowUpdateParams {
41053
41252
  | 'claude-4.5-sonnet'
41054
41253
  | 'claude-4.6-sonnet'
41055
41254
  | 'claude-4.5-haiku'
41056
- | 'gemini-2.5-flash'
41057
41255
  | 'gemini-2.5-flash-lite'
41058
41256
  | 'gemini-3.0-flash'
41059
41257
  | 'gemini-3.1-flash-lite';
@@ -41439,7 +41637,6 @@ export namespace ConversationFlowUpdateParams {
41439
41637
  | 'claude-4.5-sonnet'
41440
41638
  | 'claude-4.6-sonnet'
41441
41639
  | 'claude-4.5-haiku'
41442
- | 'gemini-2.5-flash'
41443
41640
  | 'gemini-2.5-flash-lite'
41444
41641
  | 'gemini-3.0-flash'
41445
41642
  | 'gemini-3.1-flash-lite';
@@ -41468,6 +41665,11 @@ export namespace ConversationFlowUpdateParams {
41468
41665
  */
41469
41666
  type: 'conversation';
41470
41667
 
41668
+ /**
41669
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
41670
+ */
41671
+ allow_dtmf_interruption?: boolean | null;
41672
+
41471
41673
  always_edge?: ConversationNode.AlwaysEdge;
41472
41674
 
41473
41675
  /**
@@ -41485,6 +41687,12 @@ export namespace ConversationFlowUpdateParams {
41485
41687
 
41486
41688
  interruption_sensitivity?: number | null;
41487
41689
 
41690
+ /**
41691
+ * Knowledge base configuration for RAG retrieval at the node level. If
41692
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
41693
+ */
41694
+ kb_config?: ConversationNode.KBConfig;
41695
+
41488
41696
  /**
41489
41697
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
41490
41698
  */
@@ -41929,6 +42137,22 @@ export namespace ConversationFlowUpdateParams {
41929
42137
  }
41930
42138
  }
41931
42139
 
42140
+ /**
42141
+ * Knowledge base configuration for RAG retrieval at the node level. If
42142
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
42143
+ */
42144
+ export interface KBConfig {
42145
+ /**
42146
+ * Similarity threshold for filtering search results
42147
+ */
42148
+ filter_score?: number;
42149
+
42150
+ /**
42151
+ * Max number of knowledge base chunks to retrieve
42152
+ */
42153
+ top_k?: number;
42154
+ }
42155
+
41932
42156
  export interface ModelChoice {
41933
42157
  /**
41934
42158
  * The LLM model to use
@@ -41949,7 +42173,6 @@ export namespace ConversationFlowUpdateParams {
41949
42173
  | 'claude-4.5-sonnet'
41950
42174
  | 'claude-4.6-sonnet'
41951
42175
  | 'claude-4.5-haiku'
41952
- | 'gemini-2.5-flash'
41953
42176
  | 'gemini-2.5-flash-lite'
41954
42177
  | 'gemini-3.0-flash'
41955
42178
  | 'gemini-3.1-flash-lite';
@@ -42056,6 +42279,11 @@ export namespace ConversationFlowUpdateParams {
42056
42279
  */
42057
42280
  type: 'subagent';
42058
42281
 
42282
+ /**
42283
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
42284
+ */
42285
+ allow_dtmf_interruption?: boolean | null;
42286
+
42059
42287
  always_edge?: SubagentNode.AlwaysEdge;
42060
42288
 
42061
42289
  /**
@@ -42073,6 +42301,12 @@ export namespace ConversationFlowUpdateParams {
42073
42301
 
42074
42302
  interruption_sensitivity?: number | null;
42075
42303
 
42304
+ /**
42305
+ * Knowledge base configuration for RAG retrieval at the node level. If
42306
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
42307
+ */
42308
+ kb_config?: SubagentNode.KBConfig;
42309
+
42076
42310
  /**
42077
42311
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
42078
42312
  */
@@ -42531,6 +42765,22 @@ export namespace ConversationFlowUpdateParams {
42531
42765
  }
42532
42766
  }
42533
42767
 
42768
+ /**
42769
+ * Knowledge base configuration for RAG retrieval at the node level. If
42770
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
42771
+ */
42772
+ export interface KBConfig {
42773
+ /**
42774
+ * Similarity threshold for filtering search results
42775
+ */
42776
+ filter_score?: number;
42777
+
42778
+ /**
42779
+ * Max number of knowledge base chunks to retrieve
42780
+ */
42781
+ top_k?: number;
42782
+ }
42783
+
42534
42784
  export interface ModelChoice {
42535
42785
  /**
42536
42786
  * The LLM model to use
@@ -42551,7 +42801,6 @@ export namespace ConversationFlowUpdateParams {
42551
42801
  | 'claude-4.5-sonnet'
42552
42802
  | 'claude-4.6-sonnet'
42553
42803
  | 'claude-4.5-haiku'
42554
- | 'gemini-2.5-flash'
42555
42804
  | 'gemini-2.5-flash-lite'
42556
42805
  | 'gemini-3.0-flash'
42557
42806
  | 'gemini-3.1-flash-lite';
@@ -43127,7 +43376,7 @@ export namespace ConversationFlowUpdateParams {
43127
43376
  * The version of the agent to swap to. If not specified, will use the latest
43128
43377
  * version.
43129
43378
  */
43130
- agent_version?: number;
43379
+ agent_version?: number | string;
43131
43380
 
43132
43381
  /**
43133
43382
  * Describes what the tool does, sometimes can also include information about when
@@ -44024,7 +44273,6 @@ export namespace ConversationFlowUpdateParams {
44024
44273
  | 'claude-4.5-sonnet'
44025
44274
  | 'claude-4.6-sonnet'
44026
44275
  | 'claude-4.5-haiku'
44027
- | 'gemini-2.5-flash'
44028
44276
  | 'gemini-2.5-flash-lite'
44029
44277
  | 'gemini-3.0-flash'
44030
44278
  | 'gemini-3.1-flash-lite';
@@ -44500,7 +44748,6 @@ export namespace ConversationFlowUpdateParams {
44500
44748
  | 'claude-4.5-sonnet'
44501
44749
  | 'claude-4.6-sonnet'
44502
44750
  | 'claude-4.5-haiku'
44503
- | 'gemini-2.5-flash'
44504
44751
  | 'gemini-2.5-flash-lite'
44505
44752
  | 'gemini-3.0-flash'
44506
44753
  | 'gemini-3.1-flash-lite';
@@ -44983,7 +45230,6 @@ export namespace ConversationFlowUpdateParams {
44983
45230
  | 'claude-4.5-sonnet'
44984
45231
  | 'claude-4.6-sonnet'
44985
45232
  | 'claude-4.5-haiku'
44986
- | 'gemini-2.5-flash'
44987
45233
  | 'gemini-2.5-flash-lite'
44988
45234
  | 'gemini-3.0-flash'
44989
45235
  | 'gemini-3.1-flash-lite';
@@ -45637,7 +45883,6 @@ export namespace ConversationFlowUpdateParams {
45637
45883
  | 'claude-4.5-sonnet'
45638
45884
  | 'claude-4.6-sonnet'
45639
45885
  | 'claude-4.5-haiku'
45640
- | 'gemini-2.5-flash'
45641
45886
  | 'gemini-2.5-flash-lite'
45642
45887
  | 'gemini-3.0-flash'
45643
45888
  | 'gemini-3.1-flash-lite';
@@ -46005,7 +46250,6 @@ export namespace ConversationFlowUpdateParams {
46005
46250
  | 'claude-4.5-sonnet'
46006
46251
  | 'claude-4.6-sonnet'
46007
46252
  | 'claude-4.5-haiku'
46008
- | 'gemini-2.5-flash'
46009
46253
  | 'gemini-2.5-flash-lite'
46010
46254
  | 'gemini-3.0-flash'
46011
46255
  | 'gemini-3.1-flash-lite';
@@ -46430,7 +46674,6 @@ export namespace ConversationFlowUpdateParams {
46430
46674
  | 'claude-4.5-sonnet'
46431
46675
  | 'claude-4.6-sonnet'
46432
46676
  | 'claude-4.5-haiku'
46433
- | 'gemini-2.5-flash'
46434
46677
  | 'gemini-2.5-flash-lite'
46435
46678
  | 'gemini-3.0-flash'
46436
46679
  | 'gemini-3.1-flash-lite';
@@ -46868,7 +47111,6 @@ export namespace ConversationFlowUpdateParams {
46868
47111
  | 'claude-4.5-sonnet'
46869
47112
  | 'claude-4.6-sonnet'
46870
47113
  | 'claude-4.5-haiku'
46871
- | 'gemini-2.5-flash'
46872
47114
  | 'gemini-2.5-flash-lite'
46873
47115
  | 'gemini-3.0-flash'
46874
47116
  | 'gemini-3.1-flash-lite';
@@ -47430,7 +47672,6 @@ export namespace ConversationFlowUpdateParams {
47430
47672
  | 'claude-4.5-sonnet'
47431
47673
  | 'claude-4.6-sonnet'
47432
47674
  | 'claude-4.5-haiku'
47433
- | 'gemini-2.5-flash'
47434
47675
  | 'gemini-2.5-flash-lite'
47435
47676
  | 'gemini-3.0-flash'
47436
47677
  | 'gemini-3.1-flash-lite';
@@ -47477,7 +47718,7 @@ export namespace ConversationFlowUpdateParams {
47477
47718
  * The version of the agent to swap to. If not specified, will use the latest
47478
47719
  * version
47479
47720
  */
47480
- agent_version?: number;
47721
+ agent_version?: number | string;
47481
47722
 
47482
47723
  /**
47483
47724
  * Position for frontend display
@@ -47815,7 +48056,6 @@ export namespace ConversationFlowUpdateParams {
47815
48056
  | 'claude-4.5-sonnet'
47816
48057
  | 'claude-4.6-sonnet'
47817
48058
  | 'claude-4.5-haiku'
47818
- | 'gemini-2.5-flash'
47819
48059
  | 'gemini-2.5-flash-lite'
47820
48060
  | 'gemini-3.0-flash'
47821
48061
  | 'gemini-3.1-flash-lite';
@@ -48300,7 +48540,6 @@ export namespace ConversationFlowUpdateParams {
48300
48540
  | 'claude-4.5-sonnet'
48301
48541
  | 'claude-4.6-sonnet'
48302
48542
  | 'claude-4.5-haiku'
48303
- | 'gemini-2.5-flash'
48304
48543
  | 'gemini-2.5-flash-lite'
48305
48544
  | 'gemini-3.0-flash'
48306
48545
  | 'gemini-3.1-flash-lite';
@@ -48982,7 +49221,6 @@ export namespace ConversationFlowUpdateParams {
48982
49221
  | 'claude-4.5-sonnet'
48983
49222
  | 'claude-4.6-sonnet'
48984
49223
  | 'claude-4.5-haiku'
48985
- | 'gemini-2.5-flash'
48986
49224
  | 'gemini-2.5-flash-lite'
48987
49225
  | 'gemini-3.0-flash'
48988
49226
  | 'gemini-3.1-flash-lite';
@@ -49255,7 +49493,6 @@ export namespace ConversationFlowUpdateParams {
49255
49493
  | 'claude-4.5-sonnet'
49256
49494
  | 'claude-4.6-sonnet'
49257
49495
  | 'claude-4.5-haiku'
49258
- | 'gemini-2.5-flash'
49259
49496
  | 'gemini-2.5-flash-lite'
49260
49497
  | 'gemini-3.0-flash'
49261
49498
  | 'gemini-3.1-flash-lite';