fastsend-whatsapp-sdk 0.0.0-stage → 1.0.1
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 +18 -0
- package/LICENSE +38 -0
- package/README.md +702 -2
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +5924 -0
- package/dist/index.d.mts +5924 -0
- package/dist/index.mjs +2 -0
- package/package.json +73 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.1 — 2026-11-17
|
|
4
|
+
|
|
5
|
+
- Documented WhatsApp's 20-character limit on named template variables: `TemplateSendParameter.parameter_name` and `TemplateNamedParamExample.param_name` (WhatsApp refuses every send with a longer name — "parameter_name must be at most 20 characters long"). The API now refuses such a name up front — 400 on `templates.create` / `templates.update` and on a send's `components`, 422 naming the variables on `messages.sendTemplate` with a stored template that has one — instead of passing WhatsApp's refusal through.
|
|
6
|
+
|
|
7
|
+
## 1.0.0 — 2026-11-10
|
|
8
|
+
|
|
9
|
+
First release.
|
|
10
|
+
|
|
11
|
+
- `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.
|
|
12
|
+
- Send helpers for every message type (`sendText`, `sendTemplate`, `sendImage`, …) with automatic sender selection.
|
|
13
|
+
- Automatic retries with backoff (rate limits, timeouts, 5xx) that never double-send: sends carry an `Idempotency-Key`.
|
|
14
|
+
- Typed errors (`PlanRestrictionError`, `RateLimitError`, `UnprocessableEntityError.windowClosed`, …) with the request id for support.
|
|
15
|
+
- Auto-pagination: `await` a list for one page, `for await` it for every item.
|
|
16
|
+
- `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'`).
|
|
17
|
+
- 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.
|
|
18
|
+
- 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.
|