{"_id":"@inixiative/transitions","_rev":"16-318a1956648f57783beb1a7d8d0589fd","name":"@inixiative/transitions","dist-tags":{"latest":"0.9.0"},"versions":{"0.0.1":{"name":"@inixiative/transitions","version":"0.0.1","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.0.1","maintainers":[{"name":"inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"122b6dd109704627ac45a726e2d4f75beb2b60da","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.0.1.tgz","fileCount":9,"integrity":"sha512-fdcUYux4ZQyS+bvi+xAoYssUT2CQIJZvp2q9lQfWxihTwxnZhyQ6a4s3rXSh66XjUJ2vf4dQO1jb/MeZkYOQrg==","signatures":[{"sig":"MEUCIBK0W4Fgeo8weaaPtJBEvB4pWAcwnNxDr0Hd7lUnMyFZAiEApp0vQx+kpLveL64mFLo5KJPwK+HLjlQiYyf9AY2CnEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98775},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3e3e4d98f87cf27da9c6f2bc9702a0a2ff382664","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run test && bun run build"},"_npmUser":{"name":"inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"lodash-es":"^4.17.21","@inixiative/json-rules":"^2.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","lefthook":"^2.1.2","@types/bun":"^1.3.10","typescript":"^5.0.0","@biomejs/biome":"^2.4.6","@types/lodash-es":"^4.17.12"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.0.1_1782234923002_0.48158960733245326","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@inixiative/transitions","version":"0.0.2","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.0.2","maintainers":[{"name":"inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"71f229c7a40673e39f28f7a6c0b50d090af8918d","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.0.2.tgz","fileCount":9,"integrity":"sha512-YUSQOa7QPezXA4fMPFStvvc4vIgFlcyvHOV27bC2CZpMX38jolQAKrnxEF2/hhZxsJ+qLl3NWF1FK2WLPkgX/w==","signatures":[{"sig":"MEQCIHDOK2O/iaEOuK4VS4tNTI6NbbuQULSNTlvssGGqLtjtAiB51dea11UJcYhpMcbegRPO5ATZ4TPqEk8XbXgaHrAGQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95369},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"3e3e4d98f87cf27da9c6f2bc9702a0a2ff382664","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run test && bun run build"},"_npmUser":{"name":"inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"lodash-es":"^4.17.21","@inixiative/json-rules":"^2.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","lefthook":"^2.1.2","@types/bun":"^1.3.10","typescript":"^5.0.0","@biomejs/biome":"^2.4.6","@types/lodash-es":"^4.17.12"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.0.2_1782240383139_0.17461686941339227","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@inixiative/transitions","version":"0.0.3","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.0.3","maintainers":[{"name":"inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"71823215783576a5b970eeda5db9177ea8df34ec","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.0.3.tgz","fileCount":9,"integrity":"sha512-p0ZGc/8I9N01EGd4H2IEsHwi5jQG49jrcGbITu2VZWMdhr3BqnBUdpni23kLrGfcTYN6o6SLUjpWWhxMj9Z2wg==","signatures":[{"sig":"MEYCIQDaNexDOVqHpPmcaUIDxpZljWEjzEMNhjm/qcYBvZwLeAIhAPVc8ArBWfrVtoSVUZZfQpbhzAwY8i+gOR1iIVTCiRdn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97341},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"781be9db938f1df5b3fe6ca62458718d5890421d","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run test && bun run build"},"_npmUser":{"name":"inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"lodash-es":"^4.17.21","@inixiative/json-rules":"^2.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","lefthook":"^2.1.2","@types/bun":"^1.3.10","typescript":"^5.0.0","@biomejs/biome":"^2.4.6","@types/lodash-es":"^4.17.12"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.0.3_1782740232969_0.9952559754625039","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@inixiative/transitions","version":"0.1.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.1.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"bb660874925e5fb48385ecd8644a4e9018081f95","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.1.0.tgz","fileCount":9,"integrity":"sha512-V74Ud4s4AEmomI/q0E64zWhAmMrCtbj2CmBQ8E7g5c9wWaAZgbo2EQSupoqmnaov7QEVk3UYYgAUxmzOgSq04Q==","signatures":[{"sig":"MEYCIQCwj1J0qZMZBywMFveqeA0zN7MAsa6J5qOMaxW476dp/QIhAKoNoJIUGmL0ZR0ci0r8BrG2BDt1HZsOiJ7p/7vAw9JV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94645},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"414c28269985c81e166271de61abcee67c954786","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^2.13.0","@inixiative/permissions":"^0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.14","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.3.14","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.2.1"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.1.0_1783046293510_0.6438908976833209","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@inixiative/transitions","version":"0.1.1","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.1.1","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"26044dc1f786bc84578cefbb3807419df16b259f","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.1.1.tgz","fileCount":9,"integrity":"sha512-O9NRTbAZWf71wc+/FKcgoCS2pOXua/eoEGzWG5+mmj3P6taMw39+PEmf5NlJyQIhEp0Kx8w2+gJT5BhpvppSwA==","signatures":[{"sig":"MEUCIQC7R79akbqZ2wC+hNIyRv8+bEqcz/v3S0Jiftu1yaue8QIgEhD4lI7O3zNTjRVzpVo5LR5b30IlrlmNDN/lU3nGiYo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD5XhlWR95mcWT7BDAScg6v4Xl1c4InFzNWr/+yLNF1ZwIhAI0kDegxrBFgaaa89gtqveELqjhGIzDxwzj/pWw4/ftY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94645},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"ad4c0f59e0169ceab32c538d7bf1fbaecc6be696","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^2.26.0","@inixiative/permissions":"^0.3.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.2","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.2","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.46"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.1.1_1791329083102_0.4414566664181194","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@inixiative/transitions","version":"0.2.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.2.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"227fe868de90b9b193531024ed2bbcec0ae60e54","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.2.0.tgz","fileCount":9,"integrity":"sha512-BDEZbLucmxAT6K7onopygC2EOvolaghGgpLLi6jLZS9sSfKcEm616hYN66PlXDnW3Ut4U3XrEEeSFI8TzMZb3A==","signatures":[{"sig":"MEUCIQDHFFRtWxK10Iq0cFZF1aL1otIcJ9AhbgskVBEoqMYEPwIgbPZaOy7IrEN5jASvxuO6c5TrxOJz1M594Q/NzLzrVwI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCID6Cg0CilA8E4arURjbj5tjjlXN+gc3iI+Wt/fLsPy07AiEAwfmDeUR3iCd9MK/BudgnSmZ/yhpyV2Hk8Hxyq5RK3SY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":99834},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"be583e58aaf0837df928a0b51c7cff1cd0625f71","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"lefthook install","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^2.27.0","@inixiative/permissions":"^0.3.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.2","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.2","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.47"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.2.0_1791382570345_0.1886685345061161","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@inixiative/transitions","version":"0.3.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.3.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"5aa7f7517c8c259687b1a9bfc062c2b59a5d82fd","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.3.0.tgz","fileCount":9,"integrity":"sha512-HKytuLFqACnNf8CwzSZ3/0zSXpgALLgP7anlSFrersQy8uXXZYrHBzriBgcfbe2b1cYIVzhEuv6oxTHzeosYsA==","signatures":[{"sig":"MEYCIQCs/akEufu+Ml7ZkpVewPEuR0lkt2fJG0+twiRXho5/CgIhAJ0f7IeskZZ5CsCZuoT9A23zlMuHhLzfBkZ+SR3W+hJ2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC72Zgdrh2YTHHa8hIJ9D6hqX7yGAYh3Aca4JAfTi7MAgIgW+zJNuU57jIUlPnlaTxBpWlmC23JGg/YJAaXb2wO7Ag=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100301},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.0.0","@inixiative/permissions":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.2","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.2","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.51"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.3.0_1791416574855_0.19475905147811545","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@inixiative/transitions","version":"0.4.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.4.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"111a61f18ca9df6e3791c2ca101112c0e9ee3a53","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.4.0.tgz","fileCount":9,"integrity":"sha512-/u0+G4/Gt9FR40LJvP2CwvmhX4C7OjIhyuwjUgqQbVARd9fs+4XzBZuA2cVcdIzCJg06I5s7HD1FO243YLtZNQ==","signatures":[{"sig":"MEQCIDGUBhJrsvwWAC2rS0oEbn5edF5GZI9WcSZv71Zb95BSAiA45+/1x+3SX0YsjN+GloK4f91zA6F8BsvYctYqGjtVtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAzfDU+f+bIX5cEaLG0EDDYvzJ6mTkMRxwPU5aikOvbgAiANTNKXrabcw5ci09qZVhSHU5/WHIvK63agBNDHPRYq0A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100018},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4341da360c6b41eb9fefa23e98025d50b3c93438","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.4.0","@inixiative/permissions":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.2","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.2","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.61"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.4.0_1791457740796_0.7363789085903727","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@inixiative/transitions","version":"0.5.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.5.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"21bad6d019ef1b60c93e7746bfb512cf53cf612e","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.5.0.tgz","fileCount":9,"integrity":"sha512-/vX4LyCq+ochl4C0V5HyA6BdgLNIxjUjGwH2IRY07CxSluzw/BgOPL9lOsZ0Kh58nc0IFngrbYe/DbYiHcqusw==","signatures":[{"sig":"MEUCIQCB0HrTw1V6TNMObo6wn5YuT5RYd8+mRkiD2Ma+PJdRewIgK/EMEZVXtIISlTuR2Om2wxpCJ0PW3jEht8+MK9wX7k8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDOwOBSeqMoMQwCkDOt8kte012vOqbDD3C9eiOPGa8EpwIhAOtsEITmQZ80Q47weU9dCqi9kMxvtvwyiFSKmor4Gdu2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104868},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"5c6d4f17bd3baa3f86c524daf1db95f058c59b49","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.5.1","@inixiative/permissions":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.2","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.2","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.64"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.5.0_1791486923303_0.06103324157329415","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@inixiative/transitions","version":"0.6.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.6.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"89852ef04cc759ff3a0eb828751365d9c968115d","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.6.0.tgz","fileCount":9,"integrity":"sha512-YPu4PWphWPgSj1R+SESN47N1xfFQYaHJ4hKNJ9JD07vn4alvhiZ/oM01ygPIM+sd6Ql4EjrmPFpypguBE3R8+A==","signatures":[{"sig":"MEUCIEf2tyn4Nf057SuLy5I6vNX/i2pHOLiPzbD1K0OygH3IAiEA4eDPffrT7YVhLBkWF7691sqQIFR6D6qLdWQZKcvWrV4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDizq9ij1IyqVufsEMxAvCdzyqnu94veIBqCGLx4dgGbgIhAKUn1ARZovUTpF+NnS6gMW4czDNRYtEjBU1spoeukIEi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100823},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"48f8c4f4d9797e6fcdaf23ccb26efe7cd90b0f8e","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.12.2","@inixiative/permissions":"^0.12.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.136"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.6.0_1793231919922_0.9958668975388185","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@inixiative/transitions","version":"0.7.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.7.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"ece080a2c7e87fb847680a044eef8cfd6f768a08","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.7.0.tgz","fileCount":9,"integrity":"sha512-245nXJ/6dUJcxin2OvwOwq5b7hTjk62N47I397evasV+mPFxHkB7sVXAet+/uqG4a8nIm9YHZxTbI79WYnz10A==","signatures":[{"sig":"MEYCIQD1lRJ51PuhtU4YAE0G0U5gmb6+ujyjkM8wvYjCRIO/3QIhAPCqdWHY0GFrNJeEaTdz3j5YV/iGuLtn9S0osr+IFB09","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHAFJ0iLb+OM/fAbJWGYAmjoqXlEmiI43LNwauKrDJQPAiEA/Ai1LxBE5l2sPxo2KGm3YxPaqYtyCpyoV3SSF8T/fWs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101839},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2ca925cae3ee1a906d878effadd0469cc51ee3ec","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.17.0","@inixiative/permissions":"^0.19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.191"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.7.0_1793736093792_0.5105235601909801","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"@inixiative/transitions","version":"0.7.1","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.7.1","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"ff480774d77edb85b879391f44e3db7a81575add","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.7.1.tgz","fileCount":9,"integrity":"sha512-s4sgZm+ke54Hpyf74DOeuQfnIKeAMeBhgAnPl+MsLpwW+iZ7X7zenojbQd81Yaj2EA/rbkU93cFRY+WF47mCgA==","signatures":[{"sig":"MEUCIQCKiqch6BM8dwAmOwna3SywLiBA4y4gCtz5Pep/qgZRGgIgcdiIr0SiosIH5BOj6MgBCGIPAMouiLtkqjAuAnS1OcI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFoRt5f3W6I/XG38gM0QrNt9fkBAISsQzC71vgJ0h57dAiBHg0QcjJ1YxmdEjHEMimFGSRqj5+e1p4NUmidLq9HsRg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101839},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"60783ac8654d395f508b26b6b7c3a7d67907c0aa","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.18.0","@inixiative/permissions":"^0.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.193"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.7.1_1793739495755_0.690472550051967","host":"s3://npm-registry-packages-npm-production"}},"0.7.2":{"name":"@inixiative/transitions","version":"0.7.2","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.7.2","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"22a84737c8fd4dc019ac5f0a5a6bb39f1863e074","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.7.2.tgz","fileCount":9,"integrity":"sha512-6rLp2mfzLBx21drS78apdkTIqV3osJXi4YEat597pkwgB2rCN7hBPmZ3hTbcTIM+6VMz5VbTM/5TTTIu8u+3jA==","signatures":[{"sig":"MEUCICB+tZiVqUQkpVPS70U53e4MBTju5RLWULdCCE0rSRf3AiEA5zqcdAaJdx+m/MX29C5E7tHZK7XSGVXiBwohfyAn/+I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCTjy8bAiT0+tsl3fJxXEO05fk8SmdwXEd1CqG4wAHenAIgSK8OW4hZXDcNtjqclAIkw+D4Ti9lrHa0j3TwrKIeKvg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101839},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"dc5c7d98692d1c87861e34b5ecc943b0fab8aed5","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"10.9.3","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^3.18.0","@inixiative/permissions":"^0.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.194"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.7.2_1793741206208_0.49587646690007425","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@inixiative/transitions","version":"0.8.0","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"author":{"name":"Aron Greenspan"},"license":"MIT","_id":"@inixiative/transitions@0.8.0","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"homepage":"https://github.com/inixiative/transitions#readme","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"5e75daa02bb8035461181d39aa40ace0e0d66bb0","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.8.0.tgz","fileCount":9,"integrity":"sha512-ouVBXmWj72GyVOF4g/KD5Cx3FOkQ111l4C/Rj4WgBd0rQWVOWW143Gwzzjf9hHqnOYfssrhEMErHDSoYIvN1UA==","signatures":[{"sig":"MEUCIQCsuve2enya9YNwJw5HUUmv17kR/c5Fk3tt/M4iUm8N+wIgc6anW04jl/EhcwntrS4rE3hoU4GnQQ2re5fHbccZS2U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDBM6MNf5HIOcXrdgR+mQUgRnYBwPm5XJuASJFs87cd1AIhAPm2KukF3goPfOtKE9IrrThrQOW51ggZ/z6CP5kQIKWL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101933},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a0d977976f2c858e79b99bec8540ea4a0fd09cb5","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"bun run typecheck && bun run lint && bun run test","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then lefthook install; fi","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^4.2.0","@inixiative/permissions":"^0.24.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.227"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/transitions_0.8.0_1795051425989_0.5601776015929141","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"_id":"@inixiative/transitions@0.9.0","bugs":{"url":"https://github.com/inixiative/transitions/issues"},"dist":{"shasum":"972ee3fd720c6c4b28718aa11536674c000747e1","tarball":"https://registry.npmjs.org/@inixiative/transitions/-/transitions-0.9.0.tgz","fileCount":9,"integrity":"sha512-es7kUsaXsEPYHwTOLLG8ffct5M+UB3+EYT7yErjG8JYDEGGeAwEZZLjO9NU+ninZhQp2TTx9AgADHiSPmR8AFg==","signatures":[{"sig":"MEYCIQD2c4nnHo3utGzRlwD4UuKYFjyxAa6JK4rtbsut3BymmgIhAIkPIfr2V4zSpwkpMY5YHAnw4CzGVELQoMk/yP/1lvcn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDFaD4ZsLHEWg8Zr0htUORRSVaV49VyfYPuxd9kfne+QAiBwms/f/qx2uqKXHus0thM6J0axSkQwkPFOCEfnObQ3Yg=="}],"unpackedSize":104270},"main":"./dist/index.cjs","name":"@inixiative/transitions","type":"module","types":"./dist/index.d.ts","author":{"name":"Aron Greenspan"},"module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"760756682548588b5a119fc28fd2ae4cd4d1a552","license":"MIT","scripts":{"lint":"biome check .","test":"bun test","build":"tsup","check":"inixiative-config bounded -- bun run check:all","format":"biome format --write .","prepare":"if git rev-parse --git-dir >/dev/null 2>&1; then root=\"$(dirname \"$(git rev-parse --path-format=absolute --git-common-dir)\")\"; if [ -x \"$root/node_modules/.bin/lefthook\" ]; then (cd \"$root\" && ./node_modules/.bin/lefthook install); fi; fi","check:all":"bun run typecheck && bun run lint && bun run test","typecheck":"tsc --noEmit","prepublishOnly":"bun run check && bun run build"},"version":"0.9.0","_npmUser":{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"},"homepage":"https://github.com/inixiative/transitions#readme","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"_npmVersion":"11.11.0","description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","directories":{},"maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"_nodeVersion":"22.12.0","dependencies":{"zod":"^4.4.3","lodash-es":"^4.18.1","@inixiative/json-rules":"^4.6.0","@inixiative/permissions":"^0.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"tsup":"8.5.1","lefthook":"2.1.9","@types/bun":"1.4.4","typescript":"6.0.3","@biomejs/biome":"2.5.2","@types/lodash-es":"^4.17.12","@inixiative/config":"^0.5.243"},"peerDependencies":{"typescript":">=6.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/transitions_0.9.0_1795371022486_0.7675551012840154"}}},"time":{"created":"2026-06-23T17:15:22.897Z","modified":"2026-11-22T18:10:22.766Z","0.0.1":"2026-06-23T17:15:23.148Z","0.0.2":"2026-06-23T18:46:23.287Z","0.0.3":"2026-06-29T13:37:13.122Z","0.1.0":"2026-07-03T02:38:13.649Z","0.1.1":"2026-10-06T23:24:43.188Z","0.2.0":"2026-10-07T14:16:10.435Z","0.3.0":"2026-10-07T23:42:54.945Z","0.4.0":"2026-10-08T11:09:00.950Z","0.5.0":"2026-10-08T19:15:23.410Z","0.6.0":"2026-10-28T23:58:40.026Z","0.7.0":"2026-11-03T20:01:33.891Z","0.7.1":"2026-11-03T20:58:15.845Z","0.7.2":"2026-11-03T21:26:46.301Z","0.8.0":"2026-11-19T01:23:46.158Z","0.9.0":"2026-11-22T18:10:22.581Z"},"bugs":{"url":"https://github.com/inixiative/transitions/issues"},"author":{"name":"Aron Greenspan"},"license":"MIT","homepage":"https://github.com/inixiative/transitions#readme","keywords":["transition","state","lifecycle","guard","json-rules","rebac","typescript"],"repository":{"url":"git+https://github.com/inixiative/transitions.git","type":"git"},"description":"Declarative, serializable transition guard + affordance layer on top of @inixiative/json-rules","maintainers":[{"name":"aron.inixiative","email":"aron.greenspan@inixiative.com"}],"readme":"# @inixiative/transitions\n\n> One of the [inixiative](https://www.inixiative.com) building blocks. Stop rediscovering what you need to build. See [all the projects](https://github.com/inixiative).\n\nA small, **stateless** primitive on top of [`@inixiative/json-rules`](https://github.com/inixiative/json-rules)\nthat answers two questions about an entity's lifecycle, declaratively:\n\n- **\"Can this change happen?\"** `checkTransition` guards a proposed update.\n- **\"What changes can happen?\"** `available` lists the actions open to one record, and `eligible`\n  compiles the same rules through `toPrisma` into a query for every record an action is open to.\n\nIt is **not** a state machine (no statecharts/actors/hierarchy), does **not** own state, and does\n**not** execute the change or run side effects. It is a guard + affordance layer. A transition is\n**pure data**, so a tenant's lifecycle can be stored in the database and edited in a UI at runtime,\nwith no deploy to change it. Because one rule set answers both the single-record check and the\nset query, the set query never returns a record the check would refuse; where a rule can't compile\nto Prisma, `eligible` throws.\n\n> Full design: [`docs/FEAT-018-transitions.md`](./docs/FEAT-018-transitions.md).\n\n## Model\n\n```\nresource → action → Action { paths: Transition[], label? }\n                             Transition { from: Side, to: Side & { merge? } }\n                             Side       { predicate, permission?, requires? }\n```\n\nA `resource` key is map-qualified (`map:Model`, e.g. `db:Inquiry`), the same convention\n`@inixiative/permissions` uses, so a transition's `permission` can delegate into the rebac schema.\n\nA `Transition` is one atomic `from → to` edge. An **Action** (a named verb) is the OR of its edges:\ndisjunction lives at the action level, never inside a `Transition`, so the kernel stays atomic and\nserializable.\n\nThe `from`/`to` asymmetry matters and applies to **both** `predicate` (legality) and\n`permission` (authz): `from.*` is evaluated against the **current** record, `to.*` against the\n**resulting (merged)** record. Permission only ever lives on a side: every authz check reads a\nconcrete record, so there is no record-free action-level permission.\n\n## Check\n\n```ts\nimport { checkTransition } from '@inixiative/transitions';\n\nconst rules = {\n  'db:Inquiry': {\n    approve: {\n      paths: [\n        {\n          from: { predicate: { field: 'status', operator: 'equals', value: 'pending' } },\n          to: { predicate: { field: 'status', operator: 'equals', value: 'approved' } },\n        },\n      ],\n    },\n  },\n};\n\ncheckTransition(rules, 'db:Inquiry', 'approve', { status: 'pending' }, { status: 'approved' });\n// → true\n\ncheckTransition(rules, 'db:Inquiry', 'approve', { status: 'approved' }, { status: 'approved' });\n// → { paths: [{ from: { predicate: 'status must equal \"pending\"' } }] }\n```\n\n`checkTransition(rules, resource, action, record, changes, { actor, authorize })` returns **`true`** when\nallowed, else a structured **`Reason`**, never a bare bool:\n\n```ts\ntype SideReason = { predicate?: string; permission?: string }; // why one side failed\ntype PathReason = { from?: SideReason; to?: SideReason };       // why one candidate path failed\ntype Reason = { paths: PathReason[] };                          // one entry per path tried\n```\n\nEach side reports its `predicate` (legality) and `permission` (authz) failures independently, and\n`from`/`to` are kept separate, so the caller sees every failure, not only the first. To\nmap to HTTP: a path that fails purely on `permission` is a 403; any `predicate` failure is a 409.\n`describe(reason)` builds a human-readable message.\n\n`checkPath(transition, record, changes, options)` is the single-edge kernel underneath, returning\n`true | PathReason`; `checkTransition` walks an action's paths with it and returns the first `true`,\nelse every path's `PathReason`.\n\n## Permissions are injected (the seam)\n\nThe kernel never imports an authorization library. Per-side `permission` is a serializable\n`ActionRule` re-exported straight from [`@inixiative/permissions`](https://github.com/inixiative/permissions)\n(`string` delegation, `{ rel, action }`, abac `{ rule }` (over the record and the rows the check is supplied, such as `actor:User`), `any`/`all`, boolean terminals\n`true`/`false`, `null`), and you inject an `authorize` callback to evaluate it:\n\n```ts\nimport { checkTransition, createAuthorize } from '@inixiative/transitions';\n\nconst authorize = createAuthorize({ schema: rebacSchema, map: schemaMap })('db:Inquiry');\ncheckTransition(rules, 'db:Inquiry', 'approve', record, changes, { actor, authorize });\n```\n\nEffective authz ANDs the two side rules, each against the record it reads:\n\n```\nfrom.permission   AND   to.permission\n(current record)        (merged record)\n```\n\nAbsent = open; `null` (or `false`) = terminal deny. Omit `authorize` to check legality only.\n\n### `createAuthorize`: the `@inixiative/permissions` adapter\n\nAuthorization is **not** reimplemented here. `createAuthorize` is a thin adapter that bridges\n`@inixiative/permissions`' production rebac `check` onto the `Authorize` seam:\n`createAuthorize(options)(resource)` returns an `Authorize` bound to a (map-qualified) `resource`.\npermissions owns the whole evaluation: `string` delegation with **cycle detection**, `rel` walks\nthrough the schema map, cross-map bridge walks, abac `{ rule }` over the record and its supplied rows,\nboolean terminals, `any`/`all`, and per-row `permissionRules` overrides. Acting as yourself is a\nwalk to your own entry (`{ rel: 'user', action }` on a row hydrated with its `user`); a row without\nthe relation loaded is denied. It speaks the same map-qualified\n`resource` keys as this package.\n\n```ts\nimport type { RebacSchema, SchemaMap } from '@inixiative/permissions';\nimport { createAuthorize } from '@inixiative/transitions';\n\n// who is acting, as this app holds it; `map.supplied` declares the `actor` models a rule may read\ntype Acting = { model: 'User' | 'Token'; record: { id: string } };\n\nconst schema: RebacSchema = { permissions: { 'db:Inquiry': { actions: { /* … */ } } } };\nconst authorize = createAuthorize<string, Acting>({\n  schema,\n  map,          // permissions' SchemaMap: { resources, fieldMap, polymorphism?, supplied? }\n  isSuperadmin, // optional; derived from the actor\n  // the rows each check is given: the kind that is acting, and its row under its own model\n  data: (_record, actor) => ({\n    'actor:Acting': [{ model: actor.model }],\n    [`actor:${actor.model}`]: [actor.record],\n  }),\n})('db:Inquiry');\ncheckTransition(rules, 'db:Inquiry', 'cancel', record, changes, {\n  actor: { model: 'User', record: user },\n  authorize,\n});\n```\n\n`options`: `schema` (permissions' `{ bridges?, permissions }`), `map` (permissions' `SchemaMap`: which\nmodel each resource is, its relations and foreign keys, and its supplied maps), optional\n`isSuperadmin`, and `data` (the rows each check is given: the supplied maps' rows and the far rows of\njoined bridges). The actor is the app's own value: this package never reads it, and a rule reads who\nis acting only from the rows `data` gives for it (`actor:User.id`), so with no `data` such a rule is\ndenied. `createAuthorize<R, A>` names the actor's type for `isSuperadmin` and `data`; the kernel does\nnot check that the `actor` a call passes is one. A cyclic permission graph\n(permissions throws on one) is caught and denied (fail closed), so the guard terminates\ncleanly.\n\n## Affordance + set query\n\n```ts\nimport { executePrismaPlan } from '@inixiative/json-rules';\nimport { available, eligible } from '@inixiative/transitions';\n\navailable(rules, 'db:Inquiry', record, { actor, authorize });\n// → ['approve', 'reject', 'cancel']   (from-side only — `to` needs proposed changes, so it defers to checkTransition)\n\nconst plan = eligible(rules, 'db:Inquiry', 'approve', { map, model: 'Inquiry' });\n// → { steps: [{ operation: 'where', where: { status: { equals: 'pending' } } }] }\nconst where = await executePrismaPlan(plan, prisma);\n// → { status: { equals: 'pending' } }   (Prisma where for \"every record eligible for approve\")\n```\n\n`eligible` returns json-rules' Prisma plan (`toPrisma`'s result). Run it with\n`executePrismaPlan(plan, prisma)`, which resolves the plan's field and step references, and use\nthe `where` it returns.\n\nA predicate evaluates with the same options json-rules' `check()` takes (`now`, `timeZone`,\n`weekStart`, `bindings`), passed beside `actor` / `authorize`. `checkTransition`,\n`checkPath` and `available` give them to both sides; `eligible` resolves the bindings into the\npredicate (and into a `{ bind }` `timeZone`) and compiles with `now`, so the set query selects\nexactly the records the single check accepts:\n\n```ts\nconst quietFor = { field: 'lastBreachedAt', dateOperator: 'before', bind: 'quietWindow' };\nconst options = { now, bindings: { quietWindow: { ago: { seconds: 1800 } } } };\n\ncheckTransition(rules, 'incident', 'autoResolve', incident, { status: 'resolved' }, options);\neligible(rules, 'incident', 'autoResolve', options);\n// → plan whose where is { AND: [{ status: … }, { lastBreachedAt: { lt: <now - window> } }] }\n```\n\nA guard can read its window off the record instead, with nothing to bind:\n\n```ts\n{ field: 'lastBreachedAt', dateOperator: 'before',\n  value: { ago: { seconds: { path: '$.platformAlertRule.autoResolveAfterSeconds' } } } }\n```\n\n`check()` evaluates it per record; `eligible` throws on it, since a Prisma `where` can't do\narithmetic on a column. It never returns the wrong set.\n\nA guard that compares a column with a column (`{ field: 'approvals', operator: 'lessThan', path:\n'required' }`) or counts a relation needs the schema to compile: pass toPrisma's `map` /\n`mapName` / `model`, or a `lens` (compiled narrowed by it, against its base lens). The plan then\nholds a field reference or groupBy steps, which `executePrismaPlan` resolves against the client:\n\n```ts\nconst plan = eligible(rules, 'db:Review', 'approve', { map, model: 'Review', now });\nconst where = await executePrismaPlan(plan, prisma);\n// → { approvals: { lt: prisma.review.fields.required } }\n```\n\nWithout the schema, a column comparison throws.\n\n## Merge strategies\n\n`to.merge` produces the resulting record. Keyword strategies are serializable; a callback is full-power\nbut not (`isSerializable(transition)` tells you which).\n\n- `spread` (default): shallow overwrite\n- `deepMerge`: recursive, arrays replaced\n- `{ kind: 'append', path }`: concat at a field path\n- `{ kind: 'appendUnique', path }`: concat + dedupe\n\n## Authoring validation\n\n`validateTransition(t, { lens?, requireSerializable? })` validates predicates (via json-rules\n`validateRule`, plus `validateRuleInLens` when a `lens` scopes referenceable fields; a path past a\nto-many relation is `not_in_lens`, read through an `arrayOperator` rule instead), merge\nstrategy, and permission shape (via `@inixiative/permissions`' `validateActionRule`: every `{ rule }` positive). Run it on\nsave before persisting a tenant config. It returns json-rules' `ValidationResult`,\n`{ ok, errors: { path, message, code }[] }`, and never throws, even on malformed input. json-rules'\nissues keep their codes; transitions adds `missing_side`, `missing_predicate`, `invalid_permission`,\n`invalid_requires`, `invalid_merge` and `unserializable_merge`.\n\n## Not built yet (designed in the plan)\n\n- **`requires` relation loader:** derive a Prisma `include` from a side's `requires`, auto-load, fail\n  loud on unloaded reads, respect tenancy. The kernel ignores `requires` (it's metadata).\n- **Permission-filtered `available()`** beyond the from-side static check.\n- **Lens-aware structural composition** check (does A's `to` lens line up with B's `from`).\n- **Non-goals:** statecharts, side effects / on-transition callbacks, a workflow engine, a config UI.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}