Skip to content

Variable: DialogSubjects

Makaio Framework


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

const DialogSubjects: BusSubjects<FlatSubjectDefinitions<"dialog", { 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>; }; }>, "dialog"> = DialogNamespace.subjects

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

Typed subjects for dialog operations.

Subjects available:

  • DialogSubjects.confirm — Request user confirmation (RPC)
  • DialogSubjects.prompt — Request text input (RPC)