Skip to content

Commit 8f22de1

Browse files
feat(api): update via SDK Studio (#21)
1 parent 8876008 commit 8f22de1

File tree

5 files changed

+46
-1
lines changed

5 files changed

+46
-1
lines changed

Diff for: .stats.yml

+1-1
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

Diff for: src/browserbase/types/context.py

+3
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ class Context(BaseModel):
1414

1515
created_at: datetime = FieldInfo(alias="createdAt")
1616

17+
project_id: str = FieldInfo(alias="projectId")
18+
"""The Project ID linked to the uploaded Context."""
19+
1720
updated_at: datetime = FieldInfo(alias="updatedAt")

Diff for: src/browserbase/types/extension.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ class Extension(BaseModel):
1414

1515
created_at: datetime = FieldInfo(alias="createdAt")
1616

17+
file_name: str = FieldInfo(alias="fileName")
18+
19+
project_id: str = FieldInfo(alias="projectId")
20+
"""The Project ID linked to the uploaded Extension."""
21+
1722
updated_at: datetime = FieldInfo(alias="updatedAt")

Diff for: src/browserbase/types/project.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ class Project(BaseModel):
1414

1515
created_at: datetime = FieldInfo(alias="createdAt")
1616

17+
default_timeout: int = FieldInfo(alias="defaultTimeout")
18+
19+
name: str
20+
21+
owner_id: str = FieldInfo(alias="ownerId")
22+
1723
updated_at: datetime = FieldInfo(alias="updatedAt")

Diff for: src/browserbase/types/session.py

+31
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from datetime import datetime
5+
from typing_extensions import Literal
46

57
from pydantic import Field as FieldInfo
68

@@ -14,4 +16,33 @@ class Session(BaseModel):
1416

1517
created_at: datetime = FieldInfo(alias="createdAt")
1618

19+
expires_at: datetime = FieldInfo(alias="expiresAt")
20+
21+
keep_alive: bool = FieldInfo(alias="keepAlive")
22+
"""Indicates if the Session was created to be kept alive upon disconnections"""
23+
24+
project_id: str = FieldInfo(alias="projectId")
25+
"""The Project ID linked to the Session."""
26+
27+
proxy_bytes: int = FieldInfo(alias="proxyBytes")
28+
"""Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)"""
29+
30+
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
31+
"""The region where the Session is running."""
32+
33+
started_at: datetime = FieldInfo(alias="startedAt")
34+
35+
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
36+
1737
updated_at: datetime = FieldInfo(alias="updatedAt")
38+
39+
avg_cpu_usage: Optional[int] = FieldInfo(alias="avgCpuUsage", default=None)
40+
"""CPU used by the Session"""
41+
42+
context_id: Optional[str] = FieldInfo(alias="contextId", default=None)
43+
"""Optional. The Context linked to the Session."""
44+
45+
ended_at: Optional[datetime] = FieldInfo(alias="endedAt", default=None)
46+
47+
memory_usage: Optional[int] = FieldInfo(alias="memoryUsage", default=None)
48+
"""Memory used by the Session"""

0 commit comments

Comments
 (0)