{"_id":"@akson/cortex-utilities","_rev":"4-cd21139a60ffa144e4b21acea87d3b57","name":"@akson/cortex-utilities","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@akson/cortex-utilities","version":"0.1.0","keywords":["core","utilities","shared","typescript","cortex","akson","api","events"],"author":{"name":"Cortex Team","email":"cortex@akson.ai"},"license":"MIT","_id":"@akson/cortex-utilities@0.1.0","maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"homepage":"https://github.com/antoineschaller/cortex-packages/tree/main/packages/@akson/cortex-utilities","bugs":{"url":"https://github.com/antoineschaller/cortex-packages/issues"},"dist":{"shasum":"370a9ef0c867d998e2b26474f82c7b3b9ef57ef8","tarball":"https://registry.npmjs.org/@akson/cortex-utilities/-/cortex-utilities-0.1.0.tgz","fileCount":11,"integrity":"sha512-y7igfNi1NuQLHnagZT9L/p3YXdv3vHKWh8afhoHRbZUaZnYgj1PnLbiIgD0xbmFw1tPOTC5QhMWLtS++Ui33eA==","signatures":[{"sig":"MEYCIQCYwBDnFcT5PTv7gPKByJ0unND5fHXgwXTXs3lklLSxLQIhALcnk+64841ZtPFUOb/qAy0eBY8L9Ar6lGVAfV0gXLuw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123057},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./events-browser":{"types":"./dist/events-browser.d.ts","import":"./dist/events-browser.js"}},"gitHead":"574f6bf0388a0c116489f5ecfe04631bc0216d5f","scripts":{"dev":"tsup --watch","lint":"biome check src/","test":"vitest","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit"},"_npmUser":{"name":"antoineschaller","email":"antoine.schaller@akson.ch"},"repository":{"url":"git+https://github.com/antoineschaller/cortex-packages.git","type":"git","directory":"packages/@akson/cortex-utilities"},"_npmVersion":"10.7.0","description":"Shared utilities and types for Akson API packages with bulk operations","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.24.1","is-stream":"^2.0.1","google-auth-library":"^9.15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.1.8","typescript":"^5.2.2","@types/node":"^20.11.0","@biomejs/biome":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/cortex-utilities_0.1.0_1757758914547_0.8757574399054175","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: inlined into consumer projects. No longer maintained."},"0.3.0":{"name":"@akson/cortex-utilities","version":"0.3.0","keywords":["core","utilities","shared","typescript","cortex","akson","api","events"],"author":{"name":"Akson","email":"contact@akson.ch"},"license":"MIT","_id":"@akson/cortex-utilities@0.3.0","maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"homepage":"https://github.com/antoineschaller/cortex-packages/tree/main/packages/@akson/cortex-utilities","bugs":{"url":"https://github.com/antoineschaller/cortex-packages/issues"},"dist":{"shasum":"b8ca4f496f0c68ca1fb5ed1daa58f906c72d5310","tarball":"https://registry.npmjs.org/@akson/cortex-utilities/-/cortex-utilities-0.3.0.tgz","fileCount":11,"integrity":"sha512-sbnVuJ63SzExlWMMbGPQVnkKMEs//y4Pcj/YfP5gCvtvIyyvFa0Lhw/CUF0FuigrcjcZzIcXYLVm7GhDE8VYEg==","signatures":[{"sig":"MEYCIQCn0Zm1D2FOEuJdoJKobNnrMqGm6pOEwqi0SNbVYd6URgIhAP+C5i0FLGi5QNxBprOZ28JBU2zGjfWCm6zwwGo2q/lR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116784},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./events-browser":{"types":"./dist/events-browser.d.ts","import":"./dist/events-browser.js"}},"gitHead":"d64e3eb64011b77b162539139a1bc5677f77f6da","scripts":{"dev":"tsup --watch","lint":"biome check src/","test":"vitest","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit"},"_npmUser":{"name":"antoineschaller","email":"antoine.schaller@akson.ch"},"repository":{"url":"git+https://github.com/antoineschaller/cortex-packages.git","type":"git","directory":"packages/@akson/cortex-utilities"},"_npmVersion":"10.7.0","description":"Shared utilities and types for Akson API packages with bulk operations","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.24.1","is-stream":"^2.0.1","google-auth-library":"^9.15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.1.8","typescript":"^5.2.2","@types/node":"^20.11.0","@biomejs/biome":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/cortex-utilities_0.3.0_1757838673643_0.2424977427744568","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: inlined into consumer projects. No longer maintained."},"0.3.1":{"name":"@akson/cortex-utilities","version":"0.3.1","keywords":["core","utilities","shared","typescript","cortex","akson","api","events"],"author":{"name":"Akson","email":"contact@akson.ch"},"license":"MIT","_id":"@akson/cortex-utilities@0.3.1","maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"homepage":"https://github.com/antoineschaller/cortex-packages/tree/main/packages/@akson/cortex-utilities","bugs":{"url":"https://github.com/antoineschaller/cortex-packages/issues"},"dist":{"shasum":"cf3de03e369457fc01ee9541afe00accde9d4597","tarball":"https://registry.npmjs.org/@akson/cortex-utilities/-/cortex-utilities-0.3.1.tgz","fileCount":17,"integrity":"sha512-RdORd48bw7Q7vK4ruZ/I+ijGNH2PqUZBinhQoi9CvORh6/jORM8UI+Y8SouNT6a5Gr75fMy2tBed/+fpgB7ZvQ==","signatures":[{"sig":"MEYCIQC3lL6KPquD+QxHInvr0/m12ehtGXOtJhqIqwf6s288igIhAIbgUPZYLvEH57KYfMCbcE1axJMdH+GDHH7VRi7GVhds","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":201186},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./bulk":{"types":"./dist/bulk.d.ts","import":"./dist/bulk.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./browser":{"types":"./dist/index-browser.d.ts","import":"./dist/index-browser.js"},"./events-browser":{"types":"./dist/events-browser.d.ts","import":"./dist/events-browser.js"}},"gitHead":"34d40ed5a1a66384b59339286e7badae0937f74e","scripts":{"dev":"tsup --watch","lint":"biome check src/","test":"vitest","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit"},"_npmUser":{"name":"antoineschaller","email":"antoine.schaller@akson.ch"},"repository":{"url":"git+https://github.com/antoineschaller/cortex-packages.git","type":"git","directory":"packages/@akson/cortex-utilities"},"_npmVersion":"10.9.3","description":"Shared utilities and types for Akson API packages with bulk operations","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.1","is-stream":"^2.0.1","google-auth-library":"^9.15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.1.8","typescript":"^5.2.2","@types/node":"^20.11.0","@biomejs/biome":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/cortex-utilities_0.3.1_1769241590235_0.2603780044716968","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: inlined into consumer projects. No longer maintained."}},"time":{"created":"2025-09-13T10:21:54.454Z","modified":"2026-03-19T11:54:58.277Z","0.1.0":"2025-09-13T10:21:54.742Z","0.3.0":"2025-09-14T08:31:13.832Z","0.3.1":"2026-01-24T07:59:50.397Z"},"bugs":{"url":"https://github.com/antoineschaller/cortex-packages/issues"},"author":{"name":"Akson","email":"contact@akson.ch"},"license":"MIT","homepage":"https://github.com/antoineschaller/cortex-packages/tree/main/packages/@akson/cortex-utilities","keywords":["core","utilities","shared","typescript","cortex","akson","api","events"],"repository":{"url":"git+https://github.com/antoineschaller/cortex-packages.git","type":"git","directory":"packages/@akson/cortex-utilities"},"description":"Shared utilities and types for Akson API packages with bulk operations","maintainers":[{"name":"antoineschaller","email":"antoine.schaller@akson.ch"}],"readme":"# @akson/cortex-utilities\n\nShared utilities and types for Cortex packages, including analytics event constants, configuration management, and authentication utilities.\n\n## Features\n\n- 📊 **Standardized Analytics Events** - Consistent event naming across platforms\n- 🔧 **Configuration Management** - Type-safe configuration objects\n- 🔐 **Authentication Utilities** - Google API authentication support\n- 🎯 **TypeScript Support** - Full type definitions and exports\n\n## Installation\n\n```bash\nnpm install @akson/cortex-utilities\n```\n\n## Usage\n\n### Analytics Events\n\n```typescript\nimport { ECOMMERCE_EVENTS, LEAD_GENERATION_EVENTS, LEAD_SCORES } from '@akson/cortex-utilities';\n\n// Use standardized event names\nconst leadEvent = LEAD_GENERATION_EVENTS.CONTACT_FORM_SUBMIT;\nconst ecommerceEvent = ECOMMERCE_EVENTS.PURCHASE;\nconst score = LEAD_SCORES.HIGH_INTENT;\n```\n\n### Configuration Management\n\n```typescript\nimport { Config } from '@akson/cortex-utilities';\n\n// Type-safe configuration\nconst config: Config = {\n  // Your configuration options\n};\n```\n\n### Authentication\n\n```typescript\nimport { Auth } from '@akson/cortex-utilities';\n\n// Google API authentication support\nconst auth = new Auth({\n  // Authentication options\n});\n```\n\n## Package Exports\n\nThe package provides modular exports:\n\n```typescript\n// Main exports\nimport { ECOMMERCE_EVENTS, LEAD_GENERATION_EVENTS, LEAD_SCORES } from '@akson/cortex-utilities';\n\n// Event constants from specific modules\nimport { events } from '@akson/cortex-utilities/events';\nimport { browserEvents } from '@akson/cortex-utilities/events-browser';\n```\n\n### Browser-Safe Imports\n\n```typescript\nimport { ECOMMERCE_EVENTS, LEAD_GENERATION_EVENTS } from '@akson/cortex-utilities/browser';\n\n// Auth helpers are omitted in the browser bundle to avoid server-only dependencies\n```\n\n### Available Exports\n\n- Main package - All core utilities and constants\n- `/events` - Server-side event utilities\n- `/events-browser` - Browser-specific event utilities\n- `/browser` - Tree-shaken bundle safe for client-side environments\n\n## Version History\n\n- **0.1.0** - Initial release with analytics events and configuration\n\n## Contributing\n\nPart of the Cortex packages ecosystem. Contributions welcome!\n\n## License\n\nMIT\n\n## Support\n\nFor support, please open an issue in the [Cortex Packages repository](https://github.com/antoineschaller/cortex-packages).\n","readmeFilename":"README.md"}