{"_id":"@abacatepay/zod","_rev":"7-c027797e4c3c5ccd16b05ad98a05a1d1","name":"@abacatepay/zod","dist-tags":{"latest":"2.0.3"},"versions":{"0.0.2":{"name":"@abacatepay/zod","version":"0.0.2","keywords":["abacatepay","payments","zod","api","typescript"],"license":"Apache-2.0","_id":"@abacatepay/zod@0.0.2","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/almeidazs/ecosystem#readme","bugs":{"url":"https://github.com/almeidazs/ecosystem/issues"},"dist":{"shasum":"d4941984a734f6eb64220df02343364ed40ce587","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-0.0.2.tgz","fileCount":32,"integrity":"sha512-My4MJwb4Kj6ALK0qqVkHycqCUeRffo43hf08nzVUqc1So8GNCFFcaMtHUQPdkjHJXKrEc1dtCmLHi1Bn3Ldwdg==","signatures":[{"sig":"MEUCIAxL43JQIqKAUNJCcH2E4KxCOkt4mCF1dqNweT67z8S/AiEAkLNjD58P9hBY+RYPKneXTkhnz9FmIWiWs7tVznw1B2w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":133475},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"af6f1e9619e3fb3a9beb414c25345e4542470c2f","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && tsc","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/almeidazs/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^3","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_0.0.2_1768955928712_0.3700554724669376","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@abacatepay/zod","version":"1.0.0","keywords":["abacatepay","payments","zod","api","typescript"],"license":"Apache-2.0","_id":"@abacatepay/zod@1.0.0","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/almeidazs/ecosystem#readme","bugs":{"url":"https://github.com/almeidazs/ecosystem/issues"},"dist":{"shasum":"5b97be05e7f43e3ed09dbfcae1813356a374a82e","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-1.0.0.tgz","fileCount":48,"integrity":"sha512-tp5LfIOdYUXDCA6rr6FqO7moMttLPPTAwxooAnvvEtv97dFlfAd6SmbX/aSu1EdqzYwN7nseHKspSIowGJg7Bw==","signatures":[{"sig":"MEUCIQCMxOPr15qpKGm+BMZH5yeYqzFB+9CgIMBwZMsXph7lJgIga7l2hfEbtyKOKLPPCtmxkfIfyGZkSFD0+sfzMB0/ry0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":260058},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"16752eb30412e616a48967c062771bef3695484a","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && tsc","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/almeidazs/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^3","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_1.0.0_1769005572833_0.09861824888071746","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abacatepay/zod","version":"1.0.1","keywords":["abacatepay","payments","zod","api","typescript"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/zod@1.0.1","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"6c479300245ab0fa82c25bd1a1c528108e955812","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-1.0.1.tgz","fileCount":48,"integrity":"sha512-kImeVgzoABmomIuoEewBN3AXEF8osFVjHVSLtCUP6STJB+jz9Di88FcqEe3mn1pfs3dt+sHfvXQOW27Uve8PUw==","signatures":[{"sig":"MEYCIQCUMDtQMKCuPyA2+5P4OLYa4DeWOLaaWt9n+cW66Dsg/wIhANm0o0NmvYUylOyEcCCZLfeqHPY0GbkcudtOf3PFNWU7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154107},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"d75483696ecf98a1a0f8d878cc3c90c2cae04f98","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && tsc","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_1.0.1_1769440416673_0.4488842507137065","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@abacatepay/zod","version":"2.0.0","keywords":["abacatepay","payments","zod","api","typescript"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/zod@2.0.0","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"d8eca1ca19268d4ca767718d839b22125dba574c","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-2.0.0.tgz","fileCount":50,"integrity":"sha512-q1OC3hK/yH0bGHhy+YT6MtXOUb9KXOsi090WcJtZc+wpa2xMkRpXQ1aFvZMIkGnUAoJLfUt09DTGBxbwkirPpw==","signatures":[{"sig":"MEUCIDvJDp3F6OHs664t/k0f7fewy9PpqMsJHMi7ddi7zK4/AiEAsAT36Noho9OuKNen2qZNMK5oGN/JDvg6bMOPruG8zyA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255409},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"2dc44ef4789adc69e81f94a8e459cc85fd76668c","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && tsc","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_2.0.0_1785159274608_0.26704987689909165","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@abacatepay/zod","version":"2.0.1","keywords":["abacatepay","payments","zod","api","typescript"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/zod@2.0.1","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"8350da9819c497659e74ef74bfaf17970fd5cb8c","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-2.0.1.tgz","fileCount":29,"integrity":"sha512-t5BozV8xci2tzqo04TjQ9VZSU2bU8QeywJf+glj1woYhmpenG+Ay6XlPJub9DDUiKZIZvyQB4+XQujzFD8L6gw==","signatures":[{"sig":"MEUCIEtEPRIQ6PfaMcxNBW50z2jSxDCdx7aYNtjUYHMgEI8QAiEA75E3AEcnwIOq8ieL2eNHz38mfTQEeO5kTReygq7SB28=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1169181},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"ff4bbae0210c3eb16826c4f3f3f8d9c1953031ad","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node && bun run types","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_2.0.1_1785173862273_0.043157096003370476","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@abacatepay/zod","version":"2.0.2","keywords":["abacatepay","payments","zod","api","typescript"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/zod@2.0.2","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"2296937b1dee5558eac2d131b8e35e5c2bf00227","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-2.0.2.tgz","fileCount":30,"integrity":"sha512-AKnXUib25HsSb5mjWI65vOwwI+9ISsoXRf4yHNQ//E5rdUaUp1FaM3MWK/UqCSZmfuj7wGuFkvj5f50MXwMheQ==","signatures":[{"sig":"MEYCIQCa1oTAMY6wBks/AMjjR6cjq5dVX8PxmW50rlj85fps5AIhAPAOw9EZZP+n2jqlvwedVcExbtZTjEEM5KgDivxqBF3+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1170691},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v*":null,"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"}},"gitHead":"4f44b0102e118ca7fd4abd4da8c094cf8f22360c","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node && bun run types","types":"bunx tsc --emitDeclarationOnly","gen:version":"bun run scripts/version.ts","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","publishConfig":{"access":"public"},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/zod_2.0.2_1785181615193_0.4014331985977453","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@abacatepay/zod","version":"2.0.3","description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","type":"module","sideEffects":false,"license":"Apache-2.0","author":{"name":"AbacatePay","email":"opensource@abacatepay.com","url":"https://abacatepay.com"},"maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./v1":{"types":"./dist/v1/index.d.ts","import":"./dist/v1/index.js"},"./v1/*":{"types":"./dist/v1/*.d.ts","import":"./dist/v1/*.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./v2/*":{"types":"./dist/v2/*.d.ts","import":"./dist/v2/*.js"},"./v*":null},"typesVersions":{"*":{"v1":["dist/v1/index.d.ts"],"v2":["dist/v2/index.d.ts"]}},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"test":"bun test","build":"rm -rf dist && bun run gen:version && bun build src/index.ts src/v1/index.ts src/v2/index.ts --outdir dist --target node && bun run types","types":"dts-bundle-generator -o dist/index.d.ts src/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v1/index.d.ts src/v1/index.ts --disable-symlinks-following && dts-bundle-generator -o dist/v2/index.d.ts src/v2/index.ts --disable-symlinks-following","prepublishOnly":"bun run build","gen:version":"bun run scripts/version.ts"},"engines":{"node":">=18","bun":">=1.0.0"},"repository":{"type":"git","url":"git+https://github.com/AbacatePay/ecosystem.git"},"keywords":["abacatepay","payments","zod","api","typescript"],"publishConfig":{"access":"public"},"devDependencies":{"@biomejs/biome":"^2.3.11","dts-bundle-generator":"^9.5.1","typescript":"^5.0.0"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5"},"gitHead":"5c10083ce1c3dfce4b35af061f28b10bec33ff32","_id":"@abacatepay/zod@2.0.3","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"homepage":"https://github.com/AbacatePay/ecosystem#readme","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-58KaYwYFXEkQkLWFuRblf6QmqBowrh9ilP7VdO6xkxhbh97SNPnlYG576TrB5aq6JHuAPv136Twi/uctDy9aGA==","shasum":"1618548838234d04150b9b0441336e718adc9159","tarball":"https://registry.npmjs.org/@abacatepay/zod/-/zod-2.0.3.tgz","fileCount":9,"unpackedSize":1158050,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAaz4s10z6QeV7iXbq2D4+D5JRTYPUw3istNm8nYZjM3AiEAkelg44KTmU1ImbnaPODm/UL9HY8DLl3QB1xkW2gAIXs="}]},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zod_2.0.3_1785184774656_0.8392596787025421"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-21T00:38:48.648Z","modified":"2026-07-27T20:39:35.115Z","0.0.2":"2026-01-21T00:38:48.852Z","1.0.0":"2026-01-21T14:26:12.982Z","1.0.1":"2026-01-26T15:13:36.890Z","2.0.0":"2026-07-27T13:34:34.754Z","2.0.1":"2026-07-27T17:37:42.480Z","2.0.2":"2026-07-27T19:46:55.436Z","2.0.3":"2026-07-27T20:39:34.916Z"},"bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"author":{"name":"AbacatePay","email":"opensource@abacatepay.com","url":"https://abacatepay.com"},"license":"Apache-2.0","homepage":"https://github.com/AbacatePay/ecosystem#readme","keywords":["abacatepay","payments","zod","api","typescript"],"repository":{"type":"git","url":"git+https://github.com/AbacatePay/ecosystem.git"},"description":"Official Zod schemas for the AbacatePay API, including requests, responses, and webhooks.","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"readme":"<div align=\"center\">\n\n# AbacatePay Zod\n\nSchemas oficiais da API da AbacatePay usando **Zod** — validação runtime, contratos tipados e base para geração automática de OpenAPI.\n\nO [`@abacatepay/zod`](https://www.npmjs.com/package/@abacatepay/zod) expõe **todos os schemas públicos da API**, refletindo fielmente a documentação oficial, sem abstrações extras ou invenções.\n\nProjetado para **TypeScript-first**, integração direta com **Fastify, Express, Hono** e runtimes modernos como **Node.js e Bun**.\n\n<img src=\"https://res.cloudinary.com/dkok1obj5/image/upload/v1767631413/avo_clhmaf.png\" width=\"100%\" alt=\"AbacatePay Open Source\"/>\n\n## Instalação\n\nUse com o seu *package manager* favorito\n\n</div>\n\n```bash\nbun add @abacatepay/zod zod\npnpm add @abacatepay/zod zod\nnpm install @abacatepay/zod zod\n```\n\n<div align=\"center\">\n\n## Estrutura e versionamento\n\nAssim como o [`@abacatepay/types`](https://www.npmjs.com/package/@abacatepay/types), você deve importar os schemas a partir da versão da API desejada:\n\n</div>\n\n```ts\nimport { APICustomer } from '@abacatepay/zod/v1';\nimport { APISubscription } from '@abacatepay/zod/v2';\n```\n<p align=\"center\">Schemas globais (version, utilitários etc) são exportados sem versão</p>\n\n```ts\nimport { version } from '@abacatepay/zod';\n```\n\n<div align=\"center\">\n\n## Integração com Fastify\n\nRecomendamos o uso do `fastify-type-provider-zod` para melhor inferência de tipos.\n</div>\n\n```ts\nimport Fastify from 'fastify';\nimport { serializerCompiler, validatorCompiler, ZodTypeProvider } from 'fastify-type-provider-zod';\nimport { APICheckout, RESTPostCreateNewCheckoutBody } from '@abacatepay/zod/v2';\n\nconst fastify = Fastify().withTypeProvider<ZodTypeProvider>();\n\nfastify.setValidatorCompiler(validatorCompiler);\nfastify.setSerializerCompiler(serializerCompiler);\n\nfastify.post('/checkouts', {\n    schema: {\n        body: RESTPostCreateNewCheckoutBody,\n        response: {\n            200: APICheckout,\n        },\n    },\n}, async (req) => {\n    // req.body é totalmente tipado aqui!\n    const { methods } = req.body;\n    \n    return { ... };\n});\n```\n\n<div align=\"center\">\n\n## Integração com Express\n\nVocê pode usar o método `.safeParse` ou `.parse` diretamente nos handlers.\n</div>\n\n```ts\nimport express from 'express';\nimport { RESTPostCreateNewCheckoutBody } from '@abacatepay/zod/v2';\n\nconst app = express();\napp.use(express.json());\n\napp.post('/checkouts', (req, res) => {\n    const result = RESTPostCreateNewCheckoutBody.safeParse(req.body);\n\n    if (!result.success) {\n        return res.status(400).json(result.error);\n    }\n\n    const data = result.data; // Dados tipados e validados\n    // ...\n});\n```\n\n<div align=\"center\">\n\n## Uso básico\n\nVocê pode validar facilmente um payload retornado pela API em runtime\n\n</div>\n\n```ts\nimport { APICheckout } from '@abacatepay/zod/v2';\n\nconst data = await fetchCheckout();\n\n// Lança erro se a validação falhar\nconst checkout = APICheckout.parse(data);\n\n// Ou validação segura\nconst safeCheckout = APICheckout.safeParse(data);\nif (safeCheckout.success) {\n    console.log(safeCheckout.data.id);\n}\n```\n\n<div align=\"center\">\n\n## OpenAPI\n\nTodos os schemas são compatíveis com o ecossistema Zod (como `zod-to-openapi`).\n\nIsso permite:\n</div>\n\n- SDKs tipados.\n- Geração automática de documentação.\n- Validação de breaking changes entre versões.\n\n<h2 align=\"center\">Convenções</h2>\n\n- Prefixo `API*`\n\t- Estruturas gerais da API (objetos retornados, modelos internos).\n\n- Prefixo `REST<HTTPMethod>*`\n\t- Schemas usados em endpoints REST.\n\t\t- Body → corpo da requisição\n\t\t- QueryParams → parâmetros de query\n\t\t- Data → dados retornados\n- Prefixo `Webhook*`\n\t- Payloads de eventos de webhook\n\n<div align=\"center\">\n\nVocê pode ver a documentação completa da API por [aqui](https://docs.abacatepay.com/pages/zod).\n\nFeito com 🥑 pela equipe AbacatePay</br>\nOpen source, de verdade.\n\n</div>\n","readmeFilename":"README.md"}