@@ -146,6 +146,36 @@ export interface BrowserPersistence {
146146 id : string ;
147147}
148148
149+ /**
150+ * Browser profile metadata.
151+ */
152+ export interface Profile {
153+ /**
154+ * Unique identifier for the profile
155+ */
156+ id : string ;
157+
158+ /**
159+ * Timestamp when the profile was created
160+ */
161+ created_at : string ;
162+
163+ /**
164+ * Timestamp when the profile was last used
165+ */
166+ last_used_at ?: string ;
167+
168+ /**
169+ * Optional, easier-to-reference name for the profile
170+ */
171+ name ?: string | null ;
172+
173+ /**
174+ * Timestamp when the profile was last updated
175+ */
176+ updated_at ?: string ;
177+ }
178+
149179export interface BrowserCreateResponse {
150180 /**
151181 * Websocket URL for Chrome DevTools Protocol connections to the browser session
@@ -187,6 +217,11 @@ export interface BrowserCreateResponse {
187217 * Optional persistence configuration for the browser session.
188218 */
189219 persistence ?: BrowserPersistence ;
220+
221+ /**
222+ * Browser profile metadata.
223+ */
224+ profile ?: Profile ;
190225}
191226
192227export interface BrowserRetrieveResponse {
@@ -230,6 +265,11 @@ export interface BrowserRetrieveResponse {
230265 * Optional persistence configuration for the browser session.
231266 */
232267 persistence ?: BrowserPersistence ;
268+
269+ /**
270+ * Browser profile metadata.
271+ */
272+ profile ?: Profile ;
233273}
234274
235275export type BrowserListResponse = Array < BrowserListResponse . BrowserListResponseItem > ;
@@ -276,6 +316,11 @@ export namespace BrowserListResponse {
276316 * Optional persistence configuration for the browser session.
277317 */
278318 persistence ?: BrowsersAPI . BrowserPersistence ;
319+
320+ /**
321+ * Browser profile metadata.
322+ */
323+ profile ?: BrowsersAPI . Profile ;
279324 }
280325}
281326
@@ -296,6 +341,13 @@ export interface BrowserCreateParams {
296341 */
297342 persistence ?: BrowserPersistence ;
298343
344+ /**
345+ * Profile selection for the browser session. Provide either id or name. If
346+ * specified, the matching profile will be loaded into the browser session.
347+ * Profiles must be created beforehand.
348+ */
349+ profile ?: BrowserCreateParams . Profile ;
350+
299351 /**
300352 * If true, launches the browser in stealth mode to reduce detection by anti-bot
301353 * mechanisms.
@@ -310,6 +362,32 @@ export interface BrowserCreateParams {
310362 timeout_seconds ?: number ;
311363}
312364
365+ export namespace BrowserCreateParams {
366+ /**
367+ * Profile selection for the browser session. Provide either id or name. If
368+ * specified, the matching profile will be loaded into the browser session.
369+ * Profiles must be created beforehand.
370+ */
371+ export interface Profile {
372+ /**
373+ * Profile ID to load for this browser session
374+ */
375+ id ?: string ;
376+
377+ /**
378+ * Profile name to load for this browser session (instead of id). Must be 1-255
379+ * characters, using letters, numbers, dots, underscores, or hyphens.
380+ */
381+ name ?: string ;
382+
383+ /**
384+ * If true, save changes made during the session back to the profile when the
385+ * session ends.
386+ */
387+ save_changes ?: boolean ;
388+ }
389+ }
390+
313391export interface BrowserDeleteParams {
314392 /**
315393 * Persistent browser identifier
@@ -325,6 +403,7 @@ Browsers.Logs = Logs;
325403export declare namespace Browsers {
326404 export {
327405 type BrowserPersistence as BrowserPersistence ,
406+ type Profile as Profile ,
328407 type BrowserCreateResponse as BrowserCreateResponse ,
329408 type BrowserRetrieveResponse as BrowserRetrieveResponse ,
330409 type BrowserListResponse as BrowserListResponse ,
0 commit comments