retell-utils 0.4.1 → 0.4.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/flow.d.ts +124 -0
- package/dist/flow.js +1 -0
- package/package.json +1 -1
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";
|
|
@@ -453,6 +484,37 @@ export declare const FlowComponentSchema: z.ZodObject<{
|
|
|
453
484
|
}>>;
|
|
454
485
|
}, z.core.$strip>>;
|
|
455
486
|
}, z.core.$strip>>;
|
|
487
|
+
always_edge: z.ZodOptional<z.ZodObject<{
|
|
488
|
+
id: z.ZodOptional<z.ZodString>;
|
|
489
|
+
destination_node_id: z.ZodOptional<z.ZodString>;
|
|
490
|
+
transition_condition: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
492
|
+
prompt: "prompt";
|
|
493
|
+
equation: "equation";
|
|
494
|
+
}>>;
|
|
495
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
496
|
+
equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
497
|
+
left: z.ZodString;
|
|
498
|
+
operator: z.ZodEnum<{
|
|
499
|
+
"==": "==";
|
|
500
|
+
"!=": "!=";
|
|
501
|
+
">": ">";
|
|
502
|
+
">=": ">=";
|
|
503
|
+
"<": "<";
|
|
504
|
+
"<=": "<=";
|
|
505
|
+
contains: "contains";
|
|
506
|
+
not_contains: "not_contains";
|
|
507
|
+
exists: "exists";
|
|
508
|
+
not_exist: "not_exist";
|
|
509
|
+
}>;
|
|
510
|
+
right: z.ZodOptional<z.ZodString>;
|
|
511
|
+
}, z.core.$strip>>>;
|
|
512
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
513
|
+
"||": "||";
|
|
514
|
+
"&&": "&&";
|
|
515
|
+
}>>;
|
|
516
|
+
}, z.core.$strip>>;
|
|
517
|
+
}, z.core.$strip>>;
|
|
456
518
|
start_speaker: z.ZodOptional<z.ZodEnum<{
|
|
457
519
|
user: "user";
|
|
458
520
|
agent: "agent";
|
|
@@ -865,6 +927,37 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
|
|
|
865
927
|
}>>;
|
|
866
928
|
}, z.core.$strip>>;
|
|
867
929
|
}, z.core.$strip>>;
|
|
930
|
+
always_edge: z.ZodOptional<z.ZodObject<{
|
|
931
|
+
id: z.ZodOptional<z.ZodString>;
|
|
932
|
+
destination_node_id: z.ZodOptional<z.ZodString>;
|
|
933
|
+
transition_condition: z.ZodOptional<z.ZodObject<{
|
|
934
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
935
|
+
prompt: "prompt";
|
|
936
|
+
equation: "equation";
|
|
937
|
+
}>>;
|
|
938
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
939
|
+
equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
940
|
+
left: z.ZodString;
|
|
941
|
+
operator: z.ZodEnum<{
|
|
942
|
+
"==": "==";
|
|
943
|
+
"!=": "!=";
|
|
944
|
+
">": ">";
|
|
945
|
+
">=": ">=";
|
|
946
|
+
"<": "<";
|
|
947
|
+
"<=": "<=";
|
|
948
|
+
contains: "contains";
|
|
949
|
+
not_contains: "not_contains";
|
|
950
|
+
exists: "exists";
|
|
951
|
+
not_exist: "not_exist";
|
|
952
|
+
}>;
|
|
953
|
+
right: z.ZodOptional<z.ZodString>;
|
|
954
|
+
}, z.core.$strip>>>;
|
|
955
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
956
|
+
"||": "||";
|
|
957
|
+
"&&": "&&";
|
|
958
|
+
}>>;
|
|
959
|
+
}, z.core.$strip>>;
|
|
960
|
+
}, z.core.$strip>>;
|
|
868
961
|
start_speaker: z.ZodOptional<z.ZodEnum<{
|
|
869
962
|
user: "user";
|
|
870
963
|
agent: "agent";
|
|
@@ -1169,6 +1262,37 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
|
|
|
1169
1262
|
}>>;
|
|
1170
1263
|
}, z.core.$strip>>;
|
|
1171
1264
|
}, z.core.$strip>>;
|
|
1265
|
+
always_edge: z.ZodOptional<z.ZodObject<{
|
|
1266
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
destination_node_id: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
transition_condition: z.ZodOptional<z.ZodObject<{
|
|
1269
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1270
|
+
prompt: "prompt";
|
|
1271
|
+
equation: "equation";
|
|
1272
|
+
}>>;
|
|
1273
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
equations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1275
|
+
left: z.ZodString;
|
|
1276
|
+
operator: z.ZodEnum<{
|
|
1277
|
+
"==": "==";
|
|
1278
|
+
"!=": "!=";
|
|
1279
|
+
">": ">";
|
|
1280
|
+
">=": ">=";
|
|
1281
|
+
"<": "<";
|
|
1282
|
+
"<=": "<=";
|
|
1283
|
+
contains: "contains";
|
|
1284
|
+
not_contains: "not_contains";
|
|
1285
|
+
exists: "exists";
|
|
1286
|
+
not_exist: "not_exist";
|
|
1287
|
+
}>;
|
|
1288
|
+
right: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>>>;
|
|
1290
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
1291
|
+
"||": "||";
|
|
1292
|
+
"&&": "&&";
|
|
1293
|
+
}>>;
|
|
1294
|
+
}, z.core.$strip>>;
|
|
1295
|
+
}, z.core.$strip>>;
|
|
1172
1296
|
start_speaker: z.ZodOptional<z.ZodEnum<{
|
|
1173
1297
|
user: "user";
|
|
1174
1298
|
agent: "agent";
|
package/dist/flow.js
CHANGED
|
@@ -68,6 +68,7 @@ export const FlowNodeSchema = z.object({
|
|
|
68
68
|
edge: FlowEdgeSchema.optional(),
|
|
69
69
|
else_edge: FlowEdgeSchema.optional(),
|
|
70
70
|
skip_response_edge: FlowEdgeSchema.optional(),
|
|
71
|
+
always_edge: FlowEdgeSchema.optional(),
|
|
71
72
|
// Conversation node fields
|
|
72
73
|
start_speaker: StartSpeakerSchema.optional(),
|
|
73
74
|
global_node_setting: GlobalNodeSettingSchema.optional(),
|
package/package.json
CHANGED