{"_id":"@okfetch/api","_rev":"15-e37bafdbf729b6433d87a4dc1513ab2d","name":"@okfetch/api","dist-tags":{"latest":"0.6.1"},"versions":{"0.1.0":{"name":"@okfetch/api","version":"0.1.0","keywords":["api-client","fetch","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/api@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":"640f1dba5bfdfd628db3d3ede7b44e58a64df6f8","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.1.0.tgz","fileCount":8,"integrity":"sha512-8bvmmxygXfl4OmNzQrvMRDQv27cdZVNwLaBzepIabmLvvAtYEpXdtl3c3UIgwq412SD/lFbtFBhirSb/7wabPQ==","signatures":[{"sig":"MEYCIQDat3FpV1SimNf/gOF6Myq5xVX2q5lyJXsEJOFKTjosRgIhAJsaiQlvFMTaTFS9l932eTWJppP1tEE0voQ9j1llGYPG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40726},"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 typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.1","dependencies":{"@okfetch/fetch":"^0.1.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","@okfetch/fetch":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.1.0_1773584481071_0.31016434167377094","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@okfetch/api","version":"0.1.1","keywords":["api-client","fetch","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/api@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":"76e08c91ef4b78f20a35be7b0a305f2fcdd458a6","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.1.1.tgz","fileCount":8,"integrity":"sha512-8TrMw6/wDtm765YMzaTZbMsW86qI/hTvYKXYh+kohxQgKaTEq6MHxw8xgxr5M8uL00XtHwDMEnRSCnX1eTK0bg==","signatures":[{"sig":"MEUCIQDDxDLXhcUm/dLVkPqzXakKBBDFrYa3KA0cKpyHOiBIHwIgbPE5Pr46m5UkdL55/jLvbmVPZc8+6mdpM1TlUbkIuJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40738},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@okfetch/fetch":"^0.1.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","@okfetch/fetch":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/api_0.1.1_1773656521588_0.4296951233181374","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@okfetch/api","version":"0.1.2","keywords":["api-client","fetch","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/api@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":"1648751e504e79e21f63f5738df12ee76c4a7da4","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.1.2.tgz","fileCount":8,"integrity":"sha512-dODY3FT/YXRrPmgfhLg3+Bv/Kx6rG/CQnJXcuME88mkVWFxeekqDqHs5atNA1dNYbZnX+m8VceOLunCp7HWDSw==","signatures":[{"sig":"MEUCIQCzHUNt0auiufqNVcfjJSrqDZtL3DEe8yD/nyCxYIP/LgIgHOcpC/HtbZ0IAMDwX8KqLX4cGeFYg8hRePDAaoP9Tw0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40738},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@okfetch/fetch":"^0.1.2"},"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","@okfetch/fetch":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/api_0.1.2_1773825379197_0.44248364946308594","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@okfetch/api","version":"0.2.0","keywords":["api-client","fetch","typescript","validation","zod"],"license":"MIT","_id":"@okfetch/api@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":"7a1e1d4306005ec911df30f48c249df8f8cea855","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.2.0.tgz","fileCount":8,"integrity":"sha512-oTAaGBOM8oGRxNKG1Tx7NYYiYu/DRZIsUVw56pUqydq2u3qVkps1g/ikHcb6SbPh65WRoYOMCsbUFWJz3F/mcw==","signatures":[{"sig":"MEUCIQCPq1kA/pzY5fvPCdRUUwKB7/v0rRO0+Psc4hBzGzmgIQIgNBPg9YwJLtXVfvhmhbDO6aLdPyJcP6HsblMGBZFpIPA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40707},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.11.1","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@okfetch/fetch":"^0.2.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","@okfetch/fetch":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.2.0_1773863894790_0.8966794193458527","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@okfetch/api","version":"0.3.0","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"e37ae83372b56e5a379dd9447f9f3532fa37a887","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.3.0.tgz","fileCount":8,"integrity":"sha512-uGJsdrvHNE1NVmfNOgR5mvuQydHW3QLTXjPhr2WwnratMKlNZdDDDJVZEjoPWDyOQynVYxMFhqTm0PmOBjPfng==","signatures":[{"sig":"MEUCIDAYJeylwwNVDyt4/PxbzrqM+eRukj1TfScD4EADk2QzAiEAvu6EVoaUzCrEVxHQEJIlZ4CrXmC5Fmv3eiZrGK9JRRE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":41483},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.12.0","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@okfetch/fetch":"^0.3.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","@okfetch/fetch":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.3.0_1773875773761_0.11601953421217548","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@okfetch/api","version":"0.3.1","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"ec5aa5011fa724d410609e5c005d618625abdec4","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.3.1.tgz","fileCount":8,"integrity":"sha512-0USCIZ+AYJsv6kNhnbIDcRT6v8k+g82mfp4Q1f3/41gyXO3k6dqxtxSCmGR5CkpRRTyqnFMSTkDTImBl4iAJtg==","signatures":[{"sig":"MEQCIBXC2JAvYYKUKsfzSBxgwSpNk2PWnf9t9sVvpMGzpThzAiBS+SumFQ+on02kiTq+27LNVR2TFxTFB1a+eva9oGP3DA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48794},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"11.12.0","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"@okfetch/fetch":"^0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0","@okfetch/fetch":"^0.3.1"},"_npmOperationalInternal":{"tmp":"tmp/api_0.3.1_1774471989597_0.3715834704612826","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@okfetch/api","version":"0.3.2","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"e55225bec6a775a2715ea66f3c3443899bcc48d0","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.3.2.tgz","fileCount":8,"integrity":"sha512-+YmUhDQGfhENXveSR5UxKzBiiLA9xVE93eo+2GShd7lXpxcH4RB4vJIT+YQ0SGeee60/uJwj8TFDTEr/moPM8A==","signatures":[{"sig":"MEQCIDTfL6L+ZDctuMgTOjWQQ+eAiWUXhUNY7PpYOZCPtAZlAiAfEfi2UQ2nzqS+iJhoW8MmJK8nhoCU/3RMUlAaxcP0QQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48794},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0","@okfetch/fetch":"^0.3.2"},"_npmOperationalInternal":{"tmp":"tmp/api_0.3.2_1787564082754_0.48655206751940616","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@okfetch/api","version":"0.3.3","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"3c542710cf852252ba545c5cd18fe11dd5b4394e","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.3.3.tgz","fileCount":8,"integrity":"sha512-wsWQpbKjiCJFQPsKj0IFHxF4QJpUW5SmB0uA2k/n4UO29gei3a0ZknxUWKESYTPZzcnvWDLqap+ZeoJbsgFXdA==","signatures":[{"sig":"MEYCIQCzkd7K1GQQNAh+K5+TWqa5VvayL4F6JIkSAUO6s3VMmQIhALTzJtutM2apnT0qS0N5zwiO7QEVROK+YllOPoDGeVh0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.3.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":48794},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.3.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0","@okfetch/fetch":"^0.3.3"},"_npmOperationalInternal":{"tmp":"tmp/api_0.3.3_1787564656904_0.8887377441204707","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@okfetch/api","version":"0.3.4","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"6b0ea6f2df0aa0f2671794d342b7de84a4b18d27","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.3.4.tgz","fileCount":8,"integrity":"sha512-LLBqTQ0ImoIgPmCbAhSADfq91s5hhxlsGP98cWeyO6Zw/0Iaw7+KqQ3SG6uuMqpLcYNSFR+CaOfwWNp2jcQqPQ==","signatures":[{"sig":"MEYCIQC6qWy3Ax0N5Mub2yLRxE2oN7fI95RBa5hAQDyU+iaCDgIhAI9BhEQCkt2nypmOV7Ekdw7v4PWgASgXXRfJWUFc2rgk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.3.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49169},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.3.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.3.6","@types/bun":"latest","better-result":"^2.7.0","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^2.7.0","@okfetch/fetch":"^0.3.4"},"_npmOperationalInternal":{"tmp":"tmp/api_0.3.4_1788192292307_0.11216526896808365","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@okfetch/api","version":"0.4.0","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"ce2439f3f1646f49f8304220bee47f80a4aba9c2","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.4.0.tgz","fileCount":8,"integrity":"sha512-MHjBRs0uR1BbijNWUVgXDf1T1U/yac6MWpQeikehUCzhPKpQKr2hKuPtn/yAuWaEJEFbiA65AbJ9TnsEGDq/pQ==","signatures":[{"sig":"MEQCIE3EjtA4cMuymFOns1CLQGwpEhqqLZyVqH4kYPmqtxqSAiBieLHGKNa/75BfzGihez+FHCZLHz0upr8H+A5BEbjA4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49210},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^3.0.1","@okfetch/fetch":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.4.0_1788258381441_0.47416111036852593","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@okfetch/api","version":"0.4.1","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"79d68f2f766788d249c5598e8e1e3698d2500a1c","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.4.1.tgz","fileCount":8,"integrity":"sha512-JrMDkdHSynareo/kTpWQTpSUw854P90qBRONCxxWZR7mS4EafnsFWo5Mhj44Zf3P7xtS2wLQj+dL6LpPED4n3Q==","signatures":[{"sig":"MEUCIQCoB9n4ghjNMCLOp/7kmZuPHYj9kSgVPkxKheH6k16BLAIgYYE+jEuXvwsamelqQH/+DmzhnSenSWRmvPwmTb8GIOo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49210},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"typescript":"^5","better-result":"^3.0.1","@okfetch/fetch":"^0.4.1"},"_npmOperationalInternal":{"tmp":"tmp/api_0.4.1_1788343854730_0.17664261715408713","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@okfetch/api","version":"0.4.2","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"9a26064d7c9e21af48783eb3ec2fe63e0e190b26","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.4.2.tgz","fileCount":8,"integrity":"sha512-HW8d/6u7mXK0TvX5J/QTe8QcU6LAMJBWggyIPMd/kSO4vA81UWJALhrQcNkz6NagUVouw603Q/2rBA5S5IvPuw==","signatures":[{"sig":"MEQCICEkMXF1GXcSCGp85uGqjviYhGpctt2AkiI4wRtpm8GRAiBVsjp/Q7atC+1IC6KbcPxjjKf8iugEEViUFz1eR8UyuA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49186},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@okfetch/fetch":"^0.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"better-result":"^3.0.1","@okfetch/fetch":"^0.4.2"},"_npmOperationalInternal":{"tmp":"tmp/api_0.4.2_1788353133662_0.10852381521410792","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@okfetch/api","version":"0.5.0","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"473435437088f9e1c48916c8b6cdb95b1080197e","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.5.0.tgz","fileCount":8,"integrity":"sha512-JBY8Qymap3p9IQmW3cFATjqv9CNNpU1wCfwLIkFcM7MgSUEPTNcwuaDx6GOkYgvmf8I5SU6+ZgOCCsk+R5tBHQ==","signatures":[{"sig":"MEYCIQDqQtThTcJfx1G61DVoAcSga+WKTmjyR1PdEwHzqW+WfQIhAMOfGbBF5gJqfdhgctpAemVkD1B7FHP0ZoZYV6tPhsWq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49661},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@okfetch/fetch":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"better-result":"^3.0.1","@okfetch/fetch":"^0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.5.0_1788421318216_0.04806843471335731","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@okfetch/api","version":"0.6.0","keywords":["api-client","fetch","standard-schema","typescript","validation"],"license":"MIT","_id":"@okfetch/api@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":"abd8ba0454ad282946cb3fd0e486e082e912cf17","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.6.0.tgz","fileCount":8,"integrity":"sha512-2UnxTmtVU051LHmpiL3oh6xbEp3Vc/U6qfyb9hnectGmoH/AzwI2Qe9k+qh12BJvNQO04fE9sXZ9oTx/boabFw==","signatures":[{"sig":"MEYCIQCBYE0ckl3mGDsxcFoLj1jpHiv30wnMhI1v0ShffdmKxgIhAOWwWceC7DAl33X/Wrzlg2LxKWWyrb/Jvpj/6teXlcHo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":51243},"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:347adb28-1550-4958-b910-652d5c6463eb"}},"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@okfetch/fetch":"^0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"better-result":"^3.0.1","@okfetch/fetch":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/api_0.6.0_1788794388962_0.2972520592893173","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"_id":"@okfetch/api@0.6.1","bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"dist":{"shasum":"84a141fce51a6c1b71ccb054cda1ffbd5c4ba099","tarball":"https://registry.npmjs.org/@okfetch/api/-/api-0.6.1.tgz","fileCount":8,"integrity":"sha512-SFwI+0Ltvyb6mFEN+NIsN3/NTkY30ZhOb7QpNuPoGabwwK8z3ReA1BKv9NuZa/qYWYfiil4MoM9WbkjYrfRgSA==","signatures":[{"sig":"MEYCIQCGR0B1Vkrd2GjNSCxUtj40zqrOtQyCNMq/FM8uHj1BhAIhAI9Hi66b07GA3IIyYTcABIEoRSiUcy+dNjVmrZOfLvEx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDZZ6Zjvpbu1xOR7Pf/BEg9e7bINKzV7W9naQNZFQQObAIgVd2bamhlvodZbrBEPovOag4mMnJ26Ibjf/qKPnnhL3w="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@okfetch%2fapi@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":52035},"main":"./dist/index.cjs","name":"@okfetch/api","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:347adb28-1550-4958-b910-652d5c6463eb"}},"homepage":"https://github.com/aldotestino/okfetch#readme","keywords":["api-client","fetch","standard-schema","typescript","validation"],"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"_npmVersion":"12.0.2","description":"A typed API client builder for okfetch based on endpoint schemas.","directories":{},"maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"@okfetch/fetch":"^0.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.5.4","@types/bun":"latest","better-result":"^3.0.1","@standard-schema/spec":"^1.1.0"},"peerDependencies":{"better-result":"^3.0.1","@okfetch/fetch":"^0.6.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/api_0.6.1_1790074037238_0.42555972746495696"}}},"time":{"created":"2026-03-15T14:21:20.936Z","modified":"2026-09-22T10:47:17.636Z","0.1.0":"2026-03-15T14:21:21.255Z","0.1.1":"2026-03-16T10:22:01.737Z","0.1.2":"2026-03-18T09:16:19.337Z","0.2.0":"2026-03-18T19:58:14.946Z","0.3.0":"2026-03-18T23:16:13.909Z","0.3.1":"2026-03-25T20:53:09.768Z","0.3.2":"2026-08-24T09:34:42.881Z","0.3.3":"2026-08-24T09:44:17.029Z","0.3.4":"2026-08-31T16:04:52.416Z","0.4.0":"2026-09-01T10:26:21.602Z","0.4.1":"2026-09-02T10:10:54.890Z","0.4.2":"2026-09-02T12:45:33.797Z","0.5.0":"2026-09-03T07:41:58.344Z","0.6.0":"2026-09-07T15:19:49.094Z","0.6.1":"2026-09-22T10:47:17.315Z"},"bugs":{"url":"https://github.com/aldotestino/okfetch/issues"},"license":"MIT","homepage":"https://github.com/aldotestino/okfetch#readme","keywords":["api-client","fetch","standard-schema","typescript","validation"],"repository":{"url":"git+https://github.com/aldotestino/okfetch.git","type":"git"},"description":"A typed API client builder for okfetch based on endpoint schemas.","maintainers":[{"name":"aldotestino","email":"aldotestino4@gmail.com"}],"readme":"# @okfetch/api\n\n`@okfetch/api` builds typed API clients from endpoint definitions.\n\nIt sits on top of `@okfetch/fetch` and adds:\n\n- schema-defined endpoint trees\n- typed method generation\n- request-side validation for `body`, `params`, and `query`\n- a small `ApiService` helper for class-based usage\n\nUse this package when you have more than a few repeated API calls and want one source of truth for request and response shapes.\n\nEndpoint schemas are library-agnostic as long as they implement Standard Schema v1.\n\n## Installation\n\n```bash\nbun add @okfetch/api @okfetch/fetch better-result\n```\n\n```bash\nnpm install @okfetch/api @okfetch/fetch better-result\n```\n\n## What It Exports\n\nFunctions:\n\n- `createEndpoints`\n- `createApi`\n- `ApiService`\n\nTypes:\n\n- `Endpoint`\n- `EndpointTree`\n- `EndpointCallOptions`\n- `EndpointRequestOverrides`\n- `EndpointFunction`\n- `ApiClient`\n- `OkfetchError`\n- `CreateApiOptions`\n\n## Quick Example\n\n```ts\nimport { createApi, createEndpoints } from \"@okfetch/api\";\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 endpoints = createEndpoints({\n  todos: {\n    get: {\n      method: \"GET\",\n      output: todoSchema,\n      params: z.object({ id: z.number() }),\n      path: \"/todos/:id\",\n    },\n    create: {\n      body: z.object({\n        title: z.string().min(1),\n        userId: z.number(),\n      }),\n      method: \"POST\",\n      output: todoSchema,\n      path: \"/todos\",\n    },\n  },\n});\n\nconst api = createApi({\n  baseURL: \"https://jsonplaceholder.typicode.com\",\n  endpoints,\n});\n\nconst result = await api.todos.get({ params: { id: 1 } });\n```\n\n## Defining Endpoints\n\nEach endpoint can describe:\n\n- `method`\n- `path`\n- `body`\n- `params`\n- `query`\n- `output`\n- `error`\n- `requestOptions`\n- `stream`\n\n```ts\nconst endpoints = createEndpoints({\n  users: {\n    list: {\n      method: \"GET\",\n      output: z.array(z.object({ id: z.number(), name: z.string() })),\n      path: \"/users\",\n    },\n    get: {\n      method: \"GET\",\n      output: z.object({ id: z.number(), name: z.string() }),\n      params: z.object({ id: z.number() }),\n      path: \"/users/:id\",\n    },\n  },\n});\n```\n\n## Creating A Client\n\n`createApi` accepts global transport defaults and applies them to every generated endpoint method.\n\n```ts\nconst api = createApi({\n  baseURL: \"https://api.example.com\",\n  endpoints,\n  headers: { \"x-client\": \"web-app\" },\n  timeout: 5000,\n});\n```\n\nPer-call overrides win over endpoint-level and global defaults.\n\n```ts\nawait api.users.get(\n  { params: { id: 1 } },\n  {\n    headers: { \"x-request-id\": crypto.randomUUID() },\n    timeout: 1000,\n  }\n);\n```\n\nSet `includeResponse: true` in the per-call overrides to receive `{ data, response }` on success.\nThe default result remains the endpoint data directly. For `ApiError`, the same flag populates\n`error.response`.\n\n## Validation Behavior\n\nBy default, `@okfetch/api` validates:\n\n- `body`\n- `params`\n- `query`\n\nbefore the network call is sent.\n\nInput validation failures are returned as `ValidationError` and passed to plugin `onFail` hooks. The network call is not sent, while logging and tracing plugins can still observe the failure.\n\nIt delegates response parsing, retries, streaming, auth, plugins, and error handling to `@okfetch/fetch`.\n\nUseful options:\n\n- `validateInput`\n- `validateOutput`\n- `errorSchema`\n- `shouldValidateError`\n\nWhen `errorSchema` (or an endpoint-level `error` schema) is set, error response bodies are JSON-parsed into `ApiError.data` and validated against the schema by default. Use `shouldValidateError` to limit validation to specific status codes — excluded statuses still get the parsed body, typed by the schema but not validated.\n\n```ts\nimport { validateClientErrors } from \"@okfetch/fetch\";\n\nconst api = createApi({\n  baseURL: \"https://api.example.com\",\n  endpoints,\n  errorSchema: z.object({\n    code: z.string(),\n    message: z.string(),\n  }),\n  // optional: only validate 4xx error bodies\n  shouldValidateError: validateClientErrors,\n});\n```\n\n## Streaming Endpoints\n\nSet `stream: true` on an endpoint to receive a typed `ReadableStream`.\n\n```ts\nconst endpoints = createEndpoints({\n  events: {\n    method: \"GET\",\n    output: z.object({\n      id: z.number(),\n      message: z.string(),\n    }),\n    path: \"/events\",\n    stream: true,\n  },\n});\n```\n\n## ApiService\n\n`ApiService` is a small helper for teams that prefer a class wrapper around a generated client.\n\n```ts\nimport { ApiService, createEndpoints } from \"@okfetch/api\";\nimport { z } from \"zod/v4\";\n\nconst endpoints = createEndpoints({\n  posts: {\n    getById: {\n      method: \"GET\",\n      output: z.object({ id: z.number(), title: z.string() }),\n      params: z.object({ id: z.number() }),\n      path: \"/posts/:id\",\n    },\n  },\n});\n\nclass BlogService extends ApiService(endpoints) {\n  constructor() {\n    super({ baseURL: \"https://jsonplaceholder.typicode.com\" });\n  }\n}\n```\n\n## Relationship To `@okfetch/fetch`\n\n`@okfetch/api` does not replace `@okfetch/fetch`; it composes it.\n\nChoose `@okfetch/fetch` when:\n\n- you only need a few direct requests\n- you want total control over each request\n- you are building your own abstractions\n\nChoose `@okfetch/api` when:\n\n- your app has a shared API surface\n- you want endpoint schemas in one place\n- you want generated, typed methods instead of repeated request objects\n","readmeFilename":"README.md"}