{"_id":"@beemafrica/error-definitions","_rev":"16-06983171d14cdb6c19ffa32b300585f5","name":"@beemafrica/error-definitions","dist-tags":{"latest":"1.0.15"},"versions":{"1.0.1":{"name":"@beemafrica/error-definitions","version":"1.0.1","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.1","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"cd4de222e28db31df81a996715a6dec75812b774","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.1.tgz","fileCount":33,"integrity":"sha512-0+gwv2kRhCVYPmHjqTB2YSd28Ka76tRa95fISXzc1Rr5yq8sfPQtkRyJN2inxOG06aiANhvbcW72G9qUrOhl0Q==","signatures":[{"sig":"MEYCIQDObBNDiyrkximpQCP6OrCcMMoOS3BWtAsz7K999DLtzAIhANuKzC+ghXuy78PfYdhrY4lV6an/C4Pr7jz3UL3woe10","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70753},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"71f1ee790054ba3ecfbfdda45142db4abaf537f3","scripts":{"dev":"tsc -w -p tsconfig.json","test":"echo \"Error: no test specified\" && exit 1","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"8.19.4","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"16.20.2","dependencies":{"@changesets/changelog-github":"^0.5.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.1_1770209334568_0.7636481823176569","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@beemafrica/error-definitions","version":"1.0.3","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.3","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"0100b65aebd7765bc294a429b43ef2e0935db0da","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.3.tgz","fileCount":33,"integrity":"sha512-9DXjAEM/8l56g04WXwUXZo7E56Z/q+B+GXb1IBjyWKBucmXCpRRWMqvBIC3Qy8mELarN9DRW9/fz2UbkyHTQIw==","signatures":[{"sig":"MEUCIBtfrpMq/NvQobvSsHZOZ879MmPx4lvMcmzbzadFhgcbAiEAqBvCOAlQOyyfw0Hct+WdgBIib3Cld8Zqqudoo0Vsb8c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70995},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"3dbb9e650e11421687c47c487fedf7e15d71872f","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.3_1770302403942_0.4067594645157704","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@beemafrica/error-definitions","version":"1.0.4","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.4","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"7be36b945d3d50d6eeb6d6e9f59b7430181feabf","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.4.tgz","fileCount":33,"integrity":"sha512-cu6Uv9JUPllNp4DiHBbIqcMM2izTAYKCJFcog2aEHYe7wx01esSqlZendVj92raquAAiHjdZO7wDAeiDoL7P0g==","signatures":[{"sig":"MEYCIQD0xoss/YEemUpG70jSXiPBrtHDkYvUdb3eMjEzEWdfGwIhAPRryF16v3iOBalK8YuXdaxQcS/IYVtu7oMITCZd1E29","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86847},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"dcd66f2509307b80ecf0fc687454ccd52190071e","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.4_1770723162500_0.4778252012256876","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@beemafrica/error-definitions","version":"1.0.5","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.5","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"472c778c801b13f12766d485bee19b3dd99a4d2b","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.5.tgz","fileCount":33,"integrity":"sha512-Lj4PvtEc0dtFn1fcmE6cxtTlaxWZs4ONHplQ+mzhXhFX6XviA4XinJwyQXBbDvWLH6aiU3y7AMx9dQj6joeaTQ==","signatures":[{"sig":"MEYCIQDkEofYerM2FOPS31Jkfa99Hj2lGgn4PE1Pat1ONau4OwIhAPkdovIQVlwrogM7sLujZ68diEJJ/sK5pU8wE77zsKFc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90283},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"0564fef946461650187e8e100e52085277f7c049","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.5_1770727328961_0.21431748913638993","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@beemafrica/error-definitions","version":"1.0.6","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.6","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"bab79ed7ac70158b8c574156a778b20e95f1d564","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.6.tgz","fileCount":33,"integrity":"sha512-Au9ntYoh7xnx/VDC6GwKpF7bJbaixEFxy4hYMqgUSc7/plKqBy3fMdqgfR2VqvJFiJmLxydDxLzpxExEzeoCLg==","signatures":[{"sig":"MEQCIBB/QpfL84pOcFF3D5E65LxIbb1uA8jjCFRXqLP97qumAiAPTDKlW1QV7I4Lu4Sh3/xEvlcQ8ubpMidgcAs/fKtD8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90566},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"57671813317f0fa49b8cee7300e8408f0613b197","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.6_1770730452810_0.1965938480413234","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@beemafrica/error-definitions","version":"1.0.7","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.7","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"1ee870b6b4891327ab63d61af30d5a9d94c7af77","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.7.tgz","fileCount":33,"integrity":"sha512-WnVQOC3UosizrSqZ26Bz5MZXfxWDqMbzW3URGUGaAMQaAH3rx/QFaG1xTBG60A82JHjGd7Lx+GjRV+5yXArElg==","signatures":[{"sig":"MEQCIBkly30X0HsShi5qo/C2SvfartK6orsqRIXtwsg0/oX4AiBs/5Z8bW1bT3VI8AnTLFWVhaR8ULx3DU8FjZ1vYmP5Cg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90858},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"a9f32c6b03cf1f128e1659146ab80fd1956fbff9","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.7_1770969330375_0.23772459506782684","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@beemafrica/error-definitions","version":"1.0.8","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.8","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"bd180e0f05d07be95b9ac9deb6a0227281eb5158","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.8.tgz","fileCount":33,"integrity":"sha512-22QMrTklSV8gS8z0ZG/TNnwikPPH2YFW3zhF1/bwHphOfw1n8vog6MrQG4Ux7+Y9iLjaXV21C9LAUHJBfbCOBw==","signatures":[{"sig":"MEUCIBBuk3EeMEsqo+tU0RXwoOEvXjBGFrszy/gxSIYqLTM1AiEAshIA80hpGyCUbLy25lCI4oRs1WT+EOMUpTlxQg9UbCk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93147},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"7d03fafa911f24f13ecd6ce0b4c2fec04c21c190","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.8_1770973242360_0.6550143695233368","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@beemafrica/error-definitions","version":"1.0.9","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.9","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"2ad1b4c4c242bad51265b02f7d2e1517389a17ce","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.9.tgz","fileCount":33,"integrity":"sha512-qDs3DEWJbax7rTwaCZt2itTP3tggOWgizKuHgniVMxEBWu8QzjrgO74a7XsYBfuuH6FsGruOd7Ek3/KNbv78sw==","signatures":[{"sig":"MEYCIQDxkfx0gyEZBF22p5McpSRzSETUkNUKYovmDz6TuTtGfwIhAIbE8VeLSNhF2NhC2+DBs7ez0rpEcK3ldEPFBiBIWiYJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93277},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"fb23e32cf7dda5788d33d2f156bb8277bcc2e4d3","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.3.13","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.9_1771223897890_0.2621311426730306","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@beemafrica/error-definitions","version":"1.0.10","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.10","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"72bc544f086c2def3a8b8819b545f8155985928c","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.10.tgz","fileCount":33,"integrity":"sha512-ubNkgttPv9Lt63lib1QyG1iHd3ygJoPWl2B3kf9kIbM742V76lwQVEEM0+XqIGLhOzVVQ3syFfHoucCTiOxZLw==","signatures":[{"sig":"MEQCIGGYMcZEwY8666SlQP1gp0KqMS7sQCDGeGiH7k0rejECAiAhYmJlBusPq72HRXeX7e3UBM+zcPcvmWUVxvVxy4lhGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115581},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"d65b34e7e916f16fd9487616606bfacda6bc50b4","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.4.2","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.10_1771310165554_0.5776691414242607","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@beemafrica/error-definitions","version":"1.0.11","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.11","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"ea6398280ae648c814e8815080d59fdb6f129626","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.11.tgz","fileCount":33,"integrity":"sha512-Z01wWYiUkElWeSmHHOCSBjxeDiXH6l8rpHdFFM1XCuAxNJbuy3XNV3+eEOwMR/Qk90M3xc9/8JcdHxs+FCWNgg==","signatures":[{"sig":"MEUCICFFrzf1o3EXWu3eb+ZULTEW3Pevvby64Jq+e15vIZqOAiEA6xSiXO3IKZiGRitDkB/PKH0nGXT73Ja/4C2jRh1ygi8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115581},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"7eb069420ef88a1093da10e7bca6dbdff59e1959","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.4.2","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.11_1771310358766_0.5104113573154092","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@beemafrica/error-definitions","version":"1.0.13","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.13","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"dc8d8171ddf26bc9c4e283698827d2dd0681eb8b","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.13.tgz","fileCount":33,"integrity":"sha512-D/RQpABlG5N1JyTzx02lZSO+LRtdxPAjxulFMB66aIiEkzkdU68EJCGsPgGE/k5uKzcCUiPxTSivzHRxAGiznQ==","signatures":[{"sig":"MEUCIQDfGBk3+n7ra9QUjEkXGG5EFQOSGKXmZyiZj/KjogyjnwIge51YEYV61VnjZLyWMFXRjTdk073OS506am8lAe37th4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114433},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"f27fc0246424dc48fc28f37ddb479b7d857eb52d","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.4.2","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.13_1771403248009_0.6805978593788513","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@beemafrica/error-definitions","version":"1.0.14","keywords":["bm-packages"],"author":{"name":"Michelle Njeri"},"license":"ISC","_id":"@beemafrica/error-definitions@1.0.14","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"dist":{"shasum":"df6fc8ab7eb402281523f9eb89050cb81196ed11","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.14.tgz","fileCount":33,"integrity":"sha512-gBNByq4BuO4opUGObm/sfmFVLYo9in1rqpDRutHwy6omq8ZEtrcr6y3mHhHS06Tg/f9RFsveVxOUkER3syhVRA==","signatures":[{"sig":"MEUCIQDiAHIpFIXZCRC+DiJFHstzUeMQ2SFqvYDnuC513V0rXgIgYis19ChU4nkh1+q7wpQyhw1arEHX0McxMFpUhwOWGFI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115051},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"gitHead":"c4f71180b8fc25b0132ef5813302ef89a694471b","scripts":{"dev":"tsc -w -p tsconfig.json","fix":"biome check --write .","lint":"biome check .","test":"npm run clean && npm run build && node ./test/run-tests.js","build":"npm run build:esm && npm run build:cjs","clean":"rm -rf dist dist-cjs","format":"biome format --write .","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build:esm":"tsc -p tsconfig.json","changeset":"changeset","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"repository":{"url":"bm-packages","type":"git"},"_npmVersion":"10.8.2","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","directories":{"doc":"docs"},"_nodeVersion":"20.20.0","dependencies":{"@changesets/changelog-github":"^0.5.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@biomejs/biome":"^2.4.2","@changesets/cli":"^2.29.8"},"_npmOperationalInternal":{"tmp":"tmp/error-definitions_1.0.14_1771490071459_0.2843199844069888","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@beemafrica/error-definitions","version":"1.0.15","description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js"}},"scripts":{"lint":"biome check .","format":"biome format --write .","fix":"biome check --write .","build:esm":"tsc -p tsconfig.json","build:cjs":"tsc -p tsconfig.cjs.json && node -e \"const fs=require('fs'); fs.mkdirSync('dist-cjs', { recursive: true }); fs.writeFileSync('dist-cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2));\"","build":"npm run build:esm && npm run build:cjs","changeset":"changeset","dev":"tsc -w -p tsconfig.json","clean":"rm -rf dist dist-cjs","prepublishOnly":"npm run clean && npm run build","test":"npm run clean && npm run build && node ./test/run-tests.js"},"author":{"name":"Michelle Njeri"},"license":"ISC","devDependencies":{"@biomejs/biome":"^2.4.2","@changesets/cli":"^2.29.8","typescript":"^5.9.3"},"dependencies":{"@changesets/changelog-github":"^0.5.2"},"directories":{"doc":"docs"},"repository":{"type":"git","url":"bm-packages"},"keywords":["bm-packages"],"_id":"@beemafrica/error-definitions@1.0.15","gitHead":"aafa0972320e98320364e6db64797e290a45496e","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OEvWLEwXc9OR1DFB4fDfCPTxykbp/x1WpaBNjrQe8oUmjSTR+8XvbfQWt7kkXJiFtd2LrmH8SWyqXsrCfIQezA==","shasum":"95aae52480e4fe8552478b0af1047ca00c32f14a","tarball":"https://registry.npmjs.org/@beemafrica/error-definitions/-/error-definitions-1.0.15.tgz","fileCount":33,"unpackedSize":115177,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFnDCjGQ+OxtZDcAJnbDSK6S9OQA0evYo3oo9mVP4/hXAiEAwHZrLTHgZ7oWcA+6defGSk0Cykulprup+26zDy+Ivsc="}]},"_npmUser":{"name":"beemafrica","email":"contact@beem.africa"},"maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/error-definitions_1.0.15_1775052739140_0.15663969026849367"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-04T12:48:54.567Z","modified":"2026-04-01T14:12:19.390Z","1.0.1":"2026-02-04T12:48:54.709Z","1.0.3":"2026-02-05T14:40:04.091Z","1.0.4":"2026-02-10T11:32:42.667Z","1.0.5":"2026-02-10T12:42:09.105Z","1.0.6":"2026-02-10T13:34:12.972Z","1.0.7":"2026-02-13T07:55:30.527Z","1.0.8":"2026-02-13T09:00:42.508Z","1.0.9":"2026-02-16T06:38:18.034Z","1.0.10":"2026-02-17T06:36:05.730Z","1.0.11":"2026-02-17T06:39:18.910Z","1.0.13":"2026-02-18T08:27:28.187Z","1.0.14":"2026-02-19T08:34:31.612Z","1.0.15":"2026-04-01T14:12:19.288Z"},"author":{"name":"Michelle Njeri"},"license":"ISC","keywords":["bm-packages"],"repository":{"type":"git","url":"bm-packages"},"description":"Shared library for canonical error codes, HTTP mappings, and standardized error response schemas across the BeemM ecosystem.","maintainers":[{"name":"beemafrica","email":"contact@beem.africa"}],"readme":"## Error Definitions (BeemM)\n\nThis package provides canonical error codes and helpers for building consistent error responses across services.\n\n## Start here\n\n- **Consumer guide**: see `CONSUMER_GUIDE.md` for real-world usage patterns (API boundaries, middleware, service-to-service errors, dependency failures, and expected response shapes).\n\n## Quick start\n\nCreate/throw canonical errors in your service code:\n\n```ts\nimport { createError } from \"error-definitions\";\n\nthrow createError(\"API_INVALID_REQUEST_FORMAT\", {\n  context: { source: \"request-body\" },\n  traceId,\n});\n```\n\nNormalize any unknown error at the boundary (and use `status_code` as the HTTP status):\n\n```ts\nimport { toErrorResponse } from \"error-definitions\";\n\nconst payload = toErrorResponse(err, { traceId });\nres.status(payload.status_code).json(payload);\n```\n\n## CommonJS support (`require`)\n\nThis package supports both ESM and CommonJS consumers.\n\n```js\n// CommonJS\nconst { createError, ServiceId } = require(\"error-definitions\");\n```\n\n## Dependency tracking\n\n`BMErrorResponse` supports an optional `dependency` object to capture **what dependency failed** and the **raw dependency error**:\n\n- **name**: e.g. `Redis`, `Stripe`, `RabbitMQ`\n- **type**: `INTERNAL` | `EXTERNAL`\n- **original_message**: raw message from the caught error\n\n### Which code should I use?\n\n- **INFRASTRUCTURE_FAILURE**: internal tools/infrastructure dependencies (e.g. Redis, RabbitMQ)\n- **THIRD_PARTY_ERROR**: external vendors/providers (e.g. Stripe)\n\n### Helper: `handleDependencyError`\n\nUse `handleDependencyError` inside a `try/catch` to convert a raw dependency exception into a `BMErrorResponse` with the correct canonical code and populated `dependency.original_message`.\n\nExample:\n\n```ts\nimport { handleDependencyError, ServiceId } from \"error-definitions\";\n\ntry {\n  await stripe.charges.create(...);\n} catch (err) {\n  return handleDependencyError(\n    ServiceId.Payments,\n    { name: \"Stripe\", type: \"EXTERNAL\" },\n    err,\n    { trace_id }\n  );\n}\n```\n","readmeFilename":"README.md"}