retell-sdk 5.66.1 → 6.0.1

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 (88) hide show
  1. package/CHANGELOG.md +24 -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/package.json +1 -1
  9. package/resources/agent.d.mts +7 -14
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +7 -14
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/agent.js +0 -8
  14. package/resources/agent.js.map +1 -1
  15. package/resources/agent.mjs +0 -8
  16. package/resources/agent.mjs.map +1 -1
  17. package/resources/batch-call.d.mts +5 -5
  18. package/resources/batch-call.d.mts.map +1 -1
  19. package/resources/batch-call.d.ts +5 -5
  20. package/resources/batch-call.d.ts.map +1 -1
  21. package/resources/call.d.mts +15 -15
  22. package/resources/call.d.mts.map +1 -1
  23. package/resources/call.d.ts +15 -15
  24. package/resources/call.d.ts.map +1 -1
  25. package/resources/chat-agent.d.mts +7 -14
  26. package/resources/chat-agent.d.mts.map +1 -1
  27. package/resources/chat-agent.d.ts +7 -14
  28. package/resources/chat-agent.d.ts.map +1 -1
  29. package/resources/chat-agent.js +0 -8
  30. package/resources/chat-agent.js.map +1 -1
  31. package/resources/chat-agent.mjs +0 -8
  32. package/resources/chat-agent.mjs.map +1 -1
  33. package/resources/chat.d.mts +57 -0
  34. package/resources/chat.d.mts.map +1 -1
  35. package/resources/chat.d.ts +57 -0
  36. package/resources/chat.d.ts.map +1 -1
  37. package/resources/contact.d.mts +32 -32
  38. package/resources/contact.d.mts.map +1 -1
  39. package/resources/contact.d.ts +32 -32
  40. package/resources/contact.d.ts.map +1 -1
  41. package/resources/conversation-flow-component.d.mts +57 -525
  42. package/resources/conversation-flow-component.d.mts.map +1 -1
  43. package/resources/conversation-flow-component.d.ts +57 -525
  44. package/resources/conversation-flow-component.d.ts.map +1 -1
  45. package/resources/conversation-flow.d.mts +117 -1053
  46. package/resources/conversation-flow.d.mts.map +1 -1
  47. package/resources/conversation-flow.d.ts +117 -1053
  48. package/resources/conversation-flow.d.ts.map +1 -1
  49. package/resources/crm.d.mts +6 -0
  50. package/resources/crm.d.mts.map +1 -1
  51. package/resources/crm.d.ts +6 -0
  52. package/resources/crm.d.ts.map +1 -1
  53. package/resources/index.d.mts +2 -2
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +2 -2
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/llm.d.mts +12 -456
  60. package/resources/llm.d.mts.map +1 -1
  61. package/resources/llm.d.ts +12 -456
  62. package/resources/llm.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 +0 -4
  68. package/src/resources/agent.ts +9 -15
  69. package/src/resources/batch-call.ts +9 -3
  70. package/src/resources/call.ts +27 -9
  71. package/src/resources/chat-agent.ts +9 -15
  72. package/src/resources/chat.ts +77 -0
  73. package/src/resources/contact.ts +38 -38
  74. package/src/resources/conversation-flow-component.ts +138 -618
  75. package/src/resources/conversation-flow.ts +285 -1233
  76. package/src/resources/crm.ts +7 -0
  77. package/src/resources/index.ts +0 -2
  78. package/src/resources/llm.ts +9 -531
  79. package/src/resources/tests.ts +9 -3
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.mts.map +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.d.ts.map +1 -1
  85. package/version.js +1 -1
  86. package/version.js.map +1 -1
  87. package/version.mjs +1 -1
  88. package/version.mjs.map +1 -1
@@ -246,11 +246,7 @@ export interface ConversationFlowResponse {
246
246
  /**
247
247
  * Tools available in the conversation flow.
248
248
  */
249
- tools?: Array<
250
- | ConversationFlowResponse.CustomTool
251
- | ConversationFlowResponse.CheckAvailabilityCalTool
252
- | ConversationFlowResponse.BookAppointmentCalTool
253
- > | null;
249
+ tools?: Array<ConversationFlowResponse.Tool> | null;
254
250
  }
255
251
 
256
252
  export namespace ConversationFlowResponse {
@@ -318,9 +314,7 @@ export namespace ConversationFlowResponse {
318
314
  /**
319
315
  * Tools available within the component
320
316
  */
321
- tools?: Array<
322
- Component.CustomTool | Component.CheckAvailabilityCalTool | Component.BookAppointmentCalTool
323
- > | null;
317
+ tools?: Array<Component.Tool> | null;
324
318
  }
325
319
 
326
320
  export namespace Component {
@@ -968,7 +962,9 @@ export namespace ConversationFlowResponse {
968
962
  | 'gemini-3.1-flash-lite'
969
963
  | 'gemini-3.5-flash'
970
964
  | 'gemini-3.5-flash-lite'
971
- | 'gemini-3.6-flash';
965
+ | 'gemini-3.6-flash'
966
+ | 'gemini-3.7-flash'
967
+ | 'gemini-3.8-flash';
972
968
 
973
969
  /**
974
970
  * Type of model choice
@@ -1155,8 +1151,6 @@ export namespace ConversationFlowResponse {
1155
1151
  tools?: Array<
1156
1152
  | SubagentNode.EndCallTool
1157
1153
  | SubagentNode.TransferCallTool
1158
- | SubagentNode.CheckAvailabilityCalTool
1159
- | SubagentNode.BookAppointmentCalTool
1160
1154
  | SubagentNode.AgentSwapTool
1161
1155
  | SubagentNode.PressDigitTool
1162
1156
  | SubagentNode.SendSMSTool
@@ -1717,7 +1711,9 @@ export namespace ConversationFlowResponse {
1717
1711
  | 'gemini-3.1-flash-lite'
1718
1712
  | 'gemini-3.5-flash'
1719
1713
  | 'gemini-3.5-flash-lite'
1720
- | 'gemini-3.6-flash';
1714
+ | 'gemini-3.6-flash'
1715
+ | 'gemini-3.7-flash'
1716
+ | 'gemini-3.8-flash';
1721
1717
 
1722
1718
  /**
1723
1719
  * Type of model choice
@@ -2203,92 +2199,6 @@ export namespace ConversationFlowResponse {
2203
2199
  }
2204
2200
  }
2205
2201
 
2206
- /**
2207
- * @deprecated
2208
- */
2209
- export interface CheckAvailabilityCalTool {
2210
- /**
2211
- * Cal.com Api key that have access to the cal.com event you want to check
2212
- * availability for.
2213
- */
2214
- cal_api_key: string;
2215
-
2216
- /**
2217
- * Cal.com event type id number for the cal.com event you want to check
2218
- * availability for. Can be a number or a dynamic variable in the format
2219
- * `{{variable_name}}` that will be resolved at runtime.
2220
- */
2221
- event_type_id: number | string;
2222
-
2223
- /**
2224
- * Name of the tool. Must be unique within all tools available to LLM at any given
2225
- * time (general tools + state tools + state transitions). Must be consisted of
2226
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
2227
- * (no space allowed).
2228
- */
2229
- name: string;
2230
-
2231
- type: 'check_availability_cal';
2232
-
2233
- /**
2234
- * Describes what the tool does, sometimes can also include information about when
2235
- * to call the tool.
2236
- */
2237
- description?: string;
2238
-
2239
- /**
2240
- * Timezone to be used when checking availability, must be in
2241
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
2242
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
2243
- * resolved at runtime. If not specified, will check if user specified timezone in
2244
- * call, and if not, will use the timezone of the Retell servers.
2245
- */
2246
- timezone?: string;
2247
- }
2248
-
2249
- /**
2250
- * @deprecated
2251
- */
2252
- export interface BookAppointmentCalTool {
2253
- /**
2254
- * Cal.com Api key that have access to the cal.com event you want to book
2255
- * appointment.
2256
- */
2257
- cal_api_key: string;
2258
-
2259
- /**
2260
- * Cal.com event type id number for the cal.com event you want to book appointment.
2261
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
2262
- * will be resolved at runtime.
2263
- */
2264
- event_type_id: number | string;
2265
-
2266
- /**
2267
- * Name of the tool. Must be unique within all tools available to LLM at any given
2268
- * time (general tools + state tools + state transitions). Must be consisted of
2269
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
2270
- * (no space allowed).
2271
- */
2272
- name: string;
2273
-
2274
- type: 'book_appointment_cal';
2275
-
2276
- /**
2277
- * Describes what the tool does, sometimes can also include information about when
2278
- * to call the tool.
2279
- */
2280
- description?: string;
2281
-
2282
- /**
2283
- * Timezone to be used when booking appointment, must be in
2284
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
2285
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
2286
- * resolved at runtime. If not specified, will check if user specified timezone in
2287
- * call, and if not, will use the timezone of the Retell servers.
2288
- */
2289
- timezone?: string;
2290
- }
2291
-
2292
2202
  export interface AgentSwapTool {
2293
2203
  /**
2294
2204
  * The id of the agent to swap to.
@@ -3246,7 +3156,9 @@ export namespace ConversationFlowResponse {
3246
3156
  | 'gemini-3.1-flash-lite'
3247
3157
  | 'gemini-3.5-flash'
3248
3158
  | 'gemini-3.5-flash-lite'
3249
- | 'gemini-3.6-flash';
3159
+ | 'gemini-3.6-flash'
3160
+ | 'gemini-3.7-flash'
3161
+ | 'gemini-3.8-flash';
3250
3162
 
3251
3163
  /**
3252
3164
  * Type of model choice
@@ -3726,7 +3638,9 @@ export namespace ConversationFlowResponse {
3726
3638
  | 'gemini-3.1-flash-lite'
3727
3639
  | 'gemini-3.5-flash'
3728
3640
  | 'gemini-3.5-flash-lite'
3729
- | 'gemini-3.6-flash';
3641
+ | 'gemini-3.6-flash'
3642
+ | 'gemini-3.7-flash'
3643
+ | 'gemini-3.8-flash';
3730
3644
 
3731
3645
  /**
3732
3646
  * Type of model choice
@@ -4213,7 +4127,9 @@ export namespace ConversationFlowResponse {
4213
4127
  | 'gemini-3.1-flash-lite'
4214
4128
  | 'gemini-3.5-flash'
4215
4129
  | 'gemini-3.5-flash-lite'
4216
- | 'gemini-3.6-flash';
4130
+ | 'gemini-3.6-flash'
4131
+ | 'gemini-3.7-flash'
4132
+ | 'gemini-3.8-flash';
4217
4133
 
4218
4134
  /**
4219
4135
  * Type of model choice
@@ -4887,7 +4803,9 @@ export namespace ConversationFlowResponse {
4887
4803
  | 'gemini-3.1-flash-lite'
4888
4804
  | 'gemini-3.5-flash'
4889
4805
  | 'gemini-3.5-flash-lite'
4890
- | 'gemini-3.6-flash';
4806
+ | 'gemini-3.6-flash'
4807
+ | 'gemini-3.7-flash'
4808
+ | 'gemini-3.8-flash';
4891
4809
 
4892
4810
  /**
4893
4811
  * Type of model choice
@@ -5335,7 +5253,9 @@ export namespace ConversationFlowResponse {
5335
5253
  | 'gemini-3.1-flash-lite'
5336
5254
  | 'gemini-3.5-flash'
5337
5255
  | 'gemini-3.5-flash-lite'
5338
- | 'gemini-3.6-flash';
5256
+ | 'gemini-3.6-flash'
5257
+ | 'gemini-3.7-flash'
5258
+ | 'gemini-3.8-flash';
5339
5259
 
5340
5260
  /**
5341
5261
  * Type of model choice
@@ -5764,7 +5684,9 @@ export namespace ConversationFlowResponse {
5764
5684
  | 'gemini-3.1-flash-lite'
5765
5685
  | 'gemini-3.5-flash'
5766
5686
  | 'gemini-3.5-flash-lite'
5767
- | 'gemini-3.6-flash';
5687
+ | 'gemini-3.6-flash'
5688
+ | 'gemini-3.7-flash'
5689
+ | 'gemini-3.8-flash';
5768
5690
 
5769
5691
  /**
5770
5692
  * Type of model choice
@@ -6206,7 +6128,9 @@ export namespace ConversationFlowResponse {
6206
6128
  | 'gemini-3.1-flash-lite'
6207
6129
  | 'gemini-3.5-flash'
6208
6130
  | 'gemini-3.5-flash-lite'
6209
- | 'gemini-3.6-flash';
6131
+ | 'gemini-3.6-flash'
6132
+ | 'gemini-3.7-flash'
6133
+ | 'gemini-3.8-flash';
6210
6134
 
6211
6135
  /**
6212
6136
  * Type of model choice
@@ -6777,7 +6701,9 @@ export namespace ConversationFlowResponse {
6777
6701
  | 'gemini-3.1-flash-lite'
6778
6702
  | 'gemini-3.5-flash'
6779
6703
  | 'gemini-3.5-flash-lite'
6780
- | 'gemini-3.6-flash';
6704
+ | 'gemini-3.6-flash'
6705
+ | 'gemini-3.7-flash'
6706
+ | 'gemini-3.8-flash';
6781
6707
 
6782
6708
  /**
6783
6709
  * Type of model choice
@@ -7168,7 +7094,9 @@ export namespace ConversationFlowResponse {
7168
7094
  | 'gemini-3.1-flash-lite'
7169
7095
  | 'gemini-3.5-flash'
7170
7096
  | 'gemini-3.5-flash-lite'
7171
- | 'gemini-3.6-flash';
7097
+ | 'gemini-3.6-flash'
7098
+ | 'gemini-3.7-flash'
7099
+ | 'gemini-3.8-flash';
7172
7100
 
7173
7101
  /**
7174
7102
  * Type of model choice
@@ -7657,7 +7585,9 @@ export namespace ConversationFlowResponse {
7657
7585
  | 'gemini-3.1-flash-lite'
7658
7586
  | 'gemini-3.5-flash'
7659
7587
  | 'gemini-3.5-flash-lite'
7660
- | 'gemini-3.6-flash';
7588
+ | 'gemini-3.6-flash'
7589
+ | 'gemini-3.7-flash'
7590
+ | 'gemini-3.8-flash';
7661
7591
 
7662
7592
  /**
7663
7593
  * Type of model choice
@@ -8343,7 +8273,9 @@ export namespace ConversationFlowResponse {
8343
8273
  | 'gemini-3.1-flash-lite'
8344
8274
  | 'gemini-3.5-flash'
8345
8275
  | 'gemini-3.5-flash-lite'
8346
- | 'gemini-3.6-flash';
8276
+ | 'gemini-3.6-flash'
8277
+ | 'gemini-3.7-flash'
8278
+ | 'gemini-3.8-flash';
8347
8279
 
8348
8280
  /**
8349
8281
  * Type of model choice
@@ -8620,7 +8552,9 @@ export namespace ConversationFlowResponse {
8620
8552
  | 'gemini-3.1-flash-lite'
8621
8553
  | 'gemini-3.5-flash'
8622
8554
  | 'gemini-3.5-flash-lite'
8623
- | 'gemini-3.6-flash';
8555
+ | 'gemini-3.6-flash'
8556
+ | 'gemini-3.7-flash'
8557
+ | 'gemini-3.8-flash';
8624
8558
 
8625
8559
  /**
8626
8560
  * Type of model choice
@@ -8711,7 +8645,7 @@ export namespace ConversationFlowResponse {
8711
8645
  }
8712
8646
  }
8713
8647
 
8714
- export interface CustomTool {
8648
+ export interface Tool {
8715
8649
  /**
8716
8650
  * Name of the tool. Must be unique within all tools available to LLM at any given
8717
8651
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -8800,7 +8734,7 @@ export namespace ConversationFlowResponse {
8800
8734
  * documentation about the format. Omitting parameters defines a function with an
8801
8735
  * empty parameter list.
8802
8736
  */
8803
- parameters?: CustomTool.Parameters;
8737
+ parameters?: Tool.Parameters;
8804
8738
 
8805
8739
  /**
8806
8740
  * Query parameters to append to the request URL.
@@ -8843,7 +8777,7 @@ export namespace ConversationFlowResponse {
8843
8777
  tool_id?: string;
8844
8778
  }
8845
8779
 
8846
- export namespace CustomTool {
8780
+ export namespace Tool {
8847
8781
  /**
8848
8782
  * The parameters the functions accepts, described as a JSON Schema object. See
8849
8783
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -8870,102 +8804,6 @@ export namespace ConversationFlowResponse {
8870
8804
  required?: Array<string>;
8871
8805
  }
8872
8806
  }
8873
-
8874
- /**
8875
- * @deprecated
8876
- */
8877
- export interface CheckAvailabilityCalTool {
8878
- /**
8879
- * Cal.com Api key that have access to the cal.com event you want to check
8880
- * availability for.
8881
- */
8882
- cal_api_key: string;
8883
-
8884
- /**
8885
- * Cal.com event type id number for the cal.com event you want to check
8886
- * availability for. Can be a number or a dynamic variable in the format
8887
- * `{{variable_name}}` that will be resolved at runtime.
8888
- */
8889
- event_type_id: number | string;
8890
-
8891
- /**
8892
- * Name of the tool. Must be unique within all tools available to LLM at any given
8893
- * time (general tools + state tools + state transitions). Must be consisted of
8894
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
8895
- * (no space allowed).
8896
- */
8897
- name: string;
8898
-
8899
- type: 'check_availability_cal';
8900
-
8901
- /**
8902
- * Describes what the tool does, sometimes can also include information about when
8903
- * to call the tool.
8904
- */
8905
- description?: string;
8906
-
8907
- /**
8908
- * Timezone to be used when checking availability, must be in
8909
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
8910
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
8911
- * resolved at runtime. If not specified, will check if user specified timezone in
8912
- * call, and if not, will use the timezone of the Retell servers.
8913
- */
8914
- timezone?: string;
8915
-
8916
- /**
8917
- * Unique identifier for the tool
8918
- */
8919
- tool_id?: string;
8920
- }
8921
-
8922
- /**
8923
- * @deprecated
8924
- */
8925
- export interface BookAppointmentCalTool {
8926
- /**
8927
- * Cal.com Api key that have access to the cal.com event you want to book
8928
- * appointment.
8929
- */
8930
- cal_api_key: string;
8931
-
8932
- /**
8933
- * Cal.com event type id number for the cal.com event you want to book appointment.
8934
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
8935
- * will be resolved at runtime.
8936
- */
8937
- event_type_id: number | string;
8938
-
8939
- /**
8940
- * Name of the tool. Must be unique within all tools available to LLM at any given
8941
- * time (general tools + state tools + state transitions). Must be consisted of
8942
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
8943
- * (no space allowed).
8944
- */
8945
- name: string;
8946
-
8947
- type: 'book_appointment_cal';
8948
-
8949
- /**
8950
- * Describes what the tool does, sometimes can also include information about when
8951
- * to call the tool.
8952
- */
8953
- description?: string;
8954
-
8955
- /**
8956
- * Timezone to be used when booking appointment, must be in
8957
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
8958
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
8959
- * resolved at runtime. If not specified, will check if user specified timezone in
8960
- * call, and if not, will use the timezone of the Retell servers.
8961
- */
8962
- timezone?: string;
8963
-
8964
- /**
8965
- * Unique identifier for the tool
8966
- */
8967
- tool_id?: string;
8968
- }
8969
8807
  }
8970
8808
 
8971
8809
  /**
@@ -9038,7 +8876,9 @@ export namespace ConversationFlowResponse {
9038
8876
  | 'gemini-3.1-flash-lite'
9039
8877
  | 'gemini-3.5-flash'
9040
8878
  | 'gemini-3.5-flash-lite'
9041
- | 'gemini-3.6-flash';
8879
+ | 'gemini-3.6-flash'
8880
+ | 'gemini-3.7-flash'
8881
+ | 'gemini-3.8-flash';
9042
8882
 
9043
8883
  /**
9044
8884
  * Type of model choice
@@ -9695,7 +9535,9 @@ export namespace ConversationFlowResponse {
9695
9535
  | 'gemini-3.1-flash-lite'
9696
9536
  | 'gemini-3.5-flash'
9697
9537
  | 'gemini-3.5-flash-lite'
9698
- | 'gemini-3.6-flash';
9538
+ | 'gemini-3.6-flash'
9539
+ | 'gemini-3.7-flash'
9540
+ | 'gemini-3.8-flash';
9699
9541
 
9700
9542
  /**
9701
9543
  * Type of model choice
@@ -9882,8 +9724,6 @@ export namespace ConversationFlowResponse {
9882
9724
  tools?: Array<
9883
9725
  | SubagentNode.EndCallTool
9884
9726
  | SubagentNode.TransferCallTool
9885
- | SubagentNode.CheckAvailabilityCalTool
9886
- | SubagentNode.BookAppointmentCalTool
9887
9727
  | SubagentNode.AgentSwapTool
9888
9728
  | SubagentNode.PressDigitTool
9889
9729
  | SubagentNode.SendSMSTool
@@ -10444,7 +10284,9 @@ export namespace ConversationFlowResponse {
10444
10284
  | 'gemini-3.1-flash-lite'
10445
10285
  | 'gemini-3.5-flash'
10446
10286
  | 'gemini-3.5-flash-lite'
10447
- | 'gemini-3.6-flash';
10287
+ | 'gemini-3.6-flash'
10288
+ | 'gemini-3.7-flash'
10289
+ | 'gemini-3.8-flash';
10448
10290
 
10449
10291
  /**
10450
10292
  * Type of model choice
@@ -10930,92 +10772,6 @@ export namespace ConversationFlowResponse {
10930
10772
  }
10931
10773
  }
10932
10774
 
10933
- /**
10934
- * @deprecated
10935
- */
10936
- export interface CheckAvailabilityCalTool {
10937
- /**
10938
- * Cal.com Api key that have access to the cal.com event you want to check
10939
- * availability for.
10940
- */
10941
- cal_api_key: string;
10942
-
10943
- /**
10944
- * Cal.com event type id number for the cal.com event you want to check
10945
- * availability for. Can be a number or a dynamic variable in the format
10946
- * `{{variable_name}}` that will be resolved at runtime.
10947
- */
10948
- event_type_id: number | string;
10949
-
10950
- /**
10951
- * Name of the tool. Must be unique within all tools available to LLM at any given
10952
- * time (general tools + state tools + state transitions). Must be consisted of
10953
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
10954
- * (no space allowed).
10955
- */
10956
- name: string;
10957
-
10958
- type: 'check_availability_cal';
10959
-
10960
- /**
10961
- * Describes what the tool does, sometimes can also include information about when
10962
- * to call the tool.
10963
- */
10964
- description?: string;
10965
-
10966
- /**
10967
- * Timezone to be used when checking availability, must be in
10968
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
10969
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
10970
- * resolved at runtime. If not specified, will check if user specified timezone in
10971
- * call, and if not, will use the timezone of the Retell servers.
10972
- */
10973
- timezone?: string;
10974
- }
10975
-
10976
- /**
10977
- * @deprecated
10978
- */
10979
- export interface BookAppointmentCalTool {
10980
- /**
10981
- * Cal.com Api key that have access to the cal.com event you want to book
10982
- * appointment.
10983
- */
10984
- cal_api_key: string;
10985
-
10986
- /**
10987
- * Cal.com event type id number for the cal.com event you want to book appointment.
10988
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
10989
- * will be resolved at runtime.
10990
- */
10991
- event_type_id: number | string;
10992
-
10993
- /**
10994
- * Name of the tool. Must be unique within all tools available to LLM at any given
10995
- * time (general tools + state tools + state transitions). Must be consisted of
10996
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
10997
- * (no space allowed).
10998
- */
10999
- name: string;
11000
-
11001
- type: 'book_appointment_cal';
11002
-
11003
- /**
11004
- * Describes what the tool does, sometimes can also include information about when
11005
- * to call the tool.
11006
- */
11007
- description?: string;
11008
-
11009
- /**
11010
- * Timezone to be used when booking appointment, must be in
11011
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
11012
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
11013
- * resolved at runtime. If not specified, will check if user specified timezone in
11014
- * call, and if not, will use the timezone of the Retell servers.
11015
- */
11016
- timezone?: string;
11017
- }
11018
-
11019
10775
  export interface AgentSwapTool {
11020
10776
  /**
11021
10777
  * The id of the agent to swap to.
@@ -11973,7 +11729,9 @@ export namespace ConversationFlowResponse {
11973
11729
  | 'gemini-3.1-flash-lite'
11974
11730
  | 'gemini-3.5-flash'
11975
11731
  | 'gemini-3.5-flash-lite'
11976
- | 'gemini-3.6-flash';
11732
+ | 'gemini-3.6-flash'
11733
+ | 'gemini-3.7-flash'
11734
+ | 'gemini-3.8-flash';
11977
11735
 
11978
11736
  /**
11979
11737
  * Type of model choice
@@ -12453,7 +12211,9 @@ export namespace ConversationFlowResponse {
12453
12211
  | 'gemini-3.1-flash-lite'
12454
12212
  | 'gemini-3.5-flash'
12455
12213
  | 'gemini-3.5-flash-lite'
12456
- | 'gemini-3.6-flash';
12214
+ | 'gemini-3.6-flash'
12215
+ | 'gemini-3.7-flash'
12216
+ | 'gemini-3.8-flash';
12457
12217
 
12458
12218
  /**
12459
12219
  * Type of model choice
@@ -12940,7 +12700,9 @@ export namespace ConversationFlowResponse {
12940
12700
  | 'gemini-3.1-flash-lite'
12941
12701
  | 'gemini-3.5-flash'
12942
12702
  | 'gemini-3.5-flash-lite'
12943
- | 'gemini-3.6-flash';
12703
+ | 'gemini-3.6-flash'
12704
+ | 'gemini-3.7-flash'
12705
+ | 'gemini-3.8-flash';
12944
12706
 
12945
12707
  /**
12946
12708
  * Type of model choice
@@ -13614,7 +13376,9 @@ export namespace ConversationFlowResponse {
13614
13376
  | 'gemini-3.1-flash-lite'
13615
13377
  | 'gemini-3.5-flash'
13616
13378
  | 'gemini-3.5-flash-lite'
13617
- | 'gemini-3.6-flash';
13379
+ | 'gemini-3.6-flash'
13380
+ | 'gemini-3.7-flash'
13381
+ | 'gemini-3.8-flash';
13618
13382
 
13619
13383
  /**
13620
13384
  * Type of model choice
@@ -14062,7 +13826,9 @@ export namespace ConversationFlowResponse {
14062
13826
  | 'gemini-3.1-flash-lite'
14063
13827
  | 'gemini-3.5-flash'
14064
13828
  | 'gemini-3.5-flash-lite'
14065
- | 'gemini-3.6-flash';
13829
+ | 'gemini-3.6-flash'
13830
+ | 'gemini-3.7-flash'
13831
+ | 'gemini-3.8-flash';
14066
13832
 
14067
13833
  /**
14068
13834
  * Type of model choice
@@ -14491,7 +14257,9 @@ export namespace ConversationFlowResponse {
14491
14257
  | 'gemini-3.1-flash-lite'
14492
14258
  | 'gemini-3.5-flash'
14493
14259
  | 'gemini-3.5-flash-lite'
14494
- | 'gemini-3.6-flash';
14260
+ | 'gemini-3.6-flash'
14261
+ | 'gemini-3.7-flash'
14262
+ | 'gemini-3.8-flash';
14495
14263
 
14496
14264
  /**
14497
14265
  * Type of model choice
@@ -14933,7 +14701,9 @@ export namespace ConversationFlowResponse {
14933
14701
  | 'gemini-3.1-flash-lite'
14934
14702
  | 'gemini-3.5-flash'
14935
14703
  | 'gemini-3.5-flash-lite'
14936
- | 'gemini-3.6-flash';
14704
+ | 'gemini-3.6-flash'
14705
+ | 'gemini-3.7-flash'
14706
+ | 'gemini-3.8-flash';
14937
14707
 
14938
14708
  /**
14939
14709
  * Type of model choice
@@ -15504,7 +15274,9 @@ export namespace ConversationFlowResponse {
15504
15274
  | 'gemini-3.1-flash-lite'
15505
15275
  | 'gemini-3.5-flash'
15506
15276
  | 'gemini-3.5-flash-lite'
15507
- | 'gemini-3.6-flash';
15277
+ | 'gemini-3.6-flash'
15278
+ | 'gemini-3.7-flash'
15279
+ | 'gemini-3.8-flash';
15508
15280
 
15509
15281
  /**
15510
15282
  * Type of model choice
@@ -15895,7 +15667,9 @@ export namespace ConversationFlowResponse {
15895
15667
  | 'gemini-3.1-flash-lite'
15896
15668
  | 'gemini-3.5-flash'
15897
15669
  | 'gemini-3.5-flash-lite'
15898
- | 'gemini-3.6-flash';
15670
+ | 'gemini-3.6-flash'
15671
+ | 'gemini-3.7-flash'
15672
+ | 'gemini-3.8-flash';
15899
15673
 
15900
15674
  /**
15901
15675
  * Type of model choice
@@ -16384,7 +16158,9 @@ export namespace ConversationFlowResponse {
16384
16158
  | 'gemini-3.1-flash-lite'
16385
16159
  | 'gemini-3.5-flash'
16386
16160
  | 'gemini-3.5-flash-lite'
16387
- | 'gemini-3.6-flash';
16161
+ | 'gemini-3.6-flash'
16162
+ | 'gemini-3.7-flash'
16163
+ | 'gemini-3.8-flash';
16388
16164
 
16389
16165
  /**
16390
16166
  * Type of model choice
@@ -17070,7 +16846,9 @@ export namespace ConversationFlowResponse {
17070
16846
  | 'gemini-3.1-flash-lite'
17071
16847
  | 'gemini-3.5-flash'
17072
16848
  | 'gemini-3.5-flash-lite'
17073
- | 'gemini-3.6-flash';
16849
+ | 'gemini-3.6-flash'
16850
+ | 'gemini-3.7-flash'
16851
+ | 'gemini-3.8-flash';
17074
16852
 
17075
16853
  /**
17076
16854
  * Type of model choice
@@ -17347,7 +17125,9 @@ export namespace ConversationFlowResponse {
17347
17125
  | 'gemini-3.1-flash-lite'
17348
17126
  | 'gemini-3.5-flash'
17349
17127
  | 'gemini-3.5-flash-lite'
17350
- | 'gemini-3.6-flash';
17128
+ | 'gemini-3.6-flash'
17129
+ | 'gemini-3.7-flash'
17130
+ | 'gemini-3.8-flash';
17351
17131
 
17352
17132
  /**
17353
17133
  * Type of model choice
@@ -17404,7 +17184,7 @@ export namespace ConversationFlowResponse {
17404
17184
  }
17405
17185
  }
17406
17186
 
17407
- export interface CustomTool {
17187
+ export interface Tool {
17408
17188
  /**
17409
17189
  * Name of the tool. Must be unique within all tools available to LLM at any given
17410
17190
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -17493,7 +17273,7 @@ export namespace ConversationFlowResponse {
17493
17273
  * documentation about the format. Omitting parameters defines a function with an
17494
17274
  * empty parameter list.
17495
17275
  */
17496
- parameters?: CustomTool.Parameters;
17276
+ parameters?: Tool.Parameters;
17497
17277
 
17498
17278
  /**
17499
17279
  * Query parameters to append to the request URL.
@@ -17536,7 +17316,7 @@ export namespace ConversationFlowResponse {
17536
17316
  tool_id?: string;
17537
17317
  }
17538
17318
 
17539
- export namespace CustomTool {
17319
+ export namespace Tool {
17540
17320
  /**
17541
17321
  * The parameters the functions accepts, described as a JSON Schema object. See
17542
17322
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -17563,102 +17343,6 @@ export namespace ConversationFlowResponse {
17563
17343
  required?: Array<string>;
17564
17344
  }
17565
17345
  }
17566
-
17567
- /**
17568
- * @deprecated
17569
- */
17570
- export interface CheckAvailabilityCalTool {
17571
- /**
17572
- * Cal.com Api key that have access to the cal.com event you want to check
17573
- * availability for.
17574
- */
17575
- cal_api_key: string;
17576
-
17577
- /**
17578
- * Cal.com event type id number for the cal.com event you want to check
17579
- * availability for. Can be a number or a dynamic variable in the format
17580
- * `{{variable_name}}` that will be resolved at runtime.
17581
- */
17582
- event_type_id: number | string;
17583
-
17584
- /**
17585
- * Name of the tool. Must be unique within all tools available to LLM at any given
17586
- * time (general tools + state tools + state transitions). Must be consisted of
17587
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
17588
- * (no space allowed).
17589
- */
17590
- name: string;
17591
-
17592
- type: 'check_availability_cal';
17593
-
17594
- /**
17595
- * Describes what the tool does, sometimes can also include information about when
17596
- * to call the tool.
17597
- */
17598
- description?: string;
17599
-
17600
- /**
17601
- * Timezone to be used when checking availability, must be in
17602
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
17603
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
17604
- * resolved at runtime. If not specified, will check if user specified timezone in
17605
- * call, and if not, will use the timezone of the Retell servers.
17606
- */
17607
- timezone?: string;
17608
-
17609
- /**
17610
- * Unique identifier for the tool
17611
- */
17612
- tool_id?: string;
17613
- }
17614
-
17615
- /**
17616
- * @deprecated
17617
- */
17618
- export interface BookAppointmentCalTool {
17619
- /**
17620
- * Cal.com Api key that have access to the cal.com event you want to book
17621
- * appointment.
17622
- */
17623
- cal_api_key: string;
17624
-
17625
- /**
17626
- * Cal.com event type id number for the cal.com event you want to book appointment.
17627
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
17628
- * will be resolved at runtime.
17629
- */
17630
- event_type_id: number | string;
17631
-
17632
- /**
17633
- * Name of the tool. Must be unique within all tools available to LLM at any given
17634
- * time (general tools + state tools + state transitions). Must be consisted of
17635
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
17636
- * (no space allowed).
17637
- */
17638
- name: string;
17639
-
17640
- type: 'book_appointment_cal';
17641
-
17642
- /**
17643
- * Describes what the tool does, sometimes can also include information about when
17644
- * to call the tool.
17645
- */
17646
- description?: string;
17647
-
17648
- /**
17649
- * Timezone to be used when booking appointment, must be in
17650
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
17651
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
17652
- * resolved at runtime. If not specified, will check if user specified timezone in
17653
- * call, and if not, will use the timezone of the Retell servers.
17654
- */
17655
- timezone?: string;
17656
-
17657
- /**
17658
- * Unique identifier for the tool
17659
- */
17660
- tool_id?: string;
17661
- }
17662
17346
  }
17663
17347
 
17664
17348
  export interface ConversationFlowListResponse {
@@ -17788,11 +17472,7 @@ export interface ConversationFlowCreateParams {
17788
17472
  /**
17789
17473
  * Tools available in the conversation flow.
17790
17474
  */
17791
- tools?: Array<
17792
- | ConversationFlowCreateParams.CustomTool
17793
- | ConversationFlowCreateParams.CheckAvailabilityCalTool
17794
- | ConversationFlowCreateParams.BookAppointmentCalTool
17795
- > | null;
17475
+ tools?: Array<ConversationFlowCreateParams.Tool> | null;
17796
17476
  }
17797
17477
 
17798
17478
  export namespace ConversationFlowCreateParams {
@@ -17826,7 +17506,9 @@ export namespace ConversationFlowCreateParams {
17826
17506
  | 'gemini-3.1-flash-lite'
17827
17507
  | 'gemini-3.5-flash'
17828
17508
  | 'gemini-3.5-flash-lite'
17829
- | 'gemini-3.6-flash';
17509
+ | 'gemini-3.6-flash'
17510
+ | 'gemini-3.7-flash'
17511
+ | 'gemini-3.8-flash';
17830
17512
 
17831
17513
  /**
17832
17514
  * Type of model choice
@@ -18483,7 +18165,9 @@ export namespace ConversationFlowCreateParams {
18483
18165
  | 'gemini-3.1-flash-lite'
18484
18166
  | 'gemini-3.5-flash'
18485
18167
  | 'gemini-3.5-flash-lite'
18486
- | 'gemini-3.6-flash';
18168
+ | 'gemini-3.6-flash'
18169
+ | 'gemini-3.7-flash'
18170
+ | 'gemini-3.8-flash';
18487
18171
 
18488
18172
  /**
18489
18173
  * Type of model choice
@@ -18670,8 +18354,6 @@ export namespace ConversationFlowCreateParams {
18670
18354
  tools?: Array<
18671
18355
  | SubagentNode.EndCallTool
18672
18356
  | SubagentNode.TransferCallTool
18673
- | SubagentNode.CheckAvailabilityCalTool
18674
- | SubagentNode.BookAppointmentCalTool
18675
18357
  | SubagentNode.AgentSwapTool
18676
18358
  | SubagentNode.PressDigitTool
18677
18359
  | SubagentNode.SendSMSTool
@@ -19232,7 +18914,9 @@ export namespace ConversationFlowCreateParams {
19232
18914
  | 'gemini-3.1-flash-lite'
19233
18915
  | 'gemini-3.5-flash'
19234
18916
  | 'gemini-3.5-flash-lite'
19235
- | 'gemini-3.6-flash';
18917
+ | 'gemini-3.6-flash'
18918
+ | 'gemini-3.7-flash'
18919
+ | 'gemini-3.8-flash';
19236
18920
 
19237
18921
  /**
19238
18922
  * Type of model choice
@@ -19718,92 +19402,6 @@ export namespace ConversationFlowCreateParams {
19718
19402
  }
19719
19403
  }
19720
19404
 
19721
- /**
19722
- * @deprecated
19723
- */
19724
- export interface CheckAvailabilityCalTool {
19725
- /**
19726
- * Cal.com Api key that have access to the cal.com event you want to check
19727
- * availability for.
19728
- */
19729
- cal_api_key: string;
19730
-
19731
- /**
19732
- * Cal.com event type id number for the cal.com event you want to check
19733
- * availability for. Can be a number or a dynamic variable in the format
19734
- * `{{variable_name}}` that will be resolved at runtime.
19735
- */
19736
- event_type_id: number | string;
19737
-
19738
- /**
19739
- * Name of the tool. Must be unique within all tools available to LLM at any given
19740
- * time (general tools + state tools + state transitions). Must be consisted of
19741
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
19742
- * (no space allowed).
19743
- */
19744
- name: string;
19745
-
19746
- type: 'check_availability_cal';
19747
-
19748
- /**
19749
- * Describes what the tool does, sometimes can also include information about when
19750
- * to call the tool.
19751
- */
19752
- description?: string;
19753
-
19754
- /**
19755
- * Timezone to be used when checking availability, must be in
19756
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
19757
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
19758
- * resolved at runtime. If not specified, will check if user specified timezone in
19759
- * call, and if not, will use the timezone of the Retell servers.
19760
- */
19761
- timezone?: string;
19762
- }
19763
-
19764
- /**
19765
- * @deprecated
19766
- */
19767
- export interface BookAppointmentCalTool {
19768
- /**
19769
- * Cal.com Api key that have access to the cal.com event you want to book
19770
- * appointment.
19771
- */
19772
- cal_api_key: string;
19773
-
19774
- /**
19775
- * Cal.com event type id number for the cal.com event you want to book appointment.
19776
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
19777
- * will be resolved at runtime.
19778
- */
19779
- event_type_id: number | string;
19780
-
19781
- /**
19782
- * Name of the tool. Must be unique within all tools available to LLM at any given
19783
- * time (general tools + state tools + state transitions). Must be consisted of
19784
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
19785
- * (no space allowed).
19786
- */
19787
- name: string;
19788
-
19789
- type: 'book_appointment_cal';
19790
-
19791
- /**
19792
- * Describes what the tool does, sometimes can also include information about when
19793
- * to call the tool.
19794
- */
19795
- description?: string;
19796
-
19797
- /**
19798
- * Timezone to be used when booking appointment, must be in
19799
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
19800
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
19801
- * resolved at runtime. If not specified, will check if user specified timezone in
19802
- * call, and if not, will use the timezone of the Retell servers.
19803
- */
19804
- timezone?: string;
19805
- }
19806
-
19807
19405
  export interface AgentSwapTool {
19808
19406
  /**
19809
19407
  * The id of the agent to swap to.
@@ -20761,7 +20359,9 @@ export namespace ConversationFlowCreateParams {
20761
20359
  | 'gemini-3.1-flash-lite'
20762
20360
  | 'gemini-3.5-flash'
20763
20361
  | 'gemini-3.5-flash-lite'
20764
- | 'gemini-3.6-flash';
20362
+ | 'gemini-3.6-flash'
20363
+ | 'gemini-3.7-flash'
20364
+ | 'gemini-3.8-flash';
20765
20365
 
20766
20366
  /**
20767
20367
  * Type of model choice
@@ -21241,7 +20841,9 @@ export namespace ConversationFlowCreateParams {
21241
20841
  | 'gemini-3.1-flash-lite'
21242
20842
  | 'gemini-3.5-flash'
21243
20843
  | 'gemini-3.5-flash-lite'
21244
- | 'gemini-3.6-flash';
20844
+ | 'gemini-3.6-flash'
20845
+ | 'gemini-3.7-flash'
20846
+ | 'gemini-3.8-flash';
21245
20847
 
21246
20848
  /**
21247
20849
  * Type of model choice
@@ -21728,7 +21330,9 @@ export namespace ConversationFlowCreateParams {
21728
21330
  | 'gemini-3.1-flash-lite'
21729
21331
  | 'gemini-3.5-flash'
21730
21332
  | 'gemini-3.5-flash-lite'
21731
- | 'gemini-3.6-flash';
21333
+ | 'gemini-3.6-flash'
21334
+ | 'gemini-3.7-flash'
21335
+ | 'gemini-3.8-flash';
21732
21336
 
21733
21337
  /**
21734
21338
  * Type of model choice
@@ -22402,7 +22006,9 @@ export namespace ConversationFlowCreateParams {
22402
22006
  | 'gemini-3.1-flash-lite'
22403
22007
  | 'gemini-3.5-flash'
22404
22008
  | 'gemini-3.5-flash-lite'
22405
- | 'gemini-3.6-flash';
22009
+ | 'gemini-3.6-flash'
22010
+ | 'gemini-3.7-flash'
22011
+ | 'gemini-3.8-flash';
22406
22012
 
22407
22013
  /**
22408
22014
  * Type of model choice
@@ -22850,7 +22456,9 @@ export namespace ConversationFlowCreateParams {
22850
22456
  | 'gemini-3.1-flash-lite'
22851
22457
  | 'gemini-3.5-flash'
22852
22458
  | 'gemini-3.5-flash-lite'
22853
- | 'gemini-3.6-flash';
22459
+ | 'gemini-3.6-flash'
22460
+ | 'gemini-3.7-flash'
22461
+ | 'gemini-3.8-flash';
22854
22462
 
22855
22463
  /**
22856
22464
  * Type of model choice
@@ -23279,7 +22887,9 @@ export namespace ConversationFlowCreateParams {
23279
22887
  | 'gemini-3.1-flash-lite'
23280
22888
  | 'gemini-3.5-flash'
23281
22889
  | 'gemini-3.5-flash-lite'
23282
- | 'gemini-3.6-flash';
22890
+ | 'gemini-3.6-flash'
22891
+ | 'gemini-3.7-flash'
22892
+ | 'gemini-3.8-flash';
23283
22893
 
23284
22894
  /**
23285
22895
  * Type of model choice
@@ -23721,7 +23331,9 @@ export namespace ConversationFlowCreateParams {
23721
23331
  | 'gemini-3.1-flash-lite'
23722
23332
  | 'gemini-3.5-flash'
23723
23333
  | 'gemini-3.5-flash-lite'
23724
- | 'gemini-3.6-flash';
23334
+ | 'gemini-3.6-flash'
23335
+ | 'gemini-3.7-flash'
23336
+ | 'gemini-3.8-flash';
23725
23337
 
23726
23338
  /**
23727
23339
  * Type of model choice
@@ -24292,7 +23904,9 @@ export namespace ConversationFlowCreateParams {
24292
23904
  | 'gemini-3.1-flash-lite'
24293
23905
  | 'gemini-3.5-flash'
24294
23906
  | 'gemini-3.5-flash-lite'
24295
- | 'gemini-3.6-flash';
23907
+ | 'gemini-3.6-flash'
23908
+ | 'gemini-3.7-flash'
23909
+ | 'gemini-3.8-flash';
24296
23910
 
24297
23911
  /**
24298
23912
  * Type of model choice
@@ -24683,7 +24297,9 @@ export namespace ConversationFlowCreateParams {
24683
24297
  | 'gemini-3.1-flash-lite'
24684
24298
  | 'gemini-3.5-flash'
24685
24299
  | 'gemini-3.5-flash-lite'
24686
- | 'gemini-3.6-flash';
24300
+ | 'gemini-3.6-flash'
24301
+ | 'gemini-3.7-flash'
24302
+ | 'gemini-3.8-flash';
24687
24303
 
24688
24304
  /**
24689
24305
  * Type of model choice
@@ -25172,7 +24788,9 @@ export namespace ConversationFlowCreateParams {
25172
24788
  | 'gemini-3.1-flash-lite'
25173
24789
  | 'gemini-3.5-flash'
25174
24790
  | 'gemini-3.5-flash-lite'
25175
- | 'gemini-3.6-flash';
24791
+ | 'gemini-3.6-flash'
24792
+ | 'gemini-3.7-flash'
24793
+ | 'gemini-3.8-flash';
25176
24794
 
25177
24795
  /**
25178
24796
  * Type of model choice
@@ -25858,7 +25476,9 @@ export namespace ConversationFlowCreateParams {
25858
25476
  | 'gemini-3.1-flash-lite'
25859
25477
  | 'gemini-3.5-flash'
25860
25478
  | 'gemini-3.5-flash-lite'
25861
- | 'gemini-3.6-flash';
25479
+ | 'gemini-3.6-flash'
25480
+ | 'gemini-3.7-flash'
25481
+ | 'gemini-3.8-flash';
25862
25482
 
25863
25483
  /**
25864
25484
  * Type of model choice
@@ -26135,7 +25755,9 @@ export namespace ConversationFlowCreateParams {
26135
25755
  | 'gemini-3.1-flash-lite'
26136
25756
  | 'gemini-3.5-flash'
26137
25757
  | 'gemini-3.5-flash-lite'
26138
- | 'gemini-3.6-flash';
25758
+ | 'gemini-3.6-flash'
25759
+ | 'gemini-3.7-flash'
25760
+ | 'gemini-3.8-flash';
26139
25761
 
26140
25762
  /**
26141
25763
  * Type of model choice
@@ -26213,9 +25835,7 @@ export namespace ConversationFlowCreateParams {
26213
25835
  /**
26214
25836
  * Tools available within the component
26215
25837
  */
26216
- tools?: Array<
26217
- Component.CustomTool | Component.CheckAvailabilityCalTool | Component.BookAppointmentCalTool
26218
- > | null;
25838
+ tools?: Array<Component.Tool> | null;
26219
25839
  }
26220
25840
 
26221
25841
  export namespace Component {
@@ -26863,7 +26483,9 @@ export namespace ConversationFlowCreateParams {
26863
26483
  | 'gemini-3.1-flash-lite'
26864
26484
  | 'gemini-3.5-flash'
26865
26485
  | 'gemini-3.5-flash-lite'
26866
- | 'gemini-3.6-flash';
26486
+ | 'gemini-3.6-flash'
26487
+ | 'gemini-3.7-flash'
26488
+ | 'gemini-3.8-flash';
26867
26489
 
26868
26490
  /**
26869
26491
  * Type of model choice
@@ -27050,8 +26672,6 @@ export namespace ConversationFlowCreateParams {
27050
26672
  tools?: Array<
27051
26673
  | SubagentNode.EndCallTool
27052
26674
  | SubagentNode.TransferCallTool
27053
- | SubagentNode.CheckAvailabilityCalTool
27054
- | SubagentNode.BookAppointmentCalTool
27055
26675
  | SubagentNode.AgentSwapTool
27056
26676
  | SubagentNode.PressDigitTool
27057
26677
  | SubagentNode.SendSMSTool
@@ -27612,7 +27232,9 @@ export namespace ConversationFlowCreateParams {
27612
27232
  | 'gemini-3.1-flash-lite'
27613
27233
  | 'gemini-3.5-flash'
27614
27234
  | 'gemini-3.5-flash-lite'
27615
- | 'gemini-3.6-flash';
27235
+ | 'gemini-3.6-flash'
27236
+ | 'gemini-3.7-flash'
27237
+ | 'gemini-3.8-flash';
27616
27238
 
27617
27239
  /**
27618
27240
  * Type of model choice
@@ -28098,92 +27720,6 @@ export namespace ConversationFlowCreateParams {
28098
27720
  }
28099
27721
  }
28100
27722
 
28101
- /**
28102
- * @deprecated
28103
- */
28104
- export interface CheckAvailabilityCalTool {
28105
- /**
28106
- * Cal.com Api key that have access to the cal.com event you want to check
28107
- * availability for.
28108
- */
28109
- cal_api_key: string;
28110
-
28111
- /**
28112
- * Cal.com event type id number for the cal.com event you want to check
28113
- * availability for. Can be a number or a dynamic variable in the format
28114
- * `{{variable_name}}` that will be resolved at runtime.
28115
- */
28116
- event_type_id: number | string;
28117
-
28118
- /**
28119
- * Name of the tool. Must be unique within all tools available to LLM at any given
28120
- * time (general tools + state tools + state transitions). Must be consisted of
28121
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
28122
- * (no space allowed).
28123
- */
28124
- name: string;
28125
-
28126
- type: 'check_availability_cal';
28127
-
28128
- /**
28129
- * Describes what the tool does, sometimes can also include information about when
28130
- * to call the tool.
28131
- */
28132
- description?: string;
28133
-
28134
- /**
28135
- * Timezone to be used when checking availability, must be in
28136
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
28137
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
28138
- * resolved at runtime. If not specified, will check if user specified timezone in
28139
- * call, and if not, will use the timezone of the Retell servers.
28140
- */
28141
- timezone?: string;
28142
- }
28143
-
28144
- /**
28145
- * @deprecated
28146
- */
28147
- export interface BookAppointmentCalTool {
28148
- /**
28149
- * Cal.com Api key that have access to the cal.com event you want to book
28150
- * appointment.
28151
- */
28152
- cal_api_key: string;
28153
-
28154
- /**
28155
- * Cal.com event type id number for the cal.com event you want to book appointment.
28156
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
28157
- * will be resolved at runtime.
28158
- */
28159
- event_type_id: number | string;
28160
-
28161
- /**
28162
- * Name of the tool. Must be unique within all tools available to LLM at any given
28163
- * time (general tools + state tools + state transitions). Must be consisted of
28164
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
28165
- * (no space allowed).
28166
- */
28167
- name: string;
28168
-
28169
- type: 'book_appointment_cal';
28170
-
28171
- /**
28172
- * Describes what the tool does, sometimes can also include information about when
28173
- * to call the tool.
28174
- */
28175
- description?: string;
28176
-
28177
- /**
28178
- * Timezone to be used when booking appointment, must be in
28179
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
28180
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
28181
- * resolved at runtime. If not specified, will check if user specified timezone in
28182
- * call, and if not, will use the timezone of the Retell servers.
28183
- */
28184
- timezone?: string;
28185
- }
28186
-
28187
27723
  export interface AgentSwapTool {
28188
27724
  /**
28189
27725
  * The id of the agent to swap to.
@@ -29141,7 +28677,9 @@ export namespace ConversationFlowCreateParams {
29141
28677
  | 'gemini-3.1-flash-lite'
29142
28678
  | 'gemini-3.5-flash'
29143
28679
  | 'gemini-3.5-flash-lite'
29144
- | 'gemini-3.6-flash';
28680
+ | 'gemini-3.6-flash'
28681
+ | 'gemini-3.7-flash'
28682
+ | 'gemini-3.8-flash';
29145
28683
 
29146
28684
  /**
29147
28685
  * Type of model choice
@@ -29621,7 +29159,9 @@ export namespace ConversationFlowCreateParams {
29621
29159
  | 'gemini-3.1-flash-lite'
29622
29160
  | 'gemini-3.5-flash'
29623
29161
  | 'gemini-3.5-flash-lite'
29624
- | 'gemini-3.6-flash';
29162
+ | 'gemini-3.6-flash'
29163
+ | 'gemini-3.7-flash'
29164
+ | 'gemini-3.8-flash';
29625
29165
 
29626
29166
  /**
29627
29167
  * Type of model choice
@@ -30108,7 +29648,9 @@ export namespace ConversationFlowCreateParams {
30108
29648
  | 'gemini-3.1-flash-lite'
30109
29649
  | 'gemini-3.5-flash'
30110
29650
  | 'gemini-3.5-flash-lite'
30111
- | 'gemini-3.6-flash';
29651
+ | 'gemini-3.6-flash'
29652
+ | 'gemini-3.7-flash'
29653
+ | 'gemini-3.8-flash';
30112
29654
 
30113
29655
  /**
30114
29656
  * Type of model choice
@@ -30782,7 +30324,9 @@ export namespace ConversationFlowCreateParams {
30782
30324
  | 'gemini-3.1-flash-lite'
30783
30325
  | 'gemini-3.5-flash'
30784
30326
  | 'gemini-3.5-flash-lite'
30785
- | 'gemini-3.6-flash';
30327
+ | 'gemini-3.6-flash'
30328
+ | 'gemini-3.7-flash'
30329
+ | 'gemini-3.8-flash';
30786
30330
 
30787
30331
  /**
30788
30332
  * Type of model choice
@@ -31230,7 +30774,9 @@ export namespace ConversationFlowCreateParams {
31230
30774
  | 'gemini-3.1-flash-lite'
31231
30775
  | 'gemini-3.5-flash'
31232
30776
  | 'gemini-3.5-flash-lite'
31233
- | 'gemini-3.6-flash';
30777
+ | 'gemini-3.6-flash'
30778
+ | 'gemini-3.7-flash'
30779
+ | 'gemini-3.8-flash';
31234
30780
 
31235
30781
  /**
31236
30782
  * Type of model choice
@@ -31659,7 +31205,9 @@ export namespace ConversationFlowCreateParams {
31659
31205
  | 'gemini-3.1-flash-lite'
31660
31206
  | 'gemini-3.5-flash'
31661
31207
  | 'gemini-3.5-flash-lite'
31662
- | 'gemini-3.6-flash';
31208
+ | 'gemini-3.6-flash'
31209
+ | 'gemini-3.7-flash'
31210
+ | 'gemini-3.8-flash';
31663
31211
 
31664
31212
  /**
31665
31213
  * Type of model choice
@@ -32101,7 +31649,9 @@ export namespace ConversationFlowCreateParams {
32101
31649
  | 'gemini-3.1-flash-lite'
32102
31650
  | 'gemini-3.5-flash'
32103
31651
  | 'gemini-3.5-flash-lite'
32104
- | 'gemini-3.6-flash';
31652
+ | 'gemini-3.6-flash'
31653
+ | 'gemini-3.7-flash'
31654
+ | 'gemini-3.8-flash';
32105
31655
 
32106
31656
  /**
32107
31657
  * Type of model choice
@@ -32672,7 +32222,9 @@ export namespace ConversationFlowCreateParams {
32672
32222
  | 'gemini-3.1-flash-lite'
32673
32223
  | 'gemini-3.5-flash'
32674
32224
  | 'gemini-3.5-flash-lite'
32675
- | 'gemini-3.6-flash';
32225
+ | 'gemini-3.6-flash'
32226
+ | 'gemini-3.7-flash'
32227
+ | 'gemini-3.8-flash';
32676
32228
 
32677
32229
  /**
32678
32230
  * Type of model choice
@@ -33063,7 +32615,9 @@ export namespace ConversationFlowCreateParams {
33063
32615
  | 'gemini-3.1-flash-lite'
33064
32616
  | 'gemini-3.5-flash'
33065
32617
  | 'gemini-3.5-flash-lite'
33066
- | 'gemini-3.6-flash';
32618
+ | 'gemini-3.6-flash'
32619
+ | 'gemini-3.7-flash'
32620
+ | 'gemini-3.8-flash';
33067
32621
 
33068
32622
  /**
33069
32623
  * Type of model choice
@@ -33552,7 +33106,9 @@ export namespace ConversationFlowCreateParams {
33552
33106
  | 'gemini-3.1-flash-lite'
33553
33107
  | 'gemini-3.5-flash'
33554
33108
  | 'gemini-3.5-flash-lite'
33555
- | 'gemini-3.6-flash';
33109
+ | 'gemini-3.6-flash'
33110
+ | 'gemini-3.7-flash'
33111
+ | 'gemini-3.8-flash';
33556
33112
 
33557
33113
  /**
33558
33114
  * Type of model choice
@@ -34238,7 +33794,9 @@ export namespace ConversationFlowCreateParams {
34238
33794
  | 'gemini-3.1-flash-lite'
34239
33795
  | 'gemini-3.5-flash'
34240
33796
  | 'gemini-3.5-flash-lite'
34241
- | 'gemini-3.6-flash';
33797
+ | 'gemini-3.6-flash'
33798
+ | 'gemini-3.7-flash'
33799
+ | 'gemini-3.8-flash';
34242
33800
 
34243
33801
  /**
34244
33802
  * Type of model choice
@@ -34515,7 +34073,9 @@ export namespace ConversationFlowCreateParams {
34515
34073
  | 'gemini-3.1-flash-lite'
34516
34074
  | 'gemini-3.5-flash'
34517
34075
  | 'gemini-3.5-flash-lite'
34518
- | 'gemini-3.6-flash';
34076
+ | 'gemini-3.6-flash'
34077
+ | 'gemini-3.7-flash'
34078
+ | 'gemini-3.8-flash';
34519
34079
 
34520
34080
  /**
34521
34081
  * Type of model choice
@@ -34606,7 +34166,7 @@ export namespace ConversationFlowCreateParams {
34606
34166
  }
34607
34167
  }
34608
34168
 
34609
- export interface CustomTool {
34169
+ export interface Tool {
34610
34170
  /**
34611
34171
  * Name of the tool. Must be unique within all tools available to LLM at any given
34612
34172
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -34695,7 +34255,7 @@ export namespace ConversationFlowCreateParams {
34695
34255
  * documentation about the format. Omitting parameters defines a function with an
34696
34256
  * empty parameter list.
34697
34257
  */
34698
- parameters?: CustomTool.Parameters;
34258
+ parameters?: Tool.Parameters;
34699
34259
 
34700
34260
  /**
34701
34261
  * Query parameters to append to the request URL.
@@ -34738,7 +34298,7 @@ export namespace ConversationFlowCreateParams {
34738
34298
  tool_id?: string;
34739
34299
  }
34740
34300
 
34741
- export namespace CustomTool {
34301
+ export namespace Tool {
34742
34302
  /**
34743
34303
  * The parameters the functions accepts, described as a JSON Schema object. See
34744
34304
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -34765,102 +34325,6 @@ export namespace ConversationFlowCreateParams {
34765
34325
  required?: Array<string>;
34766
34326
  }
34767
34327
  }
34768
-
34769
- /**
34770
- * @deprecated
34771
- */
34772
- export interface CheckAvailabilityCalTool {
34773
- /**
34774
- * Cal.com Api key that have access to the cal.com event you want to check
34775
- * availability for.
34776
- */
34777
- cal_api_key: string;
34778
-
34779
- /**
34780
- * Cal.com event type id number for the cal.com event you want to check
34781
- * availability for. Can be a number or a dynamic variable in the format
34782
- * `{{variable_name}}` that will be resolved at runtime.
34783
- */
34784
- event_type_id: number | string;
34785
-
34786
- /**
34787
- * Name of the tool. Must be unique within all tools available to LLM at any given
34788
- * time (general tools + state tools + state transitions). Must be consisted of
34789
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
34790
- * (no space allowed).
34791
- */
34792
- name: string;
34793
-
34794
- type: 'check_availability_cal';
34795
-
34796
- /**
34797
- * Describes what the tool does, sometimes can also include information about when
34798
- * to call the tool.
34799
- */
34800
- description?: string;
34801
-
34802
- /**
34803
- * Timezone to be used when checking availability, must be in
34804
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
34805
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
34806
- * resolved at runtime. If not specified, will check if user specified timezone in
34807
- * call, and if not, will use the timezone of the Retell servers.
34808
- */
34809
- timezone?: string;
34810
-
34811
- /**
34812
- * Unique identifier for the tool
34813
- */
34814
- tool_id?: string;
34815
- }
34816
-
34817
- /**
34818
- * @deprecated
34819
- */
34820
- export interface BookAppointmentCalTool {
34821
- /**
34822
- * Cal.com Api key that have access to the cal.com event you want to book
34823
- * appointment.
34824
- */
34825
- cal_api_key: string;
34826
-
34827
- /**
34828
- * Cal.com event type id number for the cal.com event you want to book appointment.
34829
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
34830
- * will be resolved at runtime.
34831
- */
34832
- event_type_id: number | string;
34833
-
34834
- /**
34835
- * Name of the tool. Must be unique within all tools available to LLM at any given
34836
- * time (general tools + state tools + state transitions). Must be consisted of
34837
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
34838
- * (no space allowed).
34839
- */
34840
- name: string;
34841
-
34842
- type: 'book_appointment_cal';
34843
-
34844
- /**
34845
- * Describes what the tool does, sometimes can also include information about when
34846
- * to call the tool.
34847
- */
34848
- description?: string;
34849
-
34850
- /**
34851
- * Timezone to be used when booking appointment, must be in
34852
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
34853
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
34854
- * resolved at runtime. If not specified, will check if user specified timezone in
34855
- * call, and if not, will use the timezone of the Retell servers.
34856
- */
34857
- timezone?: string;
34858
-
34859
- /**
34860
- * Unique identifier for the tool
34861
- */
34862
- tool_id?: string;
34863
- }
34864
34328
  }
34865
34329
 
34866
34330
  /**
@@ -34946,7 +34410,7 @@ export namespace ConversationFlowCreateParams {
34946
34410
  }
34947
34411
  }
34948
34412
 
34949
- export interface CustomTool {
34413
+ export interface Tool {
34950
34414
  /**
34951
34415
  * Name of the tool. Must be unique within all tools available to LLM at any given
34952
34416
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -35035,7 +34499,7 @@ export namespace ConversationFlowCreateParams {
35035
34499
  * documentation about the format. Omitting parameters defines a function with an
35036
34500
  * empty parameter list.
35037
34501
  */
35038
- parameters?: CustomTool.Parameters;
34502
+ parameters?: Tool.Parameters;
35039
34503
 
35040
34504
  /**
35041
34505
  * Query parameters to append to the request URL.
@@ -35078,7 +34542,7 @@ export namespace ConversationFlowCreateParams {
35078
34542
  tool_id?: string;
35079
34543
  }
35080
34544
 
35081
- export namespace CustomTool {
34545
+ export namespace Tool {
35082
34546
  /**
35083
34547
  * The parameters the functions accepts, described as a JSON Schema object. See
35084
34548
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -35105,102 +34569,6 @@ export namespace ConversationFlowCreateParams {
35105
34569
  required?: Array<string>;
35106
34570
  }
35107
34571
  }
35108
-
35109
- /**
35110
- * @deprecated
35111
- */
35112
- export interface CheckAvailabilityCalTool {
35113
- /**
35114
- * Cal.com Api key that have access to the cal.com event you want to check
35115
- * availability for.
35116
- */
35117
- cal_api_key: string;
35118
-
35119
- /**
35120
- * Cal.com event type id number for the cal.com event you want to check
35121
- * availability for. Can be a number or a dynamic variable in the format
35122
- * `{{variable_name}}` that will be resolved at runtime.
35123
- */
35124
- event_type_id: number | string;
35125
-
35126
- /**
35127
- * Name of the tool. Must be unique within all tools available to LLM at any given
35128
- * time (general tools + state tools + state transitions). Must be consisted of
35129
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
35130
- * (no space allowed).
35131
- */
35132
- name: string;
35133
-
35134
- type: 'check_availability_cal';
35135
-
35136
- /**
35137
- * Describes what the tool does, sometimes can also include information about when
35138
- * to call the tool.
35139
- */
35140
- description?: string;
35141
-
35142
- /**
35143
- * Timezone to be used when checking availability, must be in
35144
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
35145
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
35146
- * resolved at runtime. If not specified, will check if user specified timezone in
35147
- * call, and if not, will use the timezone of the Retell servers.
35148
- */
35149
- timezone?: string;
35150
-
35151
- /**
35152
- * Unique identifier for the tool
35153
- */
35154
- tool_id?: string;
35155
- }
35156
-
35157
- /**
35158
- * @deprecated
35159
- */
35160
- export interface BookAppointmentCalTool {
35161
- /**
35162
- * Cal.com Api key that have access to the cal.com event you want to book
35163
- * appointment.
35164
- */
35165
- cal_api_key: string;
35166
-
35167
- /**
35168
- * Cal.com event type id number for the cal.com event you want to book appointment.
35169
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
35170
- * will be resolved at runtime.
35171
- */
35172
- event_type_id: number | string;
35173
-
35174
- /**
35175
- * Name of the tool. Must be unique within all tools available to LLM at any given
35176
- * time (general tools + state tools + state transitions). Must be consisted of
35177
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
35178
- * (no space allowed).
35179
- */
35180
- name: string;
35181
-
35182
- type: 'book_appointment_cal';
35183
-
35184
- /**
35185
- * Describes what the tool does, sometimes can also include information about when
35186
- * to call the tool.
35187
- */
35188
- description?: string;
35189
-
35190
- /**
35191
- * Timezone to be used when booking appointment, must be in
35192
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
35193
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
35194
- * resolved at runtime. If not specified, will check if user specified timezone in
35195
- * call, and if not, will use the timezone of the Retell servers.
35196
- */
35197
- timezone?: string;
35198
-
35199
- /**
35200
- * Unique identifier for the tool
35201
- */
35202
- tool_id?: string;
35203
- }
35204
34572
  }
35205
34573
 
35206
34574
  export interface ConversationFlowRetrieveParams {
@@ -35331,11 +34699,7 @@ export interface ConversationFlowUpdateParams {
35331
34699
  /**
35332
34700
  * Body param: Tools available in the conversation flow.
35333
34701
  */
35334
- tools?: Array<
35335
- | ConversationFlowUpdateParams.CustomTool
35336
- | ConversationFlowUpdateParams.CheckAvailabilityCalTool
35337
- | ConversationFlowUpdateParams.BookAppointmentCalTool
35338
- > | null;
34702
+ tools?: Array<ConversationFlowUpdateParams.Tool> | null;
35339
34703
  }
35340
34704
 
35341
34705
  export namespace ConversationFlowUpdateParams {
@@ -35403,9 +34767,7 @@ export namespace ConversationFlowUpdateParams {
35403
34767
  /**
35404
34768
  * Tools available within the component
35405
34769
  */
35406
- tools?: Array<
35407
- Component.CustomTool | Component.CheckAvailabilityCalTool | Component.BookAppointmentCalTool
35408
- > | null;
34770
+ tools?: Array<Component.Tool> | null;
35409
34771
  }
35410
34772
 
35411
34773
  export namespace Component {
@@ -36053,7 +35415,9 @@ export namespace ConversationFlowUpdateParams {
36053
35415
  | 'gemini-3.1-flash-lite'
36054
35416
  | 'gemini-3.5-flash'
36055
35417
  | 'gemini-3.5-flash-lite'
36056
- | 'gemini-3.6-flash';
35418
+ | 'gemini-3.6-flash'
35419
+ | 'gemini-3.7-flash'
35420
+ | 'gemini-3.8-flash';
36057
35421
 
36058
35422
  /**
36059
35423
  * Type of model choice
@@ -36240,8 +35604,6 @@ export namespace ConversationFlowUpdateParams {
36240
35604
  tools?: Array<
36241
35605
  | SubagentNode.EndCallTool
36242
35606
  | SubagentNode.TransferCallTool
36243
- | SubagentNode.CheckAvailabilityCalTool
36244
- | SubagentNode.BookAppointmentCalTool
36245
35607
  | SubagentNode.AgentSwapTool
36246
35608
  | SubagentNode.PressDigitTool
36247
35609
  | SubagentNode.SendSMSTool
@@ -36802,7 +36164,9 @@ export namespace ConversationFlowUpdateParams {
36802
36164
  | 'gemini-3.1-flash-lite'
36803
36165
  | 'gemini-3.5-flash'
36804
36166
  | 'gemini-3.5-flash-lite'
36805
- | 'gemini-3.6-flash';
36167
+ | 'gemini-3.6-flash'
36168
+ | 'gemini-3.7-flash'
36169
+ | 'gemini-3.8-flash';
36806
36170
 
36807
36171
  /**
36808
36172
  * Type of model choice
@@ -37288,92 +36652,6 @@ export namespace ConversationFlowUpdateParams {
37288
36652
  }
37289
36653
  }
37290
36654
 
37291
- /**
37292
- * @deprecated
37293
- */
37294
- export interface CheckAvailabilityCalTool {
37295
- /**
37296
- * Cal.com Api key that have access to the cal.com event you want to check
37297
- * availability for.
37298
- */
37299
- cal_api_key: string;
37300
-
37301
- /**
37302
- * Cal.com event type id number for the cal.com event you want to check
37303
- * availability for. Can be a number or a dynamic variable in the format
37304
- * `{{variable_name}}` that will be resolved at runtime.
37305
- */
37306
- event_type_id: number | string;
37307
-
37308
- /**
37309
- * Name of the tool. Must be unique within all tools available to LLM at any given
37310
- * time (general tools + state tools + state transitions). Must be consisted of
37311
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
37312
- * (no space allowed).
37313
- */
37314
- name: string;
37315
-
37316
- type: 'check_availability_cal';
37317
-
37318
- /**
37319
- * Describes what the tool does, sometimes can also include information about when
37320
- * to call the tool.
37321
- */
37322
- description?: string;
37323
-
37324
- /**
37325
- * Timezone to be used when checking availability, must be in
37326
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
37327
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
37328
- * resolved at runtime. If not specified, will check if user specified timezone in
37329
- * call, and if not, will use the timezone of the Retell servers.
37330
- */
37331
- timezone?: string;
37332
- }
37333
-
37334
- /**
37335
- * @deprecated
37336
- */
37337
- export interface BookAppointmentCalTool {
37338
- /**
37339
- * Cal.com Api key that have access to the cal.com event you want to book
37340
- * appointment.
37341
- */
37342
- cal_api_key: string;
37343
-
37344
- /**
37345
- * Cal.com event type id number for the cal.com event you want to book appointment.
37346
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
37347
- * will be resolved at runtime.
37348
- */
37349
- event_type_id: number | string;
37350
-
37351
- /**
37352
- * Name of the tool. Must be unique within all tools available to LLM at any given
37353
- * time (general tools + state tools + state transitions). Must be consisted of
37354
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
37355
- * (no space allowed).
37356
- */
37357
- name: string;
37358
-
37359
- type: 'book_appointment_cal';
37360
-
37361
- /**
37362
- * Describes what the tool does, sometimes can also include information about when
37363
- * to call the tool.
37364
- */
37365
- description?: string;
37366
-
37367
- /**
37368
- * Timezone to be used when booking appointment, must be in
37369
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
37370
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
37371
- * resolved at runtime. If not specified, will check if user specified timezone in
37372
- * call, and if not, will use the timezone of the Retell servers.
37373
- */
37374
- timezone?: string;
37375
- }
37376
-
37377
36655
  export interface AgentSwapTool {
37378
36656
  /**
37379
36657
  * The id of the agent to swap to.
@@ -38331,7 +37609,9 @@ export namespace ConversationFlowUpdateParams {
38331
37609
  | 'gemini-3.1-flash-lite'
38332
37610
  | 'gemini-3.5-flash'
38333
37611
  | 'gemini-3.5-flash-lite'
38334
- | 'gemini-3.6-flash';
37612
+ | 'gemini-3.6-flash'
37613
+ | 'gemini-3.7-flash'
37614
+ | 'gemini-3.8-flash';
38335
37615
 
38336
37616
  /**
38337
37617
  * Type of model choice
@@ -38811,7 +38091,9 @@ export namespace ConversationFlowUpdateParams {
38811
38091
  | 'gemini-3.1-flash-lite'
38812
38092
  | 'gemini-3.5-flash'
38813
38093
  | 'gemini-3.5-flash-lite'
38814
- | 'gemini-3.6-flash';
38094
+ | 'gemini-3.6-flash'
38095
+ | 'gemini-3.7-flash'
38096
+ | 'gemini-3.8-flash';
38815
38097
 
38816
38098
  /**
38817
38099
  * Type of model choice
@@ -39298,7 +38580,9 @@ export namespace ConversationFlowUpdateParams {
39298
38580
  | 'gemini-3.1-flash-lite'
39299
38581
  | 'gemini-3.5-flash'
39300
38582
  | 'gemini-3.5-flash-lite'
39301
- | 'gemini-3.6-flash';
38583
+ | 'gemini-3.6-flash'
38584
+ | 'gemini-3.7-flash'
38585
+ | 'gemini-3.8-flash';
39302
38586
 
39303
38587
  /**
39304
38588
  * Type of model choice
@@ -39972,7 +39256,9 @@ export namespace ConversationFlowUpdateParams {
39972
39256
  | 'gemini-3.1-flash-lite'
39973
39257
  | 'gemini-3.5-flash'
39974
39258
  | 'gemini-3.5-flash-lite'
39975
- | 'gemini-3.6-flash';
39259
+ | 'gemini-3.6-flash'
39260
+ | 'gemini-3.7-flash'
39261
+ | 'gemini-3.8-flash';
39976
39262
 
39977
39263
  /**
39978
39264
  * Type of model choice
@@ -40420,7 +39706,9 @@ export namespace ConversationFlowUpdateParams {
40420
39706
  | 'gemini-3.1-flash-lite'
40421
39707
  | 'gemini-3.5-flash'
40422
39708
  | 'gemini-3.5-flash-lite'
40423
- | 'gemini-3.6-flash';
39709
+ | 'gemini-3.6-flash'
39710
+ | 'gemini-3.7-flash'
39711
+ | 'gemini-3.8-flash';
40424
39712
 
40425
39713
  /**
40426
39714
  * Type of model choice
@@ -40849,7 +40137,9 @@ export namespace ConversationFlowUpdateParams {
40849
40137
  | 'gemini-3.1-flash-lite'
40850
40138
  | 'gemini-3.5-flash'
40851
40139
  | 'gemini-3.5-flash-lite'
40852
- | 'gemini-3.6-flash';
40140
+ | 'gemini-3.6-flash'
40141
+ | 'gemini-3.7-flash'
40142
+ | 'gemini-3.8-flash';
40853
40143
 
40854
40144
  /**
40855
40145
  * Type of model choice
@@ -41291,7 +40581,9 @@ export namespace ConversationFlowUpdateParams {
41291
40581
  | 'gemini-3.1-flash-lite'
41292
40582
  | 'gemini-3.5-flash'
41293
40583
  | 'gemini-3.5-flash-lite'
41294
- | 'gemini-3.6-flash';
40584
+ | 'gemini-3.6-flash'
40585
+ | 'gemini-3.7-flash'
40586
+ | 'gemini-3.8-flash';
41295
40587
 
41296
40588
  /**
41297
40589
  * Type of model choice
@@ -41862,7 +41154,9 @@ export namespace ConversationFlowUpdateParams {
41862
41154
  | 'gemini-3.1-flash-lite'
41863
41155
  | 'gemini-3.5-flash'
41864
41156
  | 'gemini-3.5-flash-lite'
41865
- | 'gemini-3.6-flash';
41157
+ | 'gemini-3.6-flash'
41158
+ | 'gemini-3.7-flash'
41159
+ | 'gemini-3.8-flash';
41866
41160
 
41867
41161
  /**
41868
41162
  * Type of model choice
@@ -42253,7 +41547,9 @@ export namespace ConversationFlowUpdateParams {
42253
41547
  | 'gemini-3.1-flash-lite'
42254
41548
  | 'gemini-3.5-flash'
42255
41549
  | 'gemini-3.5-flash-lite'
42256
- | 'gemini-3.6-flash';
41550
+ | 'gemini-3.6-flash'
41551
+ | 'gemini-3.7-flash'
41552
+ | 'gemini-3.8-flash';
42257
41553
 
42258
41554
  /**
42259
41555
  * Type of model choice
@@ -42742,7 +42038,9 @@ export namespace ConversationFlowUpdateParams {
42742
42038
  | 'gemini-3.1-flash-lite'
42743
42039
  | 'gemini-3.5-flash'
42744
42040
  | 'gemini-3.5-flash-lite'
42745
- | 'gemini-3.6-flash';
42041
+ | 'gemini-3.6-flash'
42042
+ | 'gemini-3.7-flash'
42043
+ | 'gemini-3.8-flash';
42746
42044
 
42747
42045
  /**
42748
42046
  * Type of model choice
@@ -43428,7 +42726,9 @@ export namespace ConversationFlowUpdateParams {
43428
42726
  | 'gemini-3.1-flash-lite'
43429
42727
  | 'gemini-3.5-flash'
43430
42728
  | 'gemini-3.5-flash-lite'
43431
- | 'gemini-3.6-flash';
42729
+ | 'gemini-3.6-flash'
42730
+ | 'gemini-3.7-flash'
42731
+ | 'gemini-3.8-flash';
43432
42732
 
43433
42733
  /**
43434
42734
  * Type of model choice
@@ -43705,7 +43005,9 @@ export namespace ConversationFlowUpdateParams {
43705
43005
  | 'gemini-3.1-flash-lite'
43706
43006
  | 'gemini-3.5-flash'
43707
43007
  | 'gemini-3.5-flash-lite'
43708
- | 'gemini-3.6-flash';
43008
+ | 'gemini-3.6-flash'
43009
+ | 'gemini-3.7-flash'
43010
+ | 'gemini-3.8-flash';
43709
43011
 
43710
43012
  /**
43711
43013
  * Type of model choice
@@ -43796,7 +43098,7 @@ export namespace ConversationFlowUpdateParams {
43796
43098
  }
43797
43099
  }
43798
43100
 
43799
- export interface CustomTool {
43101
+ export interface Tool {
43800
43102
  /**
43801
43103
  * Name of the tool. Must be unique within all tools available to LLM at any given
43802
43104
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -43885,7 +43187,7 @@ export namespace ConversationFlowUpdateParams {
43885
43187
  * documentation about the format. Omitting parameters defines a function with an
43886
43188
  * empty parameter list.
43887
43189
  */
43888
- parameters?: CustomTool.Parameters;
43190
+ parameters?: Tool.Parameters;
43889
43191
 
43890
43192
  /**
43891
43193
  * Query parameters to append to the request URL.
@@ -43928,7 +43230,7 @@ export namespace ConversationFlowUpdateParams {
43928
43230
  tool_id?: string;
43929
43231
  }
43930
43232
 
43931
- export namespace CustomTool {
43233
+ export namespace Tool {
43932
43234
  /**
43933
43235
  * The parameters the functions accepts, described as a JSON Schema object. See
43934
43236
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -43955,102 +43257,6 @@ export namespace ConversationFlowUpdateParams {
43955
43257
  required?: Array<string>;
43956
43258
  }
43957
43259
  }
43958
-
43959
- /**
43960
- * @deprecated
43961
- */
43962
- export interface CheckAvailabilityCalTool {
43963
- /**
43964
- * Cal.com Api key that have access to the cal.com event you want to check
43965
- * availability for.
43966
- */
43967
- cal_api_key: string;
43968
-
43969
- /**
43970
- * Cal.com event type id number for the cal.com event you want to check
43971
- * availability for. Can be a number or a dynamic variable in the format
43972
- * `{{variable_name}}` that will be resolved at runtime.
43973
- */
43974
- event_type_id: number | string;
43975
-
43976
- /**
43977
- * Name of the tool. Must be unique within all tools available to LLM at any given
43978
- * time (general tools + state tools + state transitions). Must be consisted of
43979
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
43980
- * (no space allowed).
43981
- */
43982
- name: string;
43983
-
43984
- type: 'check_availability_cal';
43985
-
43986
- /**
43987
- * Describes what the tool does, sometimes can also include information about when
43988
- * to call the tool.
43989
- */
43990
- description?: string;
43991
-
43992
- /**
43993
- * Timezone to be used when checking availability, must be in
43994
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
43995
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
43996
- * resolved at runtime. If not specified, will check if user specified timezone in
43997
- * call, and if not, will use the timezone of the Retell servers.
43998
- */
43999
- timezone?: string;
44000
-
44001
- /**
44002
- * Unique identifier for the tool
44003
- */
44004
- tool_id?: string;
44005
- }
44006
-
44007
- /**
44008
- * @deprecated
44009
- */
44010
- export interface BookAppointmentCalTool {
44011
- /**
44012
- * Cal.com Api key that have access to the cal.com event you want to book
44013
- * appointment.
44014
- */
44015
- cal_api_key: string;
44016
-
44017
- /**
44018
- * Cal.com event type id number for the cal.com event you want to book appointment.
44019
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
44020
- * will be resolved at runtime.
44021
- */
44022
- event_type_id: number | string;
44023
-
44024
- /**
44025
- * Name of the tool. Must be unique within all tools available to LLM at any given
44026
- * time (general tools + state tools + state transitions). Must be consisted of
44027
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
44028
- * (no space allowed).
44029
- */
44030
- name: string;
44031
-
44032
- type: 'book_appointment_cal';
44033
-
44034
- /**
44035
- * Describes what the tool does, sometimes can also include information about when
44036
- * to call the tool.
44037
- */
44038
- description?: string;
44039
-
44040
- /**
44041
- * Timezone to be used when booking appointment, must be in
44042
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
44043
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
44044
- * resolved at runtime. If not specified, will check if user specified timezone in
44045
- * call, and if not, will use the timezone of the Retell servers.
44046
- */
44047
- timezone?: string;
44048
-
44049
- /**
44050
- * Unique identifier for the tool
44051
- */
44052
- tool_id?: string;
44053
- }
44054
43260
  }
44055
43261
 
44056
43262
  /**
@@ -44123,7 +43329,9 @@ export namespace ConversationFlowUpdateParams {
44123
43329
  | 'gemini-3.1-flash-lite'
44124
43330
  | 'gemini-3.5-flash'
44125
43331
  | 'gemini-3.5-flash-lite'
44126
- | 'gemini-3.6-flash';
43332
+ | 'gemini-3.6-flash'
43333
+ | 'gemini-3.7-flash'
43334
+ | 'gemini-3.8-flash';
44127
43335
 
44128
43336
  /**
44129
43337
  * Type of model choice
@@ -44780,7 +43988,9 @@ export namespace ConversationFlowUpdateParams {
44780
43988
  | 'gemini-3.1-flash-lite'
44781
43989
  | 'gemini-3.5-flash'
44782
43990
  | 'gemini-3.5-flash-lite'
44783
- | 'gemini-3.6-flash';
43991
+ | 'gemini-3.6-flash'
43992
+ | 'gemini-3.7-flash'
43993
+ | 'gemini-3.8-flash';
44784
43994
 
44785
43995
  /**
44786
43996
  * Type of model choice
@@ -44967,8 +44177,6 @@ export namespace ConversationFlowUpdateParams {
44967
44177
  tools?: Array<
44968
44178
  | SubagentNode.EndCallTool
44969
44179
  | SubagentNode.TransferCallTool
44970
- | SubagentNode.CheckAvailabilityCalTool
44971
- | SubagentNode.BookAppointmentCalTool
44972
44180
  | SubagentNode.AgentSwapTool
44973
44181
  | SubagentNode.PressDigitTool
44974
44182
  | SubagentNode.SendSMSTool
@@ -45529,7 +44737,9 @@ export namespace ConversationFlowUpdateParams {
45529
44737
  | 'gemini-3.1-flash-lite'
45530
44738
  | 'gemini-3.5-flash'
45531
44739
  | 'gemini-3.5-flash-lite'
45532
- | 'gemini-3.6-flash';
44740
+ | 'gemini-3.6-flash'
44741
+ | 'gemini-3.7-flash'
44742
+ | 'gemini-3.8-flash';
45533
44743
 
45534
44744
  /**
45535
44745
  * Type of model choice
@@ -46015,92 +45225,6 @@ export namespace ConversationFlowUpdateParams {
46015
45225
  }
46016
45226
  }
46017
45227
 
46018
- /**
46019
- * @deprecated
46020
- */
46021
- export interface CheckAvailabilityCalTool {
46022
- /**
46023
- * Cal.com Api key that have access to the cal.com event you want to check
46024
- * availability for.
46025
- */
46026
- cal_api_key: string;
46027
-
46028
- /**
46029
- * Cal.com event type id number for the cal.com event you want to check
46030
- * availability for. Can be a number or a dynamic variable in the format
46031
- * `{{variable_name}}` that will be resolved at runtime.
46032
- */
46033
- event_type_id: number | string;
46034
-
46035
- /**
46036
- * Name of the tool. Must be unique within all tools available to LLM at any given
46037
- * time (general tools + state tools + state transitions). Must be consisted of
46038
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
46039
- * (no space allowed).
46040
- */
46041
- name: string;
46042
-
46043
- type: 'check_availability_cal';
46044
-
46045
- /**
46046
- * Describes what the tool does, sometimes can also include information about when
46047
- * to call the tool.
46048
- */
46049
- description?: string;
46050
-
46051
- /**
46052
- * Timezone to be used when checking availability, must be in
46053
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
46054
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
46055
- * resolved at runtime. If not specified, will check if user specified timezone in
46056
- * call, and if not, will use the timezone of the Retell servers.
46057
- */
46058
- timezone?: string;
46059
- }
46060
-
46061
- /**
46062
- * @deprecated
46063
- */
46064
- export interface BookAppointmentCalTool {
46065
- /**
46066
- * Cal.com Api key that have access to the cal.com event you want to book
46067
- * appointment.
46068
- */
46069
- cal_api_key: string;
46070
-
46071
- /**
46072
- * Cal.com event type id number for the cal.com event you want to book appointment.
46073
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
46074
- * will be resolved at runtime.
46075
- */
46076
- event_type_id: number | string;
46077
-
46078
- /**
46079
- * Name of the tool. Must be unique within all tools available to LLM at any given
46080
- * time (general tools + state tools + state transitions). Must be consisted of
46081
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
46082
- * (no space allowed).
46083
- */
46084
- name: string;
46085
-
46086
- type: 'book_appointment_cal';
46087
-
46088
- /**
46089
- * Describes what the tool does, sometimes can also include information about when
46090
- * to call the tool.
46091
- */
46092
- description?: string;
46093
-
46094
- /**
46095
- * Timezone to be used when booking appointment, must be in
46096
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
46097
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
46098
- * resolved at runtime. If not specified, will check if user specified timezone in
46099
- * call, and if not, will use the timezone of the Retell servers.
46100
- */
46101
- timezone?: string;
46102
- }
46103
-
46104
45228
  export interface AgentSwapTool {
46105
45229
  /**
46106
45230
  * The id of the agent to swap to.
@@ -47058,7 +46182,9 @@ export namespace ConversationFlowUpdateParams {
47058
46182
  | 'gemini-3.1-flash-lite'
47059
46183
  | 'gemini-3.5-flash'
47060
46184
  | 'gemini-3.5-flash-lite'
47061
- | 'gemini-3.6-flash';
46185
+ | 'gemini-3.6-flash'
46186
+ | 'gemini-3.7-flash'
46187
+ | 'gemini-3.8-flash';
47062
46188
 
47063
46189
  /**
47064
46190
  * Type of model choice
@@ -47538,7 +46664,9 @@ export namespace ConversationFlowUpdateParams {
47538
46664
  | 'gemini-3.1-flash-lite'
47539
46665
  | 'gemini-3.5-flash'
47540
46666
  | 'gemini-3.5-flash-lite'
47541
- | 'gemini-3.6-flash';
46667
+ | 'gemini-3.6-flash'
46668
+ | 'gemini-3.7-flash'
46669
+ | 'gemini-3.8-flash';
47542
46670
 
47543
46671
  /**
47544
46672
  * Type of model choice
@@ -48025,7 +47153,9 @@ export namespace ConversationFlowUpdateParams {
48025
47153
  | 'gemini-3.1-flash-lite'
48026
47154
  | 'gemini-3.5-flash'
48027
47155
  | 'gemini-3.5-flash-lite'
48028
- | 'gemini-3.6-flash';
47156
+ | 'gemini-3.6-flash'
47157
+ | 'gemini-3.7-flash'
47158
+ | 'gemini-3.8-flash';
48029
47159
 
48030
47160
  /**
48031
47161
  * Type of model choice
@@ -48699,7 +47829,9 @@ export namespace ConversationFlowUpdateParams {
48699
47829
  | 'gemini-3.1-flash-lite'
48700
47830
  | 'gemini-3.5-flash'
48701
47831
  | 'gemini-3.5-flash-lite'
48702
- | 'gemini-3.6-flash';
47832
+ | 'gemini-3.6-flash'
47833
+ | 'gemini-3.7-flash'
47834
+ | 'gemini-3.8-flash';
48703
47835
 
48704
47836
  /**
48705
47837
  * Type of model choice
@@ -49147,7 +48279,9 @@ export namespace ConversationFlowUpdateParams {
49147
48279
  | 'gemini-3.1-flash-lite'
49148
48280
  | 'gemini-3.5-flash'
49149
48281
  | 'gemini-3.5-flash-lite'
49150
- | 'gemini-3.6-flash';
48282
+ | 'gemini-3.6-flash'
48283
+ | 'gemini-3.7-flash'
48284
+ | 'gemini-3.8-flash';
49151
48285
 
49152
48286
  /**
49153
48287
  * Type of model choice
@@ -49576,7 +48710,9 @@ export namespace ConversationFlowUpdateParams {
49576
48710
  | 'gemini-3.1-flash-lite'
49577
48711
  | 'gemini-3.5-flash'
49578
48712
  | 'gemini-3.5-flash-lite'
49579
- | 'gemini-3.6-flash';
48713
+ | 'gemini-3.6-flash'
48714
+ | 'gemini-3.7-flash'
48715
+ | 'gemini-3.8-flash';
49580
48716
 
49581
48717
  /**
49582
48718
  * Type of model choice
@@ -50018,7 +49154,9 @@ export namespace ConversationFlowUpdateParams {
50018
49154
  | 'gemini-3.1-flash-lite'
50019
49155
  | 'gemini-3.5-flash'
50020
49156
  | 'gemini-3.5-flash-lite'
50021
- | 'gemini-3.6-flash';
49157
+ | 'gemini-3.6-flash'
49158
+ | 'gemini-3.7-flash'
49159
+ | 'gemini-3.8-flash';
50022
49160
 
50023
49161
  /**
50024
49162
  * Type of model choice
@@ -50589,7 +49727,9 @@ export namespace ConversationFlowUpdateParams {
50589
49727
  | 'gemini-3.1-flash-lite'
50590
49728
  | 'gemini-3.5-flash'
50591
49729
  | 'gemini-3.5-flash-lite'
50592
- | 'gemini-3.6-flash';
49730
+ | 'gemini-3.6-flash'
49731
+ | 'gemini-3.7-flash'
49732
+ | 'gemini-3.8-flash';
50593
49733
 
50594
49734
  /**
50595
49735
  * Type of model choice
@@ -50980,7 +50120,9 @@ export namespace ConversationFlowUpdateParams {
50980
50120
  | 'gemini-3.1-flash-lite'
50981
50121
  | 'gemini-3.5-flash'
50982
50122
  | 'gemini-3.5-flash-lite'
50983
- | 'gemini-3.6-flash';
50123
+ | 'gemini-3.6-flash'
50124
+ | 'gemini-3.7-flash'
50125
+ | 'gemini-3.8-flash';
50984
50126
 
50985
50127
  /**
50986
50128
  * Type of model choice
@@ -51469,7 +50611,9 @@ export namespace ConversationFlowUpdateParams {
51469
50611
  | 'gemini-3.1-flash-lite'
51470
50612
  | 'gemini-3.5-flash'
51471
50613
  | 'gemini-3.5-flash-lite'
51472
- | 'gemini-3.6-flash';
50614
+ | 'gemini-3.6-flash'
50615
+ | 'gemini-3.7-flash'
50616
+ | 'gemini-3.8-flash';
51473
50617
 
51474
50618
  /**
51475
50619
  * Type of model choice
@@ -52155,7 +51299,9 @@ export namespace ConversationFlowUpdateParams {
52155
51299
  | 'gemini-3.1-flash-lite'
52156
51300
  | 'gemini-3.5-flash'
52157
51301
  | 'gemini-3.5-flash-lite'
52158
- | 'gemini-3.6-flash';
51302
+ | 'gemini-3.6-flash'
51303
+ | 'gemini-3.7-flash'
51304
+ | 'gemini-3.8-flash';
52159
51305
 
52160
51306
  /**
52161
51307
  * Type of model choice
@@ -52432,7 +51578,9 @@ export namespace ConversationFlowUpdateParams {
52432
51578
  | 'gemini-3.1-flash-lite'
52433
51579
  | 'gemini-3.5-flash'
52434
51580
  | 'gemini-3.5-flash-lite'
52435
- | 'gemini-3.6-flash';
51581
+ | 'gemini-3.6-flash'
51582
+ | 'gemini-3.7-flash'
51583
+ | 'gemini-3.8-flash';
52436
51584
 
52437
51585
  /**
52438
51586
  * Type of model choice
@@ -52489,7 +51637,7 @@ export namespace ConversationFlowUpdateParams {
52489
51637
  }
52490
51638
  }
52491
51639
 
52492
- export interface CustomTool {
51640
+ export interface Tool {
52493
51641
  /**
52494
51642
  * Name of the tool. Must be unique within all tools available to LLM at any given
52495
51643
  * time (general tools + state tools + state edges). Must be consisted of a-z, A-Z,
@@ -52578,7 +51726,7 @@ export namespace ConversationFlowUpdateParams {
52578
51726
  * documentation about the format. Omitting parameters defines a function with an
52579
51727
  * empty parameter list.
52580
51728
  */
52581
- parameters?: CustomTool.Parameters;
51729
+ parameters?: Tool.Parameters;
52582
51730
 
52583
51731
  /**
52584
51732
  * Query parameters to append to the request URL.
@@ -52621,7 +51769,7 @@ export namespace ConversationFlowUpdateParams {
52621
51769
  tool_id?: string;
52622
51770
  }
52623
51771
 
52624
- export namespace CustomTool {
51772
+ export namespace Tool {
52625
51773
  /**
52626
51774
  * The parameters the functions accepts, described as a JSON Schema object. See
52627
51775
  * [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
@@ -52648,102 +51796,6 @@ export namespace ConversationFlowUpdateParams {
52648
51796
  required?: Array<string>;
52649
51797
  }
52650
51798
  }
52651
-
52652
- /**
52653
- * @deprecated
52654
- */
52655
- export interface CheckAvailabilityCalTool {
52656
- /**
52657
- * Cal.com Api key that have access to the cal.com event you want to check
52658
- * availability for.
52659
- */
52660
- cal_api_key: string;
52661
-
52662
- /**
52663
- * Cal.com event type id number for the cal.com event you want to check
52664
- * availability for. Can be a number or a dynamic variable in the format
52665
- * `{{variable_name}}` that will be resolved at runtime.
52666
- */
52667
- event_type_id: number | string;
52668
-
52669
- /**
52670
- * Name of the tool. Must be unique within all tools available to LLM at any given
52671
- * time (general tools + state tools + state transitions). Must be consisted of
52672
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
52673
- * (no space allowed).
52674
- */
52675
- name: string;
52676
-
52677
- type: 'check_availability_cal';
52678
-
52679
- /**
52680
- * Describes what the tool does, sometimes can also include information about when
52681
- * to call the tool.
52682
- */
52683
- description?: string;
52684
-
52685
- /**
52686
- * Timezone to be used when checking availability, must be in
52687
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
52688
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
52689
- * resolved at runtime. If not specified, will check if user specified timezone in
52690
- * call, and if not, will use the timezone of the Retell servers.
52691
- */
52692
- timezone?: string;
52693
-
52694
- /**
52695
- * Unique identifier for the tool
52696
- */
52697
- tool_id?: string;
52698
- }
52699
-
52700
- /**
52701
- * @deprecated
52702
- */
52703
- export interface BookAppointmentCalTool {
52704
- /**
52705
- * Cal.com Api key that have access to the cal.com event you want to book
52706
- * appointment.
52707
- */
52708
- cal_api_key: string;
52709
-
52710
- /**
52711
- * Cal.com event type id number for the cal.com event you want to book appointment.
52712
- * Can be a number or a dynamic variable in the format `{{variable_name}}` that
52713
- * will be resolved at runtime.
52714
- */
52715
- event_type_id: number | string;
52716
-
52717
- /**
52718
- * Name of the tool. Must be unique within all tools available to LLM at any given
52719
- * time (general tools + state tools + state transitions). Must be consisted of
52720
- * a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64
52721
- * (no space allowed).
52722
- */
52723
- name: string;
52724
-
52725
- type: 'book_appointment_cal';
52726
-
52727
- /**
52728
- * Describes what the tool does, sometimes can also include information about when
52729
- * to call the tool.
52730
- */
52731
- description?: string;
52732
-
52733
- /**
52734
- * Timezone to be used when booking appointment, must be in
52735
- * [IANA timezone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
52736
- * Can also be a dynamic variable in the format `{{variable_name}}` that will be
52737
- * resolved at runtime. If not specified, will check if user specified timezone in
52738
- * call, and if not, will use the timezone of the Retell servers.
52739
- */
52740
- timezone?: string;
52741
-
52742
- /**
52743
- * Unique identifier for the tool
52744
- */
52745
- tool_id?: string;
52746
- }
52747
51799
  }
52748
51800
 
52749
51801
  export interface ConversationFlowListParams {