@onkernel/sdk 0.129.0 → 0.131.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.
@@ -234,6 +234,36 @@ export interface AgentcardCheckoutPreparation {
234
234
  expires_at?: string;
235
235
  }
236
236
  export type AgentcardPreparedProcessor = 'square' | 'braintree' | 'worldpay' | 'bambora' | 'mercado_pago' | 'adyen';
237
+ /**
238
+ * Let a browser attached to the item's vault sign in with a stored passkey. Only
239
+ * invoke when the item advertises `arm_passkey`. Returns immediately; there is no
240
+ * time limit. While armed, when a page in that browser whose origin matches the
241
+ * passkey's relying party asks for a passkey (`navigator.credentials.get`,
242
+ * including autofill requests made at page load), Kernel answers with this
243
+ * passkey. The private key never enters the browser: Kernel signs on its servers,
244
+ * using the origin Chrome reports for the requesting frame. Arming a passkey for a
245
+ * relying party replaces any passkey armed earlier in the browser for the same
246
+ * relying party. The arm lasts until `disarm_passkey`, the browser ends, the vault
247
+ * is detached, or the item or field is deleted. Drive the sign-in with your own
248
+ * browser tools and inspect the page to confirm it. A page opened in a new tab or
249
+ * window can run its first scripts before Kernel's handler attaches; if such a
250
+ * page asks for a passkey as soon as it loads, reload it. While armed, any script
251
+ * running on the relying party's pages can obtain a sign-in without user
252
+ * interaction, as with a password manager that fills automatically; disarm when
253
+ * the task is done. Passkeys report a signature counter of 0 and backup flags, as
254
+ * synced passkeys do.
255
+ */
256
+ export interface ArmPasskeyVaultItemOperationRequest {
257
+ /**
258
+ * Browser session ID, not a reusable browser name.
259
+ */
260
+ browser_id: string;
261
+ type: 'arm_passkey';
262
+ /**
263
+ * Passkey field to arm. Required when more than one passkey field holds a passkey.
264
+ */
265
+ field?: string;
266
+ }
237
267
  /**
238
268
  * Authorize a Link or Kernel card using its existing purchase specification. Use
239
269
  * only after explicit user approval and when the item advertises authorize; follow
@@ -279,7 +309,8 @@ export declare namespace CardVaultItemSpec {
279
309
  */
280
310
  interface LinkCardVaultItemSpec {
281
311
  /**
282
- * Integer amount in minor currency units, at most 50000.
312
+ * Integer amount in minor currency units, at most 50000. With recurring, the
313
+ * spending limit per period, not a lifetime total.
283
314
  */
284
315
  amount: number;
285
316
  context: string;
@@ -301,6 +332,18 @@ export declare namespace CardVaultItemSpec {
301
332
  metadata?: {
302
333
  [key: string]: string;
303
334
  };
335
+ /**
336
+ * Recurring terms for a subscription or other repeated purchase. The amount
337
+ * becomes the spending limit for each period of interval_count intervals, for
338
+ * example every 2 weeks. The merchant schedules charges. The card stays ready
339
+ * after each charge until it expires or is deleted; do not create a new card each
340
+ * period. Deleting the card, its wallet or its vault first cancels the credential
341
+ * with Link, so later charges decline; if Link cannot be reached, deletion returns
342
+ * 409 provider_revocation_pending and should be retried. Deletion does not cancel
343
+ * the subscription with the merchant. Recurring terms cannot be changed once the
344
+ * card is authorized.
345
+ */
346
+ recurring?: LinkCardVaultItemSpec.Recurring;
304
347
  totals?: Array<LinkCardVaultItemSpec.Total>;
305
348
  }
306
349
  namespace LinkCardVaultItemSpec {
@@ -328,6 +371,24 @@ export declare namespace CardVaultItemSpec {
328
371
  type: string;
329
372
  }
330
373
  }
374
+ /**
375
+ * Recurring terms for a subscription or other repeated purchase. The amount
376
+ * becomes the spending limit for each period of interval_count intervals, for
377
+ * example every 2 weeks. The merchant schedules charges. The card stays ready
378
+ * after each charge until it expires or is deleted; do not create a new card each
379
+ * period. Deleting the card, its wallet or its vault first cancels the credential
380
+ * with Link, so later charges decline; if Link cannot be reached, deletion returns
381
+ * 409 provider_revocation_pending and should be retried. Deletion does not cancel
382
+ * the subscription with the merchant. Recurring terms cannot be changed once the
383
+ * card is authorized.
384
+ */
385
+ interface Recurring {
386
+ interval: 'day' | 'week' | 'month' | 'year';
387
+ /**
388
+ * Number of intervals per period. Link defaults it to 1.
389
+ */
390
+ interval_count?: number;
391
+ }
331
392
  interface Total {
332
393
  /**
333
394
  * Total amount in minor currency units.
@@ -525,7 +586,7 @@ export declare namespace CredentialAccountVaultItem {
525
586
  */
526
587
  interface AvailableExpansion {
527
588
  description: string;
528
- type: 'payment_methods';
589
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
529
590
  }
530
591
  /**
531
592
  * An operation that is currently valid for this item. Read the description before
@@ -533,7 +594,7 @@ export declare namespace CredentialAccountVaultItem {
533
594
  */
534
595
  interface AvailableOperation {
535
596
  description: string;
536
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
597
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
537
598
  }
538
599
  }
539
600
  export interface CredentialAccountVaultItemRequest {
@@ -608,7 +669,7 @@ export interface CredentialVaultFieldDefinition {
608
669
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
609
670
  * private key), a lowercase `rpId` domain, and optional `username` and
610
671
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
611
- * pages.
672
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
612
673
  */
613
674
  type: CredentialVaultFieldType;
614
675
  /**
@@ -641,7 +702,7 @@ export interface CredentialVaultFieldDefinitionInput {
641
702
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
642
703
  * private key), a lowercase `rpId` domain, and optional `username` and
643
704
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
644
- * pages.
705
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
645
706
  */
646
707
  type: CredentialVaultFieldType;
647
708
  /**
@@ -679,7 +740,7 @@ export interface CredentialVaultFieldInput {
679
740
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
680
741
  * private key), a lowercase `rpId` domain, and optional `username` and
681
742
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
682
- * pages.
743
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
683
744
  */
684
745
  type: CredentialVaultFieldType;
685
746
  /**
@@ -744,7 +805,7 @@ export interface CredentialVaultFieldState {
744
805
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
745
806
  * private key), a lowercase `rpId` domain, and optional `username` and
746
807
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
747
- * pages.
808
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
748
809
  */
749
810
  export type CredentialVaultFieldType = 'text' | 'email' | 'password' | 'totp' | 'passkey';
750
811
  /**
@@ -846,7 +907,7 @@ export declare namespace CredentialVaultItem {
846
907
  */
847
908
  interface AvailableExpansion {
848
909
  description: string;
849
- type: 'payment_methods';
910
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
850
911
  }
851
912
  /**
852
913
  * An operation that is currently valid for this item. Read the description before
@@ -854,7 +915,7 @@ export declare namespace CredentialVaultItem {
854
915
  */
855
916
  interface AvailableOperation {
856
917
  description: string;
857
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
918
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
858
919
  }
859
920
  interface OnePasswordAccessApprovalAction {
860
921
  /**
@@ -963,6 +1024,23 @@ export interface CredentialVaultItemUpdateRequest {
963
1024
  */
964
1025
  expected_item_id?: string;
965
1026
  }
1027
+ /**
1028
+ * Stop a browser from using this item's passkeys: removes its armed passkeys and
1029
+ * its pending registration into this item. Pages that already loaded keep Kernel's
1030
+ * WebAuthn handler but get the browser's own behavior.
1031
+ */
1032
+ export interface DisarmPasskeyVaultItemOperationRequest {
1033
+ /**
1034
+ * Browser session ID, not a reusable browser name.
1035
+ */
1036
+ browser_id: string;
1037
+ type: 'disarm_passkey';
1038
+ /**
1039
+ * Limit disarming to one passkey field. Omit to disarm every passkey field of the
1040
+ * item.
1041
+ */
1042
+ field?: string;
1043
+ }
966
1044
  /**
967
1045
  * Use a vault item in a browser session, for example to fill a login or payment
968
1046
  * form. Only invoke when the item advertises `fill`; the advertised operation
@@ -1007,7 +1085,8 @@ export interface FillVaultItemOperationRequest {
1007
1085
  */
1008
1086
  page_url?: string;
1009
1087
  /**
1010
- * Total operation deadline in milliseconds, not a per-field timeout.
1088
+ * @deprecated Ignored. Fill sets no operation deadline; typing pace adapts to the
1089
+ * length of the values instead. Accepted for compatibility.
1011
1090
  */
1012
1091
  timeout_ms?: number;
1013
1092
  }
@@ -1038,8 +1117,11 @@ export interface FillVaultItemOperationResult {
1038
1117
  export interface KernelCardState {
1039
1118
  provider: 'kernel';
1040
1119
  /**
1041
- * pending_authorization on a Visa purchase waits for the cardholder to approve it
1042
- * through the spend_approval action; an unused link expires after 30 minutes.
1120
+ * pending_authorization waits for cardholder approval on Visa purchases or fresh
1121
+ * security-code collection on alias-mode purchases through the spend_approval
1122
+ * action; an unused link expires after 30 minutes. Alias-mode cards become ready
1123
+ * after collection and expire at the temporary security-code alias deadline, by
1124
+ * default five minutes later. An expired alias purchase requires a new card.
1043
1125
  * recovery_required means verification, approving the purchase or issuing the
1044
1126
  * one-time code has an unresolved outcome. A server-classified initial attestation
1045
1127
  * failure before intent dispatch may advertise restart_verification to prepare a
@@ -1082,12 +1164,13 @@ export declare namespace KernelCardState {
1082
1164
  * spend_approval action: the cardholder approves it with a Visa passkey, and
1083
1165
  * Kernel registers a Visa intent for one transaction up to the amount before
1084
1166
  * issuing the code. For supported cards whose network cannot be enrolled for
1085
- * agentic tokens, authorize prepares checkout details without issuing a one-time
1086
- * code. The card can be filled into one checkout before its expires_at, one hour
1087
- * after authorization. Fill types those details on merchant_url's origin. The
1088
- * amount, merchant_url and merchant_country are recorded but do not restrict
1089
- * payment requests sent by the browser. Card updates are not supported; delete and
1090
- * create a new item instead.
1167
+ * agentic tokens, authorize returns pending_authorization with a spend_approval
1168
+ * action to collect a fresh security code in a hosted field. Once collected, the
1169
+ * card is ready and can be filled before its expires_at, by default five minutes
1170
+ * after collection. An expired card requires a new purchase. Fill types those
1171
+ * details on merchant_url's origin. The amount, merchant_url and merchant_country
1172
+ * are recorded but do not restrict payment requests sent by the browser. Card
1173
+ * updates are not supported; delete and create a new item instead.
1091
1174
  */
1092
1175
  export interface KernelCardVaultItemSpec {
1093
1176
  /**
@@ -1203,6 +1286,154 @@ export interface KernelWalletState {
1203
1286
  export interface KernelWalletVaultItemSpec {
1204
1287
  provider: 'kernel';
1205
1288
  }
1289
+ /**
1290
+ * One entry of Link's `GET /shipping_addresses` response, passed through as Link
1291
+ * reports it. Kernel never stores it.
1292
+ */
1293
+ export interface LinkShippingAddress {
1294
+ /**
1295
+ * Link shipping address ID.
1296
+ */
1297
+ id: string;
1298
+ is_default: boolean;
1299
+ nickname: string | null;
1300
+ /**
1301
+ * Link's nullable postal address fields. Omitted from the shipping address when
1302
+ * Link reports null.
1303
+ */
1304
+ address?: LinkShippingAddress.Address;
1305
+ }
1306
+ export declare namespace LinkShippingAddress {
1307
+ /**
1308
+ * Link's nullable postal address fields. Omitted from the shipping address when
1309
+ * Link reports null.
1310
+ */
1311
+ interface Address {
1312
+ /**
1313
+ * State, province or region.
1314
+ */
1315
+ administrative_area: string | null;
1316
+ country_code: string | null;
1317
+ dependent_locality: string | null;
1318
+ line_1: string | null;
1319
+ line_2: string | null;
1320
+ /**
1321
+ * City or town.
1322
+ */
1323
+ locality: string | null;
1324
+ name: string | null;
1325
+ postal_code: string | null;
1326
+ sorting_code: string | null;
1327
+ }
1328
+ }
1329
+ /**
1330
+ * Link's `GET /userinfo` response for the connected wallet, passed through as Link
1331
+ * reports it when the `link_user_info` expansion is requested. Kernel never stores
1332
+ * it. Null fields are null at Link; omitted fields were not reported. Amounts are
1333
+ * in the minor unit of `default_spend_request_currency`.
1334
+ */
1335
+ export interface LinkUserInfo {
1336
+ /**
1337
+ * Stable Link user ID.
1338
+ */
1339
+ id: string | null;
1340
+ email: string | null;
1341
+ first_name: string | null;
1342
+ last_name: string | null;
1343
+ name: string | null;
1344
+ phone: string | null;
1345
+ /**
1346
+ * The Link user's postal address. Omitted when Link reports none.
1347
+ */
1348
+ address?: LinkUserInfo.Address;
1349
+ /**
1350
+ * Link's agent wallet spend limits, per transaction and over rolling periods.
1351
+ */
1352
+ agent_wallet_spend_limits?: LinkUserInfo.AgentWalletSpendLimits;
1353
+ /**
1354
+ * Verification Link requires from the user before the agent wallet can spend.
1355
+ */
1356
+ agent_wallet_step_up?: LinkUserInfo.AgentWalletStepUp;
1357
+ /**
1358
+ * Lowercase ISO currency Link applies to a spend request created without one.
1359
+ */
1360
+ default_spend_request_currency?: string;
1361
+ /**
1362
+ * Whether the user can fund purchases from a Link balance.
1363
+ */
1364
+ eligible_for_balance?: boolean;
1365
+ }
1366
+ export declare namespace LinkUserInfo {
1367
+ /**
1368
+ * The Link user's postal address. Omitted when Link reports none.
1369
+ */
1370
+ interface Address {
1371
+ city: string | null;
1372
+ country: string | null;
1373
+ line1: string | null;
1374
+ line2: string | null;
1375
+ postal_code: string | null;
1376
+ state: string | null;
1377
+ }
1378
+ /**
1379
+ * Link's agent wallet spend limits, per transaction and over rolling periods.
1380
+ */
1381
+ interface AgentWalletSpendLimits {
1382
+ daily: AgentWalletSpendLimits.Daily;
1383
+ per_transaction: AgentWalletSpendLimits.PerTransaction;
1384
+ thirty_day: AgentWalletSpendLimits.ThirtyDay;
1385
+ }
1386
+ namespace AgentWalletSpendLimits {
1387
+ interface Daily {
1388
+ /**
1389
+ * Null means unlimited.
1390
+ */
1391
+ limit: number | null;
1392
+ /**
1393
+ * Amount still available in the rolling period; null means unlimited.
1394
+ */
1395
+ remaining: number | null;
1396
+ /**
1397
+ * Amount already spent in the rolling period.
1398
+ */
1399
+ used: number;
1400
+ }
1401
+ interface PerTransaction {
1402
+ /**
1403
+ * Null means unlimited.
1404
+ */
1405
+ limit: number | null;
1406
+ }
1407
+ interface ThirtyDay {
1408
+ /**
1409
+ * Null means unlimited.
1410
+ */
1411
+ limit: number | null;
1412
+ /**
1413
+ * Amount still available in the rolling period; null means unlimited.
1414
+ */
1415
+ remaining: number | null;
1416
+ /**
1417
+ * Amount already spent in the rolling period.
1418
+ */
1419
+ used: number;
1420
+ }
1421
+ }
1422
+ /**
1423
+ * Verification Link requires from the user before the agent wallet can spend.
1424
+ */
1425
+ interface AgentWalletStepUp {
1426
+ /**
1427
+ * URL where the user completes verification; null when no action is available.
1428
+ */
1429
+ action_url: string | null;
1430
+ /**
1431
+ * Link status such as not_required, ssn_verification, identity_verification,
1432
+ * contact_support or complete.
1433
+ */
1434
+ status: string;
1435
+ }
1436
+ }
1206
1437
  export interface ManagedAuthCredentialVaultField {
1207
1438
  /**
1208
1439
  * Text, email, and password have form inputs; totp and passkey do not and are
@@ -1217,7 +1448,7 @@ export interface ManagedAuthCredentialVaultField {
1217
1448
  * `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
1218
1449
  * private key), a lowercase `rpId` domain, and optional `username` and
1219
1450
  * `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
1220
- * pages.
1451
+ * pages; use arm_passkey to sign in with one and register_passkey to create one.
1221
1452
  */
1222
1453
  type: CredentialVaultFieldType;
1223
1454
  }
@@ -1593,6 +1824,19 @@ export interface OnePasswordRequestAccessVaultItemOperationRequest {
1593
1824
  keywords?: Array<string>;
1594
1825
  reason?: string;
1595
1826
  }
1827
+ export interface PasskeyVaultItemOperationResult {
1828
+ /**
1829
+ * armed means the browser will answer matching passkey requests; it does not mean
1830
+ * a page has asked yet. disarmed means the browser no longer uses this item's
1831
+ * passkeys.
1832
+ */
1833
+ status: 'armed' | 'disarmed';
1834
+ type: 'arm_passkey' | 'register_passkey' | 'disarm_passkey';
1835
+ /**
1836
+ * Relying party the armed passkey answers for. Returned by arm_passkey.
1837
+ */
1838
+ rp_id?: string;
1839
+ }
1596
1840
  /**
1597
1841
  * Prepare an unused AgentCard card for a supported checkout. Deliver the returned
1598
1842
  * approval URL and keep the approval page open. Poll the item until
@@ -1612,6 +1856,32 @@ export interface PrepareCheckoutVaultItemOperationRequest {
1612
1856
  checkout: VaultCheckoutContext;
1613
1857
  type: 'prepare_checkout';
1614
1858
  }
1859
+ /**
1860
+ * Let a browser attached to the item's vault create a passkey on a website and
1861
+ * store it in an empty passkey field. Only invoke when the item advertises
1862
+ * `register_passkey`; declare the field first, for example by adding an optional
1863
+ * passkey field with a credential update. Returns immediately; there is no time
1864
+ * limit. The next passkey a page in that browser creates
1865
+ * (`navigator.credentials.create`) is generated by Kernel, stored in the field,
1866
+ * and only then returned to the page, so the website never receives a passkey
1867
+ * Kernel failed to store. Each browser has one pending registration; a later
1868
+ * `register_passkey` replaces it. Drive the website's "add a passkey" flow with
1869
+ * your own browser tools, then confirm by reading the item (the field reports
1870
+ * `has_value`) or its `credential_passkey_registered` event, and by signing in
1871
+ * with `arm_passkey`. Only ES256 passkeys are created.
1872
+ */
1873
+ export interface RegisterPasskeyVaultItemOperationRequest {
1874
+ /**
1875
+ * Browser session ID, not a reusable browser name.
1876
+ */
1877
+ browser_id: string;
1878
+ type: 'register_passkey';
1879
+ /**
1880
+ * Empty passkey field to store the new passkey in. Required when more than one
1881
+ * passkey field is empty.
1882
+ */
1883
+ field?: string;
1884
+ }
1615
1885
  /**
1616
1886
  * Explicitly prepare a fresh local verification session for the same Kernel Visa
1617
1887
  * purchase and connected wallet, only when restart_verification is advertised.
@@ -1780,7 +2050,7 @@ export declare namespace VaultItem {
1780
2050
  */
1781
2051
  interface AvailableExpansion {
1782
2052
  description: string;
1783
- type: 'payment_methods';
2053
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
1784
2054
  }
1785
2055
  /**
1786
2056
  * An operation that is currently valid for this item. Read the description before
@@ -1788,12 +2058,24 @@ export declare namespace VaultItem {
1788
2058
  */
1789
2059
  interface AvailableOperation {
1790
2060
  description: string;
1791
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
2061
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
1792
2062
  }
1793
2063
  /**
1794
2064
  * Live, non-persisted data requested through the item GET expand parameter.
1795
2065
  */
1796
2066
  interface Expanded {
2067
+ /**
2068
+ * Link's saved shipping addresses, present when the `link_shipping_addresses`
2069
+ * expansion is requested.
2070
+ */
2071
+ link_shipping_addresses?: Array<ItemsAPI.LinkShippingAddress>;
2072
+ /**
2073
+ * Link's `GET /userinfo` response for the connected wallet, passed through as Link
2074
+ * reports it when the `link_user_info` expansion is requested. Kernel never stores
2075
+ * it. Null fields are null at Link; omitted fields were not reported. Amounts are
2076
+ * in the minor unit of `default_spend_request_currency`.
2077
+ */
2078
+ link_user_info?: ItemsAPI.LinkUserInfo;
1797
2079
  payment_methods?: Array<ItemsAPI.VaultPaymentMethod>;
1798
2080
  }
1799
2081
  }
@@ -1832,7 +2114,7 @@ export declare namespace VaultItem {
1832
2114
  */
1833
2115
  interface AvailableExpansion {
1834
2116
  description: string;
1835
- type: 'payment_methods';
2117
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
1836
2118
  }
1837
2119
  /**
1838
2120
  * An operation that is currently valid for this item. Read the description before
@@ -1840,7 +2122,7 @@ export declare namespace VaultItem {
1840
2122
  */
1841
2123
  interface AvailableOperation {
1842
2124
  description: string;
1843
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
2125
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
1844
2126
  }
1845
2127
  }
1846
2128
  }
@@ -1890,11 +2172,11 @@ export interface VaultItemEvent {
1890
2172
  };
1891
2173
  }
1892
2174
  /**
1893
- * Authorization and preparation return the existing item shape. Fill returns a
1894
- * value-free result; WebMCP invocation returns the tool's output. Neither persists
1895
- * transient outcomes on the item.
2175
+ * Authorization and preparation return the existing item shape. Fill and passkey
2176
+ * operations return value-free results; WebMCP invocation returns the tool's
2177
+ * output. None persist transient outcomes on the item.
1896
2178
  */
1897
- export type VaultItemOperationResponse = VaultItemOperationResponse.WalletVaultItem | VaultItemOperationResponse.CardVaultItem | CredentialAccountVaultItem | CredentialVaultItem | FillVaultItemOperationResult | OnePasswordFillVaultItemOperationResult | WebmcpInvokeVaultItemOperationResult;
2179
+ export type VaultItemOperationResponse = VaultItemOperationResponse.WalletVaultItem | VaultItemOperationResponse.CardVaultItem | CredentialAccountVaultItem | CredentialVaultItem | FillVaultItemOperationResult | PasskeyVaultItemOperationResult | OnePasswordFillVaultItemOperationResult | WebmcpInvokeVaultItemOperationResult;
1898
2180
  export declare namespace VaultItemOperationResponse {
1899
2181
  interface WalletVaultItem {
1900
2182
  id: string;
@@ -1943,7 +2225,7 @@ export declare namespace VaultItemOperationResponse {
1943
2225
  */
1944
2226
  interface AvailableExpansion {
1945
2227
  description: string;
1946
- type: 'payment_methods';
2228
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
1947
2229
  }
1948
2230
  /**
1949
2231
  * An operation that is currently valid for this item. Read the description before
@@ -1951,12 +2233,24 @@ export declare namespace VaultItemOperationResponse {
1951
2233
  */
1952
2234
  interface AvailableOperation {
1953
2235
  description: string;
1954
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
2236
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
1955
2237
  }
1956
2238
  /**
1957
2239
  * Live, non-persisted data requested through the item GET expand parameter.
1958
2240
  */
1959
2241
  interface Expanded {
2242
+ /**
2243
+ * Link's saved shipping addresses, present when the `link_shipping_addresses`
2244
+ * expansion is requested.
2245
+ */
2246
+ link_shipping_addresses?: Array<ItemsAPI.LinkShippingAddress>;
2247
+ /**
2248
+ * Link's `GET /userinfo` response for the connected wallet, passed through as Link
2249
+ * reports it when the `link_user_info` expansion is requested. Kernel never stores
2250
+ * it. Null fields are null at Link; omitted fields were not reported. Amounts are
2251
+ * in the minor unit of `default_spend_request_currency`.
2252
+ */
2253
+ link_user_info?: ItemsAPI.LinkUserInfo;
1960
2254
  payment_methods?: Array<ItemsAPI.VaultPaymentMethod>;
1961
2255
  }
1962
2256
  }
@@ -1995,7 +2289,7 @@ export declare namespace VaultItemOperationResponse {
1995
2289
  */
1996
2290
  interface AvailableExpansion {
1997
2291
  description: string;
1998
- type: 'payment_methods';
2292
+ type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
1999
2293
  }
2000
2294
  /**
2001
2295
  * An operation that is currently valid for this item. Read the description before
@@ -2003,7 +2297,7 @@ export declare namespace VaultItemOperationResponse {
2003
2297
  */
2004
2298
  interface AvailableOperation {
2005
2299
  description: string;
2006
- type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
2300
+ type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke';
2007
2301
  }
2008
2302
  }
2009
2303
  }
@@ -2249,7 +2543,7 @@ export interface ItemRetrieveParams {
2249
2543
  * Query param: Live fields advertised by `available_expansions` to include in
2250
2544
  * `expanded`.
2251
2545
  */
2252
- expand?: Array<'payment_methods'>;
2546
+ expand?: Array<'payment_methods' | 'link_user_info' | 'link_shipping_addresses'>;
2253
2547
  /**
2254
2548
  * Query param: Hold for up to this many seconds while the item is pending
2255
2549
  * authorization, approval, or credential collection. Return the current item when
@@ -2324,7 +2618,7 @@ export interface ItemEventsParams {
2324
2618
  */
2325
2619
  wait?: number;
2326
2620
  }
2327
- export type ItemPerformOperationParams = ItemPerformOperationParams.AuthorizeVaultItemOperationRequest | ItemPerformOperationParams.RestartVerificationVaultItemOperationRequest | ItemPerformOperationParams.ConfirmTransactionVaultItemOperationRequest | ItemPerformOperationParams.CollectVaultItemOperationRequest | ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest | ItemPerformOperationParams.FillVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest;
2621
+ export type ItemPerformOperationParams = ItemPerformOperationParams.AuthorizeVaultItemOperationRequest | ItemPerformOperationParams.RestartVerificationVaultItemOperationRequest | ItemPerformOperationParams.ConfirmTransactionVaultItemOperationRequest | ItemPerformOperationParams.CollectVaultItemOperationRequest | ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest | ItemPerformOperationParams.FillVaultItemOperationRequest | ItemPerformOperationParams.ArmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.RegisterPasskeyVaultItemOperationRequest | ItemPerformOperationParams.DisarmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest;
2328
2622
  export declare namespace ItemPerformOperationParams {
2329
2623
  interface AuthorizeVaultItemOperationRequest {
2330
2624
  /**
@@ -2448,10 +2742,68 @@ export declare namespace ItemPerformOperationParams {
2448
2742
  */
2449
2743
  page_url?: string;
2450
2744
  /**
2451
- * Body param: Total operation deadline in milliseconds, not a per-field timeout.
2745
+ * @deprecated Body param: Ignored. Fill sets no operation deadline; typing pace
2746
+ * adapts to the length of the values instead. Accepted for compatibility.
2452
2747
  */
2453
2748
  timeout_ms?: number;
2454
2749
  }
2750
+ interface ArmPasskeyVaultItemOperationRequest {
2751
+ /**
2752
+ * Path param
2753
+ */
2754
+ id_or_name: string;
2755
+ /**
2756
+ * Body param: Browser session ID, not a reusable browser name.
2757
+ */
2758
+ browser_id: string;
2759
+ /**
2760
+ * Body param
2761
+ */
2762
+ type: 'arm_passkey';
2763
+ /**
2764
+ * Body param: Passkey field to arm. Required when more than one passkey field
2765
+ * holds a passkey.
2766
+ */
2767
+ field?: string;
2768
+ }
2769
+ interface RegisterPasskeyVaultItemOperationRequest {
2770
+ /**
2771
+ * Path param
2772
+ */
2773
+ id_or_name: string;
2774
+ /**
2775
+ * Body param: Browser session ID, not a reusable browser name.
2776
+ */
2777
+ browser_id: string;
2778
+ /**
2779
+ * Body param
2780
+ */
2781
+ type: 'register_passkey';
2782
+ /**
2783
+ * Body param: Empty passkey field to store the new passkey in. Required when more
2784
+ * than one passkey field is empty.
2785
+ */
2786
+ field?: string;
2787
+ }
2788
+ interface DisarmPasskeyVaultItemOperationRequest {
2789
+ /**
2790
+ * Path param
2791
+ */
2792
+ id_or_name: string;
2793
+ /**
2794
+ * Body param: Browser session ID, not a reusable browser name.
2795
+ */
2796
+ browser_id: string;
2797
+ /**
2798
+ * Body param
2799
+ */
2800
+ type: 'disarm_passkey';
2801
+ /**
2802
+ * Body param: Limit disarming to one passkey field. Omit to disarm every passkey
2803
+ * field of the item.
2804
+ */
2805
+ field?: string;
2806
+ }
2455
2807
  interface OnePasswordRequestAccessVaultItemOperationRequest {
2456
2808
  /**
2457
2809
  * Path param
@@ -2798,6 +3150,6 @@ export declare namespace ItemUpsertParams {
2798
3150
  }
2799
3151
  }
2800
3152
  export declare namespace Items {
2801
- export { type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldDefinitionInput as CredentialVaultFieldDefinitionInput, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
3153
+ export { type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type ArmPasskeyVaultItemOperationRequest as ArmPasskeyVaultItemOperationRequest, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldDefinitionInput as CredentialVaultFieldDefinitionInput, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type DisarmPasskeyVaultItemOperationRequest as DisarmPasskeyVaultItemOperationRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type LinkShippingAddress as LinkShippingAddress, type LinkUserInfo as LinkUserInfo, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
2802
3154
  }
2803
3155
  //# sourceMappingURL=items.d.mts.map