@hyperbrowser/sdk 0.60.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SessionEventLogType = "captcha_detected" | "captcha_solved" | "captcha_error";
|
|
1
|
+
export type SessionEventLogType = "captcha_detected" | "captcha_solved" | "captcha_error" | "file_downloaded";
|
|
2
2
|
export type ScrapeFormat = "markdown" | "html" | "links" | "screenshot";
|
|
3
3
|
export type ScrapeJobStatus = "pending" | "running" | "completed" | "failed";
|
|
4
4
|
export type ExtractJobStatus = "pending" | "running" | "completed" | "failed";
|
|
@@ -17,7 +17,7 @@ export declare const POLLING_ATTEMPTS = 5;
|
|
|
17
17
|
export type BrowserUseLlm = "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "claude-sonnet-4-20250514" | "claude-3-7-sonnet-20250219" | "claude-3-5-sonnet-20241022" | "claude-3-5-haiku-20241022" | "gemini-2.0-flash" | "gemini-2.5-flash";
|
|
18
18
|
export type ClaudeComputerUseLlm = "claude-3-7-sonnet-20250219" | "claude-sonnet-4-20250514";
|
|
19
19
|
export type HyperAgentLlm = "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano";
|
|
20
|
-
export type SessionRegion = "us-central" | "asia-south";
|
|
20
|
+
export type SessionRegion = "us-central" | "asia-south" | "us-dev";
|
|
21
21
|
export type Country = "AD" | "AE" | "AF" | "AL" | "AM" | "AO" | "AR" | "AT" | "AU" | "AW" | "AZ" | "BA" | "BD" | "BE" | "BG" | "BH" | "BJ" | "BO" | "BR" | "BS" | "BT" | "BY" | "BZ" | "CA" | "CF" | "CH" | "CI" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "EC" | "EE" | "EG" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FR" | "GB" | "GE" | "GH" | "GM" | "GR" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IN" | "IQ" | "IR" | "IS" | "IT" | "JM" | "JO" | "JP" | "KE" | "KH" | "KR" | "KW" | "KZ" | "LB" | "LI" | "LR" | "LT" | "LU" | "LV" | "MA" | "MC" | "MD" | "ME" | "MG" | "MK" | "ML" | "MM" | "MN" | "MR" | "MT" | "MU" | "MV" | "MX" | "MY" | "MZ" | "NG" | "NL" | "NO" | "NZ" | "OM" | "PA" | "PE" | "PH" | "PK" | "PL" | "PR" | "PT" | "PY" | "QA" | "RANDOM_COUNTRY" | "RO" | "RS" | "RU" | "SA" | "SC" | "SD" | "SE" | "SG" | "SI" | "SK" | "SN" | "SS" | "TD" | "TG" | "TH" | "TM" | "TN" | "TR" | "TT" | "TW" | "UA" | "UG" | "US" | "UY" | "UZ" | "VE" | "VG" | "VN" | "YE" | "ZA" | "ZM" | "ZW" | "ad" | "ae" | "af" | "al" | "am" | "ao" | "ar" | "at" | "au" | "aw" | "az" | "ba" | "bd" | "be" | "bg" | "bh" | "bj" | "bo" | "br" | "bs" | "bt" | "by" | "bz" | "ca" | "cf" | "ch" | "ci" | "cl" | "cm" | "cn" | "co" | "cr" | "cu" | "cy" | "cz" | "de" | "dj" | "dk" | "dm" | "ec" | "ee" | "eg" | "es" | "et" | "eu" | "fi" | "fj" | "fr" | "gb" | "ge" | "gh" | "gm" | "gr" | "hk" | "hn" | "hr" | "ht" | "hu" | "id" | "ie" | "il" | "in" | "iq" | "ir" | "is" | "it" | "jm" | "jo" | "jp" | "ke" | "kh" | "kr" | "kw" | "kz" | "lb" | "li" | "lr" | "lt" | "lu" | "lv" | "ma" | "mc" | "md" | "me" | "mg" | "mk" | "ml" | "mm" | "mn" | "mr" | "mt" | "mu" | "mv" | "mx" | "my" | "mz" | "ng" | "nl" | "no" | "nz" | "om" | "pa" | "pe" | "ph" | "pk" | "pl" | "pr" | "pt" | "py" | "qa" | "ro" | "rs" | "ru" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sn" | "ss" | "td" | "tg" | "th" | "tm" | "tn" | "tr" | "tt" | "tw" | "ua" | "ug" | "us" | "uy" | "uz" | "ve" | "vg" | "vn" | "ye" | "za" | "zm" | "zw";
|
|
22
22
|
export type OperatingSystem = "windows" | "android" | "macos" | "linux" | "ios";
|
|
23
23
|
export type Platform = "chrome" | "firefox" | "safari" | "edge";
|
package/dist/types/session.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface ImageCaptchaParam {
|
|
|
44
44
|
inputSelector: string;
|
|
45
45
|
}
|
|
46
46
|
export interface CreateSessionParams {
|
|
47
|
+
useUltraStealth?: boolean;
|
|
47
48
|
useStealth?: boolean;
|
|
48
49
|
useProxy?: boolean;
|
|
49
50
|
proxyServer?: string;
|
|
@@ -113,8 +114,8 @@ export interface GetActiveSessionsCountResponse {
|
|
|
113
114
|
export interface SessionEventLog {
|
|
114
115
|
id: string;
|
|
115
116
|
sessionId: string;
|
|
116
|
-
targetId: string;
|
|
117
|
-
pageUrl: string;
|
|
117
|
+
targetId: string | null;
|
|
118
|
+
pageUrl: string | null;
|
|
118
119
|
teamId: string;
|
|
119
120
|
type: SessionEventLogType;
|
|
120
121
|
metadata: Record<string, unknown>;
|