{"_id":"@okfetch/fetch","_rev":"15-f590599c1d3c7e9cf8b31b209c47066b","name":"@okfetch/fetch","dist-tags":{"latest":"0.6.1"},"versions":{"0.1.0":{"name":"@okfetch/fetch","version":"0.1.0","keywords":["fetch","http","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/fetch@0.1.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/okfetch/okfetch#readme","bugs":{"url":"https://github.com/okfetch/okfetch/issues"},"dist":{"shasum":"beed505724cb02f7a71160c0fefb2624ec46c2fa","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.1.0.tgz","fileCount":8,"integrity":"sha512-p1KZb3fQsZZewVOe4vz0OqnOPjzLgeuk+WuJWqRG8jMQwsTD98FvCrCiMVOi/kCO9LxTHzdfbuuRgWAVe4QmYg==","signatures":[{"sig":"MEQCID5nPx3ok84dFOfgI8A4MBSEVzxEC/uZhdtWmpPEy8ZzAiA+ppLmJmYdlvecZLPBklV0+Ezs+xTCT1m5pLYvsxHNJQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132025},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5f1c531687e531981eb409e88f18af41b2a8c299","_npmUser":{"name":"aldotestino","email":"aldotestino4@gmail.com"},"repository":{"url":"git+https://github.com/okfetch/okfetch.git","type":"git"},"_npmVersion":"11.9.0","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.0_1773584457872_0.5721360272804665","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@okfetch/fetch","version":"0.1.1","keywords":["fetch","http","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/fetch@0.1.1","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"4fb4abea1dbae7cc1b9e99774446a13d0acf54ea","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.1.1.tgz","fileCount":8,"integrity":"sha512-56csyUiGi4S8i2KHxXV/bl42VjnHwTWAh1Eu/zz8bSPtkCH8nq/iT5tq7a/hlAOynRf7EfaP4qDVJSU4DilRzg==","signatures":[{"sig":"MEYCIQDsdqOrWojDV13Hqn7kY997U5fCmN2kYeOF6Sxp6SjUtgIhAIFv3zEAK8EwilNsHkw9SSSQ/HVEa+FUMd/hroVq1BgB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":133483},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"6cf55a172e52cd934e67b45f3e017b24170654f6","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.1_1773656521595_0.9624221328781357","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@okfetch/fetch","version":"0.1.2","keywords":["fetch","http","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/fetch@0.1.2","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"9a8fb21a0ff8e03926afbc9ca68538038bda8b0d","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.1.2.tgz","fileCount":8,"integrity":"sha512-c036WjzuJg1X5P/av4kdnfCZnWXfKDDRGTJBdGA5tnLSf9vjqMmImQzH6zcIOQDXV1LB8wdTfBLnQUb6JiQyWw==","signatures":[{"sig":"MEUCIEG6JwHBA+uuryswC6+RV4FhatKxdPJJfS3eL/VG0hOTAiEA9CPBefTbYLvyAryLFRshqaFcBE8hhm3GbfwXqJ9jZa8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":133903},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"c94a46b82ae90935beb336012d958f0b1400d3d9","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.1.2_1773825379379_0.42182231533015124","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@okfetch/fetch","version":"0.2.0","keywords":["fetch","http","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/fetch@0.2.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"49f9bed5f4d83213ca3e755192b804ed73db0371","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.2.0.tgz","fileCount":8,"integrity":"sha512-7qO118jlLRqdkhSJ4vCbMi1e58sSsDfcvg7IXZ4wNJ2mDbmr2+yDvYgw/bwEaUFwT3QlhGtW2UU3qeTUYUD+8A==","signatures":[{"sig":"MEYCIQDaCCn8dFZ6ldmA8NmfCkm/KRtBsjO+bA3SjUyK6QXO0QIhAJaLTpZmkBlsRk7eWdkli+TkZdBVRyrfmbLJI6fWQvTR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":135915},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"2aab6b3578d02cd29a27fad48802b2c47b8dcd8f","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"zod":"^4.3.6","typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.2.0_1773863894732_0.22587412633367032","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@okfetch/fetch","version":"0.3.0","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.3.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"f70c30d2f4d8d91bf468601a2b825d56ade5a1a5","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.3.0.tgz","fileCount":8,"integrity":"sha512-GVJQrej/6zYDbvK9RanleRiqGTLeGX86qOTNJGkFybZfffXsoLb+niXBcOw9m1WbF3rjo5NHMqRoneA4fuD1YA==","signatures":[{"sig":"MEUCIQD20dsSFJifp561l0DdZkTyi1SqUxES1AnpaQuaaLL7SAIgTE/RH7PmVjLG/PvfjUGvpQBWY+3XArd72acZxZxp90Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":146833},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"d35e2f3b496f2b0b3d60f73e9961aa0acb6eb3b5","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.12.0","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.0_1773875773267_0.12957622402446","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@okfetch/fetch","version":"0.3.1","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.3.1","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"c756fdcce76878a7cd798774667191d3037e880a","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.3.1.tgz","fileCount":8,"integrity":"sha512-HcXIbh4FAQV5iwYv7sdyx1DKkhrdb9atgATikWYcGU4sf6jNt5F9abm84g2U3Cz+bp4TLKB+fCryV+jXlMzkcw==","signatures":[{"sig":"MEYCIQDKtKSkYeH09aMT0TWkZWr+N5zos18095NhB38DLxXOjgIhAOW+NcWgCigaV+TgABi+Blo0hw82kVNpeCIZF5HQlG7l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150974},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"7a625fea2fbadd60a545c01db074ef2163afd0de","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.12.0","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.1_1774471989447_0.6273517926589285","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@okfetch/fetch","version":"0.3.2","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.3.2","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"62d88fdc48069b4e099304cb8bb4fd1d1dade376","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.3.2.tgz","fileCount":8,"integrity":"sha512-NN5Bh3S8uq4MznKZK4HiaPYkcjLBF+YJhIbllxZmFE0xJzn8B9rafoDSHMkYgBk3TW3k25lhBTokxcMq5+SKDA==","signatures":[{"sig":"MEYCIQDII5BE9+hdNtQnS6nsL3JM+bdhAp7VViO9ULE8sXCItQIhAMxM2Gwm7VilyxBcdiFp+gB/S3Wq6IxJgq0gg1U0wNqc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":152430},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"adae2460720bccf65e26c5664a14a3b707537e90","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.2_1787564083125_0.7496624816079536","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@okfetch/fetch","version":"0.3.3","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.3.3","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"cf17b86d5671723806748dc6b4bae378aa7083fc","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.3.3.tgz","fileCount":8,"integrity":"sha512-7tT7KnIEEa8Cdt1VI7rpYUNX3uiaWY1Y0ZASXlIAQlWeiohh40c2DgIpXIoMjqCd1nga/UW8G3sbZgFvJNAt7Q==","signatures":[{"sig":"MEUCIHnsDooWNAfLBJA6OoKLTu1GuWQ8RgZLQ/JlXBtB28ASAiEAtgqROzScNGMK94afGWJAnfE5y9YNvqsz8VNdZySm+04=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.3.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":152450},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"9810863a9e6e7b9090325787c1842c48cd929356","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.3_1787564656609_0.05985770558321235","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@okfetch/fetch","version":"0.3.4","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.3.4","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"ca7e3a8c8531a8910860296f267e21a08ca5a70d","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.3.4.tgz","fileCount":8,"integrity":"sha512-DwKlQovfyQW7mwgUyaukIB9IUzYBYYNad7M2h+iw2/iuRzAWy8ugbiZ1bowGijfr+4YPj7DsMgmMW8STCOXPLA==","signatures":[{"sig":"MEUCIBRSjgNUXBn1KiivtbjNGXPdgxfhck1xLS53dkkS+hxsAiEA8N7aGArNzjcoeo2uB+qGLOZab277gAdE0V8c7bB3kbc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.3.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":154467},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"4d2d916fb8d339c2dd71b0167bdb12f2a9f1629e","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.3.4_1788192292227_0.9407012816783393","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@okfetch/fetch","version":"0.4.0","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.4.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"c29171e19da4f49ad09dca596fa54baa73c9037c","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.4.0.tgz","fileCount":8,"integrity":"sha512-qsQITgydLw77vVK8W0X1CcYsMBaKMORYHd9JhX2TEute3JV7QuS/ZXi7lTWdLrZi4FouYc9k5ay0xVh32kiGIQ==","signatures":[{"sig":"MEQCIFXs/4KtaK1dcj6SklIl3KWNIS0cvZ6ft39utmYyZdxKAiBzQVcm/e88W5PXCV3lEx476B4qCmV+zU9KgIGI9r+1RQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155225},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"f3d67d8ec1933a4c04ff12e948d4f843114d7f4e","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"typescript":"^5","better-result":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.4.0_1788258381601_0.9402555425640415","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@okfetch/fetch","version":"0.4.1","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.4.1","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"748486e51bd45c70d598fb7bb4e3653b607eab17","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.4.1.tgz","fileCount":8,"integrity":"sha512-R/FXFsdM/01AgNFWj0Te77V4xZk7rtFiU+LJZEEIyAY71MaRPRBTiE9/roXhy2JWtFCbL5uiyYsLs2YcriJ/bw==","signatures":[{"sig":"MEQCIALpejcTMgG5wEBXlSpkgRoofIL/gj9SWr7USzYpNhY+AiA6si31JtZk5XlzgtiRNBBJg/RAC8uJ8Pn/QUbJiuf5pA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155225},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"6863c3fd7bf528e174e567604cc71ea31f2e1097","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"typescript":"^5","better-result":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.4.1_1788343854508_0.689933730943167","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@okfetch/fetch","version":"0.4.2","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.4.2","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"37ec240f51df799c59caef0c7d230dae178a173f","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.4.2.tgz","fileCount":8,"integrity":"sha512-a9jNnP9e8oFhYQBb57vt5zMiRwn5Bv3LGmB2ZB54jE4z6EuMarl4E8Ppex/O/w3V0d9M3kuCN014eBGxYnVPtQ==","signatures":[{"sig":"MEQCIBmDxrNCSJfQ2RPwb81l+Vq8zXk9cR5h9bzHKExc5FXLAiB9+SNicib2hHk4ONAGf05GPzyHzdGyh6XQyGsRmIA8zQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155201},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5b07cadea854718fbf087eebedf2aa9160c9b747","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"better-result":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.4.2_1788353126273_0.21738105683737619","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@okfetch/fetch","version":"0.5.0","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.5.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"e14d6b0522f3581ab6b392b5b4b83e11f94bff75","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.5.0.tgz","fileCount":8,"integrity":"sha512-QzELfP3+rMeAO64Ypmp90wNcRuF5p1KeaEzwYfYM2CVSD686jEHGsm+6ifWcsO7DDQ8ynWgwtiG2hGjA2x3q4g==","signatures":[{"sig":"MEQCIA6FjvxfVwMj8fe4z/W1G5kRAa4+gk5/FN7D0ZlJ7L9hAiAqrR08O2eGA9ub7cQzTrY9YPnwI6IdGl3KucI/tr4vEw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156969},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"63360501f0b6d146da89416e549d2eaeb1d6c59e","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"better-result":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.5.0_1788421312841_0.40617415283779446","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@okfetch/fetch","version":"0.6.0","keywords":["fetch","http","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/fetch@0.6.0","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"homepage":"https://github.com/aldotestino/okfetch#readme","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"1d13ea43897ffbc91253b8fa3126cbb0d71ec4d6","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.6.0.tgz","fileCount":8,"integrity":"sha512-3Iz05kFXzVX32g/QTikLA4yr2clOOTRpNztJ0xoSeFJYqQ0CCsTv2LIJRpAVoTtb9r2MTbVSE9uIzQVZKJjRjw==","signatures":[{"sig":"MEUCIQDOWUa8Vn6tNwR0atdN5BqnykSdgLQstC03JV3BatOHsgIgcDI/VHhMtIbUg+kP8FNO1Hs9oWT+gE6gQa2lbjBvOuc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":166939},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"843e04f26b3f3f9627af480f92dbe90fb2800adc","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"better-result":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/fetch_0.6.0_1788794382774_0.0059693972505794335","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"_id":"@okfetch/fetch@0.6.1","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"4bdae4537f58f8dbbaea9941c15972e93390c828","tarball":"https://registry.npmjs.org/@okfetch/fetch/-/fetch-0.6.1.tgz","fileCount":8,"integrity":"sha512-mXBN4eB5T//3GSwJzwKORdzdDcOG9THyqb8IkAbgtB5ShHjwcPDeqXzrIpscXC840aIgW+5Gi04QSuXOWKvAgQ==","signatures":[{"sig":"MEUCIHjQsM3dkuCpr9w+bwszjVm9GsRYu5hVCrfCwQI9tJC5AiEArq3Pb9T5mpl9O1hToQf7gBYlxhZ1rKZEDEflvRZnzuY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBewwwCDYVjZLzup4kUOnwBda72Po+ogHJijnKb94W8DAiEAzca/jR7KezefEypsYeSX8rePXdW4ot1bU22Blj8ZY8g="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2ffetch@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":166939},"main":"./dist/index.cjs","name":"@okfetch/fetch","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"e21d57170cb1600242c034dc72d4d2016410fe9a","license":"MIT","version":"0.6.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a60aa27a-0798-4b62-a404-13ff39b0eaca"}},"homepage":"https://github.com/aldotestino/okfetch#readme","keywords":["fetch","http","standard-schema","typescript","validation"],"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","directories":{},"maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@standard-schema/spec":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1"},"peerDependencies":{"better-result":"^3.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch_0.6.1_1790074082320_0.13385056346356583"}}},"time":{"created":"2026-03-15T14:20:57.731Z","modified":"2026-09-22T10:48:02.783Z","0.1.0":"2026-03-15T14:20:58.015Z","0.1.1":"2026-03-16T10:22:01.738Z","0.1.2":"2026-03-18T09:16:19.531Z","0.2.0":"2026-03-18T19:58:14.891Z","0.3.0":"2026-03-18T23:16:13.433Z","0.3.1":"2026-03-25T20:53:09.618Z","0.3.2":"2026-08-24T09:34:43.269Z","0.3.3":"2026-08-24T09:44:16.753Z","0.3.4":"2026-08-31T16:04:52.407Z","0.4.0":"2026-09-01T10:26:21.732Z","0.4.1":"2026-09-02T10:10:54.658Z","0.4.2":"2026-09-02T12:45:26.394Z","0.5.0":"2026-09-03T07:41:52.981Z","0.6.0":"2026-09-07T15:19:42.917Z","0.6.1":"2026-09-22T10:48:02.393Z"},"bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"license":"MIT","homepage":"https://github.com/aldotestino/okfetch#readme","keywords":["fetch","http","standard-schema","typescript","validation"],"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"description":"A type-safe fetch wrapper with validation, retries, plugins, and streaming.","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"readme":"# @okfetch/fetch\n\n`@okfetch/fetch` is the transport core of the okfetch ecosystem.\n\nIt wraps the standard `fetch` API with:\n\n- `Result`-based error handling via `better-result`\n- Standard Schema-compatible response validation\n- request retries and timeouts\n- auth helpers\n- lifecycle plugins\n- SSE-style stream parsing\n\nIf you want typed HTTP calls without building a full generated client, this is the package to start with.\n\n## Installation\n\n```bash\nbun add @okfetch/fetch better-result\n```\n\n```bash\nnpm install @okfetch/fetch better-result\n```\n\n## What It Exports\n\nFunctions:\n\n- `okfetch`\n- `validateClientErrors`\n- `validateAllErrors`\n\nErrors:\n\n- `FetchError`\n- `TimeoutError`\n- `ApiError`\n- `ParseError`\n- `ValidationError`\n- `PluginError`\n\nTypes:\n\n- `OkfetchOptions`\n- `OkfetchError`\n- `OkfetchPlugin`\n- `OkfetchPluginHooks`\n- `OkfetchSuccess`\n- `RetryOptions`\n- `Auth`\n\n## Quick Example\n\n```ts\nimport { okfetch } from \"@okfetch/fetch\";\nimport { z } from \"zod/v4\";\n\nconst todoSchema = z.object({\n  completed: z.boolean(),\n  id: z.number(),\n  title: z.string(),\n  userId: z.number(),\n});\n\nconst result = await okfetch(\"https://jsonplaceholder.typicode.com/todos/1\", {\n  outputSchema: todoSchema,\n});\n\nresult.match({\n  err: (error) => console.error(error._tag, error.message),\n  ok: (todo) => console.log(todo.title),\n});\n```\n\n## Request Options\n\n`okfetch(url, options)` accepts standard `fetch` options plus okfetch-specific behavior:\n\n- `outputSchema`\n- `apiErrorDataSchema`\n- `baseURL`\n- `params`\n- `query`\n- `body`\n- `auth`\n- `timeout`\n- `stream`\n- `validateOutput`\n- `shouldValidateError`\n- `includeResponse`\n- `plugins`\n- `retry`\n- `fetch`\n\nAny schema object that implements Standard Schema v1 can be used for `outputSchema` and `apiErrorDataSchema`.\n\nSet `includeResponse: true` on an individual call when you need response metadata. Successful\nresults then contain `{ data, response }`; by default they continue to contain the parsed data\ndirectly. `ApiError.response` is also populated when the flag is enabled.\n\n```ts\nconst result = await okfetch(\"https://example.com/todos/1\", {\n  includeResponse: true,\n  outputSchema: todoSchema,\n});\n\nif (result.isOk()) {\n  console.log(result.value.data, result.value.response.status);\n}\n```\n\n### URL building\n\nYou can pass a fully qualified URL directly, or combine a relative path with `baseURL`.\n\nPath params are replaced from `params`, and query strings are built from `query`.\n\n```ts\nawait okfetch(\"/users/:id\", {\n  baseURL: \"https://api.example.com\",\n  method: \"GET\",\n  params: { id: 42 },\n  query: { include: [\"teams\", \"profile\"] },\n});\n```\n\n### Validation\n\n`outputSchema` validates successful responses:\n\n```ts\nawait okfetch(\"https://api.example.com/me\", {\n  outputSchema: z.object({\n    id: z.string(),\n    email: z.string().email(),\n  }),\n});\n```\n\nProviding `apiErrorDataSchema` parses structured error bodies into `ApiError.data`, validated against the schema by default:\n\n```ts\nawait okfetch(\"https://api.example.com/me\", {\n  apiErrorDataSchema: z.object({\n    code: z.string(),\n    message: z.string(),\n  }),\n});\n```\n\n`shouldValidateError` limits validation to specific status codes. Statuses it excludes still get the JSON-parsed body on `ApiError.data`, just without validation — the schema then only types the data. When validation runs and fails, the raw parsed body is kept on `data` instead of being dropped.\n\n```ts\nimport { validateClientErrors } from \"@okfetch/fetch\";\n\nawait okfetch(\"https://api.example.com/me\", {\n  apiErrorDataSchema: z.object({\n    code: z.string(),\n    message: z.string(),\n  }),\n  // only validate 4xx responses; 5xx bodies are parsed but not validated\n  shouldValidateError: validateClientErrors,\n});\n```\n\n### Retries\n\nSupported strategies:\n\n- `fixed`\n- `linear`\n- `exponential`\n\n```ts\nawait okfetch(\"https://api.example.com/me\", {\n  retry: {\n    attempts: 3,\n    initialDelay: 100,\n    strategy: \"exponential\",\n  },\n});\n```\n\n### Auth\n\nBuilt-in auth shapes:\n\n- `{ type: \"basic\", username, password }`\n- `{ type: \"bearer\", token }`\n- `{ type: \"custom\", prefix, value }`\n\n```ts\nawait okfetch(\"https://api.example.com/me\", {\n  auth: {\n    type: \"bearer\",\n    token: process.env.API_TOKEN ?? \"\",\n  },\n});\n```\n\n### Plugins\n\nPlugins are a core extension point.\n\n```ts\nimport type { OkfetchPlugin } from \"@okfetch/fetch\";\n\nconst plugin: OkfetchPlugin = {\n  name: \"timing\",\n  version: \"1.0.0\",\n  hooks: {\n    onRequest(context) {\n      console.log(\"->\", context.method, context.url.toString());\n      return context;\n    },\n    onFail(_context, _response, error) {\n      console.error(error._tag, error.message);\n    },\n  },\n};\n```\n\nAvailable lifecycle hooks:\n\n- `init`\n- `onRequest`\n- `onResponse`\n- `onSuccess`\n- `onFail`\n- `onRetry`\n\n`onFail` runs for every failure after the request context is built: transport, timeout, API, parse and validation errors, plus errors thrown by `onRequest` or `onResponse` hooks and failures reading the response body. `init` failures happen before a request context exists and are returned without calling `onFail`.\n\n### Streaming\n\nSet `stream: true` to receive a `ReadableStream`.\n\n```ts\nconst result = await okfetch(\"https://example.com/events\", {\n  stream: true,\n  outputSchema: z.object({\n    id: z.number(),\n    message: z.string(),\n  }),\n});\n```\n\nWhen an `outputSchema` is present, each SSE `data:` chunk is parsed and validated independently.\n\n## Error Handling\n\n`okfetch` never throws expected HTTP, parsing, timeout, or validation failures from the request API itself. Instead it returns tagged errors inside the `Result`.\n\nUse `match` when you want explicit branching:\n\n```ts\nresult.match({\n  err: (error) => {\n    if (error._tag === \"ApiError\") {\n      console.error(error.statusCode, error.data);\n    }\n  },\n  ok: (data) => console.log(data),\n});\n```\n\n## Related Packages\n\n- `@okfetch/api` builds typed API clients on top of this package\n- `@okfetch/logger` provides a ready-made logging plugin\n","readmeFilename":"README.md"}