@onkernel/sdk 0.157.0 → 0.159.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 (76) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -3
  3. package/client.d.mts +2 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +2 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -15
  8. package/client.js.map +1 -1
  9. package/client.mjs +9 -16
  10. package/client.mjs.map +1 -1
  11. package/core/streaming.d.mts.map +1 -1
  12. package/core/streaming.d.ts.map +1 -1
  13. package/core/streaming.js +1 -2
  14. package/core/streaming.js.map +1 -1
  15. package/core/streaming.mjs +1 -2
  16. package/core/streaming.mjs.map +1 -1
  17. package/internal/parse.d.mts.map +1 -1
  18. package/internal/parse.d.ts.map +1 -1
  19. package/internal/parse.js +0 -3
  20. package/internal/parse.js.map +1 -1
  21. package/internal/parse.mjs +0 -3
  22. package/internal/parse.mjs.map +1 -1
  23. package/internal/utils/log.d.mts +9 -14
  24. package/internal/utils/log.d.mts.map +1 -1
  25. package/internal/utils/log.d.ts +9 -14
  26. package/internal/utils/log.d.ts.map +1 -1
  27. package/internal/utils/log.js +13 -25
  28. package/internal/utils/log.js.map +1 -1
  29. package/internal/utils/log.mjs +10 -23
  30. package/internal/utils/log.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/resources/browser-pools.d.mts +23 -0
  33. package/resources/browser-pools.d.mts.map +1 -1
  34. package/resources/browser-pools.d.ts +23 -0
  35. package/resources/browser-pools.d.ts.map +1 -1
  36. package/resources/browsers/browsers.d.mts +78 -11
  37. package/resources/browsers/browsers.d.mts.map +1 -1
  38. package/resources/browsers/browsers.d.ts +78 -11
  39. package/resources/browsers/browsers.d.ts.map +1 -1
  40. package/resources/browsers/browsers.js.map +1 -1
  41. package/resources/browsers/browsers.mjs.map +1 -1
  42. package/resources/browsers/index.d.mts +1 -1
  43. package/resources/browsers/index.d.mts.map +1 -1
  44. package/resources/browsers/index.d.ts +1 -1
  45. package/resources/browsers/index.d.ts.map +1 -1
  46. package/resources/browsers/index.js.map +1 -1
  47. package/resources/browsers/index.mjs.map +1 -1
  48. package/resources/index.d.mts +1 -1
  49. package/resources/index.d.mts.map +1 -1
  50. package/resources/index.d.ts +1 -1
  51. package/resources/index.d.ts.map +1 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs.map +1 -1
  54. package/resources/invocations.d.mts +5 -0
  55. package/resources/invocations.d.mts.map +1 -1
  56. package/resources/invocations.d.ts +5 -0
  57. package/resources/invocations.d.ts.map +1 -1
  58. package/resources/proxies.d.mts +11 -10
  59. package/resources/proxies.d.mts.map +1 -1
  60. package/resources/proxies.d.ts +11 -10
  61. package/resources/proxies.d.ts.map +1 -1
  62. package/src/client.ts +11 -15
  63. package/src/core/streaming.ts +1 -2
  64. package/src/internal/parse.ts +0 -4
  65. package/src/internal/utils/log.ts +13 -38
  66. package/src/resources/browser-pools.ts +27 -0
  67. package/src/resources/browsers/browsers.ts +88 -10
  68. package/src/resources/browsers/index.ts +1 -0
  69. package/src/resources/index.ts +1 -0
  70. package/src/resources/invocations.ts +6 -0
  71. package/src/resources/proxies.ts +11 -10
  72. package/src/version.ts +1 -1
  73. package/version.d.mts +1 -1
  74. package/version.d.ts +1 -1
  75. package/version.js +1 -1
  76. package/version.mjs +1 -1
@@ -42,6 +42,7 @@ export {
42
42
  export {
43
43
  Browsers,
44
44
  type BrowserAllowlistState,
45
+ type BrowserBandwidth,
45
46
  type BrowserCaptchaSolver,
46
47
  type BrowserCost,
47
48
  type BrowserFingerprint,
@@ -609,6 +609,12 @@ export namespace InvocationListBrowsersResponse {
609
609
  */
610
610
  replay?: Browser.Replay;
611
611
 
612
+ /**
613
+ * Seconds the browser waits after its last connection closes before entering
614
+ * standby. Omitted when the browser uses the platform default.
615
+ */
616
+ standby_idle_timeout_seconds?: number;
617
+
612
618
  /**
613
619
  * URL the session was most recently asked to navigate to, if any. Recorded for
614
620
  * debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
@@ -1123,16 +1123,17 @@ export interface ProxyCheckParams {
1123
1123
  /**
1124
1124
  * An optional URL to test reachability against. If provided, the proxy check will
1125
1125
  * test connectivity to this URL instead of the default test URLs. Only HTTP and
1126
- * HTTPS schemes are allowed, and the URL must resolve to a public IP address. For
1127
- * ISP proxies, the exit IP is stable, so a successful check reliably indicates
1128
- * that subsequent browser sessions will reach the target site with the same IP.
1129
- * For residential and mobile proxies, the exit node changes between requests, so a
1130
- * successful check validates proxy configuration but does not guarantee that a
1131
- * subsequent browser session will use the same exit IP or reach the same site — it
1132
- * is useful for verifying credentials and connectivity, not for predicting
1133
- * site-specific behavior. When provided, the check result does not update the
1134
- * proxy's health status, since a failure may indicate a problem with the target
1135
- * site rather than the proxy itself.
1126
+ * HTTPS schemes are allowed. The hostname is resolved by the proxy, not by Kernel;
1127
+ * a URL that names an IP address directly must use a public one. For ISP proxies,
1128
+ * the exit IP is stable, so a successful check reliably indicates that subsequent
1129
+ * browser sessions will reach the target site with the same IP. For residential
1130
+ * and mobile proxies, the exit node changes between requests, so a successful
1131
+ * check validates proxy configuration but does not guarantee that a subsequent
1132
+ * browser session will use the same exit IP or reach the same site — it is useful
1133
+ * for verifying credentials and connectivity, not for predicting site-specific
1134
+ * behavior. When provided, the check result does not update the proxy's health
1135
+ * status, since a failure may indicate a problem with the target site rather than
1136
+ * the proxy itself.
1136
1137
  */
1137
1138
  url?: string;
1138
1139
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.157.0'; // x-release-please-version
1
+ export const VERSION = '0.159.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.157.0";
1
+ export declare const VERSION = "0.159.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.157.0";
1
+ export declare const VERSION = "0.159.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.157.0'; // x-release-please-version
4
+ exports.VERSION = '0.159.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.157.0'; // x-release-please-version
1
+ export const VERSION = '0.159.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map