Skip to content

Commit 8ac9d34

Browse files
feat(api): api update
1 parent be53aa0 commit 8ac9d34

5 files changed

Lines changed: 17 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: 39
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs/steel-ec44ad2b0cc878febaf8a7e35c19bee2b9f66a05b6e97fe3d4a08376a961fd33.yml
3-
openapi_spec_hash: be71f6d49195b3ca5b957c6e66023ffa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs/steel-a8cf8e70c6c352d4f7845225a991e29a67d1f2ec9b7bcd6e540fa27791733aa5.yml
3+
openapi_spec_hash: c8ea136263d712103781c0afd3b8ad3a
44
config_hash: dce4dea59023b0a00890fa654fbfffb4

src/steel/resources/sessions/sessions.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ def create(
154154
Steel-provided proxies in favor of your specified proxy. Format:
155155
http(s)://username:password@hostname:port
156156
157-
region: The desired region for the session to be started in. Available regions are lax,
158-
ord, iad
157+
region: The desired region for the session. Available: us-east, us-west, us-central,
158+
eu-west, eu-central, ap-northeast, ap-southeast, sa-east. Legacy codes (iad,
159+
lax, ord) are also accepted.
159160
160161
session_context: Session context data to be used in the created session. Sessions will start with
161162
an empty context by default.
@@ -966,8 +967,9 @@ async def create(
966967
Steel-provided proxies in favor of your specified proxy. Format:
967968
http(s)://username:password@hostname:port
968969
969-
region: The desired region for the session to be started in. Available regions are lax,
970-
ord, iad
970+
region: The desired region for the session. Available: us-east, us-west, us-central,
971+
eu-west, eu-central, ap-northeast, ap-southeast, sa-east. Legacy codes (iad,
972+
lax, ord) are also accepted.
971973
972974
session_context: Session context data to be used in the created session. Sessions will start with
973975
an empty context by default.

src/steel/types/session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ class Session(BaseModel):
153153
profile_id: Optional[str] = FieldInfo(alias="profileId", default=None)
154154
"""The ID of the profile associated with the session"""
155155

156-
region: Optional[Literal["lax", "ord", "iad", "scl", "fra", "nrt"]] = None
156+
region: Optional[
157+
Literal["us-east", "us-west", "us-central", "eu-west", "eu-central", "ap-northeast", "ap-southeast", "sa-east"]
158+
] = None
157159
"""The region where the session was created"""
158160

159161
solve_captcha: Optional[bool] = FieldInfo(alias="solveCaptcha", default=None)

src/steel/types/session_create_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ class SessionCreateParams(TypedDict, total=False):
106106
"""
107107

108108
region: object
109-
"""The desired region for the session to be started in.
109+
"""The desired region for the session.
110110
111-
Available regions are lax, ord, iad
111+
Available: us-east, us-west, us-central, eu-west, eu-central, ap-northeast,
112+
ap-southeast, sa-east. Legacy codes (iad, lax, ord) are also accepted.
112113
"""
113114

114115
session_context: Annotated[SessionContext, PropertyInfo(alias="sessionContext")]

src/steel/types/sessionslist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ class Session(BaseModel):
161161
profile_id: Optional[str] = FieldInfo(alias="profileId", default=None)
162162
"""The ID of the profile associated with the session"""
163163

164-
region: Optional[Literal["lax", "ord", "iad", "scl", "fra", "nrt"]] = None
164+
region: Optional[
165+
Literal["us-east", "us-west", "us-central", "eu-west", "eu-central", "ap-northeast", "ap-southeast", "sa-east"]
166+
] = None
165167
"""The region where the session was created"""
166168

167169
solve_captcha: Optional[bool] = FieldInfo(alias="solveCaptcha", default=None)

0 commit comments

Comments
 (0)