@wuapidev/sdk 0.3.3 → 0.3.4
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/README.md +2 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ const wuapi = new Wuapi({ apiKey: process.env.WUAPI_API_KEY });
|
|
|
58
58
|
// 1. Pick where the number's traffic exits: use the phone number's country.
|
|
59
59
|
const [location] = await wuapi.proxyLocations.list({ country: "VE" }).toArray(1);
|
|
60
60
|
|
|
61
|
-
// 2. Create an account.
|
|
61
|
+
// 2. Create an account. The Free plan includes 1 number, 2,000 messages and 0.5 GB of proxy traffic a month, no card.
|
|
62
62
|
const account = await wuapi.accounts.create({
|
|
63
63
|
name: "Support line",
|
|
64
64
|
proxyLocation: { country: location!.country, city: location!.city },
|
|
@@ -313,7 +313,7 @@ const report = await wuapi.usage.byProject({ month: "2026-09" }); // one line pe
|
|
|
313
313
|
for (const line of report.projects) console.log(line.externalId, line.billableAccountCount, line.sentMessageCount);
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
-
wuapi bills the organization across all its projects; `usage.byProject` is what you rebill from. `usage.get()` is the organization's own bill this month: every billable account includes 0.5 GB of proxy, pooled, so `proxyBytes` is everything used, `includedProxyBytes` the pool, and `proxyFeeCents` bills only `billableProxyBytes`, the traffic past it, at $0.99 per GB.
|
|
316
|
+
wuapi bills the organization across all its projects; `usage.byProject` is what you rebill from. `usage.get()` is the organization's own bill this month: every billable account includes 0.5 GB of proxy, pooled (traffic used on the Free plan is never billed), so `proxyBytes` is everything used, `includedProxyBytes` the pool, and `proxyFeeCents` bills only `billableProxyBytes`, the traffic past it, at $0.99 per GB.
|
|
317
317
|
|
|
318
318
|
## Errors
|
|
319
319
|
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CallOptions } from "./types.js";
|
|
2
|
-
export declare const VERSION = "0.3.
|
|
2
|
+
export declare const VERSION = "0.3.4";
|
|
3
3
|
export declare const DEFAULT_BASE_URL = "https://api.wuapi.dev";
|
|
4
4
|
export type FetchLike = (input: string, init: RequestInit) => Promise<Response>;
|
|
5
5
|
export interface ClientOptions {
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WuapiError } from "./errors.js";
|
|
2
|
-
export const VERSION = "0.3.
|
|
2
|
+
export const VERSION = "0.3.4";
|
|
3
3
|
export const DEFAULT_BASE_URL = "https://api.wuapi.dev";
|
|
4
4
|
export const PROJECT_HEADER = "Wuapi-Project";
|
|
5
5
|
export const IDEMPOTENCY_HEADER = "Idempotency-Key";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wuapidev/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "TypeScript SDK for wuapi, a WhatsApp API for developers. Link numbers by QR or pairing code, send and receive messages, manage chats, contacts, groups and channels, split them into projects and verify webhooks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|