@wuapidev/sdk 0.3.0 → 0.3.2
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 +3 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npm install @wuapidev/sdk
|
|
|
21
21
|
# or: pnpm add @wuapidev/sdk / yarn add @wuapidev/sdk / bun add @wuapidev/sdk
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Using a coding agent? Paste [wuapi.dev/llms-full.txt](https://wuapi.dev/llms-full.txt), the whole documentation as one Markdown file.
|
|
24
|
+
Using a coding agent? Paste [wuapi.dev/llms-full.txt](https://wuapi.dev/llms-full.txt), the whole documentation as one Markdown file. To let Claude, Cursor or VS Code act on your account directly, use the MCP server, [`@wuapidev/mcp`](https://wuapi.dev/docs/mcp), built on this SDK.
|
|
25
25
|
|
|
26
26
|
## Requirements
|
|
27
27
|
|
|
@@ -312,7 +312,7 @@ const report = await wuapi.usage.byProject({ month: "2026-09" }); // one line pe
|
|
|
312
312
|
for (const line of report.projects) console.log(line.externalId, line.billableAccountCount, line.sentMessageCount);
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
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 $
|
|
315
|
+
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
316
|
|
|
317
317
|
## Errors
|
|
318
318
|
|
|
@@ -404,6 +404,7 @@ Account-level resources take the `accountId` first.
|
|
|
404
404
|
- Documentation: [wuapi.dev/docs](https://wuapi.dev/docs)
|
|
405
405
|
- OpenAPI spec: [wuapi.dev/openapi.json](https://wuapi.dev/openapi.json)
|
|
406
406
|
- The docs as one Markdown file, for coding agents: [wuapi.dev/llms-full.txt](https://wuapi.dev/llms-full.txt)
|
|
407
|
+
- MCP server for Claude, Cursor, VS Code and other MCP clients: [wuapi.dev/docs/mcp](https://wuapi.dev/docs/mcp) (`npx -y @wuapidev/mcp`)
|
|
407
408
|
- Releases and changelog: [GitHub Releases](https://github.com/wuapidev/wuapi-typescript/releases)
|
|
408
409
|
|
|
409
410
|
## Contributing
|
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.2";
|
|
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.2";
|
|
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.2",
|
|
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",
|