Defines priority levels, display budgets, and lifetime policies for system notifications. Use this to manage notification lifecycle and queueing behavior in chat or dashboard interfaces.
// Source: https://github.com/ThinkInAIXYZ/deepchat | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
export const NOTIFICATION_PRIORITIES = Object.freeze({
success: 10,
info: 20,
progress: 25,
warning: 30,
error: 40,
actionable: Object.freeze({
normal: 50,
high: 60,
critical: 70,
untilResolved: 80
})
})
export const NOTIFICATION_POLICY_DEFAULTS = Object.freeze({
displayBudgetMs: Object.freeze({
success: 2_400,
info: 4_000,
warning: 6_000,
error: 8_000
}),
maxLifetimeMs: Object.freeze({
success: 15_000,
info: 30_000,
warning: 45_000,
error: 60_000
}),
inlineSuccessDisplayBudgetMs: 2_000,
surfaceHandoffGraceMs
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key