Variable: DialogConfirmSchema
Makaio Framework / services-core/dialog/schemas / DialogConfirmSchema
Variable: DialogConfirmSchema
Section titled “Variable: DialogConfirmSchema”
constDialogConfirmSchema:object
Defined in: ../../../packages/services/core/src/dialog/schemas.ts:13
Request user confirmation via UI.
Subject: dialog.confirm
Type: Request (RPC)
Type Declaration
Section titled “Type Declaration”request
Section titled “request”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
Section titled “response”response:
ZodObject<{dontAskAgain:ZodOptional<ZodBoolean>;selectedOptionId:ZodNullable<ZodString>; },$strip>
Returns
Section titled “Returns”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.