{"_id":"@a7medalhadi/waba-interface","name":"@a7medalhadi/waba-interface","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@a7medalhadi/waba-interface","version":"1.0.2","description":"A simple, clean TypeScript library for WhatsApp Business API (Cloud API) - send messages, manage templates, flows, media, and more","keywords":["whatsapp","whatsapp-business","whatsapp-api","cloud-api","messaging","waba","typescript"],"author":{"name":"Ahmed Al-Hadi","email":"ahmedalhadi7.aa@gmail.com"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"https://github.com/a7medalhadi/waba-interface"},"homepage":"https://github.com/a7medalhadi/waba-interface#readme","bugs":{"url":"https://github.com/a7medalhadi/waba-interface/issues"},"scripts":{"build":"tsc","prepare":"npm run build"},"devDependencies":{"@types/jest":"^29.5.14","@types/node":"^22.10.7","jest":"^29.7.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.7.3"},"dependencies":{"axios":"^1.7.9"},"_id":"@a7medalhadi/waba-interface@1.0.2","dist":{"shasum":"d69cdf95a6dbfad9b7df0b2ec2f7706f0785af6f","integrity":"sha512-VwZeS7laywqXdCbdVYC6EgFDlqcMRXshqvjRL/vWixoj2hpV4DI3GUEORhxQQN6prJ53jRBYLz2g0R+oDAIJAw==","tarball":"https://registry.npmjs.org/@a7medalhadi/waba-interface/-/waba-interface-1.0.2.tgz","fileCount":104,"unpackedSize":80117,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbEho9MpOcOAWNXHgfD3/7Ecsx2AXVk5icC9ELdA9CowIgZEotwwIcsVk8DFzT9MTaFIbcpv3yZnjKx+UAWiNrc2U="}]},"_npmUser":{"name":"a7medalhadi","email":"ahmedalhadi7.aa@gmail.com"},"directories":{},"maintainers":[{"name":"a7medalhadi","email":"ahmedalhadi7.aa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/waba-interface_1.0.2_1767860109949_0.9677135814314093"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-08T08:15:09.865Z","1.0.2":"2026-01-08T08:15:10.139Z","modified":"2026-01-08T08:15:10.411Z"},"maintainers":[{"name":"a7medalhadi","email":"ahmedalhadi7.aa@gmail.com"}],"description":"A simple, clean TypeScript library for WhatsApp Business API (Cloud API) - send messages, manage templates, flows, media, and more","homepage":"https://github.com/a7medalhadi/waba-interface#readme","keywords":["whatsapp","whatsapp-business","whatsapp-api","cloud-api","messaging","waba","typescript"],"repository":{"type":"git","url":"https://github.com/a7medalhadi/waba-interface"},"author":{"name":"Ahmed Al-Hadi","email":"ahmedalhadi7.aa@gmail.com"},"bugs":{"url":"https://github.com/a7medalhadi/waba-interface/issues"},"license":"MIT","readme":"# WhatsApp Business API Interface\n\nA simple TypeScript library for WhatsApp Business Cloud API.\n\n## Installation\n\n```bash\nnpm install @a7medalhadi/waba-interface\n```\n\n## Quick Start\n\n```typescript\nimport { WABA } from '@a7medalhadi/waba-interface';\n\nconst waba = new WABA({\n  token: 'your-access-token',\n  numberId: 'your-phone-number-id',\n  wabaId: 'your-waba-id'\n});\n\n// Send a text message\nawait waba.messages.sendTextMessage({\n  to: '1234567890',\n  text: { body: 'Hello!' }\n});\n```\n\n## Features\n\n### Messages\n\n```typescript\n// Text\nawait waba.messages.sendTextMessage({\n  to: '1234567890',\n  text: { body: 'Hello!' }\n});\n\n// Media (image, video, document)\nawait waba.messages.sendMediaMessage({\n  to: '1234567890',\n  media: {\n    type: 'image',\n    image: { link: 'https://example.com/image.jpg' }\n  }\n});\n\n// Interactive buttons\nawait waba.messages.sendReplyButtonMessage({\n  to: '1234567890',\n  interactive: {\n    type: 'button',\n    body: { text: 'Choose an option' },\n    action: {\n      buttons: [\n        { type: 'reply', reply: { id: 'yes', title: 'Yes' } }\n      ]\n    }\n  }\n});\n\n// Template\nawait waba.messages.sendTemplateMessage({\n  to: '1234567890',\n  template: {\n    name: 'template_name',\n    language: { code: 'en' }\n  }\n});\n```\n\n### Templates\n\n```typescript\n// List templates\nconst templates = await waba.templates.getTemplates({ limit: 10 });\n\n// Get specific template\nconst template = await waba.templates.getTemplate('template-id');\n```\n\n### Media\n\n```typescript\n// Upload\nawait waba.media.uploadMedia({ file: buffer, type: 'image/jpeg' });\n\n// Get URL\nawait waba.media.getMediaUrl({ media_id: 'id' });\n```\n\n### Flows\n\n```typescript\nawait waba.flows.createFlow({ name: 'My Flow', categories: ['SIGN_UP'] });\nawait waba.flows.publishFlow({ flowId: 'flow-id' });\n```\n\n## Get Credentials\n\nFrom [Meta for Developers](https://developers.facebook.com/apps):\n- **token**: Access token\n- **numberId**: Phone number ID\n- **wabaId**: WhatsApp Business Account ID\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-e3f42f456911a0678a5526be837f4cd9"}