@onkernel/sdk 0.116.0 → 0.117.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.
@@ -641,7 +641,8 @@ export namespace CredentialAccountVaultItem {
641
641
  | '1pw_access_request_status'
642
642
  | '1pw_fill'
643
643
  | '1pw_recover'
644
- | '1pw_update_access_token';
644
+ | '1pw_update_access_token'
645
+ | 'webmcp_invoke';
645
646
  }
646
647
  }
647
648
 
@@ -907,7 +908,8 @@ export namespace CredentialVaultItem {
907
908
  | '1pw_access_request_status'
908
909
  | '1pw_fill'
909
910
  | '1pw_recover'
910
- | '1pw_update_access_token';
911
+ | '1pw_update_access_token'
912
+ | 'webmcp_invoke';
911
913
  }
912
914
 
913
915
  export interface OnePasswordAccessApprovalAction {
@@ -1772,7 +1774,8 @@ export namespace VaultItem {
1772
1774
  | '1pw_access_request_status'
1773
1775
  | '1pw_fill'
1774
1776
  | '1pw_recover'
1775
- | '1pw_update_access_token';
1777
+ | '1pw_update_access_token'
1778
+ | 'webmcp_invoke';
1776
1779
  }
1777
1780
 
1778
1781
  /**
@@ -1844,7 +1847,8 @@ export namespace VaultItem {
1844
1847
  | '1pw_access_request_status'
1845
1848
  | '1pw_fill'
1846
1849
  | '1pw_recover'
1847
- | '1pw_update_access_token';
1850
+ | '1pw_update_access_token'
1851
+ | 'webmcp_invoke';
1848
1852
  }
1849
1853
  }
1850
1854
  }
@@ -1911,9 +1915,9 @@ export interface VaultItemEvent {
1911
1915
  }
1912
1916
 
1913
1917
  /**
1914
- * The submission result reported by the 1Password extension when available. Kernel
1915
- * returns fill_unknown if the extension call has no conclusive result. Inspect the
1916
- * page to determine successful authentication on the website.
1918
+ * Authorization and preparation return the existing item shape. Fill returns a
1919
+ * value-free result; WebMCP invocation returns the tool's output. Neither persists
1920
+ * transient outcomes on the item.
1917
1921
  */
1918
1922
  export type VaultItemOperationResponse =
1919
1923
  | VaultItemOperationResponse.WalletVaultItem
@@ -1921,7 +1925,8 @@ export type VaultItemOperationResponse =
1921
1925
  | CredentialAccountVaultItem
1922
1926
  | CredentialVaultItem
1923
1927
  | FillVaultItemOperationResult
1924
- | OnePasswordFillVaultItemOperationResult;
1928
+ | OnePasswordFillVaultItemOperationResult
1929
+ | WebmcpInvokeVaultItemOperationResult;
1925
1930
 
1926
1931
  export namespace VaultItemOperationResponse {
1927
1932
  export interface WalletVaultItem {
@@ -1991,7 +1996,8 @@ export namespace VaultItemOperationResponse {
1991
1996
  | '1pw_access_request_status'
1992
1997
  | '1pw_fill'
1993
1998
  | '1pw_recover'
1994
- | '1pw_update_access_token';
1999
+ | '1pw_update_access_token'
2000
+ | 'webmcp_invoke';
1995
2001
  }
1996
2002
 
1997
2003
  /**
@@ -2063,7 +2069,8 @@ export namespace VaultItemOperationResponse {
2063
2069
  | '1pw_access_request_status'
2064
2070
  | '1pw_fill'
2065
2071
  | '1pw_recover'
2066
- | '1pw_update_access_token';
2072
+ | '1pw_update_access_token'
2073
+ | 'webmcp_invoke';
2067
2074
  }
2068
2075
  }
2069
2076
  }
@@ -2118,6 +2125,27 @@ export namespace VaultPaymentMethod {
2118
2125
  }
2119
2126
  }
2120
2127
 
2128
+ export interface VaultWebmcpBinding {
2129
+ /**
2130
+ * A declared, populated credential field or supported card field. A TOTP field
2131
+ * supplies a fresh code, never its seed.
2132
+ */
2133
+ field: string;
2134
+
2135
+ /**
2136
+ * RFC 6901 JSON Pointer to an existing null value in input. Object keys are exact;
2137
+ * array indices must be canonical and in range. No root or array-append paths.
2138
+ * Each path and each field may occur only once.
2139
+ */
2140
+ input_path: string;
2141
+
2142
+ /**
2143
+ * Required for card expiration (MM/YY or MM/YYYY), forbidden for other fields.
2144
+ * Invalid formats are rejected before invocation.
2145
+ */
2146
+ format?: string;
2147
+ }
2148
+
2121
2149
  /**
2122
2150
  * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
2123
2151
  * select a customer-owned configuration. Mode (sandbox vs live) is determined by
@@ -2235,6 +2263,85 @@ export namespace WalletVaultItemState {
2235
2263
  }
2236
2264
  }
2237
2265
 
2266
+ /**
2267
+ * Invoke a WebMCP tool using values from a vaulted item. The browser must be
2268
+ * attached to the item's vault. Discover the tool_ref, inputSchema, and source
2269
+ * with GET /browsers/{id_or_name}/webmcp/tools or webmcp.listTools() in the
2270
+ * Browser REPL (POST /browsers/{id_or_name}/repl) before invoking it. Input paths
2271
+ * replace existing null slots in input. Tool output is returned without redaction
2272
+ * and may include the supplied values. The tool may submit or perform other side
2273
+ * effects. Any item destination restrictions apply to the tool's top-level page
2274
+ * and registering frame (if any).
2275
+ */
2276
+ export interface WebmcpInvokeVaultItemOperationRequest {
2277
+ bindings: Array<VaultWebmcpBinding>;
2278
+
2279
+ /**
2280
+ * Browser session ID, not a reusable browser name.
2281
+ */
2282
+ browser_id: string;
2283
+
2284
+ /**
2285
+ * Public tool arguments with an existing null slot at each binding path. At most
2286
+ * 64 KiB after JSON serialization, including substituted values. Never include
2287
+ * vault values here.
2288
+ */
2289
+ input: { [key: string]: unknown };
2290
+
2291
+ /**
2292
+ * Exact top-level URL from the discovered tool source (fragment omitted). This
2293
+ * pins the target page; it does not authorize a destination.
2294
+ */
2295
+ page_url: string;
2296
+
2297
+ /**
2298
+ * Opaque reference to the exact live WebMCP registration.
2299
+ */
2300
+ tool_ref: string;
2301
+
2302
+ type: 'webmcp_invoke';
2303
+
2304
+ /**
2305
+ * Tool invocation timeout in seconds; preflight and response handling have an
2306
+ * additional bounded allowance. An indeterminate outcome is not retried.
2307
+ */
2308
+ timeout_sec?: number;
2309
+ }
2310
+
2311
+ /**
2312
+ * Returns the same tool result fields as the browser WebMCP invoke API, plus the
2313
+ * vault operation discriminator. Output and error text are untrusted page-provided
2314
+ * data, returned without redaction; tools may include supplied vault values.
2315
+ * Inspect the browser page to determine whether the intended site action
2316
+ * succeeded.
2317
+ */
2318
+ export interface WebmcpInvokeVaultItemOperationResult {
2319
+ /**
2320
+ * Unknown means invocation may have run; do not retry automatically. No status
2321
+ * confirms that the website accepted the action.
2322
+ */
2323
+ status: 'completed' | 'canceled' | 'error' | 'awaiting_submission' | 'unknown';
2324
+
2325
+ type: 'webmcp_invoke';
2326
+
2327
+ /**
2328
+ * Untrusted page-provided error text, returned without redaction. May contain
2329
+ * supplied vault values.
2330
+ */
2331
+ error_text?: string;
2332
+
2333
+ /**
2334
+ * Present when the browser reported one.
2335
+ */
2336
+ invocation_id?: string;
2337
+
2338
+ /**
2339
+ * Untrusted page-provided output, returned without redaction. May contain supplied
2340
+ * vault values.
2341
+ */
2342
+ output?: unknown;
2343
+ }
2344
+
2238
2345
  export type ItemListResponse = Array<VaultItem>;
2239
2346
 
2240
2347
  export type ItemEventsResponse = Array<VaultItemEvent>;
@@ -2344,7 +2451,8 @@ export type ItemPerformOperationParams =
2344
2451
  | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest
2345
2452
  | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
2346
2453
  | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
2347
- | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest;
2454
+ | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest
2455
+ | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest;
2348
2456
 
2349
2457
  export declare namespace ItemPerformOperationParams {
2350
2458
  export interface AuthorizeVaultItemOperationRequest {
@@ -2551,6 +2659,52 @@ export declare namespace ItemPerformOperationParams {
2551
2659
  */
2552
2660
  access_token_expires_at?: string;
2553
2661
  }
2662
+
2663
+ export interface WebmcpInvokeVaultItemOperationRequest {
2664
+ /**
2665
+ * Path param
2666
+ */
2667
+ id_or_name: string;
2668
+
2669
+ /**
2670
+ * Body param
2671
+ */
2672
+ bindings: Array<VaultWebmcpBinding>;
2673
+
2674
+ /**
2675
+ * Body param: Browser session ID, not a reusable browser name.
2676
+ */
2677
+ browser_id: string;
2678
+
2679
+ /**
2680
+ * Body param: Public tool arguments with an existing null slot at each binding
2681
+ * path. At most 64 KiB after JSON serialization, including substituted values.
2682
+ * Never include vault values here.
2683
+ */
2684
+ input: { [key: string]: unknown };
2685
+
2686
+ /**
2687
+ * Body param: Exact top-level URL from the discovered tool source (fragment
2688
+ * omitted). This pins the target page; it does not authorize a destination.
2689
+ */
2690
+ page_url: string;
2691
+
2692
+ /**
2693
+ * Body param: Opaque reference to the exact live WebMCP registration.
2694
+ */
2695
+ tool_ref: string;
2696
+
2697
+ /**
2698
+ * Body param
2699
+ */
2700
+ type: 'webmcp_invoke';
2701
+
2702
+ /**
2703
+ * Body param: Tool invocation timeout in seconds; preflight and response handling
2704
+ * have an additional bounded allowance. An indeterminate outcome is not retried.
2705
+ */
2706
+ timeout_sec?: number;
2707
+ }
2554
2708
  }
2555
2709
 
2556
2710
  export type ItemUpsertParams =
@@ -2834,8 +2988,11 @@ export declare namespace Items {
2834
2988
  type VaultItemEvent as VaultItemEvent,
2835
2989
  type VaultItemOperationResponse as VaultItemOperationResponse,
2836
2990
  type VaultPaymentMethod as VaultPaymentMethod,
2991
+ type VaultWebmcpBinding as VaultWebmcpBinding,
2837
2992
  type WalletVaultItemSpec as WalletVaultItemSpec,
2838
2993
  type WalletVaultItemState as WalletVaultItemState,
2994
+ type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest,
2995
+ type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult,
2839
2996
  type ItemListResponse as ItemListResponse,
2840
2997
  type ItemEventsResponse as ItemEventsResponse,
2841
2998
  type ItemRetrieveParams as ItemRetrieveParams,
@@ -60,8 +60,11 @@ import {
60
60
  VaultItemEvent,
61
61
  VaultItemOperationResponse,
62
62
  VaultPaymentMethod,
63
+ VaultWebmcpBinding,
63
64
  WalletVaultItemSpec,
64
65
  WalletVaultItemState,
66
+ WebmcpInvokeVaultItemOperationRequest,
67
+ WebmcpInvokeVaultItemOperationResult,
65
68
  } from './items';
66
69
  import { APIPromise } from '../../core/api-promise';
67
70
  import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../../core/pagination';
@@ -220,8 +223,11 @@ export declare namespace Vaults {
220
223
  type VaultItemEvent as VaultItemEvent,
221
224
  type VaultItemOperationResponse as VaultItemOperationResponse,
222
225
  type VaultPaymentMethod as VaultPaymentMethod,
226
+ type VaultWebmcpBinding as VaultWebmcpBinding,
223
227
  type WalletVaultItemSpec as WalletVaultItemSpec,
224
228
  type WalletVaultItemState as WalletVaultItemState,
229
+ type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest,
230
+ type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult,
225
231
  type ItemListResponse as ItemListResponse,
226
232
  type ItemEventsResponse as ItemEventsResponse,
227
233
  type ItemRetrieveParams as ItemRetrieveParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.116.0'; // x-release-please-version
1
+ export const VERSION = '0.117.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.116.0";
1
+ export declare const VERSION = "0.117.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.116.0";
1
+ export declare const VERSION = "0.117.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.116.0'; // x-release-please-version
4
+ exports.VERSION = '0.117.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.116.0'; // x-release-please-version
1
+ export const VERSION = '0.117.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map