retell-utils 0.5.1 → 0.5.2

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.
package/dist/agent.d.ts CHANGED
@@ -128,6 +128,7 @@ export declare const VoiceAgentResponseSchema: z.ZodObject<{
128
128
  "gpt-4o-mini-tts": "gpt-4o-mini-tts";
129
129
  "speech-02-turbo": "speech-02-turbo";
130
130
  "speech-2.8-turbo": "speech-2.8-turbo";
131
+ s1: "s1";
131
132
  }>>>;
132
133
  fallback_voice_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
133
134
  voice_temperature: z.ZodOptional<z.ZodNumber>;
@@ -144,6 +145,7 @@ export declare const VoiceAgentResponseSchema: z.ZodObject<{
144
145
  surprised: "surprised";
145
146
  }>>>;
146
147
  responsiveness: z.ZodOptional<z.ZodNumber>;
148
+ enable_dynamic_responsiveness: z.ZodOptional<z.ZodBoolean>;
147
149
  interruption_sensitivity: z.ZodOptional<z.ZodNumber>;
148
150
  enable_backchannel: z.ZodOptional<z.ZodBoolean>;
149
151
  backchannel_frequency: z.ZodOptional<z.ZodNumber>;
@@ -228,6 +230,7 @@ export declare const VoiceAgentResponseSchema: z.ZodObject<{
228
230
  stt_mode: z.ZodOptional<z.ZodEnum<{
229
231
  fast: "fast";
230
232
  accurate: "accurate";
233
+ custom: "custom";
231
234
  }>>;
232
235
  custom_stt_config: z.ZodOptional<z.ZodObject<{
233
236
  provider: z.ZodOptional<z.ZodString>;
@@ -320,14 +323,17 @@ export declare const VoiceAgentResponseSchema: z.ZodObject<{
320
323
  }>>>;
321
324
  analysis_successful_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
325
  analysis_summary_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ analysis_user_sentiment_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
327
  data_storage_setting: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
324
328
  everything: "everything";
325
329
  everything_except_pii: "everything_except_pii";
326
330
  basic_attributes_only: "basic_attributes_only";
327
331
  }>>>;
332
+ data_storage_retention_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
328
333
  opt_in_signed_url: z.ZodOptional<z.ZodBoolean>;
329
334
  signed_url_expiration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
330
335
  denoising_mode: z.ZodOptional<z.ZodEnum<{
336
+ "no-denoise": "no-denoise";
331
337
  "noise-cancellation": "noise-cancellation";
332
338
  "noise-and-background-speech-cancellation": "noise-and-background-speech-cancellation";
333
339
  }>>;
package/dist/agent.js CHANGED
@@ -120,6 +120,7 @@ export const VoiceAgentResponseSchema = z.object({
120
120
  voice_emotion: VoiceEmotionSchema.nullable().optional(),
121
121
  // Interaction
122
122
  responsiveness: z.number().optional(),
123
+ enable_dynamic_responsiveness: z.boolean().optional(),
123
124
  interruption_sensitivity: z.number().optional(),
124
125
  enable_backchannel: z.boolean().optional(),
125
126
  backchannel_frequency: z.number().optional(),
@@ -166,8 +167,10 @@ export const VoiceAgentResponseSchema = z.object({
166
167
  post_call_analysis_model: LlmModelSchema.nullable().optional(),
167
168
  analysis_successful_prompt: z.string().nullable().optional(),
168
169
  analysis_summary_prompt: z.string().nullable().optional(),
170
+ analysis_user_sentiment_prompt: z.string().nullable().optional(),
169
171
  // Privacy & storage
170
172
  data_storage_setting: DataStorageSettingSchema.nullable().optional(),
173
+ data_storage_retention_days: z.number().nullable().optional(),
171
174
  opt_in_signed_url: z.boolean().optional(),
172
175
  signed_url_expiration_ms: z.number().nullable().optional(),
173
176
  denoising_mode: DenoisingModeSchema.optional(),
package/dist/enums.d.ts CHANGED
@@ -107,6 +107,7 @@ export declare const VoiceModelSchema: z.ZodEnum<{
107
107
  "gpt-4o-mini-tts": "gpt-4o-mini-tts";
108
108
  "speech-02-turbo": "speech-02-turbo";
109
109
  "speech-2.8-turbo": "speech-2.8-turbo";
110
+ s1: "s1";
110
111
  }>;
111
112
  /** Voice emotion options (Cartesia and Minimax providers). */
112
113
  export declare const VoiceEmotionSchema: z.ZodEnum<{
@@ -213,20 +214,6 @@ export declare const StartSpeakerSchema: z.ZodEnum<{
213
214
  user: "user";
214
215
  agent: "agent";
215
216
  }>;
216
- /** All possible conversation flow node types. */
217
- export declare const FlowNodeTypeSchema: z.ZodEnum<{
218
- function: "function";
219
- conversation: "conversation";
220
- end: "end";
221
- transfer_call: "transfer_call";
222
- press_digit: "press_digit";
223
- branch: "branch";
224
- sms: "sms";
225
- extract_dynamic_variables: "extract_dynamic_variables";
226
- agent_swap: "agent_swap";
227
- mcp: "mcp";
228
- component: "component";
229
- }>;
230
217
  /** Transition condition type on a flow edge. */
231
218
  export declare const FlowTransitionConditionTypeSchema: z.ZodEnum<{
232
219
  prompt: "prompt";
@@ -259,6 +246,7 @@ export declare const EquationCombinatorSchema: z.ZodEnum<{
259
246
  export declare const SttModeSchema: z.ZodEnum<{
260
247
  fast: "fast";
261
248
  accurate: "accurate";
249
+ custom: "custom";
262
250
  }>;
263
251
  /** Vocabulary specialization mode for voice agents. */
264
252
  export declare const VocabSpecializationSchema: z.ZodEnum<{
@@ -267,6 +255,7 @@ export declare const VocabSpecializationSchema: z.ZodEnum<{
267
255
  }>;
268
256
  /** Audio denoising mode for voice agents. */
269
257
  export declare const DenoisingModeSchema: z.ZodEnum<{
258
+ "no-denoise": "no-denoise";
270
259
  "noise-cancellation": "noise-cancellation";
271
260
  "noise-and-background-speech-cancellation": "noise-and-background-speech-cancellation";
272
261
  }>;
@@ -299,15 +288,15 @@ export declare const VoicemailActionTypeSchema: z.ZodEnum<{
299
288
  }>;
300
289
  /** LLM tool type discriminator. */
301
290
  export declare const LlmToolTypeSchema: z.ZodEnum<{
302
- transfer_call: "transfer_call";
303
- press_digit: "press_digit";
304
- agent_swap: "agent_swap";
305
- mcp: "mcp";
291
+ custom: "custom";
306
292
  end_call: "end_call";
293
+ transfer_call: "transfer_call";
307
294
  check_availability_cal: "check_availability_cal";
308
295
  book_appointment_cal: "book_appointment_cal";
309
- custom: "custom";
296
+ press_digit: "press_digit";
310
297
  extract_dynamic_variable: "extract_dynamic_variable";
298
+ agent_swap: "agent_swap";
299
+ mcp: "mcp";
311
300
  send_sms: "send_sms";
312
301
  }>;
313
302
  /** HTTP method for custom tool requests. */
package/dist/enums.js CHANGED
@@ -104,6 +104,7 @@ export const VoiceModelSchema = z.enum([
104
104
  "gpt-4o-mini-tts",
105
105
  "speech-02-turbo",
106
106
  "speech-2.8-turbo",
107
+ "s1",
107
108
  ]);
108
109
  /** Voice emotion options (Cartesia and Minimax providers). */
109
110
  export const VoiceEmotionSchema = z.enum([
@@ -210,20 +211,6 @@ export const StartSpeakerSchema = z.enum(["user", "agent"]);
210
211
  // ---------------------------------------------------------------------------
211
212
  // Conversation flow enums
212
213
  // ---------------------------------------------------------------------------
213
- /** All possible conversation flow node types. */
214
- export const FlowNodeTypeSchema = z.enum([
215
- "conversation",
216
- "end",
217
- "function",
218
- "transfer_call",
219
- "press_digit",
220
- "branch",
221
- "sms",
222
- "extract_dynamic_variables",
223
- "agent_swap",
224
- "mcp",
225
- "component",
226
- ]);
227
214
  /** Transition condition type on a flow edge. */
228
215
  export const FlowTransitionConditionTypeSchema = z.enum(["prompt", "equation"]);
229
216
  /** Instruction type within a flow node. */
@@ -247,11 +234,12 @@ export const EquationCombinatorSchema = z.enum(["||", "&&"]);
247
234
  // Voice agent enums
248
235
  // ---------------------------------------------------------------------------
249
236
  /** STT (speech-to-text) mode for voice agents. */
250
- export const SttModeSchema = z.enum(["fast", "accurate"]);
237
+ export const SttModeSchema = z.enum(["fast", "accurate", "custom"]);
251
238
  /** Vocabulary specialization mode for voice agents. */
252
239
  export const VocabSpecializationSchema = z.enum(["general", "medical"]);
253
240
  /** Audio denoising mode for voice agents. */
254
241
  export const DenoisingModeSchema = z.enum([
242
+ "no-denoise",
255
243
  "noise-cancellation",
256
244
  "noise-and-background-speech-cancellation",
257
245
  ]);
package/dist/flow.d.ts CHANGED
@@ -360,10 +360,6 @@ export declare const FlowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
360
360
  }, z.core.$strip>;
361
361
  transfer_option: z.ZodObject<{
362
362
  type: z.ZodOptional<z.ZodString>;
363
- option: z.ZodOptional<z.ZodObject<{
364
- type: z.ZodOptional<z.ZodString>;
365
- prompt: z.ZodOptional<z.ZodString>;
366
- }, z.core.$strip>>;
367
363
  public_handoff_option: z.ZodOptional<z.ZodObject<{
368
364
  type: z.ZodOptional<z.ZodString>;
369
365
  prompt: z.ZodOptional<z.ZodString>;
@@ -378,6 +374,11 @@ export declare const FlowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
378
374
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
379
375
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
380
376
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
377
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
378
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
379
+ sip_refer: "sip_refer";
380
+ sip_invite: "sip_invite";
381
+ }>>;
381
382
  }, z.core.$strip>;
382
383
  speak_during_execution: z.ZodDefault<z.ZodBoolean>;
383
384
  edge: z.ZodObject<{
@@ -599,6 +600,22 @@ export declare const FlowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
599
600
  x: z.ZodNumber;
600
601
  y: z.ZodNumber;
601
602
  }, z.core.$strip>>;
603
+ }, z.core.$loose>, z.ZodObject<{
604
+ type: z.ZodLiteral<"bridge_transfer">;
605
+ id: z.ZodString;
606
+ name: z.ZodString;
607
+ display_position: z.ZodDefault<z.ZodObject<{
608
+ x: z.ZodNumber;
609
+ y: z.ZodNumber;
610
+ }, z.core.$strip>>;
611
+ }, z.core.$loose>, z.ZodObject<{
612
+ type: z.ZodLiteral<"cancel_transfer">;
613
+ id: z.ZodString;
614
+ name: z.ZodString;
615
+ display_position: z.ZodDefault<z.ZodObject<{
616
+ x: z.ZodNumber;
617
+ y: z.ZodNumber;
618
+ }, z.core.$strip>>;
602
619
  }, z.core.$loose>], "type">;
603
620
  /** A local component embedded within a conversation flow. */
604
621
  export declare const FlowComponentSchema: z.ZodObject<{
@@ -887,10 +904,6 @@ export declare const FlowComponentSchema: z.ZodObject<{
887
904
  }, z.core.$strip>;
888
905
  transfer_option: z.ZodObject<{
889
906
  type: z.ZodOptional<z.ZodString>;
890
- option: z.ZodOptional<z.ZodObject<{
891
- type: z.ZodOptional<z.ZodString>;
892
- prompt: z.ZodOptional<z.ZodString>;
893
- }, z.core.$strip>>;
894
907
  public_handoff_option: z.ZodOptional<z.ZodObject<{
895
908
  type: z.ZodOptional<z.ZodString>;
896
909
  prompt: z.ZodOptional<z.ZodString>;
@@ -905,6 +918,11 @@ export declare const FlowComponentSchema: z.ZodObject<{
905
918
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
906
919
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
907
920
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
921
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
922
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
923
+ sip_refer: "sip_refer";
924
+ sip_invite: "sip_invite";
925
+ }>>;
908
926
  }, z.core.$strip>;
909
927
  speak_during_execution: z.ZodDefault<z.ZodBoolean>;
910
928
  edge: z.ZodObject<{
@@ -1126,18 +1144,34 @@ export declare const FlowComponentSchema: z.ZodObject<{
1126
1144
  x: z.ZodNumber;
1127
1145
  y: z.ZodNumber;
1128
1146
  }, z.core.$strip>>;
1147
+ }, z.core.$loose>, z.ZodObject<{
1148
+ type: z.ZodLiteral<"bridge_transfer">;
1149
+ id: z.ZodString;
1150
+ name: z.ZodString;
1151
+ display_position: z.ZodDefault<z.ZodObject<{
1152
+ x: z.ZodNumber;
1153
+ y: z.ZodNumber;
1154
+ }, z.core.$strip>>;
1155
+ }, z.core.$loose>, z.ZodObject<{
1156
+ type: z.ZodLiteral<"cancel_transfer">;
1157
+ id: z.ZodString;
1158
+ name: z.ZodString;
1159
+ display_position: z.ZodDefault<z.ZodObject<{
1160
+ x: z.ZodNumber;
1161
+ y: z.ZodNumber;
1162
+ }, z.core.$strip>>;
1129
1163
  }, z.core.$loose>], "type">>>;
1130
1164
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1131
1165
  type: z.ZodEnum<{
1132
- transfer_call: "transfer_call";
1133
- press_digit: "press_digit";
1134
- agent_swap: "agent_swap";
1135
- mcp: "mcp";
1166
+ custom: "custom";
1136
1167
  end_call: "end_call";
1168
+ transfer_call: "transfer_call";
1137
1169
  check_availability_cal: "check_availability_cal";
1138
1170
  book_appointment_cal: "book_appointment_cal";
1139
- custom: "custom";
1171
+ press_digit: "press_digit";
1140
1172
  extract_dynamic_variable: "extract_dynamic_variable";
1173
+ agent_swap: "agent_swap";
1174
+ mcp: "mcp";
1141
1175
  send_sms: "send_sms";
1142
1176
  }>;
1143
1177
  name: z.ZodOptional<z.ZodString>;
@@ -1172,10 +1206,6 @@ export declare const FlowComponentSchema: z.ZodObject<{
1172
1206
  }, z.core.$strip>>;
1173
1207
  transfer_option: z.ZodOptional<z.ZodObject<{
1174
1208
  type: z.ZodOptional<z.ZodString>;
1175
- option: z.ZodOptional<z.ZodObject<{
1176
- type: z.ZodOptional<z.ZodString>;
1177
- prompt: z.ZodOptional<z.ZodString>;
1178
- }, z.core.$strip>>;
1179
1209
  public_handoff_option: z.ZodOptional<z.ZodObject<{
1180
1210
  type: z.ZodOptional<z.ZodString>;
1181
1211
  prompt: z.ZodOptional<z.ZodString>;
@@ -1190,6 +1220,11 @@ export declare const FlowComponentSchema: z.ZodObject<{
1190
1220
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
1191
1221
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
1192
1222
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
1223
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
1224
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
1225
+ sip_refer: "sip_refer";
1226
+ sip_invite: "sip_invite";
1227
+ }>>;
1193
1228
  }, z.core.$strip>>;
1194
1229
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1195
1230
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -1498,10 +1533,6 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
1498
1533
  }, z.core.$strip>;
1499
1534
  transfer_option: z.ZodObject<{
1500
1535
  type: z.ZodOptional<z.ZodString>;
1501
- option: z.ZodOptional<z.ZodObject<{
1502
- type: z.ZodOptional<z.ZodString>;
1503
- prompt: z.ZodOptional<z.ZodString>;
1504
- }, z.core.$strip>>;
1505
1536
  public_handoff_option: z.ZodOptional<z.ZodObject<{
1506
1537
  type: z.ZodOptional<z.ZodString>;
1507
1538
  prompt: z.ZodOptional<z.ZodString>;
@@ -1516,6 +1547,11 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
1516
1547
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
1517
1548
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
1518
1549
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
1550
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
1551
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
1552
+ sip_refer: "sip_refer";
1553
+ sip_invite: "sip_invite";
1554
+ }>>;
1519
1555
  }, z.core.$strip>;
1520
1556
  speak_during_execution: z.ZodDefault<z.ZodBoolean>;
1521
1557
  edge: z.ZodObject<{
@@ -1737,18 +1773,34 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
1737
1773
  x: z.ZodNumber;
1738
1774
  y: z.ZodNumber;
1739
1775
  }, z.core.$strip>>;
1776
+ }, z.core.$loose>, z.ZodObject<{
1777
+ type: z.ZodLiteral<"bridge_transfer">;
1778
+ id: z.ZodString;
1779
+ name: z.ZodString;
1780
+ display_position: z.ZodDefault<z.ZodObject<{
1781
+ x: z.ZodNumber;
1782
+ y: z.ZodNumber;
1783
+ }, z.core.$strip>>;
1784
+ }, z.core.$loose>, z.ZodObject<{
1785
+ type: z.ZodLiteral<"cancel_transfer">;
1786
+ id: z.ZodString;
1787
+ name: z.ZodString;
1788
+ display_position: z.ZodDefault<z.ZodObject<{
1789
+ x: z.ZodNumber;
1790
+ y: z.ZodNumber;
1791
+ }, z.core.$strip>>;
1740
1792
  }, z.core.$loose>], "type">>>;
1741
1793
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1742
1794
  type: z.ZodEnum<{
1743
- transfer_call: "transfer_call";
1744
- press_digit: "press_digit";
1745
- agent_swap: "agent_swap";
1746
- mcp: "mcp";
1795
+ custom: "custom";
1747
1796
  end_call: "end_call";
1797
+ transfer_call: "transfer_call";
1748
1798
  check_availability_cal: "check_availability_cal";
1749
1799
  book_appointment_cal: "book_appointment_cal";
1750
- custom: "custom";
1800
+ press_digit: "press_digit";
1751
1801
  extract_dynamic_variable: "extract_dynamic_variable";
1802
+ agent_swap: "agent_swap";
1803
+ mcp: "mcp";
1752
1804
  send_sms: "send_sms";
1753
1805
  }>;
1754
1806
  name: z.ZodOptional<z.ZodString>;
@@ -1783,10 +1835,6 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
1783
1835
  }, z.core.$strip>>;
1784
1836
  transfer_option: z.ZodOptional<z.ZodObject<{
1785
1837
  type: z.ZodOptional<z.ZodString>;
1786
- option: z.ZodOptional<z.ZodObject<{
1787
- type: z.ZodOptional<z.ZodString>;
1788
- prompt: z.ZodOptional<z.ZodString>;
1789
- }, z.core.$strip>>;
1790
1838
  public_handoff_option: z.ZodOptional<z.ZodObject<{
1791
1839
  type: z.ZodOptional<z.ZodString>;
1792
1840
  prompt: z.ZodOptional<z.ZodString>;
@@ -1801,6 +1849,11 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
1801
1849
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
1802
1850
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
1803
1851
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
1852
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
1853
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
1854
+ sip_refer: "sip_refer";
1855
+ sip_invite: "sip_invite";
1856
+ }>>;
1804
1857
  }, z.core.$strip>>;
1805
1858
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1806
1859
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -1859,15 +1912,15 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1859
1912
  is_published: z.ZodOptional<z.ZodBoolean>;
1860
1913
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1861
1914
  type: z.ZodEnum<{
1862
- transfer_call: "transfer_call";
1863
- press_digit: "press_digit";
1864
- agent_swap: "agent_swap";
1865
- mcp: "mcp";
1915
+ custom: "custom";
1866
1916
  end_call: "end_call";
1917
+ transfer_call: "transfer_call";
1867
1918
  check_availability_cal: "check_availability_cal";
1868
1919
  book_appointment_cal: "book_appointment_cal";
1869
- custom: "custom";
1920
+ press_digit: "press_digit";
1870
1921
  extract_dynamic_variable: "extract_dynamic_variable";
1922
+ agent_swap: "agent_swap";
1923
+ mcp: "mcp";
1871
1924
  send_sms: "send_sms";
1872
1925
  }>;
1873
1926
  name: z.ZodOptional<z.ZodString>;
@@ -1902,10 +1955,6 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1902
1955
  }, z.core.$strip>>;
1903
1956
  transfer_option: z.ZodOptional<z.ZodObject<{
1904
1957
  type: z.ZodOptional<z.ZodString>;
1905
- option: z.ZodOptional<z.ZodObject<{
1906
- type: z.ZodOptional<z.ZodString>;
1907
- prompt: z.ZodOptional<z.ZodString>;
1908
- }, z.core.$strip>>;
1909
1958
  public_handoff_option: z.ZodOptional<z.ZodObject<{
1910
1959
  type: z.ZodOptional<z.ZodString>;
1911
1960
  prompt: z.ZodOptional<z.ZodString>;
@@ -1920,6 +1969,11 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1920
1969
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
1921
1970
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
1922
1971
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
1972
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
1973
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
1974
+ sip_refer: "sip_refer";
1975
+ sip_invite: "sip_invite";
1976
+ }>>;
1923
1977
  }, z.core.$strip>>;
1924
1978
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1925
1979
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -2212,10 +2266,6 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2212
2266
  }, z.core.$strip>;
2213
2267
  transfer_option: z.ZodObject<{
2214
2268
  type: z.ZodOptional<z.ZodString>;
2215
- option: z.ZodOptional<z.ZodObject<{
2216
- type: z.ZodOptional<z.ZodString>;
2217
- prompt: z.ZodOptional<z.ZodString>;
2218
- }, z.core.$strip>>;
2219
2269
  public_handoff_option: z.ZodOptional<z.ZodObject<{
2220
2270
  type: z.ZodOptional<z.ZodString>;
2221
2271
  prompt: z.ZodOptional<z.ZodString>;
@@ -2230,6 +2280,11 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2230
2280
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
2231
2281
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
2232
2282
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
2283
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
2284
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
2285
+ sip_refer: "sip_refer";
2286
+ sip_invite: "sip_invite";
2287
+ }>>;
2233
2288
  }, z.core.$strip>;
2234
2289
  speak_during_execution: z.ZodDefault<z.ZodBoolean>;
2235
2290
  edge: z.ZodObject<{
@@ -2451,18 +2506,34 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2451
2506
  x: z.ZodNumber;
2452
2507
  y: z.ZodNumber;
2453
2508
  }, z.core.$strip>>;
2509
+ }, z.core.$loose>, z.ZodObject<{
2510
+ type: z.ZodLiteral<"bridge_transfer">;
2511
+ id: z.ZodString;
2512
+ name: z.ZodString;
2513
+ display_position: z.ZodDefault<z.ZodObject<{
2514
+ x: z.ZodNumber;
2515
+ y: z.ZodNumber;
2516
+ }, z.core.$strip>>;
2517
+ }, z.core.$loose>, z.ZodObject<{
2518
+ type: z.ZodLiteral<"cancel_transfer">;
2519
+ id: z.ZodString;
2520
+ name: z.ZodString;
2521
+ display_position: z.ZodDefault<z.ZodObject<{
2522
+ x: z.ZodNumber;
2523
+ y: z.ZodNumber;
2524
+ }, z.core.$strip>>;
2454
2525
  }, z.core.$loose>], "type">>>;
2455
2526
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2456
2527
  type: z.ZodEnum<{
2457
- transfer_call: "transfer_call";
2458
- press_digit: "press_digit";
2459
- agent_swap: "agent_swap";
2460
- mcp: "mcp";
2528
+ custom: "custom";
2461
2529
  end_call: "end_call";
2530
+ transfer_call: "transfer_call";
2462
2531
  check_availability_cal: "check_availability_cal";
2463
2532
  book_appointment_cal: "book_appointment_cal";
2464
- custom: "custom";
2533
+ press_digit: "press_digit";
2465
2534
  extract_dynamic_variable: "extract_dynamic_variable";
2535
+ agent_swap: "agent_swap";
2536
+ mcp: "mcp";
2466
2537
  send_sms: "send_sms";
2467
2538
  }>;
2468
2539
  name: z.ZodOptional<z.ZodString>;
@@ -2497,10 +2568,6 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2497
2568
  }, z.core.$strip>>;
2498
2569
  transfer_option: z.ZodOptional<z.ZodObject<{
2499
2570
  type: z.ZodOptional<z.ZodString>;
2500
- option: z.ZodOptional<z.ZodObject<{
2501
- type: z.ZodOptional<z.ZodString>;
2502
- prompt: z.ZodOptional<z.ZodString>;
2503
- }, z.core.$strip>>;
2504
2571
  public_handoff_option: z.ZodOptional<z.ZodObject<{
2505
2572
  type: z.ZodOptional<z.ZodString>;
2506
2573
  prompt: z.ZodOptional<z.ZodString>;
@@ -2515,6 +2582,11 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2515
2582
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
2516
2583
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
2517
2584
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
2585
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
2586
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
2587
+ sip_refer: "sip_refer";
2588
+ sip_invite: "sip_invite";
2589
+ }>>;
2518
2590
  }, z.core.$strip>>;
2519
2591
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2520
2592
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -2817,10 +2889,6 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2817
2889
  }, z.core.$strip>;
2818
2890
  transfer_option: z.ZodObject<{
2819
2891
  type: z.ZodOptional<z.ZodString>;
2820
- option: z.ZodOptional<z.ZodObject<{
2821
- type: z.ZodOptional<z.ZodString>;
2822
- prompt: z.ZodOptional<z.ZodString>;
2823
- }, z.core.$strip>>;
2824
2892
  public_handoff_option: z.ZodOptional<z.ZodObject<{
2825
2893
  type: z.ZodOptional<z.ZodString>;
2826
2894
  prompt: z.ZodOptional<z.ZodString>;
@@ -2835,6 +2903,11 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
2835
2903
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
2836
2904
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
2837
2905
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
2906
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
2907
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
2908
+ sip_refer: "sip_refer";
2909
+ sip_invite: "sip_invite";
2910
+ }>>;
2838
2911
  }, z.core.$strip>;
2839
2912
  speak_during_execution: z.ZodDefault<z.ZodBoolean>;
2840
2913
  edge: z.ZodObject<{
@@ -3056,6 +3129,22 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
3056
3129
  x: z.ZodNumber;
3057
3130
  y: z.ZodNumber;
3058
3131
  }, z.core.$strip>>;
3132
+ }, z.core.$loose>, z.ZodObject<{
3133
+ type: z.ZodLiteral<"bridge_transfer">;
3134
+ id: z.ZodString;
3135
+ name: z.ZodString;
3136
+ display_position: z.ZodDefault<z.ZodObject<{
3137
+ x: z.ZodNumber;
3138
+ y: z.ZodNumber;
3139
+ }, z.core.$strip>>;
3140
+ }, z.core.$loose>, z.ZodObject<{
3141
+ type: z.ZodLiteral<"cancel_transfer">;
3142
+ id: z.ZodString;
3143
+ name: z.ZodString;
3144
+ display_position: z.ZodDefault<z.ZodObject<{
3145
+ x: z.ZodNumber;
3146
+ y: z.ZodNumber;
3147
+ }, z.core.$strip>>;
3059
3148
  }, z.core.$loose>], "type">>>>;
3060
3149
  start_node_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3061
3150
  default_dynamic_variables: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
package/dist/flow.js CHANGED
@@ -144,6 +144,14 @@ const McpNodeSchema = z.looseObject({
144
144
  ...baseNodeFields,
145
145
  type: z.literal("mcp"),
146
146
  });
147
+ const BridgeTransferNodeSchema = z.looseObject({
148
+ ...baseNodeFields,
149
+ type: z.literal("bridge_transfer"),
150
+ });
151
+ const CancelTransferNodeSchema = z.looseObject({
152
+ ...baseNodeFields,
153
+ type: z.literal("cancel_transfer"),
154
+ });
147
155
  /** Discriminated union of all conversation flow node types. */
148
156
  export const FlowNodeSchema = z.discriminatedUnion("type", [
149
157
  ConversationNodeSchema,
@@ -157,6 +165,8 @@ export const FlowNodeSchema = z.discriminatedUnion("type", [
157
165
  ExtractDynamicVariablesNodeSchema,
158
166
  AgentSwapNodeSchema,
159
167
  McpNodeSchema,
168
+ BridgeTransferNodeSchema,
169
+ CancelTransferNodeSchema,
160
170
  ]);
161
171
  // ---------------------------------------------------------------------------
162
172
  // Flow components
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AgentLanguageSchema, AmbientSoundSchema, CallStatusSchema, ChatStatusSchema, ChatTypeSchema, DataStorageSettingSchema, DenoisingModeSchema, DisconnectionReasonSchema, EquationCombinatorSchema, EquationOperatorSchema, FlowInstructionTypeSchema, FlowNodeTypeSchema, FlowTransitionConditionTypeSchema, LlmModelSchema, LlmToolTypeSchema, ToolHttpMethodSchema, ToolParameterTypeSchema, PiiCategorySchema, PronunciationAlphabetSchema, S2sModelSchema, StartSpeakerSchema, SttModeSchema, UserSentimentSchema, VocabSpecializationSchema, VoiceEmotionSchema, VoicemailActionTypeSchema, VoiceModelSchema, WebhookEventSchema, } from "./enums.js";
1
+ export { AgentLanguageSchema, AmbientSoundSchema, CallStatusSchema, ChatStatusSchema, ChatTypeSchema, DataStorageSettingSchema, DenoisingModeSchema, DisconnectionReasonSchema, EquationCombinatorSchema, EquationOperatorSchema, FlowInstructionTypeSchema, FlowTransitionConditionTypeSchema, LlmModelSchema, LlmToolTypeSchema, ToolHttpMethodSchema, ToolParameterTypeSchema, PiiCategorySchema, PronunciationAlphabetSchema, S2sModelSchema, StartSpeakerSchema, SttModeSchema, UserSentimentSchema, VocabSpecializationSchema, VoiceEmotionSchema, VoicemailActionTypeSchema, VoiceModelSchema, WebhookEventSchema, } from "./enums.js";
2
2
  export { CallLatencySchema, LatencyMetricSchema } from "./latency.js";
3
3
  export { CallCostSchema, ChatCostSchema, LlmTokenUsageSchema, ProductCostSchema, } from "./cost.js";
4
4
  export { DTMFSchema, NodeTransitionSchema, TimestampedUtteranceSchema, ToolCallInvocationSchema, ToolCallResultSchema, TranscriptEntrySchema, UtteranceSchema, WordTimestampSchema, } from "./transcript.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Enums
2
- export { AgentLanguageSchema, AmbientSoundSchema, CallStatusSchema, ChatStatusSchema, ChatTypeSchema, DataStorageSettingSchema, DenoisingModeSchema, DisconnectionReasonSchema, EquationCombinatorSchema, EquationOperatorSchema, FlowInstructionTypeSchema, FlowNodeTypeSchema, FlowTransitionConditionTypeSchema, LlmModelSchema, LlmToolTypeSchema, ToolHttpMethodSchema, ToolParameterTypeSchema, PiiCategorySchema, PronunciationAlphabetSchema, S2sModelSchema, StartSpeakerSchema, SttModeSchema, UserSentimentSchema, VocabSpecializationSchema, VoiceEmotionSchema, VoicemailActionTypeSchema, VoiceModelSchema, WebhookEventSchema, } from "./enums.js";
2
+ export { AgentLanguageSchema, AmbientSoundSchema, CallStatusSchema, ChatStatusSchema, ChatTypeSchema, DataStorageSettingSchema, DenoisingModeSchema, DisconnectionReasonSchema, EquationCombinatorSchema, EquationOperatorSchema, FlowInstructionTypeSchema, FlowTransitionConditionTypeSchema, LlmModelSchema, LlmToolTypeSchema, ToolHttpMethodSchema, ToolParameterTypeSchema, PiiCategorySchema, PronunciationAlphabetSchema, S2sModelSchema, StartSpeakerSchema, SttModeSchema, UserSentimentSchema, VocabSpecializationSchema, VoiceEmotionSchema, VoicemailActionTypeSchema, VoiceModelSchema, WebhookEventSchema, } from "./enums.js";
3
3
  // Latency
4
4
  export { CallLatencySchema, LatencyMetricSchema } from "./latency.js";
5
5
  // Cost
package/dist/llm.d.ts CHANGED
@@ -9,10 +9,6 @@ export declare const TransferDestinationSchema: z.ZodObject<{
9
9
  /** Transfer option configuration (warm/cold transfer behavior). */
10
10
  export declare const TransferOptionSchema: z.ZodObject<{
11
11
  type: z.ZodOptional<z.ZodString>;
12
- option: z.ZodOptional<z.ZodObject<{
13
- type: z.ZodOptional<z.ZodString>;
14
- prompt: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>>;
16
12
  public_handoff_option: z.ZodOptional<z.ZodObject<{
17
13
  type: z.ZodOptional<z.ZodString>;
18
14
  prompt: z.ZodOptional<z.ZodString>;
@@ -27,6 +23,11 @@ export declare const TransferOptionSchema: z.ZodObject<{
27
23
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
28
24
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
29
25
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
26
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
27
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
28
+ sip_refer: "sip_refer";
29
+ sip_invite: "sip_invite";
30
+ }>>;
30
31
  }, z.core.$strip>;
31
32
  /**
32
33
  * Schema for an LLM tool. Tools are highly polymorphic (end_call,
@@ -35,15 +36,15 @@ export declare const TransferOptionSchema: z.ZodObject<{
35
36
  */
36
37
  export declare const LlmToolSchema: z.ZodObject<{
37
38
  type: z.ZodEnum<{
38
- transfer_call: "transfer_call";
39
- press_digit: "press_digit";
40
- agent_swap: "agent_swap";
41
- mcp: "mcp";
39
+ custom: "custom";
42
40
  end_call: "end_call";
41
+ transfer_call: "transfer_call";
43
42
  check_availability_cal: "check_availability_cal";
44
43
  book_appointment_cal: "book_appointment_cal";
45
- custom: "custom";
44
+ press_digit: "press_digit";
46
45
  extract_dynamic_variable: "extract_dynamic_variable";
46
+ agent_swap: "agent_swap";
47
+ mcp: "mcp";
47
48
  send_sms: "send_sms";
48
49
  }>;
49
50
  name: z.ZodOptional<z.ZodString>;
@@ -78,10 +79,6 @@ export declare const LlmToolSchema: z.ZodObject<{
78
79
  }, z.core.$strip>>;
79
80
  transfer_option: z.ZodOptional<z.ZodObject<{
80
81
  type: z.ZodOptional<z.ZodString>;
81
- option: z.ZodOptional<z.ZodObject<{
82
- type: z.ZodOptional<z.ZodString>;
83
- prompt: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strip>>;
85
82
  public_handoff_option: z.ZodOptional<z.ZodObject<{
86
83
  type: z.ZodOptional<z.ZodString>;
87
84
  prompt: z.ZodOptional<z.ZodString>;
@@ -96,6 +93,11 @@ export declare const LlmToolSchema: z.ZodObject<{
96
93
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
97
94
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
98
95
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
96
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
97
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
98
+ sip_refer: "sip_refer";
99
+ sip_invite: "sip_invite";
100
+ }>>;
99
101
  }, z.core.$strip>>;
100
102
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
101
103
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -119,15 +121,15 @@ export declare const LlmStateSchema: z.ZodObject<{
119
121
  }, z.core.$strip>>>;
120
122
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
121
123
  type: z.ZodEnum<{
122
- transfer_call: "transfer_call";
123
- press_digit: "press_digit";
124
- agent_swap: "agent_swap";
125
- mcp: "mcp";
124
+ custom: "custom";
126
125
  end_call: "end_call";
126
+ transfer_call: "transfer_call";
127
127
  check_availability_cal: "check_availability_cal";
128
128
  book_appointment_cal: "book_appointment_cal";
129
- custom: "custom";
129
+ press_digit: "press_digit";
130
130
  extract_dynamic_variable: "extract_dynamic_variable";
131
+ agent_swap: "agent_swap";
132
+ mcp: "mcp";
131
133
  send_sms: "send_sms";
132
134
  }>;
133
135
  name: z.ZodOptional<z.ZodString>;
@@ -162,10 +164,6 @@ export declare const LlmStateSchema: z.ZodObject<{
162
164
  }, z.core.$strip>>;
163
165
  transfer_option: z.ZodOptional<z.ZodObject<{
164
166
  type: z.ZodOptional<z.ZodString>;
165
- option: z.ZodOptional<z.ZodObject<{
166
- type: z.ZodOptional<z.ZodString>;
167
- prompt: z.ZodOptional<z.ZodString>;
168
- }, z.core.$strip>>;
169
167
  public_handoff_option: z.ZodOptional<z.ZodObject<{
170
168
  type: z.ZodOptional<z.ZodString>;
171
169
  prompt: z.ZodOptional<z.ZodString>;
@@ -180,6 +178,11 @@ export declare const LlmStateSchema: z.ZodObject<{
180
178
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
181
179
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
182
180
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
181
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
182
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
183
+ sip_refer: "sip_refer";
184
+ sip_invite: "sip_invite";
185
+ }>>;
183
186
  }, z.core.$strip>>;
184
187
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
185
188
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -231,15 +234,15 @@ export declare const LlmResponseSchema: z.ZodObject<{
231
234
  general_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
235
  general_tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
233
236
  type: z.ZodEnum<{
234
- transfer_call: "transfer_call";
235
- press_digit: "press_digit";
236
- agent_swap: "agent_swap";
237
- mcp: "mcp";
237
+ custom: "custom";
238
238
  end_call: "end_call";
239
+ transfer_call: "transfer_call";
239
240
  check_availability_cal: "check_availability_cal";
240
241
  book_appointment_cal: "book_appointment_cal";
241
- custom: "custom";
242
+ press_digit: "press_digit";
242
243
  extract_dynamic_variable: "extract_dynamic_variable";
244
+ agent_swap: "agent_swap";
245
+ mcp: "mcp";
243
246
  send_sms: "send_sms";
244
247
  }>;
245
248
  name: z.ZodOptional<z.ZodString>;
@@ -274,10 +277,6 @@ export declare const LlmResponseSchema: z.ZodObject<{
274
277
  }, z.core.$strip>>;
275
278
  transfer_option: z.ZodOptional<z.ZodObject<{
276
279
  type: z.ZodOptional<z.ZodString>;
277
- option: z.ZodOptional<z.ZodObject<{
278
- type: z.ZodOptional<z.ZodString>;
279
- prompt: z.ZodOptional<z.ZodString>;
280
- }, z.core.$strip>>;
281
280
  public_handoff_option: z.ZodOptional<z.ZodObject<{
282
281
  type: z.ZodOptional<z.ZodString>;
283
282
  prompt: z.ZodOptional<z.ZodString>;
@@ -292,6 +291,11 @@ export declare const LlmResponseSchema: z.ZodObject<{
292
291
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
293
292
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
294
293
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
294
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
295
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
296
+ sip_refer: "sip_refer";
297
+ sip_invite: "sip_invite";
298
+ }>>;
295
299
  }, z.core.$strip>>;
296
300
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
297
301
  cal_api_key: z.ZodOptional<z.ZodString>;
@@ -308,15 +312,15 @@ export declare const LlmResponseSchema: z.ZodObject<{
308
312
  }, z.core.$strip>>>;
309
313
  tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
310
314
  type: z.ZodEnum<{
311
- transfer_call: "transfer_call";
312
- press_digit: "press_digit";
313
- agent_swap: "agent_swap";
314
- mcp: "mcp";
315
+ custom: "custom";
315
316
  end_call: "end_call";
317
+ transfer_call: "transfer_call";
316
318
  check_availability_cal: "check_availability_cal";
317
319
  book_appointment_cal: "book_appointment_cal";
318
- custom: "custom";
320
+ press_digit: "press_digit";
319
321
  extract_dynamic_variable: "extract_dynamic_variable";
322
+ agent_swap: "agent_swap";
323
+ mcp: "mcp";
320
324
  send_sms: "send_sms";
321
325
  }>;
322
326
  name: z.ZodOptional<z.ZodString>;
@@ -351,10 +355,6 @@ export declare const LlmResponseSchema: z.ZodObject<{
351
355
  }, z.core.$strip>>;
352
356
  transfer_option: z.ZodOptional<z.ZodObject<{
353
357
  type: z.ZodOptional<z.ZodString>;
354
- option: z.ZodOptional<z.ZodObject<{
355
- type: z.ZodOptional<z.ZodString>;
356
- prompt: z.ZodOptional<z.ZodString>;
357
- }, z.core.$strip>>;
358
358
  public_handoff_option: z.ZodOptional<z.ZodObject<{
359
359
  type: z.ZodOptional<z.ZodString>;
360
360
  prompt: z.ZodOptional<z.ZodString>;
@@ -369,6 +369,11 @@ export declare const LlmResponseSchema: z.ZodObject<{
369
369
  agent_detection_timeout_ms: z.ZodOptional<z.ZodNumber>;
370
370
  show_transferee_as_caller: z.ZodOptional<z.ZodBoolean>;
371
371
  enable_bridge_audio_cue: z.ZodOptional<z.ZodBoolean>;
372
+ transfer_ring_duration_ms: z.ZodOptional<z.ZodNumber>;
373
+ cold_transfer_mode: z.ZodOptional<z.ZodEnum<{
374
+ sip_refer: "sip_refer";
375
+ sip_invite: "sip_invite";
376
+ }>>;
372
377
  }, z.core.$strip>>;
373
378
  custom_sip_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
374
379
  cal_api_key: z.ZodOptional<z.ZodString>;
package/dist/llm.js CHANGED
@@ -19,7 +19,6 @@ export const TransferDestinationSchema = z.object({
19
19
  /** Transfer option configuration (warm/cold transfer behavior). */
20
20
  export const TransferOptionSchema = z.object({
21
21
  type: z.string().optional(),
22
- option: HandoffOptionSchema.optional(),
23
22
  public_handoff_option: HandoffOptionSchema.optional(),
24
23
  private_handoff_option: HandoffOptionSchema.optional(),
25
24
  on_hold_music: z.string().optional(),
@@ -28,6 +27,8 @@ export const TransferOptionSchema = z.object({
28
27
  agent_detection_timeout_ms: z.number().optional(),
29
28
  show_transferee_as_caller: z.boolean().optional(),
30
29
  enable_bridge_audio_cue: z.boolean().optional(),
30
+ transfer_ring_duration_ms: z.number().optional(),
31
+ cold_transfer_mode: z.enum(["sip_refer", "sip_invite"]).optional(),
31
32
  });
32
33
  // ---------------------------------------------------------------------------
33
34
  // Tools & states
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-utils",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Type-safe Zod schemas for Retell AI API resources with lifecycle-aware discriminated unions and generic customization",
5
5
  "type": "module",
6
6
  "zshy": {