@onkernel/sdk 0.39.0 → 0.41.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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +8 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +8 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +55 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +55 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +8 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +8 -0
- package/resources/invocations.d.ts.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/browser-pools.ts +10 -0
- package/src/resources/browsers/browsers.ts +67 -0
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/invocations.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -222,6 +222,31 @@ export interface BrowserPersistence {
|
|
|
222
222
|
id: string;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Browser pool this session was acquired from, if any.
|
|
227
|
+
*/
|
|
228
|
+
export interface BrowserPoolRef {
|
|
229
|
+
/**
|
|
230
|
+
* Browser pool ID
|
|
231
|
+
*/
|
|
232
|
+
id: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Browser pool name, if set
|
|
236
|
+
*/
|
|
237
|
+
name?: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Session usage metrics.
|
|
242
|
+
*/
|
|
243
|
+
export interface BrowserUsage {
|
|
244
|
+
/**
|
|
245
|
+
* Time in milliseconds the session was actively running.
|
|
246
|
+
*/
|
|
247
|
+
uptime_ms: number;
|
|
248
|
+
}
|
|
249
|
+
|
|
225
250
|
/**
|
|
226
251
|
* Browser profile metadata.
|
|
227
252
|
*/
|
|
@@ -310,6 +335,11 @@ export interface BrowserCreateResponse {
|
|
|
310
335
|
*/
|
|
311
336
|
persistence?: BrowserPersistence;
|
|
312
337
|
|
|
338
|
+
/**
|
|
339
|
+
* Browser pool this session was acquired from, if any.
|
|
340
|
+
*/
|
|
341
|
+
pool?: BrowserPoolRef;
|
|
342
|
+
|
|
313
343
|
/**
|
|
314
344
|
* Browser profile metadata.
|
|
315
345
|
*/
|
|
@@ -320,6 +350,11 @@ export interface BrowserCreateResponse {
|
|
|
320
350
|
*/
|
|
321
351
|
proxy_id?: string;
|
|
322
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Session usage metrics.
|
|
355
|
+
*/
|
|
356
|
+
usage?: BrowserUsage;
|
|
357
|
+
|
|
323
358
|
/**
|
|
324
359
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
325
360
|
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
@@ -391,6 +426,11 @@ export interface BrowserRetrieveResponse {
|
|
|
391
426
|
*/
|
|
392
427
|
persistence?: BrowserPersistence;
|
|
393
428
|
|
|
429
|
+
/**
|
|
430
|
+
* Browser pool this session was acquired from, if any.
|
|
431
|
+
*/
|
|
432
|
+
pool?: BrowserPoolRef;
|
|
433
|
+
|
|
394
434
|
/**
|
|
395
435
|
* Browser profile metadata.
|
|
396
436
|
*/
|
|
@@ -401,6 +441,11 @@ export interface BrowserRetrieveResponse {
|
|
|
401
441
|
*/
|
|
402
442
|
proxy_id?: string;
|
|
403
443
|
|
|
444
|
+
/**
|
|
445
|
+
* Session usage metrics.
|
|
446
|
+
*/
|
|
447
|
+
usage?: BrowserUsage;
|
|
448
|
+
|
|
404
449
|
/**
|
|
405
450
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
406
451
|
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
@@ -472,6 +517,11 @@ export interface BrowserUpdateResponse {
|
|
|
472
517
|
*/
|
|
473
518
|
persistence?: BrowserPersistence;
|
|
474
519
|
|
|
520
|
+
/**
|
|
521
|
+
* Browser pool this session was acquired from, if any.
|
|
522
|
+
*/
|
|
523
|
+
pool?: BrowserPoolRef;
|
|
524
|
+
|
|
475
525
|
/**
|
|
476
526
|
* Browser profile metadata.
|
|
477
527
|
*/
|
|
@@ -482,6 +532,11 @@ export interface BrowserUpdateResponse {
|
|
|
482
532
|
*/
|
|
483
533
|
proxy_id?: string;
|
|
484
534
|
|
|
535
|
+
/**
|
|
536
|
+
* Session usage metrics.
|
|
537
|
+
*/
|
|
538
|
+
usage?: BrowserUsage;
|
|
539
|
+
|
|
485
540
|
/**
|
|
486
541
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
487
542
|
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
@@ -553,6 +608,11 @@ export interface BrowserListResponse {
|
|
|
553
608
|
*/
|
|
554
609
|
persistence?: BrowserPersistence;
|
|
555
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Browser pool this session was acquired from, if any.
|
|
613
|
+
*/
|
|
614
|
+
pool?: BrowserPoolRef;
|
|
615
|
+
|
|
556
616
|
/**
|
|
557
617
|
* Browser profile metadata.
|
|
558
618
|
*/
|
|
@@ -563,6 +623,11 @@ export interface BrowserListResponse {
|
|
|
563
623
|
*/
|
|
564
624
|
proxy_id?: string;
|
|
565
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Session usage metrics.
|
|
628
|
+
*/
|
|
629
|
+
usage?: BrowserUsage;
|
|
630
|
+
|
|
566
631
|
/**
|
|
567
632
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
568
633
|
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
@@ -736,6 +801,8 @@ Browsers.Playwright = Playwright;
|
|
|
736
801
|
export declare namespace Browsers {
|
|
737
802
|
export {
|
|
738
803
|
type BrowserPersistence as BrowserPersistence,
|
|
804
|
+
type BrowserPoolRef as BrowserPoolRef,
|
|
805
|
+
type BrowserUsage as BrowserUsage,
|
|
739
806
|
type Profile as Profile,
|
|
740
807
|
type BrowserCreateResponse as BrowserCreateResponse,
|
|
741
808
|
type BrowserRetrieveResponse as BrowserRetrieveResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -472,6 +472,11 @@ export namespace InvocationListBrowsersResponse {
|
|
|
472
472
|
*/
|
|
473
473
|
persistence?: BrowsersAPI.BrowserPersistence;
|
|
474
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Browser pool this session was acquired from, if any.
|
|
477
|
+
*/
|
|
478
|
+
pool?: BrowsersAPI.BrowserPoolRef;
|
|
479
|
+
|
|
475
480
|
/**
|
|
476
481
|
* Browser profile metadata.
|
|
477
482
|
*/
|
|
@@ -482,6 +487,11 @@ export namespace InvocationListBrowsersResponse {
|
|
|
482
487
|
*/
|
|
483
488
|
proxy_id?: string;
|
|
484
489
|
|
|
490
|
+
/**
|
|
491
|
+
* Session usage metrics.
|
|
492
|
+
*/
|
|
493
|
+
usage?: BrowsersAPI.BrowserUsage;
|
|
494
|
+
|
|
485
495
|
/**
|
|
486
496
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
487
497
|
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.41.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.41.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.41.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.41.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|