{"versions":{"0.5.7":{"name":"@typesafe-ai/sdk","version":"0.5.7","description":"TypeScript SDK for the TypeSafe API","license":"MIT","author":{"name":"evinism"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"sideEffects":false,"engines":{"node":">=20"},"packageManager":"npm@11.19.0","scripts":{"build":"tsdown","typecheck":"tsc","lint":"biome check .","lint:fix":"biome check --write .","test":"vitest run","test:watch":"vitest","test:integration":"vitest run --config vitest.integration.config.ts","test:coverage":"vitest run --coverage","test:dist":"vitest run --config vitest.dist.config.ts","check:version":"node scripts/check-version.mjs","check:package":"node scripts/check-package.mjs","prepublishOnly":"npm run check","push:npm":"npm publish","push:npm:dry":"npm publish --dry-run","push:jsr":"npm run check && jsr publish","push:jsr:dry":"npm run check && jsr publish --dry-run --allow-dirty","demo":"tsx examples/demo.ts","check":"npm run lint && npm run typecheck && npm run check:version && npm run test:coverage && npm run build && npm run test:dist && npm run check:package","docs":"npm ci --prefix docs --ignore-scripts --no-audit --no-fund && npm run --prefix docs build"},"devDependencies":{"@arethetypeswrong/cli":"^0.18.5","@biomejs/biome":"^2.5.11","@types/node":"^26.4.1","@vitest/coverage-v8":"^4.1.11","git-cliff":"2.13.1","jsr":"^0.14.3","publint":"^0.3.24","tsdown":"^0.22.14","tsx":"^4.23.13","typescript":"^7.0.2","vitest":"^4.1.11"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/typesafe-ai/typesafe-sdk-js.git"},"homepage":"https://docs.typesafe.ai/sdk/javascript","bugs":{"url":"https://github.com/typesafe-ai/typesafe-sdk-js/issues"},"_id":"@typesafe-ai/sdk@0.5.7","_integrity":"sha512-OrbhDXyxDoX9l45/Mcts+TsNuvubCuZQzINQv0BMbi32ztcapzgrCnMmaW9gK5+JkgQAZcnJH1f47lAur+i1hw==","_resolved":"/home/runner/work/typesafe-sdk-js/typesafe-sdk-js/release/typesafe-ai-sdk-0.5.7.tgz","_from":"file:release/typesafe-ai-sdk-0.5.7.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-OrbhDXyxDoX9l45/Mcts+TsNuvubCuZQzINQv0BMbi32ztcapzgrCnMmaW9gK5+JkgQAZcnJH1f47lAur+i1hw==","shasum":"50f56e8a27cab8cb402652a506697654ff57cfd3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@typesafe-ai/sdk/-/sdk-0.5.7.tgz","fileCount":9,"unpackedSize":214551,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@typesafe-ai%2fsdk@0.5.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDSihwgXlCHBSJF7y3YUXd0aBkFoK/dHakieLPYzogjvgIhAJemk3sg8Fjf/oMl36NdbaxX0ftcdNiepj/0YCN0ZDOA"}],"size":58399},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4c64f1c0-094c-4ddd-87bd-604d64fedbb2"}},"directories":{},"maintainers":[{"name":"anonymous","email":"allie@typesafe.ai"},{"name":"anonymous","email":"diogo@typesafe.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.5.7_1789186400959_0.2792102019670122"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-12T04:13:21.117Z","publish_time":1789186401117,"_source_registry_name":"default","contributors":[]},"0.0.0-bootstrap.0":{"name":"@typesafe-ai/sdk","version":"0.0.0-bootstrap.0","license":"MIT","_id":"@typesafe-ai/sdk@0.0.0-bootstrap.0","maintainers":[{"name":"anonymous","email":"allie@typesafe.ai"},{"name":"anonymous","email":"diogo@typesafe.ai"}],"homepage":"https://docs.typesafe.ai","bugs":{"url":"https://github.com/typesafe-ai/typesafe-sdk-js/issues"},"dist":{"shasum":"43900134b4e5778a64aa981838ed9ee466229457","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@typesafe-ai/sdk/-/sdk-0.0.0-bootstrap.0.tgz","fileCount":3,"integrity":"sha512-NyW0Q5dnHAVpLMhdxQ6tsBJSpqK9wth6WvKZ5Dt33pnXgyK7ghguUWLkwPprnlp+BRfdq/ebOdyqBO6UeJ3stg==","signatures":[{"sig":"MEUCIAaSa4Kpl5JtZA2QNmB5y7cy87yIECmkFLAJB5IyKTzXAiEAzcYw+vKwp8os2cjQRx+xZ7x6VWH+6nvyF9iX+tr3gQE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@typesafe-ai%2fsdk@0.0.0-bootstrap.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1987,"size":1243},"_from":"file:typesafe-ai-sdk-0.0.0-bootstrap.0.tgz","_npmUser":{"name":"anonymous","email":"allie@typesafe.ai"},"_resolved":"/home/runner/work/typesafe-sdk-js/typesafe-sdk-js/typesafe-ai-sdk-0.0.0-bootstrap.0.tgz","_integrity":"sha512-NyW0Q5dnHAVpLMhdxQ6tsBJSpqK9wth6WvKZ5Dt33pnXgyK7ghguUWLkwPprnlp+BRfdq/ebOdyqBO6UeJ3stg==","repository":{"url":"git+https://github.com/typesafe-ai/typesafe-sdk-js.git","type":"git"},"_npmVersion":"11.19.0","description":"Placeholder for the TypeSafe JavaScript and TypeScript SDK; not a functional SDK.","directories":{},"_nodeVersion":"24.20.0","publishConfig":{"tag":"bootstrap","access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.0-bootstrap.0_1789181778891_0.9533027403588827","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-09-12T02:56:19.015Z","publish_time":1789181779015,"_source_registry_name":"default","contributors":[]},"0.6.0":{"name":"@typesafe-ai/sdk","version":"0.6.0","description":"TypeScript SDK for the TypeSafe API","license":"MIT","author":{"name":"evinism"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"sideEffects":false,"engines":{"node":">=20"},"packageManager":"npm@11.19.0","scripts":{"build":"tsdown","typecheck":"tsc","lint":"biome check .","lint:fix":"biome check --write .","test":"vitest run","test:watch":"vitest","test:integration":"vitest run --config vitest.integration.config.ts","test:coverage":"vitest run --coverage","test:dist":"vitest run --config vitest.dist.config.ts","check:version":"node scripts/check-version.mjs","check:package":"node scripts/check-package.mjs","prepublishOnly":"npm run check","push:npm":"npm publish","push:npm:dry":"npm publish --dry-run","push:jsr":"npm run check && jsr publish","push:jsr:dry":"npm run check && jsr publish --dry-run --allow-dirty","demo":"tsx examples/demo.ts","check":"npm run lint && npm run typecheck && npm run check:version && npm run test:coverage && npm run build && npm run test:dist && npm run check:package","docs":"npm ci --prefix docs --ignore-scripts --no-audit --no-fund && npm run --prefix docs build"},"devDependencies":{"@arethetypeswrong/cli":"^0.18.5","@biomejs/biome":"^2.5.11","@types/node":"^26.4.1","@vitest/coverage-v8":"^4.1.11","git-cliff":"2.13.1","jsr":"^0.14.3","publint":"^0.3.24","tsdown":"^0.22.14","tsx":"^4.23.13","typescript":"^7.0.2","vitest":"^4.1.11"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/typesafe-ai/typesafe-sdk-js.git"},"homepage":"https://docs.typesafe.ai/sdk/javascript","bugs":{"url":"https://github.com/typesafe-ai/typesafe-sdk-js/issues"},"_id":"@typesafe-ai/sdk@0.6.0","_integrity":"sha512-IddX+Q0XM+VagOUZFeP7wZjaO4SHMdvnh2zEBdrZZnXedWI3BNK1lKhMx3ayrkFWvVLbVcUHJy6AVZlY+e6Jaw==","_resolved":"/home/runner/work/typesafe-sdk-js/typesafe-sdk-js/release/typesafe-ai-sdk-0.6.0.tgz","_from":"file:release/typesafe-ai-sdk-0.6.0.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-IddX+Q0XM+VagOUZFeP7wZjaO4SHMdvnh2zEBdrZZnXedWI3BNK1lKhMx3ayrkFWvVLbVcUHJy6AVZlY+e6Jaw==","shasum":"dbba30689e77c317e7619fbee006caa18f37a76a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@typesafe-ai/sdk/-/sdk-0.6.0.tgz","fileCount":9,"unpackedSize":209203,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@typesafe-ai%2fsdk@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCiuSLyeKu5VTIUGJKI3nc4HpE0YG6wy5jFJJcBpYK9dQIgNs/BsaAra+zCQvH/Bm6iE35f2rjtVNGkO/wkSSeIRrw="}],"size":56528},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4c64f1c0-094c-4ddd-87bd-604d64fedbb2"}},"directories":{},"maintainers":[{"name":"anonymous","email":"allie@typesafe.ai"},{"name":"anonymous","email":"diogo@typesafe.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.6.0_1789496239115_0.11329610694343417"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-15T18:17:19.263Z","publish_time":1789496239263,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"bootstrap":"0.0.0-bootstrap.0","latest":"0.6.0"},"name":"@typesafe-ai/sdk","time":{"created":"2026-09-12T04:13:28.246Z","modified":"2026-09-15T18:17:29.728Z","0.5.7":"2026-09-12T04:13:21.117Z","0.0.0-bootstrap.0":"2026-09-12T02:56:19.015Z","0.6.0":"2026-09-15T18:17:19.263Z"},"readme":"# TypeSafe AI JavaScript SDK\n\nJavaScript and TypeScript SDK for [TypeSafe AI](https://typesafe.ai).\n\n## Quickstart\n\nInstall the SDK (Node.js 20 or newer):\n\n```sh\nnpm install @typesafe-ai/sdk\n```\n\nSet `TYPESAFE_API_KEY` in your environment, then create and use the client:\n\n```ts\nimport { choice, TypeSafeClient } from \"@typesafe-ai/sdk\";\n\nconst client = new TypeSafeClient();\nconst response = await client.systemOne({\n  state: { document: \"I was charged twice. Please fix this ASAP.\" },\n  questions: {\n    category: choice(\"What is this ticket about?\", {\n      billing: null,\n      technical: null,\n      other: null,\n    }),\n  },\n});\n\nconsole.log(response.answers.category.choice);\n```\n\nAnswer types are inferred from your questions. The package includes ESM, CommonJS, and TypeScript declarations.\n\n## Documentation\n\nLearn what TypeSafe can do in the [TypeSafe docs](https://docs.typesafe.ai/).\nSee the SDK's [client](src/client.ts) and [types](src/types.ts) for API options and defaults.","users":{}}