@onkernel/sdk 0.139.0 → 0.140.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 +10 -0
- package/package.json +1 -1
- package/resources/browsers/webmcp/webmcp.d.mts +10 -6
- package/resources/browsers/webmcp/webmcp.d.mts.map +1 -1
- package/resources/browsers/webmcp/webmcp.d.ts +10 -6
- package/resources/browsers/webmcp/webmcp.d.ts.map +1 -1
- package/resources/browsers/webmcp/webmcp.js +7 -3
- package/resources/browsers/webmcp/webmcp.js.map +1 -1
- package/resources/browsers/webmcp/webmcp.mjs +7 -3
- package/resources/browsers/webmcp/webmcp.mjs.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 +168 -56
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +168 -56
- package/resources/vaults/items.d.ts.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/resources/browsers/webmcp/webmcp.ts +10 -6
- package/src/resources/vaults/index.ts +2 -0
- package/src/resources/vaults/items.ts +184 -47
- package/src/resources/vaults/vaults.ts +4 -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
|
@@ -644,7 +644,7 @@ export declare namespace CredentialAccountVaultItem {
|
|
|
644
644
|
*/
|
|
645
645
|
interface AvailableOperation {
|
|
646
646
|
description: string;
|
|
647
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
647
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
export interface CredentialAccountVaultItemRequest {
|
|
@@ -965,7 +965,7 @@ export declare namespace CredentialVaultItem {
|
|
|
965
965
|
*/
|
|
966
966
|
interface AvailableOperation {
|
|
967
967
|
description: string;
|
|
968
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
968
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
969
969
|
}
|
|
970
970
|
interface OnePasswordAccessApprovalAction {
|
|
971
971
|
/**
|
|
@@ -1156,16 +1156,24 @@ export interface FillVaultItemOperationResult {
|
|
|
1156
1156
|
type: 'fill';
|
|
1157
1157
|
}
|
|
1158
1158
|
/**
|
|
1159
|
-
* A ready Kernel card supports authorize, fill, then
|
|
1160
|
-
*
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
*
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1159
|
+
* A ready Kernel card funded by a payment method supports authorize, fill, then
|
|
1160
|
+
* submit checkout. A single-use card (source single_use_card) is ready on
|
|
1161
|
+
* creation, supports only fill, and is expired from expires_at; Kernel deletes its
|
|
1162
|
+
* stored details shortly after expires_at. It has no payment_method_id or
|
|
1163
|
+
* funding_status. Card details are delivered for a few minutes after fill; submit
|
|
1164
|
+
* promptly. Repeated fill is safe and never submits checkout. Visa purchases
|
|
1165
|
+
* require a spend_approval action before details are issued; Mastercard purchases
|
|
1166
|
+
* need no hosted approval. masks.last4 is the enrolled card's last four digits;
|
|
1167
|
+
* masks.token_last4, when present, is the token's last four digits shown to the
|
|
1168
|
+
* merchant. Kernel does not observe whether the merchant charged the card.
|
|
1166
1169
|
*/
|
|
1167
1170
|
export interface KernelCardState {
|
|
1168
1171
|
provider: 'kernel';
|
|
1172
|
+
/**
|
|
1173
|
+
* payment_method for a purchase funded by a wallet payment method; single_use_card
|
|
1174
|
+
* for a card whose details were supplied with single_use_card.
|
|
1175
|
+
*/
|
|
1176
|
+
source: 'payment_method' | 'single_use_card';
|
|
1169
1177
|
/**
|
|
1170
1178
|
* pending_authorization waits for cardholder approval on Visa purchases or fresh
|
|
1171
1179
|
* security-code collection on alias-mode purchases through the spend_approval
|
|
@@ -1187,7 +1195,9 @@ export interface KernelCardState {
|
|
|
1187
1195
|
*/
|
|
1188
1196
|
status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
|
|
1189
1197
|
/**
|
|
1190
|
-
* Informational registrable domain. Fill is locked to merchant_url's exact origin
|
|
1198
|
+
* Informational registrable domain. Fill is locked to merchant_url's exact origin,
|
|
1199
|
+
* except that a single-use card fills on any https page of this registrable
|
|
1200
|
+
* domain.
|
|
1191
1201
|
*/
|
|
1192
1202
|
domains?: Array<string>;
|
|
1193
1203
|
/**
|
|
@@ -1235,7 +1245,18 @@ export declare namespace KernelCardState {
|
|
|
1235
1245
|
* after collection. An expired card requires a new purchase. Fill types those
|
|
1236
1246
|
* details on merchant_url's origin. The amount, merchant_url and merchant_country
|
|
1237
1247
|
* are recorded but do not restrict payment requests sent by the browser. Card
|
|
1238
|
-
* updates are not supported; delete and create a new item instead.
|
|
1248
|
+
* updates are not supported; delete and create a new item instead. With
|
|
1249
|
+
* single_use_card the item is instead a single-use card whose details the caller
|
|
1250
|
+
* supplies, such as a virtual card from its issuer. It is not funded by a payment
|
|
1251
|
+
* method, is ready on creation, and supports only fill: Kernel stores the details
|
|
1252
|
+
* encrypted, never returns them, and fills them on any https page whose
|
|
1253
|
+
* registrable domain (state.domains) is merchant_url's, including its subdomains.
|
|
1254
|
+
* Fill does not consume it. From expires_at it is expired and can no longer be
|
|
1255
|
+
* filled; Kernel deletes its stored details shortly after expires_at. Deleting the
|
|
1256
|
+
* card, its wallet or its vault deletes them immediately. amount, currency and the
|
|
1257
|
+
* merchant fields are recorded but not enforced. Repeating the identical request
|
|
1258
|
+
* returns the existing card; any other request with the same key returns 409, as
|
|
1259
|
+
* does repeating it once the expired card's details have been deleted.
|
|
1239
1260
|
*/
|
|
1240
1261
|
export interface KernelCardVaultItemSpec {
|
|
1241
1262
|
/**
|
|
@@ -1258,6 +1279,15 @@ export interface KernelCardVaultItemSpec {
|
|
|
1258
1279
|
* Key of the Kernel wallet item whose enrolled card pays.
|
|
1259
1280
|
*/
|
|
1260
1281
|
wallet: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* Single-use cards only. From this time the card is expired and can no longer be
|
|
1284
|
+
* filled; Kernel deletes its stored details shortly after. Deleting the card, its
|
|
1285
|
+
* wallet or its vault deletes them immediately. Defaults to 2 hours after
|
|
1286
|
+
* creation, capped at the end of the card's expiry month; a requested time must be
|
|
1287
|
+
* in the future, at most 24 hours after creation, and not after the end of the
|
|
1288
|
+
* card's expiry month. Returned in UTC.
|
|
1289
|
+
*/
|
|
1290
|
+
expires_at?: string;
|
|
1261
1291
|
/**
|
|
1262
1292
|
* Actual merchant category when known. Omit rather than invent a category.
|
|
1263
1293
|
*/
|
|
@@ -1277,9 +1307,19 @@ export interface KernelCardVaultItemSpec {
|
|
|
1277
1307
|
* Omission selects the wallet's default card, ID card, for compatibility with
|
|
1278
1308
|
* existing requests; it never falls back to another method, and a wallet without a
|
|
1279
1309
|
* default card requires the ID. The purchase is bound to the method's enrolled
|
|
1280
|
-
* card and network token, so later operations cannot switch funding.
|
|
1310
|
+
* card and network token, so later operations cannot switch funding. Not allowed
|
|
1311
|
+
* with single_use_card.
|
|
1281
1312
|
*/
|
|
1282
1313
|
payment_method_id?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Details of a card the caller supplies, such as a single-use virtual card from
|
|
1316
|
+
* its issuer. Mutually exclusive with payment_method_id. The card details are
|
|
1317
|
+
* stored encrypted for fill and never returned; reads return only reference.
|
|
1318
|
+
* Kernel deletes them shortly after the card's expires_at; deleting the card, its
|
|
1319
|
+
* wallet or its vault deletes them immediately. A card whose expiry month has
|
|
1320
|
+
* ended is rejected.
|
|
1321
|
+
*/
|
|
1322
|
+
single_use_card?: KernelSingleUseCard;
|
|
1283
1323
|
}
|
|
1284
1324
|
export interface KernelCredentialVaultItemSpec {
|
|
1285
1325
|
/**
|
|
@@ -1378,6 +1418,21 @@ export interface KernelPaymentRequestVaultItemSpec {
|
|
|
1378
1418
|
*/
|
|
1379
1419
|
merchant_country?: string;
|
|
1380
1420
|
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Details of a card the caller supplies, such as a single-use virtual card from
|
|
1423
|
+
* its issuer. Mutually exclusive with payment_method_id. The card details are
|
|
1424
|
+
* stored encrypted for fill and never returned; reads return only reference.
|
|
1425
|
+
* Kernel deletes them shortly after the card's expires_at; deleting the card, its
|
|
1426
|
+
* wallet or its vault deletes them immediately. A card whose expiry month has
|
|
1427
|
+
* ended is rejected.
|
|
1428
|
+
*/
|
|
1429
|
+
export interface KernelSingleUseCard {
|
|
1430
|
+
/**
|
|
1431
|
+
* The caller's identifier for the card, such as the issuer's card ID. Returned
|
|
1432
|
+
* unchanged on reads.
|
|
1433
|
+
*/
|
|
1434
|
+
reference?: string;
|
|
1435
|
+
}
|
|
1381
1436
|
export interface KernelWalletState {
|
|
1382
1437
|
provider: 'kernel';
|
|
1383
1438
|
/**
|
|
@@ -1938,10 +1993,12 @@ export declare namespace OnePasswordCredentialVaultItemState {
|
|
|
1938
1993
|
}
|
|
1939
1994
|
/**
|
|
1940
1995
|
* Fill and submit an approved 1Password login in the selected browser page. The
|
|
1941
|
-
*
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
1944
|
-
*
|
|
1996
|
+
* 1Password extension decides whether the approved login matches the page and
|
|
1997
|
+
* refuses pages that don't. Supply entry_id when several entries are approved and
|
|
1998
|
+
* the page origin does not identify exactly one of them, and target_id when more
|
|
1999
|
+
* than one open page has page_url. The extension selects fields; callers cannot
|
|
2000
|
+
* supply selectors or secret values. Submission does not confirm website
|
|
2001
|
+
* authentication.
|
|
1945
2002
|
*/
|
|
1946
2003
|
export interface OnePasswordFillVaultItemOperationRequest {
|
|
1947
2004
|
/**
|
|
@@ -1955,8 +2012,8 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
1955
2012
|
page_url: string;
|
|
1956
2013
|
type: '1pw_fill';
|
|
1957
2014
|
/**
|
|
1958
|
-
* ID of an approved request entry. Required when several
|
|
1959
|
-
* page's origin.
|
|
2015
|
+
* ID of an approved request entry. Required when several entries are approved and
|
|
2016
|
+
* the page's origin does not match exactly one of them.
|
|
1960
2017
|
*/
|
|
1961
2018
|
entry_id?: string;
|
|
1962
2019
|
/**
|
|
@@ -2079,7 +2136,7 @@ export declare namespace PaymentRequestVaultItem {
|
|
|
2079
2136
|
*/
|
|
2080
2137
|
interface AvailableOperation {
|
|
2081
2138
|
description: string;
|
|
2082
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2139
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2083
2140
|
}
|
|
2084
2141
|
}
|
|
2085
2142
|
/**
|
|
@@ -2435,6 +2492,20 @@ export declare namespace ShopPayWalletVaultItemSpec {
|
|
|
2435
2492
|
}
|
|
2436
2493
|
}
|
|
2437
2494
|
}
|
|
2495
|
+
/**
|
|
2496
|
+
* Billing address filled with the billing\_\* fill fields. Never returned.
|
|
2497
|
+
*/
|
|
2498
|
+
export interface SingleUseCardBillingAddress {
|
|
2499
|
+
city?: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* ISO 3166-1 alpha-2 code.
|
|
2502
|
+
*/
|
|
2503
|
+
country?: string;
|
|
2504
|
+
line1?: string;
|
|
2505
|
+
line2?: string;
|
|
2506
|
+
postal_code?: string;
|
|
2507
|
+
state?: string;
|
|
2508
|
+
}
|
|
2438
2509
|
export interface VaultCardAliases {
|
|
2439
2510
|
cvc: string;
|
|
2440
2511
|
exp_month: string;
|
|
@@ -2604,7 +2675,7 @@ export declare namespace VaultItem {
|
|
|
2604
2675
|
*/
|
|
2605
2676
|
interface AvailableOperation {
|
|
2606
2677
|
description: string;
|
|
2607
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2678
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2608
2679
|
}
|
|
2609
2680
|
/**
|
|
2610
2681
|
* Live, non-persisted data requested through the item GET expand parameter.
|
|
@@ -2668,7 +2739,7 @@ export declare namespace VaultItem {
|
|
|
2668
2739
|
*/
|
|
2669
2740
|
interface AvailableOperation {
|
|
2670
2741
|
description: string;
|
|
2671
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2742
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2672
2743
|
}
|
|
2673
2744
|
}
|
|
2674
2745
|
}
|
|
@@ -2787,7 +2858,7 @@ export declare namespace VaultItemOperationResponse {
|
|
|
2787
2858
|
*/
|
|
2788
2859
|
interface AvailableOperation {
|
|
2789
2860
|
description: string;
|
|
2790
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2861
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2791
2862
|
}
|
|
2792
2863
|
/**
|
|
2793
2864
|
* Live, non-persisted data requested through the item GET expand parameter.
|
|
@@ -2851,7 +2922,7 @@ export declare namespace VaultItemOperationResponse {
|
|
|
2851
2922
|
*/
|
|
2852
2923
|
interface AvailableOperation {
|
|
2853
2924
|
description: string;
|
|
2854
|
-
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2925
|
+
type: 'authorize' | 'restart_verification' | 'confirm_transaction' | 'collect' | 'prepare_checkout' | 'fill' | 'arm_passkey' | 'register_passkey' | 'disarm_passkey' | '1pw_create_access_request' | '1pw_access_request_status' | '1pw_fill' | '1pw_recover' | '1pw_update_access_token' | 'update_access_token' | 'webmcp_invoke' | 'add_payment_method' | 'remove_payment_method';
|
|
2855
2926
|
}
|
|
2856
2927
|
}
|
|
2857
2928
|
}
|
|
@@ -2969,6 +3040,13 @@ export declare namespace WalletVaultItemSpec {
|
|
|
2969
3040
|
interface Authorization {
|
|
2970
3041
|
client: Authorization.KernelManagedOAuthClient | Authorization.CustomerManagedOAuthClient;
|
|
2971
3042
|
method: 'oauth';
|
|
3043
|
+
/**
|
|
3044
|
+
* Who refreshes an imported Link grant. kernel (default) means Kernel holds and
|
|
3045
|
+
* rotates the refresh token. customer means your backend keeps the refresh token
|
|
3046
|
+
* and replaces the access token with update_access_token; Kernel never refreshes
|
|
3047
|
+
* or revokes the grant. Fixed at wallet creation.
|
|
3048
|
+
*/
|
|
3049
|
+
token_refresh?: 'kernel' | 'customer';
|
|
2972
3050
|
}
|
|
2973
3051
|
namespace Authorization {
|
|
2974
3052
|
interface KernelManagedOAuthClient {
|
|
@@ -3223,7 +3301,7 @@ export interface ItemEventsParams {
|
|
|
3223
3301
|
*/
|
|
3224
3302
|
wait?: number;
|
|
3225
3303
|
}
|
|
3226
|
-
export type ItemPerformOperationParams = ItemPerformOperationParams.AuthorizeVaultItemOperationRequest | ItemPerformOperationParams.RestartVerificationVaultItemOperationRequest | ItemPerformOperationParams.ConfirmTransactionVaultItemOperationRequest | ItemPerformOperationParams.CollectVaultItemOperationRequest | ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest | ItemPerformOperationParams.FillVaultItemOperationRequest | ItemPerformOperationParams.ArmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.RegisterPasskeyVaultItemOperationRequest | ItemPerformOperationParams.DisarmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest | ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest | ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest;
|
|
3304
|
+
export type ItemPerformOperationParams = ItemPerformOperationParams.AuthorizeVaultItemOperationRequest | ItemPerformOperationParams.RestartVerificationVaultItemOperationRequest | ItemPerformOperationParams.ConfirmTransactionVaultItemOperationRequest | ItemPerformOperationParams.CollectVaultItemOperationRequest | ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest | ItemPerformOperationParams.FillVaultItemOperationRequest | ItemPerformOperationParams.ArmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.RegisterPasskeyVaultItemOperationRequest | ItemPerformOperationParams.DisarmPasskeyVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest | ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest | ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest | ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest;
|
|
3227
3305
|
export declare namespace ItemPerformOperationParams {
|
|
3228
3306
|
interface AuthorizeVaultItemOperationRequest {
|
|
3229
3307
|
/**
|
|
@@ -3481,8 +3559,8 @@ export declare namespace ItemPerformOperationParams {
|
|
|
3481
3559
|
*/
|
|
3482
3560
|
type: '1pw_fill';
|
|
3483
3561
|
/**
|
|
3484
|
-
* Body param: ID of an approved request entry. Required when several
|
|
3485
|
-
*
|
|
3562
|
+
* Body param: ID of an approved request entry. Required when several entries are
|
|
3563
|
+
* approved and the page's origin does not match exactly one of them.
|
|
3486
3564
|
*/
|
|
3487
3565
|
entry_id?: string;
|
|
3488
3566
|
/**
|
|
@@ -3525,6 +3603,20 @@ export declare namespace ItemPerformOperationParams {
|
|
|
3525
3603
|
*/
|
|
3526
3604
|
access_token_expires_at?: string;
|
|
3527
3605
|
}
|
|
3606
|
+
interface UpdateAccessTokenVaultItemOperationRequest {
|
|
3607
|
+
/**
|
|
3608
|
+
* Path param
|
|
3609
|
+
*/
|
|
3610
|
+
id_or_name: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Body param
|
|
3613
|
+
*/
|
|
3614
|
+
access_token: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Body param
|
|
3617
|
+
*/
|
|
3618
|
+
type: 'update_access_token';
|
|
3619
|
+
}
|
|
3528
3620
|
interface WebmcpInvokeVaultItemOperationRequest {
|
|
3529
3621
|
/**
|
|
3530
3622
|
* Path param
|
|
@@ -3647,38 +3739,54 @@ export declare namespace ItemUpsertParams {
|
|
|
3647
3739
|
* wallet with state.status=connected. An expired, invalid, revoked, or
|
|
3648
3740
|
* insufficiently scoped access token returns 400 and no wallet is created. Refresh
|
|
3649
3741
|
* expired tokens in your backend before importing them. A failed import does not
|
|
3650
|
-
* modify existing wallets.
|
|
3651
|
-
* refresh-token rotation; the customer must
|
|
3652
|
-
*
|
|
3653
|
-
*
|
|
3654
|
-
*
|
|
3655
|
-
*
|
|
3656
|
-
*
|
|
3657
|
-
*
|
|
3658
|
-
*
|
|
3659
|
-
*
|
|
3660
|
-
*
|
|
3661
|
-
*
|
|
3662
|
-
*
|
|
3663
|
-
*
|
|
3664
|
-
*
|
|
3665
|
-
*
|
|
3666
|
-
*
|
|
3667
|
-
*
|
|
3668
|
-
*
|
|
3669
|
-
*
|
|
3742
|
+
* modify existing wallets. By default (token_refresh=kernel), Kernel owns
|
|
3743
|
+
* subsequent refresh-token rotation after a successful import; the customer must
|
|
3744
|
+
* stop refreshing this grant. With token_refresh=customer, send only the access
|
|
3745
|
+
* token: your backend keeps the refresh token and rotates the grant, and Kernel
|
|
3746
|
+
* never refreshes or revokes it. Replace the stored access token with the wallet's
|
|
3747
|
+
* update_access_token operation before each step that reaches Link, such as
|
|
3748
|
+
* creating, authorizing or filling a card. When Link rejects the stored access
|
|
3749
|
+
* token, operations return 409 without contacting Link again; update the token and
|
|
3750
|
+
* retry. The remainder of this description applies to token_refresh=kernel. With
|
|
3751
|
+
* token_refresh=kernel, Kernel owns subsequent refresh-token rotation; the
|
|
3752
|
+
* customer must stop refreshing this grant. Import does not verify the refresh
|
|
3753
|
+
* token: if it or the configured client credentials are rejected during a later
|
|
3754
|
+
* refresh, the imported wallet becomes degraded. An unknown refresh outcome also
|
|
3755
|
+
* leaves it degraded; Kernel does not retry a refresh token that may already have
|
|
3756
|
+
* been consumed. There is no in-place reauthorization operation for an imported
|
|
3757
|
+
* wallet. If this imported wallet's credentials become unusable, obtain a fresh
|
|
3758
|
+
* Link OAuth grant in your backend and create a wallet under a NEW wallet key. Use
|
|
3759
|
+
* the new wallet for NEW cards and payments, not to retry an old payment whose
|
|
3760
|
+
* outcome is uncertain. This does not replace the old grant, rebind existing
|
|
3761
|
+
* cards, or resolve their payment outcomes. Retain the old wallet and its cards
|
|
3762
|
+
* while reconciling any uncertain payments with the provider or support. Do not
|
|
3763
|
+
* repeat an uncertain payment on the new wallet, and do not treat deletion as
|
|
3764
|
+
* evidence that it did not execute. Deletion of the old wallet can remain blocked
|
|
3765
|
+
* by unresolved child cards. Repeating a create for the same item key and
|
|
3766
|
+
* non-secret spec returns the existing wallet without replacing tokens, even if
|
|
3767
|
+
* they have rotated or the wallet needs reconnection. ID and name references
|
|
3768
|
+
* resolving to the same config are equivalent. A different config or non-secret
|
|
3769
|
+
* spec returns 409. This create operation does not replace an existing grant.
|
|
3670
3770
|
*/
|
|
3671
3771
|
interface ImportedLinkAuthorizationInput {
|
|
3672
3772
|
client: ImportedLinkAuthorizationInput.Client;
|
|
3673
3773
|
method: 'oauth';
|
|
3674
3774
|
/**
|
|
3675
|
-
* Send the
|
|
3676
|
-
*
|
|
3677
|
-
* refreshes when needed after import and uses the
|
|
3678
|
-
*
|
|
3775
|
+
* Send the tokens from your backend. Supply a currently valid access token. With
|
|
3776
|
+
* token_refresh=kernel, also send the refresh token from the same Link grant under
|
|
3777
|
+
* the referenced client; Kernel refreshes when needed after import and uses the
|
|
3778
|
+
* expiry returned by Link for subsequent tokens. With token_refresh=customer, omit
|
|
3779
|
+
* the refresh token. Tokens are never returned in wallet responses, events, or
|
|
3679
3780
|
* logs.
|
|
3680
3781
|
*/
|
|
3681
3782
|
tokens: ImportedLinkAuthorizationInput.Tokens;
|
|
3783
|
+
/**
|
|
3784
|
+
* Who refreshes an imported Link grant. kernel (default) means Kernel holds and
|
|
3785
|
+
* rotates the refresh token. customer means your backend keeps the refresh token
|
|
3786
|
+
* and replaces the access token with update_access_token; Kernel never refreshes
|
|
3787
|
+
* or revokes the grant. Fixed at wallet creation.
|
|
3788
|
+
*/
|
|
3789
|
+
token_refresh?: 'kernel' | 'customer';
|
|
3682
3790
|
}
|
|
3683
3791
|
namespace ImportedLinkAuthorizationInput {
|
|
3684
3792
|
interface Client {
|
|
@@ -3702,15 +3810,19 @@ export declare namespace ItemUpsertParams {
|
|
|
3702
3810
|
}
|
|
3703
3811
|
}
|
|
3704
3812
|
/**
|
|
3705
|
-
* Send the
|
|
3706
|
-
*
|
|
3707
|
-
* refreshes when needed after import and uses the
|
|
3708
|
-
*
|
|
3813
|
+
* Send the tokens from your backend. Supply a currently valid access token. With
|
|
3814
|
+
* token_refresh=kernel, also send the refresh token from the same Link grant under
|
|
3815
|
+
* the referenced client; Kernel refreshes when needed after import and uses the
|
|
3816
|
+
* expiry returned by Link for subsequent tokens. With token_refresh=customer, omit
|
|
3817
|
+
* the refresh token. Tokens are never returned in wallet responses, events, or
|
|
3709
3818
|
* logs.
|
|
3710
3819
|
*/
|
|
3711
3820
|
interface Tokens {
|
|
3712
3821
|
access_token: string;
|
|
3713
|
-
|
|
3822
|
+
/**
|
|
3823
|
+
* Required with token_refresh=kernel; rejected with token_refresh=customer.
|
|
3824
|
+
*/
|
|
3825
|
+
refresh_token?: string;
|
|
3714
3826
|
}
|
|
3715
3827
|
}
|
|
3716
3828
|
}
|
|
@@ -3822,6 +3934,6 @@ export declare namespace ItemUpsertParams {
|
|
|
3822
3934
|
}
|
|
3823
3935
|
}
|
|
3824
3936
|
export declare namespace Items {
|
|
3825
|
-
export { type AddPaymentMethodVaultItemOperationRequest as AddPaymentMethodVaultItemOperationRequest, type AddPaymentMethodVaultItemOperationResult as AddPaymentMethodVaultItemOperationResult, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type ArmPasskeyVaultItemOperationRequest as ArmPasskeyVaultItemOperationRequest, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldDefinitionInput as CredentialVaultFieldDefinitionInput, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type DisarmPasskeyVaultItemOperationRequest as DisarmPasskeyVaultItemOperationRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type LinkShippingAddress as LinkShippingAddress, type LinkUserInfo as LinkUserInfo, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult, type PaymentRequestVaultItem as PaymentRequestVaultItem, type PaymentRequestVaultItemSpec as PaymentRequestVaultItemSpec, type PaymentRequestVaultItemState as PaymentRequestVaultItemState, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type ShopPayCardState as ShopPayCardState, type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec, type ShopPayWalletState as ShopPayWalletState, type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
3937
|
+
export { type AddPaymentMethodVaultItemOperationRequest as AddPaymentMethodVaultItemOperationRequest, type AddPaymentMethodVaultItemOperationResult as AddPaymentMethodVaultItemOperationResult, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type ArmPasskeyVaultItemOperationRequest as ArmPasskeyVaultItemOperationRequest, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldDefinitionInput as CredentialVaultFieldDefinitionInput, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type DisarmPasskeyVaultItemOperationRequest as DisarmPasskeyVaultItemOperationRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec, type KernelSingleUseCard as KernelSingleUseCard, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type LinkShippingAddress as LinkShippingAddress, type LinkUserInfo as LinkUserInfo, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PasskeyVaultItemOperationResult as PasskeyVaultItemOperationResult, type PaymentRequestVaultItem as PaymentRequestVaultItem, type PaymentRequestVaultItemSpec as PaymentRequestVaultItemSpec, type PaymentRequestVaultItemState as PaymentRequestVaultItemState, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RegisterPasskeyVaultItemOperationRequest as RegisterPasskeyVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationRequest as RemovePaymentMethodVaultItemOperationRequest, type RemovePaymentMethodVaultItemOperationResult as RemovePaymentMethodVaultItemOperationResult, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type ShopPayCardState as ShopPayCardState, type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec, type ShopPayWalletState as ShopPayWalletState, type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec, type SingleUseCardBillingAddress as SingleUseCardBillingAddress, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
3826
3938
|
}
|
|
3827
3939
|
//# sourceMappingURL=items.d.ts.map
|