Skip to content

Variable: DialogConfirmSchema

Makaio Framework


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

const DialogConfirmSchema: object

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

Request user confirmation via UI. Subject: dialog.confirm Type: Request (RPC)

request: ZodObject<{ details: ZodOptional<ZodString>; message: ZodString; options: ZodArray<ZodObject<{ id: ZodString; label: ZodString; variant: ZodOptional<ZodEnum<{ danger: "danger"; primary: "primary"; secondary: "secondary"; }>>; }, $strip>>; position: ZodOptional<ZodEnum<{ bottom-center: "bottom-center"; center: "center"; top-center: "top-center"; }>>; showDontAskAgain: ZodOptional<ZodBoolean>; title: ZodString; }, $strip>

response: ZodObject<{ dontAskAgain: ZodOptional<ZodBoolean>; selectedOptionId: ZodNullable<ZodString>; }, $strip>

The user’s selected option ID, or null if dismissed without selection.

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