@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
|
@@ -863,6 +863,7 @@ export namespace CredentialAccountVaultItem {
|
|
|
863
863
|
| '1pw_fill'
|
|
864
864
|
| '1pw_recover'
|
|
865
865
|
| '1pw_update_access_token'
|
|
866
|
+
| 'update_access_token'
|
|
866
867
|
| 'webmcp_invoke'
|
|
867
868
|
| 'add_payment_method'
|
|
868
869
|
| 'remove_payment_method';
|
|
@@ -1243,6 +1244,7 @@ export namespace CredentialVaultItem {
|
|
|
1243
1244
|
| '1pw_fill'
|
|
1244
1245
|
| '1pw_recover'
|
|
1245
1246
|
| '1pw_update_access_token'
|
|
1247
|
+
| 'update_access_token'
|
|
1246
1248
|
| 'webmcp_invoke'
|
|
1247
1249
|
| 'add_payment_method'
|
|
1248
1250
|
| 'remove_payment_method';
|
|
@@ -1471,17 +1473,26 @@ export interface FillVaultItemOperationResult {
|
|
|
1471
1473
|
}
|
|
1472
1474
|
|
|
1473
1475
|
/**
|
|
1474
|
-
* A ready Kernel card supports authorize, fill, then
|
|
1475
|
-
*
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1479
|
-
*
|
|
1480
|
-
*
|
|
1476
|
+
* A ready Kernel card funded by a payment method supports authorize, fill, then
|
|
1477
|
+
* submit checkout. A single-use card (source single_use_card) is ready on
|
|
1478
|
+
* creation, supports only fill, and is expired from expires_at; Kernel deletes its
|
|
1479
|
+
* stored details shortly after expires_at. It has no payment_method_id or
|
|
1480
|
+
* funding_status. Card details are delivered for a few minutes after fill; submit
|
|
1481
|
+
* promptly. Repeated fill is safe and never submits checkout. Visa purchases
|
|
1482
|
+
* require a spend_approval action before details are issued; Mastercard purchases
|
|
1483
|
+
* need no hosted approval. masks.last4 is the enrolled card's last four digits;
|
|
1484
|
+
* masks.token_last4, when present, is the token's last four digits shown to the
|
|
1485
|
+
* merchant. Kernel does not observe whether the merchant charged the card.
|
|
1481
1486
|
*/
|
|
1482
1487
|
export interface KernelCardState {
|
|
1483
1488
|
provider: 'kernel';
|
|
1484
1489
|
|
|
1490
|
+
/**
|
|
1491
|
+
* payment_method for a purchase funded by a wallet payment method; single_use_card
|
|
1492
|
+
* for a card whose details were supplied with single_use_card.
|
|
1493
|
+
*/
|
|
1494
|
+
source: 'payment_method' | 'single_use_card';
|
|
1495
|
+
|
|
1485
1496
|
/**
|
|
1486
1497
|
* pending_authorization waits for cardholder approval on Visa purchases or fresh
|
|
1487
1498
|
* security-code collection on alias-mode purchases through the spend_approval
|
|
@@ -1511,7 +1522,9 @@ export interface KernelCardState {
|
|
|
1511
1522
|
| 'recovery_required';
|
|
1512
1523
|
|
|
1513
1524
|
/**
|
|
1514
|
-
* Informational registrable domain. Fill is locked to merchant_url's exact origin
|
|
1525
|
+
* Informational registrable domain. Fill is locked to merchant_url's exact origin,
|
|
1526
|
+
* except that a single-use card fills on any https page of this registrable
|
|
1527
|
+
* domain.
|
|
1515
1528
|
*/
|
|
1516
1529
|
domains?: Array<string>;
|
|
1517
1530
|
|
|
@@ -1568,7 +1581,18 @@ export namespace KernelCardState {
|
|
|
1568
1581
|
* after collection. An expired card requires a new purchase. Fill types those
|
|
1569
1582
|
* details on merchant_url's origin. The amount, merchant_url and merchant_country
|
|
1570
1583
|
* are recorded but do not restrict payment requests sent by the browser. Card
|
|
1571
|
-
* updates are not supported; delete and create a new item instead.
|
|
1584
|
+
* updates are not supported; delete and create a new item instead. With
|
|
1585
|
+
* single_use_card the item is instead a single-use card whose details the caller
|
|
1586
|
+
* supplies, such as a virtual card from its issuer. It is not funded by a payment
|
|
1587
|
+
* method, is ready on creation, and supports only fill: Kernel stores the details
|
|
1588
|
+
* encrypted, never returns them, and fills them on any https page whose
|
|
1589
|
+
* registrable domain (state.domains) is merchant_url's, including its subdomains.
|
|
1590
|
+
* Fill does not consume it. From expires_at it is expired and can no longer be
|
|
1591
|
+
* filled; Kernel deletes its stored details shortly after expires_at. Deleting the
|
|
1592
|
+
* card, its wallet or its vault deletes them immediately. amount, currency and the
|
|
1593
|
+
* merchant fields are recorded but not enforced. Repeating the identical request
|
|
1594
|
+
* returns the existing card; any other request with the same key returns 409, as
|
|
1595
|
+
* does repeating it once the expired card's details have been deleted.
|
|
1572
1596
|
*/
|
|
1573
1597
|
export interface KernelCardVaultItemSpec {
|
|
1574
1598
|
/**
|
|
@@ -1597,6 +1621,16 @@ export interface KernelCardVaultItemSpec {
|
|
|
1597
1621
|
*/
|
|
1598
1622
|
wallet: string;
|
|
1599
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* Single-use cards only. From this time the card is expired and can no longer be
|
|
1626
|
+
* filled; Kernel deletes its stored details shortly after. Deleting the card, its
|
|
1627
|
+
* wallet or its vault deletes them immediately. Defaults to 2 hours after
|
|
1628
|
+
* creation, capped at the end of the card's expiry month; a requested time must be
|
|
1629
|
+
* in the future, at most 24 hours after creation, and not after the end of the
|
|
1630
|
+
* card's expiry month. Returned in UTC.
|
|
1631
|
+
*/
|
|
1632
|
+
expires_at?: string;
|
|
1633
|
+
|
|
1600
1634
|
/**
|
|
1601
1635
|
* Actual merchant category when known. Omit rather than invent a category.
|
|
1602
1636
|
*/
|
|
@@ -1619,9 +1653,20 @@ export interface KernelCardVaultItemSpec {
|
|
|
1619
1653
|
* Omission selects the wallet's default card, ID card, for compatibility with
|
|
1620
1654
|
* existing requests; it never falls back to another method, and a wallet without a
|
|
1621
1655
|
* default card requires the ID. The purchase is bound to the method's enrolled
|
|
1622
|
-
* card and network token, so later operations cannot switch funding.
|
|
1656
|
+
* card and network token, so later operations cannot switch funding. Not allowed
|
|
1657
|
+
* with single_use_card.
|
|
1623
1658
|
*/
|
|
1624
1659
|
payment_method_id?: string;
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* Details of a card the caller supplies, such as a single-use virtual card from
|
|
1663
|
+
* its issuer. Mutually exclusive with payment_method_id. The card details are
|
|
1664
|
+
* stored encrypted for fill and never returned; reads return only reference.
|
|
1665
|
+
* Kernel deletes them shortly after the card's expires_at; deleting the card, its
|
|
1666
|
+
* wallet or its vault deletes them immediately. A card whose expiry month has
|
|
1667
|
+
* ended is rejected.
|
|
1668
|
+
*/
|
|
1669
|
+
single_use_card?: KernelSingleUseCard;
|
|
1625
1670
|
}
|
|
1626
1671
|
|
|
1627
1672
|
export interface KernelCredentialVaultItemSpec {
|
|
@@ -1738,6 +1783,22 @@ export interface KernelPaymentRequestVaultItemSpec {
|
|
|
1738
1783
|
merchant_country?: string;
|
|
1739
1784
|
}
|
|
1740
1785
|
|
|
1786
|
+
/**
|
|
1787
|
+
* Details of a card the caller supplies, such as a single-use virtual card from
|
|
1788
|
+
* its issuer. Mutually exclusive with payment_method_id. The card details are
|
|
1789
|
+
* stored encrypted for fill and never returned; reads return only reference.
|
|
1790
|
+
* Kernel deletes them shortly after the card's expires_at; deleting the card, its
|
|
1791
|
+
* wallet or its vault deletes them immediately. A card whose expiry month has
|
|
1792
|
+
* ended is rejected.
|
|
1793
|
+
*/
|
|
1794
|
+
export interface KernelSingleUseCard {
|
|
1795
|
+
/**
|
|
1796
|
+
* The caller's identifier for the card, such as the issuer's card ID. Returned
|
|
1797
|
+
* unchanged on reads.
|
|
1798
|
+
*/
|
|
1799
|
+
reference?: string;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1741
1802
|
export interface KernelWalletState {
|
|
1742
1803
|
provider: 'kernel';
|
|
1743
1804
|
|
|
@@ -2427,10 +2488,12 @@ export namespace OnePasswordCredentialVaultItemState {
|
|
|
2427
2488
|
|
|
2428
2489
|
/**
|
|
2429
2490
|
* Fill and submit an approved 1Password login in the selected browser page. The
|
|
2430
|
-
*
|
|
2431
|
-
*
|
|
2432
|
-
*
|
|
2433
|
-
*
|
|
2491
|
+
* 1Password extension decides whether the approved login matches the page and
|
|
2492
|
+
* refuses pages that don't. Supply entry_id when several entries are approved and
|
|
2493
|
+
* the page origin does not identify exactly one of them, and target_id when more
|
|
2494
|
+
* than one open page has page_url. The extension selects fields; callers cannot
|
|
2495
|
+
* supply selectors or secret values. Submission does not confirm website
|
|
2496
|
+
* authentication.
|
|
2434
2497
|
*/
|
|
2435
2498
|
export interface OnePasswordFillVaultItemOperationRequest {
|
|
2436
2499
|
/**
|
|
@@ -2447,8 +2510,8 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
2447
2510
|
type: '1pw_fill';
|
|
2448
2511
|
|
|
2449
2512
|
/**
|
|
2450
|
-
* ID of an approved request entry. Required when several
|
|
2451
|
-
* page's origin.
|
|
2513
|
+
* ID of an approved request entry. Required when several entries are approved and
|
|
2514
|
+
* the page's origin does not match exactly one of them.
|
|
2452
2515
|
*/
|
|
2453
2516
|
entry_id?: string;
|
|
2454
2517
|
|
|
@@ -2616,6 +2679,7 @@ export namespace PaymentRequestVaultItem {
|
|
|
2616
2679
|
| '1pw_fill'
|
|
2617
2680
|
| '1pw_recover'
|
|
2618
2681
|
| '1pw_update_access_token'
|
|
2682
|
+
| 'update_access_token'
|
|
2619
2683
|
| 'webmcp_invoke'
|
|
2620
2684
|
| 'add_payment_method'
|
|
2621
2685
|
| 'remove_payment_method';
|
|
@@ -3073,6 +3137,26 @@ export namespace ShopPayWalletVaultItemSpec {
|
|
|
3073
3137
|
}
|
|
3074
3138
|
}
|
|
3075
3139
|
|
|
3140
|
+
/**
|
|
3141
|
+
* Billing address filled with the billing\_\* fill fields. Never returned.
|
|
3142
|
+
*/
|
|
3143
|
+
export interface SingleUseCardBillingAddress {
|
|
3144
|
+
city?: string;
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* ISO 3166-1 alpha-2 code.
|
|
3148
|
+
*/
|
|
3149
|
+
country?: string;
|
|
3150
|
+
|
|
3151
|
+
line1?: string;
|
|
3152
|
+
|
|
3153
|
+
line2?: string;
|
|
3154
|
+
|
|
3155
|
+
postal_code?: string;
|
|
3156
|
+
|
|
3157
|
+
state?: string;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3076
3160
|
export interface VaultCardAliases {
|
|
3077
3161
|
cvc: string;
|
|
3078
3162
|
|
|
@@ -3321,6 +3405,7 @@ export namespace VaultItem {
|
|
|
3321
3405
|
| '1pw_fill'
|
|
3322
3406
|
| '1pw_recover'
|
|
3323
3407
|
| '1pw_update_access_token'
|
|
3408
|
+
| 'update_access_token'
|
|
3324
3409
|
| 'webmcp_invoke'
|
|
3325
3410
|
| 'add_payment_method'
|
|
3326
3411
|
| 'remove_payment_method';
|
|
@@ -3420,6 +3505,7 @@ export namespace VaultItem {
|
|
|
3420
3505
|
| '1pw_fill'
|
|
3421
3506
|
| '1pw_recover'
|
|
3422
3507
|
| '1pw_update_access_token'
|
|
3508
|
+
| 'update_access_token'
|
|
3423
3509
|
| 'webmcp_invoke'
|
|
3424
3510
|
| 'add_payment_method'
|
|
3425
3511
|
| 'remove_payment_method';
|
|
@@ -3611,6 +3697,7 @@ export namespace VaultItemOperationResponse {
|
|
|
3611
3697
|
| '1pw_fill'
|
|
3612
3698
|
| '1pw_recover'
|
|
3613
3699
|
| '1pw_update_access_token'
|
|
3700
|
+
| 'update_access_token'
|
|
3614
3701
|
| 'webmcp_invoke'
|
|
3615
3702
|
| 'add_payment_method'
|
|
3616
3703
|
| 'remove_payment_method';
|
|
@@ -3710,6 +3797,7 @@ export namespace VaultItemOperationResponse {
|
|
|
3710
3797
|
| '1pw_fill'
|
|
3711
3798
|
| '1pw_recover'
|
|
3712
3799
|
| '1pw_update_access_token'
|
|
3800
|
+
| 'update_access_token'
|
|
3713
3801
|
| 'webmcp_invoke'
|
|
3714
3802
|
| 'add_payment_method'
|
|
3715
3803
|
| 'remove_payment_method';
|
|
@@ -3861,6 +3949,14 @@ export namespace WalletVaultItemSpec {
|
|
|
3861
3949
|
client: Authorization.KernelManagedOAuthClient | Authorization.CustomerManagedOAuthClient;
|
|
3862
3950
|
|
|
3863
3951
|
method: 'oauth';
|
|
3952
|
+
|
|
3953
|
+
/**
|
|
3954
|
+
* Who refreshes an imported Link grant. kernel (default) means Kernel holds and
|
|
3955
|
+
* rotates the refresh token. customer means your backend keeps the refresh token
|
|
3956
|
+
* and replaces the access token with update_access_token; Kernel never refreshes
|
|
3957
|
+
* or revokes the grant. Fixed at wallet creation.
|
|
3958
|
+
*/
|
|
3959
|
+
token_refresh?: 'kernel' | 'customer';
|
|
3864
3960
|
}
|
|
3865
3961
|
|
|
3866
3962
|
export namespace Authorization {
|
|
@@ -4187,6 +4283,7 @@ export type ItemPerformOperationParams =
|
|
|
4187
4283
|
| ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
|
|
4188
4284
|
| ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
|
|
4189
4285
|
| ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest
|
|
4286
|
+
| ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest
|
|
4190
4287
|
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
4191
4288
|
| ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest
|
|
4192
4289
|
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest;
|
|
@@ -4507,8 +4604,8 @@ export declare namespace ItemPerformOperationParams {
|
|
|
4507
4604
|
type: '1pw_fill';
|
|
4508
4605
|
|
|
4509
4606
|
/**
|
|
4510
|
-
* Body param: ID of an approved request entry. Required when several
|
|
4511
|
-
*
|
|
4607
|
+
* Body param: ID of an approved request entry. Required when several entries are
|
|
4608
|
+
* approved and the page's origin does not match exactly one of them.
|
|
4512
4609
|
*/
|
|
4513
4610
|
entry_id?: string;
|
|
4514
4611
|
|
|
@@ -4560,6 +4657,23 @@ export declare namespace ItemPerformOperationParams {
|
|
|
4560
4657
|
access_token_expires_at?: string;
|
|
4561
4658
|
}
|
|
4562
4659
|
|
|
4660
|
+
export interface UpdateAccessTokenVaultItemOperationRequest {
|
|
4661
|
+
/**
|
|
4662
|
+
* Path param
|
|
4663
|
+
*/
|
|
4664
|
+
id_or_name: string;
|
|
4665
|
+
|
|
4666
|
+
/**
|
|
4667
|
+
* Body param
|
|
4668
|
+
*/
|
|
4669
|
+
access_token: string;
|
|
4670
|
+
|
|
4671
|
+
/**
|
|
4672
|
+
* Body param
|
|
4673
|
+
*/
|
|
4674
|
+
type: 'update_access_token';
|
|
4675
|
+
}
|
|
4676
|
+
|
|
4563
4677
|
export interface WebmcpInvokeVaultItemOperationRequest {
|
|
4564
4678
|
/**
|
|
4565
4679
|
* Path param
|
|
@@ -4713,26 +4827,34 @@ export declare namespace ItemUpsertParams {
|
|
|
4713
4827
|
* wallet with state.status=connected. An expired, invalid, revoked, or
|
|
4714
4828
|
* insufficiently scoped access token returns 400 and no wallet is created. Refresh
|
|
4715
4829
|
* expired tokens in your backend before importing them. A failed import does not
|
|
4716
|
-
* modify existing wallets.
|
|
4717
|
-
* refresh-token rotation; the customer must
|
|
4718
|
-
*
|
|
4719
|
-
*
|
|
4720
|
-
*
|
|
4721
|
-
*
|
|
4722
|
-
*
|
|
4723
|
-
*
|
|
4724
|
-
*
|
|
4725
|
-
*
|
|
4726
|
-
*
|
|
4727
|
-
*
|
|
4728
|
-
*
|
|
4729
|
-
*
|
|
4730
|
-
*
|
|
4731
|
-
*
|
|
4732
|
-
*
|
|
4733
|
-
*
|
|
4734
|
-
*
|
|
4735
|
-
*
|
|
4830
|
+
* modify existing wallets. By default (token_refresh=kernel), Kernel owns
|
|
4831
|
+
* subsequent refresh-token rotation after a successful import; the customer must
|
|
4832
|
+
* stop refreshing this grant. With token_refresh=customer, send only the access
|
|
4833
|
+
* token: your backend keeps the refresh token and rotates the grant, and Kernel
|
|
4834
|
+
* never refreshes or revokes it. Replace the stored access token with the wallet's
|
|
4835
|
+
* update_access_token operation before each step that reaches Link, such as
|
|
4836
|
+
* creating, authorizing or filling a card. When Link rejects the stored access
|
|
4837
|
+
* token, operations return 409 without contacting Link again; update the token and
|
|
4838
|
+
* retry. The remainder of this description applies to token_refresh=kernel. With
|
|
4839
|
+
* token_refresh=kernel, Kernel owns subsequent refresh-token rotation; the
|
|
4840
|
+
* customer must stop refreshing this grant. Import does not verify the refresh
|
|
4841
|
+
* token: if it or the configured client credentials are rejected during a later
|
|
4842
|
+
* refresh, the imported wallet becomes degraded. An unknown refresh outcome also
|
|
4843
|
+
* leaves it degraded; Kernel does not retry a refresh token that may already have
|
|
4844
|
+
* been consumed. There is no in-place reauthorization operation for an imported
|
|
4845
|
+
* wallet. If this imported wallet's credentials become unusable, obtain a fresh
|
|
4846
|
+
* Link OAuth grant in your backend and create a wallet under a NEW wallet key. Use
|
|
4847
|
+
* the new wallet for NEW cards and payments, not to retry an old payment whose
|
|
4848
|
+
* outcome is uncertain. This does not replace the old grant, rebind existing
|
|
4849
|
+
* cards, or resolve their payment outcomes. Retain the old wallet and its cards
|
|
4850
|
+
* while reconciling any uncertain payments with the provider or support. Do not
|
|
4851
|
+
* repeat an uncertain payment on the new wallet, and do not treat deletion as
|
|
4852
|
+
* evidence that it did not execute. Deletion of the old wallet can remain blocked
|
|
4853
|
+
* by unresolved child cards. Repeating a create for the same item key and
|
|
4854
|
+
* non-secret spec returns the existing wallet without replacing tokens, even if
|
|
4855
|
+
* they have rotated or the wallet needs reconnection. ID and name references
|
|
4856
|
+
* resolving to the same config are equivalent. A different config or non-secret
|
|
4857
|
+
* spec returns 409. This create operation does not replace an existing grant.
|
|
4736
4858
|
*/
|
|
4737
4859
|
export interface ImportedLinkAuthorizationInput {
|
|
4738
4860
|
client: ImportedLinkAuthorizationInput.Client;
|
|
@@ -4740,13 +4862,22 @@ export declare namespace ItemUpsertParams {
|
|
|
4740
4862
|
method: 'oauth';
|
|
4741
4863
|
|
|
4742
4864
|
/**
|
|
4743
|
-
* Send the
|
|
4744
|
-
*
|
|
4745
|
-
* refreshes when needed after import and uses the
|
|
4746
|
-
*
|
|
4865
|
+
* Send the tokens from your backend. Supply a currently valid access token. With
|
|
4866
|
+
* token_refresh=kernel, also send the refresh token from the same Link grant under
|
|
4867
|
+
* the referenced client; Kernel refreshes when needed after import and uses the
|
|
4868
|
+
* expiry returned by Link for subsequent tokens. With token_refresh=customer, omit
|
|
4869
|
+
* the refresh token. Tokens are never returned in wallet responses, events, or
|
|
4747
4870
|
* logs.
|
|
4748
4871
|
*/
|
|
4749
4872
|
tokens: ImportedLinkAuthorizationInput.Tokens;
|
|
4873
|
+
|
|
4874
|
+
/**
|
|
4875
|
+
* Who refreshes an imported Link grant. kernel (default) means Kernel holds and
|
|
4876
|
+
* rotates the refresh token. customer means your backend keeps the refresh token
|
|
4877
|
+
* and replaces the access token with update_access_token; Kernel never refreshes
|
|
4878
|
+
* or revokes the grant. Fixed at wallet creation.
|
|
4879
|
+
*/
|
|
4880
|
+
token_refresh?: 'kernel' | 'customer';
|
|
4750
4881
|
}
|
|
4751
4882
|
|
|
4752
4883
|
export namespace ImportedLinkAuthorizationInput {
|
|
@@ -4775,16 +4906,20 @@ export declare namespace ItemUpsertParams {
|
|
|
4775
4906
|
}
|
|
4776
4907
|
|
|
4777
4908
|
/**
|
|
4778
|
-
* Send the
|
|
4779
|
-
*
|
|
4780
|
-
* refreshes when needed after import and uses the
|
|
4781
|
-
*
|
|
4909
|
+
* Send the tokens from your backend. Supply a currently valid access token. With
|
|
4910
|
+
* token_refresh=kernel, also send the refresh token from the same Link grant under
|
|
4911
|
+
* the referenced client; Kernel refreshes when needed after import and uses the
|
|
4912
|
+
* expiry returned by Link for subsequent tokens. With token_refresh=customer, omit
|
|
4913
|
+
* the refresh token. Tokens are never returned in wallet responses, events, or
|
|
4782
4914
|
* logs.
|
|
4783
4915
|
*/
|
|
4784
4916
|
export interface Tokens {
|
|
4785
4917
|
access_token: string;
|
|
4786
4918
|
|
|
4787
|
-
|
|
4919
|
+
/**
|
|
4920
|
+
* Required with token_refresh=kernel; rejected with token_refresh=customer.
|
|
4921
|
+
*/
|
|
4922
|
+
refresh_token?: string;
|
|
4788
4923
|
}
|
|
4789
4924
|
}
|
|
4790
4925
|
}
|
|
@@ -4951,6 +5086,7 @@ export declare namespace Items {
|
|
|
4951
5086
|
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
4952
5087
|
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
4953
5088
|
type KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec,
|
|
5089
|
+
type KernelSingleUseCard as KernelSingleUseCard,
|
|
4954
5090
|
type KernelWalletState as KernelWalletState,
|
|
4955
5091
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
4956
5092
|
type LinkShippingAddress as LinkShippingAddress,
|
|
@@ -4982,6 +5118,7 @@ export declare namespace Items {
|
|
|
4982
5118
|
type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec,
|
|
4983
5119
|
type ShopPayWalletState as ShopPayWalletState,
|
|
4984
5120
|
type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec,
|
|
5121
|
+
type SingleUseCardBillingAddress as SingleUseCardBillingAddress,
|
|
4985
5122
|
type VaultCardAliases as VaultCardAliases,
|
|
4986
5123
|
type VaultCardFillField as VaultCardFillField,
|
|
4987
5124
|
type VaultCheckoutContext as VaultCheckoutContext,
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
KernelCredentialVaultItemSpecInput,
|
|
49
49
|
KernelCredentialVaultItemState,
|
|
50
50
|
KernelPaymentRequestVaultItemSpec,
|
|
51
|
+
KernelSingleUseCard,
|
|
51
52
|
KernelWalletState,
|
|
52
53
|
KernelWalletVaultItemSpec,
|
|
53
54
|
LinkShippingAddress,
|
|
@@ -79,6 +80,7 @@ import {
|
|
|
79
80
|
ShopPayCardVaultItemSpec,
|
|
80
81
|
ShopPayWalletState,
|
|
81
82
|
ShopPayWalletVaultItemSpec,
|
|
83
|
+
SingleUseCardBillingAddress,
|
|
82
84
|
VaultCardAliases,
|
|
83
85
|
VaultCardFillField,
|
|
84
86
|
VaultCheckoutContext,
|
|
@@ -320,6 +322,7 @@ export declare namespace Vaults {
|
|
|
320
322
|
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
321
323
|
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
322
324
|
type KernelPaymentRequestVaultItemSpec as KernelPaymentRequestVaultItemSpec,
|
|
325
|
+
type KernelSingleUseCard as KernelSingleUseCard,
|
|
323
326
|
type KernelWalletState as KernelWalletState,
|
|
324
327
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
325
328
|
type LinkShippingAddress as LinkShippingAddress,
|
|
@@ -351,6 +354,7 @@ export declare namespace Vaults {
|
|
|
351
354
|
type ShopPayCardVaultItemSpec as ShopPayCardVaultItemSpec,
|
|
352
355
|
type ShopPayWalletState as ShopPayWalletState,
|
|
353
356
|
type ShopPayWalletVaultItemSpec as ShopPayWalletVaultItemSpec,
|
|
357
|
+
type SingleUseCardBillingAddress as SingleUseCardBillingAddress,
|
|
354
358
|
type VaultCardAliases as VaultCardAliases,
|
|
355
359
|
type VaultCardFillField as VaultCardFillField,
|
|
356
360
|
type VaultCheckoutContext as VaultCheckoutContext,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.140.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.140.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.140.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.140.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|