{"_id":"@aidran/contracts","_rev":"5-5f3a552a5bdad7d74634a4a5c2fe0997","name":"@aidran/contracts","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@aidran/contracts","version":"0.1.0","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/contracts@0.1.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"dist":{"shasum":"2e8b2bc06b49e54f25d6af81607cea0b0ff35375","tarball":"https://registry.npmjs.org/@aidran/contracts/-/contracts-0.1.0.tgz","fileCount":40,"integrity":"sha512-84eKgepUgm6HlMViZOixtXTA+bsVzByafDz4bgripG7Kddrn30mJ65rNrRDNBdA7jN88ZQhuUkEcSHmpjQc2yA==","signatures":[{"sig":"MEQCIAO/iZ6CrJLUPoYebCsjxX8UUcAsys3UQrbcTbdc/hynAiBBUuozJUNnRGX/VLq3VCXe2hZf0AFraCc6JCttfYCfxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcontracts@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":266308},"main":"./dist/index.js","type":"module","_from":"file:aidran-contracts-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","import":"./dist/api.js"},"./tiers":{"types":"./dist/tiers.d.ts","import":"./dist/tiers.js"},"./errors":{"types":"./dist/errors.d.ts","import":"./dist/errors.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./webhooks":{"types":"./dist/webhooks.d.ts","import":"./dist/webhooks.js"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/cb72c434bde020d5a786e8cbdeee1290/aidran-contracts-0.1.0.tgz","_integrity":"sha512-84eKgepUgm6HlMViZOixtXTA+bsVzByafDz4bgripG7Kddrn30mJ65rNrRDNBdA7jN88ZQhuUkEcSHmpjQc2yA==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/contracts"},"_npmVersion":"10.9.8","description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.1.0_1779575450535_0.6915209549259842","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aidran/contracts","version":"0.2.0","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/contracts@0.2.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"dist":{"shasum":"9eba8c6608da73e80576911bb4c4a09a024a2a44","tarball":"https://registry.npmjs.org/@aidran/contracts/-/contracts-0.2.0.tgz","fileCount":40,"integrity":"sha512-yhfmKUqmfOxyg21MgFvqvGH1QMVNHLArpSNcoFIa4zzR+4h1apWAiG4KYOMm61YXNriiFtOWTNrIQNPVeoZaQA==","signatures":[{"sig":"MEUCICrnXCxOkgSPgYmAYUeV3Dgwy3SMC5aKT08FKcCh7TftAiEA9VzFuLxlFq9TS+8BA5riGeiAi+JmQKhGqb9AuK7vBNU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcontracts@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":266308},"main":"./dist/index.js","type":"module","_from":"file:aidran-contracts-0.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","import":"./dist/api.js"},"./tiers":{"types":"./dist/tiers.d.ts","import":"./dist/tiers.js"},"./errors":{"types":"./dist/errors.d.ts","import":"./dist/errors.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./webhooks":{"types":"./dist/webhooks.d.ts","import":"./dist/webhooks.js"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/8e1e1e215572ea3894930e6a4165926c/aidran-contracts-0.2.0.tgz","_integrity":"sha512-yhfmKUqmfOxyg21MgFvqvGH1QMVNHLArpSNcoFIa4zzR+4h1apWAiG4KYOMm61YXNriiFtOWTNrIQNPVeoZaQA==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/contracts"},"_npmVersion":"10.9.8","description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.2.0_1779576720485_0.7724727548102457","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aidran/contracts","version":"0.3.0","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/contracts@0.3.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"dist":{"shasum":"979ae5ff285ffc5d5572e4cfd7b3e7100c36659e","tarball":"https://registry.npmjs.org/@aidran/contracts/-/contracts-0.3.0.tgz","fileCount":40,"integrity":"sha512-+8oQnpTH9uGJLUmTR7+ATC+h9TbEZFeqxguHKZNycrvYvC57LKP5UTFVoWQhZ5fjKw8492T+B4W0ubhWepoDZQ==","signatures":[{"sig":"MEYCIQD/jx4JHUR4LOJf7rlpCgkQEZVuRy1XUWqsOIWPuefUKAIhAKYNZR8aV1R9hjcxeBbHCfpTx9VaJZ2EhmWuicVAy4xP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcontracts@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":266308},"main":"./dist/index.js","type":"module","_from":"file:aidran-contracts-0.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","import":"./dist/api.js"},"./tiers":{"types":"./dist/tiers.d.ts","import":"./dist/tiers.js"},"./errors":{"types":"./dist/errors.d.ts","import":"./dist/errors.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./webhooks":{"types":"./dist/webhooks.d.ts","import":"./dist/webhooks.js"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/8f40bb2013463c59a4d138b4044dd912/aidran-contracts-0.3.0.tgz","_integrity":"sha512-+8oQnpTH9uGJLUmTR7+ATC+h9TbEZFeqxguHKZNycrvYvC57LKP5UTFVoWQhZ5fjKw8492T+B4W0ubhWepoDZQ==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/contracts"},"_npmVersion":"10.9.8","description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.3.0_1779577137100_0.14339362467098016","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aidran/contracts","version":"0.4.0","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/contracts@0.4.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"dist":{"shasum":"d80e03010765a604773069c82ee9c36d48c4bff4","tarball":"https://registry.npmjs.org/@aidran/contracts/-/contracts-0.4.0.tgz","fileCount":40,"integrity":"sha512-uNqEPNeNZw3xdIpfbJlX1L6ie7NdOGVzFBur3eaJFSo5iJHIpQAYPiqIpKfRkS/4vgKkVCHjNGRnHuBtgLpIGw==","signatures":[{"sig":"MEYCIQC7C+piDdNo5nuhb9kLmM+xtScw6YwbzHhLSX1cE/2NhgIhANxhraZ6rd2IZV4BzAYgyHP1rkiA1h5Fogazc9uTbnJc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcontracts@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":266308},"main":"./dist/index.js","type":"module","_from":"file:aidran-contracts-0.4.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","import":"./dist/api.js"},"./tiers":{"types":"./dist/tiers.d.ts","import":"./dist/tiers.js"},"./errors":{"types":"./dist/errors.d.ts","import":"./dist/errors.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./webhooks":{"types":"./dist/webhooks.d.ts","import":"./dist/webhooks.js"}},"scripts":{"build":"tsc","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/19683691831bf53396be03fdf6b76439/aidran-contracts-0.4.0.tgz","_integrity":"sha512-uNqEPNeNZw3xdIpfbJlX1L6ie7NdOGVzFBur3eaJFSo5iJHIpQAYPiqIpKfRkS/4vgKkVCHjNGRnHuBtgLpIGw==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/contracts"},"_npmVersion":"10.9.8","description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.2"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.4.0_1779578096019_0.879540913500527","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@aidran/contracts","version":"0.5.0","description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"repository":{"type":"git","url":"git+https://github.com/AIDRAN/aidran.git","directory":"packages/contracts"},"license":"Apache-2.0","author":{"name":"AIDRAN contributors"},"type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./events":{"types":"./dist/events.d.ts","import":"./dist/events.js"},"./api":{"types":"./dist/api.d.ts","import":"./dist/api.js"},"./tiers":{"types":"./dist/tiers.d.ts","import":"./dist/tiers.js"},"./errors":{"types":"./dist/errors.d.ts","import":"./dist/errors.js"},"./webhooks":{"types":"./dist/webhooks.d.ts","import":"./dist/webhooks.js"}},"dependencies":{"zod":"^3.23.8"},"devDependencies":{"typescript":"^5.7.2"},"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=22.0.0"},"scripts":{"typecheck":"tsc --noEmit","build":"tsc"},"_id":"@aidran/contracts@0.5.0","_integrity":"sha512-u3x1yaAPtUih6kkiCM9HRV38Xo36S66x5kVIhrpRrdPohUkSQR0fJY3Toy5U7Qx9Ty4QbPDNTpd3tYbHGgb2Gg==","_resolved":"/tmp/bb73476af8367c9d058120ac23eeeefa/aidran-contracts-0.5.0.tgz","_from":"file:aidran-contracts-0.5.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-u3x1yaAPtUih6kkiCM9HRV38Xo36S66x5kVIhrpRrdPohUkSQR0fJY3Toy5U7Qx9Ty4QbPDNTpd3tYbHGgb2Gg==","shasum":"1fafe923b893ce53dcd854d39d7764520ecdcb44","tarball":"https://registry.npmjs.org/@aidran/contracts/-/contracts-0.5.0.tgz","fileCount":40,"unpackedSize":266308,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcontracts@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC33kCwrtiBx2jLwqdEK/skn7J4psYnPnvFPWHARi1FsgIhAJmkpSehiTBhJkxkafYE1Sq+P9xKshAYCK2ti1WWV1hU"}]},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"directories":{},"maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/contracts_0.5.0_1779578293499_0.6358580050638056"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-23T22:30:50.372Z","modified":"2026-05-23T23:18:13.919Z","0.1.0":"2026-05-23T22:30:50.673Z","0.2.0":"2026-05-23T22:52:00.618Z","0.3.0":"2026-05-23T22:58:57.242Z","0.4.0":"2026-05-23T23:14:56.200Z","0.5.0":"2026-05-23T23:18:13.644Z"},"bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","homepage":"https://github.com/AIDRAN/aidran#readme","keywords":["aidran","discourse-intelligence","contracts","zod","typescript","types"],"repository":{"type":"git","url":"git+https://github.com/AIDRAN/aidran.git","directory":"packages/contracts"},"description":"AIDRAN — shared TypeScript types and Zod schemas for inter-service events, API DTOs, webhooks, and tier policies","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"readme":"# @aidran/contracts\n\nShared TypeScript types and Zod schemas for the [AIDRAN](https://aidran.ai) discourse-intelligence platform.\n\nThis package defines the wire format between AIDRAN services: inter-service event payloads, public API DTOs, webhook envelopes, tier policies, error shapes, and search-index documents. Consumers can validate at runtime with Zod or import types statically.\n\n## Install\n\n```sh\npnpm add @aidran/contracts\n# or\nnpm install @aidran/contracts\n```\n\n## Usage\n\n```ts\nimport { recordIngestedEvent, type RecordIngestedEvent } from '@aidran/contracts/events';\n\nconst parsed: RecordIngestedEvent = recordIngestedEvent.parse(payload);\n```\n\nSubpath entries are exposed for narrower imports:\n\n- `@aidran/contracts/events` — inter-service event schemas\n- `@aidran/contracts/api` — REST/RPC DTOs\n- `@aidran/contracts/webhooks` — outbound webhook envelopes\n- `@aidran/contracts/tiers` — tier policies and quotas\n- `@aidran/contracts/errors` — structured error shapes\n\nThe default export re-exports everything for convenience.\n\n## Status\n\nPart of the AIDRAN platform public reference implementation. This package is published from the [`AIDRAN/aidran`](https://github.com/AIDRAN/aidran) monorepo.\n\nThe contracts here are the same shapes used in production AIDRAN — they are deliberately published so external integrators can build compatible producers, consumers, and observers. The editorial intelligence that interprets these contracts is not part of the public reference. See [`NOTICE.md`](https://github.com/AIDRAN/aidran/blob/main/NOTICE.md) in the repo root for the full list of intentionally-omitted components.\n\n## License\n\nApache-2.0. See [`LICENSE`](./LICENSE).\n","readmeFilename":"README.md"}