Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Add support for more proxies (#1859)
Shuchang Zheng8da1a9babf3c
diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.tsindex 3d1755774..8b02f77a5 100644--- a/skyvern-frontend/src/api/types.ts+++ b/skyvern-frontend/src/api/types.ts@@ -38,6 +38,9 @@ export const ProxyLocation = {ResidentialGB: "RESIDENTIAL_GB",ResidentialFR: "RESIDENTIAL_FR",ResidentialDE: "RESIDENTIAL_DE",+ ResidentialNZ: "RESIDENTIAL_NZ",+ ResidentialZA: "RESIDENTIAL_ZA",+ ResidentialAR: "RESIDENTIAL_AR",ResidentialISP: "RESIDENTIAL_ISP",None: "NONE",} as const;diff --git a/skyvern-frontend/src/components/ProxySelector.tsx b/skyvern-frontend/src/components/ProxySelector.tsxindex 835a8d138..8d5d2982b 100644--- a/skyvern-frontend/src/components/ProxySelector.tsx+++ b/skyvern-frontend/src/components/ProxySelector.tsx@@ -45,6 +45,15 @@ function ProxySelector({ value, onChange, className }: Props) {<SelectItem value={ProxyLocation.ResidentialDE}>Residential (Germany)</SelectItem>+ <SelectItem value={ProxyLocation.ResidentialNZ}>+ Residential (New Zealand)+ </SelectItem>+ <SelectItem value={ProxyLocation.ResidentialZA}>+ Residential (South Africa)+ </SelectItem>+ <SelectItem value={ProxyLocation.ResidentialAR}>+ Residential (Argentina)+ </SelectItem></SelectContent></Select>);diff --git a/skyvern/forge/sdk/schemas/tasks.py b/skyvern/forge/sdk/schemas/tasks.pyindex 9a78c0781..aa1e4d131 100644--- a/skyvern/forge/sdk/schemas/tasks.py+++ b/skyvern/forge/sdk/schemas/tasks.py@@ -27,6 +27,9 @@ class ProxyLocation(StrEnum):RESIDENTIAL_JP = "RESIDENTIAL_JP"RESIDENTIAL_FR = "RESIDENTIAL_FR"RESIDENTIAL_DE = "RESIDENTIAL_DE"+ RESIDENTIAL_NZ = "RESIDENTIAL_NZ"+ RESIDENTIAL_ZA = "RESIDENTIAL_ZA"+ RESIDENTIAL_AR = "RESIDENTIAL_AR"RESIDENTIAL_ISP = "RESIDENTIAL_ISP"NONE = "NONE"@@ -74,6 +77,15 @@ def get_tzinfo_from_proxy(proxy_location: ProxyLocation) -> ZoneInfo | None:if proxy_location == ProxyLocation.RESIDENTIAL_DE:return ZoneInfo("Europe/Berlin")+ if proxy_location == ProxyLocation.RESIDENTIAL_NZ:+ return ZoneInfo("Pacific/Auckland")++ if proxy_location == ProxyLocation.RESIDENTIAL_ZA:+ return ZoneInfo("Africa/Johannesburg")++ if proxy_location == ProxyLocation.RESIDENTIAL_AR:+ return ZoneInfo("America/Argentina/Buenos_Aires")+if proxy_location == ProxyLocation.RESIDENTIAL_ISP:return ZoneInfo("America/New_York")