{"versions":{"1.2.0":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.0","engines":{"node":">=12.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^28.0.0","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.0.0","jest-environment-jsdom":"^28.0.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^28.0.0","ts-node":"^10.0.0","typescript":"~4.7.0","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"pnpm build && jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.0","_integrity":"sha512-aIlMLK9OO8x33OArDhEw2NAjGtiKyzLM93xUJsRGV/bwFljrqmZUVzVvJKe/JBrOD+PUJl4Yhu6Oa6Lteu65jA==","_resolved":"/tmp/1344740d00f34e4a83b9beb6b100cd7c/qdrant-openapi-typescript-fetch-1.2.0.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.0.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-aIlMLK9OO8x33OArDhEw2NAjGtiKyzLM93xUJsRGV/bwFljrqmZUVzVvJKe/JBrOD+PUJl4Yhu6Oa6Lteu65jA==","shasum":"a5efdc1050f03c97fe7e213af8ebb8a3eea34ef4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.0.tgz","fileCount":22,"unpackedSize":37273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpwI46y8KZMwQzi5hD9YzEcNc1xK1sgfjAbf/rJNfusQIhAKcuX/+IEUg9Srh0f4FyNYil6OMLg6dZpDRViSZkE5Mk"}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.0_1683797036539_0.5179910606126383"},"_hasShrinkwrap":false},"1.2.1":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.1","engines":{"node":">=12.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^28.0.0","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.0.0","jest-environment-jsdom":"^28.0.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^28.0.0","ts-node":"^10.0.0","typescript":"~4.7.0","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"pnpm build && jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.1","_integrity":"sha512-oiBJRN1ME7orFZocgE25jrM3knIF/OKJfMsZPBbtMMKfgNVYfps0MokGvSJkBmecj6bf8QoLXWIGlIoaTM4Zmw==","_resolved":"/tmp/a12635fa12445d1ed450b68e0a3377f4/qdrant-openapi-typescript-fetch-1.2.1.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.1.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-oiBJRN1ME7orFZocgE25jrM3knIF/OKJfMsZPBbtMMKfgNVYfps0MokGvSJkBmecj6bf8QoLXWIGlIoaTM4Zmw==","shasum":"6e232899ca0a7fbc769f0c3a229b56f93da39f19","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.1.tgz","fileCount":22,"unpackedSize":37116,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBE6tvnlY4iA+tfGNhRpiDavP7lZT9aggyjfCS8dlCQgAiEAoFmZbebKv3ul2naCoC807EpSsXAHbeyT7Y+CsFf9PGM="}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.1_1685729516329_0.7766921818668842"},"_hasShrinkwrap":false},"1.2.2":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.2","engines":{"node":">=12.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^28.0.0","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.0.0","jest-environment-jsdom":"^28.0.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^28.0.0","ts-node":"^10.0.0","typescript":"~4.7.0","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"dependencies":{"json-with-bigint":"^2.1.0"},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"pnpm build && jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.2","_integrity":"sha512-v0rX8MADZf6vaqtjW0iLXwvpkVU3H2Kz4yaDAFkbQ1Yt3UlDolvSlq8YKtOCAE2MyIT0fgaanMEe0QkFcecQmQ==","_resolved":"/tmp/c8a9b695f979f31509b0888a707b1a5c/qdrant-openapi-typescript-fetch-1.2.2.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.2.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-v0rX8MADZf6vaqtjW0iLXwvpkVU3H2Kz4yaDAFkbQ1Yt3UlDolvSlq8YKtOCAE2MyIT0fgaanMEe0QkFcecQmQ==","shasum":"f266fee6aaedea68a7db2de7f53d399de4cfae7b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.2.tgz","fileCount":22,"unpackedSize":37056,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMfkGu6lX16KhA9x/VZ1CEWB7DenDStjBg2wKfx5Y9FAiASEsMaRt3q+MbEuTENzj7FrXXfhdWAiX9Brb8cGZl5RA=="}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.2_1708360702628_0.9583598596178673"},"_hasShrinkwrap":false},"1.2.3":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.3","engines":{"node":">=12.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^28.0.0","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^28.0.0","jest-environment-jsdom":"^28.0.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^28.0.0","ts-node":"^10.0.0","typescript":"~4.7.0","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"pnpm build && jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.3","_integrity":"sha512-tib45b4dQNCNBOwTO9/iSKnkMCZ5Dn2Ki9c1mPGCvV3mdNB+UcEoJKRhYcRi19Dln5ToTCETuRNlsx5FFL0Jpg==","_resolved":"/tmp/63f12b635a3f163eed307d503d3ef21b/qdrant-openapi-typescript-fetch-1.2.3.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.3.tgz","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-tib45b4dQNCNBOwTO9/iSKnkMCZ5Dn2Ki9c1mPGCvV3mdNB+UcEoJKRhYcRi19Dln5ToTCETuRNlsx5FFL0Jpg==","shasum":"adb5c35b5e51668b49e89c9f5b55aeb09e1dacf4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.3.tgz","fileCount":26,"unpackedSize":40566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm0hga6FymommU4pNS9bxblfhApqDa6CrTjTXCOH1kIwIgLtlEgC8cCFLhcIu6iZIlMDc507+nFecFK7urB4SsiJ8="}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.3_1708446504732_0.49770004429104464"},"_hasShrinkwrap":false},"1.2.4":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.4","engines":{"node":">=21.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^29.5.12","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":">=4.7","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.4","_integrity":"sha512-seKNDuWkmdXcAN4gsW2HmnkjAm8nDDQQlmLgJcAPlFq4gMwoKhIY9dT87nT+lOBAXSpbedr1XsIC42/0LQqs/g==","_resolved":"/tmp/0c3bce49af013a60365f474fcdca9163/qdrant-openapi-typescript-fetch-1.2.4.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.4.tgz","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-seKNDuWkmdXcAN4gsW2HmnkjAm8nDDQQlmLgJcAPlFq4gMwoKhIY9dT87nT+lOBAXSpbedr1XsIC42/0LQqs/g==","shasum":"9541098c31c1b56d84d11dd3ab397c996575cb38","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.4.tgz","fileCount":22,"unpackedSize":39669,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvxyaDwT/F+vXHuiMvnfiVHcphTDiB/+4DEJCRaFii6AiAD0wrHbb/4dbgj21aQ1jOGqiEf7h3wLwxRzPXbZFYyHQ=="}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.4_1708518557210_0.45718007059013277"},"_hasShrinkwrap":false},"1.2.5":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.5","engines":{"node":">=18.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^29.5.12","@types/node":"^18.0.0","@types/semver":"^7.5.7","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","semver":"^7.6.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":">=4.7","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.5","_integrity":"sha512-gy9k3C/cZWlc6PoH8iry3d+zOAAuRwxY7dfx856orwhEpp2EFvI/jhZ+nP+uajR7soD9UcrzYTQkWMMD4xVIWg==","_resolved":"/tmp/31b156e99b603e9081a98f24bc15436d/qdrant-openapi-typescript-fetch-1.2.5.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.5.tgz","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-gy9k3C/cZWlc6PoH8iry3d+zOAAuRwxY7dfx856orwhEpp2EFvI/jhZ+nP+uajR7soD9UcrzYTQkWMMD4xVIWg==","shasum":"8a59315642a627a201e115f087d716419f5a0668","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.5.tgz","fileCount":22,"unpackedSize":39754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxd1rhM9K35jEwTpklJswR1BXJnFLpUPGQussj+DKHvAIhAKc8n3PnuCuUEPel5CqB5dN3ryRDzOLSdA4Rmt7Tt1HS"}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.5_1708542572909_0.5204592962037482"},"_hasShrinkwrap":false},"1.2.6":{"name":"@qdrant/openapi-typescript-fetch","description":"A typed fetch client for openapi-typescript","version":"1.2.6","engines":{"node":">=18.0.0","pnpm":">=8"},"packageManager":"pnpm@8.5.0","author":{"name":"Ajai Shankar"},"contributors":[{"name":"Luis Merino","email":"mail@luismerino.name","url":"https://github.com/Rendez"},{"name":"Caleb Mackey","email":"caleb.mackey@gmail.com"},{"name":"Don Denton","email":"don@happycollision.com"},{"name":"Pelle Wessman","email":"pelle@kodfabrik.se"},{"name":"Oka Gentaro","email":"oka@ctime.jp"},{"name":"javiertury","email":"javiertury@gmail.com"}],"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","require":"./dist/cjs/index.js","default":"./dist/esm/index.js"}},"types":"./dist/index.d.ts","browser":"./dist/es6/index.js","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/qdrant/openapi-typescript-fetch.git"},"keywords":["fetch","client","swagger","typescript","ts","openapi","openapi 3","node"],"bugs":{"url":"https://github.com/qdrant/openapi-typescript-fetch/issues"},"homepage":"https://github.com/qdrant/openapi-typescript-fetch#readme","devDependencies":{"@changesets/changelog-github":"0.4.8","@changesets/cli":"2.26.1","@types/jest":"^29.5.12","@types/node":"^18.0.0","@types/semver":"^7.5.7","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.31.0","codecov":"^3.8.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","msw":"^0.49.3","prettier":"^2.4.0","rimraf":"^3.0.0","semver":"^7.6.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","typescript":">=4.7","whatwg-fetch":"^3.6.2"},"prettier":{"trailingComma":"all","singleQuote":true,"semi":false},"scripts":{"clean":"rimraf './dist'","build":"pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js","lint":"eslint .","test":"jest","test:coverage":"pnpm build && jest --no-cache --coverage && codecov","test:coverage:local":"pnpm build && jest --no-cache --collectCoverage","tsc:check":"tsc --noEmit","ci:version":"pnpm changeset version && pnpm install --no-frozen-lockfile && git add .","ci:release":"pnpm changeset publish"},"_id":"@qdrant/openapi-typescript-fetch@1.2.6","_integrity":"sha512-oQG/FejNpItrxRHoyctYvT3rwGZOnK4jr3JdppO/c78ktDvkWiPXPHNsrDf33K9sZdRb6PR7gi4noIapu5q4HA==","_resolved":"/tmp/3d54924d6a02bc2b10666a2752ef6626/qdrant-openapi-typescript-fetch-1.2.6.tgz","_from":"file:qdrant-openapi-typescript-fetch-1.2.6.tgz","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-oQG/FejNpItrxRHoyctYvT3rwGZOnK4jr3JdppO/c78ktDvkWiPXPHNsrDf33K9sZdRb6PR7gi4noIapu5q4HA==","shasum":"c2682a9fa26ded86384f421c991f6c461785af7e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@qdrant/openapi-typescript-fetch/-/openapi-typescript-fetch-1.2.6.tgz","fileCount":22,"unpackedSize":40053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvRp9njVZHiwCMfvQiXNOa1PLMZ2bIIJJe4FKDaG7GuAiATSTdSfL2Rc8o2SEybQsgP3D9m6EMkTTG+vJBHRxmPIA=="}]},"_npmUser":{"name":"anonymous","email":"tools@qdrant.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mail@luismerino.name"},{"name":"anonymous","email":"tools@qdrant.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-typescript-fetch_1.2.6_1709561800703_0.567471196417759"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"1.2.6"},"name":"@qdrant/openapi-typescript-fetch","time":{"created":"2023-05-11T10:55:50.659Z","1.2.0":"2023-05-11T09:23:56.744Z","modified":"2024-03-04T14:19:56.473Z","1.2.1":"2023-06-02T18:11:56.520Z","1.2.2":"2024-02-19T16:38:22.814Z","1.2.3":"2024-02-20T16:28:24.876Z","1.2.4":"2024-02-21T12:29:17.398Z","1.2.5":"2024-02-21T19:09:33.115Z","1.2.6":"2024-03-04T14:16:40.865Z"},"readme":"[![version(scoped)](https://img.shields.io/npm/v/@qdrant/openapi-typescript-fetch.svg)](https://www.npmjs.com/package/@qdrant/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```\n\nOr\n\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 'whatwg-fetch'\n\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### Server Side Usage\n\nThis library can be used server side with [node-fetch](https://www.npmjs.com/package/node-fetch)\n\nNode CommonJS setup\n\n```ts\n// install node-fetch v2\nnpm install node-fetch@2\nnpm install @types/node-fetch@2\n\n// fetch-polyfill.ts\nimport fetch, { Headers, Request, Response } from 'node-fetch'\n\nif (!globalThis.fetch) {\n    globalThis.fetch = fetch as any\n    globalThis.Headers = Headers as any\n    globalThis.Request = Request as any\n    globalThis.Response = Response as any\n}\n\n// index.ts\nimport './fetch-polyfill'\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\n  .path('/pet/findByStatus')\n  .method('get')\n  .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\nconst body = arrayRequestBody([{ item: 1 }], { param: 2 })\n\n// body type is { item: number }[] & { param: number }\n```\n\n### Long numeric values (de)serialization: BigInt\n\nStringifying and parsing big numeric values could be problematic. JSON.parse will coerce large numeric values and JSON.stringify will throw an error: `Uncaught TypeError: Do not know how to serialize a BigInt` in such cases.\n\nTo circumvent this issue, this library will serialize big numeric values to `BigInt` using `JSON.rawJSON`, and equally parse big numeric values from responses via `JSON.parse` [source text access](https://github.com/tc39/proposal-json-parse-with-source) transforming them to `BigInt` for you.\n\n> If you rely on the precision of big number in responses, or are sending big numeric values, make sure your JavaScript environment supports it. Read below...\n\n#### JavaScript engine/environment support\n\n##### TL;DR\n\n- Node 21\n- Chrome 112\n\nSupport is conditional; the TC39 proposal has reached staged 3 and has even shipped with Chrome by default already, with the rest of modern browsers [soon to follow](https://github.com/tc39/proposal-json-parse-with-source/issues/15#issue-664090651) with their corresponding releases.\n\nRegarding Node.js support; at **least Node 20 is required** to be run with the next harmony flag `node --harmony-json-parse-with-source` (or Node 21 without flag 🎉), until it is switched by default in future versions.\n\n---\n\nHappy fetching! 👍","users":{}}