{"_id":"@adzenai/core","_rev":"10-98cabfed170f7f9d66c1230435c005a5","name":"@adzenai/core","dist-tags":{"latest":"1.2.5"},"versions":{"0.0.1":{"name":"@adzenai/core","version":"0.0.1","license":"MIT","_id":"@adzenai/core@0.0.1","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"}],"dist":{"shasum":"0b95c98bafff2c20633ec6c8579eacafb2097548","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-0.0.1.tgz","fileCount":7,"integrity":"sha512-9iEmhY9H5nEvIMgmczbm/MlInb+zoqrv1TZ5QsQSkqD0MGA2gAPdqBJnZcPUAXUVAojN7Kpnrw/9QgxU8dZ0lw==","signatures":[{"sig":"MEYCIQCfU5ubLxMO7TLYGZMr7KmXEFG7PErff7QGoBZecMfrBgIhAIYDe++296I3b34ysDvVgSsWmg4nN6kL+EI5wkvgoqww","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27631},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"730d8441d377202a4128e988f99c45baadf3e8da","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.0.1_1783374601489_0.42368115517880134","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@adzenai/core","version":"1.0.0","license":"MIT","_id":"@adzenai/core@1.0.0","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"}],"dist":{"shasum":"da5c4dd9ebc3ec8b16853deeb0eaf1ee7c47d980","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.0.0.tgz","fileCount":8,"integrity":"sha512-FzouvomU/tf3EELKlfxEB58a+6XQSHBIN4+CxPbe1CAu6B94ooTcZrJXKAv/Qwlp9emUNZigR8iMlYBGudnMmg==","signatures":[{"sig":"MEQCIQCxIvPhs6S3Q+6M3LdpbjfL/aLsiU6KKO/1oX1SBDYkogIfLsgsi3XfAon/Q1oO1xtxzxfETFJS0lfbHqen5/Ru6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29540},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"cb7580422996c319ac9627ccbec6dadfc9d2e30e","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.0.0_1783446347332_0.5336339394256076","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@adzenai/core","version":"1.1.0","license":"MIT","_id":"@adzenai/core@1.1.0","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"}],"dist":{"shasum":"ff4cb56e04f37c728467805ba573e061202838c4","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.1.0.tgz","fileCount":8,"integrity":"sha512-Yw6sFtfG26O9Lt80Y250vgZmLWJ6wKISaksPqmylEco6l9sQfC3Q6S7/D5OguvHXT7KOSrYOybr/eLEFjsH7Ug==","signatures":[{"sig":"MEUCIDA0OZZeD3pX19gzCZtnz3ShwJC5D+RdW5B4BMFjR8hYAiEA7J33+errKzRHcAARpDfHzlYdPQvhOa8qEgXmTn7SD18=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30236},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"0ca4391285a83cf462cbd899176fe53cbfb9286e","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.1.0_1783638651143_0.3408324577463957","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@adzenai/core","version":"1.1.1","license":"MIT","_id":"@adzenai/core@1.1.1","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"e0119a0e4a943798f989482f73b729707e8d1f1d","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.1.1.tgz","fileCount":8,"integrity":"sha512-lNsN3/AKoLJ566Tu7OtuTc9xK6mAEq9hntupwTsuCOQcaMH6h79dZDMwHJ6oI5eFJ/9zPC33k8u+Z4jxEnkHpQ==","signatures":[{"sig":"MEQCIDXghtUcdcf459DYl9pIkz5t2btfR+ClAlysgRbQsJRAAiBNUu2DMcdCVi+Q+auDwzZ7L8PmdehN/SyK4zL99LLR8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30235},"main":"./dist/index.cjs","type":"module","_from":"file:adzenai-core-1.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"tomadzen","email":"tomas@adzen.ai"},"_resolved":"/private/var/folders/63/smjkfj9n0xvdf_8rbkl5fxjr0000gn/T/74c95d56837efac7c77ae5e670f809e7/adzenai-core-1.1.1.tgz","_integrity":"sha512-lNsN3/AKoLJ566Tu7OtuTc9xK6mAEq9hntupwTsuCOQcaMH6h79dZDMwHJ6oI5eFJ/9zPC33k8u+Z4jxEnkHpQ==","_npmVersion":"10.9.2","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.1.1_1784043472244_0.3527640507581371","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@adzenai/core","version":"1.2.0","license":"MIT","_id":"@adzenai/core@1.2.0","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"80c3271aa83ad2abdde5ab575385a4c71e7664ca","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.0.tgz","fileCount":8,"integrity":"sha512-l+wb39csuujuk5fgOywvv+d4IC17ev73AiPry8uou9KkBbdikTOjpL3ApKn/HI+fcmPzMn/AqGwnPIRu/J0DsA==","signatures":[{"sig":"MEUCIQCl806ipk0TUACQjXH4N/jKEBtG5WTUnkmwFRtA8Z2qjQIgTKYQ/LFm2kNeK4FvNAM6t/XvqGsVFi1n7aYnb9/ZJEY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35213},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"55a25496fd270deca7c8f3c9c0069d6a9a24a06a","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.2.0_1786482398364_0.552339983897514","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@adzenai/core","version":"1.2.1","license":"MIT","_id":"@adzenai/core@1.2.1","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"f6b4892a0d73d6361e764483599463b82af5ecb8","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.1.tgz","fileCount":8,"integrity":"sha512-iC3la5omcBRMNg2yGJq2/DiW3DR4ZouMXQdlMorEJmXnedg0V212EAw4bfTIotCIOMhl62DcFWXse+J0zlD5rA==","signatures":[{"sig":"MEQCIGZtPa9Dkvp+AAEvu6Lb7xj/05Qa0XgTU3v4i8nQ3tcIAiAtSb9d4+P+kmUN9UIt1OJ/76+EPVmbmRhVnVZnD7vfag==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35213},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"55a25496fd270deca7c8f3c9c0069d6a9a24a06a","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.2.1_1786484563975_0.2734079637944644","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@adzenai/core","version":"1.2.2","license":"MIT","_id":"@adzenai/core@1.2.2","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"b5eedee9ab985b41c0bbe102281062b9fad2ed48","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.2.tgz","fileCount":8,"integrity":"sha512-L54NahTdVmFIiediq4qBNn+qBi3LpYF8gQEHDGNJv4QEnzkDKk4Dc13R8BozIBH9eQ3mN84aIpm1Wb/FXpmVwQ==","signatures":[{"sig":"MEUCIDg7e6HCZKsnPUUZ8GrK+I0X1r62MTyKqX+bOkzXa5x5AiEApxk1gNgukNq0WClttJCJLdosq9lZA4IzmGsFkamnmPk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36351},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"b75a61146b4c00408801858bd1131e3dd97d81aa","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.2.2_1788386194015_0.09128454343594594","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@adzenai/core","version":"1.2.3","license":"MIT","_id":"@adzenai/core@1.2.3","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"014016996c58fefe95b5182265b4a6760cd1d5b8","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.3.tgz","fileCount":8,"integrity":"sha512-qA8t9zCDbPfTgOZ2dPm+IIQ9JC3dr//6RhB+I8ylrIk48HlRSL0ySqkl1dDUMrjx0vxm7pAdkcdJ/W+5Qo2T1w==","signatures":[{"sig":"MEUCIQCVj4PUBllWmVBVK/6mBzu1yVgIUmQiyxjlYyCFGW6TywIgQ8eJfNYJ9981eYna8MjSv4h/yFqAjqlHV1YtjyWAvzU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36350},"main":"./dist/index.cjs","type":"module","_from":"file:adzenai-core-1.2.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_resolved":"/private/var/folders/9h/mjdx7xl537n7nt5j7q1y4n3w0000gn/T/bbd85fbdc2a92c4a8084cdcb828581c4/adzenai-core-1.2.3.tgz","_integrity":"sha512-qA8t9zCDbPfTgOZ2dPm+IIQ9JC3dr//6RhB+I8ylrIk48HlRSL0ySqkl1dDUMrjx0vxm7pAdkcdJ/W+5Qo2T1w==","_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.2.3_1788386779745_0.3001135193811819","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@adzenai/core","version":"1.2.4","license":"MIT","_id":"@adzenai/core@1.2.4","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"dist":{"shasum":"e28e9cb51b18c3e89dcd15c07b0bdba5319b2ce0","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.4.tgz","fileCount":8,"integrity":"sha512-xiBZpbWna15EYpllLWofJTx83lY7EezJBhCuHxBzg3FEhQThIri/wxkRjYnvG4CVv6zgIC97LMVoc+eRpYAEmQ==","signatures":[{"sig":"MEUCIC7XeiRhicoZ08SrUUgBeRuHXnphHV4Ca8GCDQdKY1vTAiEAuoBwBqT+Q6bHmd4awGg53EeGGAbazV0CLUOKEhARzn8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37787},"main":"./dist/index.cjs","type":"module","_from":"file:adzenai-core-1.2.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"_resolved":"/private/var/folders/9h/mjdx7xl537n7nt5j7q1y4n3w0000gn/T/8b798f0f7537c910b1353fa447a62b91/adzenai-core-1.2.4.tgz","_integrity":"sha512-xiBZpbWna15EYpllLWofJTx83lY7EezJBhCuHxBzg3FEhQThIri/wxkRjYnvG4CVv6zgIC97LMVoc+eRpYAEmQ==","_npmVersion":"11.6.0","description":"Core types and utilities for the Adzen AI ad SDK","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.1.0","vitest":"^2.1.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.2.4_1788458235689_0.6209048914539748","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@adzenai/core","version":"1.2.5","description":"Core types and utilities for the Adzen AI ad SDK","license":"MIT","type":"module","publishConfig":{"access":"public"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","devDependencies":{"tsup":"^8.1.0","typescript":"^5.5.0","vitest":"^2.1.0"},"scripts":{"build":"tsup","test":"vitest run","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_id":"@adzenai/core@1.2.5","_integrity":"sha512-Kb+dgzP92tAo67ye8PWPLYJSmZrLf1wo2Juau6gzHGBHho02+j0Yh30YGisg6jpzbcTZwZHxMiMf/YMA2A1RhA==","_resolved":"/private/var/folders/9h/mjdx7xl537n7nt5j7q1y4n3w0000gn/T/9a4e3448322fcc4c569135432f6548b2/adzenai-core-1.2.5.tgz","_from":"file:adzenai-core-1.2.5.tgz","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-Kb+dgzP92tAo67ye8PWPLYJSmZrLf1wo2Juau6gzHGBHho02+j0Yh30YGisg6jpzbcTZwZHxMiMf/YMA2A1RhA==","shasum":"fc629631943ec67f23d6ce0c114475b86b580679","tarball":"https://registry.npmjs.org/@adzenai/core/-/core-1.2.5.tgz","fileCount":8,"unpackedSize":39604,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDRMz3xVqmnHKeLVz9LIXIaiwMZZtLGggs7L4QMLTOQUwIgVt6o7deH0ZFuB/VzdkajlAN1EDeuKBCtqStxYlpXrss="}]},"_npmUser":{"name":"matesv","email":"mate@adzen.ai"},"directories":{},"maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.2.5_1788466391456_0.3778731090880303"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-06T21:50:01.296Z","modified":"2026-09-03T20:13:11.776Z","0.0.1":"2026-07-06T21:50:01.632Z","1.0.0":"2026-07-07T17:45:47.473Z","1.1.0":"2026-07-09T23:10:51.300Z","1.1.1":"2026-07-14T15:37:52.407Z","1.2.0":"2026-08-11T21:06:38.535Z","1.2.1":"2026-08-11T21:42:44.144Z","1.2.2":"2026-09-02T21:56:34.143Z","1.2.3":"2026-09-02T22:06:19.884Z","1.2.4":"2026-09-03T17:57:15.833Z","1.2.5":"2026-09-03T20:13:11.615Z"},"license":"MIT","description":"Core types and utilities for the Adzen AI ad SDK","maintainers":[{"name":"matesv","email":"mate@adzen.ai"},{"name":"adzen-engineering","email":"engineering@adzen.ai"},{"name":"tomadzen","email":"tomas@adzen.ai"}],"readme":"# @adzenai/core\n\nShared types and utilities for the Adzen SDK. Used as a foundation by `@adzenai/ai`, `@adzenai/static`, and other channel packages.\n\n## Install\n\n```bash\nnpm install @adzenai/core\n```\n\n## Quick Start\n\n```typescript\nimport {\n  type AdzenPlacement,\n  type AdzenDecision,\n  type TrackingInfo,\n  observeViewability,\n  registerErrorSink,\n  safeRun,\n  uuidv4,\n  ensureTid,\n} from \"@adzenai/core\";\n```\n\n## Exports\n\n### Types\n\n| Type | Description |\n| --- | --- |\n| `AdzenPlacement` | Ad placement data (headline, CTA, destination URL, creative, tracking URLs) |\n| `AdzenDecision` | API response wrapper (`\"serve\"` or `\"no_match\"` with optional placement) |\n| `TrackingInfo` | Render/view/click tracking URLs |\n| `AdzenBaseConfig` | Shared config interface (`apiKey`, `endpointUrl`, `timeoutMs`) |\n| `InlineAdEvent` | In-message creative delivered by an `adzen_inline` SSE event; `paragraph_index` (with `ad_id`) is its placement instance key, and an optional absolute `content_offset` is the backend-authoritative render position (UTF-16 index) |\n| `InlineAdCreative` | Inline creative fields (`headline`, `cta_text`, `destination_url`, `format`, `label`, optional `advertiser_name`) |\n| `InlineAdEventPayload` | `InlineAdEvent` (including `paragraph_index`) plus `message_id` and `content_offset`, the character position in the message the ad is anchored to |\n| `AdAnchorEvent` | Payload of the `adzen_ad_anchor` SSE event (`version`, `paragraph_index`, optional absolute `content_offset`); reserves a paragraph's render position before the matching `adzen_inline` arrives |\n\nStatic-channel types are also exported: `DecisionRequest`, `Decision`, `Creative`, `SlotSpec`, `BannerCreative`, `NativeCreative`, and more.\n\n### Error Handling\n\n| Export | Description |\n| --- | --- |\n| `registerErrorSink(fn)` | Register a callback for all SDK errors |\n| `reportError(error)` | Report an error to registered sinks |\n| `safeRun(fn)` | Execute synchronous code with automatic error reporting |\n| `safeRunAsync(fn)` | Execute async code with automatic error reporting |\n\n### Session\n\n| Export | Description |\n| --- | --- |\n| `uuidv4()` | Generate a random UUID v4 |\n| `readTid()` | Read the persistent tracking ID from localStorage |\n| `ensureTid()` | Read or create a persistent tracking ID |\n\n### Viewability\n\n| Export | Description |\n| --- | --- |\n| `observeViewability(options)` | Track element visibility using `IntersectionObserver` with a time threshold |\n\n```typescript\nimport { observeViewability } from \"@adzenai/core\";\n\nconst cleanup = observeViewability({\n  element: adCardRef.current,\n  thresholdMs: 1000,\n  onViewed: () => fireImpression(),\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}