@hyperbrowser/sdk 0.89.3 → 0.89.5

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.
@@ -17,7 +17,7 @@ export type DownloadsStatus = "not_enabled" | "pending" | "in_progress" | "compl
17
17
  export declare const POLLING_ATTEMPTS = 5;
18
18
  export type BrowserUseVersion = "0.1.40" | "0.7.10" | "latest";
19
19
  export type BrowserUseLlm = "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-5" | "gpt-5-mini" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "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";
20
- export type ClaudeComputerUseLlm = "claude-opus-4-5" | "claude-opus-4-6" | "claude-haiku-4-5-20251001" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-4-20250514" | "claude-3-7-sonnet-20250219";
20
+ export type ClaudeComputerUseLlm = "claude-opus-4-5" | "claude-opus-4-6" | "claude-opus-4-7" | "claude-haiku-4-5-20251001" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-4-20250514" | "claude-3-7-sonnet-20250219";
21
21
  export type CuaLlm = "computer-use-preview" | "gpt-5.4" | "gpt-5.4-mini";
22
22
  export type HyperAgentVersion = "0.8.0" | "1.1.0";
23
23
  export type HyperAgentLlm = "gpt-5.2" | "gpt-5.1" | "gpt-5" | "gpt-5-mini" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "gemini-2.5-flash" | "gemini-3-flash-preview";
@@ -18,4 +18,5 @@ export { ComputerAction, Coordinate, ClickActionParams, DragActionParams, PressK
18
18
  export { FetchParams, FetchResponse, FetchResponseData, FetchStatus } from "./web/fetch";
19
19
  export { StartBatchFetchJobParams, GetBatchFetchJobParams, StartBatchFetchJobResponse, BatchFetchJobStatusResponse, BatchFetchJobResponse, BatchFetchJobStatus, } from "./web/batch-fetch";
20
20
  export { WebSearchParams, WebSearchResponse, WebSearchResponseData, WebSearchResultItem, WebSearchFilters, WebSearchLocation, WebSearchFiletype, WebSearchStatus, } from "./web/search";
21
- export { FetchStealthMode, FetchSanitizeMode, FetchWaitUntil, FetchScreenshotFormat, PageStatus, FetchOutputScreenshotOptions, FetchStorageStateOptions, FetchBrowserLocationOptions, PageData, FetchOutputMarkdown, FetchOutputHtml, FetchOutputLinks, FetchOutputScreenshot, FetchOutputJsonOptions, FetchOutputJson, FetchOutputFormat, FetchOutputOptions, FetchBrowserOptions, FetchNavigationOptions, FetchCacheOptions, } from "./web/common";
21
+ export { FetchStealthMode, FetchSanitizeMode, FetchWaitUntil, FetchScreenshotFormat, PageStatus, FetchOutputScreenshotOptions, FetchStorageStateOptions, FetchBrowserLocationOptions, PageData, FetchOutputMarkdown, FetchOutputHtml, FetchOutputLinks, FetchOutputScreenshot, FetchOutputJsonOptions, FetchOutputJson, FetchOutputBranding, FetchOutputFormat, FetchOutputOptions, FetchBrowserOptions, FetchNavigationOptions, FetchCacheOptions, } from "./web/common";
22
+ export { BrandingProfile, BrandingColors, BrandingFont, BrandingFontRole, BrandingTypography, BrandingFontFamilies, BrandingFontStacks, BrandingFontSizes, BrandingSpacing, BrandingComponents, BrandingButtonStyle, BrandingInputStyle, BrandingBorderRadiusCorners, BrandingImages, BrandingPersonality, BrandingPersonalityTone, BrandingPersonalityEnergy, BrandingDesignSystem, BrandingDesignFramework, BrandingConfidence, BrandingColorScheme, } from "./web/branding";
@@ -0,0 +1,114 @@
1
+ export type BrandingColorScheme = "light" | "dark" | (string & {});
2
+ export type BrandingPersonalityTone = "professional" | "playful" | "modern" | "traditional" | "minimalist" | "bold" | (string & {});
3
+ export type BrandingPersonalityEnergy = "low" | "medium" | "high" | (string & {});
4
+ export type BrandingFontRole = "heading" | "body" | "monospace" | "display" | "unknown" | (string & {});
5
+ export type BrandingDesignFramework = "tailwind" | "bootstrap" | "material" | "chakra" | "custom" | "unknown" | (string & {});
6
+ export interface BrandingColors {
7
+ primary?: string;
8
+ secondary?: string;
9
+ accent?: string;
10
+ background?: string;
11
+ textPrimary?: string;
12
+ textSecondary?: string;
13
+ link?: string;
14
+ success?: string;
15
+ warning?: string;
16
+ error?: string;
17
+ }
18
+ export interface BrandingFont {
19
+ family?: string;
20
+ role?: BrandingFontRole;
21
+ }
22
+ export interface BrandingBorderRadiusCorners {
23
+ topLeft?: string;
24
+ topRight?: string;
25
+ bottomRight?: string;
26
+ bottomLeft?: string;
27
+ }
28
+ export interface BrandingButtonStyle {
29
+ background?: string;
30
+ textColor?: string;
31
+ borderColor?: string;
32
+ borderRadius?: string;
33
+ borderRadiusCorners?: BrandingBorderRadiusCorners;
34
+ shadow?: string;
35
+ }
36
+ export interface BrandingInputStyle {
37
+ background?: string;
38
+ textColor?: string | null;
39
+ borderColor?: string | null;
40
+ focusBorderColor?: string | null;
41
+ borderRadius?: string;
42
+ borderRadiusCorners?: BrandingBorderRadiusCorners;
43
+ shadow?: string | null;
44
+ }
45
+ export interface BrandingComponents {
46
+ buttonPrimary?: BrandingButtonStyle;
47
+ buttonSecondary?: BrandingButtonStyle;
48
+ input?: BrandingInputStyle;
49
+ }
50
+ export interface BrandingFontFamilies {
51
+ primary?: string;
52
+ heading?: string;
53
+ code?: string;
54
+ }
55
+ export interface BrandingFontStacks {
56
+ primary?: (string | null)[];
57
+ heading?: (string | null)[];
58
+ body?: (string | null)[];
59
+ paragraph?: (string | null)[];
60
+ }
61
+ export interface BrandingFontSizes {
62
+ h1?: string;
63
+ h2?: string;
64
+ h3?: string;
65
+ body?: string;
66
+ small?: string;
67
+ }
68
+ export interface BrandingTypography {
69
+ fontFamilies?: BrandingFontFamilies;
70
+ fontStacks?: BrandingFontStacks;
71
+ fontSizes?: BrandingFontSizes;
72
+ lineHeights?: Record<string, number | null>;
73
+ fontWeights?: Record<string, number | null>;
74
+ }
75
+ export interface BrandingSpacing {
76
+ baseUnit?: number;
77
+ borderRadius?: string;
78
+ padding?: Record<string, number | null>;
79
+ margins?: Record<string, number | null>;
80
+ gridGutter?: number;
81
+ }
82
+ export interface BrandingImages {
83
+ logo?: string | null;
84
+ logoHref?: string | null;
85
+ logoAlt?: string | null;
86
+ favicon?: string | null;
87
+ ogImage?: string | null;
88
+ }
89
+ export interface BrandingPersonality {
90
+ tone?: BrandingPersonalityTone;
91
+ energy?: BrandingPersonalityEnergy;
92
+ targetAudience?: string;
93
+ }
94
+ export interface BrandingDesignSystem {
95
+ framework?: BrandingDesignFramework;
96
+ componentLibrary?: string;
97
+ }
98
+ export interface BrandingConfidence {
99
+ buttons?: number;
100
+ colors?: number;
101
+ overall?: number;
102
+ }
103
+ export interface BrandingProfile {
104
+ colorScheme?: BrandingColorScheme;
105
+ colors?: BrandingColors;
106
+ fonts?: BrandingFont[];
107
+ typography?: BrandingTypography;
108
+ spacing?: BrandingSpacing;
109
+ components?: BrandingComponents;
110
+ images?: BrandingImages;
111
+ personality?: BrandingPersonality;
112
+ designSystem?: BrandingDesignSystem;
113
+ confidence?: BrandingConfidence;
114
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  import { Country, State } from "../constants";
2
2
  import { ScreenConfig } from "../session";
3
+ import { BrandingProfile } from "./branding";
3
4
  export type FetchStealthMode = "none" | "auto" | "ultra";
4
5
  export type FetchSanitizeMode = "none" | "basic" | "advanced";
5
6
  export type FetchWaitUntil = "load" | "domcontentloaded" | "networkidle";
@@ -31,6 +32,7 @@ export interface PageData {
31
32
  links?: string[];
32
33
  screenshot?: string;
33
34
  json?: Record<string, any>;
35
+ branding?: BrandingProfile;
34
36
  }
35
37
  export interface FetchOutputMarkdown {
36
38
  type: "markdown";
@@ -51,7 +53,10 @@ export interface FetchOutputJsonOptions {
51
53
  export interface FetchOutputJson extends FetchOutputJsonOptions {
52
54
  type: "json";
53
55
  }
54
- export type FetchOutputFormat = FetchOutputMarkdown | FetchOutputHtml | FetchOutputLinks | FetchOutputScreenshot | FetchOutputJson | "markdown" | "html" | "links" | "screenshot";
56
+ export interface FetchOutputBranding {
57
+ type: "branding";
58
+ }
59
+ export type FetchOutputFormat = FetchOutputMarkdown | FetchOutputHtml | FetchOutputLinks | FetchOutputScreenshot | FetchOutputJson | FetchOutputBranding | "markdown" | "html" | "links" | "screenshot" | "branding";
55
60
  export interface FetchOutputOptions {
56
61
  formats?: FetchOutputFormat[];
57
62
  sanitize?: FetchSanitizeMode;
@@ -1,4 +1,5 @@
1
1
  import { FetchStealthMode, FetchOutputOptions, FetchBrowserOptions, FetchNavigationOptions, FetchCacheOptions } from "./common";
2
+ import { BrandingProfile } from "./branding";
2
3
  export type FetchStatus = "completed" | "failed" | "pending" | "running";
3
4
  export interface FetchParams {
4
5
  url: string;
@@ -15,6 +16,7 @@ export interface FetchResponseData {
15
16
  links?: string[];
16
17
  screenshot?: string;
17
18
  json?: Record<string, any>;
19
+ branding?: BrandingProfile;
18
20
  }
19
21
  export interface FetchResponse {
20
22
  jobId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbrowser/sdk",
3
- "version": "0.89.3",
3
+ "version": "0.89.5",
4
4
  "description": "Node SDK for Hyperbrowser API",
5
5
  "author": "",
6
6
  "repository": {