@dojocoding/whatsapp-sdk 0.8.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/package.json ADDED
@@ -0,0 +1,181 @@
1
+ {
2
+ "name": "@dojocoding/whatsapp-sdk",
3
+ "version": "0.8.0",
4
+ "description": "Typed TypeScript SDK for Meta's WhatsApp Cloud API, opinionated for agentic use cases (LLM orchestrators, multi-turn bots, multi-tenant deployments, transactional pipelines). Sibling package: @dojocoding/whatsapp-mcp.",
5
+ "license": "MIT",
6
+ "author": "Dojo Coding LLC",
7
+ "homepage": "https://github.com/DojoCodingLabs/whatsapp-adapter/tree/main/packages/whatsapp-sdk#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/DojoCodingLabs/whatsapp-adapter.git",
11
+ "directory": "packages/whatsapp-sdk"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/DojoCodingLabs/whatsapp-adapter/issues"
15
+ },
16
+ "keywords": [
17
+ "whatsapp",
18
+ "whatsapp-cloud-api",
19
+ "meta",
20
+ "graph-api",
21
+ "typescript",
22
+ "sdk",
23
+ "agent",
24
+ "llm",
25
+ "mcp",
26
+ "webhooks",
27
+ "multi-tenant",
28
+ "opentelemetry"
29
+ ],
30
+ "type": "module",
31
+ "engines": {
32
+ "node": ">=20"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "provenance": true
37
+ },
38
+ "main": "./dist/index.cjs",
39
+ "module": "./dist/index.js",
40
+ "types": "./dist/index.d.ts",
41
+ "exports": {
42
+ ".": {
43
+ "types": "./dist/index.d.ts",
44
+ "import": "./dist/index.js",
45
+ "require": "./dist/index.cjs"
46
+ },
47
+ "./express": {
48
+ "types": "./dist/adapters/express/index.d.ts",
49
+ "import": "./dist/adapters/express/index.js",
50
+ "require": "./dist/adapters/express/index.cjs"
51
+ },
52
+ "./web": {
53
+ "types": "./dist/adapters/web/index.d.ts",
54
+ "import": "./dist/adapters/web/index.js",
55
+ "require": "./dist/adapters/web/index.cjs"
56
+ },
57
+ "./hono": {
58
+ "types": "./dist/adapters/hono/index.d.ts",
59
+ "import": "./dist/adapters/hono/index.js",
60
+ "require": "./dist/adapters/hono/index.cjs"
61
+ },
62
+ "./storage/redis": {
63
+ "types": "./dist/storage/redis.d.ts",
64
+ "import": "./dist/storage/redis.js",
65
+ "require": "./dist/storage/redis.cjs"
66
+ },
67
+ "./storage/postgres": {
68
+ "types": "./dist/storage/postgres.d.ts",
69
+ "import": "./dist/storage/postgres.js",
70
+ "require": "./dist/storage/postgres.cjs"
71
+ },
72
+ "./package.json": "./package.json"
73
+ },
74
+ "files": [
75
+ "dist",
76
+ "LICENSE",
77
+ "README.md",
78
+ "CHANGELOG.md"
79
+ ],
80
+ "size-limit": [
81
+ {
82
+ "name": "@dojocoding/whatsapp-sdk (root, ESM)",
83
+ "path": "dist/index.js",
84
+ "limit": "100 KB"
85
+ },
86
+ {
87
+ "name": "@dojocoding/whatsapp-sdk (root, CJS)",
88
+ "path": "dist/index.cjs",
89
+ "limit": "100 KB"
90
+ },
91
+ {
92
+ "name": "@dojocoding/whatsapp-sdk/express",
93
+ "path": "dist/adapters/express/index.cjs",
94
+ "limit": "6 KB"
95
+ },
96
+ {
97
+ "name": "@dojocoding/whatsapp-sdk/web",
98
+ "path": "dist/adapters/web/index.cjs",
99
+ "limit": "3 KB"
100
+ },
101
+ {
102
+ "name": "@dojocoding/whatsapp-sdk/hono",
103
+ "path": "dist/adapters/hono/index.cjs",
104
+ "limit": "3 KB"
105
+ },
106
+ {
107
+ "name": "@dojocoding/whatsapp-sdk/storage/redis",
108
+ "path": "dist/storage/redis.cjs",
109
+ "limit": "2 KB"
110
+ },
111
+ {
112
+ "name": "@dojocoding/whatsapp-sdk/storage/postgres",
113
+ "path": "dist/storage/postgres.cjs",
114
+ "limit": "4 KB"
115
+ }
116
+ ],
117
+ "peerDependencies": {
118
+ "@opentelemetry/api": "^1.9.0",
119
+ "express": "^4.17.0 || ^5.0.0",
120
+ "hono": "^4.0.0",
121
+ "ioredis": "^5.0.0",
122
+ "pg": "^8.0.0"
123
+ },
124
+ "peerDependenciesMeta": {
125
+ "@opentelemetry/api": {
126
+ "optional": true
127
+ },
128
+ "express": {
129
+ "optional": true
130
+ },
131
+ "hono": {
132
+ "optional": true
133
+ },
134
+ "ioredis": {
135
+ "optional": true
136
+ },
137
+ "pg": {
138
+ "optional": true
139
+ }
140
+ },
141
+ "devDependencies": {
142
+ "@eslint/js": "^9.39.4",
143
+ "@opentelemetry/api": "^1.9.0",
144
+ "@opentelemetry/sdk-trace-base": "^2.7.1",
145
+ "@opentelemetry/sdk-trace-node": "^2.7.1",
146
+ "@size-limit/file": "^12.1.0",
147
+ "@types/express": "^5.0.6",
148
+ "@types/node": "^22.19.18",
149
+ "@types/supertest": "^7.2.0",
150
+ "@vitest/coverage-v8": "^2.1.9",
151
+ "eslint": "^9.39.4",
152
+ "eslint-plugin-import": "^2.32.0",
153
+ "express": "^4.22.1",
154
+ "fast-check": "^3.23.2",
155
+ "hono": "^4.12.18",
156
+ "msw": "^2.14.5",
157
+ "prettier": "^3.8.3",
158
+ "size-limit": "^12.1.0",
159
+ "supertest": "^7.2.2",
160
+ "tsup": "^8.5.1",
161
+ "typescript": "^5.9.3",
162
+ "typescript-eslint": "^8.59.2",
163
+ "vitest": "^2.1.9"
164
+ },
165
+ "dependencies": {
166
+ "zod": "^3.25.76"
167
+ },
168
+ "scripts": {
169
+ "build": "tsup",
170
+ "typecheck": "tsc --noEmit",
171
+ "lint": "eslint .",
172
+ "lint:fix": "eslint . --fix",
173
+ "format": "prettier --write .",
174
+ "format:check": "prettier --check .",
175
+ "test": "vitest run",
176
+ "test:watch": "vitest",
177
+ "test:coverage": "vitest run --coverage",
178
+ "openspec:validate": "openspec validate --changes --strict || openspec validate --specs --strict || true",
179
+ "size": "size-limit"
180
+ }
181
+ }