fastsend-whatsapp-sdk 0.0.0-stage → 1.0.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 — 2026-11-10
4
+
5
+ First release.
6
+
7
+ - `FastSend` client for every endpoint an API key can call (95 operations): messages, WhatsApp numbers, templates (incl. OTP), media, contacts, tags, contact fields, segments, conversations, broadcasts, chatbot flows and webhook endpoints.
8
+ - Send helpers for every message type (`sendText`, `sendTemplate`, `sendImage`, …) with automatic sender selection.
9
+ - Automatic retries with backoff (rate limits, timeouts, 5xx) that never double-send: sends carry an `Idempotency-Key`.
10
+ - Typed errors (`PlanRestrictionError`, `RateLimitError`, `UnprocessableEntityError.windowClosed`, …) with the request id for support.
11
+ - Auto-pagination: `await` a list for one page, `for await` it for every item.
12
+ - `capabilities()`: what the key may do under the company's plan, before calling — including reads a send-only plan narrows to outbound messages (`limitedTo: 'outbound'`).
13
+ - Signed webhook receiver: `parseWebhookEvent`, `createWebhookHandler` (Fetch API: Next.js, Hono, Bun, Deno, Workers) and `createNodeWebhookHandler` (Express, NestJS, `http`), plus `processWebhook` for any other framework (e.g. Fastify), with typed events and duplicate suppression.
14
+ - ESM + CommonJS, full TypeScript types, zero runtime dependencies, Node.js ≥ 20 / Bun / Deno / edge runtimes.
package/LICENSE ADDED
@@ -0,0 +1,38 @@
1
+ FastSend WhatsApp SDK — Proprietary Software License
2
+
3
+ Copyright (c) 2026 TrackFlow CRM. All rights reserved.
4
+
5
+ The npm package "fastsend-whatsapp-sdk" (the "SDK") is proprietary software
6
+ owned by TrackFlow CRM. It is licensed, not sold.
7
+
8
+ 1. Permitted use. You may install the SDK and use it, unmodified, inside your
9
+ own applications for the sole purpose of accessing the FastSend WhatsApp
10
+ API with credentials issued to you or your organisation. You may
11
+ distribute your application with the SDK included as a dependency or
12
+ bundled by a build tool.
13
+
14
+ 2. Restrictions. Except as expressly permitted above or by applicable law,
15
+ you may not: (a) copy, modify, translate or create derivative works of the
16
+ SDK; (b) decompile, disassemble, deobfuscate or otherwise reverse engineer
17
+ the SDK or attempt to derive its source code; (c) sell, sublicense, rent
18
+ or redistribute the SDK on its own; (d) use the SDK to access any service
19
+ other than the FastSend WhatsApp API; (e) remove or alter any notice in
20
+ the SDK.
21
+
22
+ 3. Credentials. You are responsible for keeping your API keys and webhook
23
+ secrets confidential and for all use made with them.
24
+
25
+ 4. No warranty. THE SDK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
28
+
29
+ 5. Limitation of liability. IN NO EVENT SHALL TRACKFLOW CRM BE LIABLE FOR ANY
30
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
31
+ OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SDK OR ITS
32
+ USE.
33
+
34
+ 6. Termination. This license ends automatically if you breach it or when
35
+ your access to the FastSend WhatsApp API ends.
36
+
37
+ Use of the FastSend WhatsApp API itself is governed by the FastSend terms of
38
+ service.