Skip to content

Commit 9484ce7

Browse files
feat(api): api update
1 parent 99fd534 commit 9484ce7

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-498986007f2679d8f1a67744addb465b824b52370faa9076405a4cdc2a5475e1.yml
3-
openapi_spec_hash: c7b2aa9a13dd8416908df569bbc12840
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-fd51b9b25e1d2230ccd94ddaa8c938ea447e778da689e065e673a3d38ad7b298.yml
3+
openapi_spec_hash: 5d371ed3e00e9a404e8bae65a4269e1d
44
config_hash: 82777254c5d47bd0cf18d4e17a2e9964

src/steel/types/session.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ class Session(BaseModel):
6868
event_count: int = FieldInfo(alias="eventCount")
6969
"""Number of events processed in the session"""
7070

71-
headless: bool
72-
"""Indicates if the session is headless or headful"""
73-
7471
optimize_bandwidth: OptimizeBandwidth = FieldInfo(alias="optimizeBandwidth")
7572
"""Bandwidth optimizations that were applied to the session."""
7673

@@ -95,6 +92,9 @@ class Session(BaseModel):
9592
device_config: Optional[DeviceConfig] = FieldInfo(alias="deviceConfig", default=None)
9693
"""Device configuration for the session"""
9794

95+
headless: Optional[bool] = None
96+
"""Indicates if the session is headless or headful"""
97+
9898
is_selenium: Optional[bool] = FieldInfo(alias="isSelenium", default=None)
9999
"""Indicates if Selenium is used in the session"""
100100

@@ -104,12 +104,15 @@ class Session(BaseModel):
104104
profile_id: Optional[str] = FieldInfo(alias="profileId", default=None)
105105
"""The ID of the profile associated with the session"""
106106

107-
region: Optional[Literal["lax", "ord", "iad", "scl", "fra"]] = None
107+
region: Optional[Literal["lax", "ord", "iad", "scl", "fra", "nrt"]] = None
108108
"""The region where the session was created"""
109109

110110
solve_captcha: Optional[bool] = FieldInfo(alias="solveCaptcha", default=None)
111111
"""Indicates if captcha solving is enabled"""
112112

113+
source: Optional[str] = None
114+
"""Source of the session, e.g. 'api:sessions'"""
115+
113116
stealth_config: Optional[StealthConfig] = FieldInfo(alias="stealthConfig", default=None)
114117
"""Stealth configuration for the session"""
115118

src/steel/types/sessionslist.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ class Session(BaseModel):
7575
event_count: int = FieldInfo(alias="eventCount")
7676
"""Number of events processed in the session"""
7777

78-
headless: bool
79-
"""Indicates if the session is headless or headful"""
80-
8178
optimize_bandwidth: SessionOptimizeBandwidth = FieldInfo(alias="optimizeBandwidth")
8279
"""Bandwidth optimizations that were applied to the session."""
8380

@@ -102,6 +99,9 @@ class Session(BaseModel):
10299
device_config: Optional[SessionDeviceConfig] = FieldInfo(alias="deviceConfig", default=None)
103100
"""Device configuration for the session"""
104101

102+
headless: Optional[bool] = None
103+
"""Indicates if the session is headless or headful"""
104+
105105
is_selenium: Optional[bool] = FieldInfo(alias="isSelenium", default=None)
106106
"""Indicates if Selenium is used in the session"""
107107

@@ -111,12 +111,15 @@ class Session(BaseModel):
111111
profile_id: Optional[str] = FieldInfo(alias="profileId", default=None)
112112
"""The ID of the profile associated with the session"""
113113

114-
region: Optional[Literal["lax", "ord", "iad", "scl", "fra"]] = None
114+
region: Optional[Literal["lax", "ord", "iad", "scl", "fra", "nrt"]] = None
115115
"""The region where the session was created"""
116116

117117
solve_captcha: Optional[bool] = FieldInfo(alias="solveCaptcha", default=None)
118118
"""Indicates if captcha solving is enabled"""
119119

120+
source: Optional[str] = None
121+
"""Source of the session, e.g. 'api:sessions'"""
122+
120123
stealth_config: Optional[SessionStealthConfig] = FieldInfo(alias="stealthConfig", default=None)
121124
"""Stealth configuration for the session"""
122125

0 commit comments

Comments
 (0)