UNPKG

@inworld/web-core

Version:
49 lines (48 loc) 1.84 kB
import * as z from "zod"; export declare const PlaybackEnumSchema: z.ZodEnum<["INTERACTION", "INTERACTION_END", "UNSPECIFIED", "UTTERANCE"]>; export type PlaybackEnum = z.infer<typeof PlaybackEnumSchema>; export declare const TypeEnumSchema: z.ZodEnum<["TASK", "TRIGGER", "UNSPECIFIED"]>; export type TypeEnum = z.infer<typeof TypeEnumSchema>; export declare const ParameterSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; value: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string; value?: string; }, { name?: string; value?: string; }>; export type Parameter = z.infer<typeof ParameterSchema>; export declare const CustomEventSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodOptional<z.ZodString>; value: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name?: string; value?: string; }, { name?: string; value?: string; }>, "many">>; playback: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["INTERACTION", "INTERACTION_END", "UNSPECIFIED", "UTTERANCE"]>, z.ZodNumber]>>; type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["TASK", "TRIGGER", "UNSPECIFIED"]>, z.ZodNumber]>>; }, "strip", z.ZodTypeAny, { name?: string; type?: number | "UNSPECIFIED" | "TASK" | "TRIGGER"; parameters?: { name?: string; value?: string; }[]; playback?: number | "UNSPECIFIED" | "INTERACTION_END" | "INTERACTION" | "UTTERANCE"; }, { name?: string; type?: number | "UNSPECIFIED" | "TASK" | "TRIGGER"; parameters?: { name?: string; value?: string; }[]; playback?: number | "UNSPECIFIED" | "INTERACTION_END" | "INTERACTION" | "UTTERANCE"; }>; export type CustomEvent = z.infer<typeof CustomEventSchema>;