{"_id":"@standard-schema/spec","_rev":"8-e53283a57ffa7e2ebe512af253b62fc3","name":"@standard-schema/spec","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0-beta.0":{"name":"@standard-schema/spec","version":"1.0.0-beta.0","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-beta.0","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"fa7afa617aa6a485b66fdc3e1df7ab6a903024a7","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-beta.0.tgz","fileCount":7,"integrity":"sha512-//opTrDGFcAaG8BNc0btA5wwU1V573X/UezT5jgfwucdZEbzukpKCsFUJVskH6aJ3KNVOXdSbhS4YWFfnyLVbA==","signatures":[{"sig":"MEUCIEBy85HFn8vwfDO5c4Lf0d8v3EZsaYc2RCPD02prlK2EAiEArW5bocywnDi5ZOrVTdKLbddiDHBKX6lgSMc3mn/H82M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16949},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"889b3918f64c418aabd0de40dd0d0e35258f6022","scripts":{"lint":"pnpm biome lint ./src","test":"vitest --typecheck","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.0","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2","@biomejs/biome":"^1.9.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-beta.0_1727406475833_0.4525958237428134","host":"s3://npm-registry-packages"}},"1.0.0-beta.1":{"name":"@standard-schema/spec","version":"1.0.0-beta.1","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-beta.1","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"dbd8e08cdb014bd113ae10a9f9a87354f86b55b5","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-beta.1.tgz","fileCount":7,"integrity":"sha512-XFHxCgvFiNrofjsZ1SFLKjLSo6kM9WITBU6gPnkKtrQ6fSuPWhZ/7gLTWmMcMprFgN4FfU1Wcsr5+jNkRaksCQ==","signatures":[{"sig":"MEUCIAcCnPV/FmHA1YJCZibWB+EcACTI9bLQDQtPsxPz138GAiEA0Gc6iihVlL815adsfySqf1eMEWitsLGj5y7Sr5Jvr78=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0-beta.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22820},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0-beta.1.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/9d9ecae5223ede7ea4617dbcdb0ee0b5/standard-schema-spec-1.0.0-beta.1.tgz","_integrity":"sha512-XFHxCgvFiNrofjsZ1SFLKjLSo6kM9WITBU6gPnkKtrQ6fSuPWhZ/7gLTWmMcMprFgN4FfU1Wcsr5+jNkRaksCQ==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-beta.1_1728191700871_0.045437036406358766","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@standard-schema/spec","version":"1.0.0-beta.2","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-beta.2","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"12ce88bcf5047a026c1d3c513403d91e2a71f08e","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-beta.2.tgz","fileCount":7,"integrity":"sha512-3xO2jovtlaUYPgj6lTL5rgRnKiPyXQXwUmYlQBu2WcTNHrFdbQZ7nrOcqSEtDeRISvv4rQdbBf60xjnT5+tssg==","signatures":[{"sig":"MEQCICn4rMsq2dfSrAxQAKmvFxLpTkJQFaVpwuHkrpv6vPCNAiBxKCTu76t1HyetbzuBicAbvYSczzvSak4WZYJ0QhEGsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0-beta.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22009},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0-beta.2.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/892e4ef63115df7974237d62099d74a1/standard-schema-spec-1.0.0-beta.2.tgz","_integrity":"sha512-3xO2jovtlaUYPgj6lTL5rgRnKiPyXQXwUmYlQBu2WcTNHrFdbQZ7nrOcqSEtDeRISvv4rQdbBf60xjnT5+tssg==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-beta.2_1731033826261_0.26730841655125803","host":"s3://npm-registry-packages"}},"1.0.0-beta.3":{"name":"@standard-schema/spec","version":"1.0.0-beta.3","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-beta.3","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"4dbf9a3c69e10fa2997e1ac1f39d8e9f33213576","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-beta.3.tgz","fileCount":7,"integrity":"sha512-0ifF3BjA1E8SY9C+nUew8RefNOIq0cDlYALPty4rhUm8Rrl6tCM8hBT4bhGhx7I7iXD0uAgt50lgo8dD73ACMw==","signatures":[{"sig":"MEYCIQC+VoQ/meJ9ua6D9mSyzOPrH3kJEGIkpWn2j/rsfEgbngIhANcXvrgnvLdDMH96mjeAL3LvvNYvrKQrZWAkbf72wx9k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0-beta.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21965},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0-beta.3.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/7bb72f693054619c52b3bf56cb8fba7c/standard-schema-spec-1.0.0-beta.3.tgz","_integrity":"sha512-0ifF3BjA1E8SY9C+nUew8RefNOIq0cDlYALPty4rhUm8Rrl6tCM8hBT4bhGhx7I7iXD0uAgt50lgo8dD73ACMw==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-beta.3_1731079172134_0.07887131885754095","host":"s3://npm-registry-packages"}},"1.0.0-beta.4":{"name":"@standard-schema/spec","version":"1.0.0-beta.4","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-beta.4","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"62f520109add3eb016004098363bfee0678dd1ec","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-beta.4.tgz","fileCount":7,"integrity":"sha512-d3IxtzLo7P1oZ8s8YNvxzBUXRXojSut8pbPrTYtzsc5sn4+53jVqbk66pQerSZbZSJZQux6LkclB/+8IDordHg==","signatures":[{"sig":"MEQCIEpvwjJcMU+mZ1xK/1//eYw0wIWgzcWSaGdnd0zGi5rsAiBwNiXbZPoy+sg2FTa9K53BuND3gxxLFiZZRM2bUe5LqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0-beta.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22022},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0-beta.4.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/6810b23ee344392dfe6c2a2d68058f41/standard-schema-spec-1.0.0-beta.4.tgz","_integrity":"sha512-d3IxtzLo7P1oZ8s8YNvxzBUXRXojSut8pbPrTYtzsc5sn4+53jVqbk66pQerSZbZSJZQux6LkclB/+8IDordHg==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-beta.4_1732749296479_0.3601810032693309","host":"s3://npm-registry-packages"}},"1.0.0-rc.0":{"name":"@standard-schema/spec","version":"1.0.0-rc.0","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0-rc.0","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://github.com/standard-schema/standard-schema#readme","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"b17c55e2ba8cbd937588d76839a204ac91bb2f78","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0-rc.0.tgz","fileCount":7,"integrity":"sha512-DcY/ICFcZIESNTLTexIT108HOqd1FtxsiLV4ZYGluySWyjF6TZ6troNyXjiqoHU6j0wN3A6SmYnTA5CHQp9blw==","signatures":[{"sig":"MEUCIAnUIHjVkBqiLph21VONx/hbszGOzcyPbm7XBomFUTvkAiEApdrLLcYPtPPDXBqzNjsS88KA9v9jpiEszIaIaTOviIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0-rc.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22602},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0-rc.0.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/668f2d7673ebc6cfa66de496fb1d1176/standard-schema-spec-1.0.0-rc.0.tgz","_integrity":"sha512-DcY/ICFcZIESNTLTexIT108HOqd1FtxsiLV4ZYGluySWyjF6TZ6troNyXjiqoHU6j0wN3A6SmYnTA5CHQp9blw==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0-rc.0_1736477112072_0.07372152269862076","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@standard-schema/spec","version":"1.0.0","keywords":["typescript","schema","validation","standard","interface"],"author":{"name":"Colin McDonnell"},"license":"MIT","_id":"@standard-schema/spec@1.0.0","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"homepage":"https://standardschema.dev","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"dist":{"shasum":"f193b73dc316c4170f2e82a881da0f550d551b9c","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0.tgz","fileCount":7,"integrity":"sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==","signatures":[{"sig":"MEUCICTWJMg9W+i+lPtG+3RATbCunvUNxvQj18/6IhHF6lpRAiEAjE09RnIUp7AyNhrlbFFOw3ENa8JVlMzCxZDIsXI4wwA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25008},"main":"./dist/index.js","type":"module","_from":"file:standard-schema-spec-1.0.0.tgz","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"pnpm biome lint ./src","build":"tsup","check":"pnpm biome check ./src","format":"pnpm biome format --write ./src"},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"_resolved":"/tmp/092ac65b2db5e85815b20835b0230da5/standard-schema-spec-1.0.0.tgz","_integrity":"sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==","repository":{"url":"git+https://github.com/standard-schema/standard-schema.git","type":"git"},"_npmVersion":"10.8.2","description":"A standard interface for TypeScript schema validation libraries","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/spec_1.0.0_1737946999155_0.8220776792324331","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@standard-schema/spec","description":"A family of specs for interoperable TypeScript","version":"1.1.0","license":"MIT","author":{"name":"Colin McDonnell"},"homepage":"https://standardschema.dev","repository":{"type":"git","url":"git+https://github.com/standard-schema/standard-schema.git"},"keywords":["typescript","schema","validation","standard","interface"],"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"standard-schema-spec":"./src/index.ts","import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.2"},"scripts":{"lint":"pnpm biome lint ./src","format":"pnpm biome format --write ./src","check":"pnpm biome check ./src","build":"tsup"},"_id":"@standard-schema/spec@1.1.0","bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"_integrity":"sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==","_resolved":"/tmp/f2c1cda6513eef9a66a2729cbb7934e4/standard-schema-spec-1.1.0.tgz","_from":"file:standard-schema-spec-1.1.0.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==","shasum":"a79b55dbaf8604812f52d140b2c9ab41bc150bb8","tarball":"https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz","fileCount":7,"unpackedSize":22634,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@standard-schema%2fspec@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGdCUE4g1c6RO81SGehjWNra28GX4mcyQ77hk1CGKESMAiBiyPqcj8S2TGWwYdiiDGoeurLutzxBTPQRNVt0c/IfUQ=="}]},"_npmUser":{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},"directories":{},"maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spec_1.1.0_1765831786291_0.4301069348914006"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-27T03:07:55.745Z","modified":"2025-12-15T20:49:46.860Z","1.0.0-beta.0":"2024-09-27T03:07:56.009Z","1.0.0-beta.1":"2024-10-06T05:15:01.110Z","1.0.0-beta.2":"2024-11-08T02:43:46.442Z","1.0.0-beta.3":"2024-11-08T15:19:32.347Z","1.0.0-beta.4":"2024-11-27T23:14:56.722Z","1.0.0-rc.0":"2025-01-10T02:45:12.235Z","1.0.0":"2025-01-27T03:03:19.334Z","1.1.0":"2025-12-15T20:49:46.431Z"},"bugs":{"url":"https://github.com/standard-schema/standard-schema/issues"},"author":{"name":"Colin McDonnell"},"license":"MIT","homepage":"https://standardschema.dev","keywords":["typescript","schema","validation","standard","interface"],"repository":{"type":"git","url":"git+https://github.com/standard-schema/standard-schema.git"},"description":"A family of specs for interoperable TypeScript","maintainers":[{"name":"fabian-hiller","email":"hillerfabian11@gmail.com"},{"name":"colinhacks","email":"colinmcd94@gmail.com"}],"readme":"

\n \"Standard\n
\n Standard Schema

\n

\n A family of specs for interoperable TypeScript\n
\n standardschema.dev\n

\n
\n\n\n\nThe Standard Schema project is a set of interfaces that standardize the provision and consumption of shared functionality in the TypeScript ecosystem.\n\nIts goal is to allow tools to accept a single input that includes all the types and capabilities they need— no library-specific adapters, no extra dependencies. The result is an ecosystem that's fair for implementers, friendly for consumers, and open for end users.\n\n## The specifications\n\nThe specifications can be found below in their entirety. Libraries wishing to implement a spec can copy/paste the code block below into their codebase. They're also available at `@standard-schema/spec` on [npm](https://www.npmjs.com/package/@standard-schema/spec) and [JSR](https://jsr.io/@standard-schema/spec).\n\n```ts\n// #########################\n// ### Standard Typed ###\n// #########################\n\n/** The Standard Typed interface. This is a base type extended by other specs. */\nexport interface StandardTypedV1 {\n /** The Standard properties. */\n readonly \"~standard\": StandardTypedV1.Props;\n}\n\nexport declare namespace StandardTypedV1 {\n /** The Standard Typed properties interface. */\n export interface Props {\n /** The version number of the standard. */\n readonly version: 1;\n /** The vendor name of the schema library. */\n readonly vendor: string;\n /** Inferred types associated with the schema. */\n readonly types?: Types | undefined;\n }\n\n /** The Standard Typed types interface. */\n export interface Types {\n /** The input type of the schema. */\n readonly input: Input;\n /** The output type of the schema. */\n readonly output: Output;\n }\n\n /** Infers the input type of a Standard Typed. */\n export type InferInput = NonNullable<\n Schema[\"~standard\"][\"types\"]\n >[\"input\"];\n\n /** Infers the output type of a Standard Typed. */\n export type InferOutput = NonNullable<\n Schema[\"~standard\"][\"types\"]\n >[\"output\"];\n}\n\n// ##########################\n// ### Standard Schema ###\n// ##########################\n\n/** The Standard Schema interface. */\nexport interface StandardSchemaV1 {\n /** The Standard Schema properties. */\n readonly \"~standard\": StandardSchemaV1.Props;\n}\n\nexport declare namespace StandardSchemaV1 {\n /** The Standard Schema properties interface. */\n export interface Props\n extends StandardTypedV1.Props {\n /** Validates unknown input values. */\n readonly validate: (\n value: unknown,\n options?: StandardSchemaV1.Options | undefined\n ) => Result | Promise>;\n }\n\n /** The result interface of the validate function. */\n export type Result = SuccessResult | FailureResult;\n\n /** The result interface if validation succeeds. */\n export interface SuccessResult {\n /** The typed output value. */\n readonly value: Output;\n /** A falsy value for `issues` indicates success. */\n readonly issues?: undefined;\n }\n\n export interface Options {\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record | undefined;\n }\n\n /** The result interface if validation fails. */\n export interface FailureResult {\n /** The issues of failed validation. */\n readonly issues: ReadonlyArray;\n }\n\n /** The issue interface of the failure output. */\n export interface Issue {\n /** The error message of the issue. */\n readonly message: string;\n /** The path of the issue, if any. */\n readonly path?: ReadonlyArray | undefined;\n }\n\n /** The path segment interface of the issue. */\n export interface PathSegment {\n /** The key representing a path segment. */\n readonly key: PropertyKey;\n }\n\n /** The Standard types interface. */\n export interface Types\n extends StandardTypedV1.Types {}\n\n /** Infers the input type of a Standard. */\n export type InferInput =\n StandardTypedV1.InferInput;\n\n /** Infers the output type of a Standard. */\n export type InferOutput =\n StandardTypedV1.InferOutput;\n}\n\n// ###############################\n// ### Standard JSON Schema ###\n// ###############################\n\n/** The Standard JSON Schema interface. */\nexport interface StandardJSONSchemaV1 {\n /** The Standard JSON Schema properties. */\n readonly \"~standard\": StandardJSONSchemaV1.Props;\n}\n\nexport declare namespace StandardJSONSchemaV1 {\n /** The Standard JSON Schema properties interface. */\n export interface Props\n extends StandardTypedV1.Props {\n /** Methods for generating the input/output JSON Schema. */\n readonly jsonSchema: StandardJSONSchemaV1.Converter;\n }\n\n /** The Standard JSON Schema converter interface. */\n export interface Converter {\n /** Converts the input type to JSON Schema. May throw if conversion is not supported. */\n readonly input: (\n options: StandardJSONSchemaV1.Options\n ) => Record;\n /** Converts the output type to JSON Schema. May throw if conversion is not supported. */\n readonly output: (\n options: StandardJSONSchemaV1.Options\n ) => Record;\n }\n\n /**\n * The target version of the generated JSON Schema.\n *\n * It is *strongly recommended* that implementers support `\"draft-2020-12\"` and `\"draft-07\"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.\n *\n * The `\"openapi-3.0\"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `\"draft-04\"`.\n */\n export type Target =\n | \"draft-2020-12\"\n | \"draft-07\"\n | \"openapi-3.0\"\n // Accepts any string for future targets while preserving autocomplete\n | ({} & string);\n\n /** The options for the input/output methods. */\n export interface Options {\n /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */\n readonly target: Target;\n\n /** Explicit support for additional vendor-specific parameters, if needed. */\n readonly libraryOptions?: Record | undefined;\n }\n\n /** The Standard types interface. */\n export interface Types\n extends StandardTypedV1.Types {}\n\n /** Infers the input type of a Standard. */\n export type InferInput =\n StandardTypedV1.InferInput;\n\n /** Infers the output type of a Standard. */\n export type InferOutput =\n StandardTypedV1.InferOutput;\n}\n```\n","readmeFilename":"README.md"}