{"_id":"@amgmail/sdk","name":"@amgmail/sdk","dist-tags":{"latest":"0.12.1"},"versions":{"0.12.1":{"name":"@amgmail/sdk","version":"0.12.1","description":"AMG Mail server-side SDK for Node.js and TypeScript","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=20"},"scripts":{"build":"node ../../apps/api/node_modules/typescript/bin/tsc -p tsconfig.json","test":"node --test test.mjs"},"homepage":"https://amgmail.amgcc.space/docs","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@amgmail/sdk@0.12.1","_integrity":"sha512-86jFFlI7XjKveTjAMC6WU1Y0B4HmVo+GVD/qq1p78s3dJqWD6h23WZl5RHSbtETdNeeA0ELds59IWLRD01Cn7A==","_resolved":"/Users/macbookpro/August 12/work/amgmail-parity-20260906/publishing24/dist/amgmail-sdk-0.12.1.tgz","_from":"file:/Users/macbookpro/August 12/work/amgmail-parity-20260906/publishing24/dist/amgmail-sdk-0.12.1.tgz","_nodeVersion":"24.19.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-86jFFlI7XjKveTjAMC6WU1Y0B4HmVo+GVD/qq1p78s3dJqWD6h23WZl5RHSbtETdNeeA0ELds59IWLRD01Cn7A==","shasum":"8b32ebf380231efbdc400185c108bdca55d16866","tarball":"https://registry.npmjs.org/@amgmail/sdk/-/sdk-0.12.1.tgz","fileCount":4,"unpackedSize":43863,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCkjHHg5I+kJi5qG0MrZn8bjUBDHqWp9n6rf8pI5CekOAIgDyzV3VNvplDQ9TceSWyPIM5dAVR75stGSwkGKRE9PI8="}]},"_npmUser":{"name":"amgmail","email":"alphamarketinggroup916@gmail.com"},"directories":{},"maintainers":[{"name":"amgmail","email":"alphamarketinggroup916@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.12.1_1788798552824_0.5560029077068613"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-07T16:29:12.623Z","0.12.1":"2026-09-07T16:29:12.985Z","modified":"2026-09-07T16:29:13.245Z"},"maintainers":[{"name":"amgmail","email":"alphamarketinggroup916@gmail.com"}],"description":"AMG Mail server-side SDK for Node.js and TypeScript","homepage":"https://amgmail.amgcc.space/docs","readme":"# AMG Mail SDK\n\nServer-side client for the transactional-only AMG Mail API. Keep keys and callback secrets in your server secret manager.\n\nProduction sends require a fixed approved template and a verified event bound to the exact recipient and rendered content. Raw messages and arbitrary transaction labels are rejected. Start at https://amgmail.amgcc.space/setup and follow https://amgmail.amgcc.space/docs#event-proof.\n\nNew transactional resources: `transactional.status`, `transactional.templates.create`, `transactional.integrations.create` / `remove`, and `transactional.events.create`. Verify a source event, attach its returned ID/type as `metadata.transaction_id` / `metadata.event`, call `emails.validate`, then `emails.send` with a stable idempotency key. The callback authenticates application assertions; it is application attestation. Payment receipts and paid-order confirmations instead require an independent Stripe connection.\n\nNo automatic retries or redirects. HTTP acceptance means queued, not delivered. Marketing, bulk recipients, arbitrary content, attachments and custom headers are unavailable in production. SDK methods for existing contact/template/legacy resources do not override server policy.\n\nInstall from the public package registry:\n\n```sh\nnpm install @amgmail/sdk\n```\n\nSee the OpenAPI contract at https://amgmail.amgcc.space/openapi.json for exact payloads and response fields. Versioned website downloads remain available in the guide.\n\nIndependent payment verification is available through `transactional.providers.create` / `remove` and `transactional.events.create` with `provider_connection_id`. Stripe test-mode payments do not authorize production mail. Copy the complete Node/Python example at https://amgmail.amgcc.space/docs#stripe.\n\nUse `emails.metrics` for delivery, bounce, complaint and engagement counts/rates; `analytics.settings.get` and `analytics.settings.update` control tracking. Open/click observations may come from privacy proxies or scanners. Sensitive messages and links are excluded. Dashboard: https://amgmail.amgcc.space/analytics.\n","readmeFilename":"README.md","_rev":"1-6d728ea4a214ab1b2191974cdd580f1c"}