{"_id":"@supabase/postgrest-typegen","_rev":"9-d1d0e146c48d121cb1b1415f7f6e3ccb","name":"@supabase/postgrest-typegen","dist-tags":{"latest":"0.3.0"},"versions":{"0.0.1":{"name":"@supabase/postgrest-typegen","version":"0.0.1","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.0.1","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"c58b3d0bd7e760e517dcfd0c8bf9553a7b991081","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.0.1.tgz","fileCount":78,"integrity":"sha512-ZnWmx5ydGrr+u7cS+mBLvQKMeeD2Wyk2aY6o3ancRh9ZY9svJt6UJqPv/IZnJ6NrmigX/CeYKR/jbYB/lGgwxg==","signatures":[{"sig":"MEYCIQCg7NT+9q7Ll+whtBs+yG78bJ8OjpicBesdd91Qi4weBQIhAIIUFclpHdkkZ732sOggcS6VZQGByADn13BLJCqF9xq2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":280643},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"8e461e7d9ad6e33e07e475dd3601106905543814","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"10.9.7","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"arktype":"2.2.3","prettier":"3.5.3","pg-format":"1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxfmt":"0.65.0","oxlint":"1.80.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2001","@tsconfig/node24":"^24.0.5","@types/pg-format":"^1.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.0.1_1787921475252_0.3548997820288995","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@supabase/postgrest-typegen","version":"0.1.0","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.1.0","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"4b3d293260b26ca4799bc15fa55866bd029aca18","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.1.0.tgz","fileCount":78,"integrity":"sha512-j0R9IVPlinTCVNx3u6irZFWGsL6Hg/B0pE8zxBV8VWhw/vmH+cbeD6BmyU5wBAh4sJ3Xk145HTgVg7kVnEccZA==","signatures":[{"sig":"MEUCIHrCKqDO3d8vN8+fceby9+f9VD+IokeQ+yU0docgjm90AiEA7PjLjosVC7tRrC5snfcEz4Jy+7F2jKwXHIa8GUuzc2Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":280643},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"a494be6719174adbca0313de1ee187407e2dca95","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bad0a077-1de6-44a7-9b84-fb6d177c570d"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.0.2","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"arktype":"2.2.3","prettier":"3.5.3","pg-format":"1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxfmt":"0.65.0","oxlint":"1.80.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2001","@tsconfig/node24":"^24.0.5","@types/pg-format":"^1.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.1.0_1787926712094_0.10565939675012581","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@supabase/postgrest-typegen","version":"0.2.0","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.0","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"58a1beaa16a7150cda3a52c6afec59198c4147b1","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.0.tgz","fileCount":78,"integrity":"sha512-y+dQsjV0D9IVQ2wW0WBl48owyD/88X8dh78XE4rSo1s8MegCOc5/ZNAOkBVICwTySm/hIk2Iw+0zPqJiEh0XQg==","signatures":[{"sig":"MEQCIHqyC/grYHV729rT9jCLjV7pVQpGPtBCpE/7d+Ak30dyAiBUqNKCprv75QqCTGGVQMI2yN0+AVyXt+hTirH1wwGEaA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":282560},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"6131bc88f88d29dd8205bb68d8c5102ea171a33f","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:bad0a077-1de6-44a7-9b84-fb6d177c570d"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.0.2","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.65.0","arktype":"2.2.3","pg-format":"1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.80.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2001","@tsconfig/node24":"^24.0.5","@types/pg-format":"^1.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.0_1788179073523_0.5189822993083375","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@supabase/postgrest-typegen","version":"0.2.1","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.1","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"f0a796e1212ebfc2d284b1e3e753e6ab3680ce8d","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.1.tgz","fileCount":81,"integrity":"sha512-4lfKua/f3h6ssHiYwtyE5JF+msxh0bZA0HRzqGosmGE3N7wmFqtA0kD04cmhvlEZz86RfO2/Z7Epw8oK5JN+/A==","signatures":[{"sig":"MEUCIA3TbbiEI/k48+rWW+09t4T3qoCWmWb6fAjJol934M80AiEAyxfzZlgFzSQaHL7Np11KustuYnFrrGL84gFvAkfAPmw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":302679},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"146e9cc44b2f8efdbff982346980fe4ed8d01cd3","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.0.2","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.65.0","arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.80.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2001","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.1_1788340103126_0.874470892970014","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@supabase/postgrest-typegen","version":"0.2.2","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.2","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"daf0caa35f740a98c85174c7fd4ed993934e9fff","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.2.tgz","fileCount":84,"integrity":"sha512-TKh+GgakrkMlLahWtvwa6WWzbRzlK4tBExNfgZbnB0V5yMl51RIOvrgITQOacoJR3S/ZZCNbpvkRgHrhxSWsBg==","signatures":[{"sig":"MEUCIQDi6Xcm9r3VZ18i8xE8XraVeDeERfp4uV3dmHIxkzA0YQIgEo2EbDS0xytWhJeCUQb8YlVsF1I5rOu/3rzNplhw0ZA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":300804},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"83ee30f5c3542e6c85f622ba63d668b9c9e277e3","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.0.2","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.66.0","arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.81.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2001","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.2_1789462799875_0.9968014142216131","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@supabase/postgrest-typegen","version":"0.2.3","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.3","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"c5cb32bf5a8fa7b0552fad27f581238e8b8034e4","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.3.tgz","fileCount":84,"integrity":"sha512-827GNxdlNMQv6h8Rc/UNmTddQqmLSUNR0G/cF8gRm3wRFchF+2H7O3leTBBHJbyJDUVeIyzC3rUQy2kMsrvmXw==","signatures":[{"sig":"MEYCIQCH0N2we6BpFP59nHHjAvIaHKgLzM3Ug1ZUaejW7d6bPAIhANO2C/CO2iRRTMlQLL3f46MLvwXyVR9RMkdvMRzPo8IS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIDse5prrS+nBTl21GaL7YTWdy6C9lvkYqZ+YDMRENgVPAiEAttUOI7vw9pr5eDlPeE5G8aCSm5l4yBmiiqAvU/fTiXA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":303658},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"7ae5c04893032960d8a4be81352c3d7f6b8ab443","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.1.0","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.66.0","arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.83.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2002","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.3_1790254124226_0.6746726746237925","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@supabase/postgrest-typegen","version":"0.2.4","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.4","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"edf29f8c0416cb8fde729aca330c2ff2bd6ef1e3","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.4.tgz","fileCount":84,"integrity":"sha512-q/DLgaNLSVSYo2/9W1tgpsNVNquj4uNU1wrDDfLAG9xhE5H2LCzc281m7H9gyfDj+5/7Gka1iTbmEUQEwZhDZw==","signatures":[{"sig":"MEUCIAC0WFfBsjB2JbyFnoUSiNwvqLTfrwPnVfePUEgiz+8RAiEA/CgVWE6sfcQ/HKR/zgGk39kRqpIzmszWgdoWJnwHANI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC/frDDrFMYG8M/9ooGy3fO0Wa8hfmykmGwMu/+jr0z3QIgIFmiS57H2X2rwSHxehQPcYnaNfP2BXgDbZA1ZqJeR4o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":303659},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"6d479f8962b75d356d2a2948cb9256ceb612691b","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.1.0","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.66.0","arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.83.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2002","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.4_1790322856504_0.25367320641054114","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@supabase/postgrest-typegen","version":"0.2.5","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"author":{"name":"Supabase"},"license":"MIT","_id":"@supabase/postgrest-typegen@0.2.5","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"homepage":"https://github.com/supabase/sdk","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"3fac22bcfe3e996e3fcadcbb1bb594c1e3a9e234","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.2.5.tgz","fileCount":84,"integrity":"sha512-nbcNcekZT3pcrqJkpM8dVpJE1r19/pRcwtJq1cgwP9aEqW33qcXnk+R4BtpuB2Kw9/V8YSdrlzDJrnZxoWqfKA==","signatures":[{"sig":"MEUCIQCUsW3GhkNpBpHkQ6vmfK6HSooNGU2eac3Zg/ewthMwJwIgc/dmyV9BaSylDRQXA59AHGyXozJ04EhwETYZ6fGvi/c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDuHnmU9P57q/ngRQ6WKnkGCyk8rUbbK+qVO4AQBK52DAIhALZBBQbA0KZogqLsRoQVuLHT2XJo99sfpUTpzy7v5SFz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.2.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":305148},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"ad669466af407882eb08be744c89f6c41434253e","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts","check-types:consumer":"tsc --project tsconfig.consumer.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.1.0","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"oxfmt":"0.66.0","arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxlint":"1.83.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","@tsconfig/bun":"^1.0.11","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2002","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"_npmOperationalInternal":{"tmp":"tmp/postgrest-typegen_0.2.5_1790334167417_0.07839533865092307","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@supabase/postgrest-typegen@0.3.0","bugs":{"url":"https://github.com/supabase/sdk/issues"},"dist":{"shasum":"84206e919abea62874f62786dd1cf3b41dc85548","tarball":"https://registry.npmjs.org/@supabase/postgrest-typegen/-/postgrest-typegen-0.3.0.tgz","fileCount":84,"integrity":"sha512-naUOAECYWyGt/Esul6TFsp3KCRpvG1R4Y1BYYGFGS5+cw9mZLVGLbLsg82+opJHRZfLHzfpGM7v4FDjiYYGoyg==","signatures":[{"sig":"MEYCIQCmE+iwlwFwMU46lbgkvEJB5/OPW79rgkx9wRJEAC7RigIhALt8Fbt14j3eqDBvr+lBGA8svgNWPYayQOHAhN7+kjoR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDDyXf0/cXr9pmz0OoVZjaGvs2KlsuOATpqgTeX0b6g/AIhALX7LDlEYuchSoCFUksMw8vfc4ISNo4Tll+1R9kSpPAo"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@supabase%2fpostgrest-typegen@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":306344},"main":"./dist/index.js","name":"@supabase/postgrest-typegen","type":"module","types":"./dist/index.d.ts","author":{"name":"Supabase"},"engines":{"node":">=22.12.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.js"},"./generation":{"bun":"./src/generation/index.ts","types":"./dist/generation/index.d.ts","import":"./dist/generation/index.js","default":"./dist/generation/index.js","require":"./dist/generation/index.js"},"./introspection":{"bun":"./src/introspection/index.ts","types":"./dist/introspection/index.d.ts","import":"./dist/introspection/index.js","default":"./dist/introspection/index.js","require":"./dist/introspection/index.js"}},"gitHead":"ff486961f245b4c9674d9889cbe5f8b88bb22e1e","license":"MIT","scripts":{"knip":"knip","test":"bun scripts/run-tests.ts test/","build":"tsc --project tsconfig.build.json","check-types":"tsc --noEmit","format-and-lint":"oxfmt --check . && oxlint --deny-warnings src test scripts","format-and-lint:fix":"oxfmt . && oxlint --fix src test scripts","check-types:consumer":"tsc --project tsconfig.consumer.json"},"version":"0.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0b777acd-fba0-4fb6-b332-6e8605e58e88"}},"homepage":"https://github.com/supabase/sdk","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"_npmVersion":"12.1.0","description":"Type generation for PostgREST from PostgreSQL schemas","directories":{},"maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"arktype":"2.2.3"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.23.0","knip":"^6.32.3","oxfmt":"0.66.0","oxlint":"1.83.0","@types/pg":"^8.23.1","@types/bun":"^1.4.0","typescript":"7.0.2","@types/node":"^26.3.0","@tsconfig/bun":"^1.0.11","testcontainers":"^12.1.0","oxlint-tsgolint":"7.0.2002","@tsconfig/node24":"^24.0.5","@tsconfig/node-ts":"^23.6.4","@testcontainers/postgresql":"^12.1.0"},"peerDependencies":{"oxfmt":"0.66.0"},"peerDependenciesMeta":{"oxfmt":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postgrest-typegen_0.3.0_1790344163056_0.48561130221014337"}}},"time":{"created":"2026-08-28T12:51:14.850Z","modified":"2026-09-25T13:49:23.523Z","0.0.1":"2026-08-28T12:51:15.403Z","0.1.0":"2026-08-28T14:18:32.283Z","0.2.0":"2026-08-31T12:24:33.671Z","0.2.1":"2026-09-02T09:08:23.274Z","0.2.2":"2026-09-15T09:00:00.001Z","0.2.3":"2026-09-24T12:48:44.303Z","0.2.4":"2026-09-25T07:54:16.634Z","0.2.5":"2026-09-25T11:02:47.508Z","0.3.0":"2026-09-25T13:49:23.170Z"},"bugs":{"url":"https://github.com/supabase/sdk/issues"},"author":{"name":"Supabase"},"license":"MIT","homepage":"https://github.com/supabase/sdk","keywords":["codegen","pg","postgres","postgrest","typegen","types"],"repository":{"url":"git+https://github.com/supabase/sdk.git","type":"git","directory":"packages/postgrest-typegen"},"description":"Type generation for PostgREST from PostgreSQL schemas","maintainers":[{"name":"etienne_supa","email":"etienne@supabase.io"},{"name":"kiwicopple","email":"pcopplestone@gmail.com"},{"name":"ange1ico","email":"angelico.delosreyes@gmail.com"},{"name":"awalias","email":"antwilson@hotmail.co.uk"},{"name":"gregnr","email":"greg.nmr@gmail.com"},{"name":"phamhieu1998","email":"phamhieu1998@gmail.com"},{"name":"inian","email":"inian1234@gmail.com"},{"name":"stdim","email":"sdimitrovski@gmail.com"},{"name":"ziinc_supabase","email":"tzeyiing@supabase.com"},{"name":"mandarini","email":"katerina.skroumpelou@supabase.io"},{"name":"chase.cresgy","email":"chase.cresgy@supabase.io"},{"name":"dswbx","email":"dennis.senn@gmx.ch"},{"name":"ceeteelam","email":"charisxl@gmail.com"},{"name":"kevin-supabase","email":"kevin@supabase.com"},{"name":"mattrossman","email":"matthewjonrossman@gmail.com"}],"readme":"# @supabase/postgrest-typegen\n\nType generation for [PostgREST](https://postgrest.org) from a PostgreSQL\nschema. This is the type-generation engine behind `supabase gen types`,\nextracted from [postgres-meta](https://github.com/supabase/postgres-meta) into a\nsmall, driver-agnostic library.\n\n> **Status:** alpha. The public API is settling as generators and introspection\n> are ported.\n\n## Scope: introspection is permanent, four generators are transitional\n\nThis package's permanent job is introspection and the `GeneratorMetadata`\ncontract (see \"Out-of-process generators\" below): any *new* language's\ngenerator lives in that language's own SDK repo, consuming this package's\nJSON output, not inside `postgrest-typegen`.\n\nThe TypeScript, Go, Python, and Swift generators bundled here are a\n**deliberate transition**, not the target architecture for new languages.\nThey were ported byte-for-byte from postgres-meta's own templates so\n`supabase gen types` kept working unchanged; postgres-meta has since deleted\nits copies and consumes this package instead. It's decided that all four\neventually move out to their own SDK repos too (tracked in SDK-1641), not yet\nscheduled — sequenced after postgres-meta's cutover to this package settles.\n\n> [!IMPORTANT]\n> **We are no longer accepting contributions that fix the bundled generators.**\n> Because each of the four is moving out to its own language's SDK repository,\n> a fix landed here would have to be made a second time in the destination\n> repository, and postgres-meta and the CLI only pick it up once they bump\n> their pinned version of this package. Please open an issue describing the\n> bug instead, so it can be tracked and carried across the move.\n\n## Design\n\nThere is a hard split between **introspection** (database → metadata) and\n**generation** (metadata → string):\n\n```ts\nimport { introspect } from \"@supabase/postgrest-typegen/introspection\";\nimport {\n  generateTypescript,\n  sortGeneratorMetadata,\n} from \"@supabase/postgrest-typegen/generation\";\n\n// Any `pg.Pool` / `pg.Client` (or compatible driver) works here.\nconst metadata = await introspect(pool, { includedSchemas: [\"public\"] });\n// Canonically sort before generating (see \"Stable ordering\" below).\nconst types = await generateTypescript(sortGeneratorMetadata(metadata), {\n  postgrestVersion: \"12\",\n});\n```\n\n`GeneratorMetadata` is the pluggable contract: the SQL introspector is the\ndefault producer, but any source that can produce that shape can feed the\ngenerators.\n\n### Stable ordering (`sortGeneratorMetadata`)\n\nThe Go/Python/Swift generators emit tables, views, and materialized views in\n`GeneratorMetadata` order, so their output depends on how the producer ordered\nits collections (a SQL introspector returns rows in environment-dependent heap\norder). `sortGeneratorMetadata` is a pure pass that canonically sorts every\ncollection; **apply it after introspection and before any `generate*` call** so\noutput is deterministic regardless of the producer. Generators expect\npre-sorted input and do not re-sort it themselves.\n\n### Runtime validation (opt-in)\n\n`GeneratorMetadata` is backed by an [ArkType](https://arktype.io) schema, so a\nresult coming from a custom/injected producer can be validated at runtime\nrather than blindly cast. `introspect()` does **not** validate — wrap its\nresult yourself when you want the guarantee:\n\n```ts\nimport { parseGeneratorMetadata, generatorMetadataSchema } from \"@supabase/postgrest-typegen\";\n\n// Throws a TypeError with a readable summary if the shape is wrong.\nconst metadata = parseGeneratorMetadata(await someCustomIntrospector(db));\n\n// Or use the raw schema directly for custom flows.\nconst out = generatorMetadataSchema(unknownInput);\n```\n\n### Out-of-process generators (JSON Schema + serialization)\n\nGenerators that live outside this package's process, in another language's\nown SDK repo, receive `GeneratorMetadata` as JSON rather than a live object.\nThis package owns that boundary, so no consumer serializes the contract a\ndifferent way:\n\n```ts\nimport {\n  serializeGeneratorMetadata,\n  generatorMetadataJsonSchema,\n} from \"@supabase/postgrest-typegen\";\n\n// The exact JSON document an out-of-process generator (e.g. `dart run\n// supabase_typegen`) receives over stdin/stdout.\nconst json = serializeGeneratorMetadata(sortGeneratorMetadata(metadata));\n\n// The JSON Schema for that document, for consumers that want to validate or\n// codegen against the contract without depending on ArkType or TypeScript.\ngeneratorMetadataJsonSchema;\n```\n\n`GeneratorMetadata.version` is bumped whenever the shape changes in a way a\nconsumer should branch on, since an out-of-process consumer only sees the\nserialized document and can't otherwise detect a shape change until something\nbreaks at read time.\n\n### Generators\n\n```ts\nimport {\n  generateTypescript, // async (formats its output)\n  generateGo,\n  generatePython,\n  generateSwift,\n} from \"@supabase/postgrest-typegen/generation\";\n```\n\n| Function             | Options                                                                        |\n| -------------------- | ------------------------------------------------------------------------------ |\n| `generateTypescript` | `{ detectOneToOneRelationships?, postgrestVersion?, defaultSchema?, format? }` |\n| `generateGo`         | —                                                                              |\n| `generatePython`     | —                                                                              |\n| `generateSwift`      | `{ accessControl?: 'internal' \\| 'public' \\| 'private' \\| 'package' }`         |\n\n`generateTypescript` formats its output with `oxfmt` unless `format` is\nsupplied. `oxfmt` is an optional peer dependency, imported only when that\ndefault runs: install it to use the default formatter, or pass your own\n`format` (an identity function, for byte-identical unformatted output, or a\nworker-pool-backed formatter) and it is never loaded or needed. Calling\n`generateTypescript` without `format` when `oxfmt` is missing throws an error\nsaying so.\n\n## Installation\n\nNot yet published; consumed in-repo for now (`packages/postgrest-typegen`).\n\n```bash\n# pg is a peer of your application, not bundled here\nnpm install pg\n# only if you rely on generateTypescript's default formatter\nnpm install oxfmt@0.66.0\n```\n\n## Releasing\n\nUnlike the rest of this repo, merging a change here does not open a release pull request on its own. Releases are cut on demand: run the `Release postgrest-typegen` workflow from the Actions tab, which runs release-please against `release-please-config.postgrest-typegen.json` and opens (or updates) the release pull request for this package. Merging that pull request tags the release and publishes to npm.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}