@onkernel/sdk 0.131.0 → 0.133.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 +16 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +1 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +5 -0
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +5 -0
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/vaults/index.d.mts +1 -1
- package/resources/vaults/index.d.mts.map +1 -1
- package/resources/vaults/index.d.ts +1 -1
- package/resources/vaults/index.d.ts.map +1 -1
- package/resources/vaults/index.js.map +1 -1
- package/resources/vaults/index.mjs.map +1 -1
- package/resources/vaults/items.d.mts +530 -64
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +530 -64
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/items.js +10 -2
- package/resources/vaults/items.js.map +1 -1
- package/resources/vaults/items.mjs +10 -2
- package/resources/vaults/items.mjs.map +1 -1
- package/resources/vaults/vaults.d.mts +2 -2
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +2 -2
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/client.ts +1 -0
- package/src/resources/api-keys.ts +6 -0
- package/src/resources/vaults/index.ts +8 -0
- package/src/resources/vaults/items.ts +677 -60
- package/src/resources/vaults/vaults.ts +16 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -156,6 +156,12 @@ export class Items extends APIResource {
|
|
|
156
156
|
* `failed` or `unknown`. Fill never submits the page, so it is safe to retry after
|
|
157
157
|
* a failure, an `unknown` outcome, or a transport error.
|
|
158
158
|
*
|
|
159
|
+
* Connected Kernel wallets may advertise add_payment_method, which returns a
|
|
160
|
+
* single-use hosted card_enrollment link for a card, and remove_payment_method,
|
|
161
|
+
* which removes one card without affecting the others. Both operations require
|
|
162
|
+
* vaults:write in addition to vaults:use on the vault for scoped API keys, and
|
|
163
|
+
* return 403 without both permissions.
|
|
164
|
+
*
|
|
159
165
|
* @example
|
|
160
166
|
* ```ts
|
|
161
167
|
* const vaultItemOperationResponse =
|
|
@@ -188,8 +194,10 @@ export class Items extends APIResource {
|
|
|
188
194
|
* Provider-specific authorization requirements and retry behavior are described in
|
|
189
195
|
* the item's request schema. Do not use credential items to store, collect, or
|
|
190
196
|
* fill credit card data, including card numbers (PANs), security codes (CVV/CVC),
|
|
191
|
-
* or expiration dates. Use wallet and card item types for credit
|
|
192
|
-
* checkout instead.
|
|
197
|
+
* or expiration dates. Use wallet, payment_request and card item types for credit
|
|
198
|
+
* cards and payment checkout instead. Where enabled, Link and Kernel purchases can
|
|
199
|
+
* be payment_request items parented by their wallet; card items remain supported
|
|
200
|
+
* for them and for AgentCard reusable cards.
|
|
193
201
|
*
|
|
194
202
|
* @example
|
|
195
203
|
* ```ts
|
|
@@ -206,6 +214,31 @@ export class Items extends APIResource {
|
|
|
206
214
|
}
|
|
207
215
|
}
|
|
208
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Start hosted enrollment of a card in a connected Kernel wallet, including its
|
|
219
|
+
* first card, only when the wallet advertises add_payment_method. Returns a new
|
|
220
|
+
* payment method in pending_enrollment with a single-use card_enrollment URL for
|
|
221
|
+
* the cardholder. Card details go directly to the card vault and are never
|
|
222
|
+
* accepted by this API. Each call creates a separate link that expires after 30
|
|
223
|
+
* minutes; a failed or expired enrollment does not affect the wallet's other
|
|
224
|
+
* payment methods. Scoped API keys require vaults:write in addition to vaults:use
|
|
225
|
+
* on this vault; otherwise the operation returns 403.
|
|
226
|
+
*/
|
|
227
|
+
export interface AddPaymentMethodVaultItemOperationRequest {
|
|
228
|
+
type: 'add_payment_method';
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The payment method created in pending_enrollment. Deliver action.url to the
|
|
233
|
+
* cardholder; it is a single-use capability and must not be logged. Observe
|
|
234
|
+
* completion through the wallet's payment_methods expansion.
|
|
235
|
+
*/
|
|
236
|
+
export interface AddPaymentMethodVaultItemOperationResult {
|
|
237
|
+
payment_method: VaultPaymentMethod;
|
|
238
|
+
|
|
239
|
+
type: 'add_payment_method';
|
|
240
|
+
}
|
|
241
|
+
|
|
209
242
|
/**
|
|
210
243
|
* The in-flight or most recent checkout authorization. Present while a checkout is
|
|
211
244
|
* pending approval and after it settles.
|
|
@@ -805,7 +838,9 @@ export namespace CredentialAccountVaultItem {
|
|
|
805
838
|
| '1pw_fill'
|
|
806
839
|
| '1pw_recover'
|
|
807
840
|
| '1pw_update_access_token'
|
|
808
|
-
| 'webmcp_invoke'
|
|
841
|
+
| 'webmcp_invoke'
|
|
842
|
+
| 'add_payment_method'
|
|
843
|
+
| 'remove_payment_method';
|
|
809
844
|
}
|
|
810
845
|
}
|
|
811
846
|
|
|
@@ -1183,7 +1218,9 @@ export namespace CredentialVaultItem {
|
|
|
1183
1218
|
| '1pw_fill'
|
|
1184
1219
|
| '1pw_recover'
|
|
1185
1220
|
| '1pw_update_access_token'
|
|
1186
|
-
| 'webmcp_invoke'
|
|
1221
|
+
| 'webmcp_invoke'
|
|
1222
|
+
| 'add_payment_method'
|
|
1223
|
+
| 'remove_payment_method';
|
|
1187
1224
|
}
|
|
1188
1225
|
|
|
1189
1226
|
export interface OnePasswordAccessApprovalAction {
|
|
@@ -1210,22 +1247,22 @@ export namespace CredentialVaultItem {
|
|
|
1210
1247
|
* path fails, collect a Kernel-hosted credential item instead. Never automatically
|
|
1211
1248
|
* retry an uncertain 1Password request. After an uncertain fill, inspect the page
|
|
1212
1249
|
* to see the result of the fill. Do not use credential items for credit card data.
|
|
1213
|
-
* Use wallet and card item types instead. Kernel credentials
|
|
1214
|
-
* may enter pending_collection. 1Password credentials either
|
|
1215
|
-
* credential_account or store a supplied access token and
|
|
1216
|
-
* encrypted on the item. They store no login values or selectors.
|
|
1217
|
-
* credentials reference a managed auth connection in the same project
|
|
1218
|
-
* has a saved credential, and read it at fill time; they store no
|
|
1219
|
-
* Repeating the original creation request returns the current item without
|
|
1250
|
+
* Use wallet, payment_request and card item types instead. Kernel credentials
|
|
1251
|
+
* declare fields and may enter pending_collection. 1Password credentials either
|
|
1252
|
+
* reference a connected credential_account or store a supplied access token and
|
|
1253
|
+
* integration key encrypted on the item. They store no login values or selectors.
|
|
1254
|
+
* Managed auth credentials reference a managed auth connection in the same project
|
|
1255
|
+
* that already has a saved credential, and read it at fill time; they store no
|
|
1256
|
+
* values. Repeating the original creation request returns the current item without
|
|
1220
1257
|
* overwriting later state. A different request at the same key returns 409.
|
|
1221
1258
|
*/
|
|
1222
1259
|
export interface CredentialVaultItemRequest {
|
|
1223
1260
|
/**
|
|
1224
1261
|
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
1225
|
-
* collect, or fill credit card data in credential items. Use wallet
|
|
1226
|
-
* types for credit cards and payment checkout
|
|
1227
|
-
* the user-facing collection form, so list
|
|
1228
|
-
* as the website.
|
|
1262
|
+
* collect, or fill credit card data in credential items. Use wallet,
|
|
1263
|
+
* payment_request and card item types for credit cards and payment checkout
|
|
1264
|
+
* instead. Field order is preserved in the user-facing collection form, so list
|
|
1265
|
+
* fields in the same top-to-bottom order as the website.
|
|
1229
1266
|
*/
|
|
1230
1267
|
spec: CredentialVaultItemSpecInput;
|
|
1231
1268
|
|
|
@@ -1243,10 +1280,10 @@ export type CredentialVaultItemSpec =
|
|
|
1243
1280
|
|
|
1244
1281
|
/**
|
|
1245
1282
|
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
1246
|
-
* collect, or fill credit card data in credential items. Use wallet
|
|
1247
|
-
* types for credit cards and payment checkout
|
|
1248
|
-
* the user-facing collection form, so list
|
|
1249
|
-
* as the website.
|
|
1283
|
+
* collect, or fill credit card data in credential items. Use wallet,
|
|
1284
|
+
* payment_request and card item types for credit cards and payment checkout
|
|
1285
|
+
* instead. Field order is preserved in the user-facing collection form, so list
|
|
1286
|
+
* fields in the same top-to-bottom order as the website.
|
|
1250
1287
|
*/
|
|
1251
1288
|
export type CredentialVaultItemSpecInput =
|
|
1252
1289
|
| KernelCredentialVaultItemSpecInput
|
|
@@ -1453,8 +1490,25 @@ export interface KernelCardState {
|
|
|
1453
1490
|
*/
|
|
1454
1491
|
domains?: Array<string>;
|
|
1455
1492
|
|
|
1493
|
+
/**
|
|
1494
|
+
* Whether payment_method_id can still fund this purchase. unavailable means the
|
|
1495
|
+
* method is being removed or awaits recovery, so authorization, fill and
|
|
1496
|
+
* confirmation are refused until it recovers. removed means the method was removed
|
|
1497
|
+
* from its wallet, so this purchase can no longer be paid; create a new purchase
|
|
1498
|
+
* with another method. Neither changes status, which still reports what already
|
|
1499
|
+
* happened to this purchase.
|
|
1500
|
+
*/
|
|
1501
|
+
funding_status?: 'available' | 'unavailable' | 'removed';
|
|
1502
|
+
|
|
1456
1503
|
masks?: KernelCardState.Masks;
|
|
1457
1504
|
|
|
1505
|
+
/**
|
|
1506
|
+
* Wallet-scoped ID of the payment method funding this purchase. It is bound when
|
|
1507
|
+
* the purchase is created and never changes; purchases created before payment
|
|
1508
|
+
* methods could be selected report the wallet's default card, card.
|
|
1509
|
+
*/
|
|
1510
|
+
payment_method_id?: string;
|
|
1511
|
+
|
|
1458
1512
|
status_reason?: string;
|
|
1459
1513
|
}
|
|
1460
1514
|
|
|
@@ -1534,6 +1588,15 @@ export interface KernelCardVaultItemSpec {
|
|
|
1534
1588
|
* one-time code is issued for the merchant's country.
|
|
1535
1589
|
*/
|
|
1536
1590
|
merchant_country?: string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Wallet-scoped payment method ID from the wallet's payment_methods expansion.
|
|
1594
|
+
* Omission selects the wallet's default card, ID card, for compatibility with
|
|
1595
|
+
* existing requests; it never falls back to another method, and a wallet without a
|
|
1596
|
+
* default card requires the ID. The purchase is bound to the method's enrolled
|
|
1597
|
+
* card and network token, so later operations cannot switch funding.
|
|
1598
|
+
*/
|
|
1599
|
+
payment_method_id?: string;
|
|
1537
1600
|
}
|
|
1538
1601
|
|
|
1539
1602
|
export interface KernelCredentialVaultItemSpec {
|
|
@@ -1554,10 +1617,10 @@ export interface KernelCredentialVaultItemSpec {
|
|
|
1554
1617
|
|
|
1555
1618
|
/**
|
|
1556
1619
|
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
1557
|
-
* collect, or fill credit card data in credential items. Use wallet
|
|
1558
|
-
* types for credit cards and payment checkout
|
|
1559
|
-
* the user-facing collection form, so list
|
|
1560
|
-
* as the website.
|
|
1620
|
+
* collect, or fill credit card data in credential items. Use wallet,
|
|
1621
|
+
* payment_request and card item types for credit cards and payment checkout
|
|
1622
|
+
* instead. Field order is preserved in the user-facing collection form, so list
|
|
1623
|
+
* fields in the same top-to-bottom order as the website.
|
|
1561
1624
|
*/
|
|
1562
1625
|
export interface KernelCredentialVaultItemSpecInput {
|
|
1563
1626
|
/**
|
|
@@ -1592,16 +1655,80 @@ export interface KernelCredentialVaultItemState {
|
|
|
1592
1655
|
status: 'pending_collection' | 'ready';
|
|
1593
1656
|
}
|
|
1594
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* One live purchase funded by the Kernel wallet payment method named by
|
|
1660
|
+
* payment_method_id. The method must be active and eligible when the request is
|
|
1661
|
+
* created. The purchase is bound to that method; later operations cannot switch
|
|
1662
|
+
* funding, and removing the method makes the purchase unusable rather than moving
|
|
1663
|
+
* it to another card. Approval, issuance, fill and the alias fallback behave as
|
|
1664
|
+
* described for KernelCardVaultItemSpec.
|
|
1665
|
+
*/
|
|
1666
|
+
export interface KernelPaymentRequestVaultItemSpec {
|
|
1667
|
+
/**
|
|
1668
|
+
* Integer amount in minor currency units (at most 1000000), bound to the one-time
|
|
1669
|
+
* code.
|
|
1670
|
+
*/
|
|
1671
|
+
amount: number;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,
|
|
1675
|
+
* krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.
|
|
1676
|
+
*/
|
|
1677
|
+
currency: string;
|
|
1678
|
+
|
|
1679
|
+
merchant_name: string;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Merchant checkout URL. Fill is allowed only on this URL's origin.
|
|
1683
|
+
*/
|
|
1684
|
+
merchant_url: string;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Payment method ID from the wallet's payment_methods expansion.
|
|
1688
|
+
*/
|
|
1689
|
+
payment_method_id: string;
|
|
1690
|
+
|
|
1691
|
+
provider: 'kernel';
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Key of the Kernel wallet item that owns the payment method.
|
|
1695
|
+
*/
|
|
1696
|
+
wallet: string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Actual merchant category when known. Omit rather than invent a category.
|
|
1700
|
+
*/
|
|
1701
|
+
merchant_category?: string;
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Actual merchant MCC when known. Omit rather than invent a code. 0000 is not
|
|
1705
|
+
* accepted.
|
|
1706
|
+
*/
|
|
1707
|
+
merchant_category_code?: string;
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose
|
|
1711
|
+
* one-time code is issued for the merchant's country.
|
|
1712
|
+
*/
|
|
1713
|
+
merchant_country?: string;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1595
1716
|
export interface KernelWalletState {
|
|
1596
1717
|
provider: 'kernel';
|
|
1597
1718
|
|
|
1598
1719
|
/**
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
* capabilities.single_use_card.eligible.
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1720
|
+
* connected means the wallet is usable. It holds zero or more cards as payment
|
|
1721
|
+
* methods, listed by the payment_methods expansion, and each can pay once it
|
|
1722
|
+
* reports capabilities.single_use_card.eligible. A wallet with no cards, before
|
|
1723
|
+
* its first card or after its last is removed, is still connected. Where the
|
|
1724
|
+
* wallet advertises add_payment_method and remove_payment_method, use them to
|
|
1725
|
+
* manage cards. Otherwise the wallet enrolls one default card when created; until
|
|
1726
|
+
* that card is enrolled the wallet reports pending_authorization with the card's
|
|
1727
|
+
* card_enrollment action, or degraded when the card's enrollment outcome is
|
|
1728
|
+
* unknown and the wallet must be deleted before adding another card.
|
|
1729
|
+
* reconnect_required appears only on a wallet created before cards were payment
|
|
1730
|
+
* methods and not yet upgraded. Reads preserve its stored state until the operator
|
|
1731
|
+
* upgrade; payment and deletion requests are refused until then.
|
|
1605
1732
|
*/
|
|
1606
1733
|
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
|
|
1607
1734
|
|
|
@@ -1609,17 +1736,21 @@ export interface KernelWalletState {
|
|
|
1609
1736
|
}
|
|
1610
1737
|
|
|
1611
1738
|
/**
|
|
1612
|
-
*
|
|
1613
|
-
* card*enrollment action: the cardholder
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1739
|
+
* Cards stored with Kernel-managed credentials, each a payment method of the
|
|
1740
|
+
* wallet. Each card is enrolled through a card*enrollment action: the cardholder
|
|
1741
|
+
* enters the card and their email on a Kernel-hosted page. Where the wallet
|
|
1742
|
+
* advertises add_payment_method, creation returns an empty connected wallet and
|
|
1743
|
+
* each card is enrolled with that operation. Otherwise creation returns the
|
|
1744
|
+
* wallet's default card's card_enrollment action, and the wallet connects once
|
|
1745
|
+
* that card is stored. Kernel then enrolls each card for an agentic network token
|
|
1746
|
+
* when the issuer supports it. The card number never reaches Kernel. The connected
|
|
1747
|
+
* wallet's payment_methods expansion lists the cards;
|
|
1748
|
+
* capabilities.single_use_card.eligible is false, with a network_token*\* reason,
|
|
1749
|
+
* until the card has a network token, and authorize returns 400 for such a card
|
|
1750
|
+
* unless Kernel supports checkout delivery without a network token for that card.
|
|
1751
|
+
* In that case, fill types the checkout details. Visa purchases require the
|
|
1752
|
+
* cardholder to complete a spend_approval action before Kernel issues a one-time
|
|
1753
|
+
* code; Mastercard purchases need no hosted approval.
|
|
1623
1754
|
*/
|
|
1624
1755
|
export interface KernelWalletVaultItemSpec {
|
|
1625
1756
|
provider: 'kernel';
|
|
@@ -2087,8 +2218,9 @@ export interface OnePasswordCredentialVaultItemState {
|
|
|
2087
2218
|
status: 'pending_authorization' | 'ready' | 'declined' | 'failed';
|
|
2088
2219
|
|
|
2089
2220
|
/**
|
|
2090
|
-
* Non-secret broker state. Granted credential references
|
|
2091
|
-
*
|
|
2221
|
+
* Non-secret broker state. Granted credential references are returned in resolved
|
|
2222
|
+
* only for credentials with a customer-supplied access token; otherwise they stay
|
|
2223
|
+
* encrypted server-side and can only be used by the fill operation.
|
|
2092
2224
|
*/
|
|
2093
2225
|
access_request?: OnePasswordCredentialVaultItemState.AccessRequest;
|
|
2094
2226
|
|
|
@@ -2103,8 +2235,9 @@ export interface OnePasswordCredentialVaultItemState {
|
|
|
2103
2235
|
|
|
2104
2236
|
export namespace OnePasswordCredentialVaultItemState {
|
|
2105
2237
|
/**
|
|
2106
|
-
* Non-secret broker state. Granted credential references
|
|
2107
|
-
*
|
|
2238
|
+
* Non-secret broker state. Granted credential references are returned in resolved
|
|
2239
|
+
* only for credentials with a customer-supplied access token; otherwise they stay
|
|
2240
|
+
* encrypted server-side and can only be used by the fill operation.
|
|
2108
2241
|
*/
|
|
2109
2242
|
export interface AccessRequest {
|
|
2110
2243
|
id: string;
|
|
@@ -2149,6 +2282,14 @@ export namespace OnePasswordCredentialVaultItemState {
|
|
|
2149
2282
|
* may omit entries; no entry IDs are invented.
|
|
2150
2283
|
*/
|
|
2151
2284
|
request?: AccessRequest.Request;
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* Granted logins in the shape 1Password's getAccessRequestStatus returns. Present
|
|
2288
|
+
* only for ready credentials with a customer-supplied access token, on single-item
|
|
2289
|
+
* responses to callers that can use the vault. Each reference works only with that
|
|
2290
|
+
* credential's access token and integration key.
|
|
2291
|
+
*/
|
|
2292
|
+
resolved?: Array<AccessRequest.Resolved>;
|
|
2152
2293
|
}
|
|
2153
2294
|
|
|
2154
2295
|
export namespace AccessRequest {
|
|
@@ -2201,15 +2342,28 @@ export namespace OnePasswordCredentialVaultItemState {
|
|
|
2201
2342
|
}
|
|
2202
2343
|
}
|
|
2203
2344
|
}
|
|
2345
|
+
|
|
2346
|
+
export interface Resolved {
|
|
2347
|
+
/**
|
|
2348
|
+
* 1Password credential reference. Pass it unchanged as resourcePath to the
|
|
2349
|
+
* extension's fillCredential or to the 1Password SDK.
|
|
2350
|
+
*/
|
|
2351
|
+
reference: string;
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* The requested entry this login satisfies, when known.
|
|
2355
|
+
*/
|
|
2356
|
+
entryId?: string;
|
|
2357
|
+
}
|
|
2204
2358
|
}
|
|
2205
2359
|
}
|
|
2206
2360
|
|
|
2207
2361
|
/**
|
|
2208
2362
|
* Fill and submit an approved 1Password login in the selected browser page. The
|
|
2209
2363
|
* page must share the selected entry's login origin. Supply entry_id when more
|
|
2210
|
-
* than one approved entry matches the page origin
|
|
2211
|
-
*
|
|
2212
|
-
* website authentication.
|
|
2364
|
+
* than one approved entry matches the page origin, and target_id when more than
|
|
2365
|
+
* one open page has page_url. The extension selects fields; callers cannot supply
|
|
2366
|
+
* selectors or secret values. Submission does not confirm website authentication.
|
|
2213
2367
|
*/
|
|
2214
2368
|
export interface OnePasswordFillVaultItemOperationRequest {
|
|
2215
2369
|
/**
|
|
@@ -2219,7 +2373,7 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
2219
2373
|
|
|
2220
2374
|
/**
|
|
2221
2375
|
* Exact current top-level page URL. Must match exactly one open page in the
|
|
2222
|
-
* browser.
|
|
2376
|
+
* browser unless target_id is supplied.
|
|
2223
2377
|
*/
|
|
2224
2378
|
page_url: string;
|
|
2225
2379
|
|
|
@@ -2231,6 +2385,14 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
2231
2385
|
*/
|
|
2232
2386
|
entry_id?: string;
|
|
2233
2387
|
|
|
2388
|
+
/**
|
|
2389
|
+
* CDP target ID of the page to fill, such as tab.target_id from
|
|
2390
|
+
* playwright.execute. Use it when several open pages have page_url. The page's
|
|
2391
|
+
* current URL must equal page_url. Kernel brings the page to the front of its
|
|
2392
|
+
* window before filling.
|
|
2393
|
+
*/
|
|
2394
|
+
target_id?: string;
|
|
2395
|
+
|
|
2234
2396
|
timeout_ms?: number;
|
|
2235
2397
|
}
|
|
2236
2398
|
|
|
@@ -2310,6 +2472,283 @@ export interface PasskeyVaultItemOperationResult {
|
|
|
2310
2472
|
rp_id?: string;
|
|
2311
2473
|
}
|
|
2312
2474
|
|
|
2475
|
+
/**
|
|
2476
|
+
* One purchase from a Link or Kernel wallet, parented by that wallet. It has the
|
|
2477
|
+
* same lifecycle, operations and fill behavior as a Link or Kernel card item.
|
|
2478
|
+
* AgentCard reusable cards remain card items.
|
|
2479
|
+
*/
|
|
2480
|
+
export interface PaymentRequestVaultItem {
|
|
2481
|
+
id: string;
|
|
2482
|
+
|
|
2483
|
+
available_expansions: Array<PaymentRequestVaultItem.AvailableExpansion>;
|
|
2484
|
+
|
|
2485
|
+
available_operations: Array<PaymentRequestVaultItem.AvailableOperation>;
|
|
2486
|
+
|
|
2487
|
+
created_at: string;
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Immutable item key assigned when the item is created.
|
|
2491
|
+
*/
|
|
2492
|
+
key: string;
|
|
2493
|
+
|
|
2494
|
+
/**
|
|
2495
|
+
* Live Link card request. Test-mode card creation is not supported. The spec can
|
|
2496
|
+
* be changed with PATCH until the card is authorized at a checkout. Authorize it
|
|
2497
|
+
* with the browser at final checkout: Kernel inspects the checkout through WebMCP
|
|
2498
|
+
* and internally chooses a merchant-bound Link Pay Token when supported or a
|
|
2499
|
+
* virtual card otherwise. Callers never receive or choose how the credential is
|
|
2500
|
+
* delivered.
|
|
2501
|
+
*/
|
|
2502
|
+
spec: PaymentRequestVaultItemSpec;
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
* Issued Link cards retain encrypted card material for the fill operation. Link
|
|
2506
|
+
* cards do not expose aliases or support egress substitution.
|
|
2507
|
+
*/
|
|
2508
|
+
state: PaymentRequestVaultItemState;
|
|
2509
|
+
|
|
2510
|
+
type: 'payment_request';
|
|
2511
|
+
|
|
2512
|
+
updated_at: string;
|
|
2513
|
+
|
|
2514
|
+
action?: VaultItemAction;
|
|
2515
|
+
|
|
2516
|
+
expires_at?: string;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
export namespace PaymentRequestVaultItem {
|
|
2520
|
+
/**
|
|
2521
|
+
* Live data that can currently be requested by passing its type to the item GET
|
|
2522
|
+
* expand parameter.
|
|
2523
|
+
*/
|
|
2524
|
+
export interface AvailableExpansion {
|
|
2525
|
+
description: string;
|
|
2526
|
+
|
|
2527
|
+
type: 'payment_methods' | 'link_user_info' | 'link_shipping_addresses';
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* An operation that is currently valid for this item. Read the description before
|
|
2532
|
+
* invoking it through the item operations endpoint.
|
|
2533
|
+
*/
|
|
2534
|
+
export interface AvailableOperation {
|
|
2535
|
+
description: string;
|
|
2536
|
+
|
|
2537
|
+
type:
|
|
2538
|
+
| 'authorize'
|
|
2539
|
+
| 'restart_verification'
|
|
2540
|
+
| 'confirm_transaction'
|
|
2541
|
+
| 'collect'
|
|
2542
|
+
| 'prepare_checkout'
|
|
2543
|
+
| 'fill'
|
|
2544
|
+
| 'arm_passkey'
|
|
2545
|
+
| 'register_passkey'
|
|
2546
|
+
| 'disarm_passkey'
|
|
2547
|
+
| '1pw_create_access_request'
|
|
2548
|
+
| '1pw_access_request_status'
|
|
2549
|
+
| '1pw_fill'
|
|
2550
|
+
| '1pw_recover'
|
|
2551
|
+
| '1pw_update_access_token'
|
|
2552
|
+
| 'webmcp_invoke'
|
|
2553
|
+
| 'add_payment_method'
|
|
2554
|
+
| 'remove_payment_method';
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Live Link card request. Test-mode card creation is not supported. The spec can
|
|
2560
|
+
* be changed with PATCH until the card is authorized at a checkout. Authorize it
|
|
2561
|
+
* with the browser at final checkout: Kernel inspects the checkout through WebMCP
|
|
2562
|
+
* and internally chooses a merchant-bound Link Pay Token when supported or a
|
|
2563
|
+
* virtual card otherwise. Callers never receive or choose how the credential is
|
|
2564
|
+
* delivered.
|
|
2565
|
+
*/
|
|
2566
|
+
export type PaymentRequestVaultItemSpec =
|
|
2567
|
+
| PaymentRequestVaultItemSpec.LinkCardVaultItemSpec
|
|
2568
|
+
| KernelPaymentRequestVaultItemSpec;
|
|
2569
|
+
|
|
2570
|
+
export namespace PaymentRequestVaultItemSpec {
|
|
2571
|
+
/**
|
|
2572
|
+
* Live Link card request. Test-mode card creation is not supported. The spec can
|
|
2573
|
+
* be changed with PATCH until the card is authorized at a checkout. Authorize it
|
|
2574
|
+
* with the browser at final checkout: Kernel inspects the checkout through WebMCP
|
|
2575
|
+
* and internally chooses a merchant-bound Link Pay Token when supported or a
|
|
2576
|
+
* virtual card otherwise. Callers never receive or choose how the credential is
|
|
2577
|
+
* delivered.
|
|
2578
|
+
*/
|
|
2579
|
+
export interface LinkCardVaultItemSpec {
|
|
2580
|
+
/**
|
|
2581
|
+
* Integer amount in minor currency units, at most 50000. With recurring, the
|
|
2582
|
+
* spending limit per period, not a lifetime total.
|
|
2583
|
+
*/
|
|
2584
|
+
amount: number;
|
|
2585
|
+
|
|
2586
|
+
context: string;
|
|
2587
|
+
|
|
2588
|
+
currency: string;
|
|
2589
|
+
|
|
2590
|
+
merchant_name: string;
|
|
2591
|
+
|
|
2592
|
+
merchant_url: string;
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* Payment-method ID returned by the referenced wallet's payment-method listing.
|
|
2596
|
+
* The provider decides whether the selected funding method can satisfy the card
|
|
2597
|
+
* request.
|
|
2598
|
+
*/
|
|
2599
|
+
payment_method_id: string;
|
|
2600
|
+
|
|
2601
|
+
provider: 'link';
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Connected Link wallet item key.
|
|
2605
|
+
*/
|
|
2606
|
+
wallet: string;
|
|
2607
|
+
|
|
2608
|
+
line_items?: Array<LinkCardVaultItemSpec.LineItem>;
|
|
2609
|
+
|
|
2610
|
+
metadata?: { [key: string]: string };
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Recurring terms for a subscription or other repeated purchase. The amount
|
|
2614
|
+
* becomes the spending limit for each period of interval_count intervals, for
|
|
2615
|
+
* example every 2 weeks. The merchant schedules charges. The card stays ready
|
|
2616
|
+
* after each charge until it expires or is deleted; do not create a new card each
|
|
2617
|
+
* period. Deleting the card, its wallet or its vault first cancels the credential
|
|
2618
|
+
* with Link, so later charges decline; if Link cannot be reached, deletion returns
|
|
2619
|
+
* 409 provider_revocation_pending and should be retried. Deletion does not cancel
|
|
2620
|
+
* the subscription with the merchant. Recurring terms cannot be changed once the
|
|
2621
|
+
* card is authorized.
|
|
2622
|
+
*/
|
|
2623
|
+
recurring?: LinkCardVaultItemSpec.Recurring;
|
|
2624
|
+
|
|
2625
|
+
totals?: Array<LinkCardVaultItemSpec.Total>;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
export namespace LinkCardVaultItemSpec {
|
|
2629
|
+
export interface LineItem {
|
|
2630
|
+
name: string;
|
|
2631
|
+
|
|
2632
|
+
description?: string;
|
|
2633
|
+
|
|
2634
|
+
image_url?: string;
|
|
2635
|
+
|
|
2636
|
+
product_url?: string;
|
|
2637
|
+
|
|
2638
|
+
quantity?: number;
|
|
2639
|
+
|
|
2640
|
+
sku?: string;
|
|
2641
|
+
|
|
2642
|
+
totals?: Array<LineItem.Total>;
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* Unit amount in minor currency units.
|
|
2646
|
+
*/
|
|
2647
|
+
unit_amount?: number;
|
|
2648
|
+
|
|
2649
|
+
url?: string;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
export namespace LineItem {
|
|
2653
|
+
export interface Total {
|
|
2654
|
+
/**
|
|
2655
|
+
* Total amount in minor currency units.
|
|
2656
|
+
*/
|
|
2657
|
+
amount: number;
|
|
2658
|
+
|
|
2659
|
+
display_text: string;
|
|
2660
|
+
|
|
2661
|
+
type: string;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* Recurring terms for a subscription or other repeated purchase. The amount
|
|
2667
|
+
* becomes the spending limit for each period of interval_count intervals, for
|
|
2668
|
+
* example every 2 weeks. The merchant schedules charges. The card stays ready
|
|
2669
|
+
* after each charge until it expires or is deleted; do not create a new card each
|
|
2670
|
+
* period. Deleting the card, its wallet or its vault first cancels the credential
|
|
2671
|
+
* with Link, so later charges decline; if Link cannot be reached, deletion returns
|
|
2672
|
+
* 409 provider_revocation_pending and should be retried. Deletion does not cancel
|
|
2673
|
+
* the subscription with the merchant. Recurring terms cannot be changed once the
|
|
2674
|
+
* card is authorized.
|
|
2675
|
+
*/
|
|
2676
|
+
export interface Recurring {
|
|
2677
|
+
interval: 'day' | 'week' | 'month' | 'year';
|
|
2678
|
+
|
|
2679
|
+
/**
|
|
2680
|
+
* Number of intervals per period. Link defaults it to 1.
|
|
2681
|
+
*/
|
|
2682
|
+
interval_count?: number;
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
export interface Total {
|
|
2686
|
+
/**
|
|
2687
|
+
* Total amount in minor currency units.
|
|
2688
|
+
*/
|
|
2689
|
+
amount: number;
|
|
2690
|
+
|
|
2691
|
+
display_text: string;
|
|
2692
|
+
|
|
2693
|
+
type: string;
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* Issued Link cards retain encrypted card material for the fill operation. Link
|
|
2700
|
+
* cards do not expose aliases or support egress substitution.
|
|
2701
|
+
*/
|
|
2702
|
+
export type PaymentRequestVaultItemState = PaymentRequestVaultItemState.LinkCardState | KernelCardState;
|
|
2703
|
+
|
|
2704
|
+
export namespace PaymentRequestVaultItemState {
|
|
2705
|
+
/**
|
|
2706
|
+
* Issued Link cards retain encrypted card material for the fill operation. Link
|
|
2707
|
+
* cards do not expose aliases or support egress substitution.
|
|
2708
|
+
*/
|
|
2709
|
+
export interface LinkCardState {
|
|
2710
|
+
provider: 'link';
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* recovery_required means an original provider operation has an unresolved outcome
|
|
2714
|
+
* and the card cannot be used. Reads keep observing a known provider request and
|
|
2715
|
+
* may clear the recovery. To continue, delete this card and create a new one;
|
|
2716
|
+
* deleting cancels the original request when its ID is known and keeps the
|
|
2717
|
+
* recovery evidence. The user may see an approval request for the original card
|
|
2718
|
+
* and should approve only the new one.
|
|
2719
|
+
*/
|
|
2720
|
+
status:
|
|
2721
|
+
| 'requested'
|
|
2722
|
+
| 'pending_authorization'
|
|
2723
|
+
| 'ready'
|
|
2724
|
+
| 'consumed'
|
|
2725
|
+
| 'expired'
|
|
2726
|
+
| 'declined'
|
|
2727
|
+
| 'recovery_required';
|
|
2728
|
+
|
|
2729
|
+
domains?: Array<string>;
|
|
2730
|
+
|
|
2731
|
+
masks?: LinkCardState.Masks;
|
|
2732
|
+
|
|
2733
|
+
status_reason?: string;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
export namespace LinkCardState {
|
|
2737
|
+
export interface Masks {
|
|
2738
|
+
brand?: string;
|
|
2739
|
+
|
|
2740
|
+
last4?: string;
|
|
2741
|
+
|
|
2742
|
+
/**
|
|
2743
|
+
* Last four digits of the network token presented to the merchant.
|
|
2744
|
+
*/
|
|
2745
|
+
token_last4?: string;
|
|
2746
|
+
|
|
2747
|
+
[k: string]: string | undefined;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2313
2752
|
/**
|
|
2314
2753
|
* Prepare an unused AgentCard card for a supported checkout. Deliver the returned
|
|
2315
2754
|
* approval URL and keep the approval page open. Poll the item until
|
|
@@ -2360,6 +2799,34 @@ export interface RegisterPasskeyVaultItemOperationRequest {
|
|
|
2360
2799
|
field?: string;
|
|
2361
2800
|
}
|
|
2362
2801
|
|
|
2802
|
+
/**
|
|
2803
|
+
* Remove one payment method from a Kernel wallet, only when the wallet advertises
|
|
2804
|
+
* remove_payment_method. Removal deletes the stored card and blocks new purchases,
|
|
2805
|
+
* fills and confirmations funded by it without affecting the wallet's other
|
|
2806
|
+
* payment methods; the wallet stays connected even with no payment methods left. A
|
|
2807
|
+
* purchase funded by the method with an unresolved outcome blocks removal with 409
|
|
2808
|
+
* purchase_unresolved. If the provider outcome is uncertain the method stays in
|
|
2809
|
+
* removal_pending and keeps refusing payments; retry the removal later. Removal is
|
|
2810
|
+
* not proof that a payment did not occur. Scoped API keys require vaults:write in
|
|
2811
|
+
* addition to vaults:use on this vault; otherwise the operation returns 403.
|
|
2812
|
+
*/
|
|
2813
|
+
export interface RemovePaymentMethodVaultItemOperationRequest {
|
|
2814
|
+
/**
|
|
2815
|
+
* ID from the wallet's payment_methods expansion.
|
|
2816
|
+
*/
|
|
2817
|
+
payment_method_id: string;
|
|
2818
|
+
|
|
2819
|
+
type: 'remove_payment_method';
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
export interface RemovePaymentMethodVaultItemOperationResult {
|
|
2823
|
+
payment_method_id: string;
|
|
2824
|
+
|
|
2825
|
+
status: 'removed';
|
|
2826
|
+
|
|
2827
|
+
type: 'remove_payment_method';
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2363
2830
|
/**
|
|
2364
2831
|
* Explicitly prepare a fresh local verification session for the same Kernel Visa
|
|
2365
2832
|
* purchase and connected wallet, only when restart_verification is advertised.
|
|
@@ -2520,9 +2987,15 @@ export interface VaultFillFieldResult {
|
|
|
2520
2987
|
| 'execution_failed';
|
|
2521
2988
|
}
|
|
2522
2989
|
|
|
2990
|
+
/**
|
|
2991
|
+
* One purchase from a Link or Kernel wallet, parented by that wallet. It has the
|
|
2992
|
+
* same lifecycle, operations and fill behavior as a Link or Kernel card item.
|
|
2993
|
+
* AgentCard reusable cards remain card items.
|
|
2994
|
+
*/
|
|
2523
2995
|
export type VaultItem =
|
|
2524
2996
|
| VaultItem.WalletVaultItem
|
|
2525
2997
|
| VaultItem.CardVaultItem
|
|
2998
|
+
| PaymentRequestVaultItem
|
|
2526
2999
|
| CredentialAccountVaultItem
|
|
2527
3000
|
| CredentialVaultItem;
|
|
2528
3001
|
|
|
@@ -2613,7 +3086,9 @@ export namespace VaultItem {
|
|
|
2613
3086
|
| '1pw_fill'
|
|
2614
3087
|
| '1pw_recover'
|
|
2615
3088
|
| '1pw_update_access_token'
|
|
2616
|
-
| 'webmcp_invoke'
|
|
3089
|
+
| 'webmcp_invoke'
|
|
3090
|
+
| 'add_payment_method'
|
|
3091
|
+
| 'remove_payment_method';
|
|
2617
3092
|
}
|
|
2618
3093
|
|
|
2619
3094
|
/**
|
|
@@ -2710,7 +3185,9 @@ export namespace VaultItem {
|
|
|
2710
3185
|
| '1pw_fill'
|
|
2711
3186
|
| '1pw_recover'
|
|
2712
3187
|
| '1pw_update_access_token'
|
|
2713
|
-
| 'webmcp_invoke'
|
|
3188
|
+
| 'webmcp_invoke'
|
|
3189
|
+
| 'add_payment_method'
|
|
3190
|
+
| 'remove_payment_method';
|
|
2714
3191
|
}
|
|
2715
3192
|
}
|
|
2716
3193
|
}
|
|
@@ -2786,17 +3263,21 @@ export interface VaultItemEvent {
|
|
|
2786
3263
|
/**
|
|
2787
3264
|
* Authorization and preparation return the existing item shape. Fill and passkey
|
|
2788
3265
|
* operations return value-free results; WebMCP invocation returns the tool's
|
|
2789
|
-
* output. None persist transient outcomes on the item.
|
|
3266
|
+
* output. None persist transient outcomes on the item. Payment-method operations
|
|
3267
|
+
* return the affected wallet payment method.
|
|
2790
3268
|
*/
|
|
2791
3269
|
export type VaultItemOperationResponse =
|
|
2792
3270
|
| VaultItemOperationResponse.WalletVaultItem
|
|
2793
3271
|
| VaultItemOperationResponse.CardVaultItem
|
|
3272
|
+
| PaymentRequestVaultItem
|
|
2794
3273
|
| CredentialAccountVaultItem
|
|
2795
3274
|
| CredentialVaultItem
|
|
2796
3275
|
| FillVaultItemOperationResult
|
|
2797
3276
|
| PasskeyVaultItemOperationResult
|
|
2798
3277
|
| OnePasswordFillVaultItemOperationResult
|
|
2799
|
-
| WebmcpInvokeVaultItemOperationResult
|
|
3278
|
+
| WebmcpInvokeVaultItemOperationResult
|
|
3279
|
+
| AddPaymentMethodVaultItemOperationResult
|
|
3280
|
+
| RemovePaymentMethodVaultItemOperationResult;
|
|
2800
3281
|
|
|
2801
3282
|
export namespace VaultItemOperationResponse {
|
|
2802
3283
|
export interface WalletVaultItem {
|
|
@@ -2885,7 +3366,9 @@ export namespace VaultItemOperationResponse {
|
|
|
2885
3366
|
| '1pw_fill'
|
|
2886
3367
|
| '1pw_recover'
|
|
2887
3368
|
| '1pw_update_access_token'
|
|
2888
|
-
| 'webmcp_invoke'
|
|
3369
|
+
| 'webmcp_invoke'
|
|
3370
|
+
| 'add_payment_method'
|
|
3371
|
+
| 'remove_payment_method';
|
|
2889
3372
|
}
|
|
2890
3373
|
|
|
2891
3374
|
/**
|
|
@@ -2982,7 +3465,9 @@ export namespace VaultItemOperationResponse {
|
|
|
2982
3465
|
| '1pw_fill'
|
|
2983
3466
|
| '1pw_recover'
|
|
2984
3467
|
| '1pw_update_access_token'
|
|
2985
|
-
| 'webmcp_invoke'
|
|
3468
|
+
| 'webmcp_invoke'
|
|
3469
|
+
| 'add_payment_method'
|
|
3470
|
+
| 'remove_payment_method';
|
|
2986
3471
|
}
|
|
2987
3472
|
}
|
|
2988
3473
|
}
|
|
@@ -2998,6 +3483,11 @@ export interface VaultPaymentMethod {
|
|
|
2998
3483
|
|
|
2999
3484
|
display: VaultPaymentMethod.Display;
|
|
3000
3485
|
|
|
3486
|
+
/**
|
|
3487
|
+
* For Kernel wallets, true for the default card, ID card, which a Kernel card item
|
|
3488
|
+
* that omits payment_method_id selects. Wallets created with payment methods
|
|
3489
|
+
* enabled have no default card.
|
|
3490
|
+
*/
|
|
3001
3491
|
is_default: boolean;
|
|
3002
3492
|
|
|
3003
3493
|
/**
|
|
@@ -3009,6 +3499,27 @@ export interface VaultPaymentMethod {
|
|
|
3009
3499
|
* Provider-neutral payment-method type normalized to lowercase.
|
|
3010
3500
|
*/
|
|
3011
3501
|
type: string;
|
|
3502
|
+
|
|
3503
|
+
action?: VaultPaymentMethod.Action;
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Expiry of a pending enrollment link.
|
|
3507
|
+
*/
|
|
3508
|
+
expires_at?: string;
|
|
3509
|
+
|
|
3510
|
+
/**
|
|
3511
|
+
* Kernel wallets only. pending_enrollment means a card_enrollment link is open;
|
|
3512
|
+
* active means the card is stored and can pay when
|
|
3513
|
+
* capabilities.single_use_card.eligible is true; removal_pending means removal
|
|
3514
|
+
* started but the provider outcome is unknown, so retry remove_payment_method;
|
|
3515
|
+
* recovery_required means either an enrollment outcome is unknown (remove the
|
|
3516
|
+
* method), or the stored card cannot be read (contact support; removal is refused
|
|
3517
|
+
* with 409). Consult status_reason to distinguish these cases. Absent for other
|
|
3518
|
+
* providers.
|
|
3519
|
+
*/
|
|
3520
|
+
status?: 'pending_enrollment' | 'active' | 'removal_pending' | 'recovery_required';
|
|
3521
|
+
|
|
3522
|
+
status_reason?: string;
|
|
3012
3523
|
}
|
|
3013
3524
|
|
|
3014
3525
|
export namespace VaultPaymentMethod {
|
|
@@ -3035,6 +3546,19 @@ export namespace VaultPaymentMethod {
|
|
|
3035
3546
|
|
|
3036
3547
|
last4?: string;
|
|
3037
3548
|
}
|
|
3549
|
+
|
|
3550
|
+
export interface Action {
|
|
3551
|
+
name: 'card_enrollment';
|
|
3552
|
+
|
|
3553
|
+
url: string;
|
|
3554
|
+
|
|
3555
|
+
/**
|
|
3556
|
+
* Secret bearer capability for embedded card capture with @onkernel/vault-react.
|
|
3557
|
+
* Present only for Kernel wallets; never for AgentCard. Treat it like the
|
|
3558
|
+
* enrollment URL and do not log or persist it in browser storage.
|
|
3559
|
+
*/
|
|
3560
|
+
capture_token?: string;
|
|
3561
|
+
}
|
|
3038
3562
|
}
|
|
3039
3563
|
|
|
3040
3564
|
export interface VaultWebmcpBinding {
|
|
@@ -3301,6 +3825,7 @@ export interface ItemRetrieveParams {
|
|
|
3301
3825
|
|
|
3302
3826
|
export type ItemUpdateParams =
|
|
3303
3827
|
| ItemUpdateParams.CardVaultItemUpdateRequest
|
|
3828
|
+
| ItemUpdateParams.PaymentRequestVaultItemUpdateRequest
|
|
3304
3829
|
| ItemUpdateParams.CredentialVaultItemUpdateRequest;
|
|
3305
3830
|
|
|
3306
3831
|
export declare namespace ItemUpdateParams {
|
|
@@ -3326,6 +3851,28 @@ export declare namespace ItemUpdateParams {
|
|
|
3326
3851
|
type?: 'card';
|
|
3327
3852
|
}
|
|
3328
3853
|
|
|
3854
|
+
export interface PaymentRequestVaultItemUpdateRequest {
|
|
3855
|
+
/**
|
|
3856
|
+
* Path param
|
|
3857
|
+
*/
|
|
3858
|
+
id_or_name: string;
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* Body param: Live Link card request. Test-mode card creation is not supported.
|
|
3862
|
+
* The spec can be changed with PATCH until the card is authorized at a checkout.
|
|
3863
|
+
* Authorize it with the browser at final checkout: Kernel inspects the checkout
|
|
3864
|
+
* through WebMCP and internally chooses a merchant-bound Link Pay Token when
|
|
3865
|
+
* supported or a virtual card otherwise. Callers never receive or choose how the
|
|
3866
|
+
* credential is delivered.
|
|
3867
|
+
*/
|
|
3868
|
+
spec: PaymentRequestVaultItemSpec;
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Body param
|
|
3872
|
+
*/
|
|
3873
|
+
type: 'payment_request';
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3329
3876
|
export interface CredentialVaultItemUpdateRequest {
|
|
3330
3877
|
/**
|
|
3331
3878
|
* Path param
|
|
@@ -3393,7 +3940,9 @@ export type ItemPerformOperationParams =
|
|
|
3393
3940
|
| ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
|
|
3394
3941
|
| ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
|
|
3395
3942
|
| ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest
|
|
3396
|
-
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
3943
|
+
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
3944
|
+
| ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest
|
|
3945
|
+
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest;
|
|
3397
3946
|
|
|
3398
3947
|
export declare namespace ItemPerformOperationParams {
|
|
3399
3948
|
export interface AuthorizeVaultItemOperationRequest {
|
|
@@ -3681,7 +4230,7 @@ export declare namespace ItemPerformOperationParams {
|
|
|
3681
4230
|
|
|
3682
4231
|
/**
|
|
3683
4232
|
* Body param: Exact current top-level page URL. Must match exactly one open page
|
|
3684
|
-
* in the browser.
|
|
4233
|
+
* in the browser unless target_id is supplied.
|
|
3685
4234
|
*/
|
|
3686
4235
|
page_url: string;
|
|
3687
4236
|
|
|
@@ -3696,6 +4245,14 @@ export declare namespace ItemPerformOperationParams {
|
|
|
3696
4245
|
*/
|
|
3697
4246
|
entry_id?: string;
|
|
3698
4247
|
|
|
4248
|
+
/**
|
|
4249
|
+
* Body param: CDP target ID of the page to fill, such as tab.target_id from
|
|
4250
|
+
* playwright.execute. Use it when several open pages have page_url. The page's
|
|
4251
|
+
* current URL must equal page_url. Kernel brings the page to the front of its
|
|
4252
|
+
* window before filling.
|
|
4253
|
+
*/
|
|
4254
|
+
target_id?: string;
|
|
4255
|
+
|
|
3699
4256
|
/**
|
|
3700
4257
|
* Body param
|
|
3701
4258
|
*/
|
|
@@ -3781,11 +4338,41 @@ export declare namespace ItemPerformOperationParams {
|
|
|
3781
4338
|
*/
|
|
3782
4339
|
timeout_sec?: number;
|
|
3783
4340
|
}
|
|
4341
|
+
|
|
4342
|
+
export interface AddPaymentMethodVaultItemOperationRequest {
|
|
4343
|
+
/**
|
|
4344
|
+
* Path param
|
|
4345
|
+
*/
|
|
4346
|
+
id_or_name: string;
|
|
4347
|
+
|
|
4348
|
+
/**
|
|
4349
|
+
* Body param
|
|
4350
|
+
*/
|
|
4351
|
+
type: 'add_payment_method';
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
export interface RemovePaymentMethodVaultItemOperationRequest {
|
|
4355
|
+
/**
|
|
4356
|
+
* Path param
|
|
4357
|
+
*/
|
|
4358
|
+
id_or_name: string;
|
|
4359
|
+
|
|
4360
|
+
/**
|
|
4361
|
+
* Body param: ID from the wallet's payment_methods expansion.
|
|
4362
|
+
*/
|
|
4363
|
+
payment_method_id: string;
|
|
4364
|
+
|
|
4365
|
+
/**
|
|
4366
|
+
* Body param
|
|
4367
|
+
*/
|
|
4368
|
+
type: 'remove_payment_method';
|
|
4369
|
+
}
|
|
3784
4370
|
}
|
|
3785
4371
|
|
|
3786
4372
|
export type ItemUpsertParams =
|
|
3787
4373
|
| ItemUpsertParams.WalletVaultItemRequest
|
|
3788
4374
|
| ItemUpsertParams.CardVaultItemRequest
|
|
4375
|
+
| ItemUpsertParams.PaymentRequestVaultItemRequest
|
|
3789
4376
|
| ItemUpsertParams.CredentialAccountVaultItemRequest
|
|
3790
4377
|
| ItemUpsertParams.CredentialVaultItemRequest;
|
|
3791
4378
|
|
|
@@ -3997,6 +4584,28 @@ export declare namespace ItemUpsertParams {
|
|
|
3997
4584
|
type: 'card';
|
|
3998
4585
|
}
|
|
3999
4586
|
|
|
4587
|
+
export interface PaymentRequestVaultItemRequest {
|
|
4588
|
+
/**
|
|
4589
|
+
* Path param
|
|
4590
|
+
*/
|
|
4591
|
+
id_or_name: string;
|
|
4592
|
+
|
|
4593
|
+
/**
|
|
4594
|
+
* Body param: Live Link card request. Test-mode card creation is not supported.
|
|
4595
|
+
* The spec can be changed with PATCH until the card is authorized at a checkout.
|
|
4596
|
+
* Authorize it with the browser at final checkout: Kernel inspects the checkout
|
|
4597
|
+
* through WebMCP and internally chooses a merchant-bound Link Pay Token when
|
|
4598
|
+
* supported or a virtual card otherwise. Callers never receive or choose how the
|
|
4599
|
+
* credential is delivered.
|
|
4600
|
+
*/
|
|
4601
|
+
spec: PaymentRequestVaultItemSpec;
|
|
4602
|
+
|
|
4603
|
+
/**
|
|
4604
|
+
* Body param
|
|
4605
|
+
*/
|
|
4606
|
+
type: 'payment_request';
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4000
4609
|
export interface CredentialAccountVaultItemRequest {
|
|
4001
4610
|
/**
|
|
4002
4611
|
* Path param
|
|
@@ -4022,10 +4631,10 @@ export declare namespace ItemUpsertParams {
|
|
|
4022
4631
|
|
|
4023
4632
|
/**
|
|
4024
4633
|
* Body param: Credential fields are for login and other non-payment credentials.
|
|
4025
|
-
* Do not store, collect, or fill credit card data in credential items. Use wallet
|
|
4026
|
-
* and card item types for credit cards and payment checkout
|
|
4027
|
-
* is preserved in the user-facing collection form, so list
|
|
4028
|
-
* top-to-bottom order as the website.
|
|
4634
|
+
* Do not store, collect, or fill credit card data in credential items. Use wallet,
|
|
4635
|
+
* payment_request and card item types for credit cards and payment checkout
|
|
4636
|
+
* instead. Field order is preserved in the user-facing collection form, so list
|
|
4637
|
+
* fields in the same top-to-bottom order as the website.
|
|
4029
4638
|
*/
|
|
4030
4639
|
spec: CredentialVaultItemSpecInput;
|
|
4031
4640
|
|
|
@@ -4038,6 +4647,8 @@ export declare namespace ItemUpsertParams {
|
|
|
4038
4647
|
|
|
4039
4648
|
export declare namespace Items {
|
|
4040
4649
|
export {
|
|
4650
|
+
type AddPaymentMethodVaultItemOperationRequest as AddPaymentMethodVaultItemOperationRequest,
|
|
4651
|
+
type AddPaymentMethodVaultItemOperationResult as AddPaymentMethodVaultItemOperationResult,
|
|
4041
4652
|
type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
|
|
4042
4653
|
type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
|
|
4043
4654
|
type AgentcardPreparedProcessor as AgentcardPreparedProcessor,
|
|
@@ -4071,6 +4682,7 @@ export declare namespace Items {
|
|
|
4071
4682
|
type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec,
|
|
4072
4683
|
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
4073
4684
|
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
4685
|
+
type KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec,
|
|
4074
4686
|
type KernelWalletState as KernelWalletState,
|
|
4075
4687
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
4076
4688
|
type LinkShippingAddress as LinkShippingAddress,
|
|
@@ -4090,8 +4702,13 @@ export declare namespace Items {
|
|
|
4090
4702
|
type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest,
|
|
4091
4703
|
type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest,
|
|
4092
4704
|
type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult,
|
|
4705
|
+
type PaymentRequestVaultItem as PaymentRequestVaultItem,
|
|
4706
|
+
type PaymentRequestVaultItemSpec as PaymentRequestVaultItemSpec,
|
|
4707
|
+
type PaymentRequestVaultItemState as PaymentRequestVaultItemState,
|
|
4093
4708
|
type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest,
|
|
4094
4709
|
type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest,
|
|
4710
|
+
type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest,
|
|
4711
|
+
type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult,
|
|
4095
4712
|
type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest,
|
|
4096
4713
|
type VaultCardAliases as VaultCardAliases,
|
|
4097
4714
|
type VaultCardFillField as VaultCardFillField,
|