@onkernel/sdk 0.153.0 → 0.155.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 +17 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +27 -3
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +27 -3
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/auth/context.d.mts +9 -1
- package/resources/auth/context.d.mts.map +1 -1
- package/resources/auth/context.d.ts +9 -1
- package/resources/auth/context.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +49 -20
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +49 -20
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +69 -10
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +69 -10
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/deployments.d.mts +82 -0
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts +82 -0
- package/resources/deployments.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +7 -2
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +7 -2
- package/resources/invocations.d.ts.map +1 -1
- package/resources/report-types/report-types.d.mts +7 -0
- package/resources/report-types/report-types.d.mts.map +1 -1
- package/resources/report-types/report-types.d.ts +7 -0
- package/resources/report-types/report-types.d.ts.map +1 -1
- package/resources/report-types/report-types.js.map +1 -1
- package/resources/report-types/report-types.mjs.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.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 +198 -64
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +198 -64
- 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/resources/workload-identity-federation-rules.d.mts +9 -1
- package/resources/workload-identity-federation-rules.d.mts.map +1 -1
- package/resources/workload-identity-federation-rules.d.ts +9 -1
- package/resources/workload-identity-federation-rules.d.ts.map +1 -1
- package/resources/workload-identity-issuers.d.mts +2 -0
- package/resources/workload-identity-issuers.d.mts.map +1 -1
- package/resources/workload-identity-issuers.d.ts +2 -0
- package/resources/workload-identity-issuers.d.ts.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/api-keys.ts +27 -3
- package/src/resources/auth/context.ts +9 -1
- package/src/resources/browser-pools.ts +53 -20
- package/src/resources/browsers/browsers.ts +79 -9
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/deployments.ts +90 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/invocations.ts +8 -2
- package/src/resources/report-types/report-types.ts +8 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/vaults/index.ts +4 -0
- package/src/resources/vaults/items.ts +223 -63
- package/src/resources/vaults/vaults.ts +8 -0
- package/src/resources/workload-identity-federation-rules.ts +9 -1
- package/src/resources/workload-identity-issuers.ts +2 -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
|
@@ -869,12 +869,12 @@ export interface CollectVaultItemOperationRequest {
|
|
|
869
869
|
}
|
|
870
870
|
|
|
871
871
|
/**
|
|
872
|
-
* Report a real merchant transaction outcome for an issued Kernel
|
|
873
|
-
* credential.
|
|
874
|
-
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
* report.
|
|
872
|
+
* Report a real merchant transaction outcome for an issued Kernel card or Shop Pay
|
|
873
|
+
* credential. Kernel alias cards record the outcome without contacting the issuer.
|
|
874
|
+
* Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer success from
|
|
875
|
+
* filling checkout or receiving a credential. Supply the observed status,
|
|
876
|
+
* transaction type, actual amount, currency and timestamp. Unknown outcomes
|
|
877
|
+
* require manual reconciliation, not retry. Each purchase accepts one report.
|
|
878
878
|
*/
|
|
879
879
|
export interface ConfirmTransactionVaultItemOperationRequest {
|
|
880
880
|
/**
|
|
@@ -909,20 +909,20 @@ export interface ConfirmTransactionVaultItemOperationRequest {
|
|
|
909
909
|
/**
|
|
910
910
|
* Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,
|
|
911
911
|
* captcha, login_required, timeout or site_error. payment_declined goes only with
|
|
912
|
-
* DECLINED, which takes no other code. Shop Pay reports it
|
|
913
|
-
* it.
|
|
912
|
+
* DECLINED, which takes no other code. Shop Pay reports it to Shop Pay; Kernel
|
|
913
|
+
* cards store it with the purchase without reporting it.
|
|
914
914
|
*/
|
|
915
915
|
failure_code?: string;
|
|
916
916
|
|
|
917
917
|
/**
|
|
918
|
-
* The merchant's order number, for an APPROVED outcome. Shop Pay reports it
|
|
919
|
-
*
|
|
918
|
+
* The merchant's order number, for an APPROVED outcome. Shop Pay reports it to
|
|
919
|
+
* Shop Pay; Kernel cards store it with the purchase without reporting it.
|
|
920
920
|
*/
|
|
921
921
|
order_id?: string;
|
|
922
922
|
|
|
923
923
|
/**
|
|
924
|
-
* The merchant's https order page, for an APPROVED outcome. Shop Pay reports it
|
|
925
|
-
*
|
|
924
|
+
* The merchant's https order page, for an APPROVED outcome. Shop Pay reports it to
|
|
925
|
+
* Shop Pay; Kernel cards store it with the purchase without reporting it.
|
|
926
926
|
*/
|
|
927
927
|
order_url?: string;
|
|
928
928
|
}
|
|
@@ -996,7 +996,8 @@ export namespace CredentialAccountVaultItem {
|
|
|
996
996
|
| 'update_access_token'
|
|
997
997
|
| 'webmcp_invoke'
|
|
998
998
|
| 'add_payment_method'
|
|
999
|
-
| 'remove_payment_method'
|
|
999
|
+
| 'remove_payment_method'
|
|
1000
|
+
| 'link_balance_setup';
|
|
1000
1001
|
}
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
@@ -1379,7 +1380,8 @@ export namespace CredentialVaultItem {
|
|
|
1379
1380
|
| 'update_access_token'
|
|
1380
1381
|
| 'webmcp_invoke'
|
|
1381
1382
|
| 'add_payment_method'
|
|
1382
|
-
| 'remove_payment_method'
|
|
1383
|
+
| 'remove_payment_method'
|
|
1384
|
+
| 'link_balance_setup';
|
|
1383
1385
|
}
|
|
1384
1386
|
|
|
1385
1387
|
export interface OnePasswordAccessApprovalAction {
|
|
@@ -1946,18 +1948,18 @@ export interface KernelWalletState {
|
|
|
1946
1948
|
provider: 'kernel';
|
|
1947
1949
|
|
|
1948
1950
|
/**
|
|
1949
|
-
* connected means the wallet is usable.
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
*
|
|
1953
|
-
* wallet
|
|
1954
|
-
*
|
|
1955
|
-
*
|
|
1956
|
-
* card_enrollment action
|
|
1957
|
-
*
|
|
1958
|
-
* reconnect_required
|
|
1959
|
-
* methods and not yet upgraded. Reads preserve its stored state until
|
|
1960
|
-
* upgrade; payment and deletion requests are refused until then.
|
|
1951
|
+
* connected means the wallet is usable. New wallets are created connected and
|
|
1952
|
+
* empty. A wallet holds zero or more cards as payment methods, added with
|
|
1953
|
+
* add_payment_method, removed with remove_payment_method and listed by the
|
|
1954
|
+
* payment_methods expansion; each can pay once it reports
|
|
1955
|
+
* capabilities.single_use_card.eligible. A wallet with no cards, before its first
|
|
1956
|
+
* card or after its last is removed, is still connected. A wallet created before
|
|
1957
|
+
* cards were added with add_payment_method holds a default card, ID card; while
|
|
1958
|
+
* that card's enrollment is pending, its card_enrollment action is on the card in
|
|
1959
|
+
* the payment_methods expansion, not on the wallet. pending_authorization,
|
|
1960
|
+
* degraded and reconnect_required appear only on a wallet created before cards
|
|
1961
|
+
* were payment methods and not yet upgraded. Reads preserve its stored state until
|
|
1962
|
+
* the operator upgrade; payment and deletion requests are refused until then.
|
|
1961
1963
|
*/
|
|
1962
1964
|
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
|
|
1963
1965
|
|
|
@@ -1966,25 +1968,67 @@ export interface KernelWalletState {
|
|
|
1966
1968
|
|
|
1967
1969
|
/**
|
|
1968
1970
|
* Cards stored with Kernel-managed credentials, each a payment method of the
|
|
1969
|
-
* wallet.
|
|
1970
|
-
*
|
|
1971
|
-
*
|
|
1972
|
-
* each card
|
|
1973
|
-
*
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
*
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
1981
|
-
* cardholder to complete a spend_approval action before Kernel issues a one-time
|
|
1982
|
-
* code; Mastercard purchases need no hosted approval.
|
|
1971
|
+
* wallet. Creation returns a connected wallet with no cards and no action. Add
|
|
1972
|
+
* each card with the add*payment_method operation, which returns a card_enrollment
|
|
1973
|
+
* action: the cardholder enters the card and their email on a Kernel-hosted page.
|
|
1974
|
+
* Kernel then enrolls each card for an agentic network token when the issuer
|
|
1975
|
+
* supports it. The card number never reaches Kernel. The connected wallet's
|
|
1976
|
+
* payment_methods expansion lists the cards; capabilities.single_use_card.eligible
|
|
1977
|
+
* is false, with a network_token*\* reason, until the card has a network token,
|
|
1978
|
+
* and authorize returns 400 for such a card unless Kernel supports checkout
|
|
1979
|
+
* delivery without a network token for that card. In that case, fill types the
|
|
1980
|
+
* checkout details. Visa purchases require the cardholder to complete a
|
|
1981
|
+
* spend_approval action before Kernel issues a one-time code; Mastercard purchases
|
|
1982
|
+
* need no hosted approval.
|
|
1983
1983
|
*/
|
|
1984
1984
|
export interface KernelWalletVaultItemSpec {
|
|
1985
1985
|
provider: 'kernel';
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
|
+
/**
|
|
1989
|
+
* Get the Link page where the user sets up Link balance, adds money to it, and
|
|
1990
|
+
* chooses an approval threshold for this wallet's Link client. Kernel does not yet
|
|
1991
|
+
* create spend requests under that approval policy, so cards from this wallet
|
|
1992
|
+
* still require the user's approval even when they are paid from the balance.
|
|
1993
|
+
* Available on connected Link wallets. Kernel first reads Link's user info and
|
|
1994
|
+
* returns 409 unless Link reports eligible_for_balance as true, which depends on
|
|
1995
|
+
* both the user and the wallet's Link client. Both amounts are suggestions the
|
|
1996
|
+
* page prefills; the user makes the final choice. Send only what needs to change:
|
|
1997
|
+
* desired_balance_amount to ask for money to be added, desired_transaction_limit
|
|
1998
|
+
* to set or change the threshold, or both for first-time setup.
|
|
1999
|
+
*/
|
|
2000
|
+
export interface LinkBalanceSetupVaultItemOperationRequest {
|
|
2001
|
+
type: 'link_balance_setup';
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Balance, in cents, the user should end up with. The page prefills the amount to
|
|
2005
|
+
* add to reach it and skips adding money when the balance already covers it. Whole
|
|
2006
|
+
* dollars only. Link refuses links that ask the user to add more than $150 at
|
|
2007
|
+
* once.
|
|
2008
|
+
*/
|
|
2009
|
+
desired_balance_amount?: number;
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* Approval threshold, in cents, to prefill. Link skips approval only for spend
|
|
2013
|
+
* requests created under its approval policy, which Kernel cards do not use yet.
|
|
2014
|
+
* Whole dollars, at most $500 because a single spend request cannot exceed $500.
|
|
2015
|
+
* When set the page always shows the threshold step; when omitted it skips it.
|
|
2016
|
+
*/
|
|
2017
|
+
desired_transaction_limit?: number;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Share url with the user; only the user can complete the page. It does not expire
|
|
2022
|
+
* and is the same for first-time setup, adding money and changing the threshold.
|
|
2023
|
+
* Observe the result through the payment_methods expansion (a method with type
|
|
2024
|
+
* balance and its balance.available) rather than assuming the user finished.
|
|
2025
|
+
*/
|
|
2026
|
+
export interface LinkBalanceSetupVaultItemOperationResult {
|
|
2027
|
+
type: 'link_balance_setup';
|
|
2028
|
+
|
|
2029
|
+
url: string;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
1988
2032
|
/**
|
|
1989
2033
|
* One entry of Link's `GET /shipping_addresses` response, passed through as Link
|
|
1990
2034
|
* reports it. Kernel never stores it.
|
|
@@ -2683,22 +2727,65 @@ export interface OnePasswordFillVaultItemOperationRequest {
|
|
|
2683
2727
|
export interface OnePasswordFillVaultItemOperationResult {
|
|
2684
2728
|
/**
|
|
2685
2729
|
* Kernel's outcome of the extension call. fill_submitted means the extension
|
|
2686
|
-
* reported submission, not website authentication
|
|
2687
|
-
*
|
|
2688
|
-
* may have been filled or submitted
|
|
2689
|
-
*
|
|
2730
|
+
* reported submission, not website authentication; check the page. fill_failed
|
|
2731
|
+
* means 1Password reported a failure, named by error_code; with fillFailed the
|
|
2732
|
+
* form may already have been filled or submitted, so check the page. fill_unknown
|
|
2733
|
+
* means the form may have been filled or submitted without a conclusive result;
|
|
2734
|
+
* inspect the page to see the result of the fill.
|
|
2690
2735
|
*/
|
|
2691
2736
|
status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
|
|
2692
2737
|
|
|
2693
2738
|
type: '1pw_fill';
|
|
2694
2739
|
|
|
2695
2740
|
/**
|
|
2696
|
-
*
|
|
2697
|
-
*
|
|
2698
|
-
*
|
|
2699
|
-
*
|
|
2741
|
+
* The 1Password extension's error code, passed through unchanged. Present for
|
|
2742
|
+
* fill_failed, and for fill_unknown when the extension reported one. Codes
|
|
2743
|
+
* 1Password adds later are returned with fill_unknown, because the form may have
|
|
2744
|
+
* been filled or submitted. Codes are short identifiers, never raw errors,
|
|
2745
|
+
* secrets, or page content.
|
|
2746
|
+
*
|
|
2747
|
+
* autosubmitFailed (fill_unknown): 1Password filled the form, saw no new page and
|
|
2748
|
+
* no removed fields for 10 seconds, and cleared what it filled. If the login has a
|
|
2749
|
+
* one-time password the site didn't ask for, the sign-in may still have worked.
|
|
2750
|
+
* The approval is still valid: do not request access again. Check the page:
|
|
2751
|
+
* continue if signed in or on a verification step; if the form is still showing,
|
|
2752
|
+
* 1Password cannot sign in to this site, so ask the user or use another sign-in
|
|
2753
|
+
* method rather than filling again.
|
|
2754
|
+
*
|
|
2755
|
+
* internal (fill_unknown): an unexpected 1Password error that may have happened
|
|
2756
|
+
* after the fill. Inspect the page.
|
|
2757
|
+
*
|
|
2758
|
+
* noActiveGrant, credentialNotFound: the approval expired or was revoked, or the
|
|
2759
|
+
* login was deleted or moved. Kernel returns the credential to
|
|
2760
|
+
* pending_authorization and drops its approval; create a new access request with
|
|
2761
|
+
* 1pw_create_access_request.
|
|
2762
|
+
*
|
|
2763
|
+
* fillFailed: 1Password couldn't complete the fill, and the form may already have
|
|
2764
|
+
* been filled or submitted. Check the page before filling again.
|
|
2765
|
+
*
|
|
2766
|
+
* websiteMismatch: the page isn't on the login's website. Navigate to the login
|
|
2767
|
+
* page and fill again.
|
|
2768
|
+
*
|
|
2769
|
+
* rateLimitExceeded: wait at least a minute before filling again.
|
|
2770
|
+
* serviceUnavailable and networkError: fill again with backoff.
|
|
2771
|
+
*
|
|
2772
|
+
* extensionUnavailable: the 1Password extension failed to start in this browser.
|
|
2773
|
+
* Create a new browser with the vault attached and fill there.
|
|
2774
|
+
*
|
|
2775
|
+
* invalidToken: 1Password rejected the access token. For a credential linked to a
|
|
2776
|
+
* 1Password account, Kernel has already refreshed the token and filled once more;
|
|
2777
|
+
* if that refresh failed, the account is now reconnect_required, so link it again
|
|
2778
|
+
* with PUT. For a credential with a stored token, replace the token with
|
|
2779
|
+
* 1pw_update_access_token, then fill again.
|
|
2780
|
+
*
|
|
2781
|
+
* integrationKeyInvalid: the 1Password connection was removed or is out of date.
|
|
2782
|
+
* Invoke 1pw_disconnect on the credential_account item, then link it again with
|
|
2783
|
+
* PUT.
|
|
2784
|
+
*
|
|
2785
|
+
* insufficientScope, permissionDenied, featureEntitlementMissing: the 1Password
|
|
2786
|
+
* account or plan doesn't allow this. Tell the user; filling again won't help.
|
|
2700
2787
|
*/
|
|
2701
|
-
error_code?:
|
|
2788
|
+
error_code?: string;
|
|
2702
2789
|
}
|
|
2703
2790
|
|
|
2704
2791
|
export interface OnePasswordOAuthAction {
|
|
@@ -2844,7 +2931,8 @@ export namespace PaymentRequestVaultItem {
|
|
|
2844
2931
|
| 'update_access_token'
|
|
2845
2932
|
| 'webmcp_invoke'
|
|
2846
2933
|
| 'add_payment_method'
|
|
2847
|
-
| 'remove_payment_method'
|
|
2934
|
+
| 'remove_payment_method'
|
|
2935
|
+
| 'link_balance_setup';
|
|
2848
2936
|
}
|
|
2849
2937
|
}
|
|
2850
2938
|
|
|
@@ -3580,7 +3668,8 @@ export namespace VaultItem {
|
|
|
3580
3668
|
| 'update_access_token'
|
|
3581
3669
|
| 'webmcp_invoke'
|
|
3582
3670
|
| 'add_payment_method'
|
|
3583
|
-
| 'remove_payment_method'
|
|
3671
|
+
| 'remove_payment_method'
|
|
3672
|
+
| 'link_balance_setup';
|
|
3584
3673
|
}
|
|
3585
3674
|
|
|
3586
3675
|
/**
|
|
@@ -3681,7 +3770,8 @@ export namespace VaultItem {
|
|
|
3681
3770
|
| 'update_access_token'
|
|
3682
3771
|
| 'webmcp_invoke'
|
|
3683
3772
|
| 'add_payment_method'
|
|
3684
|
-
| 'remove_payment_method'
|
|
3773
|
+
| 'remove_payment_method'
|
|
3774
|
+
| 'link_balance_setup';
|
|
3685
3775
|
}
|
|
3686
3776
|
}
|
|
3687
3777
|
}
|
|
@@ -3768,7 +3858,8 @@ export interface VaultItemEvent {
|
|
|
3768
3858
|
* Authorization and preparation return the existing item shape. Fill and passkey
|
|
3769
3859
|
* operations return value-free results; WebMCP invocation returns the tool's
|
|
3770
3860
|
* output. None persist transient outcomes on the item. Payment-method operations
|
|
3771
|
-
* return the affected wallet payment method.
|
|
3861
|
+
* return the affected wallet payment method. link_balance_setup returns the Link
|
|
3862
|
+
* balance setup URL.
|
|
3772
3863
|
*/
|
|
3773
3864
|
export type VaultItemOperationResponse =
|
|
3774
3865
|
| VaultItemOperationResponse.WalletVaultItem
|
|
@@ -3781,7 +3872,8 @@ export type VaultItemOperationResponse =
|
|
|
3781
3872
|
| OnePasswordFillVaultItemOperationResult
|
|
3782
3873
|
| WebmcpInvokeVaultItemOperationResult
|
|
3783
3874
|
| AddPaymentMethodVaultItemOperationResult
|
|
3784
|
-
| RemovePaymentMethodVaultItemOperationResult
|
|
3875
|
+
| RemovePaymentMethodVaultItemOperationResult
|
|
3876
|
+
| LinkBalanceSetupVaultItemOperationResult;
|
|
3785
3877
|
|
|
3786
3878
|
export namespace VaultItemOperationResponse {
|
|
3787
3879
|
export interface WalletVaultItem {
|
|
@@ -3874,7 +3966,8 @@ export namespace VaultItemOperationResponse {
|
|
|
3874
3966
|
| 'update_access_token'
|
|
3875
3967
|
| 'webmcp_invoke'
|
|
3876
3968
|
| 'add_payment_method'
|
|
3877
|
-
| 'remove_payment_method'
|
|
3969
|
+
| 'remove_payment_method'
|
|
3970
|
+
| 'link_balance_setup';
|
|
3878
3971
|
}
|
|
3879
3972
|
|
|
3880
3973
|
/**
|
|
@@ -3975,7 +4068,8 @@ export namespace VaultItemOperationResponse {
|
|
|
3975
4068
|
| 'update_access_token'
|
|
3976
4069
|
| 'webmcp_invoke'
|
|
3977
4070
|
| 'add_payment_method'
|
|
3978
|
-
| 'remove_payment_method'
|
|
4071
|
+
| 'remove_payment_method'
|
|
4072
|
+
| 'link_balance_setup';
|
|
3979
4073
|
}
|
|
3980
4074
|
}
|
|
3981
4075
|
}
|
|
@@ -3993,8 +4087,8 @@ export interface VaultPaymentMethod {
|
|
|
3993
4087
|
|
|
3994
4088
|
/**
|
|
3995
4089
|
* For Kernel wallets, true for the default card, ID card, which a Kernel card item
|
|
3996
|
-
* that omits payment_method_id selects.
|
|
3997
|
-
*
|
|
4090
|
+
* that omits payment_method_id selects. Only wallets created before cards were
|
|
4091
|
+
* added with add_payment_method have a default card.
|
|
3998
4092
|
*/
|
|
3999
4093
|
is_default: boolean;
|
|
4000
4094
|
|
|
@@ -4016,6 +4110,14 @@ export interface VaultPaymentMethod {
|
|
|
4016
4110
|
*/
|
|
4017
4111
|
action?: VaultPaymentMethod.Action;
|
|
4018
4112
|
|
|
4113
|
+
/**
|
|
4114
|
+
* Present on stored-value payment methods, such as a Link balance (type
|
|
4115
|
+
* `balance`). `available` is the amount available to spend, absent when the
|
|
4116
|
+
* provider did not report it. Read live from the provider on every request and
|
|
4117
|
+
* never stored by Kernel.
|
|
4118
|
+
*/
|
|
4119
|
+
balance?: VaultPaymentMethodBalance;
|
|
4120
|
+
|
|
4019
4121
|
/**
|
|
4020
4122
|
* Expiry of a pending enrollment link or ingest URL.
|
|
4021
4123
|
*/
|
|
@@ -4093,6 +4195,28 @@ export namespace VaultPaymentMethod {
|
|
|
4093
4195
|
}
|
|
4094
4196
|
}
|
|
4095
4197
|
|
|
4198
|
+
export interface VaultPaymentMethodAmount {
|
|
4199
|
+
/**
|
|
4200
|
+
* Amount in the currency's smallest unit, for example cents for USD.
|
|
4201
|
+
*/
|
|
4202
|
+
amount: number;
|
|
4203
|
+
|
|
4204
|
+
/**
|
|
4205
|
+
* Lowercase ISO 4217 currency code.
|
|
4206
|
+
*/
|
|
4207
|
+
currency: string;
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
/**
|
|
4211
|
+
* Present on stored-value payment methods, such as a Link balance (type
|
|
4212
|
+
* `balance`). `available` is the amount available to spend, absent when the
|
|
4213
|
+
* provider did not report it. Read live from the provider on every request and
|
|
4214
|
+
* never stored by Kernel.
|
|
4215
|
+
*/
|
|
4216
|
+
export interface VaultPaymentMethodBalance {
|
|
4217
|
+
available?: VaultPaymentMethodAmount;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4096
4220
|
export interface VaultWebmcpBinding {
|
|
4097
4221
|
/**
|
|
4098
4222
|
* A declared, populated credential field or supported card field. A TOTP field
|
|
@@ -4686,7 +4810,8 @@ export type ItemPerformOperationParams =
|
|
|
4686
4810
|
| ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest
|
|
4687
4811
|
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
4688
4812
|
| ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest
|
|
4689
|
-
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest
|
|
4813
|
+
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest
|
|
4814
|
+
| ItemPerformOperationParams.LinkBalanceSetupVaultItemOperationRequest;
|
|
4690
4815
|
|
|
4691
4816
|
export declare namespace ItemPerformOperationParams {
|
|
4692
4817
|
export interface AuthorizeVaultItemOperationRequest {
|
|
@@ -4773,20 +4898,22 @@ export declare namespace ItemPerformOperationParams {
|
|
|
4773
4898
|
/**
|
|
4774
4899
|
* Body param: Why the purchase did not succeed, for any other outcome, such as
|
|
4775
4900
|
* 3ds_challenge, captcha, login_required, timeout or site_error. payment_declined
|
|
4776
|
-
* goes only with DECLINED, which takes no other code. Shop Pay reports it
|
|
4777
|
-
*
|
|
4901
|
+
* goes only with DECLINED, which takes no other code. Shop Pay reports it to Shop
|
|
4902
|
+
* Pay; Kernel cards store it with the purchase without reporting it.
|
|
4778
4903
|
*/
|
|
4779
4904
|
failure_code?: string;
|
|
4780
4905
|
|
|
4781
4906
|
/**
|
|
4782
4907
|
* Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
|
|
4783
|
-
* reports it;
|
|
4908
|
+
* reports it to Shop Pay; Kernel cards store it with the purchase without
|
|
4909
|
+
* reporting it.
|
|
4784
4910
|
*/
|
|
4785
4911
|
order_id?: string;
|
|
4786
4912
|
|
|
4787
4913
|
/**
|
|
4788
4914
|
* Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
|
|
4789
|
-
* reports it;
|
|
4915
|
+
* reports it to Shop Pay; Kernel cards store it with the purchase without
|
|
4916
|
+
* reporting it.
|
|
4790
4917
|
*/
|
|
4791
4918
|
order_url?: string;
|
|
4792
4919
|
}
|
|
@@ -5168,6 +5295,35 @@ export declare namespace ItemPerformOperationParams {
|
|
|
5168
5295
|
*/
|
|
5169
5296
|
type: 'remove_payment_method';
|
|
5170
5297
|
}
|
|
5298
|
+
|
|
5299
|
+
export interface LinkBalanceSetupVaultItemOperationRequest {
|
|
5300
|
+
/**
|
|
5301
|
+
* Path param
|
|
5302
|
+
*/
|
|
5303
|
+
id_or_name: string;
|
|
5304
|
+
|
|
5305
|
+
/**
|
|
5306
|
+
* Body param
|
|
5307
|
+
*/
|
|
5308
|
+
type: 'link_balance_setup';
|
|
5309
|
+
|
|
5310
|
+
/**
|
|
5311
|
+
* Body param: Balance, in cents, the user should end up with. The page prefills
|
|
5312
|
+
* the amount to add to reach it and skips adding money when the balance already
|
|
5313
|
+
* covers it. Whole dollars only. Link refuses links that ask the user to add more
|
|
5314
|
+
* than $150 at once.
|
|
5315
|
+
*/
|
|
5316
|
+
desired_balance_amount?: number;
|
|
5317
|
+
|
|
5318
|
+
/**
|
|
5319
|
+
* Body param: Approval threshold, in cents, to prefill. Link skips approval only
|
|
5320
|
+
* for spend requests created under its approval policy, which Kernel cards do not
|
|
5321
|
+
* use yet. Whole dollars, at most $500 because a single spend request cannot
|
|
5322
|
+
* exceed $500. When set the page always shows the threshold step; when omitted it
|
|
5323
|
+
* skips it.
|
|
5324
|
+
*/
|
|
5325
|
+
desired_transaction_limit?: number;
|
|
5326
|
+
}
|
|
5171
5327
|
}
|
|
5172
5328
|
|
|
5173
5329
|
export type ItemUpsertParams =
|
|
@@ -5511,6 +5667,8 @@ export declare namespace Items {
|
|
|
5511
5667
|
type KernelSingleUseCard as KernelSingleUseCard,
|
|
5512
5668
|
type KernelWalletState as KernelWalletState,
|
|
5513
5669
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
5670
|
+
type LinkBalanceSetupVaultItemOperationRequest as LinkBalanceSetupVaultItemOperationRequest,
|
|
5671
|
+
type LinkBalanceSetupVaultItemOperationResult as LinkBalanceSetupVaultItemOperationResult,
|
|
5514
5672
|
type LinkShippingAddress as LinkShippingAddress,
|
|
5515
5673
|
type LinkUserInfo as LinkUserInfo,
|
|
5516
5674
|
type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField,
|
|
@@ -5551,6 +5709,8 @@ export declare namespace Items {
|
|
|
5551
5709
|
type VaultItemEvent as VaultItemEvent,
|
|
5552
5710
|
type VaultItemOperationResponse as VaultItemOperationResponse,
|
|
5553
5711
|
type VaultPaymentMethod as VaultPaymentMethod,
|
|
5712
|
+
type VaultPaymentMethodAmount as VaultPaymentMethodAmount,
|
|
5713
|
+
type VaultPaymentMethodBalance as VaultPaymentMethodBalance,
|
|
5554
5714
|
type VaultWebmcpBinding as VaultWebmcpBinding,
|
|
5555
5715
|
type VgsCardInput as VgsCardInput,
|
|
5556
5716
|
type VgsCardState as VgsCardState,
|
|
@@ -51,6 +51,8 @@ import {
|
|
|
51
51
|
KernelSingleUseCard,
|
|
52
52
|
KernelWalletState,
|
|
53
53
|
KernelWalletVaultItemSpec,
|
|
54
|
+
LinkBalanceSetupVaultItemOperationRequest,
|
|
55
|
+
LinkBalanceSetupVaultItemOperationResult,
|
|
54
56
|
LinkShippingAddress,
|
|
55
57
|
LinkUserInfo,
|
|
56
58
|
ManagedAuthCredentialVaultField,
|
|
@@ -91,6 +93,8 @@ import {
|
|
|
91
93
|
VaultItemEvent,
|
|
92
94
|
VaultItemOperationResponse,
|
|
93
95
|
VaultPaymentMethod,
|
|
96
|
+
VaultPaymentMethodAmount,
|
|
97
|
+
VaultPaymentMethodBalance,
|
|
94
98
|
VaultWebmcpBinding,
|
|
95
99
|
VgsCardInput,
|
|
96
100
|
VgsCardState,
|
|
@@ -333,6 +337,8 @@ export declare namespace Vaults {
|
|
|
333
337
|
type KernelSingleUseCard as KernelSingleUseCard,
|
|
334
338
|
type KernelWalletState as KernelWalletState,
|
|
335
339
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
340
|
+
type LinkBalanceSetupVaultItemOperationRequest as LinkBalanceSetupVaultItemOperationRequest,
|
|
341
|
+
type LinkBalanceSetupVaultItemOperationResult as LinkBalanceSetupVaultItemOperationResult,
|
|
336
342
|
type LinkShippingAddress as LinkShippingAddress,
|
|
337
343
|
type LinkUserInfo as LinkUserInfo,
|
|
338
344
|
type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField,
|
|
@@ -373,6 +379,8 @@ export declare namespace Vaults {
|
|
|
373
379
|
type VaultItemEvent as VaultItemEvent,
|
|
374
380
|
type VaultItemOperationResponse as VaultItemOperationResponse,
|
|
375
381
|
type VaultPaymentMethod as VaultPaymentMethod,
|
|
382
|
+
type VaultPaymentMethodAmount as VaultPaymentMethodAmount,
|
|
383
|
+
type VaultPaymentMethodBalance as VaultPaymentMethodBalance,
|
|
376
384
|
type VaultWebmcpBinding as VaultWebmcpBinding,
|
|
377
385
|
type VgsCardInput as VgsCardInput,
|
|
378
386
|
type VgsCardState as VgsCardState,
|
|
@@ -98,7 +98,15 @@ export namespace WorkloadIdentityAuthorization {
|
|
|
98
98
|
export namespace Policy {
|
|
99
99
|
export interface Statement {
|
|
100
100
|
/**
|
|
101
|
-
* Permitted action, such as browsers:use or vaults:read.
|
|
101
|
+
* Permitted action, such as browsers:use or vaults:read. When creating an API key
|
|
102
|
+
* or replacing its policy, `*` may replace whole components as shorthand:
|
|
103
|
+
* browsers:_ names every browsers action, _:delete every delete action the
|
|
104
|
+
* resource can carry, and _:_ every action the resource can carry. The stored
|
|
105
|
+
* policy lists the concrete actions, so actions added later are not granted, and
|
|
106
|
+
* api_keys:issue_beyond_expiry must always be listed explicitly. Partial
|
|
107
|
+
* components such as brow*:use and a bare * are rejected. Other policies, such as
|
|
108
|
+
* workload identity rules and deployment runtime policies, accept only exact
|
|
109
|
+
* actions.
|
|
102
110
|
*/
|
|
103
111
|
action: string;
|
|
104
112
|
|
|
@@ -179,6 +179,8 @@ export type WorkloadIdentityPresetType =
|
|
|
179
179
|
export interface WorkloadIdentityTokenValidation {
|
|
180
180
|
/**
|
|
181
181
|
* Maximum incoming signed exp minus iat, independent of outgoing token lifetime.
|
|
182
|
+
* At most 172800 (48 hours), which covers Azure managed identity tokens that live
|
|
183
|
+
* slightly over 24 hours.
|
|
182
184
|
*/
|
|
183
185
|
max_lifetime_seconds?: number;
|
|
184
186
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.155.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.155.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.155.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.155.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|