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.
Files changed (89) hide show
  1. package/package.json +4 -1
  2. package/.changeset/README.md +0 -8
  3. package/.changeset/config.json +0 -11
  4. package/.github/workflows/main.yml +0 -21
  5. package/.github/workflows/publish.yml +0 -33
  6. package/CHANGELOG.md +0 -47
  7. package/agent_docs/DESIGN.md +0 -707
  8. package/agent_docs/INCOMING_MESSAGES_BRAINSTORM.md +0 -500
  9. package/agent_docs/MESSAGES_NAMESPACE_ANALYSIS.md +0 -368
  10. package/agent_docs/NAMING_DECISION.md +0 -78
  11. package/agent_docs/STRUCTURE.md +0 -711
  12. package/agent_docs/messages-namespace-design.md +0 -357
  13. package/cloud-api-docs/webhooks/endpoint.md +0 -112
  14. package/cloud-api-docs/webhooks/overview.md +0 -154
  15. package/docs/DEVELOPMENT.md +0 -154
  16. package/docs/webhooks.md +0 -104
  17. package/src/client/HttpClient.ts +0 -190
  18. package/src/client/WhatsAppClient.ts +0 -61
  19. package/src/client/index.ts +0 -2
  20. package/src/errors.ts +0 -58
  21. package/src/examples/main.ts +0 -9
  22. package/src/examples/template.ts +0 -134
  23. package/src/index.ts +0 -23
  24. package/src/schemas/accounts/index.ts +0 -1
  25. package/src/schemas/accounts/phone-number.ts +0 -20
  26. package/src/schemas/business/account.ts +0 -43
  27. package/src/schemas/business/index.ts +0 -2
  28. package/src/schemas/client.ts +0 -50
  29. package/src/schemas/debug.ts +0 -25
  30. package/src/schemas/index.ts +0 -7
  31. package/src/schemas/messages/index.ts +0 -2
  32. package/src/schemas/messages/request.ts +0 -82
  33. package/src/schemas/messages/response.ts +0 -19
  34. package/src/schemas/templates/component.ts +0 -145
  35. package/src/schemas/templates/index.ts +0 -4
  36. package/src/schemas/templates/request.ts +0 -78
  37. package/src/schemas/templates/response.ts +0 -64
  38. package/src/schemas/webhooks/incoming-message.ts +0 -72
  39. package/src/schemas/webhooks/index.ts +0 -3
  40. package/src/schemas/webhooks/payload.ts +0 -56
  41. package/src/services/accounts/AccountsClient.ts +0 -34
  42. package/src/services/accounts/AccountsService.ts +0 -45
  43. package/src/services/accounts/index.ts +0 -2
  44. package/src/services/accounts/methods/list-phone-numbers.ts +0 -15
  45. package/src/services/business/BusinessClient.ts +0 -34
  46. package/src/services/business/BusinessService.ts +0 -45
  47. package/src/services/business/index.ts +0 -3
  48. package/src/services/business/methods/list-accounts.ts +0 -17
  49. package/src/services/index.ts +0 -2
  50. package/src/services/messages/MessagesClient.ts +0 -34
  51. package/src/services/messages/MessagesService.ts +0 -97
  52. package/src/services/messages/index.ts +0 -8
  53. package/src/services/messages/methods/send-image.ts +0 -33
  54. package/src/services/messages/methods/send-location.ts +0 -32
  55. package/src/services/messages/methods/send-reaction.ts +0 -33
  56. package/src/services/messages/methods/send-text.ts +0 -32
  57. package/src/services/messages/utils/build-message-payload.ts +0 -32
  58. package/src/services/templates/TemplatesClient.ts +0 -35
  59. package/src/services/templates/TemplatesService.ts +0 -117
  60. package/src/services/templates/index.ts +0 -3
  61. package/src/services/templates/methods/create.ts +0 -29
  62. package/src/services/templates/methods/delete.ts +0 -38
  63. package/src/services/templates/methods/get.ts +0 -23
  64. package/src/services/templates/methods/list.ts +0 -36
  65. package/src/services/templates/methods/update.ts +0 -35
  66. package/src/services/webhooks/WebhooksService.ts +0 -265
  67. package/src/services/webhooks/index.ts +0 -3
  68. package/src/services/webhooks/utils/extract-messages.ts +0 -25
  69. package/src/services/webhooks/utils/extract-statuses.ts +0 -25
  70. package/src/services/webhooks/utils/verify.ts +0 -29
  71. package/src/types/accounts/index.ts +0 -1
  72. package/src/types/accounts/phone-number.ts +0 -9
  73. package/src/types/business/account.ts +0 -10
  74. package/src/types/business/index.ts +0 -2
  75. package/src/types/client.ts +0 -8
  76. package/src/types/debug.ts +0 -8
  77. package/src/types/index.ts +0 -7
  78. package/src/types/messages/index.ts +0 -2
  79. package/src/types/messages/request.ts +0 -27
  80. package/src/types/messages/response.ts +0 -7
  81. package/src/types/templates/component.ts +0 -33
  82. package/src/types/templates/index.ts +0 -4
  83. package/src/types/templates/request.ts +0 -28
  84. package/src/types/templates/response.ts +0 -34
  85. package/src/types/webhooks/incoming-message.ts +0 -27
  86. package/src/types/webhooks/index.ts +0 -3
  87. package/src/types/webhooks/payload.ts +0 -8
  88. package/src/utils/zod-error.ts +0 -28
  89. package/tsconfig.json +0 -47
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "whatsapp-cloud",
3
- "version": "0.0.7",
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",
@@ -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)
@@ -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