notifkit 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +66 -72
  2. package/dist/index.d.mts +22 -4
  3. package/dist/index.d.mts.map +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/{main-BAO4kKce.mjs → main-39DtKrX4.mjs} +142 -28
  6. package/dist/main-39DtKrX4.mjs.map +1 -0
  7. package/dist/{main-B0BcY_JJ.mjs → main-B3iQrl3t.mjs} +2 -2
  8. package/dist/{main-B0BcY_JJ.mjs.map → main-B3iQrl3t.mjs.map} +1 -1
  9. package/dist/{main-7KMlWnDx.mjs → main-BM8DH3v3.mjs} +2 -2
  10. package/dist/{main-7KMlWnDx.mjs.map → main-BM8DH3v3.mjs.map} +1 -1
  11. package/dist/{main-BtXITy0k.mjs → main-BgmT1MPe.mjs} +2 -2
  12. package/dist/{main-BtXITy0k.mjs.map → main-BgmT1MPe.mjs.map} +1 -1
  13. package/dist/{main-BxqAXTr6.mjs → main-BiFiOX9D.mjs} +2 -2
  14. package/dist/{main-BxqAXTr6.mjs.map → main-BiFiOX9D.mjs.map} +1 -1
  15. package/dist/{main-0FHNtN5g.mjs → main-C9s-2ArH.mjs} +2 -2
  16. package/dist/{main-0FHNtN5g.mjs.map → main-C9s-2ArH.mjs.map} +1 -1
  17. package/dist/{main-zCpvA9Rx.mjs → main-Cqo3rSb5.mjs} +2 -2
  18. package/dist/{main-zCpvA9Rx.mjs.map → main-Cqo3rSb5.mjs.map} +1 -1
  19. package/dist/{main-BjXgGJBd.mjs → main-Dz2sUh3c.mjs} +2 -2
  20. package/dist/{main-BjXgGJBd.mjs.map → main-Dz2sUh3c.mjs.map} +1 -1
  21. package/dist/{src-DkvHYM3y.mjs → src-QiTu5e_a.mjs} +30 -18
  22. package/dist/src-QiTu5e_a.mjs.map +1 -0
  23. package/package.json +1 -1
  24. package/scripts/create-admin.mjs +8 -11
  25. package/src/config/index.ts +9 -0
  26. package/src/server.ts +10 -0
  27. package/src/services/api/admin-static.ts +3 -2
  28. package/src/services/api/handlers.ts +102 -28
  29. package/src/services/api/main.ts +112 -11
  30. package/src/services/api/router.ts +7 -1
  31. package/src/services/auth/index.ts +8 -0
  32. package/dist/main-BAO4kKce.mjs.map +0 -1
  33. package/dist/src-DkvHYM3y.mjs.map +0 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **You shouldn't have to build a notification system.**
6
6
 
7
- Self-hosted notification infrastructure for product notifications. One API call handles email, SMS, push, and webhooks, with preferences, quiet hours, retries, fallback, scheduling, workflows, and delivery logs built in.
7
+ Self-hosted notification infrastructure for product notifications. One API call handles email, SMS, push, and webhooks, with preferences, quiet hours, retries, fallback, scheduling, workflows, an admin dashboard, and delivery logs built in.
8
8
 
9
9
  [![npm version](https://img.shields.io/npm/v/notifkit.svg?style=flat-square&color=6366f1)](https://www.npmjs.com/package/notifkit) [![npm downloads](https://img.shields.io/npm/dm/notifkit.svg?style=flat-square&color=6366f1)](https://www.npmjs.com/package/notifkit) [![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/devkitshq/notifkit/badges/coverage.json&style=flat-square)](https://github.com/devkitshq/notifkit/actions/workflows/ci.yml) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-3178c6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Node.js](https://img.shields.io/badge/node-%3E%3D22.0.0-339933.svg?style=flat-square)](https://nodejs.org) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](./LICENSE)
10
10
 
@@ -45,11 +45,12 @@ notifkit is an orchestration engine and a typed SDK.
45
45
 
46
46
  ```mermaid
47
47
  flowchart TD
48
- App["Your Application / AI Agent<br/>Typed SDK · REST API · MCP Server"]
48
+ App["Your Application / AI Agent / Browser<br/>Typed SDK · REST API · MCP Server · Admin Dashboard"]
49
49
 
50
50
  App -->|"HTTP POST /v1/notify"| API
51
+ App -->|"HTTP GET /admin"| API
51
52
 
52
- API["Notifkit API Server<br/>Schema Validation · Auth · Multi-Tenancy<br/>Idempotency Gate · Priority Queue Ingestion"]
53
+ API["Notifkit API Server<br/>Schema Validation · Auth · Multi-Tenancy<br/>Admin SPA · Priority Queue Ingestion"]
53
54
 
54
55
  API --> PG
55
56
  API --> REDIS
@@ -63,13 +64,12 @@ flowchart TD
63
64
  ENGINE --> SCHED["Scheduler<br/>(sendAt / QH)"]
64
65
  SCHED --> DELIVER
65
66
  end
66
-
67
67
  REDIS -->|"consume"| ENRICH
68
68
  ENRICH -.->|"read / write state"| PG
69
69
  DELIVER -.->|"delivery logs"| PG
70
70
  DELIVER -->|"Dispatch"| PROVIDERS
71
71
 
72
- PROVIDERS["Provider Transports<br/>Email: Resend · Push: Firebase (FCM) · SMS: Twilio<br/>Chat: Slack, Telegram, Discord, WhatsApp<br/>Webhooks: Custom HTTP"]
72
+ PROVIDERS["Provider Transports<br/>Email: Resend · Push: Firebase (FCM) · SMS: Twilio<br/>Chat: Slack, Telegram, Discord, WhatsApp<br/>Webhooks: Custom HTTP · Local: Console"]
73
73
 
74
74
  classDef entry stroke:#6366f1,stroke-width:2px
75
75
  classDef store stroke:#0ea5e9,stroke-width:2px
@@ -79,7 +79,7 @@ flowchart TD
79
79
  class ENRICH,ENGINE,DELIVER,SCHED work
80
80
  ```
81
81
 
82
- `NotifkitServer` runs the HTTP REST API router (`/v1/notify`, `/health`, `/metrics`) and the background worker pipelines: enricher, decision engine, scheduler, and delivery. `NotifkitClient` is the lightweight client your application uses to trigger notifications, sync templates, and manage users over HTTP.
82
+ `NotifkitServer` runs the HTTP REST API router (`/v1/notify`, `/health`, `/metrics`), the built-in admin dashboard (`/admin`), and the background worker pipelines: enricher, decision engine, scheduler, and delivery. `NotifkitClient` is the lightweight client your application uses to trigger notifications, sync templates, and manage users over HTTP.
83
83
 
84
84
  ### Topologies
85
85
 
@@ -94,23 +94,28 @@ npm install notifkit @notifkit/provider-resend
94
94
  npm install -D tsx @testcontainers/postgresql @testcontainers/redis
95
95
  ```
96
96
 
97
- The two `@testcontainers/*` packages are what notifkit uses to start throwaway PostgreSQL and Redis containers in development. They are imported lazily, only when the server is given neither a `databaseUrl`/`redisUrl` option nor a `DATABASE_URL`/`REDIS_URL` environment variable, so `devDependencies` is the right place for them.
97
+ The `@testcontainers/*` packages start throwaway PostgreSQL and Redis containers for local development when `DATABASE_URL` and `REDIS_URL` are not set.
98
98
 
99
99
  > [!WARNING]
100
- > Those containers are for local development only. They are thrown away when the process exits, taking every user, template, delivery log, and queued notification with them. Before you deploy, point notifkit at a real PostgreSQL and Redis set `DATABASE_URL` and `REDIS_URL` (or pass `databaseUrl` and `redisUrl`) and run with `NODE_ENV=production`, which refuses to start a container and fails loudly if either is missing.
100
+ > In production, point notifkit at real PostgreSQL and Redis instances via `DATABASE_URL` and `REDIS_URL`, and run with `NODE_ENV=production`.
101
101
 
102
102
  ### 2. Run the engine
103
103
 
104
104
  `server.ts` starts the API and the worker pipelines. In development it auto-starts those containers, so Docker is the only prerequisite.
105
105
 
106
106
  ```ts
107
- // server.ts
108
107
  import { NotifkitServer } from "notifkit";
109
108
  import { ResendTransport } from "@notifkit/provider-resend";
110
109
 
111
110
  const server = new NotifkitServer({
112
- services: ["all"], // API + enricher + engine + scheduler + delivery
111
+ services: ["all"],
113
112
  port: 3000,
113
+ databaseUrl: process.env.DATABASE_URL,
114
+ redisUrl: process.env.REDIS_URL,
115
+ adminUser: {
116
+ email: "admin@example.com",
117
+ password: "supersecretpassword123",
118
+ },
114
119
  providers: [
115
120
  new ResendTransport({
116
121
  apiKey: process.env.RESEND_API_KEY!,
@@ -125,18 +130,17 @@ console.log("notifkit listening on http://localhost:3000");
125
130
 
126
131
  `from` is required on `ResendTransport` — it is the sender for any template that does not name its own, and it has to be an address on a domain you have verified in Resend. A template can override it with its own `from`, so one transport can serve both `no-reply@` receipts and `marketing@` campaigns.
127
132
 
128
- `ADMIN_API_KEY` is the root credential. It is read from the environment, it is what mints project API keys in the next step, and without it the project-management routes answer `403`. Any string works locally:
133
+ `adminUser` (or `ADMIN_EMAIL` and `ADMIN_PASSWORD` in the environment) seeds your initial dashboard login credentials in PostgreSQL on startup.
134
+
135
+ `ADMIN_API_KEY` is the root credential that mints project API keys. In production, use a long random string (`openssl rand -hex 32`). Locally, any string works:
129
136
 
130
137
  ```bash
131
138
  ADMIN_API_KEY=supersecretkey RESEND_API_KEY=re_xxx npx tsx server.ts
132
139
  ```
133
140
 
134
- > [!WARNING]
135
- > `supersecretkey` is a local placeholder. In production this one value can mint keys for every project, so use a long random string kept in your secret store — `openssl rand -hex 32` is enough.
136
-
137
141
  ### 3. Create a project and its API key
138
142
 
139
- Every `/v1/*` route requires a project API key, and only the admin credential can mint one, so this is the single bootstrap step between a running server and your first notification:
143
+ Every `/v1/*` route requires a project API key, and only the admin credential can mint one. You can create projects via the CLI helper or in the admin dashboard under **Projects & API Keys** (`/admin/projects`):
140
144
 
141
145
  ```bash
142
146
  ADMIN_API_KEY=supersecretkey npx notifkit-create-project "my-app"
@@ -149,7 +153,7 @@ NOTIFKIT_PROJECT_ID=1ce67fa1-b4a9-4985-8046-ef6018912b2a
149
153
  NOTIFKIT_API_KEY=nk_live_f57c57b76d795cef89e2dbf6b6f352a36…
150
154
  ```
151
155
 
152
- The server stores only a SHA-256 hash of the key, so the `nk_live_…` value is printed once and never again — put it in your app's `.env` now. Point the script at another host with `NOTIFKIT_URL`, and mint further keys later with `POST /v1/projects/:id/keys` (`role: "read_only"` there gets you a key that can read but not send).
156
+ The server stores only a SHA-256 hash of the key, so the `nk_live_…` value is printed once and never again — put it in your app's `.env` now. Point the script at another host with `NOTIFKIT_URL`, and mint further keys later with `POST /v1/projects/:id/keys` (`role: "read_only"` there gets you a key that can read but not send) or directly in the web dashboard.
153
157
 
154
158
  ### 4. Dispatch your first notification
155
159
 
@@ -217,47 +221,13 @@ Locally, Docker is the only prerequisite: in development notifkit starts throwaw
217
221
 
218
222
  notifkit runs in production at my own company, delivering 100K+ notifications a day across email, push, and OTPs. I built it because I needed it and didn't want to spend months rebuilding distributed notification plumbing or pay a SaaS per alert. It runs on your servers, with your provider accounts and your data.
219
223
 
220
- ### Reliability and failure testing
224
+ ### Reliability and resilience
221
225
 
222
- Every component of the pipeline is tested against failure:
226
+ Every component is tested against failure using real testcontainers:
223
227
 
224
- ```mermaid
225
- flowchart LR
226
- S1["Redis Streams"] -->|"Kill Worker (SIGKILL)"| M1["Auto-Claim and Replay"] --> O1["Zero Lost Messages"]
227
- S2["Connection Loss"] -->|"Drop DB / Redis"| M2["Auto-Reconnect / Retry"] --> O2["In-Flight State Intact"]
228
- S3["10k+ Messages"] -->|"Burst"| M3["Concurrency and Limits"] --> O3["Flat Memory, No Leaks"]
229
-
230
- classDef fault stroke:#ef4444,stroke-width:2px
231
- classDef guard stroke:#6366f1,stroke-width:2px
232
- classDef result stroke:#22c55e,stroke-width:2px
233
- class S1,S2,S3 fault
234
- class M1,M2,M3 guard
235
- class O1,O2,O3 result
236
- ```
237
-
238
- - Crash testing (`tests/chaos/crash.test.ts`): background worker processes are killed with `SIGKILL` during high-throughput message streaming. Consumer group Pending Entries List (PEL) re-claims mean no messages are lost and another worker takes over.
239
- - Infrastructure recovery (`tests/chaos/recovery.test.ts`): PostgreSQL and Redis connections are severed and restored under live traffic, verifying client reconnection, worker backpressure, and durable state resumption.
240
- - Load testing (`tests/chaos/load.test.ts`): bursts of 10,000+ notifications across parallel worker pools, checking queue drain speed, sliding-window rate limiters, and memory use over time.
241
- - Race conditions and concurrency (`tests/race-conditions.test.ts`, `tests/idempotency.test.ts`): concurrent duplicate dispatches, overlapping quiet-hour boundary evaluations, atomic user updates, and 24-hour idempotency key deduplication.
242
- - Real containers, no mocks: unit, integration, and chaos suites all run against real PostgreSQL and Redis containers via [Testcontainers](https://testcontainers.com).
243
-
244
- ## What you get
245
-
246
- | The problem you don't want to build | How notifkit solves it |
247
- | :--------------------------------------------------- | :------------------------------------------------------------------- |
248
- | "Should this user receive it?" | User preferences, topic opt-outs, and consent gates |
249
- | "Is this a bad time to send?" | Timezone-aware quiet hours that defer non-urgent sends |
250
- | "What if push fails?" | Ordered multi-channel fallback (`push`, then `email`, then `sms`) |
251
- | "What if my worker crashes?" | Redis Streams consumer groups, retries, and durable idempotency |
252
- | "What if an event fires twice?" | 24-hour deduplication via idempotency keys |
253
- | "Can I send this later?" | Priority scheduling with `sendAt` and cancellation before dispatch |
254
- | "Can I send this 3 days after signup?" | Stateful multi-step workflows with `wait` and `waitForEvent` |
255
- | "How do I know what happened?" | Queryable delivery logs, Prometheus metrics, and campaign reporting |
256
- | "What happens when a provider goes down?" | Circuit breakers, exponential backoff, and DLQ replay |
257
- | "What about bounces and spam complaints?" | RFC 8058 one-click unsubscribe and automatic hard-bounce suppression |
258
- | "What if I don't want another SaaS holding my data?" | Fully self-hosted on your PostgreSQL and Redis |
259
-
260
- You decide what to say. notifkit gets it there.
228
+ - **Crash recovery**: Worker processes killed with `SIGKILL` mid-stream lose zero messages. Redis Streams consumer groups (PEL) auto-reclaim and replay in-flight work.
229
+ - **Connection resilience**: Disconnections from PostgreSQL or Redis trigger automatic backpressure and reconnects without dropping state.
230
+ - **High throughput & concurrency**: 10,000+ notification bursts with sliding-window rate limiters, flat memory profiles, and 24-hour idempotency deduplication.
261
231
 
262
232
  ## Scope
263
233
 
@@ -315,22 +285,23 @@ It can read notifkit's API from there, find ad-hoc notification code in your rep
315
285
 
316
286
  ## Feature matrix
317
287
 
318
- | | |
319
- | :------------------ | :------------------------------------------------------------------------------------- |
320
- | **Channels** | `email`, `sms`, `push`, `webhook`, `telegram`, `discord`, `whatsapp`, `slack` |
321
- | **Targeting** | A user, a list of users, a segment, or a topic |
322
- | **Priorities** | `low`, `normal`, `high`, `critical`, on separate stream lanes |
323
- | **Scheduling** | Future sends with `sendAt`, quiet-hours deferral, cancellation |
324
- | **Preferences** | Per-user channel and topic opt-outs, quiet hours, contact-level overrides |
325
- | **Workflows** | Multi-step sequences with `wait`, `waitForEvent`, and `notify` steps |
326
- | **Reliability** | Redis Streams, 24h idempotency, retries, DLQ, provider circuit breakers |
327
- | **Templates** | `{{var}}` interpolation with destination-aware escaping |
328
- | **AI** | Optional LLM augmentation before render via the Vercel AI SDK |
329
- | **Multi-tenancy** | Projects with isolated keys, data, and rate limits |
330
- | **Consent** | RFC 8058 one-click unsubscribe; complaints and hard bounces suppress automatically |
331
- | **Reporting** | Campaign labels with delivery and engagement totals |
332
- | **Agent operation** | MCP server for sending, triage, campaigns, templates, workflows, and system operations |
333
- | **Observability** | Prometheus `/metrics`, `/health`, `/live`, `/ready`, and queryable delivery logs |
288
+ | Feature | Capabilities |
289
+ | :------------------ | :--------------------------------------------------------------------------------------- |
290
+ | **Channels** | `email`, `sms`, `push`, `webhook`, `telegram`, `discord`, `whatsapp`, `slack`, `console` |
291
+ | **Admin Dashboard** | Built-in SPA at `/admin` for live feeds, DLQ triage, queue metrics, workflows, templates |
292
+ | **Targeting** | A user, a list of users, a segment, or a topic |
293
+ | **Priorities** | `low`, `normal`, `high`, `critical`, on separate stream lanes |
294
+ | **Scheduling** | Future sends with `sendAt`, quiet-hours deferral, cancellation |
295
+ | **Preferences** | Per-user channel and topic opt-outs, quiet hours, contact-level overrides |
296
+ | **Workflows** | Multi-step sequences with `wait`, `waitForEvent`, and `notify` steps |
297
+ | **Reliability** | Redis Streams, 24h idempotency, retries, DLQ, provider circuit breakers |
298
+ | **Templates** | `{{var}}` interpolation with destination-aware escaping |
299
+ | **AI** | Optional LLM augmentation before render via the Vercel AI SDK |
300
+ | **Multi-tenancy** | Projects with isolated keys, data, and rate limits |
301
+ | **Consent** | RFC 8058 one-click unsubscribe; complaints and hard bounces suppress automatically |
302
+ | **Reporting** | Campaign labels with delivery and engagement totals |
303
+ | **Agent operation** | MCP server for sending, triage, campaigns, templates, workflows, and system operations |
304
+ | **Observability** | Prometheus `/metrics`, `/health`, `/live`, `/ready`, and queryable delivery logs |
334
305
 
335
306
  ## Providers
336
307
 
@@ -343,6 +314,7 @@ Bring your own provider accounts. First-party packages:
343
314
  - [`@notifkit/provider-telegram`](./packages/provider-telegram): messages via a Telegram bot
344
315
  - [`@notifkit/provider-discord`](./packages/provider-discord): messages via a Discord webhook
345
316
  - [`@notifkit/provider-whatsapp`](./packages/provider-whatsapp): messages via Meta's WhatsApp Cloud API
317
+ - [`@notifkit/provider-console`](./packages/provider-console): console transport for local development and testing
346
318
 
347
319
  For anything else, implement a `Transport`:
348
320
 
@@ -357,11 +329,32 @@ class MyTransport implements Transport {
357
329
 
358
330
  The keys, the billing, and the deliverability stay yours.
359
331
 
332
+ ## Admin dashboard
333
+
334
+ notifkit includes a web console served directly at `/admin` for operational management:
335
+
336
+ - **Live activity feed & logs**: Real-time SSE stream for worker transitions, delivery histories, and error diagnostics.
337
+ - **Queue analytics & DLQ triage**: Redis Streams lane gauges (`low`, `normal`, `high`, `critical`), message replay, and dead-letter queue management.
338
+ - **Workflows & template studio**: Visual multi-step sequence viewer (`wait`, `waitForEvent`, `notify`) with execution step tracing and live template previews.
339
+ - **Users, projects & API keys**: Manage recipient preferences, quiet hours, projects, and scoped API keys (`admin` or `read_only`).
340
+
341
+ ### Accessing and running the dashboard
342
+
343
+ Once the server is running, visit `http://localhost:3000/admin` and sign in with the admin credentials you configured.
344
+
345
+ You can also create or update admin users at any time via the CLI:
346
+
347
+ ```bash
348
+ npx notifkit-create-admin admin@example.com supersecretpassword123
349
+ ```
350
+
351
+ In production, the pre-built dashboard bundle in `dashboard/dist` is served automatically. In development, run `npm --prefix dashboard run dev` to start the Vite development server with hot module replacement (the API server automatically proxies `/admin` requests to port 5173).
352
+
360
353
  ## Documentation
361
354
 
362
355
  Everything lives at [**notifkit.dev/docs**](https://notifkit.dev/docs/).
363
356
 
364
- | | |
357
+ | Guide | Description |
365
358
  | :----------------------------------------------------------------------------- | :------------------------------------------------------- |
366
359
  | [Quickstart](https://notifkit.dev/docs/quickstart.html) | Install to first delivered notification |
367
360
  | [How it works](https://notifkit.dev/docs/concepts.html) | Core concepts and the notification pipeline |
@@ -388,6 +381,7 @@ Issues and pull requests are welcome. Stars help other people find the project.
388
381
  ```bash
389
382
  npm install
390
383
  npm run build
384
+ npm run build:dashboard
391
385
  npm test
392
386
  ```
393
387
 
package/dist/index.d.mts CHANGED
@@ -39,6 +39,15 @@ declare const baseConfigSchema: z.ZodObject<{
39
39
  * instead, which costs far more than the key ever protected.
40
40
  */
41
41
  UNSUBSCRIBE_SECRET: z.ZodOptional<z.ZodString>;
42
+ /**
43
+ * When true, trusts X-Forwarded-For headers from reverse proxies for client IP resolution.
44
+ * Defaults to false to prevent client-spoofed headers from bypassing rate limits.
45
+ */
46
+ TRUST_PROXY: z.ZodDefault<z.ZodBoolean>;
47
+ /**
48
+ * Comma-separated list of allowed origins for CORS on session-authenticated admin routes.
49
+ */
50
+ CORS_ORIGIN: z.ZodOptional<z.ZodString>;
42
51
  }, "strip", z.ZodTypeAny, {
43
52
  NODE_ENV: "development" | "test" | "production";
44
53
  LOG_LEVEL: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent";
@@ -52,12 +61,14 @@ declare const baseConfigSchema: z.ZodObject<{
52
61
  LOG_FLUSH_INTERVAL_MS: number;
53
62
  LOG_BUFFER_MAX_SIZE: number;
54
63
  SEGMENT_MAX_USERS: number;
64
+ TRUST_PROXY: boolean;
55
65
  ADMIN_API_KEY?: string | undefined;
56
66
  ADMIN_EMAIL?: string | undefined;
57
67
  ADMIN_PASSWORD?: string | undefined;
58
68
  ADMIN_USERNAME?: string | undefined;
59
69
  PUBLIC_URL?: string | undefined;
60
70
  UNSUBSCRIBE_SECRET?: string | undefined;
71
+ CORS_ORIGIN?: string | undefined;
61
72
  }, {
62
73
  NODE_ENV?: "development" | "test" | "production" | undefined;
63
74
  LOG_LEVEL?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined;
@@ -77,6 +88,8 @@ declare const baseConfigSchema: z.ZodObject<{
77
88
  SEGMENT_MAX_USERS?: number | undefined;
78
89
  PUBLIC_URL?: string | undefined;
79
90
  UNSUBSCRIBE_SECRET?: string | undefined;
91
+ TRUST_PROXY?: boolean | undefined;
92
+ CORS_ORIGIN?: string | undefined;
80
93
  }>;
81
94
  type BaseConfig = z.infer<typeof baseConfigSchema>;
82
95
  declare function setGlobalConfig(config: BaseConfig): void;
@@ -744,9 +757,9 @@ declare const NotificationDispatchedPayloadSchema: z.ZodObject<{
744
757
  priority: "low" | "normal" | "high" | "critical";
745
758
  projectId: string;
746
759
  taskId: string;
760
+ enrichedEventId: string;
747
761
  recipientId: string;
748
762
  templateVariables: Record<string, unknown>;
749
- enrichedEventId: string;
750
763
  renderedContent: {
751
764
  content: Record<string, unknown>;
752
765
  attachments?: {
@@ -792,8 +805,8 @@ declare const NotificationDispatchedPayloadSchema: z.ZodObject<{
792
805
  priority: "low" | "normal" | "high" | "critical";
793
806
  projectId: string;
794
807
  taskId: string;
795
- recipientId: string;
796
808
  enrichedEventId: string;
809
+ recipientId: string;
797
810
  renderedContent: {
798
811
  content: Record<string, unknown>;
799
812
  attachments?: {
@@ -1050,6 +1063,7 @@ declare const NotificationAiPendingPayloadSchema: z.ZodObject<{
1050
1063
  priority: "low" | "normal" | "high" | "critical";
1051
1064
  aiPrompts: Record<string, string>;
1052
1065
  projectId: string;
1066
+ enrichedEventId: string;
1053
1067
  recipientId: string;
1054
1068
  templateVariables: Record<string, unknown>;
1055
1069
  recipient: {
@@ -1073,7 +1087,6 @@ declare const NotificationAiPendingPayloadSchema: z.ZodObject<{
1073
1087
  pushToken?: string | undefined;
1074
1088
  pushTokens?: string[] | undefined;
1075
1089
  };
1076
- enrichedEventId: string;
1077
1090
  templateId?: string | undefined;
1078
1091
  scheduledAt?: string | undefined;
1079
1092
  fallbackChain?: ("push" | "email" | "sms" | "webhook" | "in-app" | "telegram" | "discord" | "whatsapp" | "slack")[] | undefined;
@@ -1082,6 +1095,7 @@ declare const NotificationAiPendingPayloadSchema: z.ZodObject<{
1082
1095
  priority: "low" | "normal" | "high" | "critical";
1083
1096
  aiPrompts: Record<string, string>;
1084
1097
  projectId: string;
1098
+ enrichedEventId: string;
1085
1099
  recipientId: string;
1086
1100
  templateVariables: Record<string, unknown>;
1087
1101
  recipient: {
@@ -1105,7 +1119,6 @@ declare const NotificationAiPendingPayloadSchema: z.ZodObject<{
1105
1119
  pushTokens?: string[] | undefined;
1106
1120
  locale?: string | undefined;
1107
1121
  };
1108
- enrichedEventId: string;
1109
1122
  templateId?: string | undefined;
1110
1123
  scheduledAt?: string | undefined;
1111
1124
  fallbackChain?: ("push" | "email" | "sms" | "webhook" | "in-app" | "telegram" | "discord" | "whatsapp" | "slack")[] | undefined;
@@ -12917,6 +12930,11 @@ interface NotifkitOptions {
12917
12930
  port?: number;
12918
12931
  logLevel?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent";
12919
12932
  nodeEnv?: "development" | "test" | "production";
12933
+ adminUser?: {
12934
+ email: string;
12935
+ password: string;
12936
+ username?: string;
12937
+ };
12920
12938
  services: ("api" | "delivery" | "engine" | "enricher" | "scheduler" | "ai" | "workflow" | "events" | "all")[];
12921
12939
  providers?: Transport[];
12922
12940
  autoMigrate?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config/index.ts","../src/contracts/common.ts","../src/contracts/metadata.ts","../src/contracts/events/notification-requested.ts","../src/contracts/events/notification-created.ts","../src/contracts/events/notification-enriched.ts","../src/contracts/events/notification-scheduled.ts","../src/contracts/events/notification-dispatched.ts","../src/contracts/events/notification-delivered.ts","../src/contracts/events/notification-failed.ts","../src/contracts/events/notification-skipped.ts","../src/contracts/events/notification-canceled.ts","../src/contracts/events/notification-ai-pending.ts","../src/contracts/registry.ts","../src/contracts/envelope.ts","../src/contracts/streams.ts","../src/contracts/helpers.ts","../src/contracts/sdk.ts","../src/db/schema.ts","../src/db/index.ts","../src/idempotency/index.ts","../src/logger/index.ts","../src/metrics/index.ts","../src/queue/index.ts","../src/rate-limiter/index.ts","../src/redis/index.ts","../src/repositories/index.ts","../src/shared/events.ts","../src/shared/cache.ts","../src/shared/utils.ts","../src/shared/semaphore.ts","../src/shared/batch-processor.ts","../src/shared/circuit-breaker.ts","../src/shared/dataloader.ts","../src/workers/health.ts","../src/workers/index.ts","../src/shared/index.ts","../src/templates/render.ts","../src/templates/cache.ts","../src/templates/index.ts","../src/transport/index.ts","../src/unsubscribe/index.ts","../src/workflows/sdk.ts","../src/workflows/registry.ts","../src/client.ts","../src/server.ts"],"mappings":";;;;;;;;;iBAOgB,QAAQ;iBAKR,YAAY,gBAAgB,YAC1C,QAAQ,SACR,gBACC,EAAE,OAAO;cAkBC,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoCjB,aAAa,EAAE,aAAa;iBAIxB,gBAAgB,QAAQ;iBAIxB,eAAe,OAAM,OAAO,aAA2B;UAOtD;EACf;EACA;;UAGe;EACf,UAAU;;EAEV;;EAEA;;EAEA;;cAGW;;;;;iBAQG,YAAY,QAAQ;iBAIpB,eAAe;;;cC7GlB,2BAAyB,EAAA;KAW1B,sBAAsB,EAAE,aAAa;cAEpC,4BAA0B,EAAA;KAC3B,uBAAuB,EAAE,aAAa;cAErC,0BAAwB,EAAA;KASzB,qBAAqB,EAAE,aAAa;;;cCzBnC,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;KAOpB,gBAAgB,EAAE,aAAa;;;;;;;;;;;cCE9B,0BAAwB,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKzB,qBAAqB,EAAE,aAAa;cAEnC,oCAAkC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBnC,+BAA+B,EAAE,aAAa;;;cChC7C,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;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iBAAiB;IACjB;MACE;IACF;MACE;MACA;MACA;MACA;;;;EA0BE,iBAAiB,mBAAmB;IACxC;IACA,QAAQ;IACR,WAAW,eAAe;IAC1B;IACA;;;EAQI,iBAAiB;IACrB;IACA;IACA;IACA;MACE;IAAU,cAAc;;;EAWtB,kBAAkB;IACtB;IACA;IACA;MACE;IAAU;IAAiB;IAAgB;;;EAKzC,kBAAkB,iBAAiB,iBAAiB;;EAUpD,sBACJ,iBACC;IAAU;IAAgB,MAAM;;;EAK7B,mBAAmB,iBAAiB;IAAU;;;EAK9C,wBAAwB;IAAU;;;EAOlC,QAAQ,aAAa,QAAQ;;EAK7B,eAAe,aAAa,QAAQ;;EAKpC,mBAAmB,aAAa,QAAQ;;EAKxC,sBACJ,YACA,aAAa,cACZ;IAAU;IAAY,aAAa;;;EAOhC,iBAAiB;IAAU,WAAW;;;EAKtC,YAAY,aAAa,QAAQ;;EAOjC,mBAAmB,QAAQ;;EAK3B,oBAAoB,QAAQ;;EAK5B,kBAAkB;IAAU,UAAU;;;EAKtC,iBAAiB,aAAa;IAAU;IAAkB;;;EAK1D,iBAAiB,aAAa;IAAU;;;;;UCzd/B;EACf;EACA;EACA;EACA;EACA;EACA;EAGA,YAAY;EACZ;EACA,UAAU;EACV;EACA;IACE;;EAEF;IACE;;;cAIS,uBAAuB;UAC1B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;EAEI,YAAA,SAAS;EA4Bf,SAAK;EAiJL,QAAI"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config/index.ts","../src/contracts/common.ts","../src/contracts/metadata.ts","../src/contracts/events/notification-requested.ts","../src/contracts/events/notification-created.ts","../src/contracts/events/notification-enriched.ts","../src/contracts/events/notification-scheduled.ts","../src/contracts/events/notification-dispatched.ts","../src/contracts/events/notification-delivered.ts","../src/contracts/events/notification-failed.ts","../src/contracts/events/notification-skipped.ts","../src/contracts/events/notification-canceled.ts","../src/contracts/events/notification-ai-pending.ts","../src/contracts/registry.ts","../src/contracts/envelope.ts","../src/contracts/streams.ts","../src/contracts/helpers.ts","../src/contracts/sdk.ts","../src/db/schema.ts","../src/db/index.ts","../src/idempotency/index.ts","../src/logger/index.ts","../src/metrics/index.ts","../src/queue/index.ts","../src/rate-limiter/index.ts","../src/redis/index.ts","../src/repositories/index.ts","../src/shared/events.ts","../src/shared/cache.ts","../src/shared/utils.ts","../src/shared/semaphore.ts","../src/shared/batch-processor.ts","../src/shared/circuit-breaker.ts","../src/shared/dataloader.ts","../src/workers/health.ts","../src/workers/index.ts","../src/shared/index.ts","../src/templates/render.ts","../src/templates/cache.ts","../src/templates/index.ts","../src/transport/index.ts","../src/unsubscribe/index.ts","../src/workflows/sdk.ts","../src/workflows/registry.ts","../src/client.ts","../src/server.ts"],"mappings":";;;;;;;;;iBAOgB,QAAQ;iBAKR,YAAY,gBAAgB,YAC1C,QAAQ,SACR,gBACC,EAAE,OAAO;cAkBC,kBAAgB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6CjB,aAAa,EAAE,aAAa;iBAIxB,gBAAgB,QAAQ;iBAIxB,eAAe,OAAM,OAAO,aAA2B;UAOtD;EACf;EACA;;UAGe;EACf,UAAU;;EAEV;;EAEA;;EAEA;;cAGW;;;;;iBAQG,YAAY,QAAQ;iBAIpB,eAAe;;;cCtHlB,2BAAyB,EAAA;KAW1B,sBAAsB,EAAE,aAAa;cAEpC,4BAA0B,EAAA;KAC3B,uBAAuB,EAAE,aAAa;cAErC,0BAAwB,EAAA;KASzB,qBAAqB,EAAE,aAAa;;;cCzBnC,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;KAOpB,gBAAgB,EAAE,aAAa;;;;;;;;;;;cCE9B,0BAAwB,EAAA,+BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKzB,qBAAqB,EAAE,aAAa;cAEnC,oCAAkC,EAAA;;;;;;;;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AgB,aAAa;IAAU,MAAM;;;EAK7C,iBAAiB,YAAY,gBAAgB;;EAQ7C,cAAc,YAAY,OAAO,qBAAqB;IAAU;;;EAKhE,gBAAgB;IAAU;;;EAO1B,cAAc;IAClB;IACA;IACA;IACA,iBAAiB;IACjB,iBAAiB;IACjB;MACE;IACF;MACE;MACA;MACA;MACA;;;;EA0BE,iBAAiB,mBAAmB;IACxC;IACA,QAAQ;IACR,WAAW,eAAe;IAC1B;IACA;;;EAQI,iBAAiB;IACrB;IACA;IACA;IACA;MACE;IAAU,cAAc;;;EAWtB,kBAAkB;IACtB;IACA;IACA;MACE;IAAU;IAAiB;IAAgB;;;EAKzC,kBAAkB,iBAAiB,iBAAiB;;EAUpD,sBACJ,iBACC;IAAU;IAAgB,MAAM;;;EAK7B,mBAAmB,iBAAiB;IAAU;;;EAK9C,wBAAwB;IAAU;;;EAOlC,QAAQ,aAAa,QAAQ;;EAK7B,eAAe,aAAa,QAAQ;;EAKpC,mBAAmB,aAAa,QAAQ;;EAKxC,sBACJ,YACA,aAAa,cACZ;IAAU;IAAY,aAAa;;;EAOhC,iBAAiB;IAAU,WAAW;;;EAKtC,YAAY,aAAa,QAAQ;;EAOjC,mBAAmB,QAAQ;;EAK3B,oBAAoB,QAAQ;;EAK5B,kBAAkB;IAAU,UAAU;;;EAKtC,iBAAiB,aAAa;IAAU;IAAkB;;;EAK1D,iBAAiB,aAAa;IAAU;;;;;UCzd/B;EACf;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;;EAEF;EAGA,YAAY;EACZ;EACA,UAAU;EACV;EACA;IACE;;EAEF;IACE;;;cAIS,uBAAuB;UAC1B;UACA;UACA;UACA;UACA;UACA;UACA;UACA;EAEI,YAAA,SAAS;EA4Bf,SAAK;EAsJL,QAAI"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { $ as metrics, $t as ENRICHED_STREAMS, A as RedisClient, At as NotificationCreatedPayloadSchema, B as AsyncSemaphore, Bt as NotifyRequestSchema, C as PreferenceRepository, Ct as NotificationDeliveredPayloadSchema, D as UserRepository, Dt as NotificationScheduledPayloadSchema, E as TemplateRepository, Et as RenderedContentSchema, F as generateId, Ft as BatchAddContactsSchema, G as getPriorityBucket, Gt as TriggerWorkflowSchema, H as LUA_RENEW_LOCK, Ht as QuietHoursSchema, I as sleep, It as ContactChannelSchema, J as globalEmitter, Jt as UserContactInputSchema, K as normaliseTarget, Kt as UpdateProjectSchema, L as DataLoader, Lt as CreateWorkflowSchema, M as UserThrottle, Mt as NotificationTargetSchema, N as AppError, Nt as AddContactSchema, O as WorkflowRepository, Ot as NotificationEnrichedPayloadSchema, P as ValidationError, Pt as AddUserSchema, Q as getMetricsRegistry, Qt as CONSUMER_GROUPS, R as CircuitBreaker, Rt as IngestEventSchema, S as ContactRepository, St as NotificationFailedPayloadSchema, T as SegmentRepository, Tt as NotificationDispatchedPayloadSchema, U as LUA_SCHEDULER_CLAIM, Ut as SyncTemplatesSchema, V as LUA_RELEASE_LOCK, Vt as PreferencesSchema, W as LUA_SCHEDULER_POLL, Wt as TemplateSchema, X as StreamConsumer, Xt as WorkflowStepSchema, Y as PendingMessageScanner, Yt as WorkflowNotifyPayloadSchema, Z as StreamProducer, Zt as buildStreamEvent, _ as escapeHeader, _n as parseConfig, a as SuspendExecutionError, an as StreamEventMetadataSchema, at as createDatabase, b as renderWithTemplate, bn as setGlobalConfig, bt as NotificationCanceledPayloadSchema, c as BaseWorker, cn as registry, d as buildUnsubscribeHeaders, dn as NotificationPrioritySchema, en as INBOUND_STREAMS, et as childLogger, f as signUnsubscribeToken, fn as NotificationStatusSchema, g as TemplateCache, gn as loadEnv, h as templateRegistry, hn as getAiConfig, i as workflowRegistry, in as EventEnvelopeSchema, it as IdempotencyGuard, j as ProjectSettingsCache, jt as NotificationRequestedPayloadSchema, k as Redis, kt as RecipientProfileSchema, l as NonRetryableError, ln as EventMetadataSchema, m as renderTemplate, mn as baseConfigSchema, n as NotifkitClient, nn as PUBSUB_CHANNELS, nt as withContext, o as buildStepNotifyPayload, on as StreamEventSchema, ot as runMigrations, p as verifyUnsubscribeToken, pn as AI_DEFAULTS, q as LRUCache, qt as UpdateUserSchema, r as workflow, rn as STREAMS, rt as withRequestId, s as resolveStepTarget, sn as EventRegistry, t as NotifkitServer, tn as OUTBOUND_STREAMS, tt as createLogger, u as startHealthReporter, un as NotificationChannelSchema, v as escapeHtml, vn as readBaseConfig, w as ProjectRepository, wt as DeliveryOptionsSchema, x as AdminUserRepository, xt as NotificationSkippedPayloadSchema, y as interpolate, yn as setAiConfig, yt as NotificationAiPendingPayloadSchema, z as BatchProcessor, zt as InlineUserSchema } from "./src-DkvHYM3y.mjs";
2
+ import { $ as metrics, $t as ENRICHED_STREAMS, A as RedisClient, At as NotificationCreatedPayloadSchema, B as AsyncSemaphore, Bt as NotifyRequestSchema, C as PreferenceRepository, Ct as NotificationDeliveredPayloadSchema, D as UserRepository, Dt as NotificationScheduledPayloadSchema, E as TemplateRepository, Et as RenderedContentSchema, F as generateId, Ft as BatchAddContactsSchema, G as getPriorityBucket, Gt as TriggerWorkflowSchema, H as LUA_RENEW_LOCK, Ht as QuietHoursSchema, I as sleep, It as ContactChannelSchema, J as globalEmitter, Jt as UserContactInputSchema, K as normaliseTarget, Kt as UpdateProjectSchema, L as DataLoader, Lt as CreateWorkflowSchema, M as UserThrottle, Mt as NotificationTargetSchema, N as AppError, Nt as AddContactSchema, O as WorkflowRepository, Ot as NotificationEnrichedPayloadSchema, P as ValidationError, Pt as AddUserSchema, Q as getMetricsRegistry, Qt as CONSUMER_GROUPS, R as CircuitBreaker, Rt as IngestEventSchema, S as ContactRepository, St as NotificationFailedPayloadSchema, T as SegmentRepository, Tt as NotificationDispatchedPayloadSchema, U as LUA_SCHEDULER_CLAIM, Ut as SyncTemplatesSchema, V as LUA_RELEASE_LOCK, Vt as PreferencesSchema, W as LUA_SCHEDULER_POLL, Wt as TemplateSchema, X as StreamConsumer, Xt as WorkflowStepSchema, Y as PendingMessageScanner, Yt as WorkflowNotifyPayloadSchema, Z as StreamProducer, Zt as buildStreamEvent, _ as escapeHeader, _n as parseConfig, a as SuspendExecutionError, an as StreamEventMetadataSchema, at as createDatabase, b as renderWithTemplate, bn as setGlobalConfig, bt as NotificationCanceledPayloadSchema, c as BaseWorker, cn as registry, d as buildUnsubscribeHeaders, dn as NotificationPrioritySchema, en as INBOUND_STREAMS, et as childLogger, f as signUnsubscribeToken, fn as NotificationStatusSchema, g as TemplateCache, gn as loadEnv, h as templateRegistry, hn as getAiConfig, i as workflowRegistry, in as EventEnvelopeSchema, it as IdempotencyGuard, j as ProjectSettingsCache, jt as NotificationRequestedPayloadSchema, k as Redis, kt as RecipientProfileSchema, l as NonRetryableError, ln as EventMetadataSchema, m as renderTemplate, mn as baseConfigSchema, n as NotifkitClient, nn as PUBSUB_CHANNELS, nt as withContext, o as buildStepNotifyPayload, on as StreamEventSchema, ot as runMigrations, p as verifyUnsubscribeToken, pn as AI_DEFAULTS, q as LRUCache, qt as UpdateUserSchema, r as workflow, rn as STREAMS, rt as withRequestId, s as resolveStepTarget, sn as EventRegistry, t as NotifkitServer, tn as OUTBOUND_STREAMS, tt as createLogger, u as startHealthReporter, un as NotificationChannelSchema, v as escapeHtml, vn as readBaseConfig, w as ProjectRepository, wt as DeliveryOptionsSchema, x as AdminUserRepository, xt as NotificationSkippedPayloadSchema, y as interpolate, yn as setAiConfig, yt as NotificationAiPendingPayloadSchema, z as BatchProcessor, zt as InlineUserSchema } from "./src-QiTu5e_a.mjs";
3
3
  //#region src/transport/index.ts
4
4
  var transport_exports = /* @__PURE__ */ __exportAll({
5
5
  registerTransport: () => registerTransport,