@browserbasehq/sdk 1.1.2 → 1.1.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.
- package/dist/index.d.ts +26 -26
- package/package.json +1 -1
- package/src/index.ts +27 -26
package/dist/index.d.ts
CHANGED
|
@@ -39,45 +39,45 @@ export type Session = {
|
|
|
39
39
|
startedAt: string;
|
|
40
40
|
endedAt: string;
|
|
41
41
|
projectId: string;
|
|
42
|
-
status
|
|
43
|
-
taskId
|
|
44
|
-
proxyBytes
|
|
45
|
-
expiresAt
|
|
46
|
-
avg_cpu_usage
|
|
47
|
-
memory_usage
|
|
48
|
-
details
|
|
49
|
-
logs
|
|
42
|
+
status?: 'NEW' | 'CREATED' | 'ERROR' | 'RUNNING' | 'REQUEST_RELEASE' | 'RELEASING' | 'COMPLETED';
|
|
43
|
+
taskId?: string;
|
|
44
|
+
proxyBytes?: number;
|
|
45
|
+
expiresAt?: string;
|
|
46
|
+
avg_cpu_usage?: number;
|
|
47
|
+
memory_usage?: number;
|
|
48
|
+
details?: string;
|
|
49
|
+
logs?: string;
|
|
50
50
|
};
|
|
51
51
|
export type UpdateSessionOptions = {
|
|
52
52
|
projectId?: string;
|
|
53
53
|
status: Session['status'];
|
|
54
54
|
};
|
|
55
55
|
export type SessionRecording = {
|
|
56
|
-
type
|
|
57
|
-
timestamp
|
|
58
|
-
data
|
|
56
|
+
type?: number;
|
|
57
|
+
timestamp?: number;
|
|
58
|
+
data?: object;
|
|
59
59
|
};
|
|
60
60
|
export type SessionLog = {
|
|
61
|
-
sessionId
|
|
61
|
+
sessionId?: string;
|
|
62
62
|
id: string;
|
|
63
|
-
timestamp
|
|
64
|
-
method
|
|
65
|
-
request
|
|
66
|
-
timestamp
|
|
67
|
-
params
|
|
68
|
-
rawBody
|
|
63
|
+
timestamp?: string;
|
|
64
|
+
method?: string;
|
|
65
|
+
request?: {
|
|
66
|
+
timestamp?: string;
|
|
67
|
+
params?: object;
|
|
68
|
+
rawBody?: string;
|
|
69
69
|
};
|
|
70
|
-
response
|
|
71
|
-
timestamp
|
|
72
|
-
result
|
|
73
|
-
rawBody
|
|
70
|
+
response?: {
|
|
71
|
+
timestamp?: string;
|
|
72
|
+
result?: object;
|
|
73
|
+
rawBody?: string;
|
|
74
74
|
};
|
|
75
|
-
pageId
|
|
75
|
+
pageId?: string;
|
|
76
76
|
};
|
|
77
77
|
export type DebugConnectionURLs = {
|
|
78
|
-
debuggerFullscreenUrl
|
|
79
|
-
debuggerUrl
|
|
80
|
-
wsUrl
|
|
78
|
+
debuggerFullscreenUrl?: string;
|
|
79
|
+
debuggerUrl?: string;
|
|
80
|
+
wsUrl?: string;
|
|
81
81
|
};
|
|
82
82
|
export default class Browserbase {
|
|
83
83
|
private apiKey;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -46,20 +46,21 @@ export type Session = {
|
|
|
46
46
|
startedAt: string
|
|
47
47
|
endedAt: string
|
|
48
48
|
projectId: string
|
|
49
|
-
status
|
|
49
|
+
status?:
|
|
50
50
|
| 'NEW'
|
|
51
51
|
| 'CREATED'
|
|
52
52
|
| 'ERROR'
|
|
53
53
|
| 'RUNNING'
|
|
54
54
|
| 'REQUEST_RELEASE'
|
|
55
55
|
| 'RELEASING'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
| 'COMPLETED'
|
|
57
|
+
taskId?: string
|
|
58
|
+
proxyBytes?: number
|
|
59
|
+
expiresAt?: string
|
|
60
|
+
avg_cpu_usage?: number
|
|
61
|
+
memory_usage?: number
|
|
62
|
+
details?: string
|
|
63
|
+
logs?: string
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export type UpdateSessionOptions = {
|
|
@@ -68,33 +69,33 @@ export type UpdateSessionOptions = {
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export type SessionRecording = {
|
|
71
|
-
type
|
|
72
|
-
timestamp
|
|
73
|
-
data
|
|
72
|
+
type?: number
|
|
73
|
+
timestamp?: number
|
|
74
|
+
data?: object
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
export type SessionLog = {
|
|
77
|
-
sessionId
|
|
78
|
+
sessionId?: string
|
|
78
79
|
id: string
|
|
79
|
-
timestamp
|
|
80
|
-
method
|
|
81
|
-
request
|
|
82
|
-
timestamp
|
|
83
|
-
params
|
|
84
|
-
rawBody
|
|
80
|
+
timestamp?: string
|
|
81
|
+
method?: string
|
|
82
|
+
request?: {
|
|
83
|
+
timestamp?: string
|
|
84
|
+
params?: object
|
|
85
|
+
rawBody?: string
|
|
85
86
|
}
|
|
86
|
-
response
|
|
87
|
-
timestamp
|
|
88
|
-
result
|
|
89
|
-
rawBody
|
|
87
|
+
response?: {
|
|
88
|
+
timestamp?: string
|
|
89
|
+
result?: object
|
|
90
|
+
rawBody?: string
|
|
90
91
|
}
|
|
91
|
-
pageId
|
|
92
|
+
pageId?: string
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
export type DebugConnectionURLs = {
|
|
95
|
-
debuggerFullscreenUrl
|
|
96
|
-
debuggerUrl
|
|
97
|
-
wsUrl
|
|
96
|
+
debuggerFullscreenUrl?: string
|
|
97
|
+
debuggerUrl?: string
|
|
98
|
+
wsUrl?: string
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
export default class Browserbase {
|