@tixae-labs/web-sdk
Version:
Javascript Web SDK for doing WebRTC AI Voice Calls with TIXAE Agents.
1,562 lines (1,561 loc) • 42.9 kB
TypeScript
import { z } from "zod";
declare const TextPayloadSchema: z.ZodObject<{
message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message?: string | undefined;
}, {
message?: string | undefined;
}>;
declare const ButtonModelSchema: z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>;
declare const ChoicePayloadSchema: z.ZodObject<{
buttons: z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}>;
declare const VisualPayloadSchema: z.ZodObject<{
image: z.ZodString;
}, "strip", z.ZodTypeAny, {
image: string;
}, {
image: string;
}>;
declare const CardPayloadSchema: z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>;
declare const CarouselPayloadSchema: z.ZodObject<{
cards: z.ZodArray<z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}>;
declare const iFramePayloadSchema: z.ZodObject<{
layout: z.ZodEnum<["vertical", "horizontal"]>;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
layout: "vertical" | "horizontal";
}, {
url: string;
layout: "vertical" | "horizontal";
}>;
declare const MessageTypeSchema: z.ZodEnum<["text", "choice", "visual", "cardV2", "carousel", "iFrame"]>;
export type UIEngineMessageType = z.infer<typeof MessageTypeSchema>;
declare const MessageSchema: z.ZodObject<{
type: z.ZodEnum<["text", "choice", "visual", "cardV2", "carousel", "iFrame"]>;
payload: z.ZodUnion<[z.ZodObject<{
message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message?: string | undefined;
}, {
message?: string | undefined;
}>, z.ZodObject<{
buttons: z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}>, z.ZodObject<{
image: z.ZodString;
}, "strip", z.ZodTypeAny, {
image: string;
}, {
image: string;
}>, z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>, z.ZodObject<{
cards: z.ZodArray<z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}>, z.ZodObject<{
layout: z.ZodEnum<["vertical", "horizontal"]>;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
layout: "vertical" | "horizontal";
}, {
url: string;
layout: "vertical" | "horizontal";
}>]>;
}, "strip", z.ZodTypeAny, {
type: "text" | "choice" | "cardV2" | "carousel" | "visual" | "iFrame";
payload: {
message?: string | undefined;
} | {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
} | {
image: string;
} | {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
} | {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
} | {
url: string;
layout: "vertical" | "horizontal";
};
}, {
type: "text" | "choice" | "cardV2" | "carousel" | "visual" | "iFrame";
payload: {
message?: string | undefined;
} | {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
} | {
image: string;
} | {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
} | {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
} | {
url: string;
layout: "vertical" | "horizontal";
};
}>;
declare const FinalUIEngineResponseSchema: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["text", "choice", "visual", "cardV2", "carousel", "iFrame"]>;
payload: z.ZodUnion<[z.ZodObject<{
message: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
message?: string | undefined;
}, {
message?: string | undefined;
}>, z.ZodObject<{
buttons: z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}, {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
}>, z.ZodObject<{
image: z.ZodString;
}, "strip", z.ZodTypeAny, {
image: string;
}, {
image: string;
}>, z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>, z.ZodObject<{
cards: z.ZodArray<z.ZodObject<{
imageUrl: z.ZodOptional<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodObject<{
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
}, {
text: string;
}>>;
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodString;
request: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"open_url">;
payload: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "open_url";
payload: {
url: string;
};
}, {
type: "open_url";
payload: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"text">;
payload: z.ZodObject<{
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
}, {
message: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "text";
payload: {
message: string;
};
}, {
type: "text";
payload: {
message: string;
};
}>]>;
}, "strip", z.ZodTypeAny, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}, {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}>, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}, {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}, {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
}>, z.ZodObject<{
layout: z.ZodEnum<["vertical", "horizontal"]>;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
layout: "vertical" | "horizontal";
}, {
url: string;
layout: "vertical" | "horizontal";
}>]>;
}, "strip", z.ZodTypeAny, {
type: "text" | "choice" | "cardV2" | "carousel" | "visual" | "iFrame";
payload: {
message?: string | undefined;
} | {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
} | {
image: string;
} | {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
} | {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
} | {
url: string;
layout: "vertical" | "horizontal";
};
}, {
type: "text" | "choice" | "cardV2" | "carousel" | "visual" | "iFrame";
payload: {
message?: string | undefined;
} | {
buttons: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[];
} | {
image: string;
} | {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
} | {
cards: {
title: string;
description?: {
text: string;
} | undefined;
buttons?: {
name: string;
request: {
type: "open_url";
payload: {
url: string;
};
} | {
type: "text";
payload: {
message: string;
};
};
}[] | undefined;
imageUrl?: string | undefined;
}[];
} | {
url: string;
layout: "vertical" | "horizontal";
};
}>, "many">;
export { TextPayloadSchema, ButtonModelSchema, ChoicePayloadSchema, VisualPayloadSchema, CardPayloadSchema, CarouselPayloadSchema, iFramePayloadSchema, MessageTypeSchema, MessageSchema, FinalUIEngineResponseSchema, };
export declare function createUiEnginePrompt(): string;