retell-utils 0.4.1 → 0.4.3

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
@@ -228,6 +228,37 @@ export declare const FlowNodeSchema: z.ZodObject<{
228
228
  }>>;
229
229
  }, z.core.$strip>>;
230
230
  }, z.core.$strip>>;
231
+ always_edge: z.ZodOptional<z.ZodObject<{
232
+ id: z.ZodOptional<z.ZodString>;
233
+ destination_node_id: z.ZodOptional<z.ZodString>;
234
+ transition_condition: z.ZodOptional<z.ZodObject<{
235
+ type: z.ZodOptional<z.ZodEnum<{
236
+ prompt: "prompt";
237
+ equation: "equation";
238
+ }>>;
239
+ prompt: z.ZodOptional<z.ZodString>;
240
+ equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
+ left: z.ZodString;
242
+ operator: z.ZodEnum<{
243
+ "==": "==";
244
+ "!=": "!=";
245
+ ">": ">";
246
+ ">=": ">=";
247
+ "<": "<";
248
+ "<=": "<=";
249
+ contains: "contains";
250
+ not_contains: "not_contains";
251
+ exists: "exists";
252
+ not_exist: "not_exist";
253
+ }>;
254
+ right: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>>>;
256
+ operator: z.ZodOptional<z.ZodEnum<{
257
+ "||": "||";
258
+ "&&": "&&";
259
+ }>>;
260
+ }, z.core.$strip>>;
261
+ }, z.core.$strip>>;
231
262
  start_speaker: z.ZodOptional<z.ZodEnum<{
232
263
  user: "user";
233
264
  agent: "agent";
@@ -250,6 +281,7 @@ export declare const FlowNodeSchema: z.ZodObject<{
250
281
  content: z.ZodOptional<z.ZodString>;
251
282
  }, z.core.$strip>>>;
252
283
  }, z.core.$strip>>>;
284
+ cool_down: z.ZodOptional<z.ZodNumber>;
253
285
  }, z.core.$strip>>;
254
286
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
255
287
  id: z.ZodOptional<z.ZodString>;
@@ -453,6 +485,37 @@ export declare const FlowComponentSchema: z.ZodObject<{
453
485
  }>>;
454
486
  }, z.core.$strip>>;
455
487
  }, z.core.$strip>>;
488
+ always_edge: z.ZodOptional<z.ZodObject<{
489
+ id: z.ZodOptional<z.ZodString>;
490
+ destination_node_id: z.ZodOptional<z.ZodString>;
491
+ transition_condition: z.ZodOptional<z.ZodObject<{
492
+ type: z.ZodOptional<z.ZodEnum<{
493
+ prompt: "prompt";
494
+ equation: "equation";
495
+ }>>;
496
+ prompt: z.ZodOptional<z.ZodString>;
497
+ equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
498
+ left: z.ZodString;
499
+ operator: z.ZodEnum<{
500
+ "==": "==";
501
+ "!=": "!=";
502
+ ">": ">";
503
+ ">=": ">=";
504
+ "<": "<";
505
+ "<=": "<=";
506
+ contains: "contains";
507
+ not_contains: "not_contains";
508
+ exists: "exists";
509
+ not_exist: "not_exist";
510
+ }>;
511
+ right: z.ZodOptional<z.ZodString>;
512
+ }, z.core.$strip>>>;
513
+ operator: z.ZodOptional<z.ZodEnum<{
514
+ "||": "||";
515
+ "&&": "&&";
516
+ }>>;
517
+ }, z.core.$strip>>;
518
+ }, z.core.$strip>>;
456
519
  start_speaker: z.ZodOptional<z.ZodEnum<{
457
520
  user: "user";
458
521
  agent: "agent";
@@ -475,6 +538,7 @@ export declare const FlowComponentSchema: z.ZodObject<{
475
538
  content: z.ZodOptional<z.ZodString>;
476
539
  }, z.core.$strip>>>;
477
540
  }, z.core.$strip>>>;
541
+ cool_down: z.ZodOptional<z.ZodNumber>;
478
542
  }, z.core.$strip>>;
479
543
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
480
544
  id: z.ZodOptional<z.ZodString>;
@@ -865,6 +929,37 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
865
929
  }>>;
866
930
  }, z.core.$strip>>;
867
931
  }, z.core.$strip>>;
932
+ always_edge: z.ZodOptional<z.ZodObject<{
933
+ id: z.ZodOptional<z.ZodString>;
934
+ destination_node_id: z.ZodOptional<z.ZodString>;
935
+ transition_condition: z.ZodOptional<z.ZodObject<{
936
+ type: z.ZodOptional<z.ZodEnum<{
937
+ prompt: "prompt";
938
+ equation: "equation";
939
+ }>>;
940
+ prompt: z.ZodOptional<z.ZodString>;
941
+ equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
942
+ left: z.ZodString;
943
+ operator: z.ZodEnum<{
944
+ "==": "==";
945
+ "!=": "!=";
946
+ ">": ">";
947
+ ">=": ">=";
948
+ "<": "<";
949
+ "<=": "<=";
950
+ contains: "contains";
951
+ not_contains: "not_contains";
952
+ exists: "exists";
953
+ not_exist: "not_exist";
954
+ }>;
955
+ right: z.ZodOptional<z.ZodString>;
956
+ }, z.core.$strip>>>;
957
+ operator: z.ZodOptional<z.ZodEnum<{
958
+ "||": "||";
959
+ "&&": "&&";
960
+ }>>;
961
+ }, z.core.$strip>>;
962
+ }, z.core.$strip>>;
868
963
  start_speaker: z.ZodOptional<z.ZodEnum<{
869
964
  user: "user";
870
965
  agent: "agent";
@@ -887,6 +982,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
887
982
  content: z.ZodOptional<z.ZodString>;
888
983
  }, z.core.$strip>>>;
889
984
  }, z.core.$strip>>>;
985
+ cool_down: z.ZodOptional<z.ZodNumber>;
890
986
  }, z.core.$strip>>;
891
987
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
892
988
  id: z.ZodOptional<z.ZodString>;
@@ -1169,6 +1265,37 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1169
1265
  }>>;
1170
1266
  }, z.core.$strip>>;
1171
1267
  }, z.core.$strip>>;
1268
+ always_edge: z.ZodOptional<z.ZodObject<{
1269
+ id: z.ZodOptional<z.ZodString>;
1270
+ destination_node_id: z.ZodOptional<z.ZodString>;
1271
+ transition_condition: z.ZodOptional<z.ZodObject<{
1272
+ type: z.ZodOptional<z.ZodEnum<{
1273
+ prompt: "prompt";
1274
+ equation: "equation";
1275
+ }>>;
1276
+ prompt: z.ZodOptional<z.ZodString>;
1277
+ equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1278
+ left: z.ZodString;
1279
+ operator: z.ZodEnum<{
1280
+ "==": "==";
1281
+ "!=": "!=";
1282
+ ">": ">";
1283
+ ">=": ">=";
1284
+ "<": "<";
1285
+ "<=": "<=";
1286
+ contains: "contains";
1287
+ not_contains: "not_contains";
1288
+ exists: "exists";
1289
+ not_exist: "not_exist";
1290
+ }>;
1291
+ right: z.ZodOptional<z.ZodString>;
1292
+ }, z.core.$strip>>>;
1293
+ operator: z.ZodOptional<z.ZodEnum<{
1294
+ "||": "||";
1295
+ "&&": "&&";
1296
+ }>>;
1297
+ }, z.core.$strip>>;
1298
+ }, z.core.$strip>>;
1172
1299
  start_speaker: z.ZodOptional<z.ZodEnum<{
1173
1300
  user: "user";
1174
1301
  agent: "agent";
@@ -1191,6 +1318,7 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
1191
1318
  content: z.ZodOptional<z.ZodString>;
1192
1319
  }, z.core.$strip>>>;
1193
1320
  }, z.core.$strip>>>;
1321
+ cool_down: z.ZodOptional<z.ZodNumber>;
1194
1322
  }, z.core.$strip>>;
1195
1323
  finetune_transition_examples: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1196
1324
  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({
@@ -68,6 +69,7 @@ export const FlowNodeSchema = z.object({
68
69
  edge: FlowEdgeSchema.optional(),
69
70
  else_edge: FlowEdgeSchema.optional(),
70
71
  skip_response_edge: FlowEdgeSchema.optional(),
72
+ always_edge: FlowEdgeSchema.optional(),
71
73
  // Conversation node fields
72
74
  start_speaker: StartSpeakerSchema.optional(),
73
75
  global_node_setting: GlobalNodeSettingSchema.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-utils",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
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": {