{"_id":"t-ai-apimatic-sdk","_rev":"2-2423b193e86d5d6e9fa87038636ff6a2","name":"t-ai-apimatic-sdk","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0-stage":{"name":"t-ai-apimatic-sdk","version":"0.0.0-stage","_id":"t-ai-apimatic-sdk@0.0.0-stage","stub":true,"maintainers":[{"name":"developer-sdksio","email":"developer+sdksio@apimatic.io"}],"dist":{"shasum":"9e569e7326b18b11fd107920522d7b358e3a4d85","tarball":"https://registry.npmjs.org/t-ai-apimatic-sdk/-/t-ai-apimatic-sdk-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-HQKTtPcKEZQp4wMXhemctEnXicn19Bg0Ew71Jf4gZ0ywMeXHwLgL2QLYp9pgblrc6zd7kOkralDTCZGPUS9hLA==","signatures":[{"sig":"MEUCIQDJv2cAhnSIYbZNomDqA9hhTgW99WrqqpEUMXB9nQPARgIgHc7MYWvy2j62EMZRCHrOMUqG+EF2Ojzpeupi3x2Ym1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":339},"_npmUser":{"name":"developer-sdksio","email":"developer+sdksio@apimatic.io"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.0.1":{"_id":"t-ai-apimatic-sdk@0.0.1","bugs":{"url":"https://github.com/sdks-io/t-ai-apimatic-js-sdk/issues"},"dist":{"shasum":"f8daa92fe74327ed67cb81126957b0d381ec05d5","tarball":"https://registry.npmjs.org/t-ai-apimatic-sdk/-/t-ai-apimatic-sdk-0.0.1.tgz","fileCount":6463,"integrity":"sha512-21HrtKeCA1romgKkDMArLZT3rlAe4Es/JuxTfCAqwpnBQkGIEtEBf8Xe2yg0pip922npqHBx1ByFYkJDUXYFfg==","signatures":[{"sig":"MEYCIQDbS/DLa/YHTLKlLkhD9yxQ11jcpTCgKQJBeMzbKfHF6AIhALlL/UD7gFcITfy2jx90Dl1xIGQ4GgNC1jp0Nosgjdie","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCPl9RTd5twPXXddxXh5R+bLtw+jVyOvCFRg6YsClbyKgIhANXdTayNSFCkLBmxzHVdfUu2jWA9hVjMU0IPE7uu6QU7"}],"unpackedSize":9415895},"main":"./dist/commonjs/index.js","name":"t-ai-apimatic-sdk","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"},"project":"./tsconfig.tshy.json","dialects":["esm","commonjs"],"selfLink":false},"type":"module","types":"./dist/commonjs/index.d.ts","author":{"name":"Muhammad Rafay","email":"muhammad.rafay@apimatic.io"},"module":"./dist/esm/index.js","engines":{"node":">=20.3"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"license":"MIT","scripts":{"lint":"oxlint --type-aware --max-warnings=0 src","build":"tshy","smoke":"node -e \"require('t-ai-apimatic-sdk')\" && node --input-type=module -e \"import('t-ai-apimatic-sdk')\"","format":"oxfmt src","prepare":"tshy","typecheck":"tsc --noEmit","format:check":"oxfmt --check src","typecheck:dom":"tsc --noEmit -p tsconfig.dom.json"},"version":"0.0.1","_npmUser":{"name":"developer-sdksio","email":"developer+sdksio@apimatic.io"},"homepage":"https://docs.together.ai/","repository":{"url":"git+https://github.com/sdks-io/t-ai-apimatic-js-sdk.git","type":"git"},"_npmVersion":"10.9.8","description":"Sample SDKs for tAI by APIMatic","directories":{},"maintainers":[{"name":"developer-sdksio","email":"developer+sdksio@apimatic.io"}],"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tshy":"^4.1.3","oxfmt":"^0.61.0","oxlint":"^1.76.0","typescript":"^7.0.2","@types/node":"^20.14.0","oxlint-tsgolint":"^7.0.2001"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/t-ai-apimatic-sdk_0.0.1_1791488621031_0.6509058507572265"}}},"time":{"created":"2026-10-08T19:41:01.264Z","modified":"2026-10-08T19:43:41.395Z","0.0.0-stage":"2026-10-08T19:41:01.264Z","0.0.1":"2026-10-08T19:43:41.194Z"},"description":"Sample SDKs for tAI by APIMatic","maintainers":[{"name":"developer-sdksio","email":"developer+sdksio@apimatic.io"}],"readme":"# Together APIs\n\n[![Built with APIMatic][apimatic-badge]][apimatic-url] [![License: MIT][license-badge]][license-url]\n\nThe Together APIs SDK for TypeScript provides typed access to the Together APIs REST APIs from Node.js and the browser.\n\n> [!TIP]\n> **Looking for a specific signature, request field, model, enum or error type?** This SDK ships a generated, machine-readable **[SDK map](sdk-map.md)** — a lookup index of the whole TypeScript surface. Consult it **before** grepping or scanning the source tree; it answers most contract questions directly and, where a source file is genuinely needed, names the exact one to open. Details under [SDK map](#sdk-map).\n\nThe Together REST API. See https://docs.together.ai for more details.\n\n---\n\n## Installation\n\nTo add the SDK to your project from npm:\n\n```bash\nnpm install t-ai-apimatic-sdk\n```\n\nTo install from the SDK source instead, compile it to `dist/` — run its `build` script once in the SDK folder — then add it to your project by path:\n\n```bash\nnpm install <path-to-sdk>\n```\n\n---\n\n## Quick Start\n\nCreate one client and reuse it. Configure its behaviour through [ClientOptions](src/client-options.ts).\n\n```ts\nimport { ServerEnvironment, TogetherApIsClient } from \"t-ai-apimatic-sdk\";\n\nconst client = new TogetherApIsClient({\n  serverEnvironment: ServerEnvironment.Production,\n  bearerAuth: \"YOUR_BEARER_TOKEN\",\n});\n```\n\nNothing in `ClientOptions` is required — `new TogetherApIsClient()` compiles — and each option left out falls back to its default. `serverEnvironment` is spelled out above so the environment a call reaches is visible where the client is built rather than inherited silently.\n\n### From CommonJS\n\nThe package ships both dialects from a single entry, so `require` works with full types. In a TypeScript CommonJS file use the `import ... = require(...)` form — a plain destructuring `require` runs fine but gives you `any`.\n\n```ts\nimport sdk = require(\"t-ai-apimatic-sdk\");\n\nconst client = new sdk.TogetherApIsClient({\n  serverEnvironment: sdk.ServerEnvironment.Production,\n  bearerAuth: \"YOUR_BEARER_TOKEN\",\n});\n```\n\n---\n\n## Usage\n\nFor code examples and error responses, see [API Reference](api-reference.md).\n\n---\n\n## SDK map\n\nThis SDK ships a generated **SDK map** — [`sdk-map.md`](sdk-map.md) plus the pages under [`map/operations/`](map/operations/endpoint-service.md) — a deterministic, lookup-oriented table of contents of the TypeScript surface, generated alongside the SDK.\n\n**Read it before scanning the source.** Whether you are an AI coding assistant or searching by hand, the map answers \"what is the exact …\" by lookup for every call-level contract, and for anything it does not carry it names the one file that does:\n\n- **[`sdk-map.md`](sdk-map.md)** — the index: client construction, the one error family, the non-throwing `.asApiResult()` form, servers, environments and auth, the model locator, the runtime facts, and the SDK-wide defaults every operation relies on.\n- **[`map/operations/`](map/operations/endpoint-service.md)** — one page per resource: the exact signature and return type, the verb and route, the request body and its media type, a **Fields** table giving every request field its channel, and a **Type sources** table naming the file and schema value of every type the operation mentions.\n\nModel shapes — object properties with their wire names, enum member names and wire values, union variants — are **not** duplicated in the map, and not in the API reference either. Both name the type and the file to read; take the pair from the operation's **Type sources** table and read the declaring file. That file is the single source of truth and cannot go stale against the code.\n\n**Each operation block states only what is specific to it.** The SDK-wide defaults are stated once in [`sdk-map.md`](sdk-map.md) — the call shape, the base `ApiError`, the default server group — and a block departs from one only by saying so, so a block silent on a point is telling you the default applies. Take it and move on rather than opening the source to confirm.\n\n### Which one to reach for\n\nThe map and the [API reference](api-reference.md) answer different questions, and both are generated from this SDK so they stay in lockstep with the code.\n\n| Use | For |\n| --- | --- |\n| **[`sdk-map.md`](sdk-map.md) + [`map/operations/`](map/operations/endpoint-service.md)** | Traversing the SDK and working out its surface — locating the operation you need (this SDK exposes **201 operations**), its exact signature, which credential it sends, which channel every request field travels on, which error type it rejects with and how to read it, and the file behind any type. This is the index to consume the SDK from, and the one to reach for first. |\n| **[`api-reference.md`](api-reference.md)** | Usage guidance for a single operation once you know which one you want — a code sample for each of the two call forms (awaiting it, and the non-throwing `.asApiResult()`), per-parameter descriptions, and the success and error types it resolves or rejects with. |\n\n---\n\n## License\n\nThis SDK is distributed under the [MIT License](LICENSE).\n\n---\n\n## Support\n\nRefer to the [API reference](api-reference.md) for detailed information on available operations with code samples.\n\n---\n\n[license-url]: LICENSE\n[license-badge]: https://img.shields.io/badge/License-MIT-blue.svg\n[apimatic-url]: https://www.apimatic.io\n[apimatic-badge]: https://www.apimatic.io/hubfs/Built-with-APIMatic-badge.svg\n","readmeFilename":"README.md","homepage":"https://docs.together.ai/","repository":{"url":"git+https://github.com/sdks-io/t-ai-apimatic-js-sdk.git","type":"git"},"author":{"name":"Muhammad Rafay","email":"muhammad.rafay@apimatic.io"},"bugs":{"url":"https://github.com/sdks-io/t-ai-apimatic-js-sdk/issues"},"license":"MIT"}