{"_id":"@affordant/contract","name":"@affordant/contract","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@affordant/contract","version":"0.2.0","description":"The Affordant wire contract: shared TypeScript types for the _self / _actions hypermedia envelope. Zero runtime, zero dependencies.","license":"MIT","author":{"name":"Florian Leroy"},"repository":{"type":"git","url":"git+https://github.com/Leroy-Florian/Affordant.git","directory":"packages/contract"},"homepage":"https://leroy-florian.github.io/Affordant/","bugs":{"url":"https://github.com/Leroy-Florian/Affordant/issues"},"keywords":["hateoas","hypermedia","affordance","types","contract"],"type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json"},"_id":"@affordant/contract@0.2.0","gitHead":"f6e1abef80c7cbbf221fc6781d60c66a683cc7a9","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-94GHyZbP3hf581Tn0zD4vc5Cc3TrfJJ7Q5PnuL6vtMAD/tqkk45n2JSfrDqqXwucSKT4MCwU713OYbrZj0LkgA==","shasum":"b238b83dd5b75615aab2737212bfd8087e387eaa","tarball":"https://registry.npmjs.org/@affordant/contract/-/contract-0.2.0.tgz","fileCount":6,"unpackedSize":3214,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@affordant%2fcontract@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDmOr+y1eG736IBqJVb44IyA8OHB2eG44UCK48Vd1FFZgIgQPFpvYTIqyoyGJWWNj2LD4XLC0X0XShizBCW/65eKRs="}]},"_npmUser":{"name":"hijoxx","email":"floroy32@gmail.com"},"directories":{},"maintainers":[{"name":"hijoxx","email":"floroy32@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/contract_0.2.0_1780691935801_0.7764911158431171"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-05T20:38:55.644Z","0.2.0":"2026-06-05T20:38:55.942Z","modified":"2026-06-05T20:38:56.331Z"},"maintainers":[{"name":"hijoxx","email":"floroy32@gmail.com"}],"description":"The Affordant wire contract: shared TypeScript types for the _self / _actions hypermedia envelope. Zero runtime, zero dependencies.","homepage":"https://leroy-florian.github.io/Affordant/","keywords":["hateoas","hypermedia","affordance","types","contract"],"repository":{"type":"git","url":"git+https://github.com/Leroy-Florian/Affordant.git","directory":"packages/contract"},"author":{"name":"Florian Leroy"},"bugs":{"url":"https://github.com/Leroy-Florian/Affordant/issues"},"license":"MIT","readme":"# @affordant/contract\n\nThe shared **wire contract** for [Affordant](https://leroy-florian.github.io/Affordant/): the TypeScript types that describe the `_self` / `_actions` hypermedia envelope.\n\nBoth sides of the wire depend on this package so they can never drift apart — the server builds what the client consumes.\n\n- [`affordant`](https://www.npmjs.com/package/affordant) (client) consumes the envelope.\n- `@affordant/server` produces it.\n\nZero runtime, zero dependencies — it ships only `.d.ts` plus an empty module.\n\n```ts\nimport type { HateoasAction, HateoasMethod, HateoasResource } from '@affordant/contract'\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-bac97aa36e458dd80e97a3e51dfd180b"}