{"_id":"@afi-ai/platform-client","_rev":"6-b19d57037dd01f4630e26cb525f40156","name":"@afi-ai/platform-client","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@afi-ai/platform-client","version":"1.0.0","license":"Apache-2.0","_id":"@afi-ai/platform-client@1.0.0","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"homepage":"https://github.com/curefatih/afi#readme","bugs":{"url":"https://github.com/curefatih/afi/issues"},"dist":{"shasum":"59bf0c0247ca9f2a9bd73381260e2885b59f9703","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.0.tgz","fileCount":10,"integrity":"sha512-O/6ckJWAUHaof70/ql39l4rw7KeNZ8MFn+8u2QbtNt3RsYI1ke/EohcCyq+Uoc65z5vbPuXvzheVFLyB0fURcQ==","signatures":[{"sig":"MEYCIQCHxYhauHudKyg4UojtfdT9rZHqlfaEND63IB3RbD5QGAIhAN28KUMry3vnXu4bgn1nXYgstdRUU6rSUjzZ8d7mNF29","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":150062},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"fd285d3fc6af02ccec61c945770895169ed70a15","scripts":{"test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"curefatih","email":"curefat@gmail.com"},"repository":{"url":"git+https://github.com/curefatih/afi.git","type":"git","directory":"clients/typescript"},"_npmVersion":"11.18.0","description":"Thin TypeScript client for the AFI Platform API","directories":{},"_nodeVersion":"22.16.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.20.1"},"_npmOperationalInternal":{"tmp":"tmp/platform-client_1.0.0_1785276438492_0.9541139348525178","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@afi-ai/platform-client","version":"1.0.1","license":"Apache-2.0","_id":"@afi-ai/platform-client@1.0.1","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"homepage":"https://github.com/curefatih/afi#readme","bugs":{"url":"https://github.com/curefatih/afi/issues"},"dist":{"shasum":"9b01703c7b7151446478d577f8c3c16e3c334862","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.1.tgz","fileCount":10,"integrity":"sha512-Dclfa4PF2LRjMeOBU0erty/vAFdQdwXIsYt+hYd/mJv8aIQjGW4vddR1B7rxfbfaHg4H342EiUkardMz4MO2KQ==","signatures":[{"sig":"MEUCIQDIXULdHR+u/66HXvp0HVDQHgL4JC5no+QqnjHKr4XTxgIgQEsqlnvJqbGnVYILJ3xEIShXvoXkEWXZupWo+5tZ4vc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afi-ai%2fplatform-client@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150116},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5f0bc2f1bd5d3c1ed2d99b3a4fbfa7aedb09457d","scripts":{"test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:085cd5ee-71c4-49b7-b08d-be1c2aef21ec"}},"repository":{"url":"git+https://github.com/curefatih/afi.git","type":"git","directory":"clients/typescript"},"_npmVersion":"12.0.1","description":"Thin TypeScript client for the AFI Platform API","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.20.1"},"_npmOperationalInternal":{"tmp":"tmp/platform-client_1.0.1_1785277769748_0.8382241824102106","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@afi-ai/platform-client","version":"1.0.2","license":"Apache-2.0","_id":"@afi-ai/platform-client@1.0.2","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"homepage":"https://github.com/curefatih/afi#readme","bugs":{"url":"https://github.com/curefatih/afi/issues"},"dist":{"shasum":"f4785e0f86558b86b343fab666ee8110cea16a8b","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.2.tgz","fileCount":10,"integrity":"sha512-K9xje6yfrFrk5B2Apf/UDXTuODo4+WugRM8RWgTlFNyW8nGcKJVEnr9ahoLZkzdF4cRWFuK1rozUEJsjJqmvdQ==","signatures":[{"sig":"MEUCICLuSfO6q0pr112OmLiVcGrTQIEG5r85gSlB3j+kbK0FAiEAsnX2Z69HSNgfmxSsg+QlwZfYSz30oqec02lN8y/X6QA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afi-ai%2fplatform-client@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150116},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5be0517f35a9b2e2d138c7332a9618dd9f23f64c","scripts":{"test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:085cd5ee-71c4-49b7-b08d-be1c2aef21ec"}},"repository":{"url":"git+https://github.com/curefatih/afi.git","type":"git","directory":"clients/typescript"},"_npmVersion":"11.6.2","description":"Thin TypeScript client for the AFI Platform API","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.20.1"},"_npmOperationalInternal":{"tmp":"tmp/platform-client_1.0.2_1785278263348_0.38042765528118916","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@afi-ai/platform-client","version":"1.0.3","license":"Apache-2.0","_id":"@afi-ai/platform-client@1.0.3","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"homepage":"https://github.com/curefatih/afi#readme","bugs":{"url":"https://github.com/curefatih/afi/issues"},"dist":{"shasum":"e88991c643a7b269e900051c6b71dce0fdfa0399","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.3.tgz","fileCount":10,"integrity":"sha512-VtCrab/r/goS9J45XfEZ2zymZKWE9DlqqmRKIIxF1cCg54iOu4QrDSicBVczt7hHQ2FZsD8Lc3pJ94yWopLo5w==","signatures":[{"sig":"MEUCIBziGTJ6V9ztwetIkViG/6go4G73PatnJ3rXkOlhDXnHAiEA076GP/xnMzWuAri4vhDJiHhwveQhumn8ubwnWmUOQjg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afi-ai%2fplatform-client@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150116},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5be0517f35a9b2e2d138c7332a9618dd9f23f64c","scripts":{"test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:085cd5ee-71c4-49b7-b08d-be1c2aef21ec"}},"repository":{"url":"git+https://github.com/curefatih/afi.git","type":"git","directory":"clients/typescript"},"_npmVersion":"11.6.2","description":"Thin TypeScript client for the AFI Platform API","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.20.1"},"_npmOperationalInternal":{"tmp":"tmp/platform-client_1.0.3_1785278454924_0.5071683973878309","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@afi-ai/platform-client","version":"1.0.4","license":"Apache-2.0","_id":"@afi-ai/platform-client@1.0.4","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"homepage":"https://github.com/curefatih/afi#readme","bugs":{"url":"https://github.com/curefatih/afi/issues"},"dist":{"shasum":"132b1576484112785c7edb09d4c4dd7cc9337466","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.4.tgz","fileCount":10,"integrity":"sha512-7FKwbJVxarLABqsKZqLfvu/Ccyklv+bARVGwlXSF+7ZJzOZ05FDMXvFYXFxXM1BcpJdd749PkJ1ZMNBxdJhA5A==","signatures":[{"sig":"MEQCIHJjgesOJB8tQmrB2Fd4nDF/kw3vH0vXyQmkFy9a0GuQAiBwCjULhRAl5+cWu59+uXE+f7ZPai8khzPr/rDbsHTARw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afi-ai%2fplatform-client@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150116},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5be0517f35a9b2e2d138c7332a9618dd9f23f64c","scripts":{"test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:085cd5ee-71c4-49b7-b08d-be1c2aef21ec"}},"repository":{"url":"git+https://github.com/curefatih/afi.git","type":"git","directory":"clients/typescript"},"_npmVersion":"11.6.2","description":"Thin TypeScript client for the AFI Platform API","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.20.1"},"_npmOperationalInternal":{"tmp":"tmp/platform-client_1.0.4_1785278569267_0.3283747176951717","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@afi-ai/platform-client","version":"1.0.5","description":"Thin TypeScript client for the AFI Platform API","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","test":"node --experimental-strip-types --test src/client.test.ts src/httpsign.test.ts"},"devDependencies":{"@types/node":"^22.20.1","typescript":"^5.8.2"},"engines":{"node":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/","provenance":true},"repository":{"type":"git","url":"git+https://github.com/curefatih/afi.git","directory":"clients/typescript"},"license":"Apache-2.0","gitHead":"480d3e2e2e8ff450cd192c95eb9cb3ddfebbb26f","_id":"@afi-ai/platform-client@1.0.5","bugs":{"url":"https://github.com/curefatih/afi/issues"},"homepage":"https://github.com/curefatih/afi#readme","_nodeVersion":"24.18.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-D3FjKKEqVH/5zB4AROs0HEhttXRB7K3dfsBkj654BlscRqugyn9Au3ATLRvZv0bvx3TVOm7X/8ZyqVoQjUPOtg==","shasum":"2b43bdc24acda789794f3eab2dc039382b913c65","tarball":"https://registry.npmjs.org/@afi-ai/platform-client/-/platform-client-1.0.5.tgz","fileCount":10,"unpackedSize":186910,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@afi-ai%2fplatform-client@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB+U+yUnkTLtQfpD3kQTuEJPHHKSH9i9YBLDkyUiaC4CAiEAvbIxOCbbCxSMnl/sxElworVRnVEfi1UvA+n3x6al/NY="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:085cd5ee-71c4-49b7-b08d-be1c2aef21ec"}},"directories":{},"maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/platform-client_1.0.5_1785607625779_0.07954793476918409"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-28T22:07:18.301Z","modified":"2026-08-01T18:07:06.274Z","1.0.0":"2026-07-28T22:07:18.646Z","1.0.1":"2026-07-28T22:29:29.883Z","1.0.2":"2026-07-28T22:37:43.491Z","1.0.3":"2026-07-28T22:40:55.089Z","1.0.4":"2026-07-28T22:42:49.431Z","1.0.5":"2026-08-01T18:07:05.943Z"},"bugs":{"url":"https://github.com/curefatih/afi/issues"},"license":"Apache-2.0","homepage":"https://github.com/curefatih/afi#readme","repository":{"type":"git","url":"git+https://github.com/curefatih/afi.git","directory":"clients/typescript"},"description":"Thin TypeScript client for the AFI Platform API","maintainers":[{"name":"curefatih","email":"curefat@gmail.com"}],"readme":"# @afi-ai/platform-client\n\nThin TypeScript fetch client for the AFI control plane.\n\n```bash\ncd clients/typescript && pnpm install && pnpm test\n```\n\n```ts\nimport { PlatformClient } from \"@afi-ai/platform-client\";\n\nconst client = new PlatformClient({\n  baseUrl: \"http://localhost:8081\",\n  getToken: () => process.env.AFI_TOKEN!,\n});\n\nconst orgs = await client.listOrganizations();\n```\n\nOpenAPI types are generated into `src/schema.gen.ts` via `make openapi-gen`.\n\n## Gateway signed requests\n\n```ts\nimport { signHeaders } from \"@afi-ai/platform-client\";\n\nconst headers = {\n  \"Content-Type\": \"application/json\",\n  ...signHeaders({\n    method: \"POST\",\n    url: \"http://localhost:8080/v1/chat/completions\",\n    body,\n    privateKeyPem,\n    keyId: \"local-signer\",\n  }),\n};\n```\n\nRelease time: Jul 29 01:37 AM","readmeFilename":"README.md"}