/** * Notification-template + report-template endpoints (CMS engine-owned). * * Source of truth: People api_references §7.3 (FEAT-012 — the pack only * seeds artifacts; CMS materializes and serves them). Writes require * `notify:templates:manage` (catalog published + role assigned, engine E14). */ /** Notification-template lifecycle routes. */ export declare const NOTIFICATIONS_ENDPOINT: { /** `GET/POST /api/v1/notifications/templates` — list versions / create draft. */ readonly TEMPLATES: "/api/v1/notifications/templates"; /** `GET/PUT/DELETE /api/v1/notifications/templates/{template_id}` — one version * (PUT draft only — enabled/archived return 409; DELETE = soft-archive). */ readonly template: (templateId: string | number) => string; /** `GET /api/v1/notifications/templates/{name}/versions?locale=` — history. */ readonly templateVersions: (name: string) => string; /** `POST /api/v1/notifications/templates/{template_id}/publish` — enable draft * + archive the previously enabled version. */ readonly templatePublish: (templateId: string | number) => string; /** `POST /api/v1/notifications/templates/render` — ad-hoc Mustache preview. */ readonly RENDER: "/api/v1/notifications/templates/render"; }; /** Report-template routes (engine CRUD; People seed is pack-managed — read-only for the portal). */ export declare const REPORT_TEMPLATES_ENDPOINT: { readonly BASE: "/api/v1/report-templates"; readonly detail: (templateId: string | number) => string; readonly preview: (templateId: string | number) => string; }; /** `fallback_policy` — how rendering handles a missing locale variant * (resolved per recipient: `.` + locale → base → company * default per the persisted policy; never send a wrong-language silently). */ export declare const NOTIFICATION_FALLBACK_POLICY: { readonly FALLBACK: "fallback"; readonly FALLBACK_WARN: "fallback+warn"; readonly BLOCK: "block"; }; export type NotificationFallbackPolicy = (typeof NOTIFICATION_FALLBACK_POLICY)[keyof typeof NOTIFICATION_FALLBACK_POLICY]; /** Template-version states — PUT is draft-only; enabled/archived ⇒ 409. */ export declare const NOTIFICATION_TEMPLATE_STATE: { readonly DRAFT: "draft"; readonly ENABLED: "enabled"; readonly ARCHIVED: "archived"; }; export type NotificationTemplateState = (typeof NOTIFICATION_TEMPLATE_STATE)[keyof typeof NOTIFICATION_TEMPLATE_STATE]; //# sourceMappingURL=notifications.constant.d.ts.map