Skip to content

Commit cd79bec

Browse files
feat: Browser pools sdk release
1 parent 6ee4ce1 commit cd79bec

File tree

17 files changed

+868
-750
lines changed

17 files changed

+868
-750
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 71
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-92b20a9e4650f645d3bb23b64f4ae72287bb41d3922ff1371426a91879186362.yml
3-
openapi_spec_hash: a3c5f41d36734c980bc5313ee60b97cf
4-
config_hash: be146470fb2d4583b6533859f0fa48f5
1+
configured_endpoints: 74
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-340c8f009b71922347d4c238c8715cd752c8965abfa12cbb1ffabe35edc338a8.yml
3+
openapi_spec_hash: efc13ab03ef89cc07333db8ab5345f31
4+
config_hash: a4124701ae0a474e580d7416adbcfb00

api.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Types:
44

55
- <code><a href="./src/resources/shared.ts">AppAction</a></code>
6+
- <code><a href="./src/resources/shared.ts">BrowserExtension</a></code>
7+
- <code><a href="./src/resources/shared.ts">BrowserProfile</a></code>
8+
- <code><a href="./src/resources/shared.ts">BrowserViewport</a></code>
69
- <code><a href="./src/resources/shared.ts">ErrorDetail</a></code>
710
- <code><a href="./src/resources/shared.ts">ErrorEvent</a></code>
811
- <code><a href="./src/resources/shared.ts">ErrorModel</a></code>
@@ -221,31 +224,25 @@ Methods:
221224
- <code title="get /extensions/from_chrome_store">client.extensions.<a href="./src/resources/extensions.ts">downloadFromChromeStore</a>({ ...params }) -> Response</code>
222225
- <code title="post /extensions">client.extensions.<a href="./src/resources/extensions.ts">upload</a>({ ...params }) -> ExtensionUploadResponse</code>
223226

224-
# Agents
225-
226-
## Auth
227-
228-
Types:
229-
230-
- <code><a href="./src/resources/agents/auth/auth.ts">AgentAuthDiscoverResponse</a></code>
231-
- <code><a href="./src/resources/agents/auth/auth.ts">AgentAuthRunResponse</a></code>
232-
- <code><a href="./src/resources/agents/auth/auth.ts">AgentAuthStartResponse</a></code>
233-
- <code><a href="./src/resources/agents/auth/auth.ts">AgentAuthSubmitResponse</a></code>
234-
- <code><a href="./src/resources/agents/auth/auth.ts">DiscoveredField</a></code>
235-
236-
Methods:
237-
238-
- <code title="post /agents/auth/start">client.agents.auth.<a href="./src/resources/agents/auth/auth.ts">start</a>({ ...params }) -> AgentAuthStartResponse</code>
239-
240-
### Runs
227+
# BrowserPools
241228

242229
Types:
243230

244-
- <code><a href="./src/resources/agents/auth/runs.ts">RunExchangeResponse</a></code>
231+
- <code><a href="./src/resources/browser-pools.ts">BrowserPool</a></code>
232+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolAcquireRequest</a></code>
233+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolReleaseRequest</a></code>
234+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolRequest</a></code>
235+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolUpdateRequest</a></code>
236+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolListResponse</a></code>
237+
- <code><a href="./src/resources/browser-pools.ts">BrowserPoolAcquireResponse</a></code>
245238

246239
Methods:
247240

248-
- <code title="get /agents/auth/runs/{run_id}">client.agents.auth.runs.<a href="./src/resources/agents/auth/runs.ts">retrieve</a>(runID) -> AgentAuthRunResponse</code>
249-
- <code title="post /agents/auth/runs/{run_id}/discover">client.agents.auth.runs.<a href="./src/resources/agents/auth/runs.ts">discover</a>(runID) -> AgentAuthDiscoverResponse</code>
250-
- <code title="post /agents/auth/runs/{run_id}/exchange">client.agents.auth.runs.<a href="./src/resources/agents/auth/runs.ts">exchange</a>(runID, { ...params }) -> RunExchangeResponse</code>
251-
- <code title="post /agents/auth/runs/{run_id}/submit">client.agents.auth.runs.<a href="./src/resources/agents/auth/runs.ts">submit</a>(runID, { ...params }) -> AgentAuthSubmitResponse</code>
241+
- <code title="post /browser_pools">client.browserPools.<a href="./src/resources/browser-pools.ts">create</a>({ ...params }) -> BrowserPool</code>
242+
- <code title="get /browser_pools/{id_or_name}">client.browserPools.<a href="./src/resources/browser-pools.ts">retrieve</a>(idOrName) -> BrowserPool</code>
243+
- <code title="patch /browser_pools/{id_or_name}">client.browserPools.<a href="./src/resources/browser-pools.ts">update</a>(idOrName, { ...params }) -> BrowserPool</code>
244+
- <code title="get /browser_pools">client.browserPools.<a href="./src/resources/browser-pools.ts">list</a>() -> BrowserPoolListResponse</code>
245+
- <code title="delete /browser_pools/{id_or_name}">client.browserPools.<a href="./src/resources/browser-pools.ts">delete</a>(idOrName, { ...params }) -> void</code>
246+
- <code title="post /browser_pools/{id_or_name}/acquire">client.browserPools.<a href="./src/resources/browser-pools.ts">acquire</a>(idOrName, { ...params }) -> BrowserPoolAcquireResponse</code>
247+
- <code title="post /browser_pools/{id_or_name}/flush">client.browserPools.<a href="./src/resources/browser-pools.ts">flush</a>(idOrName) -> void</code>
248+
- <code title="post /browser_pools/{id_or_name}/release">client.browserPools.<a href="./src/resources/browser-pools.ts">release</a>(idOrName, { ...params }) -> void</code>

src/client.ts

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ import * as Uploads from './core/uploads';
1919
import * as API from './resources/index';
2020
import { APIPromise } from './core/api-promise';
2121
import { AppListParams, AppListResponse, AppListResponsesOffsetPagination, Apps } from './resources/apps';
22+
import {
23+
BrowserPool,
24+
BrowserPoolAcquireParams,
25+
BrowserPoolAcquireRequest,
26+
BrowserPoolAcquireResponse,
27+
BrowserPoolCreateParams,
28+
BrowserPoolDeleteParams,
29+
BrowserPoolListResponse,
30+
BrowserPoolReleaseParams,
31+
BrowserPoolReleaseRequest,
32+
BrowserPoolRequest,
33+
BrowserPoolUpdateParams,
34+
BrowserPoolUpdateRequest,
35+
BrowserPools,
36+
} from './resources/browser-pools';
2237
import {
2338
DeploymentCreateParams,
2439
DeploymentCreateResponse,
@@ -61,7 +76,6 @@ import {
6176
ProxyListResponse,
6277
ProxyRetrieveResponse,
6378
} from './resources/proxies';
64-
import { Agents } from './resources/agents/agents';
6579
import {
6680
BrowserCreateParams,
6781
BrowserCreateResponse,
@@ -844,7 +858,7 @@ export class Kernel {
844858
profiles: API.Profiles = new API.Profiles(this);
845859
proxies: API.Proxies = new API.Proxies(this);
846860
extensions: API.Extensions = new API.Extensions(this);
847-
agents: API.Agents = new API.Agents(this);
861+
browserPools: API.BrowserPools = new API.BrowserPools(this);
848862
}
849863

850864
Kernel.Deployments = Deployments;
@@ -854,7 +868,7 @@ Kernel.Browsers = Browsers;
854868
Kernel.Profiles = Profiles;
855869
Kernel.Proxies = Proxies;
856870
Kernel.Extensions = Extensions;
857-
Kernel.Agents = Agents;
871+
Kernel.BrowserPools = BrowserPools;
858872

859873
export declare namespace Kernel {
860874
export type RequestOptions = Opts.RequestOptions;
@@ -936,9 +950,26 @@ export declare namespace Kernel {
936950
type ExtensionUploadParams as ExtensionUploadParams,
937951
};
938952

939-
export { Agents as Agents };
953+
export {
954+
BrowserPools as BrowserPools,
955+
type BrowserPool as BrowserPool,
956+
type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest,
957+
type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest,
958+
type BrowserPoolRequest as BrowserPoolRequest,
959+
type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest,
960+
type BrowserPoolListResponse as BrowserPoolListResponse,
961+
type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse,
962+
type BrowserPoolCreateParams as BrowserPoolCreateParams,
963+
type BrowserPoolUpdateParams as BrowserPoolUpdateParams,
964+
type BrowserPoolDeleteParams as BrowserPoolDeleteParams,
965+
type BrowserPoolAcquireParams as BrowserPoolAcquireParams,
966+
type BrowserPoolReleaseParams as BrowserPoolReleaseParams,
967+
};
940968

941969
export type AppAction = API.AppAction;
970+
export type BrowserExtension = API.BrowserExtension;
971+
export type BrowserProfile = API.BrowserProfile;
972+
export type BrowserViewport = API.BrowserViewport;
942973
export type ErrorDetail = API.ErrorDetail;
943974
export type ErrorEvent = API.ErrorEvent;
944975
export type ErrorModel = API.ErrorModel;

src/resources/agents.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/resources/agents/agents.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/resources/agents/auth.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)