UNPKG

@inworld/web-core

Version:
47 lines (46 loc) 1.59 kB
import * as z from "zod"; export declare const SourceTypeEnumSchema: z.ZodEnum<["FILLER", "GENERATED", "SPEECH_TO_TEXT", "TYPED_IN", "UNKNOWN"]>; export type SourceTypeEnum = z.infer<typeof SourceTypeEnumSchema>; export declare const ModelInfoSchema: z.ZodObject<{ model: z.ZodOptional<z.ZodString>; service: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { model?: string; service?: string; }, { model?: string; service?: string; }>; export type ModelInfo = z.infer<typeof ModelInfoSchema>; export declare const TextEventSchema: z.ZodObject<{ final: z.ZodOptional<z.ZodBoolean>; model_info: z.ZodOptional<z.ZodObject<{ model: z.ZodOptional<z.ZodString>; service: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { model?: string; service?: string; }, { model?: string; service?: string; }>>; source_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["FILLER", "GENERATED", "SPEECH_TO_TEXT", "TYPED_IN", "UNKNOWN"]>, z.ZodNumber]>>; text: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { text?: string; final?: boolean; model_info?: { model?: string; service?: string; }; source_type?: number | "UNKNOWN" | "SPEECH_TO_TEXT" | "TYPED_IN" | "GENERATED" | "FILLER"; }, { text?: string; final?: boolean; model_info?: { model?: string; service?: string; }; source_type?: number | "UNKNOWN" | "SPEECH_TO_TEXT" | "TYPED_IN" | "GENERATED" | "FILLER"; }>; export type TextEvent = z.infer<typeof TextEventSchema>;