{"_id":"@awt_ai/sdk","_rev":"2-6d46ee374f54c387aa78372ee36bd95d","name":"@awt_ai/sdk","dist-tags":{"latest":"0.95.3"},"versions":{"0.95.2":{"name":"@awt_ai/sdk","version":"0.95.2","author":{"name":"Awt","email":"support@awt.com"},"license":"MIT","_id":"@awt_ai/sdk@0.95.2","maintainers":[{"name":"awt_ai","email":"trungtp120524@gmail.com"}],"homepage":"https://github.com/awts/awt-sdk-typescript#readme","bugs":{"url":"https://github.com/awts/awt-sdk-typescript/issues"},"bin":{"awt-ai-sdk":"bin/cli"},"dist":{"shasum":"7f153a4d8421d4741433d0b9dc63d9a27d330ea3","tarball":"https://registry.npmjs.org/@awt_ai/sdk/-/sdk-0.95.2.tgz","fileCount":237,"integrity":"sha512-eh823RyUrkOgvMb26iUN4YH2BqcaXW/3Xr9O6eliw33ZMGppw9yG4pBIGON+fkJmo0PjCl/V0uboiK8Yh49VaQ==","signatures":[{"sig":"MEQCIEtOnmhV4f3q44ni47cZIC4jfAvmKYIFxC2cBS7DpsXpAiAi20B+KSOSnYqayNDLOucs5i3Mp3jaituLZNysIBwMeg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1374241},"main":"./index.js","pnpm":{"overrides":{"minimatch":"^9.0.5"}},"type":"commonjs","types":"./index.d.ts","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./*":{"import":"./*.mjs","require":"./*.js"},"./*.js":{"default":"./*.js"},"./*.mjs":{"default":"./*.mjs"}},"gitHead":"9fdef453d86b1b34203089e6329734aa0b2e813a","private":false,"scripts":{"fix":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","test":"./scripts/test","build":"./scripts/build-all","format":"./scripts/format"},"_npmUser":{"name":"awt_ai","email":"trungtp120524@gmail.com"},"overrides":{"minimatch":"^9.0.5"},"repository":{"url":"git+https://github.com/awts/awt-sdk-typescript.git","type":"git"},"_npmVersion":"10.9.7","description":"The official TypeScript library for the Awt API","directories":{},"resolutions":{"minimatch":"^9.0.5"},"_nodeVersion":"22.22.2","dependencies":{"standardwebhooks":"^1.0.0","json-schema-to-ts":"^3.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22","peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.95.2_1778666499081_0.4213970509332463","host":"s3://npm-registry-packages-npm-production"}},"0.95.3":{"name":"@awt_ai/sdk","version":"0.95.3","description":"The official TypeScript library for the Awt API","author":{"name":"Awt","email":"support@awt.com"},"types":"./index.d.ts","main":"./index.js","type":"commonjs","repository":{"type":"git","url":"git+https://github.com/awts/awt-sdk-typescript.git"},"license":"MIT","packageManager":"yarn@1.22.22","private":false,"publishConfig":{"access":"public"},"scripts":{"test":"./scripts/test","build":"./scripts/build-all","format":"./scripts/format","tsn":"ts-node -r tsconfig-paths/register","lint":"./scripts/lint","fix":"./scripts/format"},"dependencies":{"json-schema-to-ts":"^3.1.1","standardwebhooks":"^1.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"peerDependenciesMeta":{"zod":{"optional":true}},"bin":{"awt-ai-sdk":"bin/cli"},"overrides":{"minimatch":"^9.0.5"},"pnpm":{"overrides":{"minimatch":"^9.0.5"}},"resolutions":{"minimatch":"^9.0.5"},"exports":{".":{"require":{"types":"./index.d.ts","default":"./index.js"},"types":"./index.d.mts","default":"./index.mjs"},"./.github/*.mjs":{"default":"./.github/*.mjs"},"./.github/*.js":{"default":"./.github/*.js"},"./.github/*":{"import":"./.github/*.mjs","require":"./.github/*.js"},"./_vendor/*.mjs":{"default":"./_vendor/*.mjs"},"./_vendor/*.js":{"default":"./_vendor/*.js"},"./_vendor/*":{"import":"./_vendor/*.mjs","require":"./_vendor/*.js"},"./api-promise":{"import":"./api-promise.mjs","require":"./api-promise.js"},"./api-promise.js":{"default":"./api-promise.js"},"./api-promise.mjs":{"default":"./api-promise.mjs"},"./client":{"import":"./client.mjs","require":"./client.js"},"./client.js":{"default":"./client.js"},"./client.mjs":{"default":"./client.mjs"},"./core/*.mjs":{"default":"./core/*.mjs"},"./core/*.js":{"default":"./core/*.js"},"./core/*":{"import":"./core/*.mjs","require":"./core/*.js"},"./error":{"import":"./error.mjs","require":"./error.js"},"./error.js":{"default":"./error.js"},"./error.mjs":{"default":"./error.mjs"},"./helpers/*.mjs":{"default":"./helpers/*.mjs"},"./helpers/*.js":{"default":"./helpers/*.js"},"./helpers/*":{"import":"./helpers/*.mjs","require":"./helpers/*.js"},"./index":{"import":"./index.mjs","require":"./index.js"},"./index.js":{"default":"./index.js"},"./index.mjs":{"default":"./index.mjs"},"./lib/*.mjs":{"default":"./lib/*.mjs"},"./lib/*.js":{"default":"./lib/*.js"},"./lib/*":{"import":"./lib/*.mjs","require":"./lib/*.js"},"./pagination":{"import":"./pagination.mjs","require":"./pagination.js"},"./pagination.js":{"default":"./pagination.js"},"./pagination.mjs":{"default":"./pagination.mjs"},"./resource":{"import":"./resource.mjs","require":"./resource.js"},"./resource.js":{"default":"./resource.js"},"./resource.mjs":{"default":"./resource.mjs"},"./resources/*.mjs":{"default":"./resources/*.mjs"},"./resources/*.js":{"default":"./resources/*.js"},"./resources/*":{"import":"./resources/*.mjs","require":"./resources/*.js"},"./resources":{"import":"./resources.mjs","require":"./resources.js"},"./resources.js":{"default":"./resources.js"},"./resources.mjs":{"default":"./resources.mjs"},"./streaming":{"import":"./streaming.mjs","require":"./streaming.js"},"./streaming.js":{"default":"./streaming.js"},"./streaming.mjs":{"default":"./streaming.mjs"},"./tools/*.mjs":{"default":"./tools/*.mjs"},"./tools/*.js":{"default":"./tools/*.js"},"./tools/*":{"import":"./tools/*.mjs","require":"./tools/*.js"},"./uploads":{"import":"./uploads.mjs","require":"./uploads.js"},"./uploads.js":{"default":"./uploads.js"},"./uploads.mjs":{"default":"./uploads.mjs"},"./version":{"import":"./version.mjs","require":"./version.js"},"./version.js":{"default":"./version.js"},"./version.mjs":{"default":"./version.mjs"}},"_id":"@awt_ai/sdk@0.95.3","gitHead":"9fdef453d86b1b34203089e6329734aa0b2e813a","bugs":{"url":"https://github.com/awts/awt-sdk-typescript/issues"},"homepage":"https://github.com/awts/awt-sdk-typescript#readme","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-pscYWp5pXxaLjhK1xXtNQiDPhsiiGNZnO/MDUeo+XD5h7t7Kx+iNKo16pevy/QLR8jJT/ne+WHS63k2DNUro3g==","shasum":"05975ca715ea07d74aacb1e9f132b0736f3d5235","tarball":"https://registry.npmjs.org/@awt_ai/sdk/-/sdk-0.95.3.tgz","fileCount":1216,"unpackedSize":4963498,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4O770fpSZywWAIFvCDILRuhggKStnqWxrcsukOm5ZUQIgf6Xq+6L4IURfEb0VBgAB3WdmMN0aNk0kMpwti0gzRkk="}]},"_npmUser":{"name":"awt_ai","email":"trungtp120524@gmail.com"},"directories":{},"maintainers":[{"name":"awt_ai","email":"trungtp120524@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.95.3_1778667778926_0.5595663055122206"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-13T10:01:39.013Z","modified":"2026-05-13T10:22:59.239Z","0.95.2":"2026-05-13T10:01:39.285Z","0.95.3":"2026-05-13T10:22:59.131Z"},"bugs":{"url":"https://github.com/awts/awt-sdk-typescript/issues"},"author":{"name":"Awt","email":"support@awt.com"},"license":"MIT","homepage":"https://github.com/awts/awt-sdk-typescript#readme","repository":{"type":"git","url":"git+https://github.com/awts/awt-sdk-typescript.git"},"description":"The official TypeScript library for the Awt API","maintainers":[{"name":"awt_ai","email":"trungtp120524@gmail.com"}],"readme":"# <img src=\".github/logo.svg\" alt=\"\" width=\"32\"> Awt SDK for TypeScript\n\n[![NPM version](https://img.shields.io/npm/v/@awt_ai/sdk.svg)](https://npmjs.org/package/@awt_ai/sdk)\n\nThe Awt SDK for TypeScript provides access to the [Awt API](https://docs.awt.com/en/api/) from server-side TypeScript or JavaScript applications.\n\n## Documentation\n\nFull documentation is available at **[platform.awt.com/docs/en/api/sdks/typescript](https://platform.awt.com/docs/en/api/sdks/typescript)**.\n\n## Installation\n\n```sh\nnpm install @awt_ai/sdk\n```\n\n## Getting started\n\n```js\nimport Awt from '@awt_ai/sdk';\n\nconst client = new Awt({\n  apiKey: process.env['AWT_API_KEY'], // This is the default and can be omitted\n});\n\nconst message = await client.messages.create({\n  max_tokens: 1024,\n  messages: [{ role: 'user', content: 'Hello, Awt' }],\n  model: 'awt-opus-4-6',\n});\n\nconsole.log(message.content);\n```\n\n## Requirements\n\nNode.js 18+\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}