@onkernel/sdk 0.143.0 → 0.145.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.145.0](https://github.com/kernel/kernel-node-sdk/compare/v0.144.0...v0.145.0) (2026-11-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * Discard browser sessions on immediate API key revocation ([#5272](https://github.com/kernel/kernel-node-sdk/issues/5272)) ([b6a069d](https://github.com/kernel/kernel-node-sdk/commit/b6a069d808687661dce0ddd2f3cf7d5bc502d3ee))
9
+ * Expose Link card credential_type and explain pay token fill rejections ([37fe4d3](https://github.com/kernel/kernel-node-sdk/commit/37fe4d35c0d9fe1d002dcd31b36af2fdf3c85e20))
10
+
11
+ ## [0.144.0](https://github.com/kernel/kernel-node-sdk/compare/v0.143.0...v0.144.0) (2026-11-09)
12
+
13
+
14
+ ### Features
15
+
16
+ * Add server-to-server card ingest for Kernel wallets ([a00925b](https://github.com/kernel/kernel-node-sdk/commit/a00925b9bbc49a85d1e3589cd5500774e58ab3c5))
17
+
3
18
  ## [0.143.0](https://github.com/kernel/kernel-node-sdk/compare/v0.142.0...v0.143.0) (2026-11-07)
4
19
 
5
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/sdk",
3
- "version": "0.143.0",
3
+ "version": "0.145.0",
4
4
  "description": "The official TypeScript library for the Kernel API",
5
5
  "author": "Kernel <>",
6
6
  "types": "./index.d.ts",
@@ -52,8 +52,9 @@ export declare class APIKeys extends APIResource {
52
52
  */
53
53
  list(query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysOffsetPagination, APIKey>;
54
54
  /**
55
- * Delete an API key. A key cannot delete itself; use a different key to delete
56
- * this one.
55
+ * Delete an API key and asynchronously end browser sessions attributed to it,
56
+ * discarding unsaved profile changes. A key cannot delete itself; use a different
57
+ * key to delete this one. If cleanup cannot be registered, the key is not deleted.
57
58
  *
58
59
  * @example
59
60
  * ```ts
@@ -64,7 +65,11 @@ export declare class APIKeys extends APIResource {
64
65
  /**
65
66
  * Rotate an API key. Issues a new key that copies the name and project of the
66
67
  * rotated key, and schedules the rotated key to expire after a grace period so
67
- * in-flight callers can swap over. The new plaintext key is returned once.
68
+ * in-flight callers can swap over. The new plaintext key is returned once. With
69
+ * expire_in_days set to 0, browser sessions attributed to the old key are ended
70
+ * asynchronously and unsaved profile changes are discarded. Grace-period and
71
+ * natural expiry do not end existing browsers. If cleanup cannot be registered, an
72
+ * immediate rotation is not committed.
68
73
  *
69
74
  * @example
70
75
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.d.mts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIrF;;;;;;;;OAQG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAIrB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,IAAI,CACF,K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
@@ -52,8 +52,9 @@ export declare class APIKeys extends APIResource {
52
52
  */
53
53
  list(query?: APIKeyListParams | null | undefined, options?: RequestOptions): PagePromise<APIKeysOffsetPagination, APIKey>;
54
54
  /**
55
- * Delete an API key. A key cannot delete itself; use a different key to delete
56
- * this one.
55
+ * Delete an API key and asynchronously end browser sessions attributed to it,
56
+ * discarding unsaved profile changes. A key cannot delete itself; use a different
57
+ * key to delete this one. If cleanup cannot be registered, the key is not deleted.
57
58
  *
58
59
  * @example
59
60
  * ```ts
@@ -64,7 +65,11 @@ export declare class APIKeys extends APIResource {
64
65
  /**
65
66
  * Rotate an API key. Issues a new key that copies the name and project of the
66
67
  * rotated key, and schedules the rotated key to expire after a grace period so
67
- * in-flight callers can swap over. The new plaintext key is returned once.
68
+ * in-flight callers can swap over. The new plaintext key is returned once. With
69
+ * expire_in_days set to 0, browser sessions attributed to the old key are ended
70
+ * asynchronously and unsaved profile changes are discarded. Grace-period and
71
+ * natural expiry do not end existing browsers. If cleanup cannot be registered, an
72
+ * immediate rotation is not committed.
68
73
  *
69
74
  * @example
70
75
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIrF;;;;;;;;OAQG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SA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AAa,IAAI,aAAa,EACnC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -64,8 +64,9 @@ class APIKeys extends resource_1.APIResource {
64
64
  return this._client.getAPIList('/org/api_keys', (pagination_1.OffsetPagination), { query, ...options });
65
65
  }
66
66
  /**
67
- * Delete an API key. A key cannot delete itself; use a different key to delete
68
- * this one.
67
+ * Delete an API key and asynchronously end browser sessions attributed to it,
68
+ * discarding unsaved profile changes. A key cannot delete itself; use a different
69
+ * key to delete this one. If cleanup cannot be registered, the key is not deleted.
69
70
  *
70
71
  * @example
71
72
  * ```ts
@@ -81,7 +82,11 @@ class APIKeys extends resource_1.APIResource {
81
82
  /**
82
83
  * Rotate an API key. Issues a new key that copies the name and project of the
83
84
  * rotated key, and schedules the rotated key to expire after a grace period so
84
- * in-flight callers can swap over. The new plaintext key is returned once.
85
+ * in-flight callers can swap over. The new plaintext key is returned once. With
86
+ * expire_in_days set to 0, browser sessions attributed to the old key are ended
87
+ * asynchronously and unsaved profile changes are discarded. Grace-period and
88
+ * natural expiry do not end existing browsers. If cleanup cannot be registered, an
89
+ * immediate rotation is not committed.
85
90
  *
86
91
  * @example
87
92
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.js","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,C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AE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAvGD,0BAuGC"}
@@ -61,8 +61,9 @@ export class APIKeys extends APIResource {
61
61
  return this._client.getAPIList('/org/api_keys', (OffsetPagination), { query, ...options });
62
62
  }
63
63
  /**
64
- * Delete an API key. A key cannot delete itself; use a different key to delete
65
- * this one.
64
+ * Delete an API key and asynchronously end browser sessions attributed to it,
65
+ * discarding unsaved profile changes. A key cannot delete itself; use a different
66
+ * key to delete this one. If cleanup cannot be registered, the key is not deleted.
66
67
  *
67
68
  * @example
68
69
  * ```ts
@@ -78,7 +79,11 @@ export class APIKeys extends APIResource {
78
79
  /**
79
80
  * Rotate an API key. Issues a new key that copies the name and project of the
80
81
  * rotated key, and schedules the rotated key to expire after a grace period so
81
- * in-flight callers can swap over. The new plaintext key is returned once.
82
+ * in-flight callers can swap over. The new plaintext key is returned once. With
83
+ * expire_in_days set to 0, browser sessions attributed to the old key are ended
84
+ * asynchronously and unsaved profile changes are discarded. Grace-period and
85
+ * natural expiry do not end existing browsers. If cleanup cannot be registered, an
86
+ * immediate rotation is not committed.
82
87
  *
83
88
  * @example
84
89
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.mjs","sourceRoot":"","sources":["../src/resources/api-keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAA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CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,gBAAwB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAU,EACV,OAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
@@ -130,7 +130,8 @@ export declare class Items extends APIResource {
130
130
  * a failure, an `unknown` outcome, or a transport error.
131
131
  *
132
132
  * Connected Kernel wallets may advertise add_payment_method, which returns a
133
- * single-use hosted card_enrollment link for a card, and remove_payment_method,
133
+ * single-use hosted card_enrollment link for a card, or with enrollment server a
134
+ * single-use card_ingest URL for the card's issuer, and remove_payment_method,
134
135
  * which removes one card without affecting the others. Both operations require
135
136
  * vaults:write in addition to vaults:use on the vault for scoped API keys, and
136
137
  * return 403 without both permissions.
@@ -172,21 +173,30 @@ export declare class Items extends APIResource {
172
173
  upsert(key: string, params: ItemUpsertParams, options?: RequestOptions): APIPromise<VaultItem>;
173
174
  }
174
175
  /**
175
- * Start hosted enrollment of a card in a connected Kernel wallet, including its
176
- * first card, only when the wallet advertises add_payment_method. Returns a new
177
- * payment method in pending_enrollment with a single-use card_enrollment URL for
178
- * the cardholder. Card details go directly to the card vault and are never
179
- * accepted by this API. Each call creates a separate link that expires after 30
180
- * minutes; a failed or expired enrollment does not affect the wallet's other
181
- * payment methods. Scoped API keys require vaults:write in addition to vaults:use
182
- * on this vault; otherwise the operation returns 403.
176
+ * Start enrollment of a card in a connected Kernel wallet, including its first
177
+ * card, only when the wallet advertises add_payment_method. Returns a new payment
178
+ * method in pending_enrollment with a single-use action. Card details go directly
179
+ * to the card vault and are never accepted by this API. With enrollment hosted
180
+ * (the default) the action is a card_enrollment URL for the cardholder, which
181
+ * expires after 30 minutes. With enrollment server the action is a card_ingest URL
182
+ * that the card's issuer posts the card to from its backend, which expires after 5
183
+ * minutes; server enrollment returns 409 when it is not configured for the
184
+ * organization's card backend. A failed or expired enrollment does not affect the
185
+ * wallet's other payment methods. Scoped API keys require vaults:write in addition
186
+ * to vaults:use on this vault; otherwise the operation returns 403.
183
187
  */
184
188
  export interface AddPaymentMethodVaultItemOperationRequest {
185
189
  type: 'add_payment_method';
190
+ /**
191
+ * hosted returns a card_enrollment link for the cardholder. server returns a
192
+ * card_ingest URL for the card's issuer to post the card to server to server.
193
+ */
194
+ enrollment?: 'hosted' | 'server';
186
195
  }
187
196
  /**
188
- * The payment method created in pending_enrollment. Deliver action.url to the
189
- * cardholder; it is a single-use capability and must not be logged. Observe
197
+ * The payment method created in pending_enrollment. Deliver a card_enrollment
198
+ * action.url to the cardholder; it is a single-use capability and must not be
199
+ * logged. A card_ingest action.url is posted to by the card's issuer. Observe
190
200
  * completion through the wallet's payment_methods expansion.
191
201
  */
192
202
  export interface AddPaymentMethodVaultItemOperationResult {
@@ -326,8 +336,8 @@ export interface AuthorizeVaultItemOperationRequest {
326
336
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
327
337
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
328
338
  * and internally chooses a merchant-bound Link Pay Token when supported or a
329
- * virtual card otherwise. Callers never receive or choose how the credential is
330
- * delivered.
339
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
340
+ * after authorize, state.credential_type reports it.
331
341
  */
332
342
  export type CardVaultItemSpec = CardVaultItemSpec.LinkCardVaultItemSpec | CardVaultItemSpec.AgentCardCardVaultItemSpec | KernelCardVaultItemSpec | ShopPayCardVaultItemSpec | VgsCardVaultItemSpec;
333
343
  export declare namespace CardVaultItemSpec {
@@ -336,8 +346,8 @@ export declare namespace CardVaultItemSpec {
336
346
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
337
347
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
338
348
  * and internally chooses a merchant-bound Link Pay Token when supported or a
339
- * virtual card otherwise. Callers never receive or choose how the credential is
340
- * delivered.
349
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
350
+ * after authorize, state.credential_type reports it.
341
351
  */
342
352
  interface LinkCardVaultItemSpec {
343
353
  /**
@@ -491,6 +501,14 @@ export declare namespace CardVaultItemState {
491
501
  * and should approve only the new one.
492
502
  */
493
503
  status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
504
+ /**
505
+ * The Link spend request's credential_type, set when authorize sends the request
506
+ * to Link. Absent before authorize and after Link rejects the request; a ready
507
+ * card without it fills like card. card is a Link virtual card; fill it with field
508
+ * bindings. link_pay_token is a Link Pay Token that Kernel supplies through the
509
+ * checkout's Link WebMCP tool; fill it without fields.
510
+ */
511
+ credential_type?: 'card' | 'link_pay_token';
494
512
  domains?: Array<string>;
495
513
  masks?: LinkCardState.Masks;
496
514
  status_reason?: string;
@@ -2107,8 +2125,8 @@ export interface PaymentRequestVaultItem {
2107
2125
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
2108
2126
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
2109
2127
  * and internally chooses a merchant-bound Link Pay Token when supported or a
2110
- * virtual card otherwise. Callers never receive or choose how the credential is
2111
- * delivered.
2128
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
2129
+ * after authorize, state.credential_type reports it.
2112
2130
  */
2113
2131
  spec: PaymentRequestVaultItemSpec;
2114
2132
  /**
@@ -2144,8 +2162,8 @@ export declare namespace PaymentRequestVaultItem {
2144
2162
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
2145
2163
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
2146
2164
  * and internally chooses a merchant-bound Link Pay Token when supported or a
2147
- * virtual card otherwise. Callers never receive or choose how the credential is
2148
- * delivered.
2165
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
2166
+ * after authorize, state.credential_type reports it.
2149
2167
  */
2150
2168
  export type PaymentRequestVaultItemSpec = PaymentRequestVaultItemSpec.LinkCardVaultItemSpec | KernelPaymentRequestVaultItemSpec;
2151
2169
  export declare namespace PaymentRequestVaultItemSpec {
@@ -2154,8 +2172,8 @@ export declare namespace PaymentRequestVaultItemSpec {
2154
2172
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
2155
2173
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
2156
2174
  * and internally chooses a merchant-bound Link Pay Token when supported or a
2157
- * virtual card otherwise. Callers never receive or choose how the credential is
2158
- * delivered.
2175
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
2176
+ * after authorize, state.credential_type reports it.
2159
2177
  */
2160
2178
  interface LinkCardVaultItemSpec {
2161
2179
  /**
@@ -2270,6 +2288,14 @@ export declare namespace PaymentRequestVaultItemState {
2270
2288
  * and should approve only the new one.
2271
2289
  */
2272
2290
  status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
2291
+ /**
2292
+ * The Link spend request's credential_type, set when authorize sends the request
2293
+ * to Link. Absent before authorize and after Link rejects the request; a ready
2294
+ * card without it fills like card. card is a Link virtual card; fill it with field
2295
+ * bindings. link_pay_token is a Link Pay Token that Kernel supplies through the
2296
+ * checkout's Link WebMCP tool; fill it without fields.
2297
+ */
2298
+ credential_type?: 'card' | 'link_pay_token';
2273
2299
  domains?: Array<string>;
2274
2300
  masks?: LinkCardState.Masks;
2275
2301
  status_reason?: string;
@@ -2710,8 +2736,8 @@ export declare namespace VaultItem {
2710
2736
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
2711
2737
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
2712
2738
  * and internally chooses a merchant-bound Link Pay Token when supported or a
2713
- * virtual card otherwise. Callers never receive or choose how the credential is
2714
- * delivered.
2739
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
2740
+ * after authorize, state.credential_type reports it.
2715
2741
  */
2716
2742
  spec: ItemsAPI.CardVaultItemSpec;
2717
2743
  /**
@@ -2893,8 +2919,8 @@ export declare namespace VaultItemOperationResponse {
2893
2919
  * be changed with PATCH until the card is authorized at a checkout. Authorize it
2894
2920
  * with the browser at final checkout: Kernel inspects the checkout through WebMCP
2895
2921
  * and internally chooses a merchant-bound Link Pay Token when supported or a
2896
- * virtual card otherwise. Callers never receive or choose how the credential is
2897
- * delivered.
2922
+ * virtual card otherwise. Callers do not choose how the credential is delivered;
2923
+ * after authorize, state.credential_type reports it.
2898
2924
  */
2899
2925
  spec: ItemsAPI.CardVaultItemSpec;
2900
2926
  /**
@@ -2948,14 +2974,25 @@ export interface VaultPaymentMethod {
2948
2974
  * Provider-neutral payment-method type normalized to lowercase.
2949
2975
  */
2950
2976
  type: string;
2977
+ /**
2978
+ * The open enrollment of a pending payment method. card_enrollment is a single-use
2979
+ * hosted link for the cardholder. card_ingest is a single-use URL on a Kernel
2980
+ * ingest hostname served by the card vault, which the card's issuer posts the card
2981
+ * to from its backend; Kernel never receives the card number or CVC.
2982
+ */
2951
2983
  action?: VaultPaymentMethod.Action;
2952
2984
  /**
2953
- * Expiry of a pending enrollment link.
2985
+ * Expiry of a pending enrollment link or ingest URL.
2954
2986
  */
2955
2987
  expires_at?: string;
2956
2988
  /**
2957
- * Kernel wallets only. pending_enrollment means a card_enrollment link is open;
2958
- * active means the card is stored and can pay when
2989
+ * Kernel wallets only. The issuer's reference for a card it pushed with a
2990
+ * card_ingest URL.
2991
+ */
2992
+ issuer_reference?: string;
2993
+ /**
2994
+ * Kernel wallets only. pending_enrollment means a card_enrollment link or
2995
+ * card_ingest URL is open; active means the card is stored and can pay when
2959
2996
  * capabilities.single_use_card.eligible is true; removal_pending means removal
2960
2997
  * started but the provider outcome is unknown, so retry remove_payment_method;
2961
2998
  * recovery_required means either an enrollment outcome is unknown (remove the
@@ -2965,6 +3002,11 @@ export interface VaultPaymentMethod {
2965
3002
  */
2966
3003
  status?: 'pending_enrollment' | 'active' | 'removal_pending' | 'recovery_required';
2967
3004
  status_reason?: string;
3005
+ /**
3006
+ * Kernel wallets only. When a card pushed with a card_ingest URL stops being
3007
+ * usable, as its issuer set.
3008
+ */
3009
+ valid_until?: string;
2968
3010
  }
2969
3011
  export declare namespace VaultPaymentMethod {
2970
3012
  /**
@@ -2985,13 +3027,19 @@ export declare namespace VaultPaymentMethod {
2985
3027
  label?: string;
2986
3028
  last4?: string;
2987
3029
  }
3030
+ /**
3031
+ * The open enrollment of a pending payment method. card_enrollment is a single-use
3032
+ * hosted link for the cardholder. card_ingest is a single-use URL on a Kernel
3033
+ * ingest hostname served by the card vault, which the card's issuer posts the card
3034
+ * to from its backend; Kernel never receives the card number or CVC.
3035
+ */
2988
3036
  interface Action {
2989
- name: 'card_enrollment';
3037
+ name: 'card_enrollment' | 'card_ingest';
2990
3038
  url: string;
2991
3039
  /**
2992
3040
  * Secret bearer capability for embedded card capture with @onkernel/vault-react.
2993
- * Present only for Kernel wallets; never for AgentCard. Treat it like the
2994
- * enrollment URL and do not log or persist it in browser storage.
3041
+ * Present only on card_enrollment for Kernel wallets; never for AgentCard. Treat
3042
+ * it like the enrollment URL and do not log or persist it in browser storage.
2995
3043
  */
2996
3044
  capture_token?: string;
2997
3045
  }
@@ -3390,8 +3438,8 @@ export declare namespace ItemUpdateParams {
3390
3438
  * The spec can be changed with PATCH until the card is authorized at a checkout.
3391
3439
  * Authorize it with the browser at final checkout: Kernel inspects the checkout
3392
3440
  * through WebMCP and internally chooses a merchant-bound Link Pay Token when
3393
- * supported or a virtual card otherwise. Callers never receive or choose how the
3394
- * credential is delivered.
3441
+ * supported or a virtual card otherwise. Callers do not choose how the credential
3442
+ * is delivered; after authorize, state.credential_type reports it.
3395
3443
  */
3396
3444
  spec: CardVaultItemSpec;
3397
3445
  /**
@@ -3409,8 +3457,8 @@ export declare namespace ItemUpdateParams {
3409
3457
  * The spec can be changed with PATCH until the card is authorized at a checkout.
3410
3458
  * Authorize it with the browser at final checkout: Kernel inspects the checkout
3411
3459
  * through WebMCP and internally chooses a merchant-bound Link Pay Token when
3412
- * supported or a virtual card otherwise. Callers never receive or choose how the
3413
- * credential is delivered.
3460
+ * supported or a virtual card otherwise. Callers do not choose how the credential
3461
+ * is delivered; after authorize, state.credential_type reports it.
3414
3462
  */
3415
3463
  spec: PaymentRequestVaultItemSpec;
3416
3464
  /**
@@ -3826,6 +3874,12 @@ export declare namespace ItemPerformOperationParams {
3826
3874
  * Body param
3827
3875
  */
3828
3876
  type: 'add_payment_method';
3877
+ /**
3878
+ * Body param: hosted returns a card_enrollment link for the cardholder. server
3879
+ * returns a card_ingest URL for the card's issuer to post the card to server to
3880
+ * server.
3881
+ */
3882
+ enrollment?: 'hosted' | 'server';
3829
3883
  }
3830
3884
  interface RemovePaymentMethodVaultItemOperationRequest {
3831
3885
  /**
@@ -4033,8 +4087,8 @@ export declare namespace ItemUpsertParams {
4033
4087
  * The spec can be changed with PATCH until the card is authorized at a checkout.
4034
4088
  * Authorize it with the browser at final checkout: Kernel inspects the checkout
4035
4089
  * through WebMCP and internally chooses a merchant-bound Link Pay Token when
4036
- * supported or a virtual card otherwise. Callers never receive or choose how the
4037
- * credential is delivered.
4090
+ * supported or a virtual card otherwise. Callers do not choose how the credential
4091
+ * is delivered; after authorize, state.credential_type reports it.
4038
4092
  */
4039
4093
  spec: CardVaultItemSpec;
4040
4094
  /**
@@ -4052,8 +4106,8 @@ export declare namespace ItemUpsertParams {
4052
4106
  * The spec can be changed with PATCH until the card is authorized at a checkout.
4053
4107
  * Authorize it with the browser at final checkout: Kernel inspects the checkout
4054
4108
  * through WebMCP and internally chooses a merchant-bound Link Pay Token when
4055
- * supported or a virtual card otherwise. Callers never receive or choose how the
4056
- * credential is delivered.
4109
+ * supported or a virtual card otherwise. Callers do not choose how the credential
4110
+ * is delivered; after authorize, state.credential_type reports it.
4057
4111
  */
4058
4112
  spec: PaymentRequestVaultItemSpec;
4059
4113
  /**