@onkernel/sdk 0.87.1 → 0.88.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 +8 -1
- 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/auth/auth.d.mts +2 -2
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +2 -2
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/connections.d.mts +196 -88
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +196 -88
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/connections.js.map +1 -1
- package/resources/auth/connections.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/browser-pools.d.mts +6 -1
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +6 -1
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +114 -13
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +114 -13
- 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 +6 -1
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +6 -1
- package/resources/invocations.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/auth/auth.ts +2 -0
- package/src/resources/auth/connections.ts +214 -87
- package/src/resources/auth/index.ts +1 -0
- package/src/resources/browser-pools.ts +7 -1
- package/src/resources/browsers/browsers.ts +129 -12
- package/src/resources/browsers/index.ts +3 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/invocations.ts +7 -1
- 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
|
@@ -296,6 +296,72 @@ export interface BrowserPoolRef {
|
|
|
296
296
|
name?: string;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Resolved proxy configuration for a browser session. Selected proxies are
|
|
301
|
+
* returned by stable ID.
|
|
302
|
+
*/
|
|
303
|
+
export interface BrowserProxy {
|
|
304
|
+
/**
|
|
305
|
+
* Selected proxy ID.
|
|
306
|
+
*/
|
|
307
|
+
id?: string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Proxy egress mode. direct forces no proxy regardless of stealth. default uses
|
|
311
|
+
* the browser's stealth-derived default: Kernel's default stealth proxy when
|
|
312
|
+
* stealth=true, or direct egress when stealth=false. default is primarily useful
|
|
313
|
+
* on browser update to restore the browser default after selected-proxy egress.
|
|
314
|
+
*/
|
|
315
|
+
mode?: BrowserProxyMode;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Selected proxy name.
|
|
319
|
+
*/
|
|
320
|
+
name?: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Browser proxy configuration. Provide exactly one of mode, id, or name; an empty
|
|
325
|
+
* object is invalid. Set mode to direct for no proxy regardless of stealth. Set
|
|
326
|
+
* mode to default to use the browser's stealth-derived default: Kernel's default
|
|
327
|
+
* stealth proxy when stealth=true, or direct egress when stealth=false. Select id
|
|
328
|
+
* or name to use that proxy regardless of stealth. The selected proxy must be in
|
|
329
|
+
* the same project as the browser. Names must match exactly one active proxy; use
|
|
330
|
+
* id for stable references. Proxy configuration changes only egress and does not
|
|
331
|
+
* change stealth or CAPTCHA solver behavior. A stealth browser using mode=direct
|
|
332
|
+
* still runs in stealth mode with the CAPTCHA solver enabled. When proxy is
|
|
333
|
+
* omitted on browser creation, stealth browsers use Kernel's default stealth proxy
|
|
334
|
+
* and non-stealth browsers use direct egress. When omitted on update, the current
|
|
335
|
+
* configuration is unchanged.
|
|
336
|
+
*/
|
|
337
|
+
export interface BrowserProxyConfig {
|
|
338
|
+
/**
|
|
339
|
+
* Proxy ID.
|
|
340
|
+
*/
|
|
341
|
+
id?: string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Proxy egress mode. direct forces no proxy regardless of stealth. default uses
|
|
345
|
+
* the browser's stealth-derived default: Kernel's default stealth proxy when
|
|
346
|
+
* stealth=true, or direct egress when stealth=false. default is primarily useful
|
|
347
|
+
* on browser update to restore the browser default after selected-proxy egress.
|
|
348
|
+
*/
|
|
349
|
+
mode?: BrowserProxyMode;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Proxy name. Must match exactly one active proxy in the project.
|
|
353
|
+
*/
|
|
354
|
+
name?: string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Proxy egress mode. direct forces no proxy regardless of stealth. default uses
|
|
359
|
+
* the browser's stealth-derived default: Kernel's default stealth proxy when
|
|
360
|
+
* stealth=true, or direct egress when stealth=false. default is primarily useful
|
|
361
|
+
* on browser update to restore the browser default after selected-proxy egress.
|
|
362
|
+
*/
|
|
363
|
+
export type BrowserProxyMode = 'direct' | 'default';
|
|
364
|
+
|
|
299
365
|
/**
|
|
300
366
|
* Session usage metrics.
|
|
301
367
|
*/
|
|
@@ -433,7 +499,13 @@ export interface BrowserCreateResponse {
|
|
|
433
499
|
profile_save_changes?: boolean;
|
|
434
500
|
|
|
435
501
|
/**
|
|
436
|
-
*
|
|
502
|
+
* Resolved proxy configuration for this browser session.
|
|
503
|
+
*/
|
|
504
|
+
proxy?: BrowserProxy;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* @deprecated ID of the proxy associated with this browser session, if any.
|
|
508
|
+
* Deprecated in favor of proxy.
|
|
437
509
|
*/
|
|
438
510
|
proxy_id?: string;
|
|
439
511
|
|
|
@@ -571,7 +643,13 @@ export interface BrowserRetrieveResponse {
|
|
|
571
643
|
profile_save_changes?: boolean;
|
|
572
644
|
|
|
573
645
|
/**
|
|
574
|
-
*
|
|
646
|
+
* Resolved proxy configuration for this browser session.
|
|
647
|
+
*/
|
|
648
|
+
proxy?: BrowserProxy;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* @deprecated ID of the proxy associated with this browser session, if any.
|
|
652
|
+
* Deprecated in favor of proxy.
|
|
575
653
|
*/
|
|
576
654
|
proxy_id?: string;
|
|
577
655
|
|
|
@@ -709,7 +787,13 @@ export interface BrowserUpdateResponse {
|
|
|
709
787
|
profile_save_changes?: boolean;
|
|
710
788
|
|
|
711
789
|
/**
|
|
712
|
-
*
|
|
790
|
+
* Resolved proxy configuration for this browser session.
|
|
791
|
+
*/
|
|
792
|
+
proxy?: BrowserProxy;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* @deprecated ID of the proxy associated with this browser session, if any.
|
|
796
|
+
* Deprecated in favor of proxy.
|
|
713
797
|
*/
|
|
714
798
|
proxy_id?: string;
|
|
715
799
|
|
|
@@ -847,7 +931,13 @@ export interface BrowserListResponse {
|
|
|
847
931
|
profile_save_changes?: boolean;
|
|
848
932
|
|
|
849
933
|
/**
|
|
850
|
-
*
|
|
934
|
+
* Resolved proxy configuration for this browser session.
|
|
935
|
+
*/
|
|
936
|
+
proxy?: BrowserProxy;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* @deprecated ID of the proxy associated with this browser session, if any.
|
|
940
|
+
* Deprecated in favor of proxy.
|
|
851
941
|
*/
|
|
852
942
|
proxy_id?: string;
|
|
853
943
|
|
|
@@ -970,8 +1060,19 @@ export interface BrowserCreateParams {
|
|
|
970
1060
|
profile?: Shared.BrowserProfile;
|
|
971
1061
|
|
|
972
1062
|
/**
|
|
973
|
-
*
|
|
974
|
-
*
|
|
1063
|
+
* Proxy configuration for the browser session. Cannot be combined with proxy_id.
|
|
1064
|
+
* Omit to use the browser default: stealth browsers use Kernel's default stealth
|
|
1065
|
+
* proxy, while non-stealth browsers use direct egress. Set mode to direct to force
|
|
1066
|
+
* direct egress regardless of stealth. Set mode to default to explicitly use the
|
|
1067
|
+
* browser default: Kernel's default stealth proxy when stealth=true, or direct
|
|
1068
|
+
* egress when stealth=false. Select id or name to use that proxy regardless of
|
|
1069
|
+
* stealth. Proxy selection does not change stealth or CAPTCHA solver behavior.
|
|
1070
|
+
*/
|
|
1071
|
+
proxy?: BrowserProxyConfig;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* @deprecated Optional proxy to associate to the browser session. Must reference a
|
|
1075
|
+
* proxy in the same project as the browser session. Deprecated in favor of proxy.
|
|
975
1076
|
*/
|
|
976
1077
|
proxy_id?: string;
|
|
977
1078
|
|
|
@@ -983,8 +1084,11 @@ export interface BrowserCreateParams {
|
|
|
983
1084
|
start_url?: string;
|
|
984
1085
|
|
|
985
1086
|
/**
|
|
986
|
-
* If true, launches the browser in stealth mode
|
|
987
|
-
*
|
|
1087
|
+
* If true, launches the browser in stealth mode and enables the CAPTCHA solver.
|
|
1088
|
+
* Defaults to false. When proxy is omitted, stealth browsers use Kernel's default
|
|
1089
|
+
* stealth proxy and non-stealth browsers use direct egress. An explicit proxy
|
|
1090
|
+
* configuration changes only egress; it does not enable or disable stealth or the
|
|
1091
|
+
* CAPTCHA solver.
|
|
988
1092
|
*/
|
|
989
1093
|
stealth?: boolean;
|
|
990
1094
|
|
|
@@ -1132,8 +1236,8 @@ export interface BrowserRetrieveParams {
|
|
|
1132
1236
|
|
|
1133
1237
|
export interface BrowserUpdateParams {
|
|
1134
1238
|
/**
|
|
1135
|
-
* If true, stealth browsers connect directly instead of using the
|
|
1136
|
-
* proxy.
|
|
1239
|
+
* @deprecated If true, stealth browsers connect directly instead of using the
|
|
1240
|
+
* default stealth proxy. Deprecated in favor of proxy.mode.
|
|
1137
1241
|
*/
|
|
1138
1242
|
disable_default_proxy?: boolean;
|
|
1139
1243
|
|
|
@@ -1151,8 +1255,18 @@ export interface BrowserUpdateParams {
|
|
|
1151
1255
|
profile?: Shared.BrowserProfile;
|
|
1152
1256
|
|
|
1153
1257
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
*
|
|
1258
|
+
* Proxy configuration to apply. Omit to leave the current configuration unchanged.
|
|
1259
|
+
* Cannot be combined with proxy_id or disable_default_proxy. Set mode to direct to
|
|
1260
|
+
* switch to direct egress regardless of stealth. Set mode to default to restore
|
|
1261
|
+
* the browser default after using a selected proxy: Kernel's default stealth proxy
|
|
1262
|
+
* for a stealth browser, or direct egress for a non-stealth browser. Updating
|
|
1263
|
+
* proxy does not change stealth or CAPTCHA solver behavior.
|
|
1264
|
+
*/
|
|
1265
|
+
proxy?: BrowserProxyConfig;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* @deprecated ID of the proxy to use. Omit to leave unchanged, set to empty string
|
|
1269
|
+
* to remove proxy. Deprecated in favor of proxy.
|
|
1156
1270
|
*/
|
|
1157
1271
|
proxy_id?: string | null;
|
|
1158
1272
|
|
|
@@ -1375,6 +1489,9 @@ Browsers.Playwright = Playwright;
|
|
|
1375
1489
|
export declare namespace Browsers {
|
|
1376
1490
|
export {
|
|
1377
1491
|
type BrowserPoolRef as BrowserPoolRef,
|
|
1492
|
+
type BrowserProxy as BrowserProxy,
|
|
1493
|
+
type BrowserProxyConfig as BrowserProxyConfig,
|
|
1494
|
+
type BrowserProxyMode as BrowserProxyMode,
|
|
1378
1495
|
type BrowserUsage as BrowserUsage,
|
|
1379
1496
|
type Profile as Profile,
|
|
1380
1497
|
type Tags as Tags,
|
package/src/resources/index.ts
CHANGED
|
@@ -510,7 +510,13 @@ export namespace InvocationListBrowsersResponse {
|
|
|
510
510
|
profile_save_changes?: boolean;
|
|
511
511
|
|
|
512
512
|
/**
|
|
513
|
-
*
|
|
513
|
+
* Resolved proxy configuration for this browser session.
|
|
514
|
+
*/
|
|
515
|
+
proxy?: BrowsersAPI.BrowserProxy;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @deprecated ID of the proxy associated with this browser session, if any.
|
|
519
|
+
* Deprecated in favor of proxy.
|
|
514
520
|
*/
|
|
515
521
|
proxy_id?: string;
|
|
516
522
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.88.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.88.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.88.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.88.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|