Skip to content

Commit 40ce01b

Browse files
feat: Support Byteful mobile proxies
1 parent 7e51055 commit 40ce01b

6 files changed

Lines changed: 12 additions & 375 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: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-3b34d85c005a4058ac1faaea092615af577d12cee6e420f102de57339251672d.yml
3-
openapi_spec_hash: fad386b8e8712e6639ed9689e9dfc070
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-a32ac633a8f67f3844b6ccb7b97687aec2cf2e2c611df4157c223dfac16db806.yml
3+
openapi_spec_hash: f8c9aabe60372f28ad9cceed42009274
44
config_hash: 0f222358f24700d1811c5d27078a3849

src/kernel/types/proxy_check_response.py

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -59,87 +59,14 @@ class ConfigResidentialProxyConfig(BaseModel):
5959
class ConfigMobileProxyConfig(BaseModel):
6060
"""Configuration for mobile proxies."""
6161

62-
asn: Optional[str] = None
63-
"""Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html"""
64-
65-
carrier: Optional[
66-
Literal[
67-
"a1",
68-
"aircel",
69-
"airtel",
70-
"att",
71-
"celcom",
72-
"chinamobile",
73-
"claro",
74-
"comcast",
75-
"cox",
76-
"digi",
77-
"dt",
78-
"docomo",
79-
"dtac",
80-
"etisalat",
81-
"idea",
82-
"kyivstar",
83-
"meo",
84-
"megafon",
85-
"mtn",
86-
"mtnza",
87-
"mts",
88-
"optus",
89-
"orange",
90-
"qwest",
91-
"reliance_jio",
92-
"robi",
93-
"sprint",
94-
"telefonica",
95-
"telstra",
96-
"tmobile",
97-
"tigo",
98-
"tim",
99-
"verizon",
100-
"vimpelcom",
101-
"vodacomza",
102-
"vodafone",
103-
"vivo",
104-
"zain",
105-
"vivabo",
106-
"telenormyanmar",
107-
"kcelljsc",
108-
"swisscom",
109-
"singtel",
110-
"asiacell",
111-
"windit",
112-
"cellc",
113-
"ooredoo",
114-
"drei",
115-
"umobile",
116-
"cableone",
117-
"proximus",
118-
"tele2",
119-
"mobitel",
120-
"o2",
121-
"bouygues",
122-
"free",
123-
"sfr",
124-
"digicel",
125-
]
126-
] = None
127-
"""Mobile carrier."""
128-
12962
city: Optional[str] = None
130-
"""City name (no spaces, e.g.
131-
132-
`sanfrancisco`). If provided, `country` must also be provided.
133-
"""
63+
"""Provider city alias. Mobile carrier routing can make observed geo vary."""
13464

13565
country: Optional[str] = None
13666
"""ISO 3166 country code"""
13767

13868
state: Optional[str] = None
139-
"""Two-letter state code."""
140-
141-
zip: Optional[str] = None
142-
"""US ZIP code."""
69+
"""US-only state code. Mobile carrier routing can make observed geo vary."""
14370

14471

14572
class ConfigCustomProxyConfig(BaseModel):

src/kernel/types/proxy_create_params.py

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -81,85 +81,14 @@ class ConfigResidentialProxyConfig(TypedDict, total=False):
8181
class ConfigMobileProxyConfig(TypedDict, total=False):
8282
"""Configuration for mobile proxies."""
8383

84-
asn: str
85-
"""Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html"""
86-
87-
carrier: Literal[
88-
"a1",
89-
"aircel",
90-
"airtel",
91-
"att",
92-
"celcom",
93-
"chinamobile",
94-
"claro",
95-
"comcast",
96-
"cox",
97-
"digi",
98-
"dt",
99-
"docomo",
100-
"dtac",
101-
"etisalat",
102-
"idea",
103-
"kyivstar",
104-
"meo",
105-
"megafon",
106-
"mtn",
107-
"mtnza",
108-
"mts",
109-
"optus",
110-
"orange",
111-
"qwest",
112-
"reliance_jio",
113-
"robi",
114-
"sprint",
115-
"telefonica",
116-
"telstra",
117-
"tmobile",
118-
"tigo",
119-
"tim",
120-
"verizon",
121-
"vimpelcom",
122-
"vodacomza",
123-
"vodafone",
124-
"vivo",
125-
"zain",
126-
"vivabo",
127-
"telenormyanmar",
128-
"kcelljsc",
129-
"swisscom",
130-
"singtel",
131-
"asiacell",
132-
"windit",
133-
"cellc",
134-
"ooredoo",
135-
"drei",
136-
"umobile",
137-
"cableone",
138-
"proximus",
139-
"tele2",
140-
"mobitel",
141-
"o2",
142-
"bouygues",
143-
"free",
144-
"sfr",
145-
"digicel",
146-
]
147-
"""Mobile carrier."""
148-
14984
city: str
150-
"""City name (no spaces, e.g.
151-
152-
`sanfrancisco`). If provided, `country` must also be provided.
153-
"""
85+
"""Provider city alias. Mobile carrier routing can make observed geo vary."""
15486

15587
country: str
15688
"""ISO 3166 country code"""
15789

15890
state: str
159-
"""Two-letter state code."""
160-
161-
zip: str
162-
"""US ZIP code."""
91+
"""US-only state code. Mobile carrier routing can make observed geo vary."""
16392

16493

16594
class ConfigCreateCustomProxyConfig(TypedDict, total=False):

src/kernel/types/proxy_create_response.py

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -59,87 +59,14 @@ class ConfigResidentialProxyConfig(BaseModel):
5959
class ConfigMobileProxyConfig(BaseModel):
6060
"""Configuration for mobile proxies."""
6161

62-
asn: Optional[str] = None
63-
"""Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html"""
64-
65-
carrier: Optional[
66-
Literal[
67-
"a1",
68-
"aircel",
69-
"airtel",
70-
"att",
71-
"celcom",
72-
"chinamobile",
73-
"claro",
74-
"comcast",
75-
"cox",
76-
"digi",
77-
"dt",
78-
"docomo",
79-
"dtac",
80-
"etisalat",
81-
"idea",
82-
"kyivstar",
83-
"meo",
84-
"megafon",
85-
"mtn",
86-
"mtnza",
87-
"mts",
88-
"optus",
89-
"orange",
90-
"qwest",
91-
"reliance_jio",
92-
"robi",
93-
"sprint",
94-
"telefonica",
95-
"telstra",
96-
"tmobile",
97-
"tigo",
98-
"tim",
99-
"verizon",
100-
"vimpelcom",
101-
"vodacomza",
102-
"vodafone",
103-
"vivo",
104-
"zain",
105-
"vivabo",
106-
"telenormyanmar",
107-
"kcelljsc",
108-
"swisscom",
109-
"singtel",
110-
"asiacell",
111-
"windit",
112-
"cellc",
113-
"ooredoo",
114-
"drei",
115-
"umobile",
116-
"cableone",
117-
"proximus",
118-
"tele2",
119-
"mobitel",
120-
"o2",
121-
"bouygues",
122-
"free",
123-
"sfr",
124-
"digicel",
125-
]
126-
] = None
127-
"""Mobile carrier."""
128-
12962
city: Optional[str] = None
130-
"""City name (no spaces, e.g.
131-
132-
`sanfrancisco`). If provided, `country` must also be provided.
133-
"""
63+
"""Provider city alias. Mobile carrier routing can make observed geo vary."""
13464

13565
country: Optional[str] = None
13666
"""ISO 3166 country code"""
13767

13868
state: Optional[str] = None
139-
"""Two-letter state code."""
140-
141-
zip: Optional[str] = None
142-
"""US ZIP code."""
69+
"""US-only state code. Mobile carrier routing can make observed geo vary."""
14370

14471

14572
class ConfigCustomProxyConfig(BaseModel):

src/kernel/types/proxy_list_response.py

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -60,87 +60,14 @@ class ProxyListResponseItemConfigResidentialProxyConfig(BaseModel):
6060
class ProxyListResponseItemConfigMobileProxyConfig(BaseModel):
6161
"""Configuration for mobile proxies."""
6262

63-
asn: Optional[str] = None
64-
"""Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html"""
65-
66-
carrier: Optional[
67-
Literal[
68-
"a1",
69-
"aircel",
70-
"airtel",
71-
"att",
72-
"celcom",
73-
"chinamobile",
74-
"claro",
75-
"comcast",
76-
"cox",
77-
"digi",
78-
"dt",
79-
"docomo",
80-
"dtac",
81-
"etisalat",
82-
"idea",
83-
"kyivstar",
84-
"meo",
85-
"megafon",
86-
"mtn",
87-
"mtnza",
88-
"mts",
89-
"optus",
90-
"orange",
91-
"qwest",
92-
"reliance_jio",
93-
"robi",
94-
"sprint",
95-
"telefonica",
96-
"telstra",
97-
"tmobile",
98-
"tigo",
99-
"tim",
100-
"verizon",
101-
"vimpelcom",
102-
"vodacomza",
103-
"vodafone",
104-
"vivo",
105-
"zain",
106-
"vivabo",
107-
"telenormyanmar",
108-
"kcelljsc",
109-
"swisscom",
110-
"singtel",
111-
"asiacell",
112-
"windit",
113-
"cellc",
114-
"ooredoo",
115-
"drei",
116-
"umobile",
117-
"cableone",
118-
"proximus",
119-
"tele2",
120-
"mobitel",
121-
"o2",
122-
"bouygues",
123-
"free",
124-
"sfr",
125-
"digicel",
126-
]
127-
] = None
128-
"""Mobile carrier."""
129-
13063
city: Optional[str] = None
131-
"""City name (no spaces, e.g.
132-
133-
`sanfrancisco`). If provided, `country` must also be provided.
134-
"""
64+
"""Provider city alias. Mobile carrier routing can make observed geo vary."""
13565

13666
country: Optional[str] = None
13767
"""ISO 3166 country code"""
13868

13969
state: Optional[str] = None
140-
"""Two-letter state code."""
141-
142-
zip: Optional[str] = None
143-
"""US ZIP code."""
70+
"""US-only state code. Mobile carrier routing can make observed geo vary."""
14471

14572

14673
class ProxyListResponseItemConfigCustomProxyConfig(BaseModel):

0 commit comments

Comments
 (0)