{"_id":"@cliclack/openfga-type-generator","_rev":"8-8ccb89df7167e19e318eedf048845555","name":"@cliclack/openfga-type-generator","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@cliclack/openfga-type-generator","version":"1.0.0","author":{"name":"Marko Ramšak, Biserka Zinreich"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.0.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"54e76f8d5ad2a2f828cc82eccb72d69347ef97aa","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.0.0.tgz","fileCount":17,"integrity":"sha512-DXrbgmk5iLb8fpPIJGQruwDqvLrYSkwwvT+TvqfOOuiLQ1ToWTfb9DZ/F8Its8aROX2SVnhMVdf9DAZYin7CqA==","signatures":[{"sig":"MEQCIHQfEx+1etEDTJ2BtXnRsi/0g571tpF14VVP1hBmyWhXAiAJlizEW3WN9vivlvWltBlmMStuYKMzAnpXCfvakY7C0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28918648},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"9537aac98972b94137bc15fd0e2f526be5130ce2","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"https: //github.com/marramsak/openfga-type-generator"},"_npmVersion":"10.5.2","directories":{},"_nodeVersion":"20.13.1","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@ram/config-eslint":"*","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","typescript":"5.6.2","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.0.0_1728129534479_0.7201690651150727","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@cliclack/openfga-type-generator","version":"1.1.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.1.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"a1a4511af23909ff59ed7523b03570f1f4b6e5a5","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.1.0.tgz","fileCount":17,"integrity":"sha512-8I/aKNY7DbrkrO5Q3pss4UG/R/junXU2qmgXghpl4E44uVDnbD10bo6jbHSAF1o6UpmQia/TzslFIIfvu8oSWg==","signatures":[{"sig":"MEUCIC97idNSS9APi6jmYtSLSYvvzRcD26vf0HgyVrG5LljDAiEA1ickI0ql8lIT3dMLUxaiydPKRjcyXro1UeKf1hPWSLw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28918682},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"88d4b92f1d69f270d880769ea84c69d6832d37dc","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"https: //github.com/marramsak/openfga-type-generator"},"_npmVersion":"10.5.2","directories":{},"_nodeVersion":"20.13.1","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@cliclack/config-eslint":"*","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","typescript":"5.6.2","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.1.0_1728131410993_0.07434255406780932","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@cliclack/openfga-type-generator","version":"1.2.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.2.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"c3c303cf1ec5d883a92f21ba6d79d8aa8eab130f","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.2.0.tgz","fileCount":18,"integrity":"sha512-i7o+mApfJJz6Y2B/CHyotw22FDmNKCrvser5eSYi0lnEhEPj0rCYLV0aO9bu70Cn5XXZrrCayc+DkB8YR0Wonw==","signatures":[{"sig":"MEUCIQDYaa+7+2NwDLZGyufQmY7UBXJzW2lZ1gu+AcHIQiSYDQIgZ3+oljEetLP2fzMc2SR8I53bEP8UQa2jtvM/sDFslgo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28728712},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"9dc10b2ac43e1bae59afe26eb0916511ce8adebd","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"https: //github.com/marramsak/openfga-type-generator"},"_npmVersion":"10.5.2","directories":{},"_nodeVersion":"20.13.1","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.2.0_1728145306650_0.214177265441589","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@cliclack/openfga-type-generator","version":"1.3.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.3.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"b24bb583015ca208713f8389b79aa706791952fc","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.3.0.tgz","fileCount":19,"integrity":"sha512-QFA6fWWTikG2A55nT8XCRvbZBJgCucx4Puyu10JHkwnv+X+U8Uas+QHPnSacsb6xqFKT7JNEvAnTlX9lTe4HBg==","signatures":[{"sig":"MEUCIQDJn9lmDnfRDajKc+nASuCrVDQ/CV+Gq55V9AfoakAInwIgRW3w7AysbPPngavTHsnRrbSqzZmrBjELkZhcLCV/SeI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28730900},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"e0421692fc8b484b642c1cb3f2cdfa5b5e281e07","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"https: //github.com/marramsak/openfga-type-generator"},"_npmVersion":"10.5.2","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.3.0_1728151799661_0.5743259197395116","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@cliclack/openfga-type-generator","version":"1.4.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.4.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"homepage":"https://github.com/marramsak/openfga-type-generator#readme","bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"9f8678ae5b973fbd0875a75d36b77455e001dee3","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.4.0.tgz","fileCount":17,"integrity":"sha512-59VmL/oQPbLa+y/YfHXydNWCZ8y6mOqHwTLKu/xaFuFBCBGQHX8b09f7mXG4T6GoIUh91qprdhkhZYrIFTbGng==","signatures":[{"sig":"MEYCIQDM7qXGAQapbzgtJH1/xprAzXwVAoTF2yngSSaREexAIwIhAJ3+8B/2OOUXZBaPjK40K1OTncoQ5lVj9XVfxEDjg3mi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28730454},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"eb906f2ed4c40d7c40a04ffb53aa6dd5f4acdae1","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"_npmVersion":"10.8.2","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.4.0_1728157769478_0.02024749458459585","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@cliclack/openfga-type-generator","version":"1.5.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.5.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"homepage":"https://github.com/marramsak/openfga-type-generator#readme","bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"8477d814e0af1ec11bdfad0a3d59ca3274c73156","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.5.0.tgz","fileCount":19,"integrity":"sha512-Nww2SZIJv6Mf5r3+fPRiL7mpcNE7suzYdFgRE4XSvxCjT8+uTZcge00NZGdeftX28v2HNwiO12KE7kLVd4BO5g==","signatures":[{"sig":"MEUCIQCOCs9g5xXWOPcNEM7E5FX2WEKXzSO4afp0+83yOhChggIgOihktVInsqkI7Brk8n6QtvxQkYS89RV7ifYWHPOB4YQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28751746},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"caf6b7fbb5b85666b1be78c528923db2d1a221c5","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"_npmVersion":"10.8.2","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.5.0_1728223165729_0.8027148921131211","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"@cliclack/openfga-type-generator","version":"1.6.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.6.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"homepage":"https://github.com/marramsak/openfga-type-generator#readme","bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"74b4820860ff2c00b02b538ef1b70c8c3248d854","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.6.0.tgz","fileCount":19,"integrity":"sha512-nHuY2GzSUlwyx+f54AR6IKl8wt9yXUDKrh73v5pvvgfwahTxJrDF/R3UP0Mdf8JVvnmyhaFG7DwXLBqDA6mPyQ==","signatures":[{"sig":"MEUCIDysHA/PdoNNrlq+nEWDTAMhIJhD7RAwk9ZUDQsCZXbdAiEAxWLOBqysy96CDmQ3wzKp6JqODS4LZWQhXwPt1/2bp/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28751824},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"f971925ff1ea61fd12516efbe69dd895a8c07e1f","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"_npmVersion":"10.8.2","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","directories":{},"_nodeVersion":"20.17.0","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"peerDependencies":{"rollup":">=4","@openfga/sdk":"0.7.0"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.6.0_1728240522436_0.8394887000659261","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"@cliclack/openfga-type-generator","version":"1.7.0","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","_id":"@cliclack/openfga-type-generator@1.7.0","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"homepage":"https://github.com/marramsak/openfga-type-generator#readme","bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"bin":{"openfga-type-generator":"dist/index.cjs"},"dist":{"shasum":"413cf30e49370a3ef2579ad0f1cd981ced1b3c31","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-1.7.0.tgz","fileCount":19,"integrity":"sha512-CXm8HSfnv8rqeNCTIJA9Xsi8thA/brNplDKKPeMyw9pmh97rFuqYJQEaGSNs451taq0RxXqJ97EOxq0Y9Ra47g==","signatures":[{"sig":"MEQCIAuReppZa8bVhd/tiggyaChCzln4Qnw2M7sHCLa6N6/pAiA1BXeLQkTeYGWhecmgpoMa1woLj8wLldLYnsMwjCI2bw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28844882},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=19.0.0"},"gitHead":"51cb825aa7998e0301612070bf97c020dd53531b","scripts":{"lint":"eslint --fix","build":"rollup -c"},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"_npmVersion":"10.8.2","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"lodash":"4.17.21","commander":"12.1.0","@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"4.18.1","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/node":"17.0.0","@types/lodash":"4.17.9","@rollup/plugin-swc":"0.3.0","@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3"},"_npmOperationalInternal":{"tmp":"tmp/openfga-type-generator_1.7.0_1730374183292_0.5777285058108457","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@cliclack/openfga-type-generator","version":"2.0.0","license":"MIT","author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","type":"commonjs","bin":{"openfga-type-generator":"dist/index.cjs"},"scripts":{"build":"rollup -c","lint":"eslint --fix"},"dependencies":{"@openfga/sdk":"0.7.0","@openfga/syntax-transformer":"0.2.0-beta.21","commander":"12.1.0","lodash":"4.17.21"},"devDependencies":{"@cliclack/config-eslint":"*","@rollup/plugin-commonjs":"26.0.1","@rollup/plugin-node-resolve":"15.2.3","@rollup/plugin-swc":"0.3.0","@swc/core":"1.4.0","@swc/types":"0.1.12","@types/lodash":"4.17.9","@types/node":"17.0.0","rollup":"4.18.1"},"engines":{"node":">=19.0.0"},"_id":"@cliclack/openfga-type-generator@2.0.0","gitHead":"6e13d9421663066fbdf4b06548f271b117bc732d","description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"homepage":"https://github.com/marramsak/openfga-type-generator#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-bHZSGV51cp4Hg6Wpy5UJ0NysscL+pXv023LwO4BJ+yySREFUjSc4I92ph9xiukCw8M6KF5r87+Uoue+/XaYpZw==","shasum":"91a19089cbf086042d7b36e764319cf31471394c","tarball":"https://registry.npmjs.org/@cliclack/openfga-type-generator/-/openfga-type-generator-2.0.0.tgz","fileCount":19,"unpackedSize":28844992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiyod5/8RSsQ1kxOtkZEQnmNASQfLs0jNpb+pFNhWTmgIgU7UgvKe1P+cfFHYa/Iea6q65odtN7f8szxwRnTin328="}]},"_npmUser":{"name":"marramsak","email":"marramsak@gmail.com"},"directories":{},"maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openfga-type-generator_2.0.0_1735338171101_0.23585304647550753"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-05T11:58:54.357Z","modified":"2024-12-27T22:22:51.662Z","1.0.0":"2024-10-05T11:58:54.858Z","1.1.0":"2024-10-05T12:30:11.313Z","1.2.0":"2024-10-05T16:21:47.047Z","1.3.0":"2024-10-05T18:10:00.012Z","1.4.0":"2024-10-05T19:49:29.806Z","1.5.0":"2024-10-06T13:59:25.964Z","1.6.0":"2024-10-06T18:48:42.767Z","1.7.0":"2024-10-31T11:29:43.711Z","2.0.0":"2024-12-27T22:22:51.452Z"},"bugs":{"url":"https://github.com/marramsak/openfga-type-generator/issues"},"author":{"name":"Marko Ramšak, Biserka Zinreich, Matija Ramšak"},"license":"MIT","homepage":"https://github.com/marramsak/openfga-type-generator#readme","repository":{"url":"git+https://github.com/marramsak/openfga-type-generator.git"},"description":"OpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.","maintainers":[{"name":"marramsak","email":"marramsak@gmail.com"}],"readme":"# Openfga typescript type generator\n\nOpenFGA Type Generator to generate TypeScript definitions based on an FGA (Fine-Grained Authorization) model.\n\n## Prerequisites\n\n- Node.js\n- NPM (Node Package Manager) or yarn\n\nEnsure both are installed on your machine before proceeding.\n\n## Installation\n\nTo install all the dependencies, run:\n\n```bash\nnpm install @cliclack/openfga-type-generator --save-dev\n```\n\n## Configuration\n\nThe generation command is defined in the package.json file:\n\n```json\n{\n  \"scripts\": {\n    \"generate\": \"openfga-type-generator generate -s ./src/model.fga -d ./dist -n AuthModel\",\n    \"generate-config\": \"openfga-type-generator generate\"\n  }\n}\n```\n\n- -s flag points to the source FGA model file `./src/model.fga`.\n- -d flag points to the destination directory `./dist`.\n- -n is used as a prefix to to name files and types.\n- -m is used to minify generated source code.\n\n## Directory structure\n\n```bash\n├── src\n│   └── model.fga         # The source FGA model\n├── dist                  # The directory where the generated types will be stored\n└── package.json          # Project configuration and scripts\n└── openfga.config.json   # Configuration file (optional)\n\n```\n\nExample reference of a model file named `model.fga`\n\n```yaml\nmodel\n  schema 1.1\n\ntype organization\n  relations\n    define member: [user] or owner\n    define owner: [user]\n    define repo_admin: [user, organization#member]\n    define repo_reader: [user, organization#member]\n    define repo_writer: [user, organization#member]\n\ntype repo\n  relations\n    define admin: [user, team#member] or repo_admin from owner\n    define maintainer: [user, team#member] or admin\n    define owner: [organization]\n    define reader: [user, team#member] or triager or repo_reader from owner\n    define triager: [user, team#member] or writer\n    define writer: [user, team#member] or maintainer or repo_writer from owner\n\ntype team\n  relations\n    define member: [user, team#member]\n\ntype user\n```\n\n## Using configuration file (optional)\n\nAlternatively, you can use the `openfga.config.json` file in the root directory instead of command-line arguments.\n\n```json\n{\n  \"name\": \"AuthModel\",\n  \"dist\": \"./dist\",\n  \"src\": \"./src/model.fga\",\n  \"generate\": {\n    \"tuples\": true,\n    \"assertions\": true,\n    \"metadata\": true,\n    \"authmodel\": true\n  },\n  \"minify\": true\n}\n```\n\n## Usage\n\nGenerating Types from FGA Model\nTo generate TypeScript types from the FGA model located at `./src/model.fga`, use the following command:\n\n```bash\n#run with command args\nnpm run generate\n#run with config\nnpm run generate-config\n```\n\nThis will generate the types in the `./dist` directory.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Authors\n\nMarko Ramšak, Matija Ramšak, Biserka Zinreich\n","readmeFilename":"README.md"}