Variable: DialogPromptSchema
Makaio Framework / services-core/dialog/schemas / DialogPromptSchema
Variable: DialogPromptSchema
Section titled “Variable: DialogPromptSchema”
constDialogPromptSchema:object
Defined in: ../../../packages/services/core/src/dialog/schemas.ts:49
Request text input via UI prompt dialog.
Subject: dialog.prompt
Type: Request (RPC)
Type Declaration
Section titled “Type Declaration”request
Section titled “request”request:
ZodObject<{cancelLabel:ZodOptional<ZodString>;defaultValue:ZodOptional<ZodString>;message:ZodString;multiline:ZodOptional<ZodBoolean>;placeholder:ZodOptional<ZodString>;submitLabel:ZodOptional<ZodString>;title:ZodString; },$strip>
response
Section titled “response”response:
ZodObject<{value:ZodNullable<ZodString>; },$strip>
Returns
Section titled “Returns”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.