@onkernel/sdk 0.130.0 → 0.132.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.
@@ -316,6 +316,39 @@ export type AgentcardPreparedProcessor =
316
316
  | 'mercado_pago'
317
317
  | 'adyen';
318
318
 
319
+ /**
320
+ * Let a browser attached to the item's vault sign in with a stored passkey. Only
321
+ * invoke when the item advertises `arm_passkey`. Returns immediately; there is no
322
+ * time limit. While armed, when a page in that browser whose origin matches the
323
+ * passkey's relying party asks for a passkey (`navigator.credentials.get`,
324
+ * including autofill requests made at page load), Kernel answers with this
325
+ * passkey. The private key never enters the browser: Kernel signs on its servers,
326
+ * using the origin Chrome reports for the requesting frame. Arming a passkey for a
327
+ * relying party replaces any passkey armed earlier in the browser for the same
328
+ * relying party. The arm lasts until `disarm_passkey`, the browser ends, the vault
329
+ * is detached, or the item or field is deleted. Drive the sign-in with your own
330
+ * browser tools and inspect the page to confirm it. A page opened in a new tab or
331
+ * window can run its first scripts before Kernel's handler attaches; if such a
332
+ * page asks for a passkey as soon as it loads, reload it. While armed, any script
333
+ * running on the relying party's pages can obtain a sign-in without user
334
+ * interaction, as with a password manager that fills automatically; disarm when
335
+ * the task is done. Passkeys report a signature counter of 0 and backup flags, as
336
+ * synced passkeys do.
337
+ */
338
+ export interface ArmPasskeyVaultItemOperationRequest {
339
+ /**
340
+ * Browser session ID, not a reusable browser name.
341
+ */
342
+ browser_id: string;
343
+
344
+ type: 'arm_passkey';
345
+
346
+ /**
347
+ * Passkey field to arm. Required when more than one passkey field holds a passkey.
348
+ */
349
+ field?: string;
350
+ }
351
+
319
352
  /**
320
353
  * Authorize a Link or Kernel card using its existing purchase specification. Use
321
354
  * only after explicit user approval and when the item advertises authorize; follow
@@ -764,6 +797,9 @@ export namespace CredentialAccountVaultItem {
764
797
  | 'collect'
765
798
  | 'prepare_checkout'
766
799
  | 'fill'
800
+ | 'arm_passkey'
801
+ | 'register_passkey'
802
+ | 'disarm_passkey'
767
803
  | '1pw_create_access_request'
768
804
  | '1pw_access_request_status'
769
805
  | '1pw_fill'
@@ -853,7 +889,7 @@ export interface CredentialVaultFieldDefinition {
853
889
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
854
890
  * private key), a lowercase `rpId` domain, and optional `username` and
855
891
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
856
- * pages.
892
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
857
893
  */
858
894
  type: CredentialVaultFieldType;
859
895
 
@@ -889,7 +925,7 @@ export interface CredentialVaultFieldDefinitionInput {
889
925
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
890
926
  * private key), a lowercase `rpId` domain, and optional `username` and
891
927
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
892
- * pages.
928
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
893
929
  */
894
930
  type: CredentialVaultFieldType;
895
931
 
@@ -932,7 +968,7 @@ export interface CredentialVaultFieldInput {
932
968
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
933
969
  * private key), a lowercase `rpId` domain, and optional `username` and
934
970
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
935
- * pages.
971
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
936
972
  */
937
973
  type: CredentialVaultFieldType;
938
974
 
@@ -1005,7 +1041,7 @@ export interface CredentialVaultFieldState {
1005
1041
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
1006
1042
  * private key), a lowercase `rpId` domain, and optional `username` and
1007
1043
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
1008
- * pages.
1044
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
1009
1045
  */
1010
1046
  export type CredentialVaultFieldType = 'text' | 'email' | 'password' | 'totp' | 'passkey';
1011
1047
 
@@ -1139,6 +1175,9 @@ export namespace CredentialVaultItem {
1139
1175
  | 'collect'
1140
1176
  | 'prepare_checkout'
1141
1177
  | 'fill'
1178
+ | 'arm_passkey'
1179
+ | 'register_passkey'
1180
+ | 'disarm_passkey'
1142
1181
  | '1pw_create_access_request'
1143
1182
  | '1pw_access_request_status'
1144
1183
  | '1pw_fill'
@@ -1277,6 +1316,26 @@ export interface CredentialVaultItemUpdateRequest {
1277
1316
  expected_item_id?: string;
1278
1317
  }
1279
1318
 
1319
+ /**
1320
+ * Stop a browser from using this item's passkeys: removes its armed passkeys and
1321
+ * its pending registration into this item. Pages that already loaded keep Kernel's
1322
+ * WebAuthn handler but get the browser's own behavior.
1323
+ */
1324
+ export interface DisarmPasskeyVaultItemOperationRequest {
1325
+ /**
1326
+ * Browser session ID, not a reusable browser name.
1327
+ */
1328
+ browser_id: string;
1329
+
1330
+ type: 'disarm_passkey';
1331
+
1332
+ /**
1333
+ * Limit disarming to one passkey field. Omit to disarm every passkey field of the
1334
+ * item.
1335
+ */
1336
+ field?: string;
1337
+ }
1338
+
1280
1339
  /**
1281
1340
  * Use a vault item in a browser session, for example to fill a login or payment
1282
1341
  * form. Only invoke when the item advertises `fill`; the advertised operation
@@ -1770,7 +1829,7 @@ export interface ManagedAuthCredentialVaultField {
1770
1829
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
1771
1830
  * private key), a lowercase `rpId` domain, and optional `username` and
1772
1831
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
1773
- * pages.
1832
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
1774
1833
  */
1775
1834
  type: CredentialVaultFieldType;
1776
1835
  }
@@ -2235,6 +2294,22 @@ export interface OnePasswordRequestAccessVaultItemOperationRequest {
2235
2294
  reason?: string;
2236
2295
  }
2237
2296
 
2297
+ export interface PasskeyVaultItemOperationResult {
2298
+ /**
2299
+ * armed means the browser will answer matching passkey requests; it does not mean
2300
+ * a page has asked yet. disarmed means the browser no longer uses this item's
2301
+ * passkeys.
2302
+ */
2303
+ status: 'armed' | 'disarmed';
2304
+
2305
+ type: 'arm_passkey' | 'register_passkey' | 'disarm_passkey';
2306
+
2307
+ /**
2308
+ * Relying party the armed passkey answers for. Returned by arm_passkey.
2309
+ */
2310
+ rp_id?: string;
2311
+ }
2312
+
2238
2313
  /**
2239
2314
  * Prepare an unused AgentCard card for a supported checkout. Deliver the returned
2240
2315
  * approval URL and keep the approval page open. Poll the item until
@@ -2256,6 +2331,35 @@ export interface PrepareCheckoutVaultItemOperationRequest {
2256
2331
  type: 'prepare_checkout';
2257
2332
  }
2258
2333
 
2334
+ /**
2335
+ * Let a browser attached to the item's vault create a passkey on a website and
2336
+ * store it in an empty passkey field. Only invoke when the item advertises
2337
+ * `register_passkey`; declare the field first, for example by adding an optional
2338
+ * passkey field with a credential update. Returns immediately; there is no time
2339
+ * limit. The next passkey a page in that browser creates
2340
+ * (`navigator.credentials.create`) is generated by Kernel, stored in the field,
2341
+ * and only then returned to the page, so the website never receives a passkey
2342
+ * Kernel failed to store. Each browser has one pending registration; a later
2343
+ * `register_passkey` replaces it. Drive the website's "add a passkey" flow with
2344
+ * your own browser tools, then confirm by reading the item (the field reports
2345
+ * `has_value`) or its `credential_passkey_registered` event, and by signing in
2346
+ * with `arm_passkey`. Only ES256 passkeys are created.
2347
+ */
2348
+ export interface RegisterPasskeyVaultItemOperationRequest {
2349
+ /**
2350
+ * Browser session ID, not a reusable browser name.
2351
+ */
2352
+ browser_id: string;
2353
+
2354
+ type: 'register_passkey';
2355
+
2356
+ /**
2357
+ * Empty passkey field to store the new passkey in. Required when more than one
2358
+ * passkey field is empty.
2359
+ */
2360
+ field?: string;
2361
+ }
2362
+
2259
2363
  /**
2260
2364
  * Explicitly prepare a fresh local verification session for the same Kernel Visa
2261
2365
  * purchase and connected wallet, only when restart_verification is advertised.
@@ -2501,6 +2605,9 @@ export namespace VaultItem {
2501
2605
  | 'collect'
2502
2606
  | 'prepare_checkout'
2503
2607
  | 'fill'
2608
+ | 'arm_passkey'
2609
+ | 'register_passkey'
2610
+ | 'disarm_passkey'
2504
2611
  | '1pw_create_access_request'
2505
2612
  | '1pw_access_request_status'
2506
2613
  | '1pw_fill'
@@ -2595,6 +2702,9 @@ export namespace VaultItem {
2595
2702
  | 'collect'
2596
2703
  | 'prepare_checkout'
2597
2704
  | 'fill'
2705
+ | 'arm_passkey'
2706
+ | 'register_passkey'
2707
+ | 'disarm_passkey'
2598
2708
  | '1pw_create_access_request'
2599
2709
  | '1pw_access_request_status'
2600
2710
  | '1pw_fill'
@@ -2674,9 +2784,9 @@ export interface VaultItemEvent {
2674
2784
  }
2675
2785
 
2676
2786
  /**
2677
- * Authorization and preparation return the existing item shape. Fill returns a
2678
- * value-free result; WebMCP invocation returns the tool's output. Neither persists
2679
- * transient outcomes on the item.
2787
+ * Authorization and preparation return the existing item shape. Fill and passkey
2788
+ * operations return value-free results; WebMCP invocation returns the tool's
2789
+ * output. None persist transient outcomes on the item.
2680
2790
  */
2681
2791
  export type VaultItemOperationResponse =
2682
2792
  | VaultItemOperationResponse.WalletVaultItem
@@ -2684,6 +2794,7 @@ export type VaultItemOperationResponse =
2684
2794
  | CredentialAccountVaultItem
2685
2795
  | CredentialVaultItem
2686
2796
  | FillVaultItemOperationResult
2797
+ | PasskeyVaultItemOperationResult
2687
2798
  | OnePasswordFillVaultItemOperationResult
2688
2799
  | WebmcpInvokeVaultItemOperationResult;
2689
2800
 
@@ -2766,6 +2877,9 @@ export namespace VaultItemOperationResponse {
2766
2877
  | 'collect'
2767
2878
  | 'prepare_checkout'
2768
2879
  | 'fill'
2880
+ | 'arm_passkey'
2881
+ | 'register_passkey'
2882
+ | 'disarm_passkey'
2769
2883
  | '1pw_create_access_request'
2770
2884
  | '1pw_access_request_status'
2771
2885
  | '1pw_fill'
@@ -2860,6 +2974,9 @@ export namespace VaultItemOperationResponse {
2860
2974
  | 'collect'
2861
2975
  | 'prepare_checkout'
2862
2976
  | 'fill'
2977
+ | 'arm_passkey'
2978
+ | 'register_passkey'
2979
+ | 'disarm_passkey'
2863
2980
  | '1pw_create_access_request'
2864
2981
  | '1pw_access_request_status'
2865
2982
  | '1pw_fill'
@@ -3268,6 +3385,9 @@ export type ItemPerformOperationParams =
3268
3385
  | ItemPerformOperationParams.CollectVaultItemOperationRequest
3269
3386
  | ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest
3270
3387
  | ItemPerformOperationParams.FillVaultItemOperationRequest
3388
+ | ItemPerformOperationParams.ArmPasskeyVaultItemOperationRequest
3389
+ | ItemPerformOperationParams.RegisterPasskeyVaultItemOperationRequest
3390
+ | ItemPerformOperationParams.DisarmPasskeyVaultItemOperationRequest
3271
3391
  | ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest
3272
3392
  | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest
3273
3393
  | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
@@ -3435,6 +3555,75 @@ export declare namespace ItemPerformOperationParams {
3435
3555
  timeout_ms?: number;
3436
3556
  }
3437
3557
 
3558
+ export interface ArmPasskeyVaultItemOperationRequest {
3559
+ /**
3560
+ * Path param
3561
+ */
3562
+ id_or_name: string;
3563
+
3564
+ /**
3565
+ * Body param: Browser session ID, not a reusable browser name.
3566
+ */
3567
+ browser_id: string;
3568
+
3569
+ /**
3570
+ * Body param
3571
+ */
3572
+ type: 'arm_passkey';
3573
+
3574
+ /**
3575
+ * Body param: Passkey field to arm. Required when more than one passkey field
3576
+ * holds a passkey.
3577
+ */
3578
+ field?: string;
3579
+ }
3580
+
3581
+ export interface RegisterPasskeyVaultItemOperationRequest {
3582
+ /**
3583
+ * Path param
3584
+ */
3585
+ id_or_name: string;
3586
+
3587
+ /**
3588
+ * Body param: Browser session ID, not a reusable browser name.
3589
+ */
3590
+ browser_id: string;
3591
+
3592
+ /**
3593
+ * Body param
3594
+ */
3595
+ type: 'register_passkey';
3596
+
3597
+ /**
3598
+ * Body param: Empty passkey field to store the new passkey in. Required when more
3599
+ * than one passkey field is empty.
3600
+ */
3601
+ field?: string;
3602
+ }
3603
+
3604
+ export interface DisarmPasskeyVaultItemOperationRequest {
3605
+ /**
3606
+ * Path param
3607
+ */
3608
+ id_or_name: string;
3609
+
3610
+ /**
3611
+ * Body param: Browser session ID, not a reusable browser name.
3612
+ */
3613
+ browser_id: string;
3614
+
3615
+ /**
3616
+ * Body param
3617
+ */
3618
+ type: 'disarm_passkey';
3619
+
3620
+ /**
3621
+ * Body param: Limit disarming to one passkey field. Omit to disarm every passkey
3622
+ * field of the item.
3623
+ */
3624
+ field?: string;
3625
+ }
3626
+
3438
3627
  export interface OnePasswordRequestAccessVaultItemOperationRequest {
3439
3628
  /**
3440
3629
  * Path param
@@ -3852,6 +4041,7 @@ export declare namespace Items {
3852
4041
  type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
3853
4042
  type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
3854
4043
  type AgentcardPreparedProcessor as AgentcardPreparedProcessor,
4044
+ type ArmPasskeyVaultItemOperationRequest as ArmPasskeyVaultItemOperationRequest,
3855
4045
  type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest,
3856
4046
  type CardVaultItemSpec as CardVaultItemSpec,
3857
4047
  type CardVaultItemState as CardVaultItemState,
@@ -3873,6 +4063,7 @@ export declare namespace Items {
3873
4063
  type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate,
3874
4064
  type CredentialVaultItemState as CredentialVaultItemState,
3875
4065
  type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest,
4066
+ type DisarmPasskeyVaultItemOperationRequest as DisarmPasskeyVaultItemOperationRequest,
3876
4067
  type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
3877
4068
  type FillVaultItemOperationResult as FillVaultItemOperationResult,
3878
4069
  type KernelCardState as KernelCardState,
@@ -3898,7 +4089,9 @@ export declare namespace Items {
3898
4089
  type OnePasswordOAuthAction as OnePasswordOAuthAction,
3899
4090
  type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest,
3900
4091
  type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest,
4092
+ type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult,
3901
4093
  type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest,
4094
+ type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest,
3902
4095
  type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest,
3903
4096
  type VaultCardAliases as VaultCardAliases,
3904
4097
  type VaultCardFillField as VaultCardFillField,
@@ -6,6 +6,7 @@ import {
6
6
  AgentcardCheckoutAuthorization,
7
7
  AgentcardCheckoutPreparation,
8
8
  AgentcardPreparedProcessor,
9
+ ArmPasskeyVaultItemOperationRequest,
9
10
  AuthorizeVaultItemOperationRequest,
10
11
  CardVaultItemSpec,
11
12
  CardVaultItemState,
@@ -27,6 +28,7 @@ import {
27
28
  CredentialVaultItemSpecUpdate,
28
29
  CredentialVaultItemState,
29
30
  CredentialVaultItemUpdateRequest,
31
+ DisarmPasskeyVaultItemOperationRequest,
30
32
  FillVaultItemOperationRequest,
31
33
  FillVaultItemOperationResult,
32
34
  ItemDeleteParams,
@@ -61,7 +63,9 @@ import {
61
63
  OnePasswordOAuthAction,
62
64
  OnePasswordRecoverVaultItemOperationRequest,
63
65
  OnePasswordRequestAccessVaultItemOperationRequest,
66
+ PasskeyVaultItemOperationResult,
64
67
  PrepareCheckoutVaultItemOperationRequest,
68
+ RegisterPasskeyVaultItemOperationRequest,
65
69
  RestartVerificationVaultItemOperationRequest,
66
70
  VaultCardAliases,
67
71
  VaultCardFillField,
@@ -271,6 +275,7 @@ export declare namespace Vaults {
271
275
  type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
272
276
  type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
273
277
  type AgentcardPreparedProcessor as AgentcardPreparedProcessor,
278
+ type ArmPasskeyVaultItemOperationRequest as ArmPasskeyVaultItemOperationRequest,
274
279
  type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest,
275
280
  type CardVaultItemSpec as CardVaultItemSpec,
276
281
  type CardVaultItemState as CardVaultItemState,
@@ -292,6 +297,7 @@ export declare namespace Vaults {
292
297
  type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate,
293
298
  type CredentialVaultItemState as CredentialVaultItemState,
294
299
  type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest,
300
+ type DisarmPasskeyVaultItemOperationRequest as DisarmPasskeyVaultItemOperationRequest,
295
301
  type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
296
302
  type FillVaultItemOperationResult as FillVaultItemOperationResult,
297
303
  type KernelCardState as KernelCardState,
@@ -317,7 +323,9 @@ export declare namespace Vaults {
317
323
  type OnePasswordOAuthAction as OnePasswordOAuthAction,
318
324
  type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest,
319
325
  type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest,
326
+ type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult,
320
327
  type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest,
328
+ type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest,
321
329
  type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest,
322
330
  type VaultCardAliases as VaultCardAliases,
323
331
  type VaultCardFillField as VaultCardFillField,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.130.0'; // x-release-please-version
1
+ export const VERSION = '0.132.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.130.0";
1
+ export declare const VERSION = "0.132.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.130.0";
1
+ export declare const VERSION = "0.132.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.130.0'; // x-release-please-version
4
+ exports.VERSION = '0.132.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.130.0'; // x-release-please-version
1
+ export const VERSION = '0.132.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map