Skip to content

Commit 2c6c15d

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#10)
1 parent a17fadc commit 2c6c15d

File tree

5 files changed

+62
-1
lines changed

5 files changed

+62
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0d0ad7d4de2fa0b930b8d72fe6539ab248c7ed684b2e12b327b3bc0a466f9cde.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-b37d85811d1ccbd73a7884f22792503aa7e3103d378c97c84028b8b3b79acddc.yml

src/resources/contexts.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export interface Context {
3232

3333
createdAt: string;
3434

35+
/**
36+
* The Project ID linked to the uploaded Context.
37+
*/
38+
projectId: string;
39+
3540
updatedAt: string;
3641
}
3742

src/resources/extensions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export interface Extension {
3535

3636
createdAt: string;
3737

38+
fileName: string;
39+
40+
/**
41+
* The Project ID linked to the uploaded Extension.
42+
*/
43+
projectId: string;
44+
3845
updatedAt: string;
3946
}
4047

src/resources/projects.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export interface Project {
3232

3333
createdAt: string;
3434

35+
defaultTimeout: number;
36+
37+
name: string;
38+
39+
ownerId: string;
40+
3541
updatedAt: string;
3642
}
3743

src/resources/sessions/sessions.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,50 @@ export interface Session {
6464

6565
createdAt: string;
6666

67+
expiresAt: string;
68+
69+
/**
70+
* Indicates if the Session was created to be kept alive upon disconnections
71+
*/
72+
keepAlive: boolean;
73+
74+
/**
75+
* The Project ID linked to the Session.
76+
*/
77+
projectId: string;
78+
79+
/**
80+
* Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)
81+
*/
82+
proxyBytes: number;
83+
84+
/**
85+
* The region where the Session is running.
86+
*/
87+
region: 'us-west-2' | 'us-east-1' | 'eu-central-1' | 'ap-southeast-1';
88+
89+
startedAt: string;
90+
91+
status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
92+
6793
updatedAt: string;
94+
95+
/**
96+
* CPU used by the Session
97+
*/
98+
avgCpuUsage?: number;
99+
100+
/**
101+
* Optional. The Context linked to the Session.
102+
*/
103+
contextId?: string;
104+
105+
endedAt?: string;
106+
107+
/**
108+
* Memory used by the Session
109+
*/
110+
memoryUsage?: number;
68111
}
69112

70113
export interface SessionLiveURLs {

0 commit comments

Comments
 (0)