@onkernel/sdk 0.135.0 → 0.137.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 (88) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +2 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/lib/browser-routing.d.mts.map +1 -1
  11. package/lib/browser-routing.d.ts.map +1 -1
  12. package/lib/browser-routing.js +2 -0
  13. package/lib/browser-routing.js.map +1 -1
  14. package/lib/browser-routing.mjs +2 -0
  15. package/lib/browser-routing.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/browsers/browsers.d.mts +17 -1
  18. package/resources/browsers/browsers.d.mts.map +1 -1
  19. package/resources/browsers/browsers.d.ts +17 -1
  20. package/resources/browsers/browsers.d.ts.map +1 -1
  21. package/resources/browsers/browsers.js.map +1 -1
  22. package/resources/browsers/browsers.mjs.map +1 -1
  23. package/resources/browsers/index.d.mts +1 -1
  24. package/resources/browsers/index.d.mts.map +1 -1
  25. package/resources/browsers/index.d.ts +1 -1
  26. package/resources/browsers/index.d.ts.map +1 -1
  27. package/resources/browsers/index.js.map +1 -1
  28. package/resources/browsers/index.mjs.map +1 -1
  29. package/resources/browsers/telemetry.d.mts +4 -3
  30. package/resources/browsers/telemetry.d.mts.map +1 -1
  31. package/resources/browsers/telemetry.d.ts +4 -3
  32. package/resources/browsers/telemetry.d.ts.map +1 -1
  33. package/resources/index.d.mts +1 -1
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +1 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/projects/limits.d.mts +0 -2
  40. package/resources/projects/limits.d.mts.map +1 -1
  41. package/resources/projects/limits.d.ts +0 -2
  42. package/resources/projects/limits.d.ts.map +1 -1
  43. package/resources/projects/limits.js +0 -2
  44. package/resources/projects/limits.js.map +1 -1
  45. package/resources/projects/limits.mjs +0 -2
  46. package/resources/projects/limits.mjs.map +1 -1
  47. package/resources/projects/projects.d.mts +0 -2
  48. package/resources/projects/projects.d.mts.map +1 -1
  49. package/resources/projects/projects.d.ts +0 -2
  50. package/resources/projects/projects.d.ts.map +1 -1
  51. package/resources/projects/projects.js +0 -2
  52. package/resources/projects/projects.js.map +1 -1
  53. package/resources/projects/projects.mjs +0 -2
  54. package/resources/projects/projects.mjs.map +1 -1
  55. package/resources/vaults/index.d.mts +1 -1
  56. package/resources/vaults/index.d.mts.map +1 -1
  57. package/resources/vaults/index.d.ts +1 -1
  58. package/resources/vaults/index.d.ts.map +1 -1
  59. package/resources/vaults/index.js.map +1 -1
  60. package/resources/vaults/index.mjs.map +1 -1
  61. package/resources/vaults/items.d.mts +240 -34
  62. package/resources/vaults/items.d.mts.map +1 -1
  63. package/resources/vaults/items.d.ts +240 -34
  64. package/resources/vaults/items.d.ts.map +1 -1
  65. package/resources/vaults/items.js +7 -7
  66. package/resources/vaults/items.mjs +7 -7
  67. package/resources/vaults/vaults.d.mts +2 -2
  68. package/resources/vaults/vaults.d.mts.map +1 -1
  69. package/resources/vaults/vaults.d.ts +2 -2
  70. package/resources/vaults/vaults.d.ts.map +1 -1
  71. package/resources/vaults/vaults.js.map +1 -1
  72. package/resources/vaults/vaults.mjs.map +1 -1
  73. package/src/client.ts +2 -3
  74. package/src/lib/browser-routing.ts +2 -0
  75. package/src/resources/browsers/browsers.ts +19 -0
  76. package/src/resources/browsers/index.ts +1 -0
  77. package/src/resources/browsers/telemetry.ts +4 -2
  78. package/src/resources/index.ts +1 -0
  79. package/src/resources/projects/limits.ts +0 -2
  80. package/src/resources/projects/projects.ts +0 -2
  81. package/src/resources/vaults/index.ts +4 -0
  82. package/src/resources/vaults/items.ts +303 -31
  83. package/src/resources/vaults/vaults.ts +8 -0
  84. package/src/version.ts +1 -1
  85. package/version.d.mts +1 -1
  86. package/version.d.ts +1 -1
  87. package/version.js +1 -1
  88. package/version.mjs +1 -1
@@ -75,13 +75,13 @@ export declare class Items extends APIResource {
75
75
  * Unresolved payment operations normally block deletion, including operations on
76
76
  * child cards of a wallet. Deleting a connected Kernel wallet first blocks new
77
77
  * payments on it, then removes its enrolled card. If that fails, the wallet is
78
- * kept and keeps refusing payments; retry the deletion. A Link or Kernel card in
79
- * recovery_required for issuance, or an AgentCard card in recovery_required whose
80
- * checkout create response returned no authorization ID, may be explicitly
81
- * abandoned by deleting that card directly; deleting its wallet or vault remains
82
- * blocked until the card is deleted. Deleting or recreating an item is not proof
83
- * that a payment did not occur. Deleting a managed auth credential item leaves the
84
- * connection and its saved credential unchanged.
78
+ * kept and keeps refusing payments; retry the deletion. A Link, Kernel or Shop Pay
79
+ * card in recovery_required for issuance, or an AgentCard card in
80
+ * recovery_required whose checkout create response returned no authorization ID,
81
+ * may be explicitly abandoned by deleting that card directly; deleting its wallet
82
+ * or vault remains blocked until the card is deleted. Deleting or recreating an
83
+ * item is not proof that a payment did not occur. Deleting a managed auth
84
+ * credential item leaves the connection and its saved credential unchanged.
85
85
  *
86
86
  * @example
87
87
  * ```ts
@@ -295,17 +295,19 @@ export interface ArmPasskeyVaultItemOperationRequest {
295
295
  field?: string;
296
296
  }
297
297
  /**
298
- * Authorize a Link or Kernel card using its existing purchase specification. Use
299
- * only after explicit user approval and when the item advertises authorize; follow
300
- * the advertised operation's description. For a Link card, pass browser_id and
301
- * page_url together while the browser is on the final checkout page: Kernel
302
- * inspects that checkout, chooses how the credential is delivered, and limits fill
303
- * to that checkout's origin in any browser with this vault attached. Omitting both
304
- * issues a virtual card that fills any page on the merchant origin. Once approval
305
- * has been requested, browser_id and page_url are ignored and authorize only
306
- * re-checks the request. Browser and checkout inspection errors occur before any
307
- * provider request and can be retried once the browser is on the checkout page.
308
- * Kernel cards do not accept browser_id or page_url.
298
+ * Authorize a Link, Kernel or Shop Pay card using its existing purchase
299
+ * specification. Use only after explicit user approval and when the item
300
+ * advertises authorize; follow the advertised operation's description. For a Link
301
+ * or Shop Pay card, pass browser_id and page_url together while the browser is on
302
+ * the final checkout page: Kernel confirms that checkout is open, sends it to the
303
+ * provider as the merchant, and limits fill to that checkout's origin in any
304
+ * browser with this vault attached. For Link it also chooses how the credential is
305
+ * delivered. Omitting both issues a virtual card that fills any page on the
306
+ * merchant origin. Once approval has been requested, browser_id and page_url are
307
+ * ignored and authorize only re-checks the request. Browser and checkout
308
+ * inspection errors occur before any provider request and can be retried once the
309
+ * browser is on the checkout page. Kernel cards do not accept browser_id or
310
+ * page_url.
309
311
  */
310
312
  export interface AuthorizeVaultItemOperationRequest {
311
313
  type: 'authorize';
@@ -327,7 +329,7 @@ export interface AuthorizeVaultItemOperationRequest {
327
329
  * virtual card otherwise. Callers never receive or choose how the credential is
328
330
  * delivered.
329
331
  */
330
- export type CardVaultItemSpec = CardVaultItemSpec.LinkCardVaultItemSpec | CardVaultItemSpec.AgentCardCardVaultItemSpec | KernelCardVaultItemSpec;
332
+ export type CardVaultItemSpec = CardVaultItemSpec.LinkCardVaultItemSpec | CardVaultItemSpec.AgentCardCardVaultItemSpec | KernelCardVaultItemSpec | ShopPayCardVaultItemSpec;
331
333
  export declare namespace CardVaultItemSpec {
332
334
  /**
333
335
  * Live Link card request. Test-mode card creation is not supported. The spec can
@@ -472,7 +474,7 @@ export declare namespace CardVaultItemSpec {
472
474
  * Issued Link cards retain encrypted card material for the fill operation. Link
473
475
  * cards do not expose aliases or support egress substitution.
474
476
  */
475
- export type CardVaultItemState = CardVaultItemState.LinkCardState | CardVaultItemState.AgentCardCardState | KernelCardState;
477
+ export type CardVaultItemState = CardVaultItemState.LinkCardState | CardVaultItemState.AgentCardCardState | KernelCardState | ShopPayCardState;
476
478
  export declare namespace CardVaultItemState {
477
479
  /**
478
480
  * Issued Link cards retain encrypted card material for the fill operation. Link
@@ -565,11 +567,12 @@ export interface CollectVaultItemOperationRequest {
565
567
  type: 'collect';
566
568
  }
567
569
  /**
568
- * Report a real merchant transaction outcome for an issued Kernel Visa credential.
569
- * Never infer success from filling checkout or receiving a credential. Supply the
570
- * observed status, transaction type, actual amount, currency and timestamp.
571
- * Unknown outcomes require manual reconciliation, not retry. Each purchase accepts
572
- * one report.
570
+ * Report a real merchant transaction outcome for an issued Kernel Visa or Shop Pay
571
+ * credential. Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer
572
+ * success from filling checkout or receiving a credential. Supply the observed
573
+ * status, transaction type, actual amount, currency and timestamp. Unknown
574
+ * outcomes require manual reconciliation, not retry. Each purchase accepts one
575
+ * report.
573
576
  */
574
577
  export interface ConfirmTransactionVaultItemOperationRequest {
575
578
  /**
@@ -587,6 +590,23 @@ export interface ConfirmTransactionVaultItemOperationRequest {
587
590
  status: 'APPROVED' | 'DECLINED' | 'PENDING' | 'ERROR' | 'CANCELLED';
588
591
  transaction_type: 'PURCHASE' | 'AUTHORIZATION' | 'CAPTURE' | 'REFUND' | 'REVERSAL' | 'VERIFICATION' | 'CHARGEBACK' | 'FRAUD';
589
592
  type: 'confirm_transaction';
593
+ /**
594
+ * Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,
595
+ * captcha, login_required, timeout or site_error. payment_declined goes only with
596
+ * DECLINED, which takes no other code. Shop Pay reports it; other providers ignore
597
+ * it.
598
+ */
599
+ failure_code?: string;
600
+ /**
601
+ * The merchant's order number, for an APPROVED outcome. Shop Pay reports it; other
602
+ * providers ignore it.
603
+ */
604
+ order_id?: string;
605
+ /**
606
+ * The merchant's https order page, for an APPROVED outcome. Shop Pay reports it;
607
+ * other providers ignore it.
608
+ */
609
+ order_url?: string;
590
610
  }
591
611
  export interface CredentialAccountVaultItem {
592
612
  id: string;
@@ -1686,6 +1706,11 @@ export declare namespace OnePasswordCredentialVaultItemSpec {
1686
1706
  * Must be login.
1687
1707
  */
1688
1708
  type: string;
1709
+ /**
1710
+ * 1Password's ID for this entry in an access request you created. Supply it only
1711
+ * with resolved.
1712
+ */
1713
+ id?: string;
1689
1714
  keywords?: Array<string>;
1690
1715
  reason?: string;
1691
1716
  }
@@ -1701,10 +1726,18 @@ export declare namespace OnePasswordCredentialVaultItemSpec {
1701
1726
  * customer-supplied access token and matching integration key. Supply either
1702
1727
  * account or both secrets, never both. Supplied secrets are write-only and never
1703
1728
  * returned. Supply requests for new items; website remains supported for existing
1704
- * account-backed callers.
1729
+ * account-backed callers. To use an access request you already created and the
1730
+ * user approved with the same access token and integration key, also supply
1731
+ * access_request_id, resolved, and each requests entry's id; the item is created
1732
+ * ready and Kernel doesn't create an access request.
1705
1733
  */
1706
1734
  export interface OnePasswordCredentialVaultItemSpecInput {
1707
1735
  provider: '1password';
1736
+ /**
1737
+ * ID of an approved access request you created with this access_token and
1738
+ * integration_key. Requires resolved.
1739
+ */
1740
+ access_request_id?: string;
1708
1741
  /**
1709
1742
  * Customer-supplied 1Password broker token. Requires integration_key; stored
1710
1743
  * encrypted on this item. Omit if providing a connected credential_account item
@@ -1732,6 +1765,13 @@ export interface OnePasswordCredentialVaultItemSpecInput {
1732
1765
  * up to five login entries.
1733
1766
  */
1734
1767
  requests?: OnePasswordCredentialVaultItemSpecInput.Requests;
1768
+ /**
1769
+ * Granted logins from 1Password's status for access_request_id, as returned by the
1770
+ * 1Password SDK or extension. Requires access_request_id and an id on every
1771
+ * requests entry. entryId may be omitted only when requests has one entry. Kernel
1772
+ * doesn't verify the references; 1Password checks them when filling.
1773
+ */
1774
+ resolved?: Array<OnePasswordCredentialVaultItemSpecInput.Resolved>;
1735
1775
  /**
1736
1776
  * @deprecated Legacy single-login shorthand. Supply requests instead.
1737
1777
  */
@@ -1757,6 +1797,11 @@ export declare namespace OnePasswordCredentialVaultItemSpecInput {
1757
1797
  * Must be login.
1758
1798
  */
1759
1799
  type: string;
1800
+ /**
1801
+ * 1Password's ID for this entry in an access request you created. Supply it only
1802
+ * with resolved.
1803
+ */
1804
+ id?: string;
1760
1805
  keywords?: Array<string>;
1761
1806
  reason?: string;
1762
1807
  }
@@ -1766,6 +1811,17 @@ export declare namespace OnePasswordCredentialVaultItemSpecInput {
1766
1811
  }
1767
1812
  }
1768
1813
  }
1814
+ interface Resolved {
1815
+ /**
1816
+ * 1Password credential reference. Pass it unchanged as resourcePath to the
1817
+ * extension's fillCredential or to the 1Password SDK.
1818
+ */
1819
+ reference: string;
1820
+ /**
1821
+ * The requested entry this login satisfies, when known.
1822
+ */
1823
+ entryId?: string;
1824
+ }
1769
1825
  }
1770
1826
  export interface OnePasswordCredentialVaultItemState {
1771
1827
  provider: '1password';
@@ -2255,6 +2311,130 @@ export interface RemovePaymentMethodVaultItemOperationResult {
2255
2311
  export interface RestartVerificationVaultItemOperationRequest {
2256
2312
  type: 'restart_verification';
2257
2313
  }
2314
+ /**
2315
+ * Issued Shop Pay cards retain encrypted card material for the fill operation.
2316
+ */
2317
+ export interface ShopPayCardState {
2318
+ provider: 'shop_pay';
2319
+ /**
2320
+ * declined covers a request the shopper declined or that was cancelled. consumed
2321
+ * means the transaction outcome was reported with confirm_transaction; the card is
2322
+ * no longer stored and cannot be filled again, whatever the outcome.
2323
+ * recovery_required means a provider operation has an unresolved outcome and the
2324
+ * card cannot be used. When status_reason says the provider refused retrieval
2325
+ * before acceptance, no card was issued and a later read retries. Otherwise follow
2326
+ * status_reason: recovery for issuance can be abandoned by deleting the card and
2327
+ * creating a new one, and the shopper approves the new purchase separately.
2328
+ * Recovery while reporting a merchant transaction cannot be deleted and must be
2329
+ * reconciled with support.
2330
+ */
2331
+ status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
2332
+ domains?: Array<string>;
2333
+ masks?: ShopPayCardState.Masks;
2334
+ status_reason?: string;
2335
+ }
2336
+ export declare namespace ShopPayCardState {
2337
+ interface Masks {
2338
+ brand?: string;
2339
+ last4?: string;
2340
+ /**
2341
+ * Last four digits of the network token presented to the merchant.
2342
+ */
2343
+ token_last4?: string;
2344
+ [k: string]: string | undefined;
2345
+ }
2346
+ }
2347
+ /**
2348
+ * Shop Pay purchase. amount is the limit the shopper approves; totals must include
2349
+ * exactly one positive total no higher than it. context is shown to the shopper
2350
+ * when they approve. Authorize it with the browser at final checkout: Kernel sends
2351
+ * that page to Shop as the merchant and the card fills only on its origin. Without
2352
+ * browser_id and page_url it authorizes for merchant_url. authorize returns an
2353
+ * approval action for the shopper, who approves the purchase in Shop; share its
2354
+ * URL unchanged when present. Report the merchant outcome with
2355
+ * confirm_transaction, which ends the card.
2356
+ */
2357
+ export interface ShopPayCardVaultItemSpec {
2358
+ /**
2359
+ * Approval limit in minor currency units, at most 1000000.
2360
+ */
2361
+ amount: number;
2362
+ /**
2363
+ * What is being bought and why, written for the shopper.
2364
+ */
2365
+ context: string;
2366
+ /**
2367
+ * Shop accepts USD spend requests only.
2368
+ */
2369
+ currency: string;
2370
+ merchant_name: string;
2371
+ /**
2372
+ * The merchant's https URL.
2373
+ */
2374
+ merchant_url: string;
2375
+ provider: 'shop_pay';
2376
+ totals: Array<ShopPayCardVaultItemSpec.Total>;
2377
+ /**
2378
+ * Connected Shop Pay wallet item key.
2379
+ */
2380
+ wallet: string;
2381
+ line_items?: Array<ShopPayCardVaultItemSpec.LineItem>;
2382
+ /**
2383
+ * ISO 3166-1 alpha-2 country of the merchant.
2384
+ */
2385
+ merchant_country?: string;
2386
+ /**
2387
+ * Card ID from the wallet's payment_methods expansion. Omit it to use the
2388
+ * shopper's preferred card.
2389
+ */
2390
+ payment_method_id?: string;
2391
+ }
2392
+ export declare namespace ShopPayCardVaultItemSpec {
2393
+ interface Total {
2394
+ /**
2395
+ * Amount in minor currency units; discounts are negative.
2396
+ */
2397
+ amount: number;
2398
+ /**
2399
+ * For example subtotal, fulfillment, tax, discount or total.
2400
+ */
2401
+ type: string;
2402
+ }
2403
+ interface LineItem {
2404
+ name: string;
2405
+ quantity: number;
2406
+ /**
2407
+ * Unit price in minor currency units.
2408
+ */
2409
+ unit_amount: number;
2410
+ }
2411
+ }
2412
+ export interface ShopPayWalletState {
2413
+ provider: 'shop_pay';
2414
+ status: 'pending_authorization' | 'connected' | 'declined' | 'reconnect_required' | 'degraded';
2415
+ status_reason?: string;
2416
+ }
2417
+ /**
2418
+ * Shop Pay wallet connected through Kernel's Shop app. Creation returns a
2419
+ * shop_pay_oauth action: the shopper signs in to Shop and approves the connection,
2420
+ * and the wallet connects. The connected wallet's payment_methods expansion lists
2421
+ * the shopper's saved Shop Pay cards.
2422
+ */
2423
+ export interface ShopPayWalletVaultItemSpec {
2424
+ authorization: ShopPayWalletVaultItemSpec.Authorization;
2425
+ provider: 'shop_pay';
2426
+ }
2427
+ export declare namespace ShopPayWalletVaultItemSpec {
2428
+ interface Authorization {
2429
+ client: Authorization.Client;
2430
+ method: 'oauth';
2431
+ }
2432
+ namespace Authorization {
2433
+ interface Client {
2434
+ type: 'kernel_managed';
2435
+ }
2436
+ }
2437
+ }
2258
2438
  export interface VaultCardAliases {
2259
2439
  cvc: string;
2260
2440
  exp_month: string;
@@ -2271,12 +2451,14 @@ export declare namespace VaultCardFillField {
2271
2451
  /**
2272
2452
  * Field in the decrypted card, not an alias. Number and CVC preserve leading
2273
2453
  * zeros; month uses two digits and year uses four digits. Billing fields use the
2274
- * provider's stored billing address (name, line1, line2, city, state, postal_code,
2275
- * country) without reformatting. Request only needed billing fields. An absent or
2454
+ * provider's stored billing address (name, first and last name, line1, line2,
2455
+ * city, state, postal_code, country) without reformatting. First and last name are
2456
+ * available only when the provider returns them separately, such as Shop Pay;
2457
+ * billing_name is never split. Request only needed billing fields. An absent or
2276
2458
  * empty requested billing field returns 400 field_unavailable before any browser
2277
2459
  * writes; it does not make other card fields unavailable.
2278
2460
  */
2279
- field: 'number' | 'exp_month' | 'exp_year' | 'cvc' | 'billing_name' | 'billing_line1' | 'billing_line2' | 'billing_city' | 'billing_state' | 'billing_postal_code' | 'billing_country';
2461
+ field: 'number' | 'exp_month' | 'exp_year' | 'cvc' | 'billing_name' | 'billing_first_name' | 'billing_last_name' | 'billing_line1' | 'billing_line2' | 'billing_city' | 'billing_state' | 'billing_postal_code' | 'billing_country';
2280
2462
  /**
2281
2463
  * CSS selector for an editable input or select, or a containing element. Must
2282
2464
  * resolve to one unique editable element across all page frames.
@@ -2490,12 +2672,19 @@ export declare namespace VaultItem {
2490
2672
  }
2491
2673
  }
2492
2674
  }
2493
- export type VaultItemAction = VaultItemAction.LinkOAuthAction | OnePasswordOAuthAction | VaultItemAction.SpendApprovalAction | VaultItemAction.PushApprovalAction | VaultItemAction.CollectAction | VaultItemAction.MfaAction | VaultItemAction.EmbeddedCeremonyAction | VaultItemAction.CardEnrollmentAction;
2675
+ export type VaultItemAction = VaultItemAction.LinkOAuthAction | VaultItemAction.ShopPayOAuthAction | OnePasswordOAuthAction | VaultItemAction.SpendApprovalAction | VaultItemAction.PushApprovalAction | VaultItemAction.CollectAction | VaultItemAction.MfaAction | VaultItemAction.EmbeddedCeremonyAction | VaultItemAction.CardEnrollmentAction;
2494
2676
  export declare namespace VaultItemAction {
2495
2677
  interface LinkOAuthAction {
2496
2678
  name: 'link_oauth';
2497
2679
  url: string;
2498
2680
  }
2681
+ interface ShopPayOAuthAction {
2682
+ name: 'shop_pay_oauth';
2683
+ /**
2684
+ * Shop sign-in page where the shopper connects their Shop account to Kernel.
2685
+ */
2686
+ url: string;
2687
+ }
2499
2688
  interface SpendApprovalAction {
2500
2689
  name: 'spend_approval';
2501
2690
  url: string;
@@ -2770,7 +2959,7 @@ export interface VaultWebmcpBinding {
2770
2959
  * imports of the same key may both validate, but create at most one wallet and
2771
2960
  * connected event.
2772
2961
  */
2773
- export type WalletVaultItemSpec = WalletVaultItemSpec.LinkWalletVaultItemSpec | WalletVaultItemSpec.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec;
2962
+ export type WalletVaultItemSpec = WalletVaultItemSpec.LinkWalletVaultItemSpec | WalletVaultItemSpec.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec | ShopPayWalletVaultItemSpec;
2774
2963
  export declare namespace WalletVaultItemSpec {
2775
2964
  interface LinkWalletVaultItemSpec {
2776
2965
  authorization: LinkWalletVaultItemSpec.Authorization;
@@ -2843,7 +3032,7 @@ export declare namespace WalletVaultItemSpec {
2843
3032
  }
2844
3033
  }
2845
3034
  }
2846
- export type WalletVaultItemState = WalletVaultItemState.LinkWalletState | WalletVaultItemState.AgentCardWalletState | KernelWalletState;
3035
+ export type WalletVaultItemState = WalletVaultItemState.LinkWalletState | WalletVaultItemState.AgentCardWalletState | KernelWalletState | ShopPayWalletState;
2847
3036
  export declare namespace WalletVaultItemState {
2848
3037
  interface LinkWalletState {
2849
3038
  provider: 'link';
@@ -3096,6 +3285,23 @@ export declare namespace ItemPerformOperationParams {
3096
3285
  * Body param
3097
3286
  */
3098
3287
  type: 'confirm_transaction';
3288
+ /**
3289
+ * Body param: Why the purchase did not succeed, for any other outcome, such as
3290
+ * 3ds_challenge, captcha, login_required, timeout or site_error. payment_declined
3291
+ * goes only with DECLINED, which takes no other code. Shop Pay reports it; other
3292
+ * providers ignore it.
3293
+ */
3294
+ failure_code?: string;
3295
+ /**
3296
+ * Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
3297
+ * reports it; other providers ignore it.
3298
+ */
3299
+ order_id?: string;
3300
+ /**
3301
+ * Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
3302
+ * reports it; other providers ignore it.
3303
+ */
3304
+ order_url?: string;
3099
3305
  }
3100
3306
  interface CollectVaultItemOperationRequest {
3101
3307
  /**
@@ -3407,7 +3613,7 @@ export declare namespace ItemUpsertParams {
3407
3613
  * corrected and retried. Concurrent imports of the same key may both validate, but
3408
3614
  * create at most one wallet and connected event.
3409
3615
  */
3410
- spec: WalletVaultItemRequest.LinkWalletVaultItemRequestSpec | WalletVaultItemRequest.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec;
3616
+ spec: WalletVaultItemRequest.LinkWalletVaultItemRequestSpec | WalletVaultItemRequest.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec | ShopPayWalletVaultItemSpec;
3411
3617
  /**
3412
3618
  * Body param
3413
3619
  */
@@ -3616,6 +3822,6 @@ export declare namespace ItemUpsertParams {
3616
3822
  }
3617
3823
  }
3618
3824
  export declare namespace Items {
3619
- export { type AddPaymentMethodVaultItemOperationRequest as AddPaymentMethodVaultItemOperationRequest, type AddPaymentMethodVaultItemOperationResult as AddPaymentMethodVaultItemOperationResult, 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 KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec, 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 PaymentRequestVaultItem as PaymentRequestVaultItem, type PaymentRequestVaultItemSpec as PaymentRequestVaultItemSpec, type PaymentRequestVaultItemState as PaymentRequestVaultItemState, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult, 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, };
3825
+ export { type AddPaymentMethodVaultItemOperationRequest as AddPaymentMethodVaultItemOperationRequest, type AddPaymentMethodVaultItemOperationResult as AddPaymentMethodVaultItemOperationResult, 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 KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec, 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 PaymentRequestVaultItem as PaymentRequestVaultItem, type PaymentRequestVaultItemSpec as PaymentRequestVaultItemSpec, type PaymentRequestVaultItemState as PaymentRequestVaultItemState, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type ShopPayCardState as ShopPayCardState, type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec, type ShopPayWalletState as ShopPayWalletState, type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec, 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, };
3620
3826
  }
3621
3827
  //# sourceMappingURL=items.d.ts.map