{"_id":"@typeschema/effect","_rev":"5-92761219861eee0b2a1a3ae53352fd68","name":"@typeschema/effect","dist-tags":{"latest":"0.14.0"},"versions":{"0.13.0":{"name":"@typeschema/effect","version":"0.13.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/effect@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":"8ff31373262f1ee861e85f3479b0235aa4c41396","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.13.0.tgz","fileCount":7,"integrity":"sha512-KegN0igLf9a+6QNC6az4pG5x2YdH8M5gkKZh0cSzgIyowpnND8yRnmNMkfUYPSGnRoaf4meWcw6MCI7GkAGdNA==","signatures":[{"sig":"MEQCIHMWsnzvo/A9fw08b1zst0KqofB4iCgI/NyzAc1uEuVfAiBUpPpTmFhy/ozgrGWlAeTtAwjXxkGd29BKu4ExTo6Ryg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10809},"main":"dist/index.js","_from":"file:typeschema-effect-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/fcd0416b1d82c15645e18adc4b3d3d9c/typeschema-effect-0.13.0.tgz","_integrity":"sha512-KegN0igLf9a+6QNC6az4pG5x2YdH8M5gkKZh0cSzgIyowpnND8yRnmNMkfUYPSGnRoaf4meWcw6MCI7GkAGdNA==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Effect schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.0","dependencies":{"@typeschema/core":"0.13.0"},"//description":"This field is manually maintained.","_hasShrinkwrap":false,"devDependencies":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"peerDependencies":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"effect":{"optional":true},"@effect/schema":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/effect_0.13.0_1708584796716_0.5052698963362987","host":"s3://npm-registry-packages"}},"0.13.1":{"name":"@typeschema/effect","version":"0.13.1","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/effect@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":"d9b25f5f1d6da0f6844b16deaecd4507016fe52f","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.13.1.tgz","fileCount":7,"integrity":"sha512-9CgvMF/w6q5Mq/Jt4ABikDWSQ6jqJxIFGkoK2HaMAtpKTBA0v+HxQ4faWABT+mocOkETP9uPpM6+uvA4BTw18A==","signatures":[{"sig":"MEUCIDqhugpq8kJxedeNcg437nYc405D+3oUQsKIeJmn/0zHAiEAkEsl0XBBjC0RJrlKGCgjGU8ZOpv5iRWoEOdqN70Zp0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10993},"main":"dist/index.js","_from":"file:typeschema-effect-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/779001ad1d2732ed2124e2493bca3f6a/typeschema-effect-0.13.1.tgz","_integrity":"sha512-9CgvMF/w6q5Mq/Jt4ABikDWSQ6jqJxIFGkoK2HaMAtpKTBA0v+HxQ4faWABT+mocOkETP9uPpM6+uvA4BTw18A==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Effect 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":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"peerDependencies":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"effect":{"optional":true},"@effect/schema":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/effect_0.13.1_1708712690953_0.1291410101152093","host":"s3://npm-registry-packages"}},"0.13.2":{"name":"@typeschema/effect","version":"0.13.2","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/effect@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":"4b0d9cd709b5720a9dda107b020fa5ad469ae466","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.13.2.tgz","fileCount":7,"integrity":"sha512-Khie844ZQVIFPHvD+QqO098S/1toqqWCpPq/WZanw/OyOLx8J9fwtyAbkYPSxye4QB6Y3EORh1EvufWYmA1lBA==","signatures":[{"sig":"MEQCID8wBBPQDRxnWi70rz3Pwy3BM618aTrH3xQ1jJzoi+10AiAFKs782+ZRe7obuJbOY8zswCGl9z5OSL77dS43eJKfmw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11073},"main":"dist/index.js","_from":"file:typeschema-effect-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/7952b1b5d27bb91e9e3e7fecb33ac768/typeschema-effect-0.13.2.tgz","_integrity":"sha512-Khie844ZQVIFPHvD+QqO098S/1toqqWCpPq/WZanw/OyOLx8J9fwtyAbkYPSxye4QB6Y3EORh1EvufWYmA1lBA==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Effect 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":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"peerDependencies":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"effect":{"optional":true},"@effect/schema":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/effect_0.13.2_1709024739096_0.39471940160229857","host":"s3://npm-registry-packages"}},"0.13.3":{"name":"@typeschema/effect","version":"0.13.3","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/effect@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":"2b84e56ffa2395cdc6ee403d35df411a72a21f81","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.13.3.tgz","fileCount":7,"integrity":"sha512-WioWctLRMYl7tVYQ6bBMXlAsXddbYolSo+Aj+O//2o6wF9Aiu8pt3QJAba2oqAHJT6aG6yX2AwPjz46rfCZQKw==","signatures":[{"sig":"MEYCIQDIFMp/BOlF/p6FJvib8jNrO3J292iZH5Pf4fkzyAk5XQIhAO5jDG+X7sYY3mlEQHp/QScHzcXhX6pb4CThrbPtCZHO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12536},"main":"dist/index.js","_from":"file:typeschema-effect-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/98e9306b429cc5794b4825b8deb80a3b/typeschema-effect-0.13.3.tgz","_integrity":"sha512-WioWctLRMYl7tVYQ6bBMXlAsXddbYolSo+Aj+O//2o6wF9Aiu8pt3QJAba2oqAHJT6aG6yX2AwPjz46rfCZQKw==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Effect 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":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"peerDependencies":{"effect":"^2.1.2","@effect/schema":"^0.60.6"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","effect":"Required for inference and validation","@effect/schema":"Required for inference and validation"},"peerDependenciesMeta":{"effect":{"optional":true},"@effect/schema":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/effect_0.13.3_1709278972428_0.951760299591947","host":"s3://npm-registry-packages"}},"0.13.4":{"name":"@typeschema/effect","version":"0.13.4","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/effect@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":"ba9a19ad46400f0544ec0b9b9271409169ee1a5a","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.13.4.tgz","fileCount":7,"integrity":"sha512-CiU/10jpTaNbhLeU1Gx1O97EcFQZ5TxqcN1CUdCyn5jfraiHoysCyhRTZ73CaEpF+0s1YSwA25RD7kxf5pz7+w==","signatures":[{"sig":"MEUCIGU1abT1M7HjZVvOudLfdmeRKt6JXkRwz1edsAWcy72HAiEAstKexZ1rvC/8DDmSPdd8nNpo6woKsqzvasi5wCE1R7A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14456},"main":"dist/index.js","_from":"file:typeschema-effect-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/713988c544aa134f4c46d31925aafac8/typeschema-effect-0.13.4.tgz","_integrity":"sha512-CiU/10jpTaNbhLeU1Gx1O97EcFQZ5TxqcN1CUdCyn5jfraiHoysCyhRTZ73CaEpF+0s1YSwA25RD7kxf5pz7+w==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for Effect 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":{"effect":"^2.4.1","@effect/schema":"^0.63.2"},"peerDependencies":{"effect":"^2.4.1","@effect/schema":"^0.63.2"},"//devDependencies":"This field is manually maintained.","//peerDependencies":{"//":"This field is manually maintained.","effect":"Required for inference and validation","@effect/schema":"Required for inference, validation, and serialization"},"peerDependenciesMeta":{"effect":{"optional":true},"@effect/schema":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/effect_0.13.4_1709410648978_0.12647418191889326","host":"s3://npm-registry-packages"}},"0.14.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/effect","//version":"This field is manually maintained.","version":"0.14.0","//description":"This field is manually maintained.","description":"Reusable adapter for Effect 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":{"@effect/schema":"^0.71.1","effect":"^3.6.5"},"//peerDependencies":{"//":"This field is manually maintained.","@effect/schema":"Required for inference, validation, and serialization","effect":"Required for inference and validation"},"peerDependencies":{"@effect/schema":"^0.71.1","effect":"^3.6.5"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"@effect/schema":{"optional":true},"effect":{"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/effect@0.14.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-4agPuoqKgWeZ00SGnkQ5x6FUv2yCWqv/ZcMQlB2zlsJcdWBcbPZKG6xI20RMjXoDck4FTIE4Xd/xC87syziBoA==","_resolved":"/tmp/88af817aeef0c212aa0ce893e12d1598/typeschema-effect-0.14.0.tgz","_from":"file:typeschema-effect-0.14.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-4agPuoqKgWeZ00SGnkQ5x6FUv2yCWqv/ZcMQlB2zlsJcdWBcbPZKG6xI20RMjXoDck4FTIE4Xd/xC87syziBoA==","shasum":"8ac28ff45dc88defcad1f8d5141c1f836e1fa109","tarball":"https://registry.npmjs.org/@typeschema/effect/-/effect-0.14.0.tgz","fileCount":7,"unpackedSize":13536,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVB8vXGQCR/Ph3PJ49j0UkBoICB2oDZghKbs4XmVSCnAiATHAIlN7k9/Va/iiOukBNamUXNFSvWCTiHsIC5tnsQHA=="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/effect_0.14.0_1724625235476_0.40404716363916826"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-22T06:53:16.643Z","modified":"2024-08-25T22:33:55.839Z","0.13.0":"2024-02-22T06:53:16.897Z","0.13.1":"2024-02-23T18:24:51.085Z","0.13.2":"2024-02-27T09:05:39.253Z","0.13.3":"2024-03-01T07:42:52.591Z","0.13.4":"2024-03-02T20:17:29.125Z","0.14.0":"2024-08-25T22:33:55.632Z"},"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 Effect 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/effect</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/effect\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Feffect\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/effect\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/effect.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 Effect schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport * as S from '@effect/schema/Schema';\nimport {initTRPC} from '@trpc/server';\n\nimport {wrap} from '@typeschema/effect';\n\nconst schema = S.struct({name: S.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- [`@effect/schema`](https://www.npmjs.com/package/@effect/schema): Required for inference, validation, and serialization (`^0.71.1`)\n- [`effect`](https://www.npmjs.com/package/effect): Required for inference and validation (`^3.6.5`)\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"}