{"_id":"@cerbos/orm-prisma","_rev":"27-85e96f152b8396e34a70bdbc6c4600a4","name":"@cerbos/orm-prisma","dist-tags":{"latest":"6.0.2"},"versions":{"0.1.1":{"name":"@cerbos/orm-prisma","version":"0.1.1","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@0.1.1","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"7a81c8d07be5c14c489c56311e414482fece4161","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-0.1.1.tgz","fileCount":7,"integrity":"sha512-qj6slHkdmERR05pNx9T0a4UPmmCqCqLFifiysNsZeJwd6l0P2Rq7E4dPGsvkLHrxxYkcI5D/zOHyRy4MqtahFg==","signatures":[{"sig":"MEQCIBeo5F3wyTSikuZy6wyVWd92QKldWlFwYkr0VMdzntEIAiAITDigyUon1sSz/vCNzuydKhI6utf8THqb+JhkFsUmZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqbUIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXbw/+KEDUHDm0u6HQtx6IUr8PT+1JYo6XdFluFYuXguYxxdMwkP+h\r\n1KwgXV1hNrsuIyz7sIyGNAc7YDcpkNRhVytp4ASVVqvwtvB+TJoDuAa6fvt4\r\nNEIi28WWI+8c9PzqZKPQitjwekLhAfEldsKaPLn8I8hTDiQxeW/01p2sGRBx\r\nXOHKz/lC1oqBCpJpI7WaJmSYs1UCfiFhMRE910xqALUXZFggq7f1RogBY1KY\r\np61+2Razb/2hoRSdNmDSNzCuO6DsS6FG07O5Ltfx8FPGbZdKUtJHq44af856\r\niOmWa1eZjkuriM3KIUnGDjy8BSuQlfY1ErZuDzgYYsQHOsPcPzsm925UneJj\r\nD1o6HDFKOQxGkmSutldzbWRI4oRvInNZWNwlIkHpoKBjCZLzfHII5upJN8v7\r\n/kEiQ5xsc2zshoQLaxxxORSQp/v+FP4Xy+PmETFrBNZIzgsMh+oG6InTMuhh\r\n9hoEzNKtRIu8YDrzjxahcN9WCCRsnzGFbZa1jxDZ75PXQSN0vbsBOTBUDlVQ\r\nNSlRO+vQV0Jrce9+VhiIkKKX9bM4rLy6P834y9qiGxPOfuEYsYOmEwFlhVvr\r\nK3NmN55598Ji2r22CNQYZf7eAHC6q3areIzO0wyAtwCAKYsB1U3cC9RvmHJ0\r\nFkMKHbmh1dubgJpOTg954FOF/4TMm+83TAY=\r\n=eAzT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"e7988e6039c5d0d193f2c474dcd6fe147683fa04","private":false,"scripts":{"build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"8.11.0","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@cerbos/core":"^0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.4.0","typescript":"^4.5.4"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_0.1.1_1655289096177_0.39855441435956274","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@cerbos/orm-prisma","version":"0.1.2","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@0.1.2","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"de35eebcb1e69bd477fd42f3ce91ebb6aa88d98a","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-0.1.2.tgz","fileCount":11,"integrity":"sha512-A0vKkg866/rQVJhXDsxAbLbuK9fi2Wyi+/mbYG3TIows3eGs1JdHEqWppZi0DecXfU2OT+AIyJFPxkxDSU59LA==","signatures":[{"sig":"MEUCICxtTNg3xmQ541jid0t0/GzTT5cFofk6TcbyGSi10jp8AiEApUeCDxUKnv4uq2skQFnT75n62klFwSAj3zJa0EWlayI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGK4yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFGA//aw4U8RC7I74jgj8lX268VDs4x3OFyCUTNKut4evRUakL9Mcu\r\n7ph480+XIUvhBC8kqEeWIaMNHWcK7K/oa7uK4FV5f6BE8lWzB2rqP/LILML+\r\nkOI+TPFY7dTjR5IQK9Bi6b3OkXzzZgo/2X4tZ1U9cCw6QNnnTvzJPYSr2OpQ\r\ndcQo9O9voC5Fg1l8TfvKSaGuOyY8s5sSmJIiukm/yL5H0nlugIVnypXDerEI\r\neWLxMyv/lI/UdoGcJ3gJ6tClc9oyRjhreyD5hWLugxNWh1lPXtRAYQsFsnHi\r\nbF3jrtee36cjsTUOQhz4GTMpwwPsvL763PBuNxeGSK90inMZ6ZylYBDR93qs\r\n8IsNZxNyfXcTqUVjp25tQABqokg3Bf5WrYi6aTz53ovK/L/Czb8ivD2V0wAm\r\nYoap4HN1wF/nTqy39AEJm5QBGci2Wyr3T4TTdelh4C2QvWrdLb1JEjlwiE/w\r\nWE1pPczq/X7yDZpVXEVIxyoMR1jdAjCTDU24PmfgriiLPmDo8UqEh9P+89LO\r\n6pbSpx/EoqbAs+BTTXT9SSAUkM+4De+8IDB0PxA7u7YqfR30txKENeytbBTQ\r\nVOpaKSdhNVF+Maoxl9EQjS2mOvidhRke6KavPousGxrjcs37M0BJzBXH0Git\r\nxPejv6AtPMTZXBWbMzVqCvlqsENVXe1TPaU=\r\n=HEzS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"cb7b6b380f446a09efb7a1b52174335aef6fff8f","private":false,"scripts":{"test":"jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"8.11.0","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@cerbos/core":"^0.5.1"},"_hasShrinkwrap":false,"devDependencies":{"ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_0.1.2_1662561841866_0.27127648705558793","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@cerbos/orm-prisma","version":"0.1.4","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@0.1.4","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"08358f44909b48fee2e9457d42c4f9ff7fbaa151","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-0.1.4.tgz","fileCount":6,"integrity":"sha512-9DCNj2vJVdYhX73aWj/XGkUkae8uP+WV6+hc3ijm1X7LpAMemGvYKR2Zt+bww5/DUSc7Iu9XpgI672GUlc11Ww==","signatures":[{"sig":"MEQCIGQjRdojoCkz2u50cCjxT/qLND6lJjJkrLBHNtwUpbBEAiBwwUwkW2/e0aXEz660SAllX1iP9pi1buYIFBpu2diV/g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMX2BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOtRAAgcE7YtJOU7pGVzCnZSnzHErjkLyn3jAVHip/aDsfKTlIEhgA\r\nvqe8Y/pNKqJXjluI0qMghpiPjvVyhCiP1TJ1nwFdgXxhwZwWiRLkjj/SKDwm\r\nzPiPjIG3JpwHvKuU8x3ARFn60hd89bWfz4YEg8mR4qm10ceEDUpTJ8PQaGc0\r\niwDAOQFEpver4Ioe5OL3Dr4zbkm3C+BIVTh00DmOYEtfKrLFkGvdXbwajOpi\r\nnWJxe0LnNhuzqkqmBJHQQcUXrVxCMPzn09YyJfXeBe64VU2gEgvIHlMDIaU7\r\nIqvPosjVsLnOAT0BbtGRAxIgtPa/OStKAiinTrfSsQxmNS2F+h50xZ4/PuK7\r\n1Rubzea3xvyMOwUS8Vnn2XDZfddBbV4Skyk8RPp2x9N9OgezfH7ygOXotEVZ\r\nKoHq6cpBaeEY6o/a658ag2BgMm0azr690BZmGYKEn94iwlIB55bw8oCspieJ\r\nAaQCyrh6vS1zA1PERORV3gsglDC+/NINXZI3bXzdOKf2E/1KsC90jKGu4bQs\r\nPRurSmo0HA9/9KLlJLgaTEgTFR+EXGGayW/Vs0tFOcR1l97ItI6CGxDe01e/\r\nhLjZxIw23XR9ML0drsTnJmRNk6CQkEIuG3KSchc7dfU3i9Rxt9evZ2g+cHjV\r\nvOIe7yTUk08wRHRvLUPS8Mfwi5pg86giYRU=\r\n=2+1b\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"9b53d76c8c263af5a4d114eae5c4f47de3243f13","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"8.11.0","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@cerbos/core":"^0.5.1","@cerbos/grpc":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_0.1.4_1664187777577_0.6606238493008683","host":"s3://npm-registry-packages"}},"1.0.0-alpha.0":{"name":"@cerbos/orm-prisma","version":"1.0.0-alpha.0","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@1.0.0-alpha.0","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"095b83567bcf32323d43a41e9299900d8594b350","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-1.0.0-alpha.0.tgz","fileCount":6,"integrity":"sha512-SnIqBmKlP2f06Li/NrdHGos2HRjMj39uafD09EEvs4VO6Lg0qG9XrMFcMheG4i3jb2zxXNuThzOoqvbOmt9LrA==","signatures":[{"sig":"MEYCIQDDSwhDZFy7+OQFJS3F9xq2QLWw4AL4faQK6+oj5gnf9AIhAONPMbvKy0rsh51WRNp5+ClXqtoDolEfhkafkmOxMikG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMbUUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJqBAAglBhjx4u8u41CXdiYxY7/S99K+J0ZCzC41uuAQd3iSpWjqbE\r\n15lvMuDfkdZWvgvt606PY/kEPkDLxhZywwjrFEAr8JyB4JkC2fcd/DVFK8Kz\r\nE2OVRSpUSIGws49RZpc5I5iwHt4AqMx/ElmneDj9eZdvTonOFFmp92U9Y20e\r\nIf3qhH0vQ/xZNAa5l2Lkwv/Sx1zgag7wXxRTeL1jhlPG0daDZU3RGKuZ7QPI\r\nQxsyyNFGsE1KS+ceco7KHzkAqjhCBQFTpqFwSzlnHKQ2Blc1sPdilKBG+bku\r\nk2Og/L9dsShkn5t2wdwGpc4/1C0yj3NZXGZdcH3sJVLza/OO7FvWwHxdORms\r\nzqXfvUHdyTKMmstKC8FIRqDHWdBXPKsRr3rEKofKTADCnZ3tr7vmd8JsnXTr\r\nL35PBRea7jjRKrl3GTyV1L4dyHEqgvoEpVxgT0B8w7BcOIkKMqYBpDMeFG/D\r\nItDacKgP7NuFZUZo7Zn8AFUbmMtLF8A1Oe4t1kksxWdg2xaAxN9UpIq+FON7\r\nOxphBbI+TCwWMM6xpoQqqBmRC66XUHItlyH1mMKXXgcuB0bsDYHPOJorLqnw\r\nUc8Z5NV0zE7fztegi86xcJrm6pUvVs0PLNoaQBKa2DRlWMMUlxKAs+ahhuQy\r\nN/4MlC7FmfoMFrYAd0TBX4g/CfN/ewNLHNE=\r\n=zzbs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"6329a135d641db86e738612773c78e9fd5feba5c","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"8.11.0","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@cerbos/core":"^0.5.1","@cerbos/grpc":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_1.0.0-alpha.0_1664202004346_0.18138505931988136","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@cerbos/orm-prisma","version":"1.0.0","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@1.0.0","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"eccc75a88e5e1c7e8f09b9e99d475a91aad7c6a7","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-1.0.0.tgz","fileCount":6,"integrity":"sha512-jA7jz3s9tOWKpuK3zAilvbjzCsiNcx4+ui2yTVLMCxwKdjE5LcE2gPrBGqV8RTLSUyTpL9hyDC3Aa/XPILSr0w==","signatures":[{"sig":"MEYCIQDaSkXB0QV2NqZzo7wVfRJQ17ZyJ9e/P155vlJrj33J1gIhAOxa6UWWX69lpZOifz9PJOV6c3XrHgYyYOMhpRB3OEc+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM3ZZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYPA/+IFMyQ0oMGsqRdW+0m/gqHh018+wQC64MBKxIVZhreue+Ha47\r\nWmhOwb2z534amCfWWUY6/Uqvjl7bSdvOyj98LCeti8iMVhnb0wIspWoHIxJH\r\nRs2nQiVc5pThPcemg5o3bcqyRASGj21a5FMiVwEWmEXjn0/VsX4A98o/MISK\r\nLLLy9mj8Krwdvs7rXgQaZtqGTnmrOLCMVa4lrpV3ZV0x00K3uf/kXbw4hWvP\r\nT1v6Ocp/DcOLHch1UfOWsscdBuFQOjrOq8HuCwsZ3oJCBZZX0mZNCjZsG+AL\r\nkvI/JOKffl751NoLEQJyAqfw3+g7wQ8usWBqzJ1F37tGaQvgYnYOSwzYGpvW\r\nNcS/Kd5Rfua38uRPBIO+HapHAZUVtMq1SyFCwBG16CKACCrxsP6dSesE6Rz/\r\nt8yIwPmFBVgSyHrAEJpheJLlaNWqnLvojpIv/St+sFt6DYZS0lcyyrG7Q9En\r\nTFCECxC5C3QQFp5V/t/W1GINEtYLyF9tNDnnmLElag1alQdY/SlJhySUTEHq\r\nBUw7FmbueZ5OdLt6w7ycpuFoIObPHXsLowJZofQIzX9jNcjBoAJdkRx+Sbgm\r\nnVE1FucNwws3yq1wIy7IBhy9TTtWBWYi8e4ElLSH5CivVG+LAWLlTNgw0q/l\r\nq6BBsg+syJdCkJFsW+/85gttzd/NM4noGlw=\r\n=QqLz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"21de38586a17da0df8cd593d8867804e463d9c44","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"8.11.0","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.3.0","dependencies":{"@cerbos/core":"^0.5.1","@cerbos/grpc":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_1.0.0_1664317017593_0.4458065879301598","host":"s3://npm-registry-packages"}},"1.1.0-alpha.1":{"name":"@cerbos/orm-prisma","version":"1.1.0-alpha.1","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@1.1.0-alpha.1","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"f41e7c4e291b73efab585c3fbc542cb7682f13ca","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-1.1.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-XvHVulHOXcd075fKhmUJY/9V7qDTRKwQh9o4KgC/HxpmVYG9XobpeGnUzr50t5rQqES4f1sD+Dx0Qn3VZZAcrQ==","signatures":[{"sig":"MEUCIGIvb8vueEdi5b/kxLa8OkCoWoQayZLKuZ4wynxKPOFHAiEAllf6F2+ms89Yq4+j/Kqdzmr9bp09irClwtVyVHFKBwk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17314},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"b2280292cd4a642fd6b8ed6ea2a4acafdd90dd56","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"9.6.6","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@cerbos/core":"^0.5.1","@cerbos/grpc":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_1.1.0-alpha.1_1687984494578_0.2510566709451769","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@cerbos/orm-prisma","version":"1.1.0","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@1.1.0","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"f30baabc1debea9e9bf0e2320a5450ef8fb99ba7","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-1.1.0.tgz","fileCount":6,"integrity":"sha512-xw++z96cz11Re6EbMJ8CcACDVi8RF+lk3vDV5NsgD78jHJDlSfVGd6SsP56x/N0CCKHdyTEjPIwhZhwLe/3hGQ==","signatures":[{"sig":"MEQCIH1NluW+FmbqQPQEBNDHkHevF7naQEZqJMUvYjH+j0D1AiB3hVr6+///UkZ3DVV6kcB1LAC9vwheYonPL6EbdFKjlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17306},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"08babae51df42182ef96133d01e59db26807c809","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"9.6.6","description":"An adapater library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This ","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@cerbos/core":"^0.5.1","@cerbos/grpc":"^0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^28.0.8","ts-node":"^10.4.0","typescript":"^4.5.4","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_1.1.0_1689259606150_0.6925554181598887","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@cerbos/orm-prisma","version":"1.1.1","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@1.1.1","maintainers":[{"name":"ahaines","email":"andrew@haines.org.nz"},{"name":"alexolivier","email":"alex@alexolivier.me"}],"homepage":"https://cerbos.dev","dist":{"shasum":"3db3a41cced3d5f45c1e89bf7dbab074fb77d328","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-1.1.1.tgz","fileCount":6,"integrity":"sha512-Tbmhpc734ZJsEcMgPcnX4Gs/7sMQvv1q/8dYFl9xhPufq+asMjTXOy6NUA/SoGsLnQtx5SLtw+sjPn1IDHsEow==","signatures":[{"sig":"MEUCIQCEs0i/GHFpCpePt1ajysR8yJztLzQaGwm2baxwWHffsQIgYvtFXzZQb3uL0jwbSaUA81IVC6iP/tgvvQGezCjlyN4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17314},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"1e7073ed5b2cb952ccbcad6410b2962b0826aca3","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"9.6.6","description":"An adapter library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This i","directories":{},"_nodeVersion":"18.16.0","dependencies":{"@cerbos/core":"^0.12.0","@cerbos/grpc":"^0.12.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^4.3.1","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^29.0.3","@types/node":"^18.7.21","@prisma/client":"^4.3.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_1.1.1_1689759303372_0.651566352456477","host":"s3://npm-registry-packages"}},"2.0.0-alpha.1":{"name":"@cerbos/orm-prisma","version":"2.0.0-alpha.1","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@2.0.0-alpha.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","dist":{"shasum":"598583d47dcc047c0059d093061e31a127e35f42","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-2.0.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-5JsIMOSA1aLWbh9fnS40kEbmt5Gm8tjqPHxm37SfDcRgs7pLqzKN/Ddp5Lo7kh7PNSx1uPi3vCkVI0C3a30poQ==","signatures":[{"sig":"MEUCIH+2+vQHYmvdgVHAuSCwLTTXd6lqSkPiDV9YlysWQHzvAiEA3yRJdKzb0gLtUxNwx5/NvyEEyIc688w0gZf0UASvgT8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40539},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"0b26c34eec75e4ea5255a68f15595e47063e5ae9","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"10.9.0","description":"An adapter library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This i","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@cerbos/core":"^0.21.0","@cerbos/grpc":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^6.0.0","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^29.0.3","@types/node":"^22.0.0","@prisma/client":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_2.0.0-alpha.1_1740141848274_0.01011168136258167","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-alpha.2":{"name":"@cerbos/orm-prisma","version":"2.0.0-alpha.2","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@2.0.0-alpha.2","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","dist":{"shasum":"599eadeef44c8dd01ec7379b12ad9e7184ef0ebd","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-2.0.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-h0Y612G3jyZJQ1CD5PO1JRbxe3ziGraaUXmJkAaGti0E/XQP2Lxlm5g2rhYNvISa11JuuScJUpgGzwWBZvCulQ==","signatures":[{"sig":"MEYCIQChfMvKyxopeNB+bYOVu/a+tsRXeudALG8sqcxvF4e9qgIhAIfs885dUyomIe2cw580UeuCszuVCn6wh2Hf/islM2X2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57243},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"7ef2f02a248a1f1801789c500121eceeb87629ce","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"10.9.0","description":"An adapter library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where class object. This i","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@cerbos/core":"^0.21.0","@cerbos/grpc":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^6.4.1","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^29.0.3","@types/node":"^22.0.0","@prisma/client":"^6.4.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_2.0.0-alpha.2_1740250378032_0.8793073074830233","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@cerbos/orm-prisma","version":"2.0.0","author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@2.0.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","dist":{"shasum":"e714d468a69dccd50b121ca8b6aec4dae68c52ca","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-2.0.0.tgz","fileCount":6,"integrity":"sha512-MpCBgflXQmgQ1ivfvM+hyO6kdH0QO/wNSnn3AIFoOtclE7qwwpQh8hEpvex9yxlit8vTGR234Kag0UJ1V9XksQ==","signatures":[{"sig":"MEUCIA9TvDp+Xj7+6RtSVE7SmYzYUk/8zfBfqrYv5ifTonxlAiEAqzQP51J9K0Z3G+4h/TS1VN8V5fCHQwFeXLaGsdkTIeQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60514},"main":"./lib/cjs/index.js","types":"./lib/cjs/index.d.ts","module":"./lib/esm/index.js","gitHead":"ce455799d5dd677bb50a5fc3ff2392ab7749c9eb","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc -p tsconfig.json && tsc -p tsconfig-cjs.json","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"10.9.0","description":"An adapter library that takes a [Cerbos](https://cerbos.dev) Query Plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)) response and converts it into a [Prisma](https://prisma.io) where clause object. This ","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@cerbos/core":"^0.21.0","@cerbos/grpc":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^6.4.1","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^29.0.3","@types/node":"^22.0.0","expect-type":"^1.1.0","@prisma/client":"^6.4.1"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_2.0.0_1740474519849_0.5212017193421989","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@cerbos/orm-prisma","version":"2.0.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"name":"Cerbos"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@2.0.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","dist":{"shasum":"177abd3236b45104d6d2680f4af442a185b51cfb","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-2.0.1.tgz","fileCount":8,"integrity":"sha512-GSG2ATnVpOz/6OYULOe7S+GcgCGzqYgRxanXHp5Hm2hrY40z5r4XWYY6VQNAee0XtzTiKSpkVb2+txte4aQ9vg==","signatures":[{"sig":"MEUCIQDvUfgUa205RZzVXZ2GQrduboTuV+L/s6r4ckjlOlMWhAIgE5u0bsoBM0+Gm4ik3xkZEFc0icdCOVQvM9zDaU9wVJs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94592},"main":"./lib/cjs/index.js","types":"./lib/types/index.d.ts","module":"./lib/esm/index.js","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/esm/index.js","require":"./lib/cjs/index.js"}},"gitHead":"9713b50b4b3934021c8ff8624842f6c38fd01f6f","private":false,"scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"npm run clean && npm run build:types && npm run build:cjs && npm run build:esm","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","build:cjs":"tsc -p tsconfig.cjs.json","build:esm":"tsc -p tsconfig.esm.json","build:types":"tsc -p tsconfig.types.json","prepublishOnly":"npm test"},"_npmUser":{"name":"alexolivier","email":"alex@alexolivier.me"},"_npmVersion":"10.9.0","description":"Prisma adapter for Cerbos query plans","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@cerbos/core":"^0.21.0","@cerbos/grpc":"^0.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^6.4.1","rimraf":"^5.0.0","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^29.0.3","@types/node":"^22.0.0","expect-type":"^1.1.0","@prisma/client":"^6.4.1"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_2.0.1_1740477786807_0.8222077748820147","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"name":"@cerbos/orm-prisma","version":"3.0.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.0.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"674501e8457889a83554364ac598c778b263791c","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.0.1.tgz","fileCount":12,"integrity":"sha512-XY6asy7Jdd3ju4wnvGkXeibSuFsx+3mWNT6ae5Y6Ad2szTo2raw5ADD+hMqMweJpN8Z1EN2ZmJ1NWTYWvzX6Yg==","signatures":[{"sig":"MEUCIEGFnOziGAZxs3JnqW6Pvfdo6sr5ZOQbkww9NW0MiJucAiEA86+Ez6yn1gvLlFnF1c43JK9un4sNxvvr/MmPx35yMjQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":497321},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"b3d2a75be887b47059680eb59ce3d4ce6f0f126f","scripts":{"test":"npx prisma db push --force-reset && cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","version":"git add -A src","prepublishOnly":"npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.6.2","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.11.1","dependencies":{"tslib":"^2.8.1","@cerbos/core":"^0.25.0","@cerbos/grpc":"^0.23.0","@tsconfig/node20":"^20.1.7","@tsconfig/strictest":"^2.0.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^6.4.1","rimraf":"^6.0.0","ts-jest":"^29.0.0","ts-node":"^10.4.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@prisma/client":"^6.4.1"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.0.1_1763401330346_0.19095617405428622","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"@cerbos/orm-prisma","version":"3.1.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.1.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"bdfcd1ce0feba32ad2f24d966113d763e6d7d84d","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.1.0.tgz","fileCount":33,"integrity":"sha512-GWHRJO57HcUYLpM8ZmDQC6+Vv2Gj4brlk6CoxhJdhXh6xsed8f2eS5cM58d0GF20w18iQVciLU94QJ8YPPPp2w==","signatures":[{"sig":"MEUCIFyVXOCfHnC/5ISvciUNWSO6wSTBhOGwUJbH1B1A87INAiEAkwEVMDVCfuWhs8fzq2Pos2S4Vi1Cx6P+hUaBg256Yx0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1396705},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"6a3587a43c747266c2a797bc1937b8afdf056a2e","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","version":"git add -A src","prepublishOnly":"npm test","prisma:generate":"bash scripts/generate-clients.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.7.0","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.12.0","dependencies":{"@cerbos/core":"^0.26.0","@cerbos/grpc":"^0.23.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.2.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.2.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.2.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.1.0_1768558479984_0.6637581559578782","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"@cerbos/orm-prisma","version":"3.1.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.1.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"db7c41b0a223ffdb5033107bc201f06514514e38","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.1.1.tgz","fileCount":33,"integrity":"sha512-nR1wdtVa14W+kGIjKV9Jhpfe+eWd9QjvqNiSr6GCbEzqneTdSzvb5lUlnhgsP3SRhe8FRklG79hArtzo1PDObg==","signatures":[{"sig":"MEQCIE/YzfH6BwcOwQYwvHNEdDDqLaAev4n/+yRU/Ecp5BFsAiBd4MFh5bU+Az5eWNyIDXErLGaOaqqPo+oG+OHQTC8UuQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1423430},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"d9df1f0cb2bbe77ab3173ecc38731462a2593941","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","version":"git add -A src","prisma:generate":"bash scripts/generate-clients.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.8.0","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@cerbos/core":"^0.27.0","@cerbos/grpc":"^0.24.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.2.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.2.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.2.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.1.1_1770036750312_0.6396270516782774","host":"s3://npm-registry-packages-npm-production"}},"3.2.0":{"name":"@cerbos/orm-prisma","version":"3.2.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.2.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"f704d02adf792bae36dc3d53f5f28aef4ec5dc3a","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.2.0.tgz","fileCount":33,"integrity":"sha512-sB8XjR70HsbDfwZ0sQsTknUGdbmmsVm/Jk8tXk9Z5SlwTdzmmIVz6E1luoEH9aAIqOKdMFTu8SPTGmfSvlitRw==","signatures":[{"sig":"MEUCIQCI36UXlslPOTJcK05Lc0uBk4fGXjyPqzOCCyXgzvkPUwIgGjAE2ChgIwblLjtSPS7SK1BVZfUHpMln/qvMjpmfRYE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1423430},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"5490cc5c17219802a40706a85ea64e07ba83d5ee","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","version":"git add -A src","prisma:generate":"bash scripts/generate-clients.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.8.0","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@cerbos/core":"^0.27.0","@cerbos/grpc":"^0.24.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.2.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.2.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.2.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.2.0_1770036774891_0.9841617491715637","host":"s3://npm-registry-packages-npm-production"}},"3.2.1":{"name":"@cerbos/orm-prisma","version":"3.2.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.2.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"83b45428bbc6dd3d7f6d1d5da1e565564ab778b9","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.2.1.tgz","fileCount":33,"integrity":"sha512-T4HSS5g1Lwb25o6y1u9kFOuigCP8JODhNZU2MrQ/lZSJeTl6yYAmFX0dLEbF9TBJc+Q6mn4E0bm4M3x7PmO14Q==","signatures":[{"sig":"MEQCIHkjrzCarEEkqVgKyZ4kX/8TZjwuTPQKvcT5r2BIr2u6AiACsoWKyvyks0Af1Z/NtJLpZhMTu9xJpztfDpDATs3PWw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1422607},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"d439492e7b1e2520beb8348d561701c8e24b7c8c","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","version":"git add -A src","prisma:generate":"bash scripts/generate-clients.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.8.0","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@cerbos/core":"^0.27.0","@cerbos/grpc":"^0.24.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.2.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.2.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.2.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.2.1_1770052934845_0.7958060452153286","host":"s3://npm-registry-packages-npm-production"}},"3.3.0":{"name":"@cerbos/orm-prisma","version":"3.3.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@3.3.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"e9af516cf2bc65666742b6e4bb07ae54336db803","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-3.3.0.tgz","fileCount":33,"integrity":"sha512-uW6wWkgx7Td+MhinDZDyMIU7WFUGx2qNTdVgSywCUz6/3F0Jv9X17PHQZBxPgRDNJ6IOrVJvtV/uAINaa+K+hA==","signatures":[{"sig":"MEUCIGFYwE5JgzfKU1tCoiVl2EV+fJTzjsC6yEXCIuXLgHsqAiEAzKyvUKT2mgsO0b1JCWDfrtB6RPMrwZVooe1IOOPk81Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@3.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1511147},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"80b999584d8c41cfa2d898910f40128c6a405408","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/**.test.ts","version":"git add -A src","prisma:generate":"bash scripts/generate-clients.sh"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"hono":"^4.12.8","effect":"^3.20.0","lodash":"^4.17.23","minimatch":"^10.0.0","@hono/node-server":"^1.19.10"},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"11.12.0","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@cerbos/core":"^0.28.0","@cerbos/grpc":"^0.25.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_3.3.0_1774539109671_0.6662395903543472","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@cerbos/orm-prisma","version":"4.0.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@4.0.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"0fa192ae1d34b4564f77615c47859fa15322608e","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-4.0.0.tgz","fileCount":56,"integrity":"sha512-SQEQ0VpsPEOxEnk2BFSZv/SvYdpytaJvEAXrfyRJhNEaBxSDXuREx6dBhwodaraWFdSimGIeRedk9d+YjN16RQ==","signatures":[{"sig":"MEYCIQDY7sQIitYvSWAfxJomNeElBLSpkbAPih/VKcnPRmjAeQIhAPPH1EzExYJLxkDZ9qJ3Hq4LYG3Ibb7bOqBPn6iXXNJQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2647394},"main":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"ce12efd072208614fda8242b2a1aba748d987b45","scripts":{"test":"npm run test:v7","build":"tsc --build","clean":"rimraf lib","cerbos":"cerbos server --config=./cerbos-config.yaml","prepare":"npm run build","test:v6":"node node_modules/prisma-v6/build/index.js db push --force-reset --skip-generate --schema=prisma/schema.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/index.test.ts","test:v7":"node node_modules/prisma/build/index.js db push --force-reset && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../policies --set=telemetry.disabled=true -- jest src/index.test.ts","version":"git add -A src","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node node_modules/prisma-v6/build/index.js db push --force-reset --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node node_modules/prisma/build/index.js db push --force-reset --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"12.0.2","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@cerbos/core":"^0.32.0","@cerbos/grpc":"^0.28.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@tsconfig/strictest":"^2.0.8","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_4.0.0_1785773076181_0.5031921980661942","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@cerbos/orm-prisma","version":"4.1.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@4.1.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"47e87a2587d5ca4c0879c4938a7531f000f1abc8","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-4.1.0.tgz","fileCount":59,"integrity":"sha512-oIG9l+VIEj0LwBmmDa3o7oISfvDrF12pje/g+5yzRMkUR0b5NfPnVV0BQFy/8RT2TEN3zhrl5sde66HZ7CKrXg==","signatures":[{"sig":"MEUCIQCHvzF38oOEz9rg5sCMJZq+yMzf9C5Of2LC9xzJo+DxvQIgWUWsQZW4H+uegcHUYZ6l1M8vx6GnWRMtO3R2FGIWgVk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@4.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2734790},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a PDP and a store.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"1091fccf06eee77c4628d0562e32ca9cf5eaebf4","scripts":{"test":"jest","build":"tsc --build","clean":"rimraf lib","prepare":"npm run build","version":"git add -A src","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node node_modules/prisma-v6/build/index.js db push --force-reset --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node node_modules/prisma/build/index.js db push --force-reset --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 cerbos run --log-level=error --set=storage.disk.directory=../conformance/policies --set=telemetry.disabled=true -- jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"packages/prisma"},"_npmVersion":"12.0.2","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@cerbos/core":"^0.33.0","@cerbos/grpc":"^0.29.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","rimraf":"^6.0.0","ts-jest":"^29.4.6","ts-node":"^10.4.0","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_4.1.0_1786723671869_0.4308446152640897","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@cerbos/orm-prisma","version":"5.0.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@5.0.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"90aeedd154b13848e2bbc76d8b3647d45570d42e","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-5.0.0.tgz","fileCount":199,"integrity":"sha512-/u9qZ5KZA5QYa7cGwVOmBn5apcq7Jt85WqonX0XPQUK3szIp2n8fUoYtaJArR0QBy9LLst4MmQPINYpRRZHuWA==","signatures":[{"sig":"MEQCIBgWlXvL4K2WP8a3QnyuofrWkQ+AzxtjGw/TEHtJFTkuAiAFdM6YGJLJy+GPQmISRrWtb61saInXfXUkWNSKa63ZWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICYDO+sC8cen6rCuayyHFD8st/8xTNcos3+2YD5XzwX/AiEAvZQlicUcOrCEkMiR3O6TondG/zv+FHetfJfAKPHh94k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5169360},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"4877edf5fa9bebb5f15e61654706a702e7f73a13","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.2","dependencies":{"re2js":"^2.9.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_5.0.0_1794562964927_0.6713570397430956","host":"s3://npm-registry-packages-npm-production"}},"5.1.0":{"name":"@cerbos/orm-prisma","version":"5.1.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@5.1.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"dist":{"shasum":"c6fe06fe4731df65fcb5dfae40056cf99a22144d","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-5.1.0.tgz","fileCount":206,"integrity":"sha512-U6TpURwW/oyt+Zp4VH9xF8lioYsP6Gh84GTxaBXFnwPC1QdkZTg3yshUIoxU5zu4FiqyeTfLTYYxUroFt8uWpQ==","signatures":[{"sig":"MEUCIC6Bv9THmQNS92pvmFksZOmX97GiIdeeaVb9jdYa4M5oAiEA/jbyEXQ8NmjX+4ID2tn0ZbNaBHK3ExI6MHMXbFnVRGo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCLuNirbyCWi8N3hzyV7e8dNk8zlj5iZmr+160QU3w0EwIgHzO5cRwf47Gxu0zCY6y2Ijftbseev5d8mF1yzz5UJ40=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@5.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5221953},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"3e77c11d925e3ec781ce5e55b83aa1c8277ff98e","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.2","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_5.1.0_1794916738448_0.22536424813211686","host":"s3://npm-registry-packages-npm-production"}},"5.2.0":{"name":"@cerbos/orm-prisma","version":"5.2.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@5.2.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"dist":{"shasum":"b0a37c8986302754be141f921ed035c867dca9db","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-5.2.0.tgz","fileCount":206,"integrity":"sha512-2pbP2IP+60Lob248Ohwg40xTyu75xVLXGZ9G/AYSYgSKFmTJV6ucQr63OqJ8UrKVvBeQP+RCKkmfNiVfYv9eQw==","signatures":[{"sig":"MEYCIQC9sX2vhn52fvfYB6HfN1GaOGkiyL883ZNNTU4uBOPzGgIhANHyKT6yg7ZgOclFzDPgXR+18QgYKirrgvtxsX/dstZc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDkdwRuk1Q2b3+QfWnyQElDmRfbJ7HC/l+x4acKl2VQLQIhAMuEeJbb3/uv3Zk2e5HMuEqHqwsV9o5Bc/PcCJRNVeo5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@5.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5221962},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"5b7c0510bd1daaa656338b86dda7d2e442d4253c","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.2","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_5.2.0_1794948684938_0.629557627997148","host":"s3://npm-registry-packages-npm-production"}},"5.2.1":{"name":"@cerbos/orm-prisma","version":"5.2.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@5.2.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"dist":{"shasum":"84ea982b8fa60c97adea59aeed0dffc92f915f13","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-5.2.1.tgz","fileCount":128,"integrity":"sha512-6eDRil4LqB8EMQCfg43lNFkUnss02bXawk+TUn55FWH46dL3AYCvoO0F/x8pbWvCBSs/OQpFgyzuaqBOA1gYhQ==","signatures":[{"sig":"MEUCIQDYhzO+kIO6N3qfUkeX/aQhDDjPFhSgCdO72CShaRatOgIgZwgQ9l/IxEYsBAt99Paw3R+uKtpxQYuSS0/GZj9fEUA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIACbTkzTb94Ou5G7GiCf1XENcgP/UN6XRV/FNQTZOo4aAiA0gDdzeN0s2gTb7ifiCSjJ7Fl+/mdTdyhC+olqUqaeGQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@5.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":955919},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"6b4c56b26458c0726cca41305d3bf2dc3b8d857f","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.2","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node24":"^24.0.3","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_5.2.1_1795085571976_0.33423174520482657","host":"s3://npm-registry-packages-npm-production"}},"6.0.0":{"name":"@cerbos/orm-prisma","version":"6.0.0","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@6.0.0","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"dist":{"shasum":"fb9fbec3ab18b77480b0a88ccbd47508f3b703c2","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-6.0.0.tgz","fileCount":138,"integrity":"sha512-Xml28MTeQ1roTgwfRY8PWSQrdKCnifTV1iqH2iu44NZxDWff8cpjZGrMWT2hKYD3U/4GixsCt+q1BkmW/UcZJw==","signatures":[{"sig":"MEUCIQDFl98979ezJuJh2rTMbIyX8T+sk/wtZfs873UT/iMffAIgZ1hcevp9hDFUwcxhmX0wz7CumZBA1XFYNDmKrSs/p+M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDmAy/9GpPvPAB+jeraEMPaB30PiKCD4Af2KsXnQhO5MgIgAqg9i9iS3AOX0IuRZnmCT8ptJixmDAo+XSdrBuwZfg0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@6.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":971295},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"ce4d63087c301876bca899526237d5e24c3b51d2","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.3","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node26":"^26.0.0","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_6.0.0_1795443335461_0.1779026344030451","host":"s3://npm-registry-packages-npm-production"}},"6.0.1":{"name":"@cerbos/orm-prisma","version":"6.0.1","keywords":["cerbos","prisma","orm","authorization","permissions"],"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","_id":"@cerbos/orm-prisma@6.0.1","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"homepage":"https://cerbos.dev","bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"dist":{"shasum":"6f6db5598e4b2bd0bb7d6f350e8604fe35ac50b6","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-6.0.1.tgz","fileCount":138,"integrity":"sha512-UEwdGDUr27ltlZigtQhHjr6bSEyu5GAeNd8Ww/3pq51IiPmsbHRnI1+9icH5bZ/A/KeHCn7tCDQAZuw0jHk/Fw==","signatures":[{"sig":"MEQCIDtJQrs6DZqbC2WLjcy/GAyu2nBzr1xKq4rqW9DPMonbAiBJ64oGU+4ZeTaY61tn4L1B9hgO/2xLGyd4mAA7EpAFWg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCvwSz3oHMJ3lj5AyQsLDb9lpsprBOoORJ2RNbFnIAHYgIhAON5NDv1MuNmBBBcU10v15wm5dIH5TvArJNZ3p9GmYwv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@6.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":973035},"main":"./lib/index.js","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"f57624a1600bcc71327765d2b73529c0b671d5dd","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"_nodeVersion":"24.22.3","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node26":"^26.0.0","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/orm-prisma_6.0.1_1795511891325_0.9455195287045707","host":"s3://npm-registry-packages-npm-production"}},"6.0.2":{"_id":"@cerbos/orm-prisma@6.0.2","bin":{"cerbos-prisma-datamodel":"generator/index.cjs"},"bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"dist":{"shasum":"eb8542ae55f867da4dcb08e459f63b8c5dc619c5","tarball":"https://registry.npmjs.org/@cerbos/orm-prisma/-/orm-prisma-6.0.2.tgz","fileCount":138,"integrity":"sha512-J4DCpvx/POsiZvCBOh7q63cjcsFm7LYEzmhIpt7kMT9W69SOQYA9PLy2NKc+OhYmfiuTQpl75PBm99ssaAmFFg==","signatures":[{"sig":"MEUCIGtuU+eYNVPFhzk0rX4PQuuOfuQc6LSGzXTKAhfZGC7LAiEAuoXrQod9CPp1YBX2jE1UL9eCPof3hujus6Sdbv1Yo1k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE3O9fljp7B+6IL8wnIJ+Il4odwfjfGLAls5NWOShKwlAiB7dhmcQFbcDE9qDloaUs3smRKsKGBVhpG/uYeI3VJ06g=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cerbos%2form-prisma@6.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":972660},"main":"./lib/index.js","name":"@cerbos/orm-prisma","types":"./lib/index.d.ts","//test":"`test` is the translator unit test: offline, so no Cerbos sidecar, no `db push`, and no generated client. It is also engine-agnostic — it produces where-inputs and never hands one to a Prisma client — which is why it has no v6/v7 split. Only `test:adversarial*` needs a store; it replays the recorded goldens and starts no PDP.","author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"engines":{"node":">=22.0.0"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"7f2502252eaa38cc1f43c6a0c641e367d587129e","license":"Apache-2.0","scripts":{"test":"jest","build":"tsc --build","prepare":"npm run build","typecheck":"npm run typecheck:v7 && npm run typecheck:v6","typecheck:v6":"tsc -p tsconfig.typecheck.v6.json","typecheck:v7":"tsc -p tsconfig.typecheck.json","prisma:generate":"bash scripts/generate-clients.sh all","test:adversarial":"npm run test:adversarial:v7","prisma:generate:v6":"bash scripts/generate-clients.sh 6","prisma:generate:v7":"bash scripts/generate-clients.sh 7","test:adversarial:v6":"npm run prisma:generate:v6 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma-v6/build/index.js db push --skip-generate --schema=prisma/schema.adversarial.v6.prisma && PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:v7":"npm run prisma:generate:v7 && node -e \"for (const f of ['prisma/dev-adversarial.db', 'prisma/dev-adversarial.db-journal']) require('fs').rmSync(f, { force: true })\" && node node_modules/prisma/build/index.js db push --schema=prisma/schema.adversarial.prisma --url=file:./prisma/dev-adversarial.db && PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:mysql":"npm run test:adversarial:mysql:v7","test:adversarial:mysql:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:mysql:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=mysql PRISMA_VERSION=7 jest --config jest.adversarial.config.js","test:adversarial:postgres":"npm run test:adversarial:postgres:v7","test:adversarial:postgres:v6":"npm run prisma:generate:v6 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=6 jest --config jest.adversarial.config.js","test:adversarial:postgres:v7":"npm run prisma:generate:v7 && ADAPTER_TEST_DB=postgres PRISMA_VERSION=7 jest --config jest.adversarial.config.js"},"version":"6.0.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c000c4fc-e88e-4f67-8064-51f32295ad9a"}},"homepage":"https://cerbos.dev","keywords":["cerbos","prisma","orm","authorization","permissions"],"overrides":{"mysql2":"^3.22.0","mariadb":"$mariadb","@prisma/dev":{"@hono/node-server":"^2.0.0"}},"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"_npmVersion":"11.19.1","description":"Prisma adapter for Cerbos query plans","directories":{},"maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"_nodeVersion":"24.22.3","dependencies":{"re2js":"^2.9.1","@prisma/generator-helper":"^7.10.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"prisma":"^7.5.0","mariadb":"^3.5.3","ts-jest":"^29.4.6","prisma-v6":"npm:prisma@^6.0.0","typescript":"^6.0.0","@cerbos/api":"^0.11.2","@types/jest":"^30.0.0","@types/node":"^24.0.0","expect-type":"^1.1.0","@cerbos/core":"^0.33.2","@cerbos/grpc":"^0.29.3","@cerbos/http":"^0.30.2","@grpc/grpc-js":"^1.14.5","@jest/globals":"^30.2.0","@prisma/client":"^7.5.0","@tsconfig/node26":"^26.0.0","@prisma/client-v6":"npm:@prisma/client@^6.0.0","@bufbuild/protobuf":"^2.15.0","@prisma/adapter-pg":"^7.5.0","@tsconfig/strictest":"^2.0.8","@testcontainers/mysql":"^12.1.0","@prisma/adapter-mariadb":"^7.9.1","@testcontainers/postgresql":"^12.1.0","@prisma/adapter-better-sqlite3":"^7.5.0"},"peerDependencies":{"@cerbos/core":"^0.32.0 || ^0.33.0","@prisma/client":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/orm-prisma_6.0.2_1795515109128_0.45869104373058345"}}},"time":{"created":"2022-06-15T10:31:36.100Z","modified":"2026-11-24T10:11:49.670Z","0.1.1":"2022-06-15T10:31:36.330Z","0.1.2":"2022-09-07T14:44:02.055Z","0.1.4":"2022-09-26T10:22:57.732Z","1.0.0-alpha.0":"2022-09-26T14:20:04.539Z","1.0.0":"2022-09-27T22:16:57.778Z","1.1.0-alpha.1":"2023-06-28T20:34:54.736Z","1.1.0":"2023-07-13T14:46:46.313Z","1.1.1":"2023-07-19T09:35:03.552Z","2.0.0-alpha.1":"2025-02-21T12:44:08.494Z","2.0.0-alpha.2":"2025-02-22T18:52:58.231Z","2.0.0":"2025-02-25T09:08:40.057Z","2.0.1":"2025-02-25T10:03:07.033Z","3.0.1":"2025-11-17T17:42:10.526Z","3.1.0":"2026-01-16T10:14:40.234Z","3.1.1":"2026-02-02T12:52:30.448Z","3.2.0":"2026-02-02T12:52:55.112Z","3.2.1":"2026-02-02T17:22:15.067Z","3.3.0":"2026-03-26T15:31:49.920Z","4.0.0":"2026-08-03T16:04:36.375Z","4.1.0":"2026-08-14T16:07:52.042Z","5.0.0":"2026-11-13T09:42:45.036Z","5.1.0":"2026-11-17T11:58:58.571Z","5.2.0":"2026-11-17T20:51:25.091Z","5.2.1":"2026-11-19T10:52:52.153Z","6.0.0":"2026-11-23T14:15:35.580Z","6.0.1":"2026-11-24T09:18:11.457Z","6.0.2":"2026-11-24T10:11:49.225Z"},"bugs":{"url":"https://github.com/cerbos/query-plan-adapters/issues"},"author":{"url":"https://cerbos.dev","name":"Cerbos","email":"help@cerbos.dev"},"license":"Apache-2.0","homepage":"https://cerbos.dev","keywords":["cerbos","prisma","orm","authorization","permissions"],"repository":{"url":"git+https://github.com/cerbos/query-plan-adapters.git","type":"git","directory":"prisma"},"description":"Prisma adapter for Cerbos query plans","maintainers":[{"name":"alexolivier","email":"alex@alexolivier.me"},{"name":"ahaines","email":"andrew@haines.org.nz"}],"readme":"# Cerbos + Prisma ORM Adapter\n\nConverts a [Cerbos](https://cerbos.dev) query plan ([PlanResources API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan))\ninto a [Prisma](https://prisma.io) `where` input, so `findMany` returns only the records a principal\nis allowed to see. Use it with the [Cerbos JavaScript SDK](https://github.com/cerbos/cerbos-sdk-javascript).\n\n## Install\n\n```bash\nnpm install @cerbos/orm-prisma @cerbos/core\nnpm install @cerbos/grpc   # or @cerbos/http — whichever client your deployment uses\n```\n\n- **Node.js** 22 or later.\n- **`@prisma/client`** 5, 6 or 7 (peer dependency). CI runs Prisma 6 and 7.\n- **`@cerbos/core`** `^0.32.0 || ^0.33.0` (peer dependency). It carries the query plan types, and\n  your application and the adapter must share one copy. npm 7+ installs peers automatically; pnpm\n  and Yarn expect you to declare it.\n- **A Cerbos client** (`@cerbos/grpc` or `@cerbos/http`). The adapter depends on neither.\n- **Cerbos PDP** 0.55 or later is recommended; the contract below is tested against 0.58.0.\n- **A byte-exact database collation** on mapped columns, on SQLite\n  `PRAGMA case_sensitive_like = ON`. See\n  [Database collation is an authorization invariant](#database-collation-is-an-authorization-invariant).\n\n## Quick start\n\n```ts\nimport { GRPC } from \"@cerbos/grpc\";\nimport { PlanKind, queryPlanToPrisma } from \"@cerbos/orm-prisma\";\n\nimport { Prisma } from \"@prisma/client\";\n\nimport { prisma } from \"./db\"; // your PrismaClient instance\n\nconst cerbos = new GRPC(\"localhost:3593\", { tls: false });\n\nconst queryPlan = await cerbos.planResources({\n  principal: { id: \"user1\", roles: [\"USER\"] },\n  resource: { kind: \"document\" },\n  action: \"view\",\n});\n\n// Prisma 5/6 (prisma-client-js): Prisma.dmmf.datamodel. Prisma 7: see \"Prisma 7\" below.\nconst result = queryPlanToPrisma({\n  queryPlan,\n  model: \"Document\",\n  datamodel: Prisma.dmmf.datamodel,\n});\n\nlet documents;\nswitch (result.kind) {\n  case PlanKind.ALWAYS_DENIED:\n    documents = [];\n    break;\n  case PlanKind.ALWAYS_ALLOWED:\n    documents = await prisma.document.findMany({ where: { archived: false } });\n    break;\n  case PlanKind.CONDITIONAL:\n    documents = await prisma.document.findMany({\n      where: { AND: [result.filters, { archived: false }] },\n    });\n    break;\n}\n```\n\nThat is the whole setup when your resource attributes are named like the model's fields:\n`R.attr.status` reads `status`, `R.attr.owner.name` joins through the `owner` relation, and\n`R.attr.tags.exists(t, t.name == \"x\")` becomes `tags: { some: ... }`. The adapter reads every one of\nthose from the schema. Add a [mapper](#overrides-the-mapper) only for what the schema cannot know:\nan attribute named differently from its column, how you send NULL columns, or a narrowing your\napplication applies to a relation.\n\n`queryPlanToPrisma` returns `{ kind }` for `ALWAYS_ALLOWED` / `ALWAYS_DENIED` and\n`{ kind: CONDITIONAL, filters }` otherwise. `filters` is a plain where-input for the model, so you\ncan `AND` it with your own predicates, paginate, or add `select`/`orderBy`. Short-circuit\n`ALWAYS_DENIED` instead of querying. A shape the adapter cannot express throws an `Error`; it never\nreturns a broader filter.\n\n### Arguments\n\n| Argument | Required | Description |\n| --- | --- | --- |\n| `queryPlan` | yes | The `PlanResourcesResponse` from `planResources`. |\n| `model` | with `datamodel` | Prisma model name of the queried model (e.g. `\"Document\"`). Without `datamodel`, needed only for [field-to-field comparisons](#field-to-field-comparisons) between root columns. |\n| `datamodel` | no, recommended | The Prisma schema's datamodel. See [What the schema supplies](#what-the-schema-supplies). |\n| `mapper` | no | [Overrides](#overrides-the-mapper) for what the schema cannot say. Defaults to `{}`. |\n| `nullAttributeRepresentation` | no | `\"omitted\"` (default) or `\"explicit\"`. See [NULL attribute representation](#null-attribute-representation). |\n\nExported types: `QueryPlanToPrismaArgs`, `QueryPlanToPrismaResult`, `Mapper`, `MapperConfig`,\n`NullAttributeRepresentation`, `PrismaDatamodel`, `PrismaFilter`, and `PlanKind` (re-exported from\n`@cerbos/core`).\n\n## What the schema supplies\n\nWith `datamodel` and `model`, an attribute resolves by name:\n\n- `request.resource.attr.<name>` is the root model's field `<name>`, and `request.resource.id` is its\n  `@id` field.\n- A relation field is a relation: to-one compiles to `is`, to-many to `some`/`every`/`none`, and the\n  related model is known, so field-to-field comparisons inside a collection need no `model` either.\n- Every segment beneath a relation resolves on the related model by name, however deep:\n  `R.attr.comments.exists(c, c.author.name == P.id)` joins through `comments` and `author`.\n- A scalar column's `valueType` comes from its type (`String`, `Int`, `Float`, `Boolean`,\n  `DateTime`) and `nullable` from `?`. Enum, `Decimal`, `BigInt` and `Json` columns are left untyped.\n\n### Getting the datamodel\n\n**Prisma 5 and 6** (`prisma-client-js`): pass `Prisma.dmmf.datamodel`.\n\n**Prisma 7** (`prisma-client`): the generated client has no `Prisma.dmmf`, and its runtime model\ncannot tell a to-one relation from a to-many one. Add this package's generator beside your client,\nand pass the `datamodel` it writes on every `prisma generate`:\n\n```prisma\ngenerator cerbos {\n  provider = \"cerbos-prisma-datamodel\"\n  output   = \"../src/generated/cerbos\"\n}\n```\n\n```ts\nimport { datamodel } from \"./generated/cerbos/datamodel\";\n```\n\nIt also writes `datamodel.json` for code that does not compile TypeScript.\n\n## Overrides: the mapper\n\nThe mapper is for what the schema cannot say. You need an entry when:\n\n- **an attribute is named differently from its column** (`R.attr.owner` reads `ownerId`), or is a\n  projection (`\"x\" in R.attr.tagNames` compares `tags.name`);\n- **your application sends NULL columns as explicit `null`s**, or mixes conventions. See\n  [NULL attribute representation](#null-attribute-representation);\n- **your reads of a relation are narrowed** (soft delete, tenant, subtype). Declare that as\n  [`subqueryFilter`](#declaring-the-applications-own-predicate);\n- **a policy tests the keys of a to-one relation** (`\"name\" in R.attr.owner`). The keys listed under\n  `relation.fields` are the attributes your application sends for the related row. The schema does\n  not know which columns those are, so an unlisted key is refused;\n- **a projected list holds scalars of a known type** (`valueType` on `R.attr.scores` for `\"2\" in\n  R.attr.scores`). The list's own `valueType` is also what `size()` reads, so it is never inferred\n  from the projected column.\n\nAn entry only states what differs, and the schema fills in the rest, including the `field` of an\nentry named like its column. A `type` or `model` that the schema contradicts throws. A function\nmapper returns `undefined` for a path it leaves to the schema.\n\n```ts\nqueryPlanToPrisma({\n  queryPlan,\n  model: \"Document\",\n  datamodel,\n  mapper: {\n    \"request.resource.attr.owner\": { field: \"ownerId\", nullAttributeRepresentation: \"explicit\" },\n    \"request.resource.attr.tagNames\": { relation: { name: \"tags\", field: \"name\" } },\n    \"request.resource.attr.comments\": {\n      relation: { name: \"comments\", subqueryFilter: { deletedAt: null } },\n    },\n  },\n});\n```\n\n### Without the datamodel\n\nWithout `datamodel`, the mapper must declare everything: every attribute's field, and every\nrelation's `type`. A relation with no `type` throws. The mapper is an object keyed by the full\nattribute path, or a function from path to config:\n\n```ts\n// Object\nmapper: {\n  \"request.resource.attr.title\": { field: \"title\" },\n  \"request.resource.attr.createdAt\": { field: \"createdAt\", valueType: \"dateTime\" },\n}\n\n// Function\nmapper: (path) => ({ field: path.replace(\"request.resource.attr.\", \"\") })\n```\n\nWithout `datamodel`, an unmapped path is used verbatim as the Prisma field name, which makes the\nquery fail. With or without it, and without a mapping of its own, a path resolves through its longest mapped prefix only when that prefix names a\nrelation; a key read beneath a prefix mapped to a scalar field throws `UnsupportedQueryPlanError`.\n\n### `MapperConfig`\n\n| Key | Description |\n| --- | --- |\n| `field` | Prisma field name. |\n| `valueType` | `\"string\"`, `\"number\"`, `\"boolean\"` or `\"dateTime\"`. Lets the adapter settle comparisons the type already decides before Prisma sees them: CEL answers `R.attr.aNumber == \"5\"` false for every row and `R.attr.aNumber.contains(\"2\")` with an error, so neither literal is bound for the store to coerce. Required (`\"dateTime\"`) for `timestamp()` comparisons. Read from the schema when `datamodel` is passed; otherwise undeclared keeps the untyped behaviour. |\n| `nullable` | `false` declares the column cannot be NULL, which drops the NULL guards on [relation elements](#relation-element-nullability) and hierarchy segments. |\n| `nullAttributeRepresentation` | Per-attribute NULL convention. See [Declare the convention per attribute](#declare-the-convention-per-attribute). |\n| `relation.name` | Prisma relation field name. |\n| `relation.type` | `\"one\"` (compiles to `is`/`isNot`) or `\"many\"` (`some`/`every`/`none`). Read from the schema when `datamodel` is passed. |\n| `relation.field` | Column to compare when the policy compares the relation itself (e.g. `\"x\" in R.attr.tags`). |\n| `relation.fields` | Mappings for fields of the related model, recursively (a nested entry can itself have a `relation`). Unmapped fields are inferred from the path. |\n| `relation.model` | Prisma model name of the related model. Needed only for field-to-field comparisons inside a collection expression. |\n| `relation.subqueryFilter` | A where-input over the related model that your application applies to its own reads. See [Declaring the application's own predicate](#declaring-the-applications-own-predicate). |\n\n### Relations declared by hand\n\n```ts\nmapper: {\n  // to-one; nested fields are inferred from the path (owner.id -> owner.is.id)\n  \"request.resource.attr.owner\": { relation: { name: \"owner\", type: \"one\" } },\n\n  // to-many compared as a list of names: \"x\" in R.attr.tags\n  \"request.resource.attr.tags\": { relation: { name: \"tags\", type: \"many\", field: \"name\" } },\n\n  // to-many used in collection macros: R.attr.comments.exists(c, c.status == \"approved\")\n  \"request.resource.attr.comments\": {\n    relation: {\n      name: \"comments\",\n      type: \"many\",\n      fields: {\n        id: { field: \"id\", nullable: false },\n        status: { field: \"status\" },\n        author: { relation: { name: \"author\", type: \"one\" } },\n      },\n    },\n  },\n}\n```\n\nA policy like `R.attr.status == \"active\" && R.attr.owner.id == P.id && \"tag1\" in R.attr.tags`\ntranslates to:\n\n```ts\n{\n  AND: [\n    { status: { equals: \"active\" } },\n    { owner: { is: { id: { equals: \"user1\" } } } },\n    { tags: { some: { name: { equals: \"tag1\" } } } },\n  ],\n}\n```\n\nThe nested filters read the related model **unfiltered**. If your own reads of that model apply a\npredicate (soft delete, tenant, subtype), declare it as `subqueryFilter`. See\n[Mapping hazards](#mapping-hazards).\n\n### Field-to-field comparisons\n\nComparisons between two columns of the same model compile to\n[Prisma field references](https://www.prisma.io/docs/orm/reference/prisma-client-reference#compare-columns-in-the-same-table).\nPass `model` for root columns, or `relation.model` for columns of a related model inside a\ncollection expression. Comparisons across models throw: Prisma field references are same-model only.\n\n```ts\nqueryPlanToPrisma({ queryPlan, mapper, model: \"Resource\" });\n```\n\n### Timestamps\n\nMark `DateTime` columns with `valueType: \"dateTime\"` and compare them with `timestamp()`.\n`timestamp()` over an untyped or string mapping throws, and so does a bare comparison between two\nmapped `DateTime` columns (use `timestamp()` on both sides). Literals must be strict RFC 3339\ninstants in CEL's year 0001–9999 range. Your column must preserve millisecond precision, and the\nattribute you send must be the millisecond Prisma returns for it. An instant between two\nmilliseconds — what the planner folds `now()` into — is compared against the next millisecond,\nwhich is exact for a whole-millisecond attribute: `a < T` and `a <= T` become `< ceil(T)`, `a > T`\nand `a >= T` become `>= ceil(T)`, and `a == T` never holds. Anywhere else (a list, arithmetic, two\nliterals) such an instant still throws. `timeSince(timestamp(x))` against a duration reads the\nclock when `queryPlanToPrisma` runs, so translate the plan for the query you are about to run.\n\n## NULL attribute representation\n\n`R.attr.x == null` produces the same plan however your application represents a NULL column in the\nattributes it sends to `check()`, so tell the adapter which convention you use:\n\n| Attributes you send for a NULL column | `check()` on that row | `IS NULL` filter |\n| --- | --- | --- |\n| `{\"x\": null}` — explicit null | allow | selects it — aligned |\n| `{}` — attribute omitted | **deny** (CEL missing-attribute error) | selects it — **over-grants** |\n\nThe default is `\"omitted\"`, the convention that fails closed when the guess is wrong. If you send\nNULL columns as explicit nulls, set `\"explicit\"` and `x == null` renders as `IS NULL`:\n\n```ts\nqueryPlanToPrisma({ queryPlan, mapper, nullAttributeRepresentation: \"explicit\" });\n```\n\nUnder `\"omitted\"` the adapter never emits a filter that selects the NULL rows. `x == null` is FALSE for a\npresent value and an error for an absent one, so it becomes `NOT startsWith(x, \"\")` (for a string\ncolumn): FALSE when present, UNKNOWN when NULL, under either polarity. `x != null` is the\npresence test itself. Every other null comparison operand is rejected.\n\nA typed column read through to-one relations (`parent.x`) is also missing when a relation on the way is\nabsent, and a relation filter cannot promise UNKNOWN on the rows it fails. So the rendering follows\nthe comparison's polarity, which the enclosing `!`, `&&`, `||`, `exists` and `all` fix: where the\ncomparison needs to be TRUE, `parent.x != null` is the relation-reached presence test (the parent\nexists and `x` is not NULL) and `parent.x == null` is never true; where it needs to be FALSE,\n`parent.x == null` is the negated presence test and `parent.x != null` is never false. A missing\nparent or a NULL `x` is then denied under any nesting of `!`. A null comparison whose polarity is\nnot fixed (a ternary condition, an operand of `==`, the body of `exists_one`) is still rejected.\n\nThe rejection covers every other null operand, including `x != null`, which is aligned under both\nconventions: Prisma negates by wrapping in `{ NOT: … }`, so a leaf cannot tell whether an enclosing\n`not` will flip it back. See [#302](https://github.com/cerbos/query-plan-adapters/issues/302).\n\n### Declare the convention per attribute\n\nOne policy suite can use both conventions (the same column mapped under two attribute names). Set\nthe convention on the mapper entry; the call-level option covers only undeclared attributes:\n\n```ts\nconst mapper = {\n  // sent as an explicit null when the column is NULL\n  \"request.resource.attr.owner\": { field: \"ownerId\", nullAttributeRepresentation: \"explicit\" },\n  // omitted when the column is NULL — the call-level default applies\n  \"request.resource.attr.department\": { field: \"department\" },\n};\n```\n\nDeclaring `\"explicit\"` asserts the column can be NULL **and** that NULL reaches `check()` as an\nexplicit null. The equality family (`eq`, `ne`, `in`) is then rendered so it is never SQL UNKNOWN:\n`null != \"x\"` is true in CEL, so the row is returned. Ordering and string operators are unchanged,\nbecause CEL denies them on a null receiver anyway. An undeclared attribute follows the call-level\nconvention; if that is `\"omitted\"` and the caller in fact sends an explicit null, `!=` against a\nconstant under-grants the NULL rows, which fails closed.\n\nA field-to-field `==`/`!=` between an explicit-null attribute and one that is not keeps both: the\nexplicit side's NULL compares as a value, the other side's NULL stays an error. See\n[#308](https://github.com/cerbos/query-plan-adapters/issues/308) and\n[ADR 0004](../docs/adr/0004-the-null-convention-is-a-property-of-the-attribute.md).\n\n> [!WARNING]\n> **On Cerbos 0.56.0 and earlier, do not guard with `has()`: write `R.attr.x != null`.** An\n> attribute the plan request omits is unknown to those planners, which assume the data layer\n> supplies it, so they fold `has(R.attr.x)` to true: alone it plans as `ALWAYS_ALLOWED`, and\n> `has(R.attr.x) && R.attr.y > 0` plans as `R.attr.y > 0`, which never excludes a row missing `x`.\n> From 0.57.0 the planner keeps `has(R.attr.x)` in the plan, and the adapter translates it from\n> `x`'s null convention or refuses it: under `omitted` a row has `x` when its value is not null, and\n> under `explicit` every row has it. The planner still drops a `has(R.attr.x)` that only guards an\n> access to `x`, as in `has(R.attr.x) && R.attr.x == \"a\"`, because that access already denies a row\n> without `x`.\n\n## Relation element nullability\n\nCollection macros lower to `some`/`every`/`none`, which treat SQL UNKNOWN as false. Without a guard,\n`!R.attr.tags.exists(t, t.name == \"x\")`, `all()` and `hasIntersection()` over `map()` would return\nrows holding a NULL element that `check()` denies. So a relation element column is treated as\nnullable and guarded **unless it is known to be required**. With `datamodel`, that comes from the\nschema and there is nothing to declare. Without it, declare `nullable: false` on every required\nelement column a policy reaches through a macro:\n\n```ts\n\"request.resource.attr.tags\": {\n  relation: {\n    name: \"tags\",\n    type: \"many\",\n    fields: {\n      id: { field: \"id\", nullable: false }, // String   — required\n      name: { field: \"name\" },              // String?  — nullable, guarded\n    },\n  },\n},\n```\n\nIf you leave a required column undeclared, Prisma rejects the guard's `null` comparison\n(``Argument `id` must not be null``) and the query fails. This fails closed, but it still fails.\nDeclarations are read from nested `relation.fields` for chained collections\n(`R.attr.a.b.exists(...)`).\n\n## Database collation is an authorization invariant\n\nCerbos string comparisons are byte-exact. Prisma leaves comparison semantics to the database\ncollation, so a case- or accent-insensitive collation makes the filter return rows Cerbos denies.\nThe adapter cannot set a collation or a pragma from inside a `where`.\n\n- **PostgreSQL:** a deterministic, case-sensitive collation. No `citext`, no `mode: \"insensitive\"`\n  on mapped fields. **String ordering** (`<`, `<=`, `>`, `>=`) also needs a byte-order collation,\n  `\"C\"`: CEL orders strings by code point, and a linguistic collation such as glibc's\n  `en_US.UTF-8` (the usual default on Debian images and managed services) or ICU's `en-US` sorts\n  `\"One\"` after `\"a\"`, so `R.attr.name > \"a\"` over-grants it\n  ([#489](https://github.com/cerbos/query-plan-adapters/issues/489)). Create the database with\n  `LC_COLLATE 'C'`, or set `COLLATE \"C\"` in a migration on each column a policy orders. The conformance PostgreSQL legs initialise with `--lc-collate=C`;\n  `ADAPTER_TEST_POSTGRES_INITDB_ARGS=\"--locale-provider=icu --icu-locale=en-US\"` replays them\n  under a linguistic order and fails both `comparison/*/string-code-point-order` cases.\n- **MySQL:** `utf8mb4_0900_bin` (MySQL 8.0.17+), the only collation that is byte-exact and NO PAD,\n  and it orders by code point.\n  `utf8mb4_0900_as_cs` is not enough: it ignores default-ignorable code points, so\n  `'o­ne' = 'one'` ([#474](https://github.com/cerbos/query-plan-adapters/issues/474)).\n  `utf8mb4_bin` is PAD SPACE, so `'a' = 'a '`. On MariaDB the equivalent is `utf8mb4_nopad_bin`\n  (not executed here).\n\n  **You must convert the tables yourself.** Prisma's migration engine writes\n  `COLLATE utf8mb4_unicode_ci` into every `CREATE TABLE`, ignores the server default, and has no\n  schema attribute to override it, so a Prisma-managed MySQL database is case- and\n  accent-insensitive out of the box. After migrating:\n\n  ```sql\n  ALTER TABLE `YourModel` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin;\n  ```\n\n  Measured on `mysql:8.4` against PDP 0.55.0's goldens: under `utf8mb4_unicode_ci`, **58 of the\n  184 compared cases disagree with the PDP** (`string/equals/case-sensitive` returns `\"One\"` for a\n  policy that allowed `\"one\"`); under `utf8mb4_0900_as_cs`, **17** disagree, all on the\n  soft-hyphen seed `h6`.\n- **SQL Server:** a case-sensitive (`_CS_`) collation, not `_CI_`.\n- **SQLite:** no `COLLATE NOCASE` on mapped fields (the default `BINARY` orders by code point, as\n  CEL does), **and** `PRAGMA case_sensitive_like = ON` on\n  every connection. `contains`/`startsWith`/`endsWith` lower to `LIKE`, which is ASCII\n  case-insensitive on SQLite regardless of column collation. The pragma is per connection, not per\n  schema, and Prisma 6's query engine pools SQLite connections, so one `$executeRawUnsafe` reaches\n  only one of them: pin `connection_limit=1` in the datasource url, as this repository's Prisma 6\n  SQLite leg does. Without it the adapter over-grants the corpus's\n  `string/contains/case-sensitive`, `string/starts-with/case-sensitive` and\n  `string/ends-with/case-sensitive` cases.\n\n  A mapped string column must not hold a NUL character. SQLite's `LIKE` stops at the first NUL,\n  so `size()` and every string filter answer for the prefix before it: `size(x) < 2` returns\n  `\"a\\0x\"`, which Cerbos denies. PostgreSQL `text` cannot store a NUL at all. The corpus's NUL seed\n  is lacked on both legs ([#675](https://github.com/cerbos/query-plan-adapters/issues/675)).\n\nSee Prisma's [case-sensitivity documentation](https://docs.prisma.io/docs/orm/v6/prisma-client/queries/case-sensitivity).\n\n## Supported operators\n\n| Category | Operators |\n| --- | --- |\n| Logical | `and`, `or`, `not` |\n| Comparison | `eq`, `ne`, `lt`, `gt`, `lte`, `gte`, `in`; `in` over a list built from columns (`R.attr.a in [R.attr.b, \"x\"]`) is the OR of the equalities, a missing element denying the row |\n| Null checks | `== null` / `!= null` → `{ equals: null }` / `{ not: null }` (the planner has no existence operator) |\n| Strings | `startsWith`, `endsWith`, `contains`; a `startsWith` needle holding `%`, `_` or `\\` is spelled as the range of strings it bounds (`gte` the prefix and `lt` the prefix with its last code point stepped up), which needs the code-point order the [collation](#database-collation-is-an-authorization-invariant) already requires; a constant receiver with a column needle (`\"a-b\".startsWith(R.attr.x)`) becomes an `in` over the candidate needles; `x.upperAscii() == \"LIT\"` becomes an `in` over the spellings with each ASCII capital in either case (a store's `UPPER` would also fold non-ASCII letters) |\n| Relations | to-one `is`/`isNot`; to-many `some`/`every`/`none` |\n| Collections | `exists`, `all`, lambda `except`, `hasIntersection`, `map`/`filter` inside another expression, emptiness of a mapped relation; `isSubset` and the emptiness of the `except`/`intersect` list functions against a literal list; `\"x\" in c.map(...)` and `\"x\" in c.filter(...)` (an element whose projection or predicate errors denies the row); `exists`/`all` over a list built from columns (`[R.attr.a, R.attr.b].exists(...)`, a missing element denying the row) |\n| Maps | `R.attr.m[\"key\"]` reads like `R.attr.m.key`; `{\"k1\": v1, ...}[R.attr.x] == v` becomes an `in` over the keys whose value matches (a missing key denies under both polarities); `\"key\" in R.attr.parent` and `R.attr.parent.exists(k, k == \"key\")` over a to-one relation test the related row for a key its mapping declares, as `has(R.attr.parent.key)` does |\n| Arithmetic | `add`, `sub`, `mult`, `div` against a constant, solved exactly over IEEE-754 doubles to a range of the column (`R.attr.n + 0.5 == 0.75` → `0.24999999999999994 <= n <= 0.25000000000000006`, every double whose rounded sum is 0.75; negative multipliers flip the direction); `x / x` and `x / ±0` split on the sign of `x`; string concatenation solving (`P.attr.ctx == \"projects:\" + R.attr.id` → `{ id: { equals: \"…\" } }`), and a concatenation of string columns and literals against a literal as one arm per split of it; list concatenation around a ternary over literal lists (`[\"a\"] + (R.attr.b ? [\"c\"] : []) == [...]`) |\n| Regex | `matches` against a literal RE2 pattern whose language LIKE decides exactly: literals, `^`/`$`, alternation, groups, `?` and bounded `{n,m}`, finite classes, `\\d`, `[[:digit:]]`, leading `(?i)` over ASCII, and `.`/one `.*` in a pattern anchored at both ends (the value then holds no newline, as RE2's `.` requires). A pattern RE2 rejects (lookaround, a backreference) is an error on every row, as decided by [re2js](https://github.com/le0pard/re2js), a port of RE2 |\n| Hierarchy | `hierarchy(string)`, `hierarchy(string, delimiter)` (an empty delimiter splits per code point, so a descendant is `startsWith(path + \"_\")`), `hierarchy([segments])`, `overlaps`, `ancestorOf`, `descendentOf`; a prefix holding a LIKE metacharacter is matched as a range, like a `startsWith` needle |\n| Timestamps | `timestamp()` over `valueType: \"dateTime\"` columns; `timestamp(x) ± duration(d)` against a timestamp literal, solved for the column (a shift past CEL's 0001–9999 range denies); `timeSince(timestamp(x))` against a duration, as `x` against `now - d` read when the plan is translated. A bare `dateTime` attribute is the RFC 3339 string, which never orders against a timestamp: that comparison settles as CEL's error |\n\nOuter-column references inside a macro (`R.attr.tags.exists(t, t.name == \"x\" && R.attr.aBool)`)\nare hoisted or case-split so each filter lands on its own model.\n\n### What throws\n\nLoud failures, never silently wrong filters. A shape the adapter cannot express throws\n`UnsupportedQueryPlanError`. It is exported and extends `Error`, so existing `catch` blocks keep\nworking:\n\n```ts\nimport { queryPlanToPrisma, UnsupportedQueryPlanError } from \"@cerbos/orm-prisma\";\n\ntry {\n  const result = queryPlanToPrisma({ queryPlan, mapper, model: \"Resource\" });\n} catch (error) {\n  if (error instanceof UnsupportedQueryPlanError) {\n    // The policy uses a shape this adapter cannot translate faithfully: deny, or fall back to\n    // per-row check() calls.\n  }\n  throw error;\n}\n```\n\nA mapper misconfiguration, such as a field-to-field comparison without the `model` option or\n`relation.model`, stays a plain `Error`. The refused shapes include:\n\n- **LIKE metacharacters.** Prisma emits `LIKE` without `ESCAPE`, so `contains`/`endsWith` with a\n  needle containing `%`, `_` or `\\`, or a column-valued needle of any string operator, throws. A\n  `startsWith` needle and a hierarchy prefix (`ancestorOf`, `descendentOf`, `overlaps`) holding\n  one are matched as a range instead, so they never reach `LIKE`. If you match on a backslash\n  suffix or substring, compare the whole value with `==`.\n- **Counting.** `exists_one` over a relation, `size()` of a mapped relation other than empty, non-empty or (on\n  a chain) reachable, and `size()` of a derived list such as `intersect()`.\n- **Two-variable comprehensions** (`list.exists(i, v, ...)`, `map.all(k, v, ...)`): a relation\n  filter tests related rows, which carry no position, and enumerates no map keys.\n- **Cross-model column comparisons**, including membership between an outer scalar column and a\n  related collection column, and membership in a list holding an expression over a column\n  (`R.attr.a in [\"x\", R.attr.b + \"y\"]`, `R.attr.a in R.attr.list + [\"x\"]`).\n- **Unsolvable arithmetic.** Arithmetic on both sides, and division *by* a column other than\n  `x / x`.\n- **Other malformed shapes:** the two-list `except` function compared to a non-empty list or\n  counted past emptiness, non-scalar comparison literals, empty `and`/`or`, and\n  negating a sub-condition that translates to `{}` (Prisma reads `{ NOT: {} }` as true).\n\n#### Operators Prisma `where` cannot express\n\nPrisma 6.19 and 7.9 expose the same filter surface on SQLite, PostgreSQL and MySQL\n([#224](https://github.com/cerbos/query-plan-adapters/issues/224)): scalar filters take a constant\nor a same-model field reference, never an expression. These shapes throw:\n\n| CEL shape | Corpus cases | Why Prisma cannot express it |\n| --- | --- | --- |\n| `a % b` | `arithmetic/modulo/*` | No modulo operator, and `%` is not invertible, so it cannot be solved into a plain comparison. |\n| Arithmetic on both sides | `arithmetic/add/on-both-sides` | Field references compare two columns as they are; no operand is an expression. |\n| `matches` beyond the LIKE-decidable subset | `regex/matches/lucene-reserved-characters-in-class` | No regex filter ([prisma/prisma#18481](https://github.com/prisma/prisma/issues/18481)), and no provider here has RE2. A repeated class (`[ab]+`), a negated class, a wildcard in a pattern not anchored at both ends, or a literal `%`/`_`/`\\` inside a LIKE pattern has no exact LIKE spelling. |\n| List index `l[i]` | `collection/index/*` (every positional case) | List filters test membership, emptiness or equality, never a position. |\n| `int()`, `double()` or `timestamp()` parsing a string; an `int()` threshold | `cast/int/malformed-string`, `cast/double/malformed-string`, `cast/timestamp/malformed-string` and their negations | No cast operator, and SQL `CAST` would not reproduce CEL's conversion errors (SQLite reads `CAST('abc' AS INTEGER)` as `0`). `int()` of a number is translated only as `==` (or `!=` under a `!`): a threshold would need CEL's ±2^63 overflow bound spelled out, which an `Int` column rejects. The invertible casts are solved for the column instead — `string()` of a boolean column, a boolean-valued expression or a number column, `string(int(d)) == \"k\"` as `int(d) == k`, `int(d) == k` as the interval truncation maps to `k`, and `string()`/`double()` of a column already of that type. |\n| `size()` of `filter()` over a relation | `size/equals/filtered-collection` | No count filter; `_count` exists only in `orderBy`, `select` and aggregates ([prisma/prisma#8935](https://github.com/prisma/prisma/issues/8935)). |\n\nRaw SQL fragments, an id subquery and an in-memory post-filter were considered and rejected: Prisma\n5–7 has no raw predicate inside `where` ([prisma/prisma#5560](https://github.com/prisma/prisma/issues/5560),\n[prisma/prisma#11568](https://github.com/prisma/prisma/issues/11568)), and the other two would stop\nthe result being a composable where-input.\n\n**Workaround: a derived column.** Compute the value when you write the row and have the policy read\nit: `isEven` instead of `R.attr.n % 2 == 0`, `tagCount` instead of `size(R.attr.tags) > 1`,\n`primaryTag` instead of `R.attr.tags[0]`.\n\nPrisma 8 (a release candidate as of September 2026) replaces `findMany({ where })` with a new client\nAPI and is out of scope.\n\n## Conformance contract\n\nThe adapter is replayed against the shared [conformance corpus](../conformance/README.md): the plans\nand `check()` decisions recorded from Cerbos PDP 0.58.0 (and 0.57.0), executed as real Prisma\nqueries over 43 of the corpus's 44 seed rows with Prisma 6 and 7 on SQLite, PostgreSQL and MySQL\n(under `utf8mb4_0900_bin`). The ledger lacks `null-list`, so j4 is not loaded, and `nul-in-string` on PostgreSQL and SQLite, so k3 is not loaded there. Passed cases on the\ncurrent PDP, 0.58.0, identical on all six combinations, out of every golden case in the tier:\n\n| Tier | Passed / total |\n| --- | --- |\n| core | 32 / 32 |\n| extended | 88 / 114 |\n| adversarial | 425 / 617 |\n\nEvery case that does not pass is refused with `UnsupportedQueryPlanError`; none returns wrong rows\non 0.58.0. [`conformance-ledger.json`](conformance-ledger.json) lists each one with its reason.\nCases the corpus marks as a planner divergence are skipped, not failed, and count in the total but\nnever as passed. On 0.58.0 that is three extended cases and four adversarial cases.\n `arithmetic/add/int-literal-plus-constant` and `arithmetic/add/int-literal-negated`: the planner drops the int type of the literal in `R.attr.x + 1`, so the plan is the double spelling's, while `check()` has no double + int overload and denies every row; write `1.0`. The three `composition/*` cases with a conditional `DENY` rule: the deny\ncondition reads `aNumber`, which j2 lacks: the plan's `not(...)` of it denies j2, while\n`checkResource` receives `aNumber` as absent and treats the erroring deny as not matching\n([#530](https://github.com/cerbos/query-plan-adapters/issues/530)). And\n`type-mismatch/in/number-field-in-scalar-principal` and `type-mismatch/in/string-field-in-dyn-string`:\nCEL has no `in` overload for a scalar container, so `check()` errors on that disjunct, while the\nplanner rewrites the `in` to an equality.\n\n**Providers.** `ADAPTER_TEST_MYSQL_COLLATION` replays the MySQL legs under another collation, which\nis how the figures in the collation section were measured, and `ADAPTER_TEST_POSTGRES_INITDB_ARGS`\nreplays the PostgreSQL legs under another initdb locale. MySQL adds no refused shape. SQL Server\nand CockroachDB are **not** executed: refusal reasons naming them are reasoned from documented\n`LIKE` behaviour.\n\n## Mapping hazards\n\nThe contract above proves the *plan* side. The other half is the *mapping*: **the records the\nnested filter reads must be the records your application put into the resource attributes.** The\nshared corpus catalogues six ways that can break.\n\nPrisma has no filtered relation and no `@Where` equivalent, and a `where` injected by a client\nextension or middleware (`$extends`/`$use`) rewrites only the top-level query. So although the\nmapping names a relation, this adapter is corpus class 1 — a **bare-table subquery**. Declare your\nown narrowing as `subqueryFilter`; the adapter cannot detect an omission.\n\n| Hazard | Position | Mechanism to check |\n|---|---|---|\n| Filtered association | **Caller-owned**, reproducible with `subqueryFilter` | A `$extends`/`$use` client extension or middleware that injects a `where` for the related model, or a repository helper that always appends one. None of them rewrite the nested filter this adapter returns |\n| Default scope on the target model | **Caller-owned**, reproducible with `subqueryFilter` | A soft-delete column (`deletedAt: null`), a tenant column, a `published` flag — anything every application read of the related model filters on. Prisma has no default-scope construct |\n| Subtype discrimination | **Caller-owned**, reproducible with `subqueryFilter` | A `type`/`kind` discriminator column where one model holds several row kinds. Declare `{ type: \"…\" }` |\n| To-one relation used as a collection | **Rejected by Prisma** | `type: \"one\"` compiles to `is`, which Prisma accepts only on a relation its schema declares to-one. Mapping a to-many relation as `type: \"one\"` is a Prisma validation error, not a wider subquery |\n| Composite association key | **Reproduced by Prisma** | Prisma resolves multi-column keys from `@relation(fields: […], references: […])`. The mapping names the relation, never its columns |\n| Absent to-one parent | **Reproduced**, and proved by the corpus (`relation/all/to-one-chain`, `relation/bare-attribute/negated-one-hop-boolean` and siblings) | None — every operator reached through a relation requires its to-one hops separately, so a missing parent stays denied under both polarities ([#309](https://github.com/cerbos/query-plan-adapters/issues/309), [#315](https://github.com/cerbos/query-plan-adapters/issues/315), [#375](https://github.com/cerbos/query-plan-adapters/issues/375)) |\n\n### Declaring the application's own predicate\n\n```ts\nqueryPlanToPrisma({\n  queryPlan,\n  mapper: {\n    \"request.resource.attr.tags\": {\n      relation: {\n        name: \"tags\",\n        type: \"many\",\n        field: \"name\",\n        // Exactly the predicate your own reads of `Tag` apply.\n        subqueryFilter: { deletedAt: null, kind: \"label\" },\n      },\n    },\n  },\n});\n```\n\n`subqueryFilter` is a where-input over the related model, ANDed into the nested filter. It narrows\nthe records the subquery *examines*, for every operator reached through the relation (`exists`,\n`all`, `except`, membership, `hasIntersection`, emptiness) and for the hop-existence guard.\n`all()` is rewritten from `every: AND(declared, P)` to `none: AND(declared, NOT P)`, so hidden\nrecords are ignored rather than required. If the declaration hides every record, `all()` is\nvacuously true, matching the empty list your application would send to `check()`.\n\n## Behaviour changes\n\n- Fixed over-grants on MySQL with `HIGH_NOT_PRECEDENCE` in `sql_mode`. Prisma renders a negated\n  single condition as `NOT x < ?`, which that mode parses as `(NOT x) < ?`, and does the same inside\n  `every` and `isNot`. The adapter now negates a single condition `x` as `AND: [x, x]`, which Prisma\n  renders in parentheses.\n- A `datamodel` option reads the Prisma schema, so a basic setup needs no mapper: unmapped\n  attributes resolve to same-named fields (`request.resource.id` to the `@id` field), and relation\n  cardinality and target model, nested segments, and scalar `valueType`/`nullable` come from the\n  schema. `relation.type` is optional when it is passed. A `cerbos-prisma-datamodel` generator writes the datamodel for the `prisma-client`\n  generator, which ships no `Prisma.dmmf`. `@prisma/generator-helper` is a new dependency.\n- A reference that continues past an unmapped segment beneath a relation (`parent.inner.x` with\n  `inner` not mapped) throws `UnsupportedQueryPlanError`. It used to read `x` from `parent`.\n\n- **Breaking:** a field declared with a `valueType` other than `\"boolean\"` read where CEL needs a boolean (`!R.attr.aString`) throws `UnsupportedQueryPlanError`: it is CEL's type error under both polarities, which no Prisma filter keeps out. Prisma rejected the filter before.\n- Whether `matches()` raises an error on a pattern (which denies every row) is now decided by\n  re2js, a port of RE2, where a hand-written check read `\\1`–`\\9` as a backreference. RE2 reads\n  `\\1`–`\\7` followed by another octal digit as an octal escape (`\\11` is a tab), so such a\n  pattern used to deny every row and now matches the character it names. `re2js` is a new\n  dependency.\n- `startsWith` needles and hierarchy prefixes containing `%`, `_` or `\\` no longer throw: they are\n  matched as a range of the column (`gte` the prefix, `lt` the first string past it), exact under\n  the code-point collation the adapter already requires. `R.attr.a in [R.attr.b]` compiles to the\n  field-to-field equality, `string(<boolean expression>) == \"true\"` to the expression,\n  `string(int(x)) == \"1000000\"` to `int(x) == 1000000`, `\"key\" in R.attr.parent` and\n  `R.attr.parent.exists(k, k == \"key\")` to `has(R.attr.parent.key)`, and an ordering between a\n  string column and an arithmetic result settles as CEL's no-overload error.\n- **Breaking:** `nullAttributeRepresentation` defaults to `\"omitted\"`, where it defaulted to\n  `\"explicit\"`. A caller that sends explicit nulls and set nothing now gets a refusal on most null\n  comparisons, and `x == null` selects no row where it rendered `IS NULL`; pass\n  `nullAttributeRepresentation: \"explicit\"` to keep the old output\n  ([#499](https://github.com/cerbos/query-plan-adapters/issues/499),\n  [ADR 0011](../docs/adr/0011-denial-fails-closed-in-the-result.md)).\n- **Fix ([#597](https://github.com/cerbos/query-plan-adapters/issues/597)):** `matches()` reads a\n  repetition count as RE2 does. A count with a leading zero opens no repetition, so `^one{01}$` is\n  the literal `one{01}`; it used to be read as `{1}` and returned the row `\"one\"`. Nested counts\n  whose copies multiply past 1000 (`(a{2}){600}`) are a pattern RE2 rejects, an error on every row;\n  the pattern used to be expanded into one long literal, so its negation returned every row\n  (over-grant fixes). An unbounded count (`a{2,}`) is no longer mistaken for one past 1000.\n- **Fix:** a string function (`startsWith`, `endsWith`, `contains`) over the element\n  of a projected list (`R.attr.tagNames.all(t, t.startsWith(\"p\"))`) is an error on a null element,\n  and `all()` and a negated `exists()` now deny the row holding one; they used to admit it.\n- **Fix:** `!hasIntersection(R.attr.tags.map(t, t.name), [...])` denies a row holding an element\n  whose projected column is NULL: building the mapped list is an error, which CEL denies under\n  the negation too. The null-projection guard used to be ANDed onto the positive filter, so the\n  negation turned the error into a match and admitted those rows.\n- **Fix, breaking:** a two-variable comprehension (`R.attr.list.exists(i, v, ...)`) throws\n  `UnsupportedQueryPlanError`. It used to drop the second variable and emit a filter over the\n  first, which returned the wrong rows.\n- **Fix:** a bare `dateTime` column ordered against a timestamp (`R.attr.createdAt < now()`) settles\n  as the no-overload error CEL raises on the RFC 3339 string; it used to be compared as a timestamp,\n  admitting rows the PDP denies.\n- New translations: `m[\"key\"]` member reads, lookups into a map literal, `upperAscii() == \"LIT\"`,\n  `timeSince()` and `timestamp ± duration` comparisons, `isSubset`, the emptiness of the\n  `except`/`intersect` list functions, membership in `map()`/`filter()` results, a ternary inside\n  a list concatenation or a membership list, `exists`/`all` over a list built from columns, and a\n  concatenation of more than two string terms against a literal.\n- An ordering of a boolean column against a boolean constant (`R.attr.flag < true`) translates:\n  CEL orders `false < true`, and Prisma's Boolean filter has only `equals`, so it becomes the bools\n  that satisfy it (`< true` is `equals: false`). It used to emit `lt` on a Boolean field, which the\n  Prisma client rejected with a validation error.\n- A macro (`exists`, `all`, `exists_one`, `filter`, `map`) over a to-one relation throws\n  `UnsupportedQueryPlanError`: CEL ranges it over the related row's attribute names. It used to\n  emit `some` on a to-one relation, which the Prisma client rejected with a validation error.\n\n- A comparison against NaN settles (`==` and orderings false, `!=` true, as the current PDP\n  evaluates them even against a string), and a comparison over `c ? a : b` with `c` a boolean\n  column that is never missing distributes over the branches when one of them then settles.\n- `hierarchy(x, \"\")` translates: Cerbos splits on an empty delimiter per code point, so a\n  descendant of `C` is `startsWith(C + \"_\")`, and the empty path is an ancestor of every other.\n- `matches()` translates for the RE2 patterns a combination of LIKE filters decides exactly (see\n  [Supported operators](#supported-operators)); `b == true` over a boolean expression is `b`.\n- Arithmetic against a constant is solved exactly over IEEE-754 doubles: `x + c CMP v` (and `-`,\n  `*`, `/` by a constant) becomes the range of doubles `x` for which the rounded result compares,\n  found by bisecting the doubles in order, where it used to compute `v - c` — inexact for a\n  fraction, and refused for `==`/`!=`. `x + 1 == 3` now also admits `1.9999999999999998`, which CEL\n  rounds to 3. A comparison whose one column appears only as `x / x` or `x / ±0` splits on the sign\n  of `x` (those divisions are 1, ±Inf or NaN, never an error, on doubles).\n- `all()` over a multi-hop chain translates (the hops must exist, and the predicate holds at the\n  end of every path). **Fix:** a negated `all()` over a chain put its negation outside the inner\n  hops (`some { NOT { some P } }`), which admitted a hop with no elements — where `all()` is\n  vacuously true — and missed a hop whose elements only partly matched; the false witness is now\n  an element at the end of the chain.\n- A field-to-field `==`/`!=` across mixed null conventions translates instead of throwing, and\n  `a + b == \"lit\"` over two string columns is one arm per split of the literal.\n- Macros over a literal list (a folded principal attribute) are expanded before translation:\n  `exists`/`all` over a `list(...)` of structs as well as of values, and `exists_one`,\n  `size(filter(...))` and `size(except(list, [x]))` whose body is `t == x` or `t != x`, which count\n  the multiplicity of `x` and become membership. `size(except(R.attr.list, literals))` against an\n  emptiness threshold becomes `exists`/`all` over the relation.\n- Casts that can be inverted are solved for the column rather than refused: `string(aBool) ==\n  \"true\"` is `aBool == true`, `string(aDouble) == \"-0.6\"` is `aDouble == -0.6` (and false when no\n  double prints as the literal, as cel-go's `%g` decides), `int(aDouble) == 0` is\n  `-1 < aDouble < 1`, and `string()`/`double()` of a column of that type is the column, with a NULL\n  kept an error.\n- A timestamp literal with digits past the millisecond — what the planner folds `now()` into — is\n  no longer refused when compared against a column: it is compared against the next millisecond\n  (see [Timestamps](#timestamps)).\n- A list-valued `filter()`, `map()` or `except()` where a boolean is required is a CEL error, and\n  settles as one: a whole condition that is one returns `ALWAYS_DENIED` rather than throwing. Under\n  `nullAttributeRepresentation: \"omitted\"`, `x == null` and `x != null` over a typed column\n  translate to presence tests instead of being refused. A column reached through to-one relations\n  (`parent.x != null`) now translates too, by the comparison's polarity (see\n  [NULL attribute representation](#null-attribute-representation)), where it used to be refused\n  ([#551](https://github.com/cerbos/query-plan-adapters/issues/551)).\n- `size()` of a `valueType: \"string\"` column translates for any threshold, as `LIKE` patterns of\n  `_` (`size(x) > 4` is `startsWith: \"_____\"`). A threshold of 2^32 or more, which no store can\n  hold, needs no pattern; one past 1024 characters short of that is refused. Fractional and\n  negative thresholds are normalised to the integer count they mean for relations too, and\n  `size(chain) >= 0` on a multi-hop chain is \"the chain exists\".\n- A comparison whose outcome the declared `valueType` settles is no longer refused. CEL's\n  heterogeneous equality answers `==` false and `!=` true across types, so `aNumber == \"5\"`,\n  `aString == {\"a\": 1}` and `\"2\" in aNumberList` settle, and an `in`/`hasIntersection`\n  list drops the literals that can never match (`aNumber in [\"5\", 2]` is `aNumber in [2]`). A\n  no-overload call (`aNumber.contains(\"2\")`, `size(aBool)`, `hierarchy(aNumber)`) is a CEL error,\n  which is settled only where the enclosing `!`, `&&`, `||`, `exists` and `all` fix how an error\n  decides the row. A column is trusted never to be missing only when its mapping says\n  `nullable: false` (or it is an explicit-null attribute); otherwise the settled comparison is a\n  presence test on it (`startsWith(x, \"\")`, `x > 0 || x <= 0`, `x || !x`), TRUE when the value is\n  there and UNKNOWN on NULL, so a missing attribute stays denied under a negation. A column reached\n  through `relation.fields` and a projected list element now carry the `valueType` declared for\n  them. A conditional plan that folds to `false` returns `ALWAYS_DENIED` instead of\n  throwing. This supersedes the `in value type does not match mapped <type> field` refusal below\n  for scalar literals.\n- A shape the adapter refuses now throws `UnsupportedQueryPlanError`, an exported subclass of\n  `Error`. What it translates is unchanged, and existing `catch` blocks keep working; mapper\n  misconfiguration stays a plain `Error`.\n- **Breaking:** `hasIntersection` over a relation-backed list checks its literals against the\n  `valueType` declared on the list's mapper entry, as `in` already did, and throws `in value type\n  does not match mapped <type> field` on a mismatch. It used to drop the declared type and hand the\n  literal to Prisma.\n- **Breaking ([#495](https://github.com/cerbos/query-plan-adapters/issues/495)):** relation element\n  columns are now guarded as nullable unless declared `nullable: false` (previously opt-in with\n  `nullable: true`, which over-granted on NULL elements). Nullable columns left undeclared now return\n  fewer rows; required columns left undeclared need `nullable: false`. `nullable: true` mappings\n  are unchanged. Declarations now reach chained collections via nested `relation.fields`.\n- **Breaking ([#495](https://github.com/cerbos/query-plan-adapters/issues/495)):** an empty\n  `and`/`or` (previously `{ AND: [] }` / `{ OR: [] }`, or folded to an unconditional filter) and a\n  negated sub-condition that translates to `{}` now throw. Two constants related by a hierarchy\n  operator, or an `overlaps` whose segments are all `nullable: false`, produce `{}`.\n- **Breaking ([#414](https://github.com/cerbos/query-plan-adapters/issues/414)):** non-scalar\n  comparison/membership literals and bare comparisons between mapped `DateTime` columns now throw\n  (use `timestamp()` on both operands). Negated ternary comparisons and unsolvable string\n  concatenation now keep CEL's error behaviour.\n- **Breaking:** `contains`/`startsWith`/`endsWith` needles and hierarchy prefixes containing a\n  backslash now throw. A backslash is a `LIKE` escape on PostgreSQL and MySQL and literal on SQLite,\n  so `contains(\"a\\\\b\")` matched `\"ab\"` on PostgreSQL and `endsWith(\"\\\\\")` failed with\n  `SQLSTATE 22025`.\n- **Breaking:** a hierarchy with an empty delimiter (`hierarchy(R.attr.scope, \"\")`) now throws. It\n  was lowered as a `startsWith` that also matched the path itself (corpus case\n  `hierarchy/descendent-of/empty-delimiter` over-granted).\n- **Breaking (Cerbos 0.55 compatibility):** ordered comparisons involving NaN evaluate to false, so\n  their negation can allow a row; Cerbos 0.54 denied it. Use Cerbos 0.55 when a policy can negate a\n  NaN comparison. Missing attributes and nulls are unchanged.\n- **[#375](https://github.com/cerbos/query-plan-adapters/issues/375):** a negation over a single\n  to-one hop (`!R.attr.parent.aBool` with `type: \"one\"`) no longer returns rows whose relation is\n  absent. It emits `AND: [{ parent: { is: {} } }, { NOT: … }]` and returns fewer rows (over-grant\n  fix).\n- **Fix:** a negated `&&`/`||` that reads a single to-one hop is pushed down with De Morgan, so each\n  operand requires only the hops it reads. `!(!aBool && parent.aString == \"one\")` used to require\n  the parent around the whole negation and denied a parentless row with `aBool` true, which CEL\n  allows because `!aBool` is false and decides the `&&` (under-grant fix).\n- **Breaking:** a `matches()` pattern opening with a repetition count (`{2}a`, or one right after\n  `(` or `|`) is a pattern RE2 rejects, and settles as a CEL error on every row. It used to be read\n  as a literal brace, so its negation matched every row (over-grant fix).\n- Projection relations resolve the scalar lambda variable to the mapped column. Negated equality in\n  `tagNames.exists(name, !(name == \"public\"))` now includes null list elements, as CEL does.\n  Function mappers may call `queryPlanToPrisma` recursively without clobbering the outer call's\n  model, null convention or collection scope.\n\n## Example application\n\n[`example/`](example/) installs the packed adapter and runs it against a live PDP over the shared\n[demo domain](../demo/README.md), including pagination and composition with an application filter:\n\n```bash\n# from the repository root\ndemo/scripts/run-example.sh prisma\n```\n\nA fuller app: [cerbos/express-prisma-cerbos](https://github.com/cerbos/express-prisma-cerbos).\n\n## Development\n\nEdit `src/`. `npm run build` (`tsc --build`) emits the published surface to `lib/`, which is\ngitignored and leaves the tests out; `npm run typecheck` is the check that covers `src/` and every\n`*.test.ts`.\n\n| Command | What it runs | Needs |\n| --- | --- | --- |\n| `npm test` | Offline unit tests: caller-supplied options the corpus cannot vary (mapper forms, `subqueryFilter`, element nullability, `nullAttributeRepresentation`), the refusal type, the timestamp literal contract and malformed input | Nothing |\n| `npm run typecheck` | `tsc` against Prisma 7 and 6 | Nothing |\n| `npm run test:adversarial:v7` / `:v6` | Conformance harness on SQLite, Prisma 7 / 6 | Nothing |\n| `npm run test:adversarial:postgres:v7` / `:v6` | Conformance harness on PostgreSQL | Docker |\n| `npm run test:adversarial:mysql:v7` / `:v6` | Conformance harness on MySQL | Docker |\n\n`npm run test:adversarial`, `…:postgres` and `…:mysql` alias the v7 leg. CI runs all six\nstore/Prisma combinations. The SQLite legs delete `prisma/dev-adversarial.db` and push the schema\ninto a fresh file, so they need no `--force-reset` (which Prisma refuses to run under an AI agent).\n\nNo suite starts a PDP. The harness reads the golden files under `../conformance/golden/` for both\npinned PDPs and applies [`conformance-ledger.json`](conformance-ledger.json): a case with no entry\nmust return exactly the recorded allowed ids, and an `unsupported` case must throw\n`UnsupportedQueryPlanError`. See \"The harness contract\" in\n[conformance/README.md](../conformance/README.md). `npm test` reads its plans from the same golden\nfiles but pins no corpus case's filter; it needs no database or generated client, and has no v6/v7\nsplit.\n\n## Resources\n\n- [Cerbos documentation](https://docs.cerbos.dev) and the [query plan API](https://docs.cerbos.dev/cerbos/latest/api/index.html#resources-query-plan)\n- [Prisma filtering guide](https://www.prisma.io/docs/concepts/components/prisma-client/filtering-and-sorting)\n- [Cerbos Slack](https://community.cerbos.dev) · [GitHub Discussions](https://github.com/cerbos/cerbos/discussions)\n\n## License\n\nApache 2.0.\n","readmeFilename":"README.md"}