retell-sdk 5.18.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 (84) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/types.d.mts +6 -6
  9. package/internal/types.d.mts.map +1 -1
  10. package/internal/types.d.ts +6 -6
  11. package/internal/types.d.ts.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/agent.d.mts +143 -17
  14. package/resources/agent.d.mts.map +1 -1
  15. package/resources/agent.d.ts +143 -17
  16. package/resources/agent.d.ts.map +1 -1
  17. package/resources/agent.js +2 -19
  18. package/resources/agent.js.map +1 -1
  19. package/resources/agent.mjs +2 -19
  20. package/resources/agent.mjs.map +1 -1
  21. package/resources/batch-call.d.mts +43 -4
  22. package/resources/batch-call.d.mts.map +1 -1
  23. package/resources/batch-call.d.ts +43 -4
  24. package/resources/batch-call.d.ts.map +1 -1
  25. package/resources/call.d.mts +129 -12
  26. package/resources/call.d.mts.map +1 -1
  27. package/resources/call.d.ts +129 -12
  28. package/resources/call.d.ts.map +1 -1
  29. package/resources/chat-agent.d.mts +29 -20
  30. package/resources/chat-agent.d.mts.map +1 -1
  31. package/resources/chat-agent.d.ts +29 -20
  32. package/resources/chat-agent.d.ts.map +1 -1
  33. package/resources/chat-agent.js +2 -19
  34. package/resources/chat-agent.js.map +1 -1
  35. package/resources/chat-agent.mjs +2 -19
  36. package/resources/chat-agent.mjs.map +1 -1
  37. package/resources/chat.d.mts +2 -2
  38. package/resources/chat.d.mts.map +1 -1
  39. package/resources/chat.d.ts +2 -2
  40. package/resources/chat.d.ts.map +1 -1
  41. package/resources/conversation-flow-component.d.mts +186 -48
  42. package/resources/conversation-flow-component.d.mts.map +1 -1
  43. package/resources/conversation-flow-component.d.ts +186 -48
  44. package/resources/conversation-flow-component.d.ts.map +1 -1
  45. package/resources/conversation-flow.d.mts +375 -99
  46. package/resources/conversation-flow.d.mts.map +1 -1
  47. package/resources/conversation-flow.d.ts +375 -99
  48. package/resources/conversation-flow.d.ts.map +1 -1
  49. package/resources/index.d.mts +2 -2
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +2 -2
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js.map +1 -1
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/llm.d.mts +9 -9
  56. package/resources/llm.d.mts.map +1 -1
  57. package/resources/llm.d.ts +9 -9
  58. package/resources/llm.d.ts.map +1 -1
  59. package/resources/phone-number.d.mts +108 -12
  60. package/resources/phone-number.d.mts.map +1 -1
  61. package/resources/phone-number.d.ts +108 -12
  62. package/resources/phone-number.d.ts.map +1 -1
  63. package/resources/tests.d.mts +3 -3
  64. package/resources/tests.d.mts.map +1 -1
  65. package/resources/tests.d.ts +3 -3
  66. package/resources/tests.d.ts.map +1 -1
  67. package/src/client.ts +4 -0
  68. package/src/internal/types.ts +6 -8
  69. package/src/resources/agent.ts +167 -23
  70. package/src/resources/batch-call.ts +46 -4
  71. package/src/resources/call.ts +138 -12
  72. package/src/resources/chat-agent.ts +35 -26
  73. package/src/resources/chat.ts +2 -2
  74. package/src/resources/conversation-flow-component.ts +168 -48
  75. package/src/resources/conversation-flow.ts +336 -99
  76. package/src/resources/index.ts +2 -0
  77. package/src/resources/llm.ts +6 -9
  78. package/src/resources/phone-number.ts +108 -12
  79. package/src/resources/tests.ts +0 -3
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
@@ -203,6 +203,10 @@ export declare namespace ConversationFlowResponse {
203
203
  * Type of the node
204
204
  */
205
205
  type: 'conversation';
206
+ /**
207
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
208
+ */
209
+ allow_dtmf_interruption?: boolean | null;
206
210
  always_edge?: ConversationNode.AlwaysEdge;
207
211
  /**
208
212
  * Position for frontend display
@@ -213,6 +217,11 @@ export declare namespace ConversationFlowResponse {
213
217
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
214
218
  global_node_setting?: ConversationNode.GlobalNodeSetting;
215
219
  interruption_sensitivity?: number | null;
220
+ /**
221
+ * Knowledge base configuration for RAG retrieval at the node level. If
222
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
223
+ */
224
+ kb_config?: ConversationNode.KBConfig;
216
225
  /**
217
226
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
218
227
  */
@@ -512,11 +521,25 @@ export declare namespace ConversationFlowResponse {
512
521
  }
513
522
  }
514
523
  }
524
+ /**
525
+ * Knowledge base configuration for RAG retrieval at the node level. If
526
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
527
+ */
528
+ interface KBConfig {
529
+ /**
530
+ * Similarity threshold for filtering search results
531
+ */
532
+ filter_score?: number;
533
+ /**
534
+ * Max number of knowledge base chunks to retrieve
535
+ */
536
+ top_k?: number;
537
+ }
515
538
  interface ModelChoice {
516
539
  /**
517
540
  * The LLM model to use
518
541
  */
519
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
542
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
520
543
  /**
521
544
  * Type of model choice
522
545
  */
@@ -587,6 +610,10 @@ export declare namespace ConversationFlowResponse {
587
610
  * Type of the node
588
611
  */
589
612
  type: 'subagent';
613
+ /**
614
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
615
+ */
616
+ allow_dtmf_interruption?: boolean | null;
590
617
  always_edge?: SubagentNode.AlwaysEdge;
591
618
  /**
592
619
  * Position for frontend display
@@ -597,6 +624,11 @@ export declare namespace ConversationFlowResponse {
597
624
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
598
625
  global_node_setting?: SubagentNode.GlobalNodeSetting;
599
626
  interruption_sensitivity?: number | null;
627
+ /**
628
+ * Knowledge base configuration for RAG retrieval at the node level. If
629
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
630
+ */
631
+ kb_config?: SubagentNode.KBConfig;
600
632
  /**
601
633
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
602
634
  */
@@ -896,11 +928,25 @@ export declare namespace ConversationFlowResponse {
896
928
  }
897
929
  }
898
930
  }
931
+ /**
932
+ * Knowledge base configuration for RAG retrieval at the node level. If
933
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
934
+ */
935
+ interface KBConfig {
936
+ /**
937
+ * Similarity threshold for filtering search results
938
+ */
939
+ filter_score?: number;
940
+ /**
941
+ * Max number of knowledge base chunks to retrieve
942
+ */
943
+ top_k?: number;
944
+ }
899
945
  interface ModelChoice {
900
946
  /**
901
947
  * The LLM model to use
902
948
  */
903
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
949
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
904
950
  /**
905
951
  * Type of model choice
906
952
  */
@@ -1357,7 +1403,7 @@ export declare namespace ConversationFlowResponse {
1357
1403
  * The version of the agent to swap to. If not specified, will use the latest
1358
1404
  * version.
1359
1405
  */
1360
- agent_version?: number;
1406
+ agent_version?: number | string;
1361
1407
  /**
1362
1408
  * Describes what the tool does, sometimes can also include information about when
1363
1409
  * to call the tool.
@@ -2072,7 +2118,7 @@ export declare namespace ConversationFlowResponse {
2072
2118
  /**
2073
2119
  * The LLM model to use
2074
2120
  */
2075
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2121
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2076
2122
  /**
2077
2123
  * Type of model choice
2078
2124
  */
@@ -2390,7 +2436,7 @@ export declare namespace ConversationFlowResponse {
2390
2436
  /**
2391
2437
  * The LLM model to use
2392
2438
  */
2393
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2439
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2394
2440
  /**
2395
2441
  * Type of model choice
2396
2442
  */
@@ -2716,7 +2762,7 @@ export declare namespace ConversationFlowResponse {
2716
2762
  /**
2717
2763
  * The LLM model to use
2718
2764
  */
2719
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2765
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
2720
2766
  /**
2721
2767
  * Type of model choice
2722
2768
  */
@@ -3197,7 +3243,7 @@ export declare namespace ConversationFlowResponse {
3197
3243
  /**
3198
3244
  * The LLM model to use
3199
3245
  */
3200
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3246
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3201
3247
  /**
3202
3248
  * Type of model choice
3203
3249
  */
@@ -3438,7 +3484,7 @@ export declare namespace ConversationFlowResponse {
3438
3484
  /**
3439
3485
  * The LLM model to use
3440
3486
  */
3441
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3487
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3442
3488
  /**
3443
3489
  * Type of model choice
3444
3490
  */
@@ -3715,7 +3761,7 @@ export declare namespace ConversationFlowResponse {
3715
3761
  /**
3716
3762
  * The LLM model to use
3717
3763
  */
3718
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3764
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
3719
3765
  /**
3720
3766
  * Type of model choice
3721
3767
  */
@@ -4003,7 +4049,7 @@ export declare namespace ConversationFlowResponse {
4003
4049
  /**
4004
4050
  * The LLM model to use
4005
4051
  */
4006
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4052
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4007
4053
  /**
4008
4054
  * Type of model choice
4009
4055
  */
@@ -4389,7 +4435,7 @@ export declare namespace ConversationFlowResponse {
4389
4435
  /**
4390
4436
  * The LLM model to use
4391
4437
  */
4392
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4438
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4393
4439
  /**
4394
4440
  * Type of model choice
4395
4441
  */
@@ -4425,7 +4471,7 @@ export declare namespace ConversationFlowResponse {
4425
4471
  * The version of the agent to swap to. If not specified, will use the latest
4426
4472
  * version
4427
4473
  */
4428
- agent_version?: number;
4474
+ agent_version?: number | string;
4429
4475
  /**
4430
4476
  * Position for frontend display
4431
4477
  */
@@ -4653,7 +4699,7 @@ export declare namespace ConversationFlowResponse {
4653
4699
  /**
4654
4700
  * The LLM model to use
4655
4701
  */
4656
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4702
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4657
4703
  /**
4658
4704
  * Type of model choice
4659
4705
  */
@@ -4981,7 +5027,7 @@ export declare namespace ConversationFlowResponse {
4981
5027
  /**
4982
5028
  * The LLM model to use
4983
5029
  */
4984
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5030
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
4985
5031
  /**
4986
5032
  * Type of model choice
4987
5033
  */
@@ -5446,7 +5492,7 @@ export declare namespace ConversationFlowResponse {
5446
5492
  /**
5447
5493
  * The LLM model to use
5448
5494
  */
5449
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5495
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5450
5496
  /**
5451
5497
  * Type of model choice
5452
5498
  */
@@ -5629,7 +5675,7 @@ export declare namespace ConversationFlowResponse {
5629
5675
  /**
5630
5676
  * The LLM model to use
5631
5677
  */
5632
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5678
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5633
5679
  /**
5634
5680
  * Type of model choice
5635
5681
  */
@@ -5953,7 +5999,7 @@ export declare namespace ConversationFlowResponse {
5953
5999
  /**
5954
6000
  * The LLM model to use
5955
6001
  */
5956
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
6002
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
5957
6003
  /**
5958
6004
  * Type of model choice
5959
6005
  */
@@ -5973,6 +6019,10 @@ export declare namespace ConversationFlowResponse {
5973
6019
  * Type of the node
5974
6020
  */
5975
6021
  type: 'conversation';
6022
+ /**
6023
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
6024
+ */
6025
+ allow_dtmf_interruption?: boolean | null;
5976
6026
  always_edge?: ConversationNode.AlwaysEdge;
5977
6027
  /**
5978
6028
  * Position for frontend display
@@ -5983,6 +6033,11 @@ export declare namespace ConversationFlowResponse {
5983
6033
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
5984
6034
  global_node_setting?: ConversationNode.GlobalNodeSetting;
5985
6035
  interruption_sensitivity?: number | null;
6036
+ /**
6037
+ * Knowledge base configuration for RAG retrieval at the node level. If
6038
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
6039
+ */
6040
+ kb_config?: ConversationNode.KBConfig;
5986
6041
  /**
5987
6042
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
5988
6043
  */
@@ -6282,11 +6337,25 @@ export declare namespace ConversationFlowResponse {
6282
6337
  }
6283
6338
  }
6284
6339
  }
6340
+ /**
6341
+ * Knowledge base configuration for RAG retrieval at the node level. If
6342
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
6343
+ */
6344
+ interface KBConfig {
6345
+ /**
6346
+ * Similarity threshold for filtering search results
6347
+ */
6348
+ filter_score?: number;
6349
+ /**
6350
+ * Max number of knowledge base chunks to retrieve
6351
+ */
6352
+ top_k?: number;
6353
+ }
6285
6354
  interface ModelChoice {
6286
6355
  /**
6287
6356
  * The LLM model to use
6288
6357
  */
6289
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
6358
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
6290
6359
  /**
6291
6360
  * Type of model choice
6292
6361
  */
@@ -6357,6 +6426,10 @@ export declare namespace ConversationFlowResponse {
6357
6426
  * Type of the node
6358
6427
  */
6359
6428
  type: 'subagent';
6429
+ /**
6430
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
6431
+ */
6432
+ allow_dtmf_interruption?: boolean | null;
6360
6433
  always_edge?: SubagentNode.AlwaysEdge;
6361
6434
  /**
6362
6435
  * Position for frontend display
@@ -6367,6 +6440,11 @@ export declare namespace ConversationFlowResponse {
6367
6440
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
6368
6441
  global_node_setting?: SubagentNode.GlobalNodeSetting;
6369
6442
  interruption_sensitivity?: number | null;
6443
+ /**
6444
+ * Knowledge base configuration for RAG retrieval at the node level. If
6445
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
6446
+ */
6447
+ kb_config?: SubagentNode.KBConfig;
6370
6448
  /**
6371
6449
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
6372
6450
  */
@@ -6666,11 +6744,25 @@ export declare namespace ConversationFlowResponse {
6666
6744
  }
6667
6745
  }
6668
6746
  }
6747
+ /**
6748
+ * Knowledge base configuration for RAG retrieval at the node level. If
6749
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
6750
+ */
6751
+ interface KBConfig {
6752
+ /**
6753
+ * Similarity threshold for filtering search results
6754
+ */
6755
+ filter_score?: number;
6756
+ /**
6757
+ * Max number of knowledge base chunks to retrieve
6758
+ */
6759
+ top_k?: number;
6760
+ }
6669
6761
  interface ModelChoice {
6670
6762
  /**
6671
6763
  * The LLM model to use
6672
6764
  */
6673
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
6765
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
6674
6766
  /**
6675
6767
  * Type of model choice
6676
6768
  */
@@ -7127,7 +7219,7 @@ export declare namespace ConversationFlowResponse {
7127
7219
  * The version of the agent to swap to. If not specified, will use the latest
7128
7220
  * version.
7129
7221
  */
7130
- agent_version?: number;
7222
+ agent_version?: number | string;
7131
7223
  /**
7132
7224
  * Describes what the tool does, sometimes can also include information about when
7133
7225
  * to call the tool.
@@ -7842,7 +7934,7 @@ export declare namespace ConversationFlowResponse {
7842
7934
  /**
7843
7935
  * The LLM model to use
7844
7936
  */
7845
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
7937
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
7846
7938
  /**
7847
7939
  * Type of model choice
7848
7940
  */
@@ -8160,7 +8252,7 @@ export declare namespace ConversationFlowResponse {
8160
8252
  /**
8161
8253
  * The LLM model to use
8162
8254
  */
8163
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
8255
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
8164
8256
  /**
8165
8257
  * Type of model choice
8166
8258
  */
@@ -8486,7 +8578,7 @@ export declare namespace ConversationFlowResponse {
8486
8578
  /**
8487
8579
  * The LLM model to use
8488
8580
  */
8489
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
8581
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
8490
8582
  /**
8491
8583
  * Type of model choice
8492
8584
  */
@@ -8967,7 +9059,7 @@ export declare namespace ConversationFlowResponse {
8967
9059
  /**
8968
9060
  * The LLM model to use
8969
9061
  */
8970
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9062
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
8971
9063
  /**
8972
9064
  * Type of model choice
8973
9065
  */
@@ -9208,7 +9300,7 @@ export declare namespace ConversationFlowResponse {
9208
9300
  /**
9209
9301
  * The LLM model to use
9210
9302
  */
9211
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9303
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9212
9304
  /**
9213
9305
  * Type of model choice
9214
9306
  */
@@ -9485,7 +9577,7 @@ export declare namespace ConversationFlowResponse {
9485
9577
  /**
9486
9578
  * The LLM model to use
9487
9579
  */
9488
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9580
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9489
9581
  /**
9490
9582
  * Type of model choice
9491
9583
  */
@@ -9773,7 +9865,7 @@ export declare namespace ConversationFlowResponse {
9773
9865
  /**
9774
9866
  * The LLM model to use
9775
9867
  */
9776
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9868
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
9777
9869
  /**
9778
9870
  * Type of model choice
9779
9871
  */
@@ -10159,7 +10251,7 @@ export declare namespace ConversationFlowResponse {
10159
10251
  /**
10160
10252
  * The LLM model to use
10161
10253
  */
10162
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10254
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10163
10255
  /**
10164
10256
  * Type of model choice
10165
10257
  */
@@ -10195,7 +10287,7 @@ export declare namespace ConversationFlowResponse {
10195
10287
  * The version of the agent to swap to. If not specified, will use the latest
10196
10288
  * version
10197
10289
  */
10198
- agent_version?: number;
10290
+ agent_version?: number | string;
10199
10291
  /**
10200
10292
  * Position for frontend display
10201
10293
  */
@@ -10423,7 +10515,7 @@ export declare namespace ConversationFlowResponse {
10423
10515
  /**
10424
10516
  * The LLM model to use
10425
10517
  */
10426
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10518
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10427
10519
  /**
10428
10520
  * Type of model choice
10429
10521
  */
@@ -10751,7 +10843,7 @@ export declare namespace ConversationFlowResponse {
10751
10843
  /**
10752
10844
  * The LLM model to use
10753
10845
  */
10754
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10846
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
10755
10847
  /**
10756
10848
  * Type of model choice
10757
10849
  */
@@ -11216,7 +11308,7 @@ export declare namespace ConversationFlowResponse {
11216
11308
  /**
11217
11309
  * The LLM model to use
11218
11310
  */
11219
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11311
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11220
11312
  /**
11221
11313
  * Type of model choice
11222
11314
  */
@@ -11399,7 +11491,7 @@ export declare namespace ConversationFlowResponse {
11399
11491
  /**
11400
11492
  * The LLM model to use
11401
11493
  */
11402
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11494
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11403
11495
  /**
11404
11496
  * Type of model choice
11405
11497
  */
@@ -11735,7 +11827,7 @@ export declare namespace ConversationFlowCreateParams {
11735
11827
  /**
11736
11828
  * The LLM model to use
11737
11829
  */
11738
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11830
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
11739
11831
  /**
11740
11832
  * Type of model choice
11741
11833
  */
@@ -11755,6 +11847,10 @@ export declare namespace ConversationFlowCreateParams {
11755
11847
  * Type of the node
11756
11848
  */
11757
11849
  type: 'conversation';
11850
+ /**
11851
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
11852
+ */
11853
+ allow_dtmf_interruption?: boolean | null;
11758
11854
  always_edge?: ConversationNode.AlwaysEdge;
11759
11855
  /**
11760
11856
  * Position for frontend display
@@ -11765,6 +11861,11 @@ export declare namespace ConversationFlowCreateParams {
11765
11861
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
11766
11862
  global_node_setting?: ConversationNode.GlobalNodeSetting;
11767
11863
  interruption_sensitivity?: number | null;
11864
+ /**
11865
+ * Knowledge base configuration for RAG retrieval at the node level. If
11866
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
11867
+ */
11868
+ kb_config?: ConversationNode.KBConfig;
11768
11869
  /**
11769
11870
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
11770
11871
  */
@@ -12064,11 +12165,25 @@ export declare namespace ConversationFlowCreateParams {
12064
12165
  }
12065
12166
  }
12066
12167
  }
12168
+ /**
12169
+ * Knowledge base configuration for RAG retrieval at the node level. If
12170
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
12171
+ */
12172
+ interface KBConfig {
12173
+ /**
12174
+ * Similarity threshold for filtering search results
12175
+ */
12176
+ filter_score?: number;
12177
+ /**
12178
+ * Max number of knowledge base chunks to retrieve
12179
+ */
12180
+ top_k?: number;
12181
+ }
12067
12182
  interface ModelChoice {
12068
12183
  /**
12069
12184
  * The LLM model to use
12070
12185
  */
12071
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
12186
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
12072
12187
  /**
12073
12188
  * Type of model choice
12074
12189
  */
@@ -12139,6 +12254,10 @@ export declare namespace ConversationFlowCreateParams {
12139
12254
  * Type of the node
12140
12255
  */
12141
12256
  type: 'subagent';
12257
+ /**
12258
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
12259
+ */
12260
+ allow_dtmf_interruption?: boolean | null;
12142
12261
  always_edge?: SubagentNode.AlwaysEdge;
12143
12262
  /**
12144
12263
  * Position for frontend display
@@ -12149,6 +12268,11 @@ export declare namespace ConversationFlowCreateParams {
12149
12268
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
12150
12269
  global_node_setting?: SubagentNode.GlobalNodeSetting;
12151
12270
  interruption_sensitivity?: number | null;
12271
+ /**
12272
+ * Knowledge base configuration for RAG retrieval at the node level. If
12273
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
12274
+ */
12275
+ kb_config?: SubagentNode.KBConfig;
12152
12276
  /**
12153
12277
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
12154
12278
  */
@@ -12448,11 +12572,25 @@ export declare namespace ConversationFlowCreateParams {
12448
12572
  }
12449
12573
  }
12450
12574
  }
12575
+ /**
12576
+ * Knowledge base configuration for RAG retrieval at the node level. If
12577
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
12578
+ */
12579
+ interface KBConfig {
12580
+ /**
12581
+ * Similarity threshold for filtering search results
12582
+ */
12583
+ filter_score?: number;
12584
+ /**
12585
+ * Max number of knowledge base chunks to retrieve
12586
+ */
12587
+ top_k?: number;
12588
+ }
12451
12589
  interface ModelChoice {
12452
12590
  /**
12453
12591
  * The LLM model to use
12454
12592
  */
12455
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
12593
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
12456
12594
  /**
12457
12595
  * Type of model choice
12458
12596
  */
@@ -12909,7 +13047,7 @@ export declare namespace ConversationFlowCreateParams {
12909
13047
  * The version of the agent to swap to. If not specified, will use the latest
12910
13048
  * version.
12911
13049
  */
12912
- agent_version?: number;
13050
+ agent_version?: number | string;
12913
13051
  /**
12914
13052
  * Describes what the tool does, sometimes can also include information about when
12915
13053
  * to call the tool.
@@ -13624,7 +13762,7 @@ export declare namespace ConversationFlowCreateParams {
13624
13762
  /**
13625
13763
  * The LLM model to use
13626
13764
  */
13627
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
13765
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
13628
13766
  /**
13629
13767
  * Type of model choice
13630
13768
  */
@@ -13942,7 +14080,7 @@ export declare namespace ConversationFlowCreateParams {
13942
14080
  /**
13943
14081
  * The LLM model to use
13944
14082
  */
13945
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14083
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
13946
14084
  /**
13947
14085
  * Type of model choice
13948
14086
  */
@@ -14268,7 +14406,7 @@ export declare namespace ConversationFlowCreateParams {
14268
14406
  /**
14269
14407
  * The LLM model to use
14270
14408
  */
14271
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14409
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14272
14410
  /**
14273
14411
  * Type of model choice
14274
14412
  */
@@ -14749,7 +14887,7 @@ export declare namespace ConversationFlowCreateParams {
14749
14887
  /**
14750
14888
  * The LLM model to use
14751
14889
  */
14752
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14890
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14753
14891
  /**
14754
14892
  * Type of model choice
14755
14893
  */
@@ -14990,7 +15128,7 @@ export declare namespace ConversationFlowCreateParams {
14990
15128
  /**
14991
15129
  * The LLM model to use
14992
15130
  */
14993
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15131
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
14994
15132
  /**
14995
15133
  * Type of model choice
14996
15134
  */
@@ -15267,7 +15405,7 @@ export declare namespace ConversationFlowCreateParams {
15267
15405
  /**
15268
15406
  * The LLM model to use
15269
15407
  */
15270
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15408
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15271
15409
  /**
15272
15410
  * Type of model choice
15273
15411
  */
@@ -15555,7 +15693,7 @@ export declare namespace ConversationFlowCreateParams {
15555
15693
  /**
15556
15694
  * The LLM model to use
15557
15695
  */
15558
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15696
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15559
15697
  /**
15560
15698
  * Type of model choice
15561
15699
  */
@@ -15941,7 +16079,7 @@ export declare namespace ConversationFlowCreateParams {
15941
16079
  /**
15942
16080
  * The LLM model to use
15943
16081
  */
15944
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
16082
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
15945
16083
  /**
15946
16084
  * Type of model choice
15947
16085
  */
@@ -15977,7 +16115,7 @@ export declare namespace ConversationFlowCreateParams {
15977
16115
  * The version of the agent to swap to. If not specified, will use the latest
15978
16116
  * version
15979
16117
  */
15980
- agent_version?: number;
16118
+ agent_version?: number | string;
15981
16119
  /**
15982
16120
  * Position for frontend display
15983
16121
  */
@@ -16205,7 +16343,7 @@ export declare namespace ConversationFlowCreateParams {
16205
16343
  /**
16206
16344
  * The LLM model to use
16207
16345
  */
16208
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
16346
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
16209
16347
  /**
16210
16348
  * Type of model choice
16211
16349
  */
@@ -16533,7 +16671,7 @@ export declare namespace ConversationFlowCreateParams {
16533
16671
  /**
16534
16672
  * The LLM model to use
16535
16673
  */
16536
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
16674
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
16537
16675
  /**
16538
16676
  * Type of model choice
16539
16677
  */
@@ -16998,7 +17136,7 @@ export declare namespace ConversationFlowCreateParams {
16998
17136
  /**
16999
17137
  * The LLM model to use
17000
17138
  */
17001
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17139
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17002
17140
  /**
17003
17141
  * Type of model choice
17004
17142
  */
@@ -17181,7 +17319,7 @@ export declare namespace ConversationFlowCreateParams {
17181
17319
  /**
17182
17320
  * The LLM model to use
17183
17321
  */
17184
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17322
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17185
17323
  /**
17186
17324
  * Type of model choice
17187
17325
  */
@@ -17240,6 +17378,10 @@ export declare namespace ConversationFlowCreateParams {
17240
17378
  * Type of the node
17241
17379
  */
17242
17380
  type: 'conversation';
17381
+ /**
17382
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
17383
+ */
17384
+ allow_dtmf_interruption?: boolean | null;
17243
17385
  always_edge?: ConversationNode.AlwaysEdge;
17244
17386
  /**
17245
17387
  * Position for frontend display
@@ -17250,6 +17392,11 @@ export declare namespace ConversationFlowCreateParams {
17250
17392
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
17251
17393
  global_node_setting?: ConversationNode.GlobalNodeSetting;
17252
17394
  interruption_sensitivity?: number | null;
17395
+ /**
17396
+ * Knowledge base configuration for RAG retrieval at the node level. If
17397
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17398
+ */
17399
+ kb_config?: ConversationNode.KBConfig;
17253
17400
  /**
17254
17401
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
17255
17402
  */
@@ -17549,11 +17696,25 @@ export declare namespace ConversationFlowCreateParams {
17549
17696
  }
17550
17697
  }
17551
17698
  }
17699
+ /**
17700
+ * Knowledge base configuration for RAG retrieval at the node level. If
17701
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17702
+ */
17703
+ interface KBConfig {
17704
+ /**
17705
+ * Similarity threshold for filtering search results
17706
+ */
17707
+ filter_score?: number;
17708
+ /**
17709
+ * Max number of knowledge base chunks to retrieve
17710
+ */
17711
+ top_k?: number;
17712
+ }
17552
17713
  interface ModelChoice {
17553
17714
  /**
17554
17715
  * The LLM model to use
17555
17716
  */
17556
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17717
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17557
17718
  /**
17558
17719
  * Type of model choice
17559
17720
  */
@@ -17624,6 +17785,10 @@ export declare namespace ConversationFlowCreateParams {
17624
17785
  * Type of the node
17625
17786
  */
17626
17787
  type: 'subagent';
17788
+ /**
17789
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
17790
+ */
17791
+ allow_dtmf_interruption?: boolean | null;
17627
17792
  always_edge?: SubagentNode.AlwaysEdge;
17628
17793
  /**
17629
17794
  * Position for frontend display
@@ -17634,6 +17799,11 @@ export declare namespace ConversationFlowCreateParams {
17634
17799
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
17635
17800
  global_node_setting?: SubagentNode.GlobalNodeSetting;
17636
17801
  interruption_sensitivity?: number | null;
17802
+ /**
17803
+ * Knowledge base configuration for RAG retrieval at the node level. If
17804
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
17805
+ */
17806
+ kb_config?: SubagentNode.KBConfig;
17637
17807
  /**
17638
17808
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
17639
17809
  */
@@ -17933,11 +18103,25 @@ export declare namespace ConversationFlowCreateParams {
17933
18103
  }
17934
18104
  }
17935
18105
  }
18106
+ /**
18107
+ * Knowledge base configuration for RAG retrieval at the node level. If
18108
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
18109
+ */
18110
+ interface KBConfig {
18111
+ /**
18112
+ * Similarity threshold for filtering search results
18113
+ */
18114
+ filter_score?: number;
18115
+ /**
18116
+ * Max number of knowledge base chunks to retrieve
18117
+ */
18118
+ top_k?: number;
18119
+ }
17936
18120
  interface ModelChoice {
17937
18121
  /**
17938
18122
  * The LLM model to use
17939
18123
  */
17940
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
18124
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
17941
18125
  /**
17942
18126
  * Type of model choice
17943
18127
  */
@@ -18394,7 +18578,7 @@ export declare namespace ConversationFlowCreateParams {
18394
18578
  * The version of the agent to swap to. If not specified, will use the latest
18395
18579
  * version.
18396
18580
  */
18397
- agent_version?: number;
18581
+ agent_version?: number | string;
18398
18582
  /**
18399
18583
  * Describes what the tool does, sometimes can also include information about when
18400
18584
  * to call the tool.
@@ -19109,7 +19293,7 @@ export declare namespace ConversationFlowCreateParams {
19109
19293
  /**
19110
19294
  * The LLM model to use
19111
19295
  */
19112
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19296
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19113
19297
  /**
19114
19298
  * Type of model choice
19115
19299
  */
@@ -19427,7 +19611,7 @@ export declare namespace ConversationFlowCreateParams {
19427
19611
  /**
19428
19612
  * The LLM model to use
19429
19613
  */
19430
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19614
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19431
19615
  /**
19432
19616
  * Type of model choice
19433
19617
  */
@@ -19753,7 +19937,7 @@ export declare namespace ConversationFlowCreateParams {
19753
19937
  /**
19754
19938
  * The LLM model to use
19755
19939
  */
19756
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19940
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
19757
19941
  /**
19758
19942
  * Type of model choice
19759
19943
  */
@@ -20234,7 +20418,7 @@ export declare namespace ConversationFlowCreateParams {
20234
20418
  /**
20235
20419
  * The LLM model to use
20236
20420
  */
20237
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20421
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20238
20422
  /**
20239
20423
  * Type of model choice
20240
20424
  */
@@ -20475,7 +20659,7 @@ export declare namespace ConversationFlowCreateParams {
20475
20659
  /**
20476
20660
  * The LLM model to use
20477
20661
  */
20478
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20662
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20479
20663
  /**
20480
20664
  * Type of model choice
20481
20665
  */
@@ -20752,7 +20936,7 @@ export declare namespace ConversationFlowCreateParams {
20752
20936
  /**
20753
20937
  * The LLM model to use
20754
20938
  */
20755
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20939
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
20756
20940
  /**
20757
20941
  * Type of model choice
20758
20942
  */
@@ -21040,7 +21224,7 @@ export declare namespace ConversationFlowCreateParams {
21040
21224
  /**
21041
21225
  * The LLM model to use
21042
21226
  */
21043
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21227
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21044
21228
  /**
21045
21229
  * Type of model choice
21046
21230
  */
@@ -21426,7 +21610,7 @@ export declare namespace ConversationFlowCreateParams {
21426
21610
  /**
21427
21611
  * The LLM model to use
21428
21612
  */
21429
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21613
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21430
21614
  /**
21431
21615
  * Type of model choice
21432
21616
  */
@@ -21462,7 +21646,7 @@ export declare namespace ConversationFlowCreateParams {
21462
21646
  * The version of the agent to swap to. If not specified, will use the latest
21463
21647
  * version
21464
21648
  */
21465
- agent_version?: number;
21649
+ agent_version?: number | string;
21466
21650
  /**
21467
21651
  * Position for frontend display
21468
21652
  */
@@ -21690,7 +21874,7 @@ export declare namespace ConversationFlowCreateParams {
21690
21874
  /**
21691
21875
  * The LLM model to use
21692
21876
  */
21693
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21877
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
21694
21878
  /**
21695
21879
  * Type of model choice
21696
21880
  */
@@ -22018,7 +22202,7 @@ export declare namespace ConversationFlowCreateParams {
22018
22202
  /**
22019
22203
  * The LLM model to use
22020
22204
  */
22021
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22205
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22022
22206
  /**
22023
22207
  * Type of model choice
22024
22208
  */
@@ -22483,7 +22667,7 @@ export declare namespace ConversationFlowCreateParams {
22483
22667
  /**
22484
22668
  * The LLM model to use
22485
22669
  */
22486
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22670
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22487
22671
  /**
22488
22672
  * Type of model choice
22489
22673
  */
@@ -22666,7 +22850,7 @@ export declare namespace ConversationFlowCreateParams {
22666
22850
  /**
22667
22851
  * The LLM model to use
22668
22852
  */
22669
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22853
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
22670
22854
  /**
22671
22855
  * Type of model choice
22672
22856
  */
@@ -23361,6 +23545,10 @@ export declare namespace ConversationFlowUpdateParams {
23361
23545
  * Type of the node
23362
23546
  */
23363
23547
  type: 'conversation';
23548
+ /**
23549
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
23550
+ */
23551
+ allow_dtmf_interruption?: boolean | null;
23364
23552
  always_edge?: ConversationNode.AlwaysEdge;
23365
23553
  /**
23366
23554
  * Position for frontend display
@@ -23371,6 +23559,11 @@ export declare namespace ConversationFlowUpdateParams {
23371
23559
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
23372
23560
  global_node_setting?: ConversationNode.GlobalNodeSetting;
23373
23561
  interruption_sensitivity?: number | null;
23562
+ /**
23563
+ * Knowledge base configuration for RAG retrieval at the node level. If
23564
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
23565
+ */
23566
+ kb_config?: ConversationNode.KBConfig;
23374
23567
  /**
23375
23568
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
23376
23569
  */
@@ -23670,11 +23863,25 @@ export declare namespace ConversationFlowUpdateParams {
23670
23863
  }
23671
23864
  }
23672
23865
  }
23866
+ /**
23867
+ * Knowledge base configuration for RAG retrieval at the node level. If
23868
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
23869
+ */
23870
+ interface KBConfig {
23871
+ /**
23872
+ * Similarity threshold for filtering search results
23873
+ */
23874
+ filter_score?: number;
23875
+ /**
23876
+ * Max number of knowledge base chunks to retrieve
23877
+ */
23878
+ top_k?: number;
23879
+ }
23673
23880
  interface ModelChoice {
23674
23881
  /**
23675
23882
  * The LLM model to use
23676
23883
  */
23677
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
23884
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
23678
23885
  /**
23679
23886
  * Type of model choice
23680
23887
  */
@@ -23745,6 +23952,10 @@ export declare namespace ConversationFlowUpdateParams {
23745
23952
  * Type of the node
23746
23953
  */
23747
23954
  type: 'subagent';
23955
+ /**
23956
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
23957
+ */
23958
+ allow_dtmf_interruption?: boolean | null;
23748
23959
  always_edge?: SubagentNode.AlwaysEdge;
23749
23960
  /**
23750
23961
  * Position for frontend display
@@ -23755,6 +23966,11 @@ export declare namespace ConversationFlowUpdateParams {
23755
23966
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
23756
23967
  global_node_setting?: SubagentNode.GlobalNodeSetting;
23757
23968
  interruption_sensitivity?: number | null;
23969
+ /**
23970
+ * Knowledge base configuration for RAG retrieval at the node level. If
23971
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
23972
+ */
23973
+ kb_config?: SubagentNode.KBConfig;
23758
23974
  /**
23759
23975
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
23760
23976
  */
@@ -24054,11 +24270,25 @@ export declare namespace ConversationFlowUpdateParams {
24054
24270
  }
24055
24271
  }
24056
24272
  }
24273
+ /**
24274
+ * Knowledge base configuration for RAG retrieval at the node level. If
24275
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
24276
+ */
24277
+ interface KBConfig {
24278
+ /**
24279
+ * Similarity threshold for filtering search results
24280
+ */
24281
+ filter_score?: number;
24282
+ /**
24283
+ * Max number of knowledge base chunks to retrieve
24284
+ */
24285
+ top_k?: number;
24286
+ }
24057
24287
  interface ModelChoice {
24058
24288
  /**
24059
24289
  * The LLM model to use
24060
24290
  */
24061
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
24291
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
24062
24292
  /**
24063
24293
  * Type of model choice
24064
24294
  */
@@ -24515,7 +24745,7 @@ export declare namespace ConversationFlowUpdateParams {
24515
24745
  * The version of the agent to swap to. If not specified, will use the latest
24516
24746
  * version.
24517
24747
  */
24518
- agent_version?: number;
24748
+ agent_version?: number | string;
24519
24749
  /**
24520
24750
  * Describes what the tool does, sometimes can also include information about when
24521
24751
  * to call the tool.
@@ -25230,7 +25460,7 @@ export declare namespace ConversationFlowUpdateParams {
25230
25460
  /**
25231
25461
  * The LLM model to use
25232
25462
  */
25233
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
25463
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
25234
25464
  /**
25235
25465
  * Type of model choice
25236
25466
  */
@@ -25548,7 +25778,7 @@ export declare namespace ConversationFlowUpdateParams {
25548
25778
  /**
25549
25779
  * The LLM model to use
25550
25780
  */
25551
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
25781
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
25552
25782
  /**
25553
25783
  * Type of model choice
25554
25784
  */
@@ -25874,7 +26104,7 @@ export declare namespace ConversationFlowUpdateParams {
25874
26104
  /**
25875
26105
  * The LLM model to use
25876
26106
  */
25877
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26107
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
25878
26108
  /**
25879
26109
  * Type of model choice
25880
26110
  */
@@ -26355,7 +26585,7 @@ export declare namespace ConversationFlowUpdateParams {
26355
26585
  /**
26356
26586
  * The LLM model to use
26357
26587
  */
26358
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26588
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26359
26589
  /**
26360
26590
  * Type of model choice
26361
26591
  */
@@ -26596,7 +26826,7 @@ export declare namespace ConversationFlowUpdateParams {
26596
26826
  /**
26597
26827
  * The LLM model to use
26598
26828
  */
26599
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26829
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26600
26830
  /**
26601
26831
  * Type of model choice
26602
26832
  */
@@ -26873,7 +27103,7 @@ export declare namespace ConversationFlowUpdateParams {
26873
27103
  /**
26874
27104
  * The LLM model to use
26875
27105
  */
26876
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27106
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
26877
27107
  /**
26878
27108
  * Type of model choice
26879
27109
  */
@@ -27161,7 +27391,7 @@ export declare namespace ConversationFlowUpdateParams {
27161
27391
  /**
27162
27392
  * The LLM model to use
27163
27393
  */
27164
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27394
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27165
27395
  /**
27166
27396
  * Type of model choice
27167
27397
  */
@@ -27547,7 +27777,7 @@ export declare namespace ConversationFlowUpdateParams {
27547
27777
  /**
27548
27778
  * The LLM model to use
27549
27779
  */
27550
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27780
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27551
27781
  /**
27552
27782
  * Type of model choice
27553
27783
  */
@@ -27583,7 +27813,7 @@ export declare namespace ConversationFlowUpdateParams {
27583
27813
  * The version of the agent to swap to. If not specified, will use the latest
27584
27814
  * version
27585
27815
  */
27586
- agent_version?: number;
27816
+ agent_version?: number | string;
27587
27817
  /**
27588
27818
  * Position for frontend display
27589
27819
  */
@@ -27811,7 +28041,7 @@ export declare namespace ConversationFlowUpdateParams {
27811
28041
  /**
27812
28042
  * The LLM model to use
27813
28043
  */
27814
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28044
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
27815
28045
  /**
27816
28046
  * Type of model choice
27817
28047
  */
@@ -28139,7 +28369,7 @@ export declare namespace ConversationFlowUpdateParams {
28139
28369
  /**
28140
28370
  * The LLM model to use
28141
28371
  */
28142
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28372
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28143
28373
  /**
28144
28374
  * Type of model choice
28145
28375
  */
@@ -28604,7 +28834,7 @@ export declare namespace ConversationFlowUpdateParams {
28604
28834
  /**
28605
28835
  * The LLM model to use
28606
28836
  */
28607
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28837
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28608
28838
  /**
28609
28839
  * Type of model choice
28610
28840
  */
@@ -28787,7 +29017,7 @@ export declare namespace ConversationFlowUpdateParams {
28787
29017
  /**
28788
29018
  * The LLM model to use
28789
29019
  */
28790
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29020
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
28791
29021
  /**
28792
29022
  * Type of model choice
28793
29023
  */
@@ -29111,7 +29341,7 @@ export declare namespace ConversationFlowUpdateParams {
29111
29341
  /**
29112
29342
  * The LLM model to use
29113
29343
  */
29114
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29344
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29115
29345
  /**
29116
29346
  * Type of model choice
29117
29347
  */
@@ -29131,6 +29361,10 @@ export declare namespace ConversationFlowUpdateParams {
29131
29361
  * Type of the node
29132
29362
  */
29133
29363
  type: 'conversation';
29364
+ /**
29365
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
29366
+ */
29367
+ allow_dtmf_interruption?: boolean | null;
29134
29368
  always_edge?: ConversationNode.AlwaysEdge;
29135
29369
  /**
29136
29370
  * Position for frontend display
@@ -29141,6 +29375,11 @@ export declare namespace ConversationFlowUpdateParams {
29141
29375
  finetune_transition_examples?: Array<ConversationNode.FinetuneTransitionExample>;
29142
29376
  global_node_setting?: ConversationNode.GlobalNodeSetting;
29143
29377
  interruption_sensitivity?: number | null;
29378
+ /**
29379
+ * Knowledge base configuration for RAG retrieval at the node level. If
29380
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
29381
+ */
29382
+ kb_config?: ConversationNode.KBConfig;
29144
29383
  /**
29145
29384
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
29146
29385
  */
@@ -29440,11 +29679,25 @@ export declare namespace ConversationFlowUpdateParams {
29440
29679
  }
29441
29680
  }
29442
29681
  }
29682
+ /**
29683
+ * Knowledge base configuration for RAG retrieval at the node level. If
29684
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
29685
+ */
29686
+ interface KBConfig {
29687
+ /**
29688
+ * Similarity threshold for filtering search results
29689
+ */
29690
+ filter_score?: number;
29691
+ /**
29692
+ * Max number of knowledge base chunks to retrieve
29693
+ */
29694
+ top_k?: number;
29695
+ }
29443
29696
  interface ModelChoice {
29444
29697
  /**
29445
29698
  * The LLM model to use
29446
29699
  */
29447
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29700
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29448
29701
  /**
29449
29702
  * Type of model choice
29450
29703
  */
@@ -29515,6 +29768,10 @@ export declare namespace ConversationFlowUpdateParams {
29515
29768
  * Type of the node
29516
29769
  */
29517
29770
  type: 'subagent';
29771
+ /**
29772
+ * If set, overrides the agent-level allow_dtmf_interruption for this node only.
29773
+ */
29774
+ allow_dtmf_interruption?: boolean | null;
29518
29775
  always_edge?: SubagentNode.AlwaysEdge;
29519
29776
  /**
29520
29777
  * Position for frontend display
@@ -29525,6 +29782,11 @@ export declare namespace ConversationFlowUpdateParams {
29525
29782
  finetune_transition_examples?: Array<SubagentNode.FinetuneTransitionExample>;
29526
29783
  global_node_setting?: SubagentNode.GlobalNodeSetting;
29527
29784
  interruption_sensitivity?: number | null;
29785
+ /**
29786
+ * Knowledge base configuration for RAG retrieval at the node level. If
29787
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
29788
+ */
29789
+ kb_config?: SubagentNode.KBConfig;
29528
29790
  /**
29529
29791
  * Knowledge base IDs for RAG (Retrieval-Augmented Generation).
29530
29792
  */
@@ -29824,11 +30086,25 @@ export declare namespace ConversationFlowUpdateParams {
29824
30086
  }
29825
30087
  }
29826
30088
  }
30089
+ /**
30090
+ * Knowledge base configuration for RAG retrieval at the node level. If
30091
+ * kb_instruction is set here, it overrides the flow-level kb_instruction.
30092
+ */
30093
+ interface KBConfig {
30094
+ /**
30095
+ * Similarity threshold for filtering search results
30096
+ */
30097
+ filter_score?: number;
30098
+ /**
30099
+ * Max number of knowledge base chunks to retrieve
30100
+ */
30101
+ top_k?: number;
30102
+ }
29827
30103
  interface ModelChoice {
29828
30104
  /**
29829
30105
  * The LLM model to use
29830
30106
  */
29831
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
30107
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
29832
30108
  /**
29833
30109
  * Type of model choice
29834
30110
  */
@@ -30285,7 +30561,7 @@ export declare namespace ConversationFlowUpdateParams {
30285
30561
  * The version of the agent to swap to. If not specified, will use the latest
30286
30562
  * version.
30287
30563
  */
30288
- agent_version?: number;
30564
+ agent_version?: number | string;
30289
30565
  /**
30290
30566
  * Describes what the tool does, sometimes can also include information about when
30291
30567
  * to call the tool.
@@ -31000,7 +31276,7 @@ export declare namespace ConversationFlowUpdateParams {
31000
31276
  /**
31001
31277
  * The LLM model to use
31002
31278
  */
31003
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31279
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31004
31280
  /**
31005
31281
  * Type of model choice
31006
31282
  */
@@ -31318,7 +31594,7 @@ export declare namespace ConversationFlowUpdateParams {
31318
31594
  /**
31319
31595
  * The LLM model to use
31320
31596
  */
31321
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31597
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31322
31598
  /**
31323
31599
  * Type of model choice
31324
31600
  */
@@ -31644,7 +31920,7 @@ export declare namespace ConversationFlowUpdateParams {
31644
31920
  /**
31645
31921
  * The LLM model to use
31646
31922
  */
31647
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31923
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
31648
31924
  /**
31649
31925
  * Type of model choice
31650
31926
  */
@@ -32125,7 +32401,7 @@ export declare namespace ConversationFlowUpdateParams {
32125
32401
  /**
32126
32402
  * The LLM model to use
32127
32403
  */
32128
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32404
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32129
32405
  /**
32130
32406
  * Type of model choice
32131
32407
  */
@@ -32366,7 +32642,7 @@ export declare namespace ConversationFlowUpdateParams {
32366
32642
  /**
32367
32643
  * The LLM model to use
32368
32644
  */
32369
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32645
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32370
32646
  /**
32371
32647
  * Type of model choice
32372
32648
  */
@@ -32643,7 +32919,7 @@ export declare namespace ConversationFlowUpdateParams {
32643
32919
  /**
32644
32920
  * The LLM model to use
32645
32921
  */
32646
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32922
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32647
32923
  /**
32648
32924
  * Type of model choice
32649
32925
  */
@@ -32931,7 +33207,7 @@ export declare namespace ConversationFlowUpdateParams {
32931
33207
  /**
32932
33208
  * The LLM model to use
32933
33209
  */
32934
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33210
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
32935
33211
  /**
32936
33212
  * Type of model choice
32937
33213
  */
@@ -33317,7 +33593,7 @@ export declare namespace ConversationFlowUpdateParams {
33317
33593
  /**
33318
33594
  * The LLM model to use
33319
33595
  */
33320
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33596
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33321
33597
  /**
33322
33598
  * Type of model choice
33323
33599
  */
@@ -33353,7 +33629,7 @@ export declare namespace ConversationFlowUpdateParams {
33353
33629
  * The version of the agent to swap to. If not specified, will use the latest
33354
33630
  * version
33355
33631
  */
33356
- agent_version?: number;
33632
+ agent_version?: number | string;
33357
33633
  /**
33358
33634
  * Position for frontend display
33359
33635
  */
@@ -33581,7 +33857,7 @@ export declare namespace ConversationFlowUpdateParams {
33581
33857
  /**
33582
33858
  * The LLM model to use
33583
33859
  */
33584
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33860
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33585
33861
  /**
33586
33862
  * Type of model choice
33587
33863
  */
@@ -33909,7 +34185,7 @@ export declare namespace ConversationFlowUpdateParams {
33909
34185
  /**
33910
34186
  * The LLM model to use
33911
34187
  */
33912
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
34188
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
33913
34189
  /**
33914
34190
  * Type of model choice
33915
34191
  */
@@ -34374,7 +34650,7 @@ export declare namespace ConversationFlowUpdateParams {
34374
34650
  /**
34375
34651
  * The LLM model to use
34376
34652
  */
34377
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
34653
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
34378
34654
  /**
34379
34655
  * Type of model choice
34380
34656
  */
@@ -34557,7 +34833,7 @@ export declare namespace ConversationFlowUpdateParams {
34557
34833
  /**
34558
34834
  * The LLM model to use
34559
34835
  */
34560
- model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
34836
+ model: 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite';
34561
34837
  /**
34562
34838
  * Type of model choice
34563
34839
  */