@hyperbrowser/sdk 0.82.1 → 0.82.3
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.
|
@@ -21,7 +21,6 @@ class WebService extends base_1.BaseService {
|
|
|
21
21
|
*/
|
|
22
22
|
async fetch(params) {
|
|
23
23
|
try {
|
|
24
|
-
// Handle JSON schema serialization if needed (similar to Python SDK)
|
|
25
24
|
if (params.outputs?.formats) {
|
|
26
25
|
for (const output of params.outputs.formats) {
|
|
27
26
|
if (typeof output === "object" && "type" in output && output.type === "json") {
|
|
@@ -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-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-haiku-4-5-20251001" | "claude-sonnet-4-5" | "claude-sonnet-4-20250514" | "claude-3-7-sonnet-20250219";
|
|
20
|
+
export type ClaudeComputerUseLlm = "claude-opus-4-5" | "claude-opus-4-6" | "claude-haiku-4-5-20251001" | "claude-sonnet-4-5" | "claude-sonnet-4-20250514" | "claude-3-7-sonnet-20250219";
|
|
21
21
|
export type HyperAgentVersion = "0.8.0" | "1.1.0";
|
|
22
22
|
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" | "gemini-2.5-flash" | "gemini-3-flash-preview";
|
|
23
23
|
export type GeminiComputerUseLlm = "gemini-2.5-computer-use-preview-10-2025";
|
package/dist/types/session.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface SessionLaunchState {
|
|
|
30
30
|
disablePasswordManager?: boolean;
|
|
31
31
|
enableAlwaysOpenPdfExternally?: boolean;
|
|
32
32
|
appendTimestampToDownloads?: boolean;
|
|
33
|
+
disablePostQuantumKeyAgreement?: boolean;
|
|
33
34
|
}
|
|
34
35
|
export interface Session {
|
|
35
36
|
id: string;
|
|
@@ -119,6 +120,7 @@ export interface CreateSessionParams {
|
|
|
119
120
|
showScrollbars?: boolean;
|
|
120
121
|
liveViewTtlSeconds?: number;
|
|
121
122
|
replaceNativeElements?: boolean;
|
|
123
|
+
disablePostQuantumKeyAgreement?: boolean;
|
|
122
124
|
}
|
|
123
125
|
export interface SessionRecording {
|
|
124
126
|
type: number;
|
|
@@ -143,6 +145,9 @@ export interface GetSessionDownloadsUrlResponse {
|
|
|
143
145
|
}
|
|
144
146
|
export interface UploadFileResponse {
|
|
145
147
|
message: string;
|
|
148
|
+
filePath?: string;
|
|
149
|
+
fileName?: string;
|
|
150
|
+
originalName?: string;
|
|
146
151
|
}
|
|
147
152
|
export interface UploadFileOptions {
|
|
148
153
|
fileInput: string | fs.ReadStream | Buffer;
|