@onkernel/sdk 0.22.0 → 0.24.0

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +15 -19
  3. package/client.d.mts +8 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agents/agents.d.mts +10 -0
  13. package/resources/agents/agents.d.mts.map +1 -0
  14. package/resources/agents/agents.d.ts +10 -0
  15. package/resources/agents/agents.d.ts.map +1 -0
  16. package/resources/agents/agents.js +17 -0
  17. package/resources/agents/agents.js.map +1 -0
  18. package/resources/agents/agents.mjs +12 -0
  19. package/resources/agents/agents.mjs.map +1 -0
  20. package/resources/agents/auth/auth.d.mts +392 -0
  21. package/resources/agents/auth/auth.d.mts.map +1 -0
  22. package/resources/agents/auth/auth.d.ts +392 -0
  23. package/resources/agents/auth/auth.d.ts.map +1 -0
  24. package/resources/agents/auth/auth.js +97 -0
  25. package/resources/agents/auth/auth.js.map +1 -0
  26. package/resources/agents/auth/auth.mjs +92 -0
  27. package/resources/agents/auth/auth.mjs.map +1 -0
  28. package/resources/agents/auth/index.d.mts +3 -0
  29. package/resources/agents/auth/index.d.mts.map +1 -0
  30. package/resources/agents/auth/index.d.ts +3 -0
  31. package/resources/agents/auth/index.d.ts.map +1 -0
  32. package/resources/agents/auth/index.js +9 -0
  33. package/resources/agents/auth/index.js.map +1 -0
  34. package/resources/agents/auth/index.mjs +4 -0
  35. package/resources/agents/auth/index.mjs.map +1 -0
  36. package/resources/agents/auth/invocations.d.mts +130 -0
  37. package/resources/agents/auth/invocations.d.mts.map +1 -0
  38. package/resources/agents/auth/invocations.d.ts +130 -0
  39. package/resources/agents/auth/invocations.d.ts.map +1 -0
  40. package/resources/agents/auth/invocations.js +94 -0
  41. package/resources/agents/auth/invocations.js.map +1 -0
  42. package/resources/agents/auth/invocations.mjs +90 -0
  43. package/resources/agents/auth/invocations.mjs.map +1 -0
  44. package/resources/agents/auth.d.mts +2 -0
  45. package/resources/agents/auth.d.mts.map +1 -0
  46. package/resources/agents/auth.d.ts +2 -0
  47. package/resources/agents/auth.d.ts.map +1 -0
  48. package/resources/agents/auth.js +6 -0
  49. package/resources/agents/auth.js.map +1 -0
  50. package/resources/agents/auth.mjs +3 -0
  51. package/resources/agents/auth.mjs.map +1 -0
  52. package/resources/agents/index.d.mts +3 -0
  53. package/resources/agents/index.d.mts.map +1 -0
  54. package/resources/agents/index.d.ts +3 -0
  55. package/resources/agents/index.d.ts.map +1 -0
  56. package/resources/agents/index.js +9 -0
  57. package/resources/agents/index.js.map +1 -0
  58. package/resources/agents/index.mjs +4 -0
  59. package/resources/agents/index.mjs.map +1 -0
  60. package/resources/agents.d.mts +2 -0
  61. package/resources/agents.d.mts.map +1 -0
  62. package/resources/agents.d.ts +2 -0
  63. package/resources/agents.d.ts.map +1 -0
  64. package/resources/agents.js +6 -0
  65. package/resources/agents.js.map +1 -0
  66. package/resources/agents.mjs +3 -0
  67. package/resources/agents.mjs.map +1 -0
  68. package/resources/browser-pools.d.mts +81 -115
  69. package/resources/browser-pools.d.mts.map +1 -1
  70. package/resources/browser-pools.d.ts +81 -115
  71. package/resources/browser-pools.d.ts.map +1 -1
  72. package/resources/browsers/browsers.d.mts +38 -38
  73. package/resources/browsers/browsers.d.mts.map +1 -1
  74. package/resources/browsers/browsers.d.ts +38 -38
  75. package/resources/browsers/browsers.d.ts.map +1 -1
  76. package/resources/browsers/browsers.js +3 -7
  77. package/resources/browsers/browsers.js.map +1 -1
  78. package/resources/browsers/browsers.mjs +3 -7
  79. package/resources/browsers/browsers.mjs.map +1 -1
  80. package/resources/credentials.d.mts +163 -0
  81. package/resources/credentials.d.mts.map +1 -0
  82. package/resources/credentials.d.ts +163 -0
  83. package/resources/credentials.d.ts.map +1 -0
  84. package/resources/credentials.js +82 -0
  85. package/resources/credentials.js.map +1 -0
  86. package/resources/credentials.mjs +78 -0
  87. package/resources/credentials.mjs.map +1 -0
  88. package/resources/index.d.mts +3 -1
  89. package/resources/index.d.mts.map +1 -1
  90. package/resources/index.d.ts +3 -1
  91. package/resources/index.d.ts.map +1 -1
  92. package/resources/index.js +5 -1
  93. package/resources/index.js.map +1 -1
  94. package/resources/index.mjs +2 -0
  95. package/resources/index.mjs.map +1 -1
  96. package/resources/shared.d.mts +5 -5
  97. package/resources/shared.d.ts +5 -5
  98. package/src/client.ts +28 -8
  99. package/src/resources/agents/agents.ts +43 -0
  100. package/src/resources/agents/auth/auth.ts +509 -0
  101. package/src/resources/agents/auth/index.ts +25 -0
  102. package/src/resources/agents/auth/invocations.ts +174 -0
  103. package/src/resources/agents/auth.ts +3 -0
  104. package/src/resources/agents/index.ts +18 -0
  105. package/src/resources/agents.ts +3 -0
  106. package/src/resources/browser-pools.ts +90 -132
  107. package/src/resources/browsers/browsers.ts +38 -38
  108. package/src/resources/credentials.ts +205 -0
  109. package/src/resources/index.ts +11 -4
  110. package/src/resources/shared.ts +5 -5
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
@@ -111,7 +111,7 @@ export interface BrowserPool {
111
111
  /**
112
112
  * Configuration used to create all browsers in this pool
113
113
  */
114
- browser_pool_config: BrowserPoolRequest;
114
+ browser_pool_config: BrowserPool.BrowserPoolConfig;
115
115
  /**
116
116
  * Timestamp when the browser pool was created
117
117
  */
@@ -121,104 +121,69 @@ export interface BrowserPool {
121
121
  */
122
122
  name?: string;
123
123
  }
124
- /**
125
- * Request body for acquiring a browser from the pool.
126
- */
127
- export interface BrowserPoolAcquireRequest {
128
- /**
129
- * Maximum number of seconds to wait for a browser to be available. Defaults to the
130
- * calculated time it would take to fill the pool at the currently configured fill
131
- * rate.
132
- */
133
- acquire_timeout_seconds?: number;
134
- }
135
- /**
136
- * Request body for releasing a browser back to the pool.
137
- */
138
- export interface BrowserPoolReleaseRequest {
124
+ export declare namespace BrowserPool {
139
125
  /**
140
- * Browser session ID to release back to the pool
141
- */
142
- session_id: string;
143
- /**
144
- * Whether to reuse the browser instance or destroy it and create a new one.
145
- * Defaults to true.
146
- */
147
- reuse?: boolean;
148
- }
149
- /**
150
- * Parameters for creating a browser pool. All browsers in the pool will be created
151
- * with the same configuration.
152
- */
153
- export interface BrowserPoolRequest {
154
- /**
155
- * Number of browsers to create in the pool
156
- */
157
- size: number;
158
- /**
159
- * List of browser extensions to load into the session. Provide each by id or name.
160
- */
161
- extensions?: Array<Shared.BrowserExtension>;
162
- /**
163
- * Percentage of the pool to fill per minute. Defaults to 10%.
164
- */
165
- fill_rate_per_minute?: number;
166
- /**
167
- * If true, launches the browser using a headless image. Defaults to false.
168
- */
169
- headless?: boolean;
170
- /**
171
- * If true, launches the browser in kiosk mode to hide address bar and tabs in live
172
- * view.
173
- */
174
- kiosk_mode?: boolean;
175
- /**
176
- * Optional name for the browser pool. Must be unique within the organization.
177
- */
178
- name?: string;
179
- /**
180
- * Profile selection for the browser session. Provide either id or name. If
181
- * specified, the matching profile will be loaded into the browser session.
182
- * Profiles must be created beforehand.
183
- */
184
- profile?: Shared.BrowserProfile;
185
- /**
186
- * Optional proxy to associate to the browser session. Must reference a proxy
187
- * belonging to the caller's org.
188
- */
189
- proxy_id?: string;
190
- /**
191
- * If true, launches the browser in stealth mode to reduce detection by anti-bot
192
- * mechanisms.
193
- */
194
- stealth?: boolean;
195
- /**
196
- * Default idle timeout in seconds for browsers acquired from this pool before they
197
- * are destroyed. Defaults to 600 seconds if not specified
198
- */
199
- timeout_seconds?: number;
200
- /**
201
- * Initial browser window size in pixels with optional refresh rate. If omitted,
202
- * image defaults apply (commonly 1024x768@60). Only specific viewport
203
- * configurations are supported. The server will reject unsupported combinations.
204
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
205
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
206
- * be automatically determined from the width and height if they match a supported
207
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
208
- * live view browser
209
- */
210
- viewport?: Shared.BrowserViewport;
211
- }
212
- /**
213
- * Parameters for updating a browser pool. All browsers in the pool will be created
214
- * with the same configuration.
215
- */
216
- export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
217
- /**
218
- * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
219
- * to true.
126
+ * Configuration used to create all browsers in this pool
220
127
  */
221
- discard_all_idle?: boolean;
128
+ interface BrowserPoolConfig {
129
+ /**
130
+ * Number of browsers to create in the pool
131
+ */
132
+ size: number;
133
+ /**
134
+ * List of browser extensions to load into the session. Provide each by id or name.
135
+ */
136
+ extensions?: Array<Shared.BrowserExtension>;
137
+ /**
138
+ * Percentage of the pool to fill per minute. Defaults to 10%.
139
+ */
140
+ fill_rate_per_minute?: number;
141
+ /**
142
+ * If true, launches the browser using a headless image. Defaults to false.
143
+ */
144
+ headless?: boolean;
145
+ /**
146
+ * If true, launches the browser in kiosk mode to hide address bar and tabs in live
147
+ * view.
148
+ */
149
+ kiosk_mode?: boolean;
150
+ /**
151
+ * Optional name for the browser pool. Must be unique within the organization.
152
+ */
153
+ name?: string;
154
+ /**
155
+ * Profile selection for the browser session. Provide either id or name. If
156
+ * specified, the matching profile will be loaded into the browser session.
157
+ * Profiles must be created beforehand.
158
+ */
159
+ profile?: Shared.BrowserProfile;
160
+ /**
161
+ * Optional proxy to associate to the browser session. Must reference a proxy
162
+ * belonging to the caller's org.
163
+ */
164
+ proxy_id?: string;
165
+ /**
166
+ * If true, launches the browser in stealth mode to reduce detection by anti-bot
167
+ * mechanisms.
168
+ */
169
+ stealth?: boolean;
170
+ /**
171
+ * Default idle timeout in seconds for browsers acquired from this pool before they
172
+ * are destroyed. Defaults to 600 seconds if not specified
173
+ */
174
+ timeout_seconds?: number;
175
+ /**
176
+ * Initial browser window size in pixels with optional refresh rate. If omitted,
177
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
178
+ * supported. The server will reject unsupported combinations. Supported
179
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
180
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
181
+ * automatically determined from the width and height if they match a supported
182
+ * configuration exactly. Note: Higher resolutions may affect the responsiveness of
183
+ * live view browser
184
+ */
185
+ viewport?: Shared.BrowserViewport;
186
+ }
222
187
  }
223
188
  export type BrowserPoolListResponse = Array<BrowserPool>;
224
189
  export interface BrowserPoolAcquireResponse {
@@ -260,7 +225,8 @@ export interface BrowserPoolAcquireResponse {
260
225
  */
261
226
  kiosk_mode?: boolean;
262
227
  /**
263
- * Optional persistence configuration for the browser session.
228
+ * @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
229
+ * instead.
264
230
  */
265
231
  persistence?: BrowsersAPI.BrowserPersistence;
266
232
  /**
@@ -273,11 +239,11 @@ export interface BrowserPoolAcquireResponse {
273
239
  proxy_id?: string;
274
240
  /**
275
241
  * Initial browser window size in pixels with optional refresh rate. If omitted,
276
- * image defaults apply (commonly 1024x768@60). Only specific viewport
277
- * configurations are supported. The server will reject unsupported combinations.
278
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
279
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
280
- * be automatically determined from the width and height if they match a supported
242
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
243
+ * supported. The server will reject unsupported combinations. Supported
244
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
245
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
246
+ * automatically determined from the width and height if they match a supported
281
247
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
282
248
  * live view browser
283
249
  */
@@ -332,11 +298,11 @@ export interface BrowserPoolCreateParams {
332
298
  timeout_seconds?: number;
333
299
  /**
334
300
  * Initial browser window size in pixels with optional refresh rate. If omitted,
335
- * image defaults apply (commonly 1024x768@60). Only specific viewport
336
- * configurations are supported. The server will reject unsupported combinations.
337
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
338
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
339
- * be automatically determined from the width and height if they match a supported
301
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
302
+ * supported. The server will reject unsupported combinations. Supported
303
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
304
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
305
+ * automatically determined from the width and height if they match a supported
340
306
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
341
307
  * live view browser
342
308
  */
@@ -349,7 +315,7 @@ export interface BrowserPoolUpdateParams {
349
315
  size: number;
350
316
  /**
351
317
  * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
352
- * to true.
318
+ * to false.
353
319
  */
354
320
  discard_all_idle?: boolean;
355
321
  /**
@@ -396,11 +362,11 @@ export interface BrowserPoolUpdateParams {
396
362
  timeout_seconds?: number;
397
363
  /**
398
364
  * Initial browser window size in pixels with optional refresh rate. If omitted,
399
- * image defaults apply (commonly 1024x768@60). Only specific viewport
400
- * configurations are supported. The server will reject unsupported combinations.
401
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
402
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
403
- * be automatically determined from the width and height if they match a supported
365
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
366
+ * supported. The server will reject unsupported combinations. Supported
367
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
368
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
369
+ * automatically determined from the width and height if they match a supported
404
370
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
405
371
  * live view browser
406
372
  */
@@ -433,6 +399,6 @@ export interface BrowserPoolReleaseParams {
433
399
  reuse?: boolean;
434
400
  }
435
401
  export declare namespace BrowserPools {
436
- export { type BrowserPool as BrowserPool, type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest, type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest, type BrowserPoolRequest as BrowserPoolRequest, type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
402
+ export { type BrowserPool as BrowserPool, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
437
403
  }
438
404
  //# sourceMappingURL=browser-pools.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-pools.d.mts","sourceRoot":"","sources":["../src/resources/browser-pools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,MA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,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -111,7 +111,7 @@ export interface BrowserPool {
111
111
  /**
112
112
  * Configuration used to create all browsers in this pool
113
113
  */
114
- browser_pool_config: BrowserPoolRequest;
114
+ browser_pool_config: BrowserPool.BrowserPoolConfig;
115
115
  /**
116
116
  * Timestamp when the browser pool was created
117
117
  */
@@ -121,104 +121,69 @@ export interface BrowserPool {
121
121
  */
122
122
  name?: string;
123
123
  }
124
- /**
125
- * Request body for acquiring a browser from the pool.
126
- */
127
- export interface BrowserPoolAcquireRequest {
128
- /**
129
- * Maximum number of seconds to wait for a browser to be available. Defaults to the
130
- * calculated time it would take to fill the pool at the currently configured fill
131
- * rate.
132
- */
133
- acquire_timeout_seconds?: number;
134
- }
135
- /**
136
- * Request body for releasing a browser back to the pool.
137
- */
138
- export interface BrowserPoolReleaseRequest {
124
+ export declare namespace BrowserPool {
139
125
  /**
140
- * Browser session ID to release back to the pool
141
- */
142
- session_id: string;
143
- /**
144
- * Whether to reuse the browser instance or destroy it and create a new one.
145
- * Defaults to true.
146
- */
147
- reuse?: boolean;
148
- }
149
- /**
150
- * Parameters for creating a browser pool. All browsers in the pool will be created
151
- * with the same configuration.
152
- */
153
- export interface BrowserPoolRequest {
154
- /**
155
- * Number of browsers to create in the pool
156
- */
157
- size: number;
158
- /**
159
- * List of browser extensions to load into the session. Provide each by id or name.
160
- */
161
- extensions?: Array<Shared.BrowserExtension>;
162
- /**
163
- * Percentage of the pool to fill per minute. Defaults to 10%.
164
- */
165
- fill_rate_per_minute?: number;
166
- /**
167
- * If true, launches the browser using a headless image. Defaults to false.
168
- */
169
- headless?: boolean;
170
- /**
171
- * If true, launches the browser in kiosk mode to hide address bar and tabs in live
172
- * view.
173
- */
174
- kiosk_mode?: boolean;
175
- /**
176
- * Optional name for the browser pool. Must be unique within the organization.
177
- */
178
- name?: string;
179
- /**
180
- * Profile selection for the browser session. Provide either id or name. If
181
- * specified, the matching profile will be loaded into the browser session.
182
- * Profiles must be created beforehand.
183
- */
184
- profile?: Shared.BrowserProfile;
185
- /**
186
- * Optional proxy to associate to the browser session. Must reference a proxy
187
- * belonging to the caller's org.
188
- */
189
- proxy_id?: string;
190
- /**
191
- * If true, launches the browser in stealth mode to reduce detection by anti-bot
192
- * mechanisms.
193
- */
194
- stealth?: boolean;
195
- /**
196
- * Default idle timeout in seconds for browsers acquired from this pool before they
197
- * are destroyed. Defaults to 600 seconds if not specified
198
- */
199
- timeout_seconds?: number;
200
- /**
201
- * Initial browser window size in pixels with optional refresh rate. If omitted,
202
- * image defaults apply (commonly 1024x768@60). Only specific viewport
203
- * configurations are supported. The server will reject unsupported combinations.
204
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
205
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
206
- * be automatically determined from the width and height if they match a supported
207
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
208
- * live view browser
209
- */
210
- viewport?: Shared.BrowserViewport;
211
- }
212
- /**
213
- * Parameters for updating a browser pool. All browsers in the pool will be created
214
- * with the same configuration.
215
- */
216
- export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
217
- /**
218
- * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
219
- * to true.
126
+ * Configuration used to create all browsers in this pool
220
127
  */
221
- discard_all_idle?: boolean;
128
+ interface BrowserPoolConfig {
129
+ /**
130
+ * Number of browsers to create in the pool
131
+ */
132
+ size: number;
133
+ /**
134
+ * List of browser extensions to load into the session. Provide each by id or name.
135
+ */
136
+ extensions?: Array<Shared.BrowserExtension>;
137
+ /**
138
+ * Percentage of the pool to fill per minute. Defaults to 10%.
139
+ */
140
+ fill_rate_per_minute?: number;
141
+ /**
142
+ * If true, launches the browser using a headless image. Defaults to false.
143
+ */
144
+ headless?: boolean;
145
+ /**
146
+ * If true, launches the browser in kiosk mode to hide address bar and tabs in live
147
+ * view.
148
+ */
149
+ kiosk_mode?: boolean;
150
+ /**
151
+ * Optional name for the browser pool. Must be unique within the organization.
152
+ */
153
+ name?: string;
154
+ /**
155
+ * Profile selection for the browser session. Provide either id or name. If
156
+ * specified, the matching profile will be loaded into the browser session.
157
+ * Profiles must be created beforehand.
158
+ */
159
+ profile?: Shared.BrowserProfile;
160
+ /**
161
+ * Optional proxy to associate to the browser session. Must reference a proxy
162
+ * belonging to the caller's org.
163
+ */
164
+ proxy_id?: string;
165
+ /**
166
+ * If true, launches the browser in stealth mode to reduce detection by anti-bot
167
+ * mechanisms.
168
+ */
169
+ stealth?: boolean;
170
+ /**
171
+ * Default idle timeout in seconds for browsers acquired from this pool before they
172
+ * are destroyed. Defaults to 600 seconds if not specified
173
+ */
174
+ timeout_seconds?: number;
175
+ /**
176
+ * Initial browser window size in pixels with optional refresh rate. If omitted,
177
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
178
+ * supported. The server will reject unsupported combinations. Supported
179
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
180
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
181
+ * automatically determined from the width and height if they match a supported
182
+ * configuration exactly. Note: Higher resolutions may affect the responsiveness of
183
+ * live view browser
184
+ */
185
+ viewport?: Shared.BrowserViewport;
186
+ }
222
187
  }
223
188
  export type BrowserPoolListResponse = Array<BrowserPool>;
224
189
  export interface BrowserPoolAcquireResponse {
@@ -260,7 +225,8 @@ export interface BrowserPoolAcquireResponse {
260
225
  */
261
226
  kiosk_mode?: boolean;
262
227
  /**
263
- * Optional persistence configuration for the browser session.
228
+ * @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
229
+ * instead.
264
230
  */
265
231
  persistence?: BrowsersAPI.BrowserPersistence;
266
232
  /**
@@ -273,11 +239,11 @@ export interface BrowserPoolAcquireResponse {
273
239
  proxy_id?: string;
274
240
  /**
275
241
  * Initial browser window size in pixels with optional refresh rate. If omitted,
276
- * image defaults apply (commonly 1024x768@60). Only specific viewport
277
- * configurations are supported. The server will reject unsupported combinations.
278
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
279
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
280
- * be automatically determined from the width and height if they match a supported
242
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
243
+ * supported. The server will reject unsupported combinations. Supported
244
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
245
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
246
+ * automatically determined from the width and height if they match a supported
281
247
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
282
248
  * live view browser
283
249
  */
@@ -332,11 +298,11 @@ export interface BrowserPoolCreateParams {
332
298
  timeout_seconds?: number;
333
299
  /**
334
300
  * Initial browser window size in pixels with optional refresh rate. If omitted,
335
- * image defaults apply (commonly 1024x768@60). Only specific viewport
336
- * configurations are supported. The server will reject unsupported combinations.
337
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
338
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
339
- * be automatically determined from the width and height if they match a supported
301
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
302
+ * supported. The server will reject unsupported combinations. Supported
303
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
304
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
305
+ * automatically determined from the width and height if they match a supported
340
306
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
341
307
  * live view browser
342
308
  */
@@ -349,7 +315,7 @@ export interface BrowserPoolUpdateParams {
349
315
  size: number;
350
316
  /**
351
317
  * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
352
- * to true.
318
+ * to false.
353
319
  */
354
320
  discard_all_idle?: boolean;
355
321
  /**
@@ -396,11 +362,11 @@ export interface BrowserPoolUpdateParams {
396
362
  timeout_seconds?: number;
397
363
  /**
398
364
  * Initial browser window size in pixels with optional refresh rate. If omitted,
399
- * image defaults apply (commonly 1024x768@60). Only specific viewport
400
- * configurations are supported. The server will reject unsupported combinations.
401
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
402
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
403
- * be automatically determined from the width and height if they match a supported
365
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
366
+ * supported. The server will reject unsupported combinations. Supported
367
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
368
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
369
+ * automatically determined from the width and height if they match a supported
404
370
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
405
371
  * live view browser
406
372
  */
@@ -433,6 +399,6 @@ export interface BrowserPoolReleaseParams {
433
399
  reuse?: boolean;
434
400
  }
435
401
  export declare namespace BrowserPools {
436
- export { type BrowserPool as BrowserPool, type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest, type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest, type BrowserPoolRequest as BrowserPoolRequest, type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
402
+ export { type BrowserPool as BrowserPool, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
437
403
  }
438
404
  //# sourceMappingURL=browser-pools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-pools.d.ts","sourceRoot":"","sources":["../src/resources/browser-pools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI7E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI1G;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;OAOG;I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