{"_id":"@biggora/klix","_rev":"7-f9a91ec7fcecc476c55f39f9d7b64a59","name":"@biggora/klix","dist-tags":{"oidc-test":"1.0.3-oidc-test.0","latest":"1.0.6"},"versions":{"1.0.0":{"name":"@biggora/klix","version":"1.0.0","author":"","license":"ISC","_id":"@biggora/klix@1.0.0","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"5a302cd62ee7d150bfd7aae3bf63e75d320e41bc","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.0.tgz","fileCount":18,"integrity":"sha512-hs5zaY2zA8LVgITN+WGMZVJ5P/bDcfX2+WjBPiOw6gNBTwDLexwqtsMxPaoNIXN/+vOeVZigWl9PJKrnCw4ozg==","signatures":[{"sig":"MEQCIBEpFp2VyOLKP3ETbSgNrm2vuXrB1eYlNjKVDRFJAde8AiBqaGj6jfxDnCZU0epN9UIxxfg4pdTPCrDpRbXETjdiSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":555832},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"8d5bf7ab78c8890c6d2146805ed1112bcd3374f3","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^3.2.4","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.0_1776585075966_0.6698705589011098","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@biggora/klix","version":"1.0.1","keywords":["klix","payments","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"author":"","license":"ISC","_id":"@biggora/klix@1.0.1","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"6f5111938a827f43b2c7e436e731e7becc9f51d7","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.1.tgz","fileCount":19,"integrity":"sha512-8Z32haY0N4snMKyWKFVP+OP5chNcPbQXl7wBgB+EVZNZo77Dim2ciH0uxD75lJKAeKMb7PA6FeCi7KATsH7LQQ==","signatures":[{"sig":"MEUCIBv+279GUYw7aIJliE8vJBraBCu2/9ap/84s1JgotarAAiEA3v6EjR/dnzhRXyrKMZBC/LpMZvGnBlZSBi2RCd/IXNQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":556582},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"6a40237355a06be2e34cc2b535f67e265390d937","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"biggora","email":"aleksej@gordejev.lv"},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.12.1","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^3.2.4","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.1_1776598952328_0.2506104009917054","host":"s3://npm-registry-packages-npm-production"}},"1.0.3-oidc-test.0":{"name":"@biggora/klix","version":"1.0.3-oidc-test.0","keywords":["klix","payments","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"author":"","license":"MIT","_id":"@biggora/klix@1.0.3-oidc-test.0","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"d3f10d06a6e7b66a3b0b3a8d24d51883dfe7a0a8","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.3-oidc-test.0.tgz","fileCount":20,"integrity":"sha512-5t1v+pE2v32KR/hl6QznlFwAhVjtmOTxs3iHnblZldJ9AdhhmO72TlUj1DH0Z9qbrdsw69axCqNQLN1UtKhbag==","signatures":[{"sig":"MEUCICwsW68jEOyBGUC1cmLB3NbeAXpSPQbIK0z/uaZQgaEeAiEA3MI9AhxOnC+XIoQT4uiVaALwwbiq3WA9fLK5qekuwBM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@biggora%2fklix@1.0.3-oidc-test.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":557699},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"3fc938329c1f70cb9079f365bc2530b57ba9b4b7","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:33345f2b-a506-460d-ac30-308e07d9f351"}},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^3.2.4","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.3-oidc-test.0_1778350507893_0.6126221070848055","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@biggora/klix","version":"1.0.2","keywords":["klix","payments","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"author":"","license":"MIT","_id":"@biggora/klix@1.0.2","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"0f3419b0b768367aaf2d3190f67c8f1598dc8234","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.2.tgz","fileCount":20,"integrity":"sha512-WaP7lQTm1vhIfV7Kk/aM1tZPTd7b7ymBk1E5MpE+gwMcoJ6hLXEUjHC5x7EuKwr1+xw/TA+iSD2FrXm71VFfyQ==","signatures":[{"sig":"MEUCIHs78xCs7xoNc6OQxc9nivKH4BSANs8uXPxdzjzhapoiAiEAz9xUePwODTGcJBnlGn16PB1i3YpMbd1m7ez60a37xAQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@biggora%2fklix@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":557687},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"2c53073469633786e70f16cfde340dbf31ea69a0","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:33345f2b-a506-460d-ac30-308e07d9f351"}},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^3.2.4","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.2_1778397046906_0.22816162069538715","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@biggora/klix","version":"1.0.3","keywords":["klix","payments","checkout","webhooks","refunds","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"author":"","license":"MIT","_id":"@biggora/klix@1.0.3","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"2eaa6a7348ef93be2e7c2d1c8209e846621f0171","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.3.tgz","fileCount":20,"integrity":"sha512-gxq4j+b+AXlT1jWW/4frhYrUClElW7HPCqLTJXTsVaKY3CHqmMWfKebctBEe4ThoUO8dRQzBafwBXqDHnqSIOg==","signatures":[{"sig":"MEUCIQDXe3t21G/5HWSyJBKshj0Inm4d12TpnlBeUPphuOBsfgIgDh5QN6wUrnrhTVSNzKSuvPKtG5FTmFNRlLzz35cgDM0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@biggora%2fklix@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":559098},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"5d5a3a6c748f431b74c863cb580b63f52d8c76e4","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:33345f2b-a506-460d-ac30-308e07d9f351"}},"overrides":{"multer":"2.2.0","esbuild":"0.28.1","js-yaml":"4.2.0"},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.17.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^4.1.0","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.3_1782817473865_0.8777025892469077","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@biggora/klix","version":"1.0.5","keywords":["klix","payments","checkout","webhooks","refunds","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"author":"","license":"MIT","_id":"@biggora/klix@1.0.5","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"dist":{"shasum":"5f5e57fef5d05269b5180aedd5c2edf424fa8084","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.5.tgz","fileCount":20,"integrity":"sha512-WZxIKMMI58bSLOLnT/5b26m2hVL4YDlyOiaefjJxh29kR7pEORGLKdGfQCgyn2lzYUY/PUwwlkRscAJckLEHlQ==","signatures":[{"sig":"MEQCIBP2erWq5qb8lzfBfIYGDtuOq3JClSLkJFzoi0wvnMGfAiApybnkupT8AAqhO6EYSMUC6D9271iV6Idf6WNuibBnKg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@biggora%2fklix@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":560249},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"gitHead":"ff39bbe85e2f57401ad1dddca0210788241d5cd4","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:33345f2b-a506-460d-ac30-308e07d9f351"}},"overrides":{"multer":"2.2.0","esbuild":"0.28.1","js-yaml":"4.3.0","postcss":"8.5.25","minimatch":"10.2.6","brace-expansion":"5.0.9"},"repository":{"url":"git+https://github.com/biggora/klix.git","type":"git"},"_npmVersion":"11.16.0","description":"TypeScript SDK and NestJS adapter for Klix API.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.5.0","vitest":"^4.1.0","express":"^5.1.0","supertest":"^7.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","@nestjs/core":"^11.0.11","@nestjs/common":"^11.0.11","@types/express":"^5.0.1","@nestjs/testing":"^11.0.11","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","openapi-typescript":"^7.10.1","@nestjs/platform-express":"^11.0.11"},"peerDependencies":{"rxjs":"^7.8.1","@nestjs/core":"^11.0.0","@nestjs/common":"^11.0.0","reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/klix_1.0.5_1786013970191_0.856534222056446","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@biggora/klix","version":"1.0.6","description":"TypeScript SDK and NestJS adapter for Klix API.","keywords":["klix","payments","checkout","webhooks","refunds","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"homepage":"https://github.com/biggora/klix#readme","bugs":{"url":"https://github.com/biggora/klix/issues"},"license":"MIT","publishConfig":{"access":"public"},"author":"","repository":{"type":"git","url":"git+https://github.com/biggora/klix.git"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","typesVersions":{"*":{"nestjs":["dist/nest/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./nestjs":{"types":"./dist/nest/index.d.ts","import":"./dist/nest/index.js","require":"./dist/nest/index.cjs"}},"engines":{"node":">=20"},"sideEffects":false,"scripts":{"build":"tsup","generate:types":"openapi-typescript https://portal.klix.app/api/schema/v1/ -o src/generated/schema.ts","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit"},"peerDependencies":{"@nestjs/common":"^11.0.0","@nestjs/core":"^11.0.0","reflect-metadata":"^0.2.2","rxjs":"^7.8.1"},"devDependencies":{"@nestjs/common":"^11.0.11","@nestjs/core":"^11.0.11","@nestjs/platform-express":"^11.0.11","@nestjs/testing":"^11.0.11","@types/express":"^5.0.1","@types/node":"^24.2.0","@types/supertest":"^6.0.3","express":"^5.1.0","openapi-typescript":"^7.10.1","reflect-metadata":"^0.2.2","rxjs":"^7.8.1","supertest":"^7.1.1","tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^4.1.0"},"overrides":{"esbuild":"0.28.1","js-yaml":"4.3.1","multer":"2.2.0","postcss":"8.5.25","brace-expansion":"5.0.9","minimatch":"10.2.6","nanoid":"3.3.17"},"gitHead":"3520f9e6a6c8d820f97fad2d2ffd19645b42fbdb","_id":"@biggora/klix@1.0.6","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-AttKE7ii2ts5iylyBysPOJRcX6ShMwtzXPgkmzix9EWC24WONq/lKvzrsxkhHHXIA+HqY15/5MpTPR+xw90sZA==","shasum":"36c7322e10e01a76655aabaab7a86e649c301911","tarball":"https://registry.npmjs.org/@biggora/klix/-/klix-1.0.6.tgz","fileCount":20,"unpackedSize":560274,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@biggora%2fklix@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCtSKrXxfhTKMlLMK6+ox6RuW/KXYCzTIwJ3bzCMPj+qQIgRw1yoYG3mKfxhVIpTsUV04IQu85Y8O6al37g+MinVb4="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:33345f2b-a506-460d-ac30-308e07d9f351"}},"directories":{},"maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/klix_1.0.6_1786521503153_0.6018226561216218"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-19T07:51:15.855Z","modified":"2026-08-12T07:58:23.696Z","1.0.0":"2026-04-19T07:51:16.118Z","1.0.1":"2026-04-19T11:42:32.490Z","1.0.3-oidc-test.0":"2026-05-09T18:15:08.055Z","1.0.2":"2026-05-10T07:10:47.052Z","1.0.3":"2026-06-30T11:04:34.053Z","1.0.5":"2026-08-06T10:59:30.329Z","1.0.6":"2026-08-12T07:58:23.345Z"},"bugs":{"url":"https://github.com/biggora/klix/issues"},"license":"MIT","homepage":"https://github.com/biggora/klix#readme","keywords":["klix","payments","checkout","webhooks","refunds","payment-gateway","payment-api","sdk","api-client","typescript","nodejs","nestjs","ecommerce"],"repository":{"type":"git","url":"git+https://github.com/biggora/klix.git"},"description":"TypeScript SDK and NestJS adapter for Klix API.","maintainers":[{"name":"biggora","email":"aleksej@gordejev.lv"}],"readme":"# Klix\n\n[![npm version](https://img.shields.io/npm/v/@biggora/klix.svg)](https://www.npmjs.com/package/@biggora/klix)\n[![Unit Tests](https://github.com/biggora/klix/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/biggora/klix/actions/workflows/unit-tests.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nTypeScript SDK and NestJS adapter for [Klix API](https://developers.klix.app/api/).\n\nTargets Node.js `20+`. Ships dual `ESM`/`CommonJS` builds and a first-class NestJS subpath export.\n\n## Install\n\n```bash\nnpm install @biggora/klix\n```\n\nNestJS apps also need peer deps:\n\n```bash\nnpm install @nestjs/common @nestjs/core reflect-metadata rxjs\n```\n\n## Quick Start: Checkout\n\nCreate a purchase, redirect the customer to `checkout_url`, then confirm the final state with a success callback or webhook before fulfilling the order.\n\n## Features\n\n- Full current REST surface from Klix OpenAPI schema\n- Typed resources for purchases, clients, billing, webhooks, statements, balance, payment methods\n- Built-in auth, timeout handling, error normalization, and pagination helpers\n- `paymentMethods.list()` server-side cache enabled by default for 60 seconds\n- Success callback signature verification through `/public_key/`\n- Pure webhook signature verification helper\n- NestJS `KlixModule.forRoot()` and `KlixModule.forRootAsync()`\n\n## Plain Node.js\n\n```ts\nimport { createKlixClient } from '@biggora/klix';\n\nconst klix = createKlixClient({\n  apiKey: process.env.KLIX_API_KEY!,\n  brandId: process.env.KLIX_BRAND_ID!,\n});\n\nconst purchase = await klix.purchases.create({\n  currency: 'EUR',\n  reference: 'ORDER-1001',\n  client: {\n    email: 'customer@example.com',\n  },\n  purchase: {\n    products: [\n      {\n        name: 'Pro subscription',\n        price: 1999,\n        quantity: 1,\n      },\n    ],\n  },\n  success_callback: 'https://example.com/api/klix/callback',\n  success_redirect: 'https://example.com/checkout/success',\n  failure_redirect: 'https://example.com/checkout/failure',\n});\n\nconsole.log(purchase.checkout_url);\n```\n\nUse a durable order reference and store the returned purchase `id`. Klix can return asynchronous states for capture, charge, release, and refund operations, so webhook delivery is the safest place to finalize order state.\n\n## Main API Surface\n\n```ts\nklix.balance.get();\nklix.paymentMethods.list({ currency: 'EUR' });\nklix.payoutMethods.list({ currency: 'EUR' });\n\nklix.purchases.create(...);\nklix.purchases.read(id);\nklix.purchases.cancel(id);\nklix.purchases.capture(id, { amount: 500 });\nklix.purchases.charge(id, { recurring_token: token });\nklix.purchases.refund(id, { client_name: 'Jane Doe', amount: 500 });\nklix.purchases.release(id);\n\nklix.clients.create(...);\nklix.clients.list();\nklix.clients.iterateAll();\nklix.clients.listRecurringTokens(clientId);\n\nklix.billing.sendInvoice(...);\nklix.billingTemplates.create(...);\nklix.billingTemplates.list();\nklix.billingTemplates.addSubscriber(templateId, ...);\nklix.billingTemplates.sendInvoice(templateId, ...);\nklix.billingTemplates.listClients(templateId);\n\nklix.companyStatements.create(...);\nklix.companyStatements.list();\n\nklix.webhooks.create(...);\nklix.webhooks.list();\nklix.webhooks.listDeliveries({ id: purchaseId, source_type: 'purchase' });\n```\n\n## Error Handling\n\nSDK throws `KlixApiError`.\n\n```ts\nimport { KlixApiError } from '@biggora/klix';\n\ntry {\n  await klix.balance.get();\n} catch (error) {\n  if (error instanceof KlixApiError) {\n    console.error(error.status, error.code, error.message, error.details);\n  }\n}\n```\n\n## Callback and Webhook Verification\n\n### Success callback verification\n\n`KlixClient` can fetch Klix callback public key and verify callback payload signatures.\n\n```ts\nconst valid = await klix.verifySuccessCallback(rawBodyBuffer, signatureHeader);\n```\n\n### Webhook verification\n\nFor webhook deliveries, Klix provides dedicated public key per webhook.\n\n```ts\nimport { verifyWebhookPayload } from '@biggora/klix';\n\nconst valid = verifyWebhookPayload(rawBodyBuffer, signatureHeader, webhook.public_key);\n```\n\nCreate a webhook from code when you want setup to be repeatable across environments:\n\n```ts\nconst webhook = await klix.webhooks.create({\n  title: 'Production purchase events',\n  callback: 'https://example.com/api/klix/webhook',\n  all_events: false,\n  events: ['purchase.paid', 'purchase.payment_failure', 'payment.refunded'],\n});\n\nconsole.log(webhook.public_key);\n```\n\n## NestJS\n\nUse `@biggora/klix/nestjs` subpath export.\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { KlixModule } from '@biggora/klix/nestjs';\n\n@Module({\n  imports: [\n    KlixModule.forRoot({\n      apiKey: process.env.KLIX_API_KEY!,\n      brandId: process.env.KLIX_BRAND_ID!,\n    }),\n  ],\n})\nexport class PaymentsModule {}\n```\n\nAsync config:\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { ConfigModule, ConfigService } from '@nestjs/config';\nimport { KlixModule } from '@biggora/klix/nestjs';\n\n@Module({\n  imports: [\n    ConfigModule.forRoot(),\n    KlixModule.forRootAsync({\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => ({\n        apiKey: config.getOrThrow<string>('KLIX_API_KEY'),\n        brandId: config.getOrThrow<string>('KLIX_BRAND_ID'),\n      }),\n    }),\n  ],\n})\nexport class PaymentsModule {}\n```\n\nInject client into services:\n\n```ts\nimport { Injectable } from '@nestjs/common';\nimport { InjectKlixClient } from '@biggora/klix/nestjs';\nimport type { KlixClient } from '@biggora/klix';\n\n@Injectable()\nexport class PaymentsService {\n  constructor(@InjectKlixClient() private readonly klix: KlixClient) {}\n\n  async getBalance() {\n    return this.klix.balance.get();\n  }\n}\n```\n\nUse verifier service:\n\n```ts\nimport { Controller, Post, Req } from '@nestjs/common';\nimport type { RawBodyRequest } from '@nestjs/common';\nimport type { Request } from 'express';\nimport { KlixSignatureVerifier } from '@biggora/klix/nestjs';\n\n@Controller('klix')\nexport class KlixCallbackController {\n  constructor(private readonly verifier: KlixSignatureVerifier) {}\n\n  @Post('callback')\n  async callback(@Req() req: RawBodyRequest<Request>) {\n    const signature = String(req.headers['x-signature'] ?? '');\n    const valid = await this.verifier.verifySuccessCallback(req.rawBody ?? Buffer.alloc(0), signature);\n\n    return { valid };\n  }\n\n  @Post('webhook')\n  webhook(@Req() req: RawBodyRequest<Request>) {\n    const signature = String(req.headers['x-signature'] ?? '');\n    const webhookPublicKey = process.env.KLIX_WEBHOOK_PUBLIC_KEY!;\n    const valid = this.verifier.verifyWebhookPayload(req.rawBody ?? Buffer.alloc(0), signature, webhookPublicKey);\n\n    return { valid };\n  }\n}\n```\n\nEnable raw body before registering callback or webhook routes:\n\n### Express\n\n```ts\nconst app = await NestFactory.create(AppModule, { rawBody: true });\n```\n\n### Fastify\n\n```ts\nconst app = await NestFactory.create(\n  AppModule,\n  new FastifyAdapter(),\n  { rawBody: true },\n);\n```\n\n## Notes\n\n- `paymentMethods.list()` injects configured `brandId` automatically and caches results by query for 60 seconds.\n- `payoutMethods.list()` also injects configured `brandId`.\n- `purchases.create()` and billing template creation helpers inject configured `brandId` when omitted in request body.\n- Source of truth for generated types is current Klix OpenAPI schema at `https://portal.klix.app/api/schema/v1/`.\n","readmeFilename":"README.md"}