@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 CHANGED
@@ -39,45 +39,45 @@ export type Session = {
39
39
  startedAt: string;
40
40
  endedAt: string;
41
41
  projectId: string;
42
- status: 'NEW' | 'CREATED' | 'ERROR' | 'RUNNING' | 'REQUEST_RELEASE' | 'RELEASING';
43
- taskId: string;
44
- proxyBytes: number;
45
- expiresAt: string;
46
- avg_cpu_usage: number;
47
- memory_usage: number;
48
- details: string;
49
- logs: string;
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: number;
57
- timestamp: number;
58
- data: object;
56
+ type?: number;
57
+ timestamp?: number;
58
+ data?: object;
59
59
  };
60
60
  export type SessionLog = {
61
- sessionId: string;
61
+ sessionId?: string;
62
62
  id: string;
63
- timestamp: string;
64
- method: string;
65
- request: {
66
- timestamp: string;
67
- params: object;
68
- rawBody: string;
63
+ timestamp?: string;
64
+ method?: string;
65
+ request?: {
66
+ timestamp?: string;
67
+ params?: object;
68
+ rawBody?: string;
69
69
  };
70
- response: {
71
- timestamp: string;
72
- result: object;
73
- rawBody: string;
70
+ response?: {
71
+ timestamp?: string;
72
+ result?: object;
73
+ rawBody?: string;
74
74
  };
75
- pageId: string;
75
+ pageId?: string;
76
76
  };
77
77
  export type DebugConnectionURLs = {
78
- debuggerFullscreenUrl: string;
79
- debuggerUrl: string;
80
- wsUrl: string;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@browserbasehq/sdk",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "description": "Browserbase JS SDK",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
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
- taskId: string
57
- proxyBytes: number
58
- expiresAt: string
59
- avg_cpu_usage: number
60
- memory_usage: number
61
- details: string
62
- logs: string
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: number
72
- timestamp: number
73
- data: object
72
+ type?: number
73
+ timestamp?: number
74
+ data?: object
74
75
  }
75
76
 
76
77
  export type SessionLog = {
77
- sessionId: string
78
+ sessionId?: string
78
79
  id: string
79
- timestamp: string
80
- method: string
81
- request: {
82
- timestamp: string
83
- params: object
84
- rawBody: string
80
+ timestamp?: string
81
+ method?: string
82
+ request?: {
83
+ timestamp?: string
84
+ params?: object
85
+ rawBody?: string
85
86
  }
86
- response: {
87
- timestamp: string
88
- result: object
89
- rawBody: string
87
+ response?: {
88
+ timestamp?: string
89
+ result?: object
90
+ rawBody?: string
90
91
  }
91
- pageId: string
92
+ pageId?: string
92
93
  }
93
94
 
94
95
  export type DebugConnectionURLs = {
95
- debuggerFullscreenUrl: string
96
- debuggerUrl: string
97
- wsUrl: string
96
+ debuggerFullscreenUrl?: string
97
+ debuggerUrl?: string
98
+ wsUrl?: string
98
99
  }
99
100
 
100
101
  export default class Browserbase {