Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
add PH proxy option (#4395)
Marc Kelechavac5251e7115e2
diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.tsindex fbf5b7f9f..2070f4cc1 100644--- a/skyvern-frontend/src/api/types.ts+++ b/skyvern-frontend/src/api/types.ts@@ -52,6 +52,7 @@ export const ProxyLocation = {ResidentialMX: "RESIDENTIAL_MX",ResidentialIT: "RESIDENTIAL_IT",ResidentialNL: "RESIDENTIAL_NL",+ ResidentialPH: "RESIDENTIAL_PH",ResidentialISP: "RESIDENTIAL_ISP",None: "NONE",} as const;diff --git a/skyvern-frontend/src/util/geoData.ts b/skyvern-frontend/src/util/geoData.tsindex 27f2b8759..63ac0ff99 100644--- a/skyvern-frontend/src/util/geoData.ts+++ b/skyvern-frontend/src/util/geoData.ts@@ -17,6 +17,7 @@ export const SUPPORTED_COUNTRY_CODES = ["MX","NL","NZ",+ "PH","TR","ZA",] as const;@@ -40,6 +41,7 @@ export const COUNTRY_NAMES: Record<SupportedCountryCode, string> = {MX: "Mexico",NL: "Netherlands",NZ: "New Zealand",+ PH: "Philippines",TR: "Turkey",ZA: "South Africa",};@@ -61,6 +63,7 @@ export const COUNTRY_FLAGS: Record<SupportedCountryCode, string> = {MX: "π²π½",NL: "π³π±",NZ: "π³πΏ",+ PH: "π΅π",TR: "πΉπ·",ZA: "πΏπ¦",};@@ -84,6 +87,7 @@ const PROXY_LOCATION_TO_COUNTRY: Record<string, string> = {[ProxyLocation.ResidentialMX]: "MX",[ProxyLocation.ResidentialNL]: "NL",[ProxyLocation.ResidentialNZ]: "NZ",+ [ProxyLocation.ResidentialPH]: "PH",[ProxyLocation.ResidentialTR]: "TR",[ProxyLocation.ResidentialZA]: "ZA",};@@ -106,6 +110,7 @@ const COUNTRY_TO_PROXY_LOCATION: Record<string, ProxyLocation> = {MX: ProxyLocation.ResidentialMX,NL: ProxyLocation.ResidentialNL,NZ: ProxyLocation.ResidentialNZ,+ PH: ProxyLocation.ResidentialPH,TR: ProxyLocation.ResidentialTR,ZA: ProxyLocation.ResidentialZA,};diff --git a/skyvern/client/types/proxy_location.py b/skyvern/client/types/proxy_location.pyindex bd5e04e3d..1345bbb6b 100644--- a/skyvern/client/types/proxy_location.py+++ b/skyvern/client/types/proxy_location.py@@ -27,6 +27,7 @@ ProxyLocation = typing.Union["RESIDENTIAL_MX","RESIDENTIAL_IT","RESIDENTIAL_NL",+ "RESIDENTIAL_PH","RESIDENTIAL_ISP","NONE",],diff --git a/skyvern/schemas/docs/doc_strings.py b/skyvern/schemas/docs/doc_strings.pyindex 3c9efa7e2..118832976 100644--- a/skyvern/schemas/docs/doc_strings.py+++ b/skyvern/schemas/docs/doc_strings.py@@ -23,6 +23,7 @@ Available geotargeting options:- RESIDENTIAL_FR: France- RESIDENTIAL_DE: Germany- RESIDENTIAL_NZ: New Zealand+- RESIDENTIAL_PH: Philippines- RESIDENTIAL_ZA: South Africa- RESIDENTIAL_AR: Argentina- RESIDENTIAL_AU: Australiadiff --git a/skyvern/schemas/runs.py b/skyvern/schemas/runs.pyindex 61a653886..9073afe15 100644--- a/skyvern/schemas/runs.py+++ b/skyvern/schemas/runs.py@@ -57,6 +57,7 @@ class ProxyLocation(StrEnum):RESIDENTIAL_MX = "RESIDENTIAL_MX"RESIDENTIAL_IT = "RESIDENTIAL_IT"RESIDENTIAL_NL = "RESIDENTIAL_NL"+ RESIDENTIAL_PH = "RESIDENTIAL_PH"RESIDENTIAL_ISP = "RESIDENTIAL_ISP"NONE = "NONE"@@ -95,6 +96,7 @@ class ProxyLocation(StrEnum):cls.RESIDENTIAL_MX,cls.RESIDENTIAL_IT,cls.RESIDENTIAL_NL,+ cls.RESIDENTIAL_PH,}@staticmethod@@ -118,6 +120,7 @@ class ProxyLocation(StrEnum):ProxyLocation.RESIDENTIAL_MX: 2000,ProxyLocation.RESIDENTIAL_IT: 2000,ProxyLocation.RESIDENTIAL_NL: 2000,+ ProxyLocation.RESIDENTIAL_PH: 2000,}return counts.get(proxy_location, 10000)@@ -142,6 +145,7 @@ class ProxyLocation(StrEnum):ProxyLocation.RESIDENTIAL_MX: "MX",ProxyLocation.RESIDENTIAL_IT: "IT",ProxyLocation.RESIDENTIAL_NL: "NL",+ ProxyLocation.RESIDENTIAL_PH: "PH",}return mapping.get(proxy_location, "US")@@ -165,6 +169,7 @@ SUPPORTED_GEO_COUNTRIES = frozenset("MX","NL","NZ",+ "PH","TR","ZA",}@@ -307,6 +312,9 @@ def get_tzinfo_from_proxy(proxy_location: ProxyLocation) -> ZoneInfo | None:if proxy_location == ProxyLocation.RESIDENTIAL_NL:return ZoneInfo("Europe/Amsterdam")+ if proxy_location == ProxyLocation.RESIDENTIAL_PH:+ return ZoneInfo("Asia/Manila")+if proxy_location == ProxyLocation.RESIDENTIAL_ISP:return ZoneInfo("America/New_York")