@hyperbrowser/sdk 0.81.0 → 0.81.2
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
|
-
import { BasicResponse, CreateSessionParams, GetActiveSessionsCountResponse, GetSessionDownloadsUrlResponse, GetSessionRecordingUrlResponse, GetSessionVideoRecordingUrlResponse, SessionDetail, SessionListParams, SessionListResponse, SessionRecording, UploadFileOptions, UploadFileResponse, SessionEventLogListParams, SessionEventLogListResponse, UpdateSessionProfileParams } from "../types/session";
|
|
1
|
+
import { BasicResponse, CreateSessionParams, GetActiveSessionsCountResponse, GetSessionDownloadsUrlResponse, GetSessionRecordingUrlResponse, GetSessionVideoRecordingUrlResponse, SessionDetail, SessionListParams, SessionListResponse, SessionRecording, UploadFileOptions, UploadFileResponse, SessionEventLogListParams, SessionEventLogListResponse, UpdateSessionProfileParams, SessionGetParams } from "../types/session";
|
|
2
2
|
import { BaseService } from "./base";
|
|
3
3
|
/**
|
|
4
4
|
* Service for managing session event logs
|
|
@@ -23,7 +23,7 @@ export declare class SessionsService extends BaseService {
|
|
|
23
23
|
* Get details of an existing session
|
|
24
24
|
* @param id The ID of the session to get
|
|
25
25
|
*/
|
|
26
|
-
get(id: string): Promise<SessionDetail>;
|
|
26
|
+
get(id: string, params?: SessionGetParams): Promise<SessionDetail>;
|
|
27
27
|
/**
|
|
28
28
|
* Stop a running session
|
|
29
29
|
* @param id The ID of the session to stop
|
|
@@ -83,9 +83,11 @@ class SessionsService extends base_1.BaseService {
|
|
|
83
83
|
* Get details of an existing session
|
|
84
84
|
* @param id The ID of the session to get
|
|
85
85
|
*/
|
|
86
|
-
async get(id) {
|
|
86
|
+
async get(id, params = {}) {
|
|
87
87
|
try {
|
|
88
|
-
return await this.request(`/session/${id}
|
|
88
|
+
return await this.request(`/session/${id}`, undefined, {
|
|
89
|
+
liveViewTtlSeconds: params.liveViewTtlSeconds,
|
|
90
|
+
});
|
|
89
91
|
}
|
|
90
92
|
catch (error) {
|
|
91
93
|
if (error instanceof client_1.HyperbrowserError) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { StartClaudeComputerUseTaskParams, StartClaudeComputerUseTaskResponse, C
|
|
|
7
7
|
export { StartCuaTaskParams, StartCuaTaskResponse, CuaTaskStatusResponse, CuaTaskResponse, CuaTaskData, CuaStepResponse, CuaApiKeys, CuaTaskMetadata, } from "./agents/cua";
|
|
8
8
|
export { StartHyperAgentTaskParams, StartHyperAgentTaskResponse, HyperAgentTaskStatusResponse, HyperAgentTaskResponse, HyperAgentTaskData, HyperAgentStep, HyperAgentOutput, HyperAgentActionOutput, HyperAgentApiKeys, HyperAgentTaskMetadata, HyperAgentOutputV110, HyperAgentStepV110, } from "./agents/hyper-agent";
|
|
9
9
|
export { StartGeminiComputerUseTaskParams, StartGeminiComputerUseTaskResponse, GeminiComputerUseTaskStatusResponse, GeminiComputerUseTaskResponse, GeminiComputerUseTaskData, GeminiComputerUseStepResponse, GeminiComputerUseApiKeys, GeminiComputerUseTaskMetadata, } from "./agents/gemini-computer-use";
|
|
10
|
-
export { BasicResponse, SessionStatus, Session, SessionDetail, SessionListParams, SessionListResponse, ScreenConfig, CreateSessionParams, GetSessionDownloadsUrlResponse, GetSessionVideoRecordingUrlResponse, GetSessionRecordingUrlResponse, ImageCaptchaParam, UploadFileResponse, UploadFileOptions, GetActiveSessionsCountResponse, SessionEventLogListParams, SessionEventLogListResponse, SessionEventLog, SessionProfile, SessionLaunchState, UpdateSessionProfileParams, } from "./session";
|
|
10
|
+
export { BasicResponse, SessionStatus, Session, SessionDetail, SessionGetParams, SessionListParams, SessionListResponse, ScreenConfig, CreateSessionParams, GetSessionDownloadsUrlResponse, GetSessionVideoRecordingUrlResponse, GetSessionRecordingUrlResponse, ImageCaptchaParam, UploadFileResponse, UploadFileOptions, GetActiveSessionsCountResponse, SessionEventLogListParams, SessionEventLogListResponse, SessionEventLog, SessionProfile, SessionLaunchState, UpdateSessionProfileParams, } from "./session";
|
|
11
11
|
export { CreateProfileParams, ProfileResponse, CreateProfileResponse, ProfileListParams, ProfileListResponse, } from "./profile";
|
|
12
12
|
export { CreateExtensionParams, CreateExtensionResponse, ListExtensionsResponse, } from "./extension";
|
|
13
13
|
export { ExtractJobStatus, BrowserUseTaskStatus, BrowserUseLlm, ClaudeComputerUseLlm, GeminiComputerUseLlm, ScrapeScreenshotFormat, ScrapeJobStatus, CrawlJobStatus, Country, State, ISO639_1, OperatingSystem, Platform, ScrapeFormat, ScrapeWaitUntil, ScrapePageStatus, CrawlPageStatus, RecordingStatus, DownloadsStatus, HyperAgentLlm, HyperAgentTaskStatus, ClaudeComputerUseTaskStatus, CuaTaskStatus, GeminiComputerUseTaskStatus, SessionEventLogType, SessionRegion, BrowserUseVersion, HyperAgentVersion, } from "./constants";
|
package/dist/types/session.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ export interface SessionDetail extends Session {
|
|
|
50
50
|
liveUrl?: string;
|
|
51
51
|
token: string;
|
|
52
52
|
}
|
|
53
|
+
export interface SessionGetParams {
|
|
54
|
+
liveViewTtlSeconds?: number;
|
|
55
|
+
}
|
|
53
56
|
export interface SessionListParams {
|
|
54
57
|
status?: SessionStatus;
|
|
55
58
|
page?: number;
|
|
@@ -113,6 +116,9 @@ export interface CreateSessionParams {
|
|
|
113
116
|
disablePasswordManager?: boolean;
|
|
114
117
|
enableAlwaysOpenPdfExternally?: boolean;
|
|
115
118
|
appendTimestampToDownloads?: boolean;
|
|
119
|
+
showScrollbars?: boolean;
|
|
120
|
+
liveViewTtlSeconds?: number;
|
|
121
|
+
replaceNativeElements?: boolean;
|
|
116
122
|
}
|
|
117
123
|
export interface SessionRecording {
|
|
118
124
|
type: number;
|