{"_id":"@ar-agents/wscdc","_rev":"9-7f503247541b70750b0af103f6e28b2c","name":"@ar-agents/wscdc","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@ar-agents/wscdc","version":"0.1.0","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.1.0","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"91c36b006be9c545c4fd5072e6f850e5b948ad77","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.1.0.tgz","fileCount":12,"integrity":"sha512-X53bYkGw1jz+U16glo6XyZnKnF/YwDN4V0OC/gjA0EvALH8qvYMGFGZgnvb/iENbXFSqpEqvFzj1ZLJFWtjYEg==","signatures":[{"sig":"MEYCIQCzK8yz+IR83JbZSbByTlkq0s8aUth8ZCdsXD8kko/E7wIhAN33PdLKlYOe9FNoin9g/gpHPg5o9mSCv40TqL7GX5xR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151057},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/9d049e685de42639ea62617c0a6d4408/ar-agents-wscdc-0.1.0.tgz","_integrity":"sha512-X53bYkGw1jz+U16glo6XyZnKnF/YwDN4V0OC/gjA0EvALH8qvYMGFGZgnvb/iENbXFSqpEqvFzj1ZLJFWtjYEg==","deprecated":"Older versions contained personal PII (test fixtures) and have been superseded. Upgrade to @ar-agents/wscdc@>=0.2.3, rebuilt from scrubbed source. Removal of the old tarballs has been requested from npm support.","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.8.2","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios) — validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.175","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.1.0_1779711386658_0.8031148291549433","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ar-agents/wscdc","version":"0.2.0","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.0","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"cda8435378a87107879a3935456e082756b7e9be","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.0.tgz","fileCount":12,"integrity":"sha512-AOmI7mziOM7a9iF+hUaVtv6Yfc9w+mAC8UX0fngXlB1WTAhDgz4nbMQL25bWztcOxCHUMoDyxtZIVkvzJMlk6A==","signatures":[{"sig":"MEUCIDfTELlYstrD9/nv1YgqlsE6/AXrjUEeWINlHgcR6a+3AiEA6Fk8KPm/gWa1UzjKY8HoGscvD1gBOPj7bob8jc4VTTc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155066},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/6f99bbb8d67dc4376b67b62da7ab3a98/ar-agents-wscdc-0.2.0.tgz","_integrity":"sha512-AOmI7mziOM7a9iF+hUaVtv6Yfc9w+mAC8UX0fngXlB1WTAhDgz4nbMQL25bWztcOxCHUMoDyxtZIVkvzJMlk6A==","deprecated":"Older versions contained personal PII (test fixtures) and have been superseded. Upgrade to @ar-agents/wscdc@>=0.2.3, rebuilt from scrubbed source. Removal of the old tarballs has been requested from npm support.","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.8.2","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios) — validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@ar-agents/core":"^0.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.175","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.0_1779715298862_0.8782586019942864","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@ar-agents/wscdc","version":"0.2.1","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.1","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"d4f16bbafc5c364cd9e64bdf8006d5ccda4cc3fd","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.1.tgz","fileCount":12,"integrity":"sha512-39P56vY6g9eYGNR9xVGXfHFNmnG3Sr2gmwNgWiTsZz/IptZ0r5Xj/U+ZQ0MAer/Xjgxpz+zyhV4AzS3Ce0fFDQ==","signatures":[{"sig":"MEQCIBZG4O2EvwRWpPwes5Tod60AjH60hokQYwCNt/bSM/IPAiAj7MzD7uVcS3f9SxFlcbkrrU6fZVWYmjb+FU5VXPxF6A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155305},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/2ec0a9a1466fe4ed2e3f04ffc71917e8/ar-agents-wscdc-0.2.1.tgz","_integrity":"sha512-39P56vY6g9eYGNR9xVGXfHFNmnG3Sr2gmwNgWiTsZz/IptZ0r5Xj/U+ZQ0MAer/Xjgxpz+zyhV4AzS3Ce0fFDQ==","deprecated":"Older versions contained personal PII (test fixtures) and have been superseded. Upgrade to @ar-agents/wscdc@>=0.2.3, rebuilt from scrubbed source. Removal of the old tarballs has been requested from npm support.","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.8.2","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@ar-agents/core":"^0.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.175","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.1_1781269125058_0.7817903383469444","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@ar-agents/wscdc","version":"0.2.2","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.2","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"55b79f73ce1d61d824fb7d61fce9a084a2b4bc37","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.2.tgz","fileCount":12,"integrity":"sha512-aRZD1p+F20jWSExSBToGiGQ/GUjhwvNUVC1/jaqBh0m/1NhW3eHn9uxqzlnaw61pGCKZx/9hHXtcqVY5Z/0jBQ==","signatures":[{"sig":"MEYCIQCJUbFzECyrNSokjc4Lz2VKCQ9cZbshfeHZd6/stEutswIhAMtFlkFrtKmuzVowahj6jFoVnR00Kx1/vLlvwCgAm6iJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155791},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/29778d5854f99904f67c5ea00d7a3433/ar-agents-wscdc-0.2.2.tgz","_integrity":"sha512-aRZD1p+F20jWSExSBToGiGQ/GUjhwvNUVC1/jaqBh0m/1NhW3eHn9uxqzlnaw61pGCKZx/9hHXtcqVY5Z/0jBQ==","deprecated":"Older versions contained personal PII (test fixtures) and have been superseded. Upgrade to @ar-agents/wscdc@>=0.2.3, rebuilt from scrubbed source. Removal of the old tarballs has been requested from npm support.","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.8.2","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@ar-agents/core":"^0.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.175","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.2_1781280177756_0.6591345291459336","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@ar-agents/wscdc","version":"0.2.3","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.3","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"7f74ba81e7265df38c3788fc2b07d56b93c10668","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.3.tgz","fileCount":12,"integrity":"sha512-rc/PHWbBEGlrZqtzKxY+mTCtLHbf+tCa8iSfX6gB3XkkiP5xtflFmP8QooTdSSt0YbrTDatJ0KbEsL3jZL81+g==","signatures":[{"sig":"MEUCIQCWg+kC1nHFu7wVVTeBcqwrw1iF4i800DOxGT/SEaqySgIgKxYBfcRiWosdz7SD5EzHPRa4q+O4yee2wqUOMQEhL0w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156122},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/603dca63de5216deb501a1dc2ebc5728/ar-agents-wscdc-0.2.3.tgz","_integrity":"sha512-rc/PHWbBEGlrZqtzKxY+mTCtLHbf+tCa8iSfX6gB3XkkiP5xtflFmP8QooTdSSt0YbrTDatJ0KbEsL3jZL81+g==","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.8.2","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@ar-agents/core":"^0.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.175","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.3_1782389703634_0.6032407171468461","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@ar-agents/wscdc","version":"0.2.4","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.4","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"79235895cc5cd6ef4bdd603ac672093d22803412","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.4.tgz","fileCount":12,"integrity":"sha512-maf48F1YPRchu0ebbHKTbw20kWkPGE7/g92r9wgIFWjqvn3mIEkqp1VkZyIchFmlguAW5F1UdYnJu6xMzA1B2Q==","signatures":[{"sig":"MEUCIBdPjV+lQML6BsuIZTwQdo73aWIiLbQJCh3ruh66qXSfAiEAkJX8n9EH0OBHy2Be3XtdR+xE6EgFs6Ha3Lse74vcFsg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156346},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/b519d290d179772159df53c1574ddde4/ar-agents-wscdc-0.2.4.tgz","_integrity":"sha512-maf48F1YPRchu0ebbHKTbw20kWkPGE7/g92r9wgIFWjqvn3mIEkqp1VkZyIchFmlguAW5F1UdYnJu6xMzA1B2Q==","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.9.8","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"22.23.0","dependencies":{"@ar-agents/core":"^0.3.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.4_1782899919693_0.541134323269328","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@ar-agents/wscdc","version":"0.2.5","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","_id":"@ar-agents/wscdc@0.2.5","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"dist":{"shasum":"54dc01129deaa835ef34c4b5063b4a1e381660f3","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.2.5.tgz","fileCount":12,"integrity":"sha512-cbYbEQb3Os2+P0WcyiVZY1YDZ3+04AjS6O1h2/eUGAzMt1uuW2Aa5nJnh5o4jEbNt8hC+5JZQhMHwJqn+6R07w==","signatures":[{"sig":"MEQCIADl88IgqS0QEdiYzfPJT2Bkc6GIKICYVeO8DJyHB+Z0AiBPaTa62WQL4uji0MG6e5wHFXyymresK1qDfMl97slMtg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.2.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156528},"main":"./dist/index.cjs","type":"module","_from":"file:ar-agents-wscdc-0.2.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"funding":{"url":"https://github.com/sponsors/naza00000","type":"github"},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","validate":"publint && attw --pack .","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"_resolved":"/tmp/1ee740cd5e4afe9f54a37ca0fb211487/ar-agents-wscdc-0.2.5.tgz","_integrity":"sha512-cbYbEQb3Os2+P0WcyiVZY1YDZ3+04AjS6O1h2/eUGAzMt1uuW2Aa5nJnh5o4jEbNt8hC+5JZQhMHwJqn+6R07w==","repository":{"url":"git+https://github.com/ar-agents/ar-agents.git","type":"git","directory":"packages/wscdc"},"_npmVersion":"10.9.8","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@ar-agents/core":"^0.4.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","zod":"^4.4.3","tsup":"^8.3.5","vitest":"^2.1.8","typescript":"^5.9.3","@types/node":"^20.19.39"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/wscdc_0.2.5_1783077271598_0.28926354100595075","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@ar-agents/wscdc","version":"0.3.0","description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"license":"MIT","author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"funding":{"type":"github","url":"https://github.com/sponsors/naza00000"},"homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","repository":{"type":"git","url":"git+https://github.com/ar-agents/ar-agents.git","directory":"packages/wscdc"},"bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./tools.manifest.json":"./tools.manifest.json"},"peerDependencies":{"ai":">=6.0.0","zod":">=3.0.0"},"devDependencies":{"@types/node":"^20.19.39","ai":"^7.0.0","tsup":"^8.3.5","typescript":"^5.9.3","vitest":"^2.1.8","zod":"^4.4.3"},"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=20.0.0"},"dependencies":{"@ar-agents/core":"^0.4.1"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","typecheck":"tsc --noEmit","validate":"publint && attw --pack .","clean":"rm -rf dist"},"_id":"@ar-agents/wscdc@0.3.0","_integrity":"sha512-GL+czRyJB+qSX0VlqwKVE9SDTVGmdLvwPLkiqXyu8AElFGLXKoiocZd8+QEZVELp8q2aN+v5BXgcW6WOdQvJXA==","_resolved":"/tmp/cfecac8657bd3d9133bdbbb067ab7fe5/ar-agents-wscdc-0.3.0.tgz","_from":"file:ar-agents-wscdc-0.3.0.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-GL+czRyJB+qSX0VlqwKVE9SDTVGmdLvwPLkiqXyu8AElFGLXKoiocZd8+QEZVELp8q2aN+v5BXgcW6WOdQvJXA==","shasum":"985fdf36b3b4408148f8bdba21b4383beb0aa687","tarball":"https://registry.npmjs.org/@ar-agents/wscdc/-/wscdc-0.3.0.tgz","fileCount":12,"unpackedSize":185343,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ar-agents%2fwscdc@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCPV8vcxPBI0x8e+ueTYY/5sHu/Sqdl6UvcJG9ifKVjwgIgFwgCZnt/W+AE0hXxFUXLctaRIu8Htc568An1bwmbuuY="}]},"_npmUser":{"name":"naza-ar","email":"clementenaza@gmail.com"},"directories":{},"maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wscdc_0.3.0_1783086481810_0.51545433968552"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T12:16:26.481Z","modified":"2026-07-03T13:48:02.217Z","0.1.0":"2026-05-25T12:16:26.777Z","0.2.0":"2026-05-25T13:21:38.999Z","0.2.1":"2026-06-12T12:58:45.195Z","0.2.2":"2026-06-12T16:02:57.908Z","0.2.3":"2026-06-25T12:15:03.787Z","0.2.4":"2026-07-01T09:58:39.848Z","0.2.5":"2026-07-03T11:14:31.731Z","0.3.0":"2026-07-03T13:48:01.955Z"},"bugs":{"url":"https://github.com/ar-agents/ar-agents/issues"},"author":{"name":"Nazareno Clemente","email":"naza@naza.ar"},"license":"MIT","homepage":"https://github.com/ar-agents/ar-agents/tree/main/packages/wscdc","keywords":["wscdc","afip","arca","constatacion","comprobantes","facturacion-electronica","ar-agents","argentina","ai-sdk","vercel-ai","agent","tax"],"repository":{"type":"git","url":"git+https://github.com/ar-agents/ar-agents.git","directory":"packages/wscdc"},"description":"Agent toolkit for AFIP WSCDC (Web Service Constatación de Comprobantes Destinatarios): validate that a factura received from a supplier was actually issued by AFIP with a real CAE. Pair with @ar-agents/identity for WSAA cert + signature handling.","maintainers":[{"name":"naza-ar","email":"clementenaza@gmail.com"}],"readme":"# @ar-agents/wscdc\n\nAgent toolkit for AFIP **WSCDC** (Web Service Constatación de Comprobantes Destinatarios). Validate that a factura received from a supplier was actually issued by AFIP with a real CAE — before ingesting it into accounts payable.\n\n```sh\npnpm add @ar-agents/wscdc\n```\n\n## What this package does\n\n- **`HttpWscdcAdapter`** — real adapter that POSTs SOAP to AFIP WSCDC (homo or prod). Caller supplies a WSAA access ticket; the adapter handles envelope construction, SoapAction header, and response parsing.\n- **`InMemoryWscdcAdapter`** — deterministic adapter for integration tests + cockpit demos. Pre-seed expected `(CAE, emisor, cbte)` triples; everything else returns `\"N\"`.\n- **`UnconfiguredWscdcAdapter`** — explicit `throws on every call` default. Safe for unit tests that exercise validation primitives without AFIP creds.\n- **Pure validation** — `validateConstatarRequest()` catches CUIT shape, date format, CAE length, etc. before the network round-trip so a typo doesn't cost a billable AFIP call.\n- **Two Vercel AI SDK tools** — `wscdc_validate_comprobante` + `wscdc_health`.\n\n## What this package does NOT do\n\n- **Acquire the WSAA ticket.** The caller passes an `AccessTicket` (token + sign + cuitRepresentada) it already has. Use [`@ar-agents/identity`](../identity)'s WSAA helpers or any compatible WSAA client. The `wscdc` service requires its own AFIP authorization separate from `wsfe`.\n- **Catch every AFIP wire quirk.** AFIP sometimes returns HTTP 500 with SOAP faults for legitimate-but-expired tokens; we translate those to `WscdcProtocolError` with `faultCode` set so callers can retry or surface to the operator.\n\n## Quick start\n\n```ts\nimport {\n  HttpWscdcAdapter,\n  type AccessTicket,\n} from \"@ar-agents/wscdc\";\n\n// Acquire a TA from your WSAA flow first — example:\n//   const ta = await acquireWsaaTicket(\"wscdc\", { certPem, keyPem });\nconst ticket: AccessTicket = /* ... */ undefined!;\n\nconst wscdc = new HttpWscdcAdapter({ env: \"prod\", ticket });\n\nconst result = await wscdc.validateComprobante({\n  cbteModo: \"CAE\",\n  cuitEmisor: \"30-50000001-8\",\n  ptoVta: 1,\n  cbteTipo: 11, // Factura C\n  cbteNro: 1234,\n  cbteFch: \"20260515\", // YYYYMMDD (AFIP wire format)\n  impTotal: 12100.0,\n  codAutorizacion: \"70123456789012\",\n  docTipoReceptor: 80, // CUIT\n  docNroReceptor: \"20123456786\",\n});\n\nif (result.resultado === \"A\") {\n  // Approved — safe to ingest into AP.\n} else if (result.resultado === \"N\") {\n  // Rejected — likely forged or wrong data. Refuse the factura.\n  console.error(\"Forged?\", result.errors);\n} else {\n  // Observed — exists but a soft field differs. Caller decides.\n  console.warn(\"Mismatches:\", result.observaciones);\n}\n```\n\nWired as agent tools:\n\n```ts\nimport { Experimental_Agent as Agent } from \"ai\";\nimport { wscdcTools, HttpWscdcAdapter } from \"@ar-agents/wscdc\";\nimport { anthropic } from \"@ai-sdk/anthropic\";\n\nconst agent = new Agent({\n  model: anthropic(\"claude-sonnet-4-7\"),\n  tools: wscdcTools({\n    adapter: new HttpWscdcAdapter({ env: \"prod\", ticket }),\n  }),\n  system: \"Eres un agente que valida facturas recibidas antes de ingestarlas en AP.\",\n});\n```\n\n## Result shape\n\n```ts\ninterface ConstatarResult {\n  resultado: \"A\" | \"N\" | \"O\";\n  observaciones: ReadonlyArray<{ code: number; msg: string }>;\n  errors: ReadonlyArray<{ code: number; msg: string }>;\n  fchProceso?: string; // YYYYMMDDhhmmss as returned by AFIP\n}\n```\n\n- `\"A\"` — every field matched what AFIP has on record. Safe.\n- `\"N\"` — at least one hard field (CAE, emisor, cbte number) didn't match. **Treat as forged or wrong-data.** Refuse to ingest.\n- `\"O\"` — exists, but a soft field (typically total) differs. Look at `observaciones` and decide.\n\n## In-memory testing\n\n```ts\nimport { InMemoryWscdcAdapter, wscdcTools } from \"@ar-agents/wscdc\";\n\nconst adapter = new InMemoryWscdcAdapter([\n  {\n    cuitEmisor: \"30-50000001-8\",\n    ptoVta: 1,\n    cbteTipo: 11,\n    cbteNro: 1234,\n    impTotal: 12100.0,\n    codAutorizacion: \"70123456789012\",\n  },\n]);\n\nconst tools = wscdcTools({ adapter });\n// Tests against AFIP-realistic semantics, zero credentials needed.\n```\n\n## Errors\n\n```ts\nimport {\n  WscdcError,\n  WscdcValidationError,  // bad input — do NOT retry\n  WscdcProtocolError,    // network / HTTP / SOAP fault — may retry\n  WscdcUnconfiguredError,\n} from \"@ar-agents/wscdc\";\n```\n\nA `resultado: \"N\"` is NOT an error — it's a valid response that says \"this comprobante is forged.\" Switching on `resultado` is the correct flow control.\n\n## Constraints\n\n- **`cbteFch` is YYYYMMDD** (AFIP wire format, no hyphens).\n- **`codAutorizacion` is exactly 14 digits** (CAE or CAEA).\n- **`impTotal` is a number with up to 2 decimals.** The package formats it as `toFixed(2)` on the wire.\n- **`docNroReceptor` is a string** (Consumidor Final = `\"0\"`).\n\nFor LLM agents using these tools, see [AGENTS.md](./AGENTS.md).\n\n## License\n\nMIT — Nazareno Clemente <naza@naza.ar>\n","readmeFilename":"README.md"}