Kaizen
Browse modulesInsightsinsights/serverInterfaces

Interface: AskContext

Defined in: server/insights/services/ask-service.ts:33

Identity and temporal frame for one Ask call. Server-derived, exactly like RunReportContext — never part of a client-supplied input schema, so a caller cannot draft against another tenant's model or shift the date frame.

Properties

organizationId

organizationId: string;

Defined in: server/insights/services/ask-service.ts:34


timezone?

optional timezone?: string;

Defined in: server/insights/services/ask-service.ts:41

IANA zone the drafted definition WILL carry — authoritative, not a hint: the drafted timezone is pinned to it. Defaults to UTC.


today?

optional today?: string;

Defined in: server/insights/services/ask-service.ts:46

YYYY-MM-DD override for "today". Tests and replay pin it; production leaves it out and the service derives it from the clock in timezone.


userId?

optional userId?: string;

Defined in: server/insights/services/ask-service.ts:36

For the audit hook; omit for system/anonymous callers.

On this page