@onkernel/sdk 0.92.0 → 0.93.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.
@@ -465,6 +465,12 @@ export interface ManagedAuth {
465
465
  */
466
466
  hosted_url?: string | null;
467
467
 
468
+ /**
469
+ * Opaque identifier for the current canonical interaction. Required when
470
+ * submitting fields or choices and changes for each new actionable pause.
471
+ */
472
+ interaction_id?: string | null;
473
+
468
474
  /**
469
475
  * @deprecated Deprecated alias for `last_auth_check_at`. Despite the name, this is
470
476
  * the last health-check timestamp, not the last successful authentication. Use
@@ -775,6 +781,11 @@ export namespace ManagedAuth {
775
781
  */
776
782
  id: string;
777
783
 
784
+ /**
785
+ * Why the field requires user input.
786
+ */
787
+ reason: 'missing' | 'rejected';
788
+
778
789
  /**
779
790
  * Credential reference name to store the submitted value under.
780
791
  */
@@ -800,12 +811,6 @@ export namespace ManagedAuth {
800
811
  */
801
812
  observed_selector?: string | null;
802
813
 
803
- /**
804
- * Whether the submitted value must replace an existing credential after explicit
805
- * rejection.
806
- */
807
- replace_existing?: boolean;
808
-
809
814
  /**
810
815
  * Whether this field is required.
811
816
  */
@@ -1555,6 +1560,12 @@ export interface SubmitFieldsRequest {
1555
1560
  */
1556
1561
  fields?: { [key: string]: string };
1557
1562
 
1563
+ /**
1564
+ * Opaque interaction ID returned with canonical fields and choices. Required for
1565
+ * canonical submissions.
1566
+ */
1567
+ interaction_id?: string;
1568
+
1558
1569
  /**
1559
1570
  * The MFA method type to select (when mfa_options were returned)
1560
1571
  */
@@ -1670,6 +1681,12 @@ export namespace ConnectionFollowResponse {
1670
1681
  */
1671
1682
  hosted_url?: string;
1672
1683
 
1684
+ /**
1685
+ * Opaque identifier for the current canonical interaction. Required when
1686
+ * submitting fields or choices and changes for each new actionable pause.
1687
+ */
1688
+ interaction_id?: string;
1689
+
1673
1690
  /**
1674
1691
  * Browser live view URL for debugging.
1675
1692
  */
@@ -1831,6 +1848,11 @@ export namespace ConnectionFollowResponse {
1831
1848
  */
1832
1849
  id: string;
1833
1850
 
1851
+ /**
1852
+ * Why the field requires user input.
1853
+ */
1854
+ reason: 'missing' | 'rejected';
1855
+
1834
1856
  /**
1835
1857
  * Credential reference name to store the submitted value under.
1836
1858
  */
@@ -1856,12 +1878,6 @@ export namespace ConnectionFollowResponse {
1856
1878
  */
1857
1879
  observed_selector?: string | null;
1858
1880
 
1859
- /**
1860
- * Whether the submitted value must replace an existing credential after explicit
1861
- * rejection.
1862
- */
1863
- replace_existing?: boolean;
1864
-
1865
1881
  /**
1866
1882
  * Whether this field is required.
1867
1883
  */
@@ -2549,6 +2565,12 @@ export interface ConnectionSubmitParams {
2549
2565
  */
2550
2566
  fields?: { [key: string]: string };
2551
2567
 
2568
+ /**
2569
+ * Opaque interaction ID returned with canonical fields and choices. Required for
2570
+ * canonical submissions.
2571
+ */
2572
+ interaction_id?: string;
2573
+
2552
2574
  /**
2553
2575
  * The MFA method type to select (when mfa_options were returned)
2554
2576
  */
@@ -85,6 +85,7 @@ import {
85
85
  BrowserPageNavigationEvent,
86
86
  BrowserPageNavigationSettledEvent,
87
87
  BrowserPageTabOpenedEvent,
88
+ BrowserProxyErrorEvent,
88
89
  BrowserServiceCrashedEvent,
89
90
  BrowserSystemOomKillEvent,
90
91
  BrowserTelemetryCategoriesConfig,
@@ -1673,6 +1674,7 @@ export declare namespace Browsers {
1673
1674
  type BrowserPageNavigationEvent as BrowserPageNavigationEvent,
1674
1675
  type BrowserPageNavigationSettledEvent as BrowserPageNavigationSettledEvent,
1675
1676
  type BrowserPageTabOpenedEvent as BrowserPageTabOpenedEvent,
1677
+ type BrowserProxyErrorEvent as BrowserProxyErrorEvent,
1676
1678
  type BrowserServiceCrashedEvent as BrowserServiceCrashedEvent,
1677
1679
  type BrowserSystemOomKillEvent as BrowserSystemOomKillEvent,
1678
1680
  type BrowserTelemetryCategoriesConfig as BrowserTelemetryCategoriesConfig,
@@ -120,6 +120,7 @@ export {
120
120
  type BrowserPageNavigationEvent,
121
121
  type BrowserPageNavigationSettledEvent,
122
122
  type BrowserPageTabOpenedEvent,
123
+ type BrowserProxyErrorEvent,
123
124
  type BrowserServiceCrashedEvent,
124
125
  type BrowserSystemOomKillEvent,
125
126
  type BrowserTelemetryCategoriesConfig,
@@ -1725,6 +1725,88 @@ export namespace BrowserPageTabOpenedEvent {
1725
1725
  }
1726
1726
  }
1727
1727
 
1728
+ /**
1729
+ * A branded proxy-layer failure observed by the browser. Emitted when the metro
1730
+ * egress host-proxy serves a branded 5xx error page whose response carries the
1731
+ * X-Kernel-Proxy-Error header. Low-volume and carries a typed code. Its value is
1732
+ * per-session and per-URL attribution for sessions that already capture the
1733
+ * network stream: proxy failures are only observable while the CDP network
1734
+ * collector is running, so this is an opt-in refinement of the raw network events
1735
+ * rather than a default-on alerting signal.
1736
+ */
1737
+ export interface BrowserProxyErrorEvent {
1738
+ category: 'network';
1739
+
1740
+ /**
1741
+ * Provenance metadata identifying which producer emitted the event.
1742
+ */
1743
+ source: BrowserEventSource;
1744
+
1745
+ /**
1746
+ * Event timestamp in Unix microseconds.
1747
+ */
1748
+ ts: number;
1749
+
1750
+ type: 'proxy_error';
1751
+
1752
+ /**
1753
+ * Browser event context stamped by the browser monitor onto all CDP-sourced
1754
+ * events. Identifies the target, frame, and navigation epoch in which the event
1755
+ * occurred.
1756
+ */
1757
+ data?: BrowserProxyErrorEvent.Data;
1758
+
1759
+ /**
1760
+ * True if the data field was truncated due to size limits.
1761
+ */
1762
+ truncated?: boolean;
1763
+ }
1764
+
1765
+ export namespace BrowserProxyErrorEvent {
1766
+ /**
1767
+ * Browser event context stamped by the browser monitor onto all CDP-sourced
1768
+ * events. Identifies the target, frame, and navigation epoch in which the event
1769
+ * occurred.
1770
+ */
1771
+ export interface Data extends TelemetryAPI.BrowserEventContext {
1772
+ /**
1773
+ * Proxy-layer error code: the X-Kernel-Proxy-Error response header value from a
1774
+ * branded 5xx error page served by the metro egress host-proxy. Values mirror what
1775
+ * the proxy emits: destination_blocked, provider_blacklisted,
1776
+ * provider_unreachable, proxy_unavailable, upstream_timeout, upstream_dns_failure,
1777
+ * upstream_connect_failed. Unknown header values are dropped.
1778
+ */
1779
+ code:
1780
+ | 'destination_blocked'
1781
+ | 'provider_blacklisted'
1782
+ | 'provider_unreachable'
1783
+ | 'proxy_unavailable'
1784
+ | 'upstream_timeout'
1785
+ | 'upstream_dns_failure'
1786
+ | 'upstream_connect_failed';
1787
+
1788
+ /**
1789
+ * CDP request identifier matching the originating request.
1790
+ */
1791
+ request_id: string;
1792
+
1793
+ /**
1794
+ * HTTP response status of the branded error page (502).
1795
+ */
1796
+ status: number;
1797
+
1798
+ /**
1799
+ * HTTP method of the failed request, when known.
1800
+ */
1801
+ method?: string;
1802
+
1803
+ /**
1804
+ * CDP Network.ResourceType for the request, when known.
1805
+ */
1806
+ resource_type?: string;
1807
+ }
1808
+ }
1809
+
1728
1810
  /**
1729
1811
  * A managed service exited unexpectedly. Intentional stops do not produce this
1730
1812
  * event; only unexpected exits and terminal restart-give-up transitions do.
@@ -1990,6 +2072,7 @@ export type BrowserTelemetryEvent =
1990
2072
  | BrowserNetworkResponseEvent
1991
2073
  | BrowserNetworkLoadingFailedEvent
1992
2074
  | BrowserNetworkIdleEvent
2075
+ | BrowserProxyErrorEvent
1993
2076
  | BrowserPageNavigationEvent
1994
2077
  | BrowserPageDomContentLoadedEvent
1995
2078
  | BrowserPageLoadEvent
@@ -2184,6 +2267,7 @@ export declare namespace Telemetry {
2184
2267
  type BrowserPageNavigationEvent as BrowserPageNavigationEvent,
2185
2268
  type BrowserPageNavigationSettledEvent as BrowserPageNavigationSettledEvent,
2186
2269
  type BrowserPageTabOpenedEvent as BrowserPageTabOpenedEvent,
2270
+ type BrowserProxyErrorEvent as BrowserProxyErrorEvent,
2187
2271
  type BrowserServiceCrashedEvent as BrowserServiceCrashedEvent,
2188
2272
  type BrowserSystemOomKillEvent as BrowserSystemOomKillEvent,
2189
2273
  type BrowserTelemetryCategoriesConfig as BrowserTelemetryCategoriesConfig,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.92.0'; // x-release-please-version
1
+ export const VERSION = '0.93.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.92.0";
1
+ export declare const VERSION = "0.93.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.92.0";
1
+ export declare const VERSION = "0.93.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.92.0'; // x-release-please-version
4
+ exports.VERSION = '0.93.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.92.0'; // x-release-please-version
1
+ export const VERSION = '0.93.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map