Variable: ToastSchemas
Makaio Framework / contracts/toast / ToastSchemas
Variable: ToastSchemas
Section titled “Variable: ToastSchemas”
constToastSchemas:object
Defined in: ../../../packages/contracts/src/toast/schemas.ts:76
Toast domain bus schemas aggregate.
Each key becomes a subject identifier as toast.<key>.
Type Declaration
Section titled “Type Declaration”dismiss
Section titled “dismiss”dismiss:
ZodObject<{toastId:ZodString; },$strip>
Dismiss a toast notification programmatically. Event: Fire-and-forget broadcast to close a specific toast.
dismissed
Section titled “dismissed”dismissed:
ZodObject<{timestamp:ZodNumber;toastId:ZodString; },$strip>
Toast was dismissed (either by user or timeout). Event: Fired when a toast is closed/dismissed.
interacted
Section titled “interacted”interacted:
ZodObject<{actionId:ZodString;timestamp:ZodNumber;toastId:ZodString; },$strip>
User interacted with a toast action button. Event: Fired when user clicks an action button on a toast.
show:
ZodObject<{actions:ZodOptional<ZodArray<ZodObject<{id:ZodString;label:ZodString;variant:ZodOptional<ZodEnum<{default:"default";destructive:"destructive";outline:"outline"; }>>; },$strip>>>;durationMs:ZodOptional<ZodNullable<ZodNumber>>;level:ZodEnum<{error:"error";info:"info";success:"success";warning:"warning"; }>;message:ZodString;title:ZodOptional<ZodString>;toastId:ZodOptional<ZodString>; },$strip> =ToastPayloadSchema
Show a toast notification. Event: Fire-and-forget broadcast to display a toast.