retell-utils 0.5.5 → 0.5.6
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 +100 -0
- package/dist/flow.js +7 -9
- package/package.json +1 -1
package/dist/flow.d.ts
CHANGED
|
@@ -351,6 +351,26 @@ export declare const FlowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
351
351
|
}, z.core.$strip>>>;
|
|
352
352
|
cool_down: z.ZodOptional<z.ZodNumber>;
|
|
353
353
|
}, z.core.$strip>>;
|
|
354
|
+
model_choice: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"cascading">;
|
|
356
|
+
model: z.ZodEnum<{
|
|
357
|
+
"gpt-4.1": "gpt-4.1";
|
|
358
|
+
"gpt-4.1-mini": "gpt-4.1-mini";
|
|
359
|
+
"gpt-4.1-nano": "gpt-4.1-nano";
|
|
360
|
+
"gpt-5": "gpt-5";
|
|
361
|
+
"gpt-5.1": "gpt-5.1";
|
|
362
|
+
"gpt-5.2": "gpt-5.2";
|
|
363
|
+
"gpt-5-mini": "gpt-5-mini";
|
|
364
|
+
"gpt-5-nano": "gpt-5-nano";
|
|
365
|
+
"claude-4.5-sonnet": "claude-4.5-sonnet";
|
|
366
|
+
"claude-4.5-haiku": "claude-4.5-haiku";
|
|
367
|
+
"claude-4.6-sonnet": "claude-4.6-sonnet";
|
|
368
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
369
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
370
|
+
"gemini-3.0-flash": "gemini-3.0-flash";
|
|
371
|
+
}>;
|
|
372
|
+
high_priority: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
354
374
|
id: z.ZodString;
|
|
355
375
|
name: z.ZodString;
|
|
356
376
|
display_position: z.ZodDefault<z.ZodObject<{
|
|
@@ -963,6 +983,26 @@ export declare const FlowComponentSchema: z.ZodObject<{
|
|
|
963
983
|
}, z.core.$strip>>>;
|
|
964
984
|
cool_down: z.ZodOptional<z.ZodNumber>;
|
|
965
985
|
}, z.core.$strip>>;
|
|
986
|
+
model_choice: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
type: z.ZodLiteral<"cascading">;
|
|
988
|
+
model: z.ZodEnum<{
|
|
989
|
+
"gpt-4.1": "gpt-4.1";
|
|
990
|
+
"gpt-4.1-mini": "gpt-4.1-mini";
|
|
991
|
+
"gpt-4.1-nano": "gpt-4.1-nano";
|
|
992
|
+
"gpt-5": "gpt-5";
|
|
993
|
+
"gpt-5.1": "gpt-5.1";
|
|
994
|
+
"gpt-5.2": "gpt-5.2";
|
|
995
|
+
"gpt-5-mini": "gpt-5-mini";
|
|
996
|
+
"gpt-5-nano": "gpt-5-nano";
|
|
997
|
+
"claude-4.5-sonnet": "claude-4.5-sonnet";
|
|
998
|
+
"claude-4.5-haiku": "claude-4.5-haiku";
|
|
999
|
+
"claude-4.6-sonnet": "claude-4.6-sonnet";
|
|
1000
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
1001
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
1002
|
+
"gemini-3.0-flash": "gemini-3.0-flash";
|
|
1003
|
+
}>;
|
|
1004
|
+
high_priority: z.ZodOptional<z.ZodBoolean>;
|
|
1005
|
+
}, z.core.$strip>>;
|
|
966
1006
|
id: z.ZodString;
|
|
967
1007
|
name: z.ZodString;
|
|
968
1008
|
display_position: z.ZodDefault<z.ZodObject<{
|
|
@@ -1660,6 +1700,26 @@ export declare const ConversationFlowComponentResponseSchema: z.ZodObject<{
|
|
|
1660
1700
|
}, z.core.$strip>>>;
|
|
1661
1701
|
cool_down: z.ZodOptional<z.ZodNumber>;
|
|
1662
1702
|
}, z.core.$strip>>;
|
|
1703
|
+
model_choice: z.ZodOptional<z.ZodObject<{
|
|
1704
|
+
type: z.ZodLiteral<"cascading">;
|
|
1705
|
+
model: z.ZodEnum<{
|
|
1706
|
+
"gpt-4.1": "gpt-4.1";
|
|
1707
|
+
"gpt-4.1-mini": "gpt-4.1-mini";
|
|
1708
|
+
"gpt-4.1-nano": "gpt-4.1-nano";
|
|
1709
|
+
"gpt-5": "gpt-5";
|
|
1710
|
+
"gpt-5.1": "gpt-5.1";
|
|
1711
|
+
"gpt-5.2": "gpt-5.2";
|
|
1712
|
+
"gpt-5-mini": "gpt-5-mini";
|
|
1713
|
+
"gpt-5-nano": "gpt-5-nano";
|
|
1714
|
+
"claude-4.5-sonnet": "claude-4.5-sonnet";
|
|
1715
|
+
"claude-4.5-haiku": "claude-4.5-haiku";
|
|
1716
|
+
"claude-4.6-sonnet": "claude-4.6-sonnet";
|
|
1717
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
1718
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
1719
|
+
"gemini-3.0-flash": "gemini-3.0-flash";
|
|
1720
|
+
}>;
|
|
1721
|
+
high_priority: z.ZodOptional<z.ZodBoolean>;
|
|
1722
|
+
}, z.core.$strip>>;
|
|
1663
1723
|
id: z.ZodString;
|
|
1664
1724
|
name: z.ZodString;
|
|
1665
1725
|
display_position: z.ZodDefault<z.ZodObject<{
|
|
@@ -2462,6 +2522,26 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
|
|
|
2462
2522
|
}, z.core.$strip>>>;
|
|
2463
2523
|
cool_down: z.ZodOptional<z.ZodNumber>;
|
|
2464
2524
|
}, z.core.$strip>>;
|
|
2525
|
+
model_choice: z.ZodOptional<z.ZodObject<{
|
|
2526
|
+
type: z.ZodLiteral<"cascading">;
|
|
2527
|
+
model: z.ZodEnum<{
|
|
2528
|
+
"gpt-4.1": "gpt-4.1";
|
|
2529
|
+
"gpt-4.1-mini": "gpt-4.1-mini";
|
|
2530
|
+
"gpt-4.1-nano": "gpt-4.1-nano";
|
|
2531
|
+
"gpt-5": "gpt-5";
|
|
2532
|
+
"gpt-5.1": "gpt-5.1";
|
|
2533
|
+
"gpt-5.2": "gpt-5.2";
|
|
2534
|
+
"gpt-5-mini": "gpt-5-mini";
|
|
2535
|
+
"gpt-5-nano": "gpt-5-nano";
|
|
2536
|
+
"claude-4.5-sonnet": "claude-4.5-sonnet";
|
|
2537
|
+
"claude-4.5-haiku": "claude-4.5-haiku";
|
|
2538
|
+
"claude-4.6-sonnet": "claude-4.6-sonnet";
|
|
2539
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
2540
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
2541
|
+
"gemini-3.0-flash": "gemini-3.0-flash";
|
|
2542
|
+
}>;
|
|
2543
|
+
high_priority: z.ZodOptional<z.ZodBoolean>;
|
|
2544
|
+
}, z.core.$strip>>;
|
|
2465
2545
|
id: z.ZodString;
|
|
2466
2546
|
name: z.ZodString;
|
|
2467
2547
|
display_position: z.ZodDefault<z.ZodObject<{
|
|
@@ -3153,6 +3233,26 @@ export declare const ConversationFlowResponseSchema: z.ZodObject<{
|
|
|
3153
3233
|
}, z.core.$strip>>>;
|
|
3154
3234
|
cool_down: z.ZodOptional<z.ZodNumber>;
|
|
3155
3235
|
}, z.core.$strip>>;
|
|
3236
|
+
model_choice: z.ZodOptional<z.ZodObject<{
|
|
3237
|
+
type: z.ZodLiteral<"cascading">;
|
|
3238
|
+
model: z.ZodEnum<{
|
|
3239
|
+
"gpt-4.1": "gpt-4.1";
|
|
3240
|
+
"gpt-4.1-mini": "gpt-4.1-mini";
|
|
3241
|
+
"gpt-4.1-nano": "gpt-4.1-nano";
|
|
3242
|
+
"gpt-5": "gpt-5";
|
|
3243
|
+
"gpt-5.1": "gpt-5.1";
|
|
3244
|
+
"gpt-5.2": "gpt-5.2";
|
|
3245
|
+
"gpt-5-mini": "gpt-5-mini";
|
|
3246
|
+
"gpt-5-nano": "gpt-5-nano";
|
|
3247
|
+
"claude-4.5-sonnet": "claude-4.5-sonnet";
|
|
3248
|
+
"claude-4.5-haiku": "claude-4.5-haiku";
|
|
3249
|
+
"claude-4.6-sonnet": "claude-4.6-sonnet";
|
|
3250
|
+
"gemini-2.5-flash": "gemini-2.5-flash";
|
|
3251
|
+
"gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
|
|
3252
|
+
"gemini-3.0-flash": "gemini-3.0-flash";
|
|
3253
|
+
}>;
|
|
3254
|
+
high_priority: z.ZodOptional<z.ZodBoolean>;
|
|
3255
|
+
}, z.core.$strip>>;
|
|
3156
3256
|
id: z.ZodString;
|
|
3157
3257
|
name: z.ZodString;
|
|
3158
3258
|
display_position: z.ZodDefault<z.ZodObject<{
|
package/dist/flow.js
CHANGED
|
@@ -10,6 +10,12 @@ const DisplayPositionSchema = z.object({
|
|
|
10
10
|
x: z.number(),
|
|
11
11
|
y: z.number(),
|
|
12
12
|
});
|
|
13
|
+
/** Model selection configuration for conversation flows and nodes. */
|
|
14
|
+
const FlowModelChoiceSchema = z.object({
|
|
15
|
+
type: z.literal("cascading"),
|
|
16
|
+
model: LlmModelSchema,
|
|
17
|
+
high_priority: z.boolean().optional(),
|
|
18
|
+
});
|
|
13
19
|
// ---------------------------------------------------------------------------
|
|
14
20
|
// Flow nodes & edges
|
|
15
21
|
// ---------------------------------------------------------------------------
|
|
@@ -106,6 +112,7 @@ const FunctionNodeSchema = z.object({
|
|
|
106
112
|
edges: z.array(FlowEdgeSchema),
|
|
107
113
|
else_edge: FlowEdgeSchema.optional(),
|
|
108
114
|
global_node_setting: GlobalNodeSettingSchema.optional(),
|
|
115
|
+
model_choice: FlowModelChoiceSchema.optional(),
|
|
109
116
|
});
|
|
110
117
|
const TransferCallNodeSchema = z.object({
|
|
111
118
|
...baseNodeFields,
|
|
@@ -206,15 +213,6 @@ export const ConversationFlowComponentResponseSchema = z.object({
|
|
|
206
213
|
begin_tag_display_position: DisplayPositionSchema.nullable().optional(),
|
|
207
214
|
});
|
|
208
215
|
// ---------------------------------------------------------------------------
|
|
209
|
-
// Model choice
|
|
210
|
-
// ---------------------------------------------------------------------------
|
|
211
|
-
/** Model selection configuration for conversation flows. */
|
|
212
|
-
const FlowModelChoiceSchema = z.object({
|
|
213
|
-
type: z.literal("cascading"),
|
|
214
|
-
model: LlmModelSchema,
|
|
215
|
-
high_priority: z.boolean().optional(),
|
|
216
|
-
});
|
|
217
|
-
// ---------------------------------------------------------------------------
|
|
218
216
|
// Conversation flow response
|
|
219
217
|
// ---------------------------------------------------------------------------
|
|
220
218
|
/** Zod schema for a conversation flow response from the Retell API. */
|
package/package.json
CHANGED