@onkernel/sdk 0.122.0 → 0.123.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 +10 -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 +20 -10
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +20 -10
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +37 -6
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +37 -6
- 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/browsers/telemetry.d.mts +14 -1
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +14 -1
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/browsers/telemetry.js +4 -1
- package/resources/browsers/telemetry.js.map +1 -1
- package/resources/browsers/telemetry.mjs +4 -1
- package/resources/browsers/telemetry.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 +4 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +4 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/vaults/items.d.mts +16 -13
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +16 -13
- package/resources/vaults/items.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/browser-pools.ts +21 -10
- package/src/resources/browsers/browsers.ts +43 -5
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/browsers/telemetry.ts +15 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/invocations.ts +5 -0
- package/src/resources/vaults/items.ts +16 -13
- 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
|
@@ -517,6 +517,11 @@ export interface BrowserPoolAcquireResponse {
|
|
|
517
517
|
*/
|
|
518
518
|
vaults?: Array<BrowsersAPI.VaultReference>;
|
|
519
519
|
|
|
520
|
+
/**
|
|
521
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
522
|
+
*/
|
|
523
|
+
video_memory?: BrowsersAPI.BrowserVideoMemory;
|
|
524
|
+
|
|
520
525
|
/**
|
|
521
526
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
522
527
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -585,9 +590,9 @@ export interface BrowserPoolCreateParams {
|
|
|
585
590
|
name?: string;
|
|
586
591
|
|
|
587
592
|
/**
|
|
588
|
-
* Network configuration applied to browsers in this pool.
|
|
589
|
-
* proxy-v3; the pool will not provision browsers through
|
|
590
|
-
* unavailable.
|
|
593
|
+
* Network configuration applied to browsers in this pool. Egress allowlists and
|
|
594
|
+
* proxy routes require proxy-v3; the pool will not provision browsers through
|
|
595
|
+
* Envoy if proxy-v3 is unavailable.
|
|
591
596
|
*/
|
|
592
597
|
network?: BrowsersAPI.BrowserNetworkConfig;
|
|
593
598
|
|
|
@@ -814,9 +819,11 @@ export interface BrowserPoolUpdateParams {
|
|
|
814
819
|
* Whether to discard all idle browsers and rebuild them immediately with the new
|
|
815
820
|
* configuration. Defaults to false. Only browsers that are idle when the update
|
|
816
821
|
* runs are rebuilt. A browser that is in use during the update keeps its original
|
|
817
|
-
* configuration,
|
|
818
|
-
*
|
|
819
|
-
* later
|
|
822
|
+
* configuration, except that its allowlist is reset to the current pool baseline
|
|
823
|
+
* on release or the browser is replaced. For other configuration fields, if it is
|
|
824
|
+
* later released with `reuse: true` it returns to the pool with that stale
|
|
825
|
+
* configuration until it is discarded (by this flag on a later update, or by
|
|
826
|
+
* flushing the pool).
|
|
820
827
|
*/
|
|
821
828
|
discard_all_idle?: boolean;
|
|
822
829
|
|
|
@@ -860,10 +867,14 @@ export interface BrowserPoolUpdateParams {
|
|
|
860
867
|
* If provided, replaces the pool's network configuration. Omit to leave the
|
|
861
868
|
* existing configuration unchanged; an empty object ({}) removes it, while
|
|
862
869
|
* network: {private_hosts: []} or network: {proxy_routes: []} sets an explicit
|
|
863
|
-
* empty list
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
* until
|
|
870
|
+
* empty list; allowed_hosts must be non-empty when supplied. Egress allowlists and
|
|
871
|
+
* proxy routes require proxy-v3; the pool will not provision browsers through
|
|
872
|
+
* Envoy if proxy-v3 is unavailable. Changing allowed_hosts automatically replaces
|
|
873
|
+
* idle browsers. Leased browsers retain their allowlist until release, when it is
|
|
874
|
+
* reset to the current pool baseline or the browser is replaced if it cannot
|
|
875
|
+
* safely receive that baseline. Stale browsers cannot be acquired. Other network
|
|
876
|
+
* fields only apply to browsers created after the update; existing browsers keep
|
|
877
|
+
* those fields until discarded (see discard_all_idle).
|
|
867
878
|
*/
|
|
868
879
|
network?: BrowsersAPI.BrowserNetworkConfig;
|
|
869
880
|
|
|
@@ -349,7 +349,7 @@ export type ProfilesOffsetPagination = OffsetPagination<Profile>;
|
|
|
349
349
|
/**
|
|
350
350
|
* Memory allocated to the browser session.
|
|
351
351
|
*/
|
|
352
|
-
export type BrowserMemory = '1GiB' | '2GiB' | '6GiB' | '8GiB' | '16GiB';
|
|
352
|
+
export type BrowserMemory = '1GiB' | '2GiB' | '6GiB' | '8GiB' | '12GiB' | '16GiB';
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Memory requested for a headful, non-GPU browser session.
|
|
@@ -380,8 +380,10 @@ export interface BrowserNetworkConfig {
|
|
|
380
380
|
* processes in the browser VM that do not use the browser's proxy, are not
|
|
381
381
|
* filtered, and Kernel's own control traffic is always allowed. Can be replaced or
|
|
382
382
|
* removed while the session runs with PATCH /browsers/{id_or_name}, but not added
|
|
383
|
-
* to a browser created without one.
|
|
384
|
-
*
|
|
383
|
+
* to a browser created without one. Supported on browser pools and their leased
|
|
384
|
+
* browsers. Per-lease changes are reset to the pool's allowlist on release. If a
|
|
385
|
+
* lessee removes the allowlist and the pool still requires one, the browser is
|
|
386
|
+
* replaced on release rather than given an allowlist again. Requires proxy v3.
|
|
385
387
|
*/
|
|
386
388
|
allowed_hosts?: Array<string>;
|
|
387
389
|
|
|
@@ -475,8 +477,10 @@ export interface BrowserNetworkUpdate {
|
|
|
475
477
|
* minutes during a Kernel deploy. Connections to destinations it still allows,
|
|
476
478
|
* such as WebSockets, stay open. A start_url in the same request must be allowed
|
|
477
479
|
* by the updated list, and is loaded only after the list takes effect. Requires a
|
|
478
|
-
* browser created with proxy v3
|
|
479
|
-
*
|
|
480
|
+
* browser created with proxy v3. Supported on leased pooled browsers; the pool's
|
|
481
|
+
* allowlist is restored before reuse, or the browser is destroyed if it cannot be
|
|
482
|
+
* safely restored. If the request fails, retry it: the new list may already apply
|
|
483
|
+
* to some requests.
|
|
480
484
|
*/
|
|
481
485
|
allowed_hosts?: Array<string> | null;
|
|
482
486
|
}
|
|
@@ -670,6 +674,12 @@ export interface BrowserUsage {
|
|
|
670
674
|
uptime_ms: number;
|
|
671
675
|
}
|
|
672
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Video memory (VRAM) of a GPU browser session. 2GiB sessions have 4 vCPU and 6GiB
|
|
679
|
+
* memory. 4GiB sessions have 8 vCPU and 12GiB memory.
|
|
680
|
+
*/
|
|
681
|
+
export type BrowserVideoMemory = '2GiB' | '4GiB';
|
|
682
|
+
|
|
673
683
|
/**
|
|
674
684
|
* Browser profile metadata.
|
|
675
685
|
*/
|
|
@@ -868,6 +878,11 @@ export interface BrowserCreateResponse {
|
|
|
868
878
|
*/
|
|
869
879
|
vaults?: Array<VaultReference>;
|
|
870
880
|
|
|
881
|
+
/**
|
|
882
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
883
|
+
*/
|
|
884
|
+
video_memory?: BrowserVideoMemory;
|
|
885
|
+
|
|
871
886
|
/**
|
|
872
887
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
873
888
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1039,6 +1054,11 @@ export interface BrowserRetrieveResponse {
|
|
|
1039
1054
|
*/
|
|
1040
1055
|
vaults?: Array<VaultReference>;
|
|
1041
1056
|
|
|
1057
|
+
/**
|
|
1058
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
1059
|
+
*/
|
|
1060
|
+
video_memory?: BrowserVideoMemory;
|
|
1061
|
+
|
|
1042
1062
|
/**
|
|
1043
1063
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1044
1064
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1210,6 +1230,11 @@ export interface BrowserUpdateResponse {
|
|
|
1210
1230
|
*/
|
|
1211
1231
|
vaults?: Array<VaultReference>;
|
|
1212
1232
|
|
|
1233
|
+
/**
|
|
1234
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
1235
|
+
*/
|
|
1236
|
+
video_memory?: BrowserVideoMemory;
|
|
1237
|
+
|
|
1213
1238
|
/**
|
|
1214
1239
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1215
1240
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1381,6 +1406,11 @@ export interface BrowserListResponse {
|
|
|
1381
1406
|
*/
|
|
1382
1407
|
vaults?: Array<VaultReference>;
|
|
1383
1408
|
|
|
1409
|
+
/**
|
|
1410
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
1411
|
+
*/
|
|
1412
|
+
video_memory?: BrowserVideoMemory;
|
|
1413
|
+
|
|
1384
1414
|
/**
|
|
1385
1415
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1386
1416
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1556,6 +1586,13 @@ export interface BrowserCreateParams {
|
|
|
1556
1586
|
*/
|
|
1557
1587
|
vaults?: Array<VaultReference>;
|
|
1558
1588
|
|
|
1589
|
+
/**
|
|
1590
|
+
* Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
|
|
1591
|
+
* 2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
|
|
1592
|
+
* memory.
|
|
1593
|
+
*/
|
|
1594
|
+
video_memory?: BrowserVideoMemory;
|
|
1595
|
+
|
|
1559
1596
|
/**
|
|
1560
1597
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1561
1598
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -2016,6 +2053,7 @@ export declare namespace Browsers {
|
|
|
2016
2053
|
type BrowserReplResult as BrowserReplResult,
|
|
2017
2054
|
type BrowserReplTextContent as BrowserReplTextContent,
|
|
2018
2055
|
type BrowserUsage as BrowserUsage,
|
|
2056
|
+
type BrowserVideoMemory as BrowserVideoMemory,
|
|
2019
2057
|
type Profile as Profile,
|
|
2020
2058
|
type Tags as Tags,
|
|
2021
2059
|
type VaultReference as VaultReference,
|
|
@@ -47,7 +47,10 @@ export class Telemetry extends APIResource {
|
|
|
47
47
|
* stream closes when the browser session terminates. Each event frame includes an
|
|
48
48
|
* id: field containing a monotonically increasing sequence number; pass it as
|
|
49
49
|
* Last-Event-ID on reconnect to resume without gaps. The event: field is never
|
|
50
|
-
* set;
|
|
50
|
+
* set; event frames carry JSON in the data: field. A frame with an id: field and
|
|
51
|
+
* no data: field moves Last-Event-ID past events that were not delivered, because
|
|
52
|
+
* a type filter excluded them or they could not be decoded or exceeded the size
|
|
53
|
+
* limit; SSE clients dispatch no event for it. A keepalive comment frame is sent
|
|
51
54
|
* every 15 seconds when no events arrive. Returns 404 if the browser session does
|
|
52
55
|
* not exist. If telemetry was not enabled on the session, the stream opens but no
|
|
53
56
|
* events are delivered. Fresh connections only see new events; pass replay=all to
|
|
@@ -4996,6 +4999,17 @@ export interface TelemetryStreamParams {
|
|
|
4996
4999
|
*/
|
|
4997
5000
|
replay?: string;
|
|
4998
5001
|
|
|
5002
|
+
/**
|
|
5003
|
+
* Query param: Deliver only these event types, such as captcha_solve_started or
|
|
5004
|
+
* captcha_challenge_result. Repeat the parameter or pass comma-separated values
|
|
5005
|
+
* for multiple types. Keepalive frames are always delivered. Filtered-out events
|
|
5006
|
+
* are not sent. An id-only frame carrying the latest skipped id is sent about
|
|
5007
|
+
* every 15 seconds while skipped events keep arriving, and otherwise with the next
|
|
5008
|
+
* keepalive or when the stream ends, so the connection stays active and
|
|
5009
|
+
* Last-Event-ID moves past them; a reconnect resumes after the skipped events.
|
|
5010
|
+
*/
|
|
5011
|
+
type?: Array<string>;
|
|
5012
|
+
|
|
4999
5013
|
/**
|
|
5000
5014
|
* Header param: Last event sequence number for SSE reconnection (sent by SSE
|
|
5001
5015
|
* clients on reconnect). Takes precedence over replay when both are present, so
|
package/src/resources/index.ts
CHANGED
|
@@ -601,6 +601,11 @@ export namespace InvocationListBrowsersResponse {
|
|
|
601
601
|
*/
|
|
602
602
|
vaults?: Array<BrowsersAPI.VaultReference>;
|
|
603
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Video memory (VRAM) of the GPU browser session. Only present when gpu is true.
|
|
606
|
+
*/
|
|
607
|
+
video_memory?: BrowsersAPI.BrowserVideoMemory;
|
|
608
|
+
|
|
604
609
|
/**
|
|
605
610
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
606
611
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -993,14 +993,15 @@ export namespace CredentialVaultItem {
|
|
|
993
993
|
* they choose 1Password, connect their account and request access to a login in
|
|
994
994
|
* their own non-shared vault; passkeys are not supported. If they decline or that
|
|
995
995
|
* path fails, collect a Kernel-hosted credential item instead. Never automatically
|
|
996
|
-
* retry an uncertain 1Password request
|
|
997
|
-
*
|
|
998
|
-
*
|
|
999
|
-
*
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
996
|
+
* retry an uncertain 1Password request. After an uncertain fill, inspect the page
|
|
997
|
+
* to see the result of the fill. Do not use credential items for credit card data.
|
|
998
|
+
* Use wallet and card item types instead. Kernel credentials declare fields and
|
|
999
|
+
* may enter pending_collection. 1Password credentials either reference a connected
|
|
1000
|
+
* credential_account or store a supplied access token and integration key
|
|
1001
|
+
* encrypted on the item. They store no login values or selectors. Managed auth
|
|
1002
|
+
* credentials reference a managed auth connection in the same project that already
|
|
1003
|
+
* has a saved credential, and read it at fill time; they store no values.
|
|
1004
|
+
* Repeating the original creation request returns the current item without
|
|
1004
1005
|
* overwriting later state. A different request at the same key returns 409.
|
|
1005
1006
|
*/
|
|
1006
1007
|
export interface CredentialVaultItemRequest {
|
|
@@ -1774,17 +1775,19 @@ export interface OnePasswordFillVaultItemOperationResult {
|
|
|
1774
1775
|
/**
|
|
1775
1776
|
* Kernel's outcome of the extension call. fill_submitted means the extension
|
|
1776
1777
|
* reported submission, not website authentication. fill_failed means the extension
|
|
1777
|
-
* returned a known failure and
|
|
1778
|
-
*
|
|
1779
|
-
*
|
|
1778
|
+
* returned a known failure and includes error_code. fill_unknown means the form
|
|
1779
|
+
* may have been filled or submitted without a conclusive result; inspect the page
|
|
1780
|
+
* to see the result of the fill.
|
|
1780
1781
|
*/
|
|
1781
1782
|
status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
|
|
1782
1783
|
|
|
1783
1784
|
type: '1pw_fill';
|
|
1784
1785
|
|
|
1785
1786
|
/**
|
|
1786
|
-
* Present
|
|
1787
|
-
*
|
|
1787
|
+
* Present for fill_failed, and for fill_unknown when the extension reported
|
|
1788
|
+
* autosubmitFailed (it filled and submitted the form but could not confirm the
|
|
1789
|
+
* fill finished). These are allowlisted 1Password extension codes, never raw
|
|
1790
|
+
* errors, secrets, or page content.
|
|
1788
1791
|
*/
|
|
1789
1792
|
error_code?: 'fillFailed' | 'autosubmitFailed' | 'noExistingCredentials' | 'authenticationFailed';
|
|
1790
1793
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.123.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.123.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.123.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.123.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|