From 23744b3039805dd6d33ceb01dbc407c20d0aea07 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 24 Feb 2025 06:29:12 -0800 Subject: [PATCH] Support ISP Proxies in Skyvern (#1823) --- skyvern-frontend/src/api/types.ts | 1 + skyvern-frontend/src/components/ProxySelector.tsx | 3 +++ skyvern/forge/sdk/schemas/tasks.py | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.ts index 59c620a2..1f775424 100644 --- a/skyvern-frontend/src/api/types.ts +++ b/skyvern-frontend/src/api/types.ts @@ -38,6 +38,7 @@ export const ProxyLocation = { ResidentialGB: "RESIDENTIAL_GB", ResidentialFR: "RESIDENTIAL_FR", ResidentialDE: "RESIDENTIAL_DE", + ResidentialISP: "RESIDENTIAL_ISP", None: "NONE", } as const; diff --git a/skyvern-frontend/src/components/ProxySelector.tsx b/skyvern-frontend/src/components/ProxySelector.tsx index a55840b0..835a8d13 100644 --- a/skyvern-frontend/src/components/ProxySelector.tsx +++ b/skyvern-frontend/src/components/ProxySelector.tsx @@ -21,6 +21,9 @@ function ProxySelector({ value, onChange, className }: Props) { Residential + + Residential ISP (US) + Residential (Spain) diff --git a/skyvern/forge/sdk/schemas/tasks.py b/skyvern/forge/sdk/schemas/tasks.py index 74147872..9533c60d 100644 --- a/skyvern/forge/sdk/schemas/tasks.py +++ b/skyvern/forge/sdk/schemas/tasks.py @@ -26,6 +26,7 @@ class ProxyLocation(StrEnum): RESIDENTIAL_JP = "RESIDENTIAL_JP" RESIDENTIAL_FR = "RESIDENTIAL_FR" RESIDENTIAL_DE = "RESIDENTIAL_DE" + RESIDENTIAL_ISP = "RESIDENTIAL_ISP" NONE = "NONE" @@ -72,6 +73,9 @@ 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_ISP: + return ZoneInfo("America/New_York") + return None