Back

Version 8

12/19/2024
// This endpoint accepts and returns data.

type BooleanData = {
type: "boolean";
text: "true" | "false" | "maybe";
name?: string | undefined;
description?: string | undefined;
};

type TextData = {
type: "text";
text: string;
name?: string | undefined;
description?: string | undefined;
src?: string | undefined;
};

type ImageData = {
type: "image";
text: string;
name?: string | undefined;
description?: string | undefined;
src?: string | Promise<string>;
};

type SpeechData = {
type: "speech";
text: string;
name?: string | undefined;
description?: string | undefined;
src?: string | undefined;
};

type WebsiteData = {
type: "website";
text: string;