Skip to content

Variable: DialogPromptSchema

Makaio Framework


Makaio Framework / services-core/dialog/schemas / DialogPromptSchema

const DialogPromptSchema: object

Defined in: ../../../packages/services/core/src/dialog/schemas.ts:49

Request text input via UI prompt dialog. Subject: dialog.prompt Type: Request (RPC)

request: ZodObject<{ cancelLabel: ZodOptional<ZodString>; defaultValue: ZodOptional<ZodString>; message: ZodString; multiline: ZodOptional<ZodBoolean>; placeholder: ZodOptional<ZodString>; submitLabel: ZodOptional<ZodString>; title: ZodString; }, $strip>

response: ZodObject<{ value: ZodNullable<ZodString>; }, $strip>

The user’s entered text, or null if dismissed without input.

NOTE: The UI handler must keep this request open until the user responds. Bus timeouts should be set appropriately high for these requests.