retell-utils 0.4.4 → 0.4.5

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/call.d.ts CHANGED
@@ -262,6 +262,7 @@ export declare function createCallSchemas<TMeta extends z.ZodType, TDynVars exte
262
262
  error_unknown: "error_unknown";
263
263
  error_user_not_joined: "error_user_not_joined";
264
264
  registered_call_timeout: "registered_call_timeout";
265
+ unknown: "unknown";
265
266
  }>>;
266
267
  transcript: z.ZodOptional<z.ZodString>;
267
268
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -543,6 +544,7 @@ export declare function createCallSchemas<TMeta extends z.ZodType, TDynVars exte
543
544
  error_unknown: "error_unknown";
544
545
  error_user_not_joined: "error_user_not_joined";
545
546
  registered_call_timeout: "registered_call_timeout";
547
+ unknown: "unknown";
546
548
  }>>;
547
549
  transcript: z.ZodOptional<z.ZodString>;
548
550
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -928,6 +930,7 @@ export declare const CallSchemas: {
928
930
  error_unknown: "error_unknown";
929
931
  error_user_not_joined: "error_user_not_joined";
930
932
  registered_call_timeout: "registered_call_timeout";
933
+ unknown: "unknown";
931
934
  }>>;
932
935
  transcript: z.ZodOptional<z.ZodString>;
933
936
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1209,6 +1212,7 @@ export declare const CallSchemas: {
1209
1212
  error_unknown: "error_unknown";
1210
1213
  error_user_not_joined: "error_user_not_joined";
1211
1214
  registered_call_timeout: "registered_call_timeout";
1215
+ unknown: "unknown";
1212
1216
  }>>;
1213
1217
  transcript: z.ZodOptional<z.ZodString>;
1214
1218
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
package/dist/call.js CHANGED
@@ -95,10 +95,10 @@ export function createCallSchemas(config) {
95
95
  /** Call duration in milliseconds. */
96
96
  duration_ms: z.number().catch(0),
97
97
  /**
98
- * Why the call was disconnected. Falls back to "error_unknown" if
98
+ * Why the call was disconnected. Falls back to "unknown" if
99
99
  * missing/invalid.
100
100
  */
101
- disconnection_reason: DisconnectionReasonSchema.catch("error_unknown"),
101
+ disconnection_reason: DisconnectionReasonSchema.catch("unknown"),
102
102
  /** Plain-text transcript. May be absent if data storage settings strip it. */
103
103
  transcript: z.string().optional(),
104
104
  /** Structured transcript with word-level timestamps. */
package/dist/enums.d.ts CHANGED
@@ -51,6 +51,7 @@ export declare const DisconnectionReasonSchema: z.ZodEnum<{
51
51
  error_unknown: "error_unknown";
52
52
  error_user_not_joined: "error_user_not_joined";
53
53
  registered_call_timeout: "registered_call_timeout";
54
+ unknown: "unknown";
54
55
  }>;
55
56
  /** User sentiment as determined by post-call/chat analysis. */
56
57
  export declare const UserSentimentSchema: z.ZodEnum<{
package/dist/enums.js CHANGED
@@ -48,6 +48,7 @@ export const DisconnectionReasonSchema = z.enum([
48
48
  "error_unknown",
49
49
  "error_user_not_joined",
50
50
  "registered_call_timeout",
51
+ "unknown",
51
52
  ]);
52
53
  /** User sentiment as determined by post-call/chat analysis. */
53
54
  export const UserSentimentSchema = z.enum([
package/dist/webhook.d.ts CHANGED
@@ -275,6 +275,7 @@ export declare const WebhookSchemas: {
275
275
  error_unknown: "error_unknown";
276
276
  error_user_not_joined: "error_user_not_joined";
277
277
  registered_call_timeout: "registered_call_timeout";
278
+ unknown: "unknown";
278
279
  }>>;
279
280
  transcript: z.ZodOptional<z.ZodString>;
280
281
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -559,6 +560,7 @@ export declare const WebhookSchemas: {
559
560
  error_unknown: "error_unknown";
560
561
  error_user_not_joined: "error_user_not_joined";
561
562
  registered_call_timeout: "registered_call_timeout";
563
+ unknown: "unknown";
562
564
  }>>;
563
565
  transcript: z.ZodOptional<z.ZodString>;
564
566
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1102,6 +1104,7 @@ export declare const WebhookSchemas: {
1102
1104
  error_unknown: "error_unknown";
1103
1105
  error_user_not_joined: "error_user_not_joined";
1104
1106
  registered_call_timeout: "registered_call_timeout";
1107
+ unknown: "unknown";
1105
1108
  }>>;
1106
1109
  transcript: z.ZodOptional<z.ZodString>;
1107
1110
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1385,6 +1388,7 @@ export declare const WebhookSchemas: {
1385
1388
  error_unknown: "error_unknown";
1386
1389
  error_user_not_joined: "error_user_not_joined";
1387
1390
  registered_call_timeout: "registered_call_timeout";
1391
+ unknown: "unknown";
1388
1392
  }>>;
1389
1393
  transcript: z.ZodOptional<z.ZodString>;
1390
1394
  transcript_object: z.ZodOptional<z.ZodArray<z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retell-utils",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
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": {