{"_id":"@typeschema/typebox","_rev":"5-50ade8ae4562f51e0d11bebfe1a74b42","name":"@typeschema/typebox","dist-tags":{"latest":"0.14.0"},"versions":{"0.13.0":{"name":"@typeschema/typebox","version":"0.13.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/typebox@0.13.0","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"7d29c034ada33648d4ab5f9bf20018d7767caaad","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.13.0.tgz","fileCount":7,"integrity":"sha512-jNmoH54ZF7eepWbLy2718NK5+/J5/sW2jaY5L0cZC73F4AU2+hUP9sp7hYa6nAzNbQiVjGS7hSyd8RXV6ah0Vw==","signatures":[{"sig":"MEUCIExa9uF/2hkL5AywSnm/hMlWCS7+5ZPf4tILmyEqsFkhAiEAlmnVmjbb2F/Co9ioAkDUnCtzdiw4CcWtAYPY2zwXa9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10141},"main":"dist/index.js","_from":"file:typeschema-typebox-0.13.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/private/var/folders/dq/77g3z6095pj93wyfv7wj52rm0000gn/T/6c9f2cd5fd17db10b7fa52bb0aaad428/typeschema-typebox-0.13.0.tgz","_integrity":"sha512-jNmoH54ZF7eepWbLy2718NK5+/J5/sW2jaY5L0cZC73F4AU2+hUP9sp7hYa6nAzNbQiVjGS7hSyd8RXV6ah0Vw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for TypeBox schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.0"},"//description":"This field is manually maintained.","_hasShrinkwrap":false,"devDependencies":{"@sinclair/typebox":"^0.32.11"},"peerDependencies":{"@sinclair/typebox":"^0.32.11"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/typebox_0.13.0_1708584821447_0.3600093575506602","host":"s3://npm-registry-packages"}},"0.13.1":{"name":"@typeschema/typebox","version":"0.13.1","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/typebox@0.13.1","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"b89026c11a0dfee6255d832781a8b6b6eca9c6c3","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.13.1.tgz","fileCount":7,"integrity":"sha512-9umM7d8RXO0jvC+SA92MVEXhZUWnvNkWujcUhHrLxxbLMBgjtpsV335AWt5WJ0F1Ywm9Y+sOonmM57UeCyzY2w==","signatures":[{"sig":"MEYCIQDroibDseNdHjf/EeCQVNDClGZTC3oeGUoKPulEZ/S00gIhAJWYZMkpVW19PwQEEr+tuPw1VMM+XJi9uVXZs16oLizA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10321},"main":"dist/index.js","_from":"file:typeschema-typebox-0.13.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/private/var/folders/dq/77g3z6095pj93wyfv7wj52rm0000gn/T/f3519004b36b7f7bda516b2e3393a665/typeschema-typebox-0.13.1.tgz","_integrity":"sha512-9umM7d8RXO0jvC+SA92MVEXhZUWnvNkWujcUhHrLxxbLMBgjtpsV335AWt5WJ0F1Ywm9Y+sOonmM57UeCyzY2w==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for TypeBox schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.1"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"@sinclair/typebox":"^0.32.11"},"peerDependencies":{"@sinclair/typebox":"^0.32.11"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/typebox_0.13.1_1708712694332_0.44184980523048156","host":"s3://npm-registry-packages"}},"0.13.2":{"name":"@typeschema/typebox","version":"0.13.2","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/typebox@0.13.2","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"a67d5d5b66521dbcdcbcb94c9f59ac529014cf8f","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.13.2.tgz","fileCount":7,"integrity":"sha512-QJCQVs6FZ+RtvsvlAkGnEqywFIdKVCAuo/V8NrLANX5DeLYBP2EojQoFHFf5zZGtsgC4He61wk/AJj+segvpaw==","signatures":[{"sig":"MEYCIQDPWbIdanYw60JMsVz+I4Dnc+f43N5JXwGUK+5Nu/qkSgIhAKXobZistOyN8kcWeaM8o1CMsGYfejbQ4ewqnLIgtqyI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10407},"main":"dist/index.js","_from":"file:typeschema-typebox-0.13.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/1285c1e359221745a66aba680fecaef3/typeschema-typebox-0.13.2.tgz","_integrity":"sha512-QJCQVs6FZ+RtvsvlAkGnEqywFIdKVCAuo/V8NrLANX5DeLYBP2EojQoFHFf5zZGtsgC4He61wk/AJj+segvpaw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for TypeBox schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"@sinclair/typebox":"^0.32.11"},"peerDependencies":{"@sinclair/typebox":"^0.32.11"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/typebox_0.13.2_1709024744809_0.21948374870333676","host":"s3://npm-registry-packages"}},"0.13.3":{"name":"@typeschema/typebox","version":"0.13.3","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/typebox@0.13.3","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"f8b6df29c6a971c1e9c268bea452b5eec5a72e30","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.13.3.tgz","fileCount":7,"integrity":"sha512-9Agv5wHyj502UW1FYLfgKNzkgY0WMoO+P3g8W4upMzCwm7H4FzA37QVD1bq/EbpbSDvITuK3OGxaQFX/c9xW7A==","signatures":[{"sig":"MEUCIQCgrBZfkBtDxcKKSPh9vnco7eqS+gy5anagATdPvlhxbAIgLSDnt8RH6nG8FwkawALk14CfhxLkZUkLrt4BE0sBKYQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11158},"main":"dist/index.js","_from":"file:typeschema-typebox-0.13.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/4f721f3e8fec95ea61afc53a21adc095/typeschema-typebox-0.13.3.tgz","_integrity":"sha512-9Agv5wHyj502UW1FYLfgKNzkgY0WMoO+P3g8W4upMzCwm7H4FzA37QVD1bq/EbpbSDvITuK3OGxaQFX/c9xW7A==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for TypeBox schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"@sinclair/typebox":"^0.32.11"},"peerDependencies":{"@sinclair/typebox":"^0.32.11"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","@sinclair/typebox":"Required for inference and validation"},"peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/typebox_0.13.3_1709278972558_0.5921575178067009","host":"s3://npm-registry-packages"}},"0.13.4":{"name":"@typeschema/typebox","version":"0.13.4","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/typebox@0.13.4","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"cc31a7f4667f920ce2d8ef80a3f10945231dc710","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.13.4.tgz","fileCount":7,"integrity":"sha512-Rwcdn5CyxFWR003qSEtcJEHwPxa51iBublPYtomUL098i3K84z7YM+FKmFohLVawroGnAtxRw9yxfpulrP9ipw==","signatures":[{"sig":"MEUCICk7s4fWurGOTVNgM1SZ+63Ogpj9Q6+q5LzcGREQ/LDPAiEAn5eRXdZ++wsDamogcjmhbAaZ4+ax89Bq5J9rTt1rPz0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12415},"main":"dist/index.js","_from":"file:typeschema-typebox-0.13.4.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/ca5ba78e440cd38e5064d9516708aef6/typeschema-typebox-0.13.4.tgz","_integrity":"sha512-Rwcdn5CyxFWR003qSEtcJEHwPxa51iBublPYtomUL098i3K84z7YM+FKmFohLVawroGnAtxRw9yxfpulrP9ipw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for TypeBox schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"@sinclair/typebox":"^0.32.15"},"peerDependencies":{"@sinclair/typebox":"^0.32.15"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","@sinclair/typebox":"Required for inference, validation, and serialization"},"peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/typebox_0.13.4_1709410648988_0.8020965420720458","host":"s3://npm-registry-packages"}},"0.14.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/typebox","//version":"This field is manually maintained.","version":"0.14.0","//description":"This field is manually maintained.","description":"Reusable adapter for TypeBox schemas","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"homepage":"https://typeschema.com","license":"MIT","author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"dependencies":{"@typeschema/core":"0.14.0"},"//devDependencies":"This field is manually maintained.","devDependencies":{"@sinclair/typebox":"^0.33.7"},"//peerDependencies":{"//":"This field is manually maintained.","@sinclair/typebox":"Required for inference, validation, and serialization"},"peerDependencies":{"@sinclair/typebox":"^0.33.7"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"@sinclair/typebox":{"optional":true}},"scripts":{"build":"tsup --config ../../tsup.config.ts","lint":"eslint src --fix","lint:package":"publint && attw --pack","test":"vitest --config ../../vitest.config.ts","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_id":"@typeschema/typebox@0.14.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-+Td4CHkWQ17T60gEtA2SzeFp382CHEwsI7aWiqBq9YeqAwbkTrluGh6R9MNFHJzOLaYL+AG60b8fX9Rbcex0Tg==","_resolved":"/tmp/d8f94a371f87401f6cf590cdeff79c52/typeschema-typebox-0.14.0.tgz","_from":"file:typeschema-typebox-0.14.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-+Td4CHkWQ17T60gEtA2SzeFp382CHEwsI7aWiqBq9YeqAwbkTrluGh6R9MNFHJzOLaYL+AG60b8fX9Rbcex0Tg==","shasum":"1e86319415d29e54de12729bafa3f75db9bfd017","tarball":"https://registry.npmjs.org/@typeschema/typebox/-/typebox-0.14.0.tgz","fileCount":7,"unpackedSize":12414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEH5/A5n3CqxzYY4B07+M96cO47eOsdbs2u5pxBRo707AiBaWS+wxlBheYJ18mV9YIiLPryV8znC/jmuL1UAibi13Q=="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typebox_0.14.0_1724625240861_0.8973037786775553"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-22T06:53:41.375Z","modified":"2024-08-25T22:34:01.237Z","0.13.0":"2024-02-22T06:53:41.620Z","0.13.1":"2024-02-23T18:24:54.499Z","0.13.2":"2024-02-27T09:05:44.989Z","0.13.3":"2024-03-01T07:42:52.707Z","0.13.4":"2024-03-02T20:17:29.169Z","0.14.0":"2024-08-25T22:34:01.020Z"},"bugs":{"url":"https://github.com/decs/typeschema/issues"},"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","homepage":"https://typeschema.com","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"description":"Reusable adapter for TypeBox schemas","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"readme":"<!-- This file is generated. Do not modify it manually! -->\n\n<img src=\"https://typeschema.com/assets/logo.png\" width=\"64px\" alt=\"TypeSchema\" />\n<h1>@typeschema/typebox</h1>\n<p>\n  <a href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/license/decs/typeschema\" alt=\"License\"></a>\n  <a href=\"https://bundlephobia.com/package/@typeschema/typebox\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Ftypebox\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/typebox\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/typebox.svg\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/decs/typeschema/stargazers\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/stars/decs/typeschema\" alt=\"GitHub stars\"></a>\n</p>\n<p>\n  Reusable adapter for TypeBox schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport {Type} from '@sinclair/typebox';\nimport {initTRPC} from '@trpc/server';\n\nimport {wrap} from '@typeschema/typebox';\n\nconst schema = Type.Object({name: Type.String()});\n\nconst t = initTRPC.create();\nconst appRouter = t.router({\n  hello: t.procedure\n    .input(wrap(schema))\n    .query(({input}) => `Hello, ${input.name}!`),\n  //         ^? {name: string}\n});\n\n```\n\nUse it directly or through [`@typeschema/main`](https://github.com/decs/typeschema/tree/main/packages/main)\n\n## Dependencies\n- [`@sinclair/typebox`](https://www.npmjs.com/package/@sinclair/typebox): Required for inference, validation, and serialization (`^0.33.7`)\n\n## API\n\n### Inference\n- `Infer<TSchema>`: Extracts the output type of a schema\n- `InferIn<TSchema>`: Extracts the input type of a schema\n\n### Validation\n- `wrap(schema)`: Returns the wrapped schema with access to its operations\n- `validate(schema, data)`: Returns the validated data or a list of validation issues\n- `assert(schema, data)`: Returns the validated data or throws an `AggregateError`\n\n### Serialization\n- `toJSONSchema(schema)`: Converts the schema into the equivalent JSON schema\n","readmeFilename":"README.md"}