@muhammedaksam/waha-node 2025.12.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/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@muhammedaksam/waha-node",
3
+ "version": "2025.12.1",
4
+ "type": "module",
5
+ "description": "Node.js TypeScript SDK for WAHA (WhatsApp HTTP API) - auto-generated from OpenAPI spec",
6
+ "main": "dist/index.cjs.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.esm.js",
12
+ "require": "./dist/index.cjs.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "fetch:openapi": "curl -u ${WHATSAPP_SWAGGER_USERNAME:-WHATSAPP_SWAGGER_USERNAME}:${WHATSAPP_SWAGGER_PASSWORD:-WHATSAPP_SWAGGER_PASSWORD} -o openapi.json ${WAHA_URL:-http://localhost:3000}/-json && prettier --write openapi.json",
21
+ "generate:types": "npx swagger-typescript-api generate -p openapi.json -o src/generated -n api.ts --axios --modular --module-name-first-tag && npx tsx scripts/clean-generated.ts",
22
+ "generate": "pnpm run fetch:openapi && pnpm run generate:types",
23
+ "build": "rollup -c",
24
+ "build:watch": "rollup -c --watch",
25
+ "lint": "eslint .",
26
+ "lint:fix": "eslint . --fix",
27
+ "format": "prettier --write .",
28
+ "format:check": "prettier --check .",
29
+ "clean": "rm -rf dist",
30
+ "check": "pnpm run lint && pnpm run format:check",
31
+ "fix": "pnpm run lint:fix && pnpm run format",
32
+ "prepublishOnly": "pnpm run clean && pnpm run build",
33
+ "test": "tsx example/index.ts",
34
+ "docs": "typedoc src/index.ts --out docs --excludePrivate --excludeInternal"
35
+ },
36
+ "keywords": [
37
+ "waha",
38
+ "whatsapp",
39
+ "whatsapp-api",
40
+ "http-api",
41
+ "typescript",
42
+ "nodejs",
43
+ "sdk"
44
+ ],
45
+ "author": "Muhammed Mustafa AKŞAM <info@muhammedaksam.com.tr> (https://github.com/muhammedaksam)",
46
+ "license": "MIT",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/muhammedaksam/waha-node.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/muhammedaksam/waha-node/issues"
53
+ },
54
+ "homepage": "https://github.com/muhammedaksam/waha-node#readme",
55
+ "dependencies": {
56
+ "axios": "^1.13.2"
57
+ },
58
+ "devDependencies": {
59
+ "@eslint/js": "^9.39.2",
60
+ "@rollup/plugin-commonjs": "^28.0.9",
61
+ "@rollup/plugin-json": "^6.1.0",
62
+ "@rollup/plugin-node-resolve": "^16.0.3",
63
+ "@rollup/plugin-terser": "^0.4.4",
64
+ "@rollup/plugin-typescript": "^12.3.0",
65
+ "@types/node": "^25.0.3",
66
+ "eslint": "^9.39.2",
67
+ "eslint-config-prettier": "^10.1.8",
68
+ "globals": "^16.5.0",
69
+ "jiti": "^2.6.1",
70
+ "prettier": "^3.7.4",
71
+ "rollup": "^4.53.5",
72
+ "rollup-plugin-dts": "^6.3.0",
73
+ "swagger-typescript-api": "^13.2.16",
74
+ "tslib": "^2.8.1",
75
+ "tsx": "^4.21.0",
76
+ "typedoc": "^0.28.15",
77
+ "typescript": "^5.9.3",
78
+ "typescript-eslint": "^8.50.0"
79
+ },
80
+ "engines": {
81
+ "node": ">=18"
82
+ },
83
+ "publishConfig": {
84
+ "access": "public",
85
+ "provenance": true
86
+ }
87
+ }