whatsapp-cloud 0.0.7 → 0.0.10
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 +4 -1
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.github/workflows/main.yml +0 -21
- package/.github/workflows/publish.yml +0 -33
- package/CHANGELOG.md +0 -47
- package/agent_docs/DESIGN.md +0 -707
- package/agent_docs/INCOMING_MESSAGES_BRAINSTORM.md +0 -500
- package/agent_docs/MESSAGES_NAMESPACE_ANALYSIS.md +0 -368
- package/agent_docs/NAMING_DECISION.md +0 -78
- package/agent_docs/STRUCTURE.md +0 -711
- package/agent_docs/messages-namespace-design.md +0 -357
- package/cloud-api-docs/webhooks/endpoint.md +0 -112
- package/cloud-api-docs/webhooks/overview.md +0 -154
- package/docs/DEVELOPMENT.md +0 -154
- package/docs/webhooks.md +0 -104
- package/src/client/HttpClient.ts +0 -190
- package/src/client/WhatsAppClient.ts +0 -61
- package/src/client/index.ts +0 -2
- package/src/errors.ts +0 -58
- package/src/examples/main.ts +0 -9
- package/src/examples/template.ts +0 -134
- package/src/index.ts +0 -23
- package/src/schemas/accounts/index.ts +0 -1
- package/src/schemas/accounts/phone-number.ts +0 -20
- package/src/schemas/business/account.ts +0 -43
- package/src/schemas/business/index.ts +0 -2
- package/src/schemas/client.ts +0 -50
- package/src/schemas/debug.ts +0 -25
- package/src/schemas/index.ts +0 -7
- package/src/schemas/messages/index.ts +0 -2
- package/src/schemas/messages/request.ts +0 -82
- package/src/schemas/messages/response.ts +0 -19
- package/src/schemas/templates/component.ts +0 -145
- package/src/schemas/templates/index.ts +0 -4
- package/src/schemas/templates/request.ts +0 -78
- package/src/schemas/templates/response.ts +0 -64
- package/src/schemas/webhooks/incoming-message.ts +0 -72
- package/src/schemas/webhooks/index.ts +0 -3
- package/src/schemas/webhooks/payload.ts +0 -56
- package/src/services/accounts/AccountsClient.ts +0 -34
- package/src/services/accounts/AccountsService.ts +0 -45
- package/src/services/accounts/index.ts +0 -2
- package/src/services/accounts/methods/list-phone-numbers.ts +0 -15
- package/src/services/business/BusinessClient.ts +0 -34
- package/src/services/business/BusinessService.ts +0 -45
- package/src/services/business/index.ts +0 -3
- package/src/services/business/methods/list-accounts.ts +0 -17
- package/src/services/index.ts +0 -2
- package/src/services/messages/MessagesClient.ts +0 -34
- package/src/services/messages/MessagesService.ts +0 -97
- package/src/services/messages/index.ts +0 -8
- package/src/services/messages/methods/send-image.ts +0 -33
- package/src/services/messages/methods/send-location.ts +0 -32
- package/src/services/messages/methods/send-reaction.ts +0 -33
- package/src/services/messages/methods/send-text.ts +0 -32
- package/src/services/messages/utils/build-message-payload.ts +0 -32
- package/src/services/templates/TemplatesClient.ts +0 -35
- package/src/services/templates/TemplatesService.ts +0 -117
- package/src/services/templates/index.ts +0 -3
- package/src/services/templates/methods/create.ts +0 -29
- package/src/services/templates/methods/delete.ts +0 -38
- package/src/services/templates/methods/get.ts +0 -23
- package/src/services/templates/methods/list.ts +0 -36
- package/src/services/templates/methods/update.ts +0 -35
- package/src/services/webhooks/WebhooksService.ts +0 -265
- package/src/services/webhooks/index.ts +0 -3
- package/src/services/webhooks/utils/extract-messages.ts +0 -25
- package/src/services/webhooks/utils/extract-statuses.ts +0 -25
- package/src/services/webhooks/utils/verify.ts +0 -29
- package/src/types/accounts/index.ts +0 -1
- package/src/types/accounts/phone-number.ts +0 -9
- package/src/types/business/account.ts +0 -10
- package/src/types/business/index.ts +0 -2
- package/src/types/client.ts +0 -8
- package/src/types/debug.ts +0 -8
- package/src/types/index.ts +0 -7
- package/src/types/messages/index.ts +0 -2
- package/src/types/messages/request.ts +0 -27
- package/src/types/messages/response.ts +0 -7
- package/src/types/templates/component.ts +0 -33
- package/src/types/templates/index.ts +0 -4
- package/src/types/templates/request.ts +0 -28
- package/src/types/templates/response.ts +0 -34
- package/src/types/webhooks/incoming-message.ts +0 -27
- package/src/types/webhooks/index.ts +0 -3
- package/src/types/webhooks/payload.ts +0 -8
- package/src/utils/zod-error.ts +0 -28
- package/tsconfig.json +0 -47
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whatsapp-cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Work in progress. A WhatsApp client tailored for LLMs—built to actually work.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
9
12
|
"keywords": [],
|
|
10
13
|
"author": "",
|
|
11
14
|
"license": "MIT",
|
package/.changeset/README.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Changesets
|
|
2
|
-
|
|
3
|
-
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
-
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
-
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
-
|
|
7
|
-
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
-
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
package/.changeset/config.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
|
|
3
|
-
"changelog": "@changesets/cli/changelog",
|
|
4
|
-
"commit": false,
|
|
5
|
-
"fixed": [],
|
|
6
|
-
"linked": [],
|
|
7
|
-
"access": "public",
|
|
8
|
-
"baseBranch": "main",
|
|
9
|
-
"updateInternalDependencies": "patch",
|
|
10
|
-
"ignore": []
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- "**"
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v3
|
|
13
|
-
- uses: pnpm/action-setup@v2
|
|
14
|
-
with:
|
|
15
|
-
version: 10.24.0
|
|
16
|
-
- uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 22
|
|
19
|
-
cache: "pnpm"
|
|
20
|
-
- run: pnpm install --frozen-lockfile
|
|
21
|
-
- run: pnpm run lint && pnpm run build
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- "main"
|
|
7
|
-
|
|
8
|
-
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v3
|
|
15
|
-
- uses: pnpm/action-setup@v2
|
|
16
|
-
with:
|
|
17
|
-
version: 10.24.0
|
|
18
|
-
- uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version: 22
|
|
21
|
-
cache: "pnpm"
|
|
22
|
-
- run: pnpm install --frozen-lockfile
|
|
23
|
-
- name: Setup npm authentication for pnpm
|
|
24
|
-
run: |
|
|
25
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > $HOME/.npmrc
|
|
26
|
-
- name: Create Release Pull Request or Publish
|
|
27
|
-
id: changesets
|
|
28
|
-
uses: changesets/action@v1
|
|
29
|
-
with:
|
|
30
|
-
publish: pnpm publish
|
|
31
|
-
env:
|
|
32
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
33
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/CHANGELOG.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# whatzapp
|
|
2
|
-
|
|
3
|
-
## 0.0.7
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 2024d31: add audio and image handler
|
|
8
|
-
- f2501c2: add template types
|
|
9
|
-
|
|
10
|
-
## 0.0.6
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- a46c084: export types
|
|
15
|
-
- 175d774: add webhooks namespace
|
|
16
|
-
|
|
17
|
-
## 0.0.5
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- baf823b: added templates namespace
|
|
22
|
-
|
|
23
|
-
## 0.0.4
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- b1f5fa8: add readme
|
|
28
|
-
- a752277: add business namespace
|
|
29
|
-
|
|
30
|
-
## 0.0.3
|
|
31
|
-
|
|
32
|
-
### Patch Changes
|
|
33
|
-
|
|
34
|
-
- a86dcaf: add cloud
|
|
35
|
-
|
|
36
|
-
## 0.0.3
|
|
37
|
-
|
|
38
|
-
### Patch Changes
|
|
39
|
-
|
|
40
|
-
- 4e05f92: rename to sdk
|
|
41
|
-
|
|
42
|
-
## 0.0.2
|
|
43
|
-
|
|
44
|
-
### Patch Changes
|
|
45
|
-
|
|
46
|
-
- e136a20: initialized project
|
|
47
|
-
- 5db0ff7: make public
|