{"_id":"openapi-typescript-fetch","_rev":"11-c3090c7c2ec8b4968b02d52406b4edc3","name":"openapi-typescript-fetch","dist-tags":{"latest":"2.2.1"},"versions":{"1.0.0":{"name":"openapi-typescript-fetch","version":"1.0.0","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"ISC","_id":"openapi-typescript-fetch@1.0.0","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"6f35085d399c827b428fd984e1a01a2fd588caf9","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.0.0.tgz","fileCount":20,"integrity":"sha512-pmpU7Aky6q+X5w6Ro5JKb3r5TbqoNhQfvNFhXWXR2Db7vQjp0VVP/tx2YvPTXJw72QZqi3RDIdnGr+8YIVDSNw==","signatures":[{"sig":"MEQCIAjOhN12H8xSbK8PQajMlK86i/Ord+3PG4rDY6pqokAuAiBZfoMnjHntfpWFVZbLhgKCVXXEKFMvVrahE8GHqr6+nA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40889},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"081cb2226a0dbf8918c3eef92ded9d686b209438","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.0.0_1635126264565_0.003946227383241796","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"openapi-typescript-fetch","version":"1.0.1","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"ISC","_id":"openapi-typescript-fetch@1.0.1","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"09f16af25212d104c02475c4994043859346890f","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.0.1.tgz","fileCount":20,"integrity":"sha512-GTfteTlNhFfph+t+95F/Q1FGkJSNPGZGvZSuBj7M4x2hMfgAFrV2Jfv3gwyvc/ld70JEcrew6OP2zVRrIUqLnQ==","signatures":[{"sig":"MEQCIAmAaxUlpMrc2HfwmsYAu6c3lGZ+rjumzYOzNLguZceqAiASoesHZfYlIJCVsy1HneaFeD4IPle9qpoHtiiVXvKBvQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41279},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"7e3c452b858ae2fac0a7a097b019ee5f153a71b9","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.0.1_1635257812302_0.0839231247265746","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"openapi-typescript-fetch","version":"1.1.0","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"ISC","_id":"openapi-typescript-fetch@1.1.0","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"e3a7977e0fbb7749107765a0d69766450314cddd","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.0.tgz","fileCount":20,"integrity":"sha512-6V4H4KgGz92f5XqC0243YOfpqVKVEiX0jouQDz1WDXfPfDRSykOnUZhTz6eAZfDmkthKQ5a6OMpE91mV8F82Ow==","signatures":[{"sig":"MEUCIQDfz66OpLAQMC4t2Jx6FlIiLM3HUFzC1XpKhUr+4+NOBgIgRFCstabzJDi4FPdQKCKcr7I3NgmLq7ynSvkqoPcsyf4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46808},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"a86fc4272c292543002036a9b7e3a6e747d1cbc4","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.1.0_1635556507350_0.04985320501034862","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"openapi-typescript-fetch","version":"1.1.1","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@1.1.1","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"aa1dd436cfb5645018301bb937a0f0ae93995471","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.1.tgz","fileCount":21,"integrity":"sha512-1eUPQvKGhWjvIlrj9On2rTmUUTIVIJ98HOrk9z9zdeXpsDhYQjlcJdihM8Iauq/e7t2SvsktWK2xDaz7w/JUvg==","signatures":[{"sig":"MEQCIESXOyX8UU2+8EyByfkrsymd4Z6FS+iy9fvlWZZFtYywAiAECOferBHL4/DE8VGApGJEGMP8wrHe5ObUZTyEy5KC2w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlI6XCRA9TVsSAnZWagAAkNsP/1VoMcoPsWXX5xKdB2OE\nhMid3YdlWyGyw4L0d6oU2s8Sl6lflbUxtTe7p96blBd+xocsZ7HA6AFHnaf6\nWTEdORS/7Lkf5BSPEhzS2hnwFPUy48bN873nSD/c7tLAHxyLwAbkjQ6lf1bs\n54qffvGyu8yWWCPv3t1W/qH3CE1VgKeDO2YKdDCDtBSC0j+QV9phK6c6TETi\nJphXCg67VxSQO85akDmdQVyr0/JWJHOCa/8m8X9EfA/cvAqRiPC2Y7Ue73aq\n71qa2ILN1mkaJrSTO/632DYP1tGxuDQfviargpPkoM8F8SXIblcZwsaQbd/6\njQh/+XlQGW+iZ1oQ4z+QeHJjeMhYximKzjuKOUOuG81cXUGJhyxjx//hijpd\nWfW9H8+A55oOOf6zTZKHCqhWyDA/zV47wFtuelOxg6g2iOj9LoCVuocSg86H\noDU96ThHSb480Wl9UNW4Y4YiUa4/QKuo2dQaWX0dyiQ26bIg85BxkmloZtxR\nTMMBg8U+kctv8eKJPOGjWvQWFITTp4jqpnJC6sG3Er6GFiCC1X7GzXdxW/lT\nH+JPMF4lBAwkVgRYQYyb83jcARlFdEjUTjzsGBdlE5/7mevH/DQEKB0/t+qN\nq9qGJJDfQH7+v2z2RGe1ACKbGAVVzTttXL2IAVUKIGXaO1XsrKpR28OoJOHe\nfEZs\r\n=gQBo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"90dded8b2f7560923effe117d4f9643b1020da7b","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.1.1_1637125783013_0.04419305100450166","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"openapi-typescript-fetch","version":"1.1.2","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@1.1.2","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"faeb8fed21d7a293884ce66cbf45d8cf6595e928","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.2.tgz","fileCount":21,"integrity":"sha512-ojKpHX3DNcy7iBHlRAl2If8VBkhHI6hebHXyktNzFJlDRu6JCIUHR/hLXNwjD9WdDUB+gspzg3yLku3wOuhm0A==","signatures":[{"sig":"MEYCIQCRLeLVTCho5HK/pkkZXSAlj1aDw6k8+6X6Fy1QU8MQUwIhAKDF2nkApzl+iAAPiyR6XKZ22E1X8hQJM9pUuV8kIgLJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8AzWCRA9TVsSAnZWagAAe4IP/A69+naTShXQj2iPXsTl\nBEDPs66FX42jGyZT0TMtkX+RmjkQYGf1BZCM+VnHpdyw3y/4lMTpIU/uudaN\nn8/ifhM/XeSRb0k40/0U4tEHryfTe/WPSjPq4gN/s+zQDWIKsFo8mwWL/5au\nF2dGLiSdZiPGcrIdAVIkrINFOk760NSYU0cR+hFbdOryynzKSe1cfOJzzylS\nPHjfv+wz8uDtaWBgGf0N1rV+x2gCFnvdjES+lZ1A2pJEvppYhDXoujt7eDUM\n4OgHKuUOjSNV4OA+Ny+qkVSFEJ83K0ZKtYUa6eWjGCU17/kRmlqar+OIJLH6\nD614ghUCL3Zjeo+jxd4iqsdZd0KEG8QV8hyWGE4kC4cXWx1tGw33IFZAZfHE\n7UsDYUb3Hce5L+XtzjEevxOnmQuR7y8jSO6rm6GNtrGVGIclz5Ff36QaBzVh\n/82t6ng201l/x24wAz6yFU0tGNkV1UcZMqpLc7mg9zm9FN0Il2r1vxW6zySH\nFoCH70Swa7ojhcIj+ofmQhri6hgOIfRCREjDhK6s/HjruAFgd7mmGbbN3dza\n4a3b4WB+CJltNE+C1X8UmcAQ8rTmZRvrfYa72KwkbQB5xGlE7lPsTaNxGqBf\nO6NuZ3Ob5Hni6FqGSJW6swMqttcl7pzka3YOj9OKbNoGQjjc6ig69Wxw2cZ0\n6W12\r\n=8pfE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"dcbe31159296a93bcfb498196f6762e4db704ef6","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.1.2_1643121878752_0.9810589651750186","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"openapi-typescript-fetch","version":"1.1.3","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@1.1.3","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"354e6803b7885c7142ae11adc1b758afafd8aa2e","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz","fileCount":19,"integrity":"sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==","signatures":[{"sig":"MEYCIQCcc+poar8+lOC8qnSRjqNDYYwMrleJX+AcDApOe+0DuwIhAMrtr9MLeuvcZxUYTqF7MDHBH9Xxb75M2ciCzxaEWVTU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJif8QKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrA9xAAmYdSgYPFcaU13fHYbegezDp9VCQdnp1A3BxPNu9l1P3wHrUk\r\nvUlKY7AoTlPocTiNg7pfCI8SXsk7KJDktou2AVFV18occcu6zuWiACp2Rd9k\r\nmt+Q5cib4Oxr3+kiQ7bYqasFIbZfs8s6KAJr8fAKyUr3R4zJJV1TxIGv3gGN\r\n6Gs9Jgx2/8nXmD4glFI8BU/YjYVzOpit6ixZqP49vjzZ/s8yGvkBEWAH5/4A\r\nBA+bO0Mm160erRDlCn1z5aTpbUU2TezlO0nPHX2sk2aiA9eMBD0q8JRIcvVj\r\no9QRS16EJyQ9bj8UvkE3D1QmWV/vNI2sPPhiA+kX4OvoCAXN+ghg96DZ8A+G\r\n7JEJwM5TwB8QrYPOJkC98WBx3gRTmYg3EiS2sz+HZWfkdYoTMs+/woT763XH\r\nofm1xgER4NsES1KdzYgaC73NI4ERd2Jckiuos32Hso0aV//1Kb8fJeSFrVq6\r\njw1eRbkzl5RXoMnf6ruA5858muRnKC2jk+oM48jVKJu4ZYHSCF7yzpmaTf6w\r\n4qAkeL/iD/t9hcP94on1Oelbwim2Q0EnGBlTNXXY66A74OJmdiNUS2ZFOHs3\r\n1WwTF4CLnYLkHagl7oSSJbBzDSVKFrrYj21aUCdoEUu+U0XacqdEKCXFDA58\r\ncWdDg96pmuiK0wOfQxVcXQ+9M1Qhmq/oCUk=\r\n=Czfa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"exports":{"import":"./dist/esm/index.js","browser":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"gitHead":"2e0d66e8e5c7ef74dd406c810b8b2b61f5f5ae1e","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json","clean":"rimraf './dist'","prepare":"npm run build","typecheck":"tsc --noEmit --project tsconfig.json","test:coverage":"npm run build && jest --no-cache --coverage && codecov","test:coverage:local":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"6.14.14","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_1.1.3_1652540426390_0.8491497724980024","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"openapi-typescript-fetch","version":"2.0.0","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@2.0.0","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"5725f0b9137df968a9f6016168c43834238a06ec","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-2.0.0.tgz","fileCount":6,"integrity":"sha512-9YkzVKIx9RVIET0lFjJOuf15VjI9AUsoNByBk5WYM66xVlAKDNy8anj08Ci3zZA+HgTwdDamYz5FCVYt2VoHkA==","signatures":[{"sig":"MEUCIBv43IVuO8PK1atsdLJWo4VL/bWEetxSa0X46UAn5ZxDAiEA5PQBBijTB6mTXa9TwDMD91athjvUP6k1FpSjdSVXKug=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25763},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"gitHead":"b986ed8b9a1e59a943a336b61599e24bdda974a8","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"node build.js","clean":"rimraf './dist'","prepack":"npm run test && npm run build","prebuild":"npm run clean","typecheck":"tsc --noEmit --project tsconfig.json","test:codecov":"npm run build && jest --no-cache --coverage && codecov","test:coverage":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"9.5.1","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","esbuild":"^0.20.1","npm-dts":"^1.3.12","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_2.0.0_1709103120980_0.9235611371148842","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"openapi-typescript-fetch","version":"2.1.0","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@2.1.0","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"e6e4aa012bcdb8fef98cd746ae5b6c89fb12be3b","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-2.1.0.tgz","fileCount":6,"integrity":"sha512-gNHMIhyol0qyxmnOGdt8vTfEDXWsAXUY/twGpwFEWHPeSPO3oZhJhJBPAFX02Uch3YGKFr/IrD5n/zdGuutvXw==","signatures":[{"sig":"MEUCIQCcj7jy2o9GAn4mmRuxEu/s7TR3gVm5eVKzLlWnkd+3SwIgUnPCY1jk37xf0xNLlWVyRzcmJlWi5OWnjjdXGAQA4Ko=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25766},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"gitHead":"3f8aa2f80c3cb591bfa41cf2c941d88cc9b52d98","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"node build.js","clean":"rimraf './dist'","prepack":"npm run test && npm run build","prebuild":"npm run clean","typecheck":"tsc --noEmit --project tsconfig.json","test:codecov":"npm run build && jest --no-cache --coverage && codecov","test:coverage":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"9.5.1","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"18.16.0","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","esbuild":"^0.20.1","npm-dts":"^1.3.12","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_2.1.0_1736484767477_0.012521087775299033","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"openapi-typescript-fetch","version":"2.2.0","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"author":{"name":"Ajai Shankar"},"license":"MIT","_id":"openapi-typescript-fetch@2.2.0","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"dist":{"shasum":"4ab9dee7691b8f9c42c13fbe2f240a9adeeb15e0","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-2.2.0.tgz","fileCount":6,"integrity":"sha512-CH9NB/8ZW+VIjtDC2svxbHKO3YuszOo1KbGUJvrUL+EiJRAH9vwDcV6nxoUtyyDmeDroA1L8NMmOTKjYZ9mkKQ==","signatures":[{"sig":"MEUCIAtdls5YmspWci7N3+cchTK1xvGzOXudVFmJMMbYi/ZzAiEAimx7aUVZB5R6hVO+DTxc3INQtEGSNZFmmvqJDOaFDNs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25820},"main":"dist/index.cjs","types":"dist/index.d.ts","module":"dist/index.js","engines":{"npm":">= 7.0.0","node":">= 12.0.0"},"gitHead":"17824120bc40564f3eed9ef78afc0d985062d8c3","scripts":{"lint":"eslint .","test":"npm run build && jest","build":"node build.js","clean":"rimraf './dist'","prepack":"npm run test && npm run build","prebuild":"npm run clean","typecheck":"tsc --noEmit --project tsconfig.json","test:codecov":"npm run build && jest --no-cache --coverage && codecov","test:coverage":"npm run build && jest --no-cache --collectCoverage"},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com"},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git","type":"git"},"_npmVersion":"10.5.0","description":"A typed fetch client for openapi-typescript","directories":{},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"msw":"^0.35.0","jest":"^27.2.5","eslint":"^7.32.0","rimraf":"^3.0.0","codecov":"^3.8.2","esbuild":"^0.20.1","npm-dts":"^1.3.12","ts-jest":"^27.0.0","ts-node":"^10.0.0","prettier":"^2.4.0","typescript":"^4.4.3","@types/jest":"^27.0.0","whatwg-fetch":"^3.6.2","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^4.31.0","@typescript-eslint/eslint-plugin":"^4.30.0"},"_npmOperationalInternal":{"tmp":"tmp/openapi-typescript-fetch_2.2.0_1747105175339_0.9263514921574745","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"2.2.1","engines":{"node":">= 12.0.0","npm":">= 7.0.0"},"author":{"name":"Ajai Shankar"},"license":"MIT","module":"dist/index.js","main":"dist/index.cjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","devDependencies":{"@types/jest":"^27.0.0","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","esbuild":"^0.20.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.5","msw":"^0.35.0","npm-dts":"^1.3.12","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^27.0.0","ts-node":"^10.0.0","typescript":"^4.4.3","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","prebuild":"npm run clean","build":"node build.js","lint":"eslint .","prepack":"npm run test && npm run build","test":"npm run build && jest","test:codecov":"npm run build && jest --no-cache --coverage && codecov","test:coverage":"npm run build && jest --no-cache --collectCoverage","typecheck":"tsc --noEmit --project tsconfig.json"},"gitHead":"ef984cfbd8c4a4df6d8a42b8956012a572025699","_id":"openapi-typescript-fetch@2.2.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-aBp1cR5FTNxp4HA8bb2ST53aIqEiJgoOMyXiyzKi6YF7vogW8KkyyUQ1FeDz8D05uspxFrKvFbkVU2YiiKkULA==","shasum":"d97c2319ea5e4666db4ec0d2fe13b80cb286e820","tarball":"https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-2.2.1.tgz","fileCount":6,"unpackedSize":25928,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDOtssbAJ0YJv1chl2MSwUhN9ubHq7udPwlBxxkKPZ1RgIgOsxmNWsVIKMhh3K1u3zzd1pYKigfZ6GFZKpLazAIuHk="}]},"_npmUser":{"name":"ajaishankar","email":"ajai.shankar@gmail.com","actor":{"name":"ajaishankar","email":"ajai.shankar@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openapi-typescript-fetch_2.2.1_1750904847085_0.4412883338288487"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-25T01:44:24.564Z","modified":"2025-06-26T02:27:27.426Z","1.0.0":"2021-10-25T01:44:24.713Z","1.0.1":"2021-10-26T14:16:52.410Z","1.1.0":"2021-10-30T01:15:07.494Z","1.1.1":"2021-11-17T05:09:43.222Z","1.1.2":"2022-01-25T14:44:38.947Z","1.1.3":"2022-05-14T15:00:26.555Z","2.0.0":"2024-02-28T06:52:01.217Z","2.1.0":"2025-01-10T04:52:47.656Z","2.2.0":"2025-05-13T02:59:35.529Z","2.2.1":"2025-06-26T02:27:27.256Z"},"bugs":{"url":"https://github.com/ajaishankar/openapi-typescript-fetch/issues"},"author":{"name":"Ajai Shankar"},"license":"MIT","homepage":"https://github.com/ajaishankar/openapi-typescript-fetch#readme","keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"repository":{"type":"git","url":"git+https://github.com/ajaishankar/openapi-typescript-fetch.git"},"description":"A typed fetch client for openapi-typescript","maintainers":[{"name":"ajaishankar","email":"ajai.shankar@gmail.com"}],"readme":"[![version(scoped)](https://img.shields.io/npm/v/openapi-typescript-fetch.svg)](https://www.npmjs.com/package/openapi-typescript-fetch)\n[![codecov](https://codecov.io/gh/ajaishankar/openapi-typescript-fetch/branch/main/graph/badge.svg?token=Z8GQ6M5KAR)](https://codecov.io/gh/ajaishankar/openapi-typescript-fetch)\n\n# 📘️ openapi-typescript-fetch\n\nA typed fetch client for [openapi-typescript](https://github.com/drwpow/openapi-typescript) \n\n### Install\n\n```bash\nnpm install openapi-typescript-fetch\n```\nOr\n```bash\nyarn add openapi-typescript-fetch\n```\n\n**Features**\n\nSupports JSON request and responses\n\n- ✅ [OpenAPI 3.0](https://swagger.io/specification)\n- ✅ [Swagger 2.0](https://swagger.io/specification/v2/)\n\n### Usage\n\n**Generate typescript definition from schema**\n\n```bash\nnpx openapi-typescript https://petstore.swagger.io/v2/swagger.json --output petstore.ts\n\n# 🔭 Loading spec from https://petstore.swagger.io/v2/swagger.json…\n# 🚀 https://petstore.swagger.io/v2/swagger.json -> petstore.ts [650ms]\n```\n\n**Typed fetch client**\n\n```ts\nimport { Fetcher } from 'openapi-typescript-fetch'\n\nimport { paths } from './petstore'\n\n// declare fetcher for paths\nconst fetcher = Fetcher.for<paths>()\n\n// global configuration\nfetcher.configure({\n  baseUrl: 'https://petstore.swagger.io/v2',\n  init: {\n    headers: {\n      ...\n    },\n  },\n  use: [...] // middlewares\n})\n\n// create fetch operations\nconst findPetsByStatus = fetcher.path('/pet/findByStatus').method('get').create()\nconst addPet = fetcher.path('/pet').method('post').create()\n\n// fetch\nconst { status, data: pets } = await findPetsByStatus({\n  status: ['available', 'pending'],\n})\n\nconsole.log(pets[0])\n```\n\n### Typed Error Handling\n\nA non-ok fetch response throws a generic `ApiError`\n\nBut an Openapi document can declare a different response type for each status code, or a default error response type\n\nThese can be accessed via a `discriminated union` on status, as in code snippet below\n\n```ts\nconst findPetsByStatus = fetcher.path('/pet/findByStatus').method('get').create()\nconst addPet = fetcher.path('/pet').method('post').create()\n\ntry {\n  await findPetsByStatus({ ... })\n  await addPet({ ... })\n} catch(e) {\n  // check which operation threw the exception\n  if (e instanceof addPet.Error) {\n    // get discriminated union { status, data } \n    const error = e.getActualType()\n    if (error.status === 400) {\n      error.data.validationErrors // only available for a 400 response\n    } else if (error.status === 500) {\n      error.data.errorMessage // only available for a 500 response\n    } else {\n      ...\n    }\n  }\n}\n```\n\n### Middleware\n\nMiddlewares can be used to pre and post process fetch operations (log api calls, add auth headers etc)\n\n```ts\n\nimport { Middleware } from 'openapi-typescript-fetch'\n\nconst logger: Middleware = async (url, init, next) => {\n  console.log(`fetching ${url}`)\n  const response = await next(url, init)\n  console.log(`fetched ${url}`)\n  return response\n}\n\nfetcher.configure({\n  baseUrl: 'https://petstore.swagger.io/v2',\n  init: { ... },\n  use: [logger],\n})\n\n// or\n\nfetcher.use(logger)\n```\n\n### Utility Types\n\n- `OpArgType` - Infer argument type of an operation\n- `OpReturnType` - Infer return type of an operation\n- `OpErrorType` - Infer error type of an operation\n- `FetchArgType` - Argument type of a typed fetch operation\n- `FetchReturnType` - Return type of a typed fetch operation\n- `FetchErrorType` - Error type of a typed fetch operation\n- `TypedFetch` - Fetch operation type\n\n```ts\nimport { paths, operations } from './petstore'\n\ntype Arg = OpArgType<operations['findPetsByStatus']>\ntype Ret = OpReturnType<operations['findPetsByStatus']>\ntype Err = OpErrorType<operations['findPetsByStatus']>\n\ntype Arg = OpArgType<paths['/pet/findByStatus']['get']>\ntype Ret = OpReturnType<paths['/pet/findByStatus']['get']>\ntype Err = OpErrorType<paths['/pet/findByStatus']['get']>\n\ntype FindPetsByStatus = TypedFetch<operations['findPetsByStatus']>\n\nconst findPetsByStatus = fetcher.path('/pet/findByStatus').method('get').create()\n\ntype Arg = FetchArgType<typeof findPetsByStatus>\ntype Ret = FetchReturnType<typeof findPetsByStatus>\ntype Err = FetchErrorType<typeof findPetsByStatus>\n```\n\n### Utility Methods\n\n- `arrayRequestBody` - Helper to merge params when request body is an array [see issue](https://github.com/ajaishankar/openapi-typescript-fetch/issues/3#issuecomment-952963986)\n\n```ts\n\nconst body = arrayRequestBody([{ item: 1}], { param: 2})\n\n// body type is { item: number }[] & { param: number }\n```\n\n### Changing the baseUrl at runtime\n\nThe baseUrl can be configured with a function that returns the url at runtime\n\n```ts\nfetcher.configure({\n  baseUrl: () => getBaseUrl(...)\n})\n```\n\nIt can also be overriden per method invocation\n\n```ts\nawait findPetsByStatus(\n  { status: ['available', 'pending'] },\n  { baseUrl: \"https://staging.petstore.swagger.io/v2\" }\n)\n```\n\nHappy fetching! 👍","readmeFilename":"README.md"}