@onkernel/sdk 0.140.0 → 0.142.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 (98) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/browsers/browsers.d.mts +6 -5
  12. package/resources/browsers/browsers.d.mts.map +1 -1
  13. package/resources/browsers/browsers.d.ts +6 -5
  14. package/resources/browsers/browsers.d.ts.map +1 -1
  15. package/resources/browsers/browsers.js.map +1 -1
  16. package/resources/browsers/browsers.mjs.map +1 -1
  17. package/resources/config-registry/config-registry.d.mts +12 -1
  18. package/resources/config-registry/config-registry.d.mts.map +1 -1
  19. package/resources/config-registry/config-registry.d.ts +12 -1
  20. package/resources/config-registry/config-registry.d.ts.map +1 -1
  21. package/resources/config-registry/config-registry.js.map +1 -1
  22. package/resources/config-registry/config-registry.mjs.map +1 -1
  23. package/resources/index.d.mts +1 -0
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +1 -0
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +3 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +1 -0
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/proxies.d.mts +106 -12
  32. package/resources/proxies.d.mts.map +1 -1
  33. package/resources/proxies.d.ts +106 -12
  34. package/resources/proxies.d.ts.map +1 -1
  35. package/resources/proxies.js +8 -5
  36. package/resources/proxies.js.map +1 -1
  37. package/resources/proxies.mjs +8 -5
  38. package/resources/proxies.mjs.map +1 -1
  39. package/resources/proxy-ips.d.mts +100 -0
  40. package/resources/proxy-ips.d.mts.map +1 -0
  41. package/resources/proxy-ips.d.ts +100 -0
  42. package/resources/proxy-ips.d.ts.map +1 -0
  43. package/resources/proxy-ips.js +38 -0
  44. package/resources/proxy-ips.js.map +1 -0
  45. package/resources/proxy-ips.mjs +34 -0
  46. package/resources/proxy-ips.mjs.map +1 -0
  47. package/resources/search/providers.d.mts +1 -1
  48. package/resources/search/providers.d.mts.map +1 -1
  49. package/resources/search/providers.d.ts +1 -1
  50. package/resources/search/providers.d.ts.map +1 -1
  51. package/resources/search/search.d.mts +1 -124
  52. package/resources/search/search.d.mts.map +1 -1
  53. package/resources/search/search.d.ts +1 -124
  54. package/resources/search/search.d.ts.map +1 -1
  55. package/resources/search/search.js.map +1 -1
  56. package/resources/search/search.mjs.map +1 -1
  57. package/resources/shared.d.mts +4 -2
  58. package/resources/shared.d.mts.map +1 -1
  59. package/resources/shared.d.ts +4 -2
  60. package/resources/shared.d.ts.map +1 -1
  61. package/resources/vault-provider-configs.d.mts +59 -2
  62. package/resources/vault-provider-configs.d.mts.map +1 -1
  63. package/resources/vault-provider-configs.d.ts +59 -2
  64. package/resources/vault-provider-configs.d.ts.map +1 -1
  65. package/resources/vaults/index.d.mts +1 -1
  66. package/resources/vaults/index.d.mts.map +1 -1
  67. package/resources/vaults/index.d.ts +1 -1
  68. package/resources/vaults/index.d.ts.map +1 -1
  69. package/resources/vaults/index.js.map +1 -1
  70. package/resources/vaults/index.mjs.map +1 -1
  71. package/resources/vaults/items.d.mts +163 -30
  72. package/resources/vaults/items.d.mts.map +1 -1
  73. package/resources/vaults/items.d.ts +163 -30
  74. package/resources/vaults/items.d.ts.map +1 -1
  75. package/resources/vaults/vaults.d.mts +2 -2
  76. package/resources/vaults/vaults.d.mts.map +1 -1
  77. package/resources/vaults/vaults.d.ts +2 -2
  78. package/resources/vaults/vaults.d.ts.map +1 -1
  79. package/resources/vaults/vaults.js.map +1 -1
  80. package/resources/vaults/vaults.mjs.map +1 -1
  81. package/src/client.ts +20 -0
  82. package/src/resources/browsers/browsers.ts +6 -5
  83. package/src/resources/config-registry/config-registry.ts +13 -1
  84. package/src/resources/index.ts +7 -0
  85. package/src/resources/proxies.ts +115 -12
  86. package/src/resources/proxy-ips.ts +130 -0
  87. package/src/resources/search/providers.ts +1 -11
  88. package/src/resources/search/search.ts +1 -156
  89. package/src/resources/shared.ts +4 -2
  90. package/src/resources/vault-provider-configs.ts +76 -2
  91. package/src/resources/vaults/index.ts +5 -0
  92. package/src/resources/vaults/items.ts +200 -29
  93. package/src/resources/vaults/vaults.ts +10 -0
  94. package/src/version.ts +1 -1
  95. package/version.d.mts +1 -1
  96. package/version.d.ts +1 -1
  97. package/version.js +1 -1
  98. package/version.mjs +1 -1
@@ -74,11 +74,9 @@ export type ProviderTarget =
74
74
  | ProviderTarget.SearchPerplexityTarget
75
75
  | ProviderTarget.SearchContextTarget
76
76
  | ProviderTarget.SearchParallelTarget
77
- | ProviderTarget.SearchValyuTarget
78
77
  | ProviderTarget.SearchOctenTarget
79
78
  | ProviderTarget.SearchYouTarget
80
- | ProviderTarget.SearchTavilyTarget
81
- | ProviderTarget.SearchSerpAPITarget;
79
+ | ProviderTarget.SearchTavilyTarget;
82
80
 
83
81
  export namespace ProviderTarget {
84
82
  export interface SearchBraveTarget {
@@ -464,78 +462,6 @@ export namespace ProviderTarget {
464
462
  }
465
463
  }
466
464
 
467
- export interface SearchValyuTarget {
468
- provider: 'valyu';
469
-
470
- options?: SearchValyuTarget.Options;
471
- }
472
-
473
- export namespace SearchValyuTarget {
474
- export interface Options {
475
- /**
476
- * Trade depth for latency.
477
- */
478
- fast_mode?: boolean;
479
-
480
- /**
481
- * Allow historical cached results.
482
- */
483
- historical_cache?: boolean;
484
-
485
- /**
486
- * Include abstracts for academic sources.
487
- */
488
- include_abstracts?: boolean;
489
-
490
- /**
491
- * Natural-language retrieval guidance.
492
- */
493
- instructions?: string;
494
-
495
- /**
496
- * Mark the search as an agent tool call.
497
- */
498
- is_tool_call?: boolean;
499
-
500
- /**
501
- * Provider-native count. Lower-only alias for max_results.
502
- */
503
- max_num_results?: number;
504
-
505
- /**
506
- * Provider-native USD-per-thousand-results price ceiling. Forwarded to Valyu.
507
- */
508
- max_price?: number;
509
-
510
- /**
511
- * Provider-native minimum relevance threshold. Not a normalized cross-provider
512
- * score.
513
- */
514
- relevance_threshold?: number;
515
-
516
- /**
517
- * Provider result-content length preset.
518
- */
519
- response_length?: 'short' | 'medium' | 'large' | 'max';
520
-
521
- /**
522
- * Corpus selector, including all, web, proprietary, and news. Provider corpus
523
- * choice may change billing; Kernel does not force web-only searches.
524
- */
525
- search_type?: string;
526
-
527
- /**
528
- * Bias retrieval toward these sources.
529
- */
530
- source_biases?: Array<string>;
531
-
532
- /**
533
- * Return URLs without content.
534
- */
535
- url_only?: boolean;
536
- }
537
- }
538
-
539
465
  export interface SearchOctenTarget {
540
466
  provider: 'octen';
541
467
 
@@ -747,87 +673,6 @@ export namespace ProviderTarget {
747
673
  topic?: 'general' | 'news' | 'finance';
748
674
  }
749
675
  }
750
-
751
- export interface SearchSerpAPITarget {
752
- provider: 'serpapi';
753
-
754
- options?: SearchSerpAPITarget.Options;
755
- }
756
-
757
- export namespace SearchSerpAPITarget {
758
- export interface Options {
759
- /**
760
- * SerpApi engine identifier. The Kernel integration currently supports google
761
- * only.
762
- */
763
- engine: string;
764
-
765
- /**
766
- * Device profile used for the search.
767
- */
768
- device?: 'desktop' | 'mobile' | 'tablet';
769
-
770
- /**
771
- * Google duplicate-content filter.
772
- */
773
- filter?: 0 | 1;
774
-
775
- /**
776
- * Two-letter Google country code.
777
- */
778
- gl?: string;
779
-
780
- /**
781
- * Google domain to search when using the google engine.
782
- */
783
- google_domain?: string;
784
-
785
- /**
786
- * Interface language code.
787
- */
788
- hl?: string;
789
-
790
- /**
791
- * Free-form geographic location used for localized results.
792
- */
793
- location?: string;
794
-
795
- /**
796
- * Google auto-correction filter.
797
- */
798
- nfpr?: 0 | 1;
799
-
800
- /**
801
- * When true, bypass SerpApi cached results when supported.
802
- */
803
- no_cache?: boolean;
804
-
805
- /**
806
- * Number of results requested from the search engine.
807
- */
808
- num?: number;
809
-
810
- /**
811
- * Safe-search setting for engines that support it.
812
- */
813
- safe?: 'active' | 'off';
814
-
815
- /**
816
- * Zero-based result offset for pagination.
817
- */
818
- start?: number;
819
-
820
- /**
821
- * Google vertical search selector, such as images, video, news, or shopping.
822
- */
823
- tbm?: string;
824
-
825
- /**
826
- * Google time and search modifiers, including freshness filters.
827
- */
828
- tbs?: string;
829
- }
830
- }
831
676
  }
832
677
 
833
678
  export interface Request {
@@ -79,12 +79,14 @@ export interface BrowserProfile {
79
79
  */
80
80
  export interface BrowserViewport {
81
81
  /**
82
- * Browser window height in pixels. Any positive integer is accepted.
82
+ * Browser window height in pixels. Any positive integer is accepted; headful
83
+ * browsers require at least 64.
83
84
  */
84
85
  height: number;
85
86
 
86
87
  /**
87
- * Browser window width in pixels. Any positive integer is accepted.
88
+ * Browser window width in pixels. Any positive integer is accepted; headful
89
+ * browsers require at least 64.
88
90
  */
89
91
  width: number;
90
92
 
@@ -118,7 +118,8 @@ export type VaultProviderConfigsOffsetPagination = OffsetPagination<VaultProvide
118
118
  */
119
119
  export type VaultProviderConfig =
120
120
  | VaultProviderConfig.VaultLinkProviderConfig
121
- | VaultProviderConfig.VaultAgentCardProviderConfig;
121
+ | VaultProviderConfig.VaultAgentCardProviderConfig
122
+ | VaultProviderConfig.VaultVgsProviderConfig;
122
123
 
123
124
  export namespace VaultProviderConfig {
124
125
  /**
@@ -175,11 +176,47 @@ export namespace VaultProviderConfig {
175
176
 
176
177
  updated_at: string;
177
178
  }
179
+
180
+ /**
181
+ * Response schema for a customer-managed VGS vault configuration, without the
182
+ * client secret. Kernel generates the ID and timestamps. Configuration creation
183
+ * uses VaultVgsProviderConfigRequest.
184
+ */
185
+ export interface VaultVgsProviderConfig {
186
+ id: string;
187
+
188
+ /**
189
+ * Service account identity; immutable. The client secret is never returned.
190
+ */
191
+ client_id: string;
192
+
193
+ created_at: string;
194
+
195
+ /**
196
+ * The vault's VGS environment; immutable.
197
+ */
198
+ environment: 'sandbox' | 'live';
199
+
200
+ /**
201
+ * Unique within the organization.
202
+ */
203
+ name: string;
204
+
205
+ provider: 'vgs';
206
+
207
+ updated_at: string;
208
+
209
+ /**
210
+ * The customer's VGS vault ID; immutable.
211
+ */
212
+ vault_id: string;
213
+ }
178
214
  }
179
215
 
180
216
  export type VaultProviderConfigCreateParams =
181
217
  | VaultProviderConfigCreateParams.VaultLinkProviderConfigRequest
182
- | VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest;
218
+ | VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest
219
+ | VaultProviderConfigCreateParams.VaultVgsProviderConfigRequest;
183
220
 
184
221
  export declare namespace VaultProviderConfigCreateParams {
185
222
  export interface VaultLinkProviderConfigRequest {
@@ -227,6 +264,43 @@ export declare namespace VaultProviderConfigCreateParams {
227
264
  client_secret: string;
228
265
  }
229
266
  }
267
+
268
+ export interface VaultVgsProviderConfigRequest {
269
+ /**
270
+ * A VGS service account with the aliases:read scope on the customer's vault, which
271
+ * Kernel uses to reveal the aliases each purchase sends.
272
+ */
273
+ credentials: VaultVgsProviderConfigRequest.Credentials;
274
+
275
+ /**
276
+ * Unique within the organization.
277
+ */
278
+ name: string;
279
+
280
+ provider: 'vgs';
281
+ }
282
+
283
+ export namespace VaultVgsProviderConfigRequest {
284
+ /**
285
+ * A VGS service account with the aliases:read scope on the customer's vault, which
286
+ * Kernel uses to reveal the aliases each purchase sends.
287
+ */
288
+ export interface Credentials {
289
+ client_id: string;
290
+
291
+ client_secret: string;
292
+
293
+ /**
294
+ * The vault's VGS environment.
295
+ */
296
+ environment: 'sandbox' | 'live';
297
+
298
+ /**
299
+ * The customer's VGS vault ID.
300
+ */
301
+ vault_id: string;
302
+ }
303
+ }
230
304
  }
231
305
 
232
306
  export interface VaultProviderConfigUpdateParams {
@@ -82,6 +82,11 @@ export {
82
82
  type VaultItemOperationResponse,
83
83
  type VaultPaymentMethod,
84
84
  type VaultWebmcpBinding,
85
+ type VgsCardInput,
86
+ type VgsCardState,
87
+ type VgsCardVaultItemSpec,
88
+ type VgsWalletState,
89
+ type VgsWalletVaultItemSpec,
85
90
  type WalletVaultItemSpec,
86
91
  type WalletVaultItemState,
87
92
  type WebmcpInvokeVaultItemOperationRequest,
@@ -424,7 +424,8 @@ export type CardVaultItemSpec =
424
424
  | CardVaultItemSpec.LinkCardVaultItemSpec
425
425
  | CardVaultItemSpec.AgentCardCardVaultItemSpec
426
426
  | KernelCardVaultItemSpec
427
- | ShopPayCardVaultItemSpec;
427
+ | ShopPayCardVaultItemSpec
428
+ | VgsCardVaultItemSpec;
428
429
 
429
430
  export namespace CardVaultItemSpec {
430
431
  /**
@@ -608,7 +609,8 @@ export type CardVaultItemState =
608
609
  | CardVaultItemState.LinkCardState
609
610
  | CardVaultItemState.AgentCardCardState
610
611
  | KernelCardState
611
- | ShopPayCardState;
612
+ | ShopPayCardState
613
+ | VgsCardState;
612
614
 
613
615
  export namespace CardVaultItemState {
614
616
  /**
@@ -3915,6 +3917,166 @@ export interface VaultWebmcpBinding {
3915
3917
  format?: string;
3916
3918
  }
3917
3919
 
3920
+ /**
3921
+ * The card's aliases in the customer's VGS vault, its expiry and last four digits.
3922
+ * Write-only: stored encrypted and never returned in the item, its events or logs.
3923
+ * A repeated PUT with the same key must send the same card.
3924
+ */
3925
+ export interface VgsCardInput {
3926
+ /**
3927
+ * A volatile alias of a freshly collected security code in the customer's vault.
3928
+ * It must still exist when authorize runs.
3929
+ */
3930
+ cvc_alias: string;
3931
+
3932
+ exp_month: number;
3933
+
3934
+ exp_year: number;
3935
+
3936
+ /**
3937
+ * The card number's last four digits, checked against the revealed alias.
3938
+ */
3939
+ last4: string;
3940
+
3941
+ /**
3942
+ * A persistent alias of the card number in the customer's vault.
3943
+ */
3944
+ pan_alias: string;
3945
+ }
3946
+
3947
+ /**
3948
+ * A ready VGS card supports fill, then submit checkout, until expires_at. Kernel
3949
+ * does not observe whether the merchant charged the card. masks.last4 is the
3950
+ * card's last four digits.
3951
+ */
3952
+ export interface VgsCardState {
3953
+ provider: 'vgs';
3954
+
3955
+ /**
3956
+ * requested until authorize reveals the aliases; if the reveal fails before
3957
+ * anything is stored, authorize returns 503 provider_unavailable and the card
3958
+ * stays requested. declined means authorize was refused: invalid_card for aliases
3959
+ * that do not match the card or a card that has expired (fix the input and create
3960
+ * a new card), alias_not_found when the customer's vault has no such alias,
3961
+ * usually an expired CVC alias (collect the CVC again and create a new card), or
3962
+ * provider_credentials_rejected when VGS refused the configuration's service
3963
+ * account (update the provider configuration and create a new card). ready lasts
3964
+ * until the CVC alias expires, then expired.
3965
+ */
3966
+ status: 'requested' | 'pending_authorization' | 'ready' | 'expired' | 'declined' | 'recovery_required';
3967
+
3968
+ /**
3969
+ * Informational registrable domain. Fill is locked to merchant_url's exact origin.
3970
+ */
3971
+ domains?: Array<string>;
3972
+
3973
+ masks?: VgsCardState.Masks;
3974
+
3975
+ status_reason?: string;
3976
+ }
3977
+
3978
+ export namespace VgsCardState {
3979
+ export interface Masks {
3980
+ brand?: string;
3981
+
3982
+ last4?: string;
3983
+
3984
+ /**
3985
+ * Last four digits of the network token presented to the merchant.
3986
+ */
3987
+ token_last4?: string;
3988
+
3989
+ [k: string]: string | undefined;
3990
+ }
3991
+ }
3992
+
3993
+ /**
3994
+ * One live purchase with a card in the customer's VGS vault. authorize reveals
3995
+ * card.pan_alias and card.cvc_alias through Kernel's VGS outbound proxy, which
3996
+ * replaces both with aliases in Kernel's vault before they reach Kernel; Kernel
3997
+ * never receives the card number or security code. The card is then ready with no
3998
+ * further approval, until expires_at, by default five minutes after authorize.
3999
+ * fill types Kernel's aliases on merchant_url's origin, and Kernel's VGS proxy
4000
+ * replaces them with the card's details when the browser submits checkout. An
4001
+ * expired card requires a new purchase with a freshly collected CVC alias. The
4002
+ * amount and merchant are recorded but do not restrict payment requests sent by
4003
+ * the browser. Card updates are not supported; delete and create a new item
4004
+ * instead.
4005
+ */
4006
+ export interface VgsCardVaultItemSpec {
4007
+ /**
4008
+ * Integer amount in minor currency units (at most 1000000).
4009
+ */
4010
+ amount: number;
4011
+
4012
+ /**
4013
+ * ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,
4014
+ * krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.
4015
+ */
4016
+ currency: string;
4017
+
4018
+ merchant_name: string;
4019
+
4020
+ /**
4021
+ * Merchant checkout URL. Fill is allowed only on this URL's origin.
4022
+ */
4023
+ merchant_url: string;
4024
+
4025
+ provider: 'vgs';
4026
+
4027
+ /**
4028
+ * Key of the VGS wallet item whose configuration reads the aliases.
4029
+ */
4030
+ wallet: string;
4031
+
4032
+ /**
4033
+ * Required when creating the card. Never returned.
4034
+ */
4035
+ card?: VgsCardInput;
4036
+ }
4037
+
4038
+ export interface VgsWalletState {
4039
+ provider: 'vgs';
4040
+
4041
+ /**
4042
+ * A VGS wallet is connected on creation. pending_authorization or degraded means
4043
+ * its creation did not finish; reading the wallet retries it, and a wallet that
4044
+ * stays degraded can be deleted and created again. Whether its configuration's
4045
+ * credentials still work is checked when a card is authorized.
4046
+ */
4047
+ status: 'pending_authorization' | 'connected' | 'degraded';
4048
+
4049
+ status_reason?: string;
4050
+ }
4051
+
4052
+ /**
4053
+ * Cards kept in the customer's own VGS vault. The wallet binds a VGS provider
4054
+ * configuration and is connected on creation; it holds no cards and has no payment
4055
+ * methods. Each purchase is a card item that carries the card's aliases from the
4056
+ * customer's vault. The configuration binding cannot be changed after creation.
4057
+ */
4058
+ export interface VgsWalletVaultItemSpec {
4059
+ provider: 'vgs';
4060
+
4061
+ /**
4062
+ * Select a VGS configuration. Required, because there are no Kernel-managed VGS
4063
+ * credentials for this provider.
4064
+ */
4065
+ provider_config: VgsWalletVaultItemSpec.ProviderConfig;
4066
+ }
4067
+
4068
+ export namespace VgsWalletVaultItemSpec {
4069
+ /**
4070
+ * Select a VGS configuration. Required, because there are no Kernel-managed VGS
4071
+ * credentials for this provider.
4072
+ */
4073
+ export interface ProviderConfig {
4074
+ id?: string;
4075
+
4076
+ name?: string;
4077
+ }
4078
+ }
4079
+
3918
4080
  /**
3919
4081
  * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
3920
4082
  * select a customer-owned configuration. Mode (sandbox vs live) is determined by
@@ -3935,7 +4097,8 @@ export type WalletVaultItemSpec =
3935
4097
  | WalletVaultItemSpec.LinkWalletVaultItemSpec
3936
4098
  | WalletVaultItemSpec.AgentCardWalletVaultItemSpec
3937
4099
  | KernelWalletVaultItemSpec
3938
- | ShopPayWalletVaultItemSpec;
4100
+ | ShopPayWalletVaultItemSpec
4101
+ | VgsWalletVaultItemSpec;
3939
4102
 
3940
4103
  export namespace WalletVaultItemSpec {
3941
4104
  export interface LinkWalletVaultItemSpec {
@@ -4035,7 +4198,8 @@ export type WalletVaultItemState =
4035
4198
  | WalletVaultItemState.LinkWalletState
4036
4199
  | WalletVaultItemState.AgentCardWalletState
4037
4200
  | KernelWalletState
4038
- | ShopPayWalletState;
4201
+ | ShopPayWalletState
4202
+ | VgsWalletState;
4039
4203
 
4040
4204
  export namespace WalletVaultItemState {
4041
4205
  export interface LinkWalletState {
@@ -4784,7 +4948,8 @@ export declare namespace ItemUpsertParams {
4784
4948
  | WalletVaultItemRequest.LinkWalletVaultItemRequestSpec
4785
4949
  | WalletVaultItemRequest.AgentCardWalletVaultItemSpec
4786
4950
  | KernelWalletVaultItemSpec
4787
- | ShopPayWalletVaultItemSpec;
4951
+ | ShopPayWalletVaultItemSpec
4952
+ | VgsWalletVaultItemSpec;
4788
4953
 
4789
4954
  /**
4790
4955
  * Body param
@@ -4831,30 +4996,31 @@ export declare namespace ItemUpsertParams {
4831
4996
  * subsequent refresh-token rotation after a successful import; the customer must
4832
4997
  * stop refreshing this grant. With token_refresh=customer, send only the access
4833
4998
  * token: your backend keeps the refresh token and rotates the grant, and Kernel
4834
- * never refreshes or revokes it. Replace the stored access token with the wallet's
4835
- * update_access_token operation before each step that reaches Link, such as
4836
- * creating, authorizing or filling a card. When Link rejects the stored access
4837
- * token, operations return 409 without contacting Link again; update the token and
4838
- * retry. The remainder of this description applies to token_refresh=kernel. With
4839
- * token_refresh=kernel, Kernel owns subsequent refresh-token rotation; the
4840
- * customer must stop refreshing this grant. Import does not verify the refresh
4841
- * token: if it or the configured client credentials are rejected during a later
4842
- * refresh, the imported wallet becomes degraded. An unknown refresh outcome also
4843
- * leaves it degraded; Kernel does not retry a refresh token that may already have
4844
- * been consumed. There is no in-place reauthorization operation for an imported
4845
- * wallet. If this imported wallet's credentials become unusable, obtain a fresh
4846
- * Link OAuth grant in your backend and create a wallet under a NEW wallet key. Use
4847
- * the new wallet for NEW cards and payments, not to retry an old payment whose
4848
- * outcome is uncertain. This does not replace the old grant, rebind existing
4849
- * cards, or resolve their payment outcomes. Retain the old wallet and its cards
4850
- * while reconciling any uncertain payments with the provider or support. Do not
4851
- * repeat an uncertain payment on the new wallet, and do not treat deletion as
4852
- * evidence that it did not execute. Deletion of the old wallet can remain blocked
4853
- * by unresolved child cards. Repeating a create for the same item key and
4854
- * non-secret spec returns the existing wallet without replacing tokens, even if
4855
- * they have rotated or the wallet needs reconnection. ID and name references
4856
- * resolving to the same config are equivalent. A different config or non-secret
4857
- * spec returns 409. This create operation does not replace an existing grant.
4999
+ * never refreshes or revokes it. When Link rejects the stored access token, any
5000
+ * operation that reaches Link, such as creating, authorizing or filling a card,
5001
+ * returns 409 with code access_token_rejected without contacting Link again. Push
5002
+ * a fresh access token with the wallet's update_access_token operation, then retry
5003
+ * the operation. The remainder of this description applies to
5004
+ * token_refresh=kernel. With token_refresh=kernel, Kernel owns subsequent
5005
+ * refresh-token rotation; the customer must stop refreshing this grant. Import
5006
+ * does not verify the refresh token: if it or the configured client credentials
5007
+ * are rejected during a later refresh, the imported wallet becomes degraded. An
5008
+ * unknown refresh outcome also leaves it degraded; Kernel does not retry a refresh
5009
+ * token that may already have been consumed. There is no in-place reauthorization
5010
+ * operation for an imported wallet. If this imported wallet's credentials become
5011
+ * unusable, obtain a fresh Link OAuth grant in your backend and create a wallet
5012
+ * under a NEW wallet key. Use the new wallet for NEW cards and payments, not to
5013
+ * retry an old payment whose outcome is uncertain. This does not replace the old
5014
+ * grant, rebind existing cards, or resolve their payment outcomes. Retain the old
5015
+ * wallet and its cards while reconciling any uncertain payments with the provider
5016
+ * or support. Do not repeat an uncertain payment on the new wallet, and do not
5017
+ * treat deletion as evidence that it did not execute. Deletion of the old wallet
5018
+ * can remain blocked by unresolved child cards. Repeating a create for the same
5019
+ * item key and non-secret spec returns the existing wallet without replacing
5020
+ * tokens, even if they have rotated or the wallet needs reconnection. ID and name
5021
+ * references resolving to the same config are equivalent. A different config or
5022
+ * non-secret spec returns 409. This create operation does not replace an existing
5023
+ * grant.
4858
5024
  */
4859
5025
  export interface ImportedLinkAuthorizationInput {
4860
5026
  client: ImportedLinkAuthorizationInput.Client;
@@ -5130,6 +5296,11 @@ export declare namespace Items {
5130
5296
  type VaultItemOperationResponse as VaultItemOperationResponse,
5131
5297
  type VaultPaymentMethod as VaultPaymentMethod,
5132
5298
  type VaultWebmcpBinding as VaultWebmcpBinding,
5299
+ type VgsCardInput as VgsCardInput,
5300
+ type VgsCardState as VgsCardState,
5301
+ type VgsCardVaultItemSpec as VgsCardVaultItemSpec,
5302
+ type VgsWalletState as VgsWalletState,
5303
+ type VgsWalletVaultItemSpec as VgsWalletVaultItemSpec,
5133
5304
  type WalletVaultItemSpec as WalletVaultItemSpec,
5134
5305
  type WalletVaultItemState as WalletVaultItemState,
5135
5306
  type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest,
@@ -92,6 +92,11 @@ import {
92
92
  VaultItemOperationResponse,
93
93
  VaultPaymentMethod,
94
94
  VaultWebmcpBinding,
95
+ VgsCardInput,
96
+ VgsCardState,
97
+ VgsCardVaultItemSpec,
98
+ VgsWalletState,
99
+ VgsWalletVaultItemSpec,
95
100
  WalletVaultItemSpec,
96
101
  WalletVaultItemState,
97
102
  WebmcpInvokeVaultItemOperationRequest,
@@ -366,6 +371,11 @@ export declare namespace Vaults {
366
371
  type VaultItemOperationResponse as VaultItemOperationResponse,
367
372
  type VaultPaymentMethod as VaultPaymentMethod,
368
373
  type VaultWebmcpBinding as VaultWebmcpBinding,
374
+ type VgsCardInput as VgsCardInput,
375
+ type VgsCardState as VgsCardState,
376
+ type VgsCardVaultItemSpec as VgsCardVaultItemSpec,
377
+ type VgsWalletState as VgsWalletState,
378
+ type VgsWalletVaultItemSpec as VgsWalletVaultItemSpec,
369
379
  type WalletVaultItemSpec as WalletVaultItemSpec,
370
380
  type WalletVaultItemState as WalletVaultItemState,
371
381
  type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.140.0'; // x-release-please-version
1
+ export const VERSION = '0.142.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.140.0";
1
+ export declare const VERSION = "0.142.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.140.0";
1
+ export declare const VERSION = "0.142.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.140.0'; // x-release-please-version
4
+ exports.VERSION = '0.142.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.140.0'; // x-release-please-version
1
+ export const VERSION = '0.142.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map