retell-utils 0.5.0 → 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
  ]);