@onkernel/sdk 0.136.0 → 0.138.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 (93) 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/auth/connections.d.mts +39 -6
  18. package/resources/auth/connections.d.mts.map +1 -1
  19. package/resources/auth/connections.d.ts +39 -6
  20. package/resources/auth/connections.d.ts.map +1 -1
  21. package/resources/browsers/browsers.d.mts +17 -1
  22. package/resources/browsers/browsers.d.mts.map +1 -1
  23. package/resources/browsers/browsers.d.ts +17 -1
  24. package/resources/browsers/browsers.d.ts.map +1 -1
  25. package/resources/browsers/browsers.js.map +1 -1
  26. package/resources/browsers/browsers.mjs.map +1 -1
  27. package/resources/browsers/index.d.mts +1 -1
  28. package/resources/browsers/index.d.mts.map +1 -1
  29. package/resources/browsers/index.d.ts +1 -1
  30. package/resources/browsers/index.d.ts.map +1 -1
  31. package/resources/browsers/index.js.map +1 -1
  32. package/resources/browsers/index.mjs.map +1 -1
  33. package/resources/browsers/telemetry.d.mts +4 -3
  34. package/resources/browsers/telemetry.d.mts.map +1 -1
  35. package/resources/browsers/telemetry.d.ts +4 -3
  36. package/resources/browsers/telemetry.d.ts.map +1 -1
  37. package/resources/index.d.mts +1 -1
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +1 -1
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/projects/limits.d.mts +0 -2
  44. package/resources/projects/limits.d.mts.map +1 -1
  45. package/resources/projects/limits.d.ts +0 -2
  46. package/resources/projects/limits.d.ts.map +1 -1
  47. package/resources/projects/limits.js +0 -2
  48. package/resources/projects/limits.js.map +1 -1
  49. package/resources/projects/limits.mjs +0 -2
  50. package/resources/projects/limits.mjs.map +1 -1
  51. package/resources/projects/projects.d.mts +0 -2
  52. package/resources/projects/projects.d.mts.map +1 -1
  53. package/resources/projects/projects.d.ts +0 -2
  54. package/resources/projects/projects.d.ts.map +1 -1
  55. package/resources/projects/projects.js +0 -2
  56. package/resources/projects/projects.js.map +1 -1
  57. package/resources/projects/projects.mjs +0 -2
  58. package/resources/projects/projects.mjs.map +1 -1
  59. package/resources/vaults/index.d.mts +1 -1
  60. package/resources/vaults/index.d.mts.map +1 -1
  61. package/resources/vaults/index.d.ts +1 -1
  62. package/resources/vaults/index.d.ts.map +1 -1
  63. package/resources/vaults/index.js.map +1 -1
  64. package/resources/vaults/index.mjs.map +1 -1
  65. package/resources/vaults/items.d.mts +203 -33
  66. package/resources/vaults/items.d.mts.map +1 -1
  67. package/resources/vaults/items.d.ts +203 -33
  68. package/resources/vaults/items.d.ts.map +1 -1
  69. package/resources/vaults/items.js +7 -7
  70. package/resources/vaults/items.mjs +7 -7
  71. package/resources/vaults/vaults.d.mts +2 -2
  72. package/resources/vaults/vaults.d.mts.map +1 -1
  73. package/resources/vaults/vaults.d.ts +2 -2
  74. package/resources/vaults/vaults.d.ts.map +1 -1
  75. package/resources/vaults/vaults.js.map +1 -1
  76. package/resources/vaults/vaults.mjs.map +1 -1
  77. package/src/client.ts +2 -3
  78. package/src/lib/browser-routing.ts +2 -0
  79. package/src/resources/auth/connections.ts +50 -3
  80. package/src/resources/browsers/browsers.ts +19 -0
  81. package/src/resources/browsers/index.ts +1 -0
  82. package/src/resources/browsers/telemetry.ts +4 -2
  83. package/src/resources/index.ts +1 -0
  84. package/src/resources/projects/limits.ts +0 -2
  85. package/src/resources/projects/projects.ts +0 -2
  86. package/src/resources/vaults/index.ts +4 -0
  87. package/src/resources/vaults/items.ts +260 -30
  88. package/src/resources/vaults/vaults.ts +8 -0
  89. package/src/version.ts +1 -1
  90. package/version.d.mts +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/version.mjs +1 -1
@@ -409,6 +409,16 @@ export interface BrowserAllowlistState {
409
409
  mutation_id?: string;
410
410
  }
411
411
 
412
+ /**
413
+ * Overrides for browser attributes presented to websites.
414
+ */
415
+ export interface BrowserFingerprint {
416
+ /**
417
+ * Operating system the browser reports to websites.
418
+ */
419
+ os: 'macos';
420
+ }
421
+
412
422
  export interface BrowserLocation {
413
423
  /**
414
424
  * Effective canonical BCP 47 formatting locale selected for the browser session.
@@ -1657,6 +1667,14 @@ export interface BrowserCreateParams {
1657
1667
  */
1658
1668
  extensions?: Array<Shared.BrowserExtension>;
1659
1669
 
1670
+ /**
1671
+ * Closed beta: contact Kernel to enable fingerprint overrides for your
1672
+ * organization. Overrides browser attributes presented to websites for this
1673
+ * session. Currently supports macos and requires stealth=true, headless=false,
1674
+ * gpu=false, and default memory. Omit to preserve the default browser behavior.
1675
+ */
1676
+ fingerprint?: BrowserFingerprint;
1677
+
1660
1678
  /**
1661
1679
  * If true, enables GPU acceleration for the browser session. Requires Start-Up or
1662
1680
  * Enterprise plan, headless=false, and region=us-east.
@@ -2260,6 +2278,7 @@ Browsers.Webmcp = Webmcp;
2260
2278
  export declare namespace Browsers {
2261
2279
  export {
2262
2280
  type BrowserAllowlistState as BrowserAllowlistState,
2281
+ type BrowserFingerprint as BrowserFingerprint,
2263
2282
  type BrowserLocation as BrowserLocation,
2264
2283
  type BrowserLocationRequest as BrowserLocationRequest,
2265
2284
  type BrowserLocationSource as BrowserLocationSource,
@@ -3,6 +3,7 @@
3
3
  export {
4
4
  Browsers,
5
5
  type BrowserAllowlistState,
6
+ type BrowserFingerprint,
6
7
  type BrowserLocation,
7
8
  type BrowserLocationRequest,
8
9
  type BrowserLocationSource,
@@ -4470,8 +4470,9 @@ export namespace BrowserProxyErrorEvent {
4470
4470
  * network_policy_denied, provider_blacklisted, provider_unreachable,
4471
4471
  * provider_rejected, origin_tls_timeout, origin_response_incomplete,
4472
4472
  * proxy_unavailable, restricted_route_unavailable, upstream_timeout,
4473
- * upstream_dns_failure, upstream_connect_failed. A header value the browser image
4474
- * does not recognize is reported as unknown, with the header value in raw_code.
4473
+ * upstream_dns_failure, upstream_connect_failed, payment_window_expired. A header
4474
+ * value the browser image does not recognize is reported as unknown, with the
4475
+ * header value in raw_code.
4475
4476
  */
4476
4477
  code:
4477
4478
  | 'destination_blocked'
@@ -4487,6 +4488,7 @@ export namespace BrowserProxyErrorEvent {
4487
4488
  | 'upstream_timeout'
4488
4489
  | 'upstream_dns_failure'
4489
4490
  | 'upstream_connect_failed'
4491
+ | 'payment_window_expired'
4490
4492
  | 'unknown';
4491
4493
 
4492
4494
  /**
@@ -41,6 +41,7 @@ export {
41
41
  export {
42
42
  Browsers,
43
43
  type BrowserAllowlistState,
44
+ type BrowserFingerprint,
44
45
  type BrowserLocation,
45
46
  type BrowserLocationRequest,
46
47
  type BrowserLocationSource,
@@ -7,8 +7,6 @@ import { path } from '../../internal/utils/path';
7
7
 
8
8
  /**
9
9
  * Create and manage projects for resource isolation within an organization.
10
- * When projects are disabled for the organization, project operations return
11
- * `404` with code `projects_disabled`.
12
10
  */
13
11
  export class Limits extends APIResource {
14
12
  /**
@@ -11,8 +11,6 @@ import { path } from '../../internal/utils/path';
11
11
 
12
12
  /**
13
13
  * Create and manage projects for resource isolation within an organization.
14
- * When projects are disabled for the organization, project operations return
15
- * `404` with code `projects_disabled`.
16
14
  */
17
15
  export class Projects extends APIResource {
18
16
  limits: LimitsAPI.Limits = new LimitsAPI.Limits(this._client);
@@ -65,6 +65,10 @@ export {
65
65
  type RemovePaymentMethodVaultItemOperationRequest,
66
66
  type RemovePaymentMethodVaultItemOperationResult,
67
67
  type RestartVerificationVaultItemOperationRequest,
68
+ type ShopPayCardState,
69
+ type ShopPayCardVaultItemSpec,
70
+ type ShopPayWalletState,
71
+ type ShopPayWalletVaultItemSpec,
68
72
  type VaultCardAliases,
69
73
  type VaultCardFillField,
70
74
  type VaultCheckoutContext,
@@ -91,13 +91,13 @@ export class Items extends APIResource {
91
91
  * Unresolved payment operations normally block deletion, including operations on
92
92
  * child cards of a wallet. Deleting a connected Kernel wallet first blocks new
93
93
  * payments on it, then removes its enrolled card. If that fails, the wallet is
94
- * kept and keeps refusing payments; retry the deletion. A Link or Kernel card in
95
- * recovery_required for issuance, or an AgentCard card in recovery_required whose
96
- * checkout create response returned no authorization ID, may be explicitly
97
- * abandoned by deleting that card directly; deleting its wallet or vault remains
98
- * blocked until the card is deleted. Deleting or recreating an item is not proof
99
- * that a payment did not occur. Deleting a managed auth credential item leaves the
100
- * connection and its saved credential unchanged.
94
+ * kept and keeps refusing payments; retry the deletion. A Link, Kernel or Shop Pay
95
+ * card in recovery_required for issuance, or an AgentCard card in
96
+ * recovery_required whose checkout create response returned no authorization ID,
97
+ * may be explicitly abandoned by deleting that card directly; deleting its wallet
98
+ * or vault remains blocked until the card is deleted. Deleting or recreating an
99
+ * item is not proof that a payment did not occur. Deleting a managed auth
100
+ * credential item leaves the connection and its saved credential unchanged.
101
101
  *
102
102
  * @example
103
103
  * ```ts
@@ -383,17 +383,19 @@ export interface ArmPasskeyVaultItemOperationRequest {
383
383
  }
384
384
 
385
385
  /**
386
- * Authorize a Link or Kernel card using its existing purchase specification. Use
387
- * only after explicit user approval and when the item advertises authorize; follow
388
- * the advertised operation's description. For a Link card, pass browser_id and
389
- * page_url together while the browser is on the final checkout page: Kernel
390
- * inspects that checkout, chooses how the credential is delivered, and limits fill
391
- * to that checkout's origin in any browser with this vault attached. Omitting both
392
- * issues a virtual card that fills any page on the merchant origin. Once approval
393
- * has been requested, browser_id and page_url are ignored and authorize only
394
- * re-checks the request. Browser and checkout inspection errors occur before any
395
- * provider request and can be retried once the browser is on the checkout page.
396
- * Kernel cards do not accept browser_id or page_url.
386
+ * Authorize a Link, Kernel or Shop Pay card using its existing purchase
387
+ * specification. Use only after explicit user approval and when the item
388
+ * advertises authorize; follow the advertised operation's description. For a Link
389
+ * or Shop Pay card, pass browser_id and page_url together while the browser is on
390
+ * the final checkout page: Kernel confirms that checkout is open, sends it to the
391
+ * provider as the merchant, and limits fill to that checkout's origin in any
392
+ * browser with this vault attached. For Link it also chooses how the credential is
393
+ * delivered. Omitting both issues a virtual card that fills any page on the
394
+ * merchant origin. Once approval has been requested, browser_id and page_url are
395
+ * ignored and authorize only re-checks the request. Browser and checkout
396
+ * inspection errors occur before any provider request and can be retried once the
397
+ * browser is on the checkout page. Kernel cards do not accept browser_id or
398
+ * page_url.
397
399
  */
398
400
  export interface AuthorizeVaultItemOperationRequest {
399
401
  type: 'authorize';
@@ -421,7 +423,8 @@ export interface AuthorizeVaultItemOperationRequest {
421
423
  export type CardVaultItemSpec =
422
424
  | CardVaultItemSpec.LinkCardVaultItemSpec
423
425
  | CardVaultItemSpec.AgentCardCardVaultItemSpec
424
- | KernelCardVaultItemSpec;
426
+ | KernelCardVaultItemSpec
427
+ | ShopPayCardVaultItemSpec;
425
428
 
426
429
  export namespace CardVaultItemSpec {
427
430
  /**
@@ -604,7 +607,8 @@ export namespace CardVaultItemSpec {
604
607
  export type CardVaultItemState =
605
608
  | CardVaultItemState.LinkCardState
606
609
  | CardVaultItemState.AgentCardCardState
607
- | KernelCardState;
610
+ | KernelCardState
611
+ | ShopPayCardState;
608
612
 
609
613
  export namespace CardVaultItemState {
610
614
  /**
@@ -736,11 +740,12 @@ export interface CollectVaultItemOperationRequest {
736
740
  }
737
741
 
738
742
  /**
739
- * Report a real merchant transaction outcome for an issued Kernel Visa credential.
740
- * Never infer success from filling checkout or receiving a credential. Supply the
741
- * observed status, transaction type, actual amount, currency and timestamp.
742
- * Unknown outcomes require manual reconciliation, not retry. Each purchase accepts
743
- * one report.
743
+ * Report a real merchant transaction outcome for an issued Kernel Visa or Shop Pay
744
+ * credential. Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer
745
+ * success from filling checkout or receiving a credential. Supply the observed
746
+ * status, transaction type, actual amount, currency and timestamp. Unknown
747
+ * outcomes require manual reconciliation, not retry. Each purchase accepts one
748
+ * report.
744
749
  */
745
750
  export interface ConfirmTransactionVaultItemOperationRequest {
746
751
  /**
@@ -771,6 +776,26 @@ export interface ConfirmTransactionVaultItemOperationRequest {
771
776
  | 'FRAUD';
772
777
 
773
778
  type: 'confirm_transaction';
779
+
780
+ /**
781
+ * Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,
782
+ * captcha, login_required, timeout or site_error. payment_declined goes only with
783
+ * DECLINED, which takes no other code. Shop Pay reports it; other providers ignore
784
+ * it.
785
+ */
786
+ failure_code?: string;
787
+
788
+ /**
789
+ * The merchant's order number, for an APPROVED outcome. Shop Pay reports it; other
790
+ * providers ignore it.
791
+ */
792
+ order_id?: string;
793
+
794
+ /**
795
+ * The merchant's https order page, for an APPROVED outcome. Shop Pay reports it;
796
+ * other providers ignore it.
797
+ */
798
+ order_url?: string;
774
799
  }
775
800
 
776
801
  export interface CredentialAccountVaultItem {
@@ -2884,6 +2909,170 @@ export interface RestartVerificationVaultItemOperationRequest {
2884
2909
  type: 'restart_verification';
2885
2910
  }
2886
2911
 
2912
+ /**
2913
+ * Issued Shop Pay cards retain encrypted card material for the fill operation.
2914
+ */
2915
+ export interface ShopPayCardState {
2916
+ provider: 'shop_pay';
2917
+
2918
+ /**
2919
+ * declined covers a request the shopper declined or that was cancelled. consumed
2920
+ * means the transaction outcome was reported with confirm_transaction; the card is
2921
+ * no longer stored and cannot be filled again, whatever the outcome.
2922
+ * recovery_required means a provider operation has an unresolved outcome and the
2923
+ * card cannot be used. When status_reason says the provider refused retrieval
2924
+ * before acceptance, no card was issued and a later read retries. Otherwise follow
2925
+ * status_reason: recovery for issuance can be abandoned by deleting the card and
2926
+ * creating a new one, and the shopper approves the new purchase separately.
2927
+ * Recovery while reporting a merchant transaction cannot be deleted and must be
2928
+ * reconciled with support.
2929
+ */
2930
+ status:
2931
+ | 'requested'
2932
+ | 'pending_authorization'
2933
+ | 'ready'
2934
+ | 'consumed'
2935
+ | 'expired'
2936
+ | 'declined'
2937
+ | 'recovery_required';
2938
+
2939
+ domains?: Array<string>;
2940
+
2941
+ masks?: ShopPayCardState.Masks;
2942
+
2943
+ status_reason?: string;
2944
+ }
2945
+
2946
+ export namespace ShopPayCardState {
2947
+ export interface Masks {
2948
+ brand?: string;
2949
+
2950
+ last4?: string;
2951
+
2952
+ /**
2953
+ * Last four digits of the network token presented to the merchant.
2954
+ */
2955
+ token_last4?: string;
2956
+
2957
+ [k: string]: string | undefined;
2958
+ }
2959
+ }
2960
+
2961
+ /**
2962
+ * Shop Pay purchase. amount is the limit the shopper approves; totals must include
2963
+ * exactly one positive total no higher than it. context is shown to the shopper
2964
+ * when they approve. Authorize it with the browser at final checkout: Kernel sends
2965
+ * that page to Shop as the merchant and the card fills only on its origin. Without
2966
+ * browser_id and page_url it authorizes for merchant_url. authorize returns an
2967
+ * approval action for the shopper, who approves the purchase in Shop; share its
2968
+ * URL unchanged when present. Report the merchant outcome with
2969
+ * confirm_transaction, which ends the card.
2970
+ */
2971
+ export interface ShopPayCardVaultItemSpec {
2972
+ /**
2973
+ * Approval limit in minor currency units, at most 1000000.
2974
+ */
2975
+ amount: number;
2976
+
2977
+ /**
2978
+ * What is being bought and why, written for the shopper.
2979
+ */
2980
+ context: string;
2981
+
2982
+ /**
2983
+ * Shop accepts USD spend requests only.
2984
+ */
2985
+ currency: string;
2986
+
2987
+ merchant_name: string;
2988
+
2989
+ /**
2990
+ * The merchant's https URL.
2991
+ */
2992
+ merchant_url: string;
2993
+
2994
+ provider: 'shop_pay';
2995
+
2996
+ totals: Array<ShopPayCardVaultItemSpec.Total>;
2997
+
2998
+ /**
2999
+ * Connected Shop Pay wallet item key.
3000
+ */
3001
+ wallet: string;
3002
+
3003
+ line_items?: Array<ShopPayCardVaultItemSpec.LineItem>;
3004
+
3005
+ /**
3006
+ * ISO 3166-1 alpha-2 country of the merchant.
3007
+ */
3008
+ merchant_country?: string;
3009
+
3010
+ /**
3011
+ * Card ID from the wallet's payment_methods expansion. Omit it to use the
3012
+ * shopper's preferred card.
3013
+ */
3014
+ payment_method_id?: string;
3015
+ }
3016
+
3017
+ export namespace ShopPayCardVaultItemSpec {
3018
+ export interface Total {
3019
+ /**
3020
+ * Amount in minor currency units; discounts are negative.
3021
+ */
3022
+ amount: number;
3023
+
3024
+ /**
3025
+ * For example subtotal, fulfillment, tax, discount or total.
3026
+ */
3027
+ type: string;
3028
+ }
3029
+
3030
+ export interface LineItem {
3031
+ name: string;
3032
+
3033
+ quantity: number;
3034
+
3035
+ /**
3036
+ * Unit price in minor currency units.
3037
+ */
3038
+ unit_amount: number;
3039
+ }
3040
+ }
3041
+
3042
+ export interface ShopPayWalletState {
3043
+ provider: 'shop_pay';
3044
+
3045
+ status: 'pending_authorization' | 'connected' | 'declined' | 'reconnect_required' | 'degraded';
3046
+
3047
+ status_reason?: string;
3048
+ }
3049
+
3050
+ /**
3051
+ * Shop Pay wallet connected through Kernel's Shop app. Creation returns a
3052
+ * shop_pay_oauth action: the shopper signs in to Shop and approves the connection,
3053
+ * and the wallet connects. The connected wallet's payment_methods expansion lists
3054
+ * the shopper's saved Shop Pay cards.
3055
+ */
3056
+ export interface ShopPayWalletVaultItemSpec {
3057
+ authorization: ShopPayWalletVaultItemSpec.Authorization;
3058
+
3059
+ provider: 'shop_pay';
3060
+ }
3061
+
3062
+ export namespace ShopPayWalletVaultItemSpec {
3063
+ export interface Authorization {
3064
+ client: Authorization.Client;
3065
+
3066
+ method: 'oauth';
3067
+ }
3068
+
3069
+ export namespace Authorization {
3070
+ export interface Client {
3071
+ type: 'kernel_managed';
3072
+ }
3073
+ }
3074
+ }
3075
+
2887
3076
  export interface VaultCardAliases {
2888
3077
  cvc: string;
2889
3078
 
@@ -2907,8 +3096,10 @@ export namespace VaultCardFillField {
2907
3096
  /**
2908
3097
  * Field in the decrypted card, not an alias. Number and CVC preserve leading
2909
3098
  * zeros; month uses two digits and year uses four digits. Billing fields use the
2910
- * provider's stored billing address (name, line1, line2, city, state, postal_code,
2911
- * country) without reformatting. Request only needed billing fields. An absent or
3099
+ * provider's stored billing address (name, first and last name, line1, line2,
3100
+ * city, state, postal_code, country) without reformatting. First and last name are
3101
+ * available only when the provider returns them separately, such as Shop Pay;
3102
+ * billing_name is never split. Request only needed billing fields. An absent or
2912
3103
  * empty requested billing field returns 400 field_unavailable before any browser
2913
3104
  * writes; it does not make other card fields unavailable.
2914
3105
  */
@@ -2918,6 +3109,8 @@ export namespace VaultCardFillField {
2918
3109
  | 'exp_year'
2919
3110
  | 'cvc'
2920
3111
  | 'billing_name'
3112
+ | 'billing_first_name'
3113
+ | 'billing_last_name'
2921
3114
  | 'billing_line1'
2922
3115
  | 'billing_line2'
2923
3116
  | 'billing_city'
@@ -3236,6 +3429,7 @@ export namespace VaultItem {
3236
3429
 
3237
3430
  export type VaultItemAction =
3238
3431
  | VaultItemAction.LinkOAuthAction
3432
+ | VaultItemAction.ShopPayOAuthAction
3239
3433
  | OnePasswordOAuthAction
3240
3434
  | VaultItemAction.SpendApprovalAction
3241
3435
  | VaultItemAction.PushApprovalAction
@@ -3251,6 +3445,15 @@ export namespace VaultItemAction {
3251
3445
  url: string;
3252
3446
  }
3253
3447
 
3448
+ export interface ShopPayOAuthAction {
3449
+ name: 'shop_pay_oauth';
3450
+
3451
+ /**
3452
+ * Shop sign-in page where the shopper connects their Shop account to Kernel.
3453
+ */
3454
+ url: string;
3455
+ }
3456
+
3254
3457
  export interface SpendApprovalAction {
3255
3458
  name: 'spend_approval';
3256
3459
 
@@ -3643,7 +3846,8 @@ export interface VaultWebmcpBinding {
3643
3846
  export type WalletVaultItemSpec =
3644
3847
  | WalletVaultItemSpec.LinkWalletVaultItemSpec
3645
3848
  | WalletVaultItemSpec.AgentCardWalletVaultItemSpec
3646
- | KernelWalletVaultItemSpec;
3849
+ | KernelWalletVaultItemSpec
3850
+ | ShopPayWalletVaultItemSpec;
3647
3851
 
3648
3852
  export namespace WalletVaultItemSpec {
3649
3853
  export interface LinkWalletVaultItemSpec {
@@ -3734,7 +3938,8 @@ export namespace WalletVaultItemSpec {
3734
3938
  export type WalletVaultItemState =
3735
3939
  | WalletVaultItemState.LinkWalletState
3736
3940
  | WalletVaultItemState.AgentCardWalletState
3737
- | KernelWalletState;
3941
+ | KernelWalletState
3942
+ | ShopPayWalletState;
3738
3943
 
3739
3944
  export namespace WalletVaultItemState {
3740
3945
  export interface LinkWalletState {
@@ -4067,6 +4272,26 @@ export declare namespace ItemPerformOperationParams {
4067
4272
  * Body param
4068
4273
  */
4069
4274
  type: 'confirm_transaction';
4275
+
4276
+ /**
4277
+ * Body param: Why the purchase did not succeed, for any other outcome, such as
4278
+ * 3ds_challenge, captcha, login_required, timeout or site_error. payment_declined
4279
+ * goes only with DECLINED, which takes no other code. Shop Pay reports it; other
4280
+ * providers ignore it.
4281
+ */
4282
+ failure_code?: string;
4283
+
4284
+ /**
4285
+ * Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
4286
+ * reports it; other providers ignore it.
4287
+ */
4288
+ order_id?: string;
4289
+
4290
+ /**
4291
+ * Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
4292
+ * reports it; other providers ignore it.
4293
+ */
4294
+ order_url?: string;
4070
4295
  }
4071
4296
 
4072
4297
  export interface CollectVaultItemOperationRequest {
@@ -4444,7 +4669,8 @@ export declare namespace ItemUpsertParams {
4444
4669
  spec:
4445
4670
  | WalletVaultItemRequest.LinkWalletVaultItemRequestSpec
4446
4671
  | WalletVaultItemRequest.AgentCardWalletVaultItemSpec
4447
- | KernelWalletVaultItemSpec;
4672
+ | KernelWalletVaultItemSpec
4673
+ | ShopPayWalletVaultItemSpec;
4448
4674
 
4449
4675
  /**
4450
4676
  * Body param
@@ -4752,6 +4978,10 @@ export declare namespace Items {
4752
4978
  type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest,
4753
4979
  type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult,
4754
4980
  type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest,
4981
+ type ShopPayCardState as ShopPayCardState,
4982
+ type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec,
4983
+ type ShopPayWalletState as ShopPayWalletState,
4984
+ type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec,
4755
4985
  type VaultCardAliases as VaultCardAliases,
4756
4986
  type VaultCardFillField as VaultCardFillField,
4757
4987
  type VaultCheckoutContext as VaultCheckoutContext,
@@ -75,6 +75,10 @@ import {
75
75
  RemovePaymentMethodVaultItemOperationRequest,
76
76
  RemovePaymentMethodVaultItemOperationResult,
77
77
  RestartVerificationVaultItemOperationRequest,
78
+ ShopPayCardState,
79
+ ShopPayCardVaultItemSpec,
80
+ ShopPayWalletState,
81
+ ShopPayWalletVaultItemSpec,
78
82
  VaultCardAliases,
79
83
  VaultCardFillField,
80
84
  VaultCheckoutContext,
@@ -343,6 +347,10 @@ export declare namespace Vaults {
343
347
  type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest,
344
348
  type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult,
345
349
  type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest,
350
+ type ShopPayCardState as ShopPayCardState,
351
+ type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec,
352
+ type ShopPayWalletState as ShopPayWalletState,
353
+ type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec,
346
354
  type VaultCardAliases as VaultCardAliases,
347
355
  type VaultCardFillField as VaultCardFillField,
348
356
  type VaultCheckoutContext as VaultCheckoutContext,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.136.0'; // x-release-please-version
1
+ export const VERSION = '0.138.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.136.0";
1
+ export declare const VERSION = "0.138.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.136.0";
1
+ export declare const VERSION = "0.138.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.136.0'; // x-release-please-version
4
+ exports.VERSION = '0.138.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.136.0'; // x-release-please-version
1
+ export const VERSION = '0.138.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map