Skip to content

Commit 14328eb

Browse files
feat(api): manual updates
1 parent 0bee36c commit 14328eb

21 files changed

Lines changed: 44 additions & 44 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 3
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c4c5f89f67a73e4d17377d2b96fc201a63cd5458cbebaa23e78f92b59b90cc5b.yml
33
openapi_spec_hash: 931c6189a4fc4ee320963646b1b7edbe
4-
config_hash: 2089a6e46e0dfc89128dd5757a7bcf60
4+
config_hash: 554356d6e2bebaa59aaebbc75eebf525

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ $ cd warp-api-typescript
5555
# With yarn
5656
$ yarn link
5757
$ cd ../my-package
58-
$ yarn link warp-api
58+
$ yarn link warp-sdk
5959

6060
# With pnpm
6161
$ pnpm link --global
6262
$ cd ../my-package
63-
$ pnpm link -—global warp-api
63+
$ pnpm link -—global warp-sdk
6464
```
6565

6666
## Running tests

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Warp API TypeScript API Library
22

3-
[![NPM version](<https://img.shields.io/npm/v/warp-api.svg?label=npm%20(stable)>)](https://npmjs.org/package/warp-api) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/warp-api)
3+
[![NPM version](<https://img.shields.io/npm/v/warp-sdk.svg?label=npm%20(stable)>)](https://npmjs.org/package/warp-sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/warp-sdk)
44

55
This library provides convenient access to the Warp API REST API from server-side TypeScript or JavaScript.
66

@@ -15,15 +15,15 @@ npm install git+ssh://git@github.com:stainless-sdks/warp-api-typescript.git
1515
```
1616

1717
> [!NOTE]
18-
> Once this package is [published to npm](https://www.stainless.com/docs/guides/publish), this will become: `npm install warp-api`
18+
> Once this package is [published to npm](https://www.stainless.com/docs/guides/publish), this will become: `npm install warp-sdk`
1919
2020
## Usage
2121

2222
The full API of this library can be found in [api.md](api.md).
2323

2424
<!-- prettier-ignore -->
2525
```js
26-
import WarpAPI from 'warp-api';
26+
import WarpAPI from 'warp-sdk';
2727

2828
const client = new WarpAPI({
2929
apiKey: process.env['WARP_API_API_KEY'], // This is the default and can be omitted
@@ -40,7 +40,7 @@ This library includes TypeScript definitions for all request params and response
4040

4141
<!-- prettier-ignore -->
4242
```ts
43-
import WarpAPI from 'warp-api';
43+
import WarpAPI from 'warp-sdk';
4444

4545
const client = new WarpAPI({
4646
apiKey: process.env['WARP_API_API_KEY'], // This is the default and can be omitted
@@ -165,7 +165,7 @@ The log level can be configured in two ways:
165165
2. Using the `logLevel` client option (overrides the environment variable if set)
166166

167167
```ts
168-
import WarpAPI from 'warp-api';
168+
import WarpAPI from 'warp-sdk';
169169

170170
const client = new WarpAPI({
171171
logLevel: 'debug', // Show all log messages
@@ -193,7 +193,7 @@ When providing a custom logger, the `logLevel` option still controls which messa
193193
below the configured level will not be sent to your logger.
194194

195195
```ts
196-
import WarpAPI from 'warp-api';
196+
import WarpAPI from 'warp-sdk';
197197
import pino from 'pino';
198198

199199
const logger = pino();
@@ -262,7 +262,7 @@ globalThis.fetch = fetch;
262262
Or pass it to the client:
263263

264264
```ts
265-
import WarpAPI from 'warp-api';
265+
import WarpAPI from 'warp-sdk';
266266
import fetch from 'my-fetch';
267267

268268
const client = new WarpAPI({ fetch });
@@ -273,7 +273,7 @@ const client = new WarpAPI({ fetch });
273273
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
274274

275275
```ts
276-
import WarpAPI from 'warp-api';
276+
import WarpAPI from 'warp-sdk';
277277

278278
const client = new WarpAPI({
279279
fetchOptions: {
@@ -290,7 +290,7 @@ options to requests:
290290
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
291291

292292
```ts
293-
import WarpAPI from 'warp-api';
293+
import WarpAPI from 'warp-sdk';
294294
import * as undici from 'undici';
295295

296296
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
@@ -304,7 +304,7 @@ const client = new WarpAPI({
304304
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
305305

306306
```ts
307-
import WarpAPI from 'warp-api';
307+
import WarpAPI from 'warp-sdk';
308308

309309
const client = new WarpAPI({
310310
fetchOptions: {
@@ -316,7 +316,7 @@ const client = new WarpAPI({
316316
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
317317

318318
```ts
319-
import WarpAPI from 'npm:warp-api';
319+
import WarpAPI from 'npm:warp-sdk';
320320

321321
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
322322
const client = new WarpAPI({

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default tseslint.config(
2525
{
2626
patterns: [
2727
{
28-
regex: '^warp-api(/.*)?',
28+
regex: '^warp-sdk(/.*)?',
2929
message: 'Use a relative import, not a package import.',
3030
},
3131
],

jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const config: JestConfigWithTsJest = {
77
'^.+\\.(t|j)sx?$': ['@swc/jest', { sourceMaps: 'inline' }],
88
},
99
moduleNameMapper: {
10-
'^warp-api$': '<rootDir>/src/index.ts',
11-
'^warp-api/(.*)$': '<rootDir>/src/$1',
10+
'^warp-sdk$': '<rootDir>/src/index.ts',
11+
'^warp-sdk/(.*)$': '<rootDir>/src/$1',
1212
},
1313
modulePathIgnorePatterns: [
1414
'<rootDir>/ecosystem-tests/',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "warp-api",
2+
"name": "warp-sdk",
33
"version": "0.0.1",
44
"description": "The official TypeScript library for the Warp API API",
55
"author": "Warp API <>",

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ onlyBuiltDependencies:
22
- '@swc/core'
33
minimumReleaseAge: 1440
44
minimumReleaseAgeExclude:
5-
- warp-api
5+
- warp-sdk

scripts/build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ node scripts/utils/check-version.cjs
88

99
# Build into dist and will publish the package from there,
1010
# so that src/resources/foo.ts becomes <package root>/resources/foo.js
11-
# This way importing from `"warp-api/resources/foo"` works
11+
# This way importing from `"warp-sdk/resources/foo"` works
1212
# even with `"moduleResolution": "node"`
1313

1414
rm -rf dist; mkdir dist
@@ -42,8 +42,8 @@ node scripts/utils/postprocess-files.cjs
4242

4343
# make sure that nothing crashes when we require the output CJS or
4444
# import the output ESM
45-
(cd dist && node -e 'require("warp-api")')
46-
(cd dist && node -e 'import("warp-api")' --input-type=module)
45+
(cd dist && node -e 'require("warp-sdk")')
46+
(cd dist && node -e 'import("warp-sdk")' --input-type=module)
4747

4848
if [ -e ./scripts/build-deno ]
4949
then

tests/api-resources/agent/agent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import WarpAPI from 'warp-api';
3+
import WarpAPI from 'warp-sdk';
44

55
const client = new WarpAPI({
66
apiKey: 'My API Key',

tests/api-resources/agent/tasks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import WarpAPI from 'warp-api';
3+
import WarpAPI from 'warp-sdk';
44

55
const client = new WarpAPI({
66
apiKey: 'My API Key',

0 commit comments

Comments
 (0)