retell-utils 0.4.2 → 0.4.4

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/flow.d.ts CHANGED
@@ -263,6 +263,7 @@ export declare const FlowNodeSchema: z.ZodObject<{
263
263
  user: "user";
264
264
  agent: "agent";
265
265
  }>>;
266
+ interruption_sensitivity: z.ZodOptional<z.ZodNumber>;
266
267
  global_node_setting: z.ZodOptional<z.ZodObject<{
267
268
  condition: z.ZodOptional<z.ZodString>;
268
269
  positive_finetune_examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -281,6 +282,7 @@ export declare const FlowNodeSchema: z.ZodObject<{
281
282
  content: z.ZodOptional<z.ZodString>;
282
283
  }, z.core.$strip>>>;
283
284
  }, z.core.$strip>>>;
285
+ cool_down: z.ZodOptional<z.ZodNumber>;
284
286
  }, z.core.$strip>>;
285
287
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
286
288
  id: z.ZodOptional<z.ZodString>;
@@ -332,6 +334,7 @@ export declare const FlowNodeSchema: z.ZodObject<{
332
334
  }, z.core.$strip>;
333
335
  /** A local component embedded within a conversation flow. */
334
336
  export declare const FlowComponentSchema: z.ZodObject<{
337
+ conversation_flow_component_id: z.ZodOptional<z.ZodString>;
335
338
  name: z.ZodOptional<z.ZodString>;
336
339
  nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
337
340
  id: z.ZodOptional<z.ZodString>;
@@ -519,6 +522,7 @@ export declare const FlowComponentSchema: z.ZodObject<{
519
522
  user: "user";
520
523
  agent: "agent";
521
524
  }>>;
525
+ interruption_sensitivity: z.ZodOptional<z.ZodNumber>;
522
526
  global_node_setting: z.ZodOptional<z.ZodObject<{
523
527
  condition: z.ZodOptional<z.ZodString>;
524
528
  positive_finetune_examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -537,6 +541,7 @@ export declare const FlowComponentSchema: z.ZodObject<{
537
541
  content: z.ZodOptional<z.ZodString>;
538
542
  }, z.core.$strip>>>;
539
543
  }, z.core.$strip>>>;
544
+ cool_down: z.ZodOptional<z.ZodNumber>;
540
545
  }, z.core.$strip>>;
541
546
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
542
547
  id: z.ZodOptional<z.ZodString>;
@@ -775,6 +780,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
775
780
  timezone: z.ZodOptional<z.ZodString>;
776
781
  }, z.core.$strip>>>>;
777
782
  components: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
783
+ conversation_flow_component_id: z.ZodOptional<z.ZodString>;
778
784
  name: z.ZodOptional<z.ZodString>;
779
785
  nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
780
786
  id: z.ZodOptional<z.ZodString>;
@@ -962,6 +968,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
962
968
  user: "user";
963
969
  agent: "agent";
964
970
  }>>;
971
+ interruption_sensitivity: z.ZodOptional<z.ZodNumber>;
965
972
  global_node_setting: z.ZodOptional<z.ZodObject<{
966
973
  condition: z.ZodOptional<z.ZodString>;
967
974
  positive_finetune_examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -980,6 +987,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
980
987
  content: z.ZodOptional<z.ZodString>;
981
988
  }, z.core.$strip>>>;
982
989
  }, z.core.$strip>>>;
990
+ cool_down: z.ZodOptional<z.ZodNumber>;
983
991
  }, z.core.$strip>>;
984
992
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
985
993
  id: z.ZodOptional<z.ZodString>;
@@ -1297,6 +1305,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1297
1305
  user: "user";
1298
1306
  agent: "agent";
1299
1307
  }>>;
1308
+ interruption_sensitivity: z.ZodOptional<z.ZodNumber>;
1300
1309
  global_node_setting: z.ZodOptional<z.ZodObject<{
1301
1310
  condition: z.ZodOptional<z.ZodString>;
1302
1311
  positive_finetune_examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1315,6 +1324,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1315
1324
  content: z.ZodOptional<z.ZodString>;
1316
1325
  }, z.core.$strip>>>;
1317
1326
  }, z.core.$strip>>>;
1327
+ cool_down: z.ZodOptional<z.ZodNumber>;
1318
1328
  }, z.core.$strip>>;
1319
1329
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1320
1330
  id: z.ZodOptional<z.ZodString>;
package/dist/flow.js CHANGED
@@ -49,6 +49,7 @@ const GlobalNodeSettingSchema = z.object({
49
49
  condition: z.string().optional(),
50
50
  positive_finetune_examples: z.array(FinetuneExampleSchema).optional(),
51
51
  negative_finetune_examples: z.array(FinetuneExampleSchema).optional(),
52
+ cool_down: z.number().optional(),
52
53
  });
53
54
  /** Schema for a conversation flow node with all known fields explicit. */
54
55
  export const FlowNodeSchema = z.object({
@@ -71,6 +72,7 @@ export const FlowNodeSchema = z.object({
71
72
  always_edge: FlowEdgeSchema.optional(),
72
73
  // Conversation node fields
73
74
  start_speaker: StartSpeakerSchema.optional(),
75
+ interruption_sensitivity: z.number().optional(),
74
76
  global_node_setting: GlobalNodeSettingSchema.optional(),
75
77
  finetune_transition_examples: z
76
78
  .array(FinetuneExampleSchema)
@@ -94,6 +96,7 @@ export const FlowNodeSchema = z.object({
94
96
  // ---------------------------------------------------------------------------
95
97
  /** A local component embedded within a conversation flow. */
96
98
  export const FlowComponentSchema = z.object({
99
+ conversation_flow_component_id: z.string().optional(),
97
100
  name: z.string().optional(),
98
101
  nodes: z.array(FlowNodeSchema).optional(),
99
102
  tools: z.array(LlmToolSchema).nullable().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-utils",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
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": {