Skip to content

Commit b464006

Browse files
feat(api): manual updates
1 parent ebbdf25 commit b464006

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: a1f8af77d3fd2148abd3ad8d4dbf20a4
4+
config_hash: f555d17517c40197d3ba9240ca35e1ee

CONTRIBUTING.md

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

6060
# With pnpm
6161
$ pnpm link --global
6262
$ cd ../my-package
63-
$ pnpm link -—global warp-sdk
63+
$ pnpm link -—global warp-agent-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-sdk.svg?label=npm%20(stable)>)](https://npmjs.org/package/warp-sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/warp-sdk)
3+
[![NPM version](<https://img.shields.io/npm/v/warp-agent-sdk.svg?label=npm%20(stable)>)](https://npmjs.org/package/warp-agent-sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/warp-agent-sdk)
44

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

@@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1111
## Installation
1212

1313
```sh
14-
npm install warp-sdk
14+
npm install warp-agent-sdk
1515
```
1616

1717
## Usage
@@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md).
2020

2121
<!-- prettier-ignore -->
2222
```js
23-
import WarpAPI from 'warp-sdk';
23+
import WarpAPI from 'warp-agent-sdk';
2424

2525
const client = new WarpAPI({
2626
apiKey: process.env['WARP_API_KEY'], // This is the default and can be omitted
@@ -37,7 +37,7 @@ This library includes TypeScript definitions for all request params and response
3737

3838
<!-- prettier-ignore -->
3939
```ts
40-
import WarpAPI from 'warp-sdk';
40+
import WarpAPI from 'warp-agent-sdk';
4141

4242
const client = new WarpAPI({
4343
apiKey: process.env['WARP_API_KEY'], // This is the default and can be omitted
@@ -162,7 +162,7 @@ The log level can be configured in two ways:
162162
2. Using the `logLevel` client option (overrides the environment variable if set)
163163

164164
```ts
165-
import WarpAPI from 'warp-sdk';
165+
import WarpAPI from 'warp-agent-sdk';
166166

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

192192
```ts
193-
import WarpAPI from 'warp-sdk';
193+
import WarpAPI from 'warp-agent-sdk';
194194
import pino from 'pino';
195195

196196
const logger = pino();
@@ -259,7 +259,7 @@ globalThis.fetch = fetch;
259259
Or pass it to the client:
260260

261261
```ts
262-
import WarpAPI from 'warp-sdk';
262+
import WarpAPI from 'warp-agent-sdk';
263263
import fetch from 'my-fetch';
264264

265265
const client = new WarpAPI({ fetch });
@@ -270,7 +270,7 @@ const client = new WarpAPI({ fetch });
270270
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.)
271271

272272
```ts
273-
import WarpAPI from 'warp-sdk';
273+
import WarpAPI from 'warp-agent-sdk';
274274

275275
const client = new WarpAPI({
276276
fetchOptions: {
@@ -287,7 +287,7 @@ options to requests:
287287
<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>
288288

289289
```ts
290-
import WarpAPI from 'warp-sdk';
290+
import WarpAPI from 'warp-agent-sdk';
291291
import * as undici from 'undici';
292292

293293
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
@@ -301,7 +301,7 @@ const client = new WarpAPI({
301301
<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>
302302

303303
```ts
304-
import WarpAPI from 'warp-sdk';
304+
import WarpAPI from 'warp-agent-sdk';
305305

306306
const client = new WarpAPI({
307307
fetchOptions: {
@@ -313,7 +313,7 @@ const client = new WarpAPI({
313313
<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>
314314

315315
```ts
316-
import WarpAPI from 'npm:warp-sdk';
316+
import WarpAPI from 'npm:warp-agent-sdk';
317317

318318
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
319319
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-sdk(/.*)?',
28+
regex: '^warp-agent-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-sdk$': '<rootDir>/src/index.ts',
11-
'^warp-sdk/(.*)$': '<rootDir>/src/$1',
10+
'^warp-agent-sdk$': '<rootDir>/src/index.ts',
11+
'^warp-agent-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-sdk",
2+
"name": "warp-agent-sdk",
33
"version": "0.1.0",
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-sdk
5+
- warp-agent-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-sdk/resources/foo"` works
11+
# This way importing from `"warp-agent-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-sdk")')
46-
(cd dist && node -e 'import("warp-sdk")' --input-type=module)
45+
(cd dist && node -e 'require("warp-agent-sdk")')
46+
(cd dist && node -e 'import("warp-agent-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-sdk';
3+
import WarpAPI from 'warp-agent-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-sdk';
3+
import WarpAPI from 'warp-agent-sdk';
44

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

0 commit comments

Comments
 (0)