Skip to content

Commit 6dd9c26

Browse files
feat: Hide and deprecate mobile proxy type
1 parent 1616d9f commit 6dd9c26

File tree

5 files changed

+18
-42
lines changed

5 files changed

+18
-42
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 57
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-936db268b3dcae5d64bd5d590506d8134304ffcbf67389eb9b1555b3febfd4cb.yml
3-
openapi_spec_hash: 145485087adf1b28c052bacb4df68462
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-592ab7a96084f7241d77b4cc1ce2a074795b0dc40d8247e1a0129fe3f89c1ed4.yml
3+
openapi_spec_hash: 3a23b4c9c05946251be45c5c4e7a415d
44
config_hash: 15cd063f8e308686ac71bf9ee9634625

src/kernel/types/proxy_create_params.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ class ProxyCreateParams(TypedDict, total=False):
3636

3737
class ConfigDatacenterProxyConfig(TypedDict, total=False):
3838
country: Required[str]
39-
"""ISO 3166 country code or EU for the proxy exit node."""
39+
"""ISO 3166 country code."""
4040

4141

4242
class ConfigIspProxyConfig(TypedDict, total=False):
4343
country: Required[str]
44-
"""ISO 3166 country code or EU for the proxy exit node."""
44+
"""ISO 3166 country code."""
4545

4646

4747
class ConfigResidentialProxyConfig(TypedDict, total=False):
@@ -55,10 +55,7 @@ class ConfigResidentialProxyConfig(TypedDict, total=False):
5555
"""
5656

5757
country: str
58-
"""ISO 3166 country code or EU for the proxy exit node.
59-
60-
Required if `city` is provided.
61-
"""
58+
"""ISO 3166 country code."""
6259

6360
os: Literal["windows", "macos", "android"]
6461
"""Operating system of the residential device."""
@@ -143,10 +140,7 @@ class ConfigMobileProxyConfig(TypedDict, total=False):
143140
"""
144141

145142
country: str
146-
"""ISO 3166 country code or EU for the proxy exit node.
147-
148-
Required if `city` is provided.
149-
"""
143+
"""ISO 3166 country code"""
150144

151145
state: str
152146
"""Two-letter state code."""

src/kernel/types/proxy_create_response.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
class ConfigDatacenterProxyConfig(BaseModel):
2121
country: str
22-
"""ISO 3166 country code or EU for the proxy exit node."""
22+
"""ISO 3166 country code."""
2323

2424

2525
class ConfigIspProxyConfig(BaseModel):
2626
country: str
27-
"""ISO 3166 country code or EU for the proxy exit node."""
27+
"""ISO 3166 country code."""
2828

2929

3030
class ConfigResidentialProxyConfig(BaseModel):
@@ -38,10 +38,7 @@ class ConfigResidentialProxyConfig(BaseModel):
3838
"""
3939

4040
country: Optional[str] = None
41-
"""ISO 3166 country code or EU for the proxy exit node.
42-
43-
Required if `city` is provided.
44-
"""
41+
"""ISO 3166 country code."""
4542

4643
os: Optional[Literal["windows", "macos", "android"]] = None
4744
"""Operating system of the residential device."""
@@ -128,10 +125,7 @@ class ConfigMobileProxyConfig(BaseModel):
128125
"""
129126

130127
country: Optional[str] = None
131-
"""ISO 3166 country code or EU for the proxy exit node.
132-
133-
Required if `city` is provided.
134-
"""
128+
"""ISO 3166 country code"""
135129

136130
state: Optional[str] = None
137131
"""Two-letter state code."""

src/kernel/types/proxy_list_response.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
class ProxyListResponseItemConfigDatacenterProxyConfig(BaseModel):
2222
country: str
23-
"""ISO 3166 country code or EU for the proxy exit node."""
23+
"""ISO 3166 country code."""
2424

2525

2626
class ProxyListResponseItemConfigIspProxyConfig(BaseModel):
2727
country: str
28-
"""ISO 3166 country code or EU for the proxy exit node."""
28+
"""ISO 3166 country code."""
2929

3030

3131
class ProxyListResponseItemConfigResidentialProxyConfig(BaseModel):
@@ -39,10 +39,7 @@ class ProxyListResponseItemConfigResidentialProxyConfig(BaseModel):
3939
"""
4040

4141
country: Optional[str] = None
42-
"""ISO 3166 country code or EU for the proxy exit node.
43-
44-
Required if `city` is provided.
45-
"""
42+
"""ISO 3166 country code."""
4643

4744
os: Optional[Literal["windows", "macos", "android"]] = None
4845
"""Operating system of the residential device."""
@@ -129,10 +126,7 @@ class ProxyListResponseItemConfigMobileProxyConfig(BaseModel):
129126
"""
130127

131128
country: Optional[str] = None
132-
"""ISO 3166 country code or EU for the proxy exit node.
133-
134-
Required if `city` is provided.
135-
"""
129+
"""ISO 3166 country code"""
136130

137131
state: Optional[str] = None
138132
"""Two-letter state code."""

src/kernel/types/proxy_retrieve_response.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
class ConfigDatacenterProxyConfig(BaseModel):
2121
country: str
22-
"""ISO 3166 country code or EU for the proxy exit node."""
22+
"""ISO 3166 country code."""
2323

2424

2525
class ConfigIspProxyConfig(BaseModel):
2626
country: str
27-
"""ISO 3166 country code or EU for the proxy exit node."""
27+
"""ISO 3166 country code."""
2828

2929

3030
class ConfigResidentialProxyConfig(BaseModel):
@@ -38,10 +38,7 @@ class ConfigResidentialProxyConfig(BaseModel):
3838
"""
3939

4040
country: Optional[str] = None
41-
"""ISO 3166 country code or EU for the proxy exit node.
42-
43-
Required if `city` is provided.
44-
"""
41+
"""ISO 3166 country code."""
4542

4643
os: Optional[Literal["windows", "macos", "android"]] = None
4744
"""Operating system of the residential device."""
@@ -128,10 +125,7 @@ class ConfigMobileProxyConfig(BaseModel):
128125
"""
129126

130127
country: Optional[str] = None
131-
"""ISO 3166 country code or EU for the proxy exit node.
132-
133-
Required if `city` is provided.
134-
"""
128+
"""ISO 3166 country code"""
135129

136130
state: Optional[str] = None
137131
"""Two-letter state code."""

0 commit comments

Comments
 (0)