Skip to content

Variable: DialogNamespace

Makaio Framework


Makaio Framework / services-core/dialog/namespace / DialogNamespace

const DialogNamespace: BusNamespace<"dialog", SubjectRecordFromSchemaRecord<{ confirm: { request: ZodObject<{ details: ZodOptional<ZodString>; message: ZodString; options: ZodArray<ZodObject<{ id: ZodString; label: ZodString; variant: ZodOptional<ZodEnum<…>>; }, $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>; }; prompt: { 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>; }; }>, { cancelLabel: never; defaultValue: never; details: never; message: string; multiline: never; options: object[]; placeholder: never; position: never; showDontAskAgain: never; submitLabel: never; title: string; }, { confirm: { request: ZodObject<{ details: ZodOptional<ZodString>; message: ZodString; options: ZodArray<ZodObject<{ id: ZodString; label: ZodString; variant: ZodOptional<ZodEnum<{ danger: …; primary: …; 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>; }; prompt: { 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>; }; }>

Defined in: ../../../packages/services/core/src/dialog/namespace.ts:19

Dialog namespace registration.

Provides type-safe subjects for UI dialog operations (confirmation and text-input prompts). The UI handler must keep each request open until the user responds; set bus timeouts accordingly.