@onkernel/sdk 0.152.0 → 0.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +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/browser-pools.d.mts +10 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +10 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +87 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +87 -1
- 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/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 +10 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +10 -0
- package/resources/invocations.d.ts.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 +102 -11
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +102 -11
- 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-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 +6 -0
- package/src/resources/browser-pools.ts +12 -0
- package/src/resources/browsers/browsers.ts +104 -0
- package/src/resources/browsers/index.ts +3 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/invocations.ts +12 -0
- package/src/resources/shared.ts +5 -0
- package/src/resources/vaults/index.ts +4 -0
- package/src/resources/vaults/items.ts +127 -10
- package/src/resources/vaults/vaults.ts +8 -0
- 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
|
@@ -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 {
|
|
@@ -1985,6 +1987,50 @@ export interface KernelWalletVaultItemSpec {
|
|
|
1985
1987
|
provider: 'kernel';
|
|
1986
1988
|
}
|
|
1987
1989
|
|
|
1990
|
+
/**
|
|
1991
|
+
* Get the Link page where the user sets up Link balance, adds money to it, and
|
|
1992
|
+
* chooses an approval threshold for this wallet's Link client. Kernel does not yet
|
|
1993
|
+
* create spend requests under that approval policy, so cards from this wallet
|
|
1994
|
+
* still require the user's approval even when they are paid from the balance.
|
|
1995
|
+
* Available on connected Link wallets. Kernel first reads Link's user info and
|
|
1996
|
+
* returns 409 unless Link reports eligible_for_balance as true, which depends on
|
|
1997
|
+
* both the user and the wallet's Link client. Both amounts are suggestions the
|
|
1998
|
+
* page prefills; the user makes the final choice. Send only what needs to change:
|
|
1999
|
+
* desired_balance_amount to ask for money to be added, desired_transaction_limit
|
|
2000
|
+
* to set or change the threshold, or both for first-time setup.
|
|
2001
|
+
*/
|
|
2002
|
+
export interface LinkBalanceSetupVaultItemOperationRequest {
|
|
2003
|
+
type: 'link_balance_setup';
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* Balance, in cents, the user should end up with. The page prefills the amount to
|
|
2007
|
+
* add to reach it and skips adding money when the balance already covers it. Whole
|
|
2008
|
+
* dollars only. Link refuses links that ask the user to add more than $150 at
|
|
2009
|
+
* once.
|
|
2010
|
+
*/
|
|
2011
|
+
desired_balance_amount?: number;
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Approval threshold, in cents, to prefill. Link skips approval only for spend
|
|
2015
|
+
* requests created under its approval policy, which Kernel cards do not use yet.
|
|
2016
|
+
* Whole dollars, at most $500 because a single spend request cannot exceed $500.
|
|
2017
|
+
* When set the page always shows the threshold step; when omitted it skips it.
|
|
2018
|
+
*/
|
|
2019
|
+
desired_transaction_limit?: number;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Share url with the user; only the user can complete the page. It does not expire
|
|
2024
|
+
* and is the same for first-time setup, adding money and changing the threshold.
|
|
2025
|
+
* Observe the result through the payment_methods expansion (a method with type
|
|
2026
|
+
* balance and its balance.available) rather than assuming the user finished.
|
|
2027
|
+
*/
|
|
2028
|
+
export interface LinkBalanceSetupVaultItemOperationResult {
|
|
2029
|
+
type: 'link_balance_setup';
|
|
2030
|
+
|
|
2031
|
+
url: string;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
1988
2034
|
/**
|
|
1989
2035
|
* One entry of Link's `GET /shipping_addresses` response, passed through as Link
|
|
1990
2036
|
* reports it. Kernel never stores it.
|
|
@@ -2844,7 +2890,8 @@ export namespace PaymentRequestVaultItem {
|
|
|
2844
2890
|
| 'update_access_token'
|
|
2845
2891
|
| 'webmcp_invoke'
|
|
2846
2892
|
| 'add_payment_method'
|
|
2847
|
-
| 'remove_payment_method'
|
|
2893
|
+
| 'remove_payment_method'
|
|
2894
|
+
| 'link_balance_setup';
|
|
2848
2895
|
}
|
|
2849
2896
|
}
|
|
2850
2897
|
|
|
@@ -3580,7 +3627,8 @@ export namespace VaultItem {
|
|
|
3580
3627
|
| 'update_access_token'
|
|
3581
3628
|
| 'webmcp_invoke'
|
|
3582
3629
|
| 'add_payment_method'
|
|
3583
|
-
| 'remove_payment_method'
|
|
3630
|
+
| 'remove_payment_method'
|
|
3631
|
+
| 'link_balance_setup';
|
|
3584
3632
|
}
|
|
3585
3633
|
|
|
3586
3634
|
/**
|
|
@@ -3681,7 +3729,8 @@ export namespace VaultItem {
|
|
|
3681
3729
|
| 'update_access_token'
|
|
3682
3730
|
| 'webmcp_invoke'
|
|
3683
3731
|
| 'add_payment_method'
|
|
3684
|
-
| 'remove_payment_method'
|
|
3732
|
+
| 'remove_payment_method'
|
|
3733
|
+
| 'link_balance_setup';
|
|
3685
3734
|
}
|
|
3686
3735
|
}
|
|
3687
3736
|
}
|
|
@@ -3768,7 +3817,8 @@ export interface VaultItemEvent {
|
|
|
3768
3817
|
* Authorization and preparation return the existing item shape. Fill and passkey
|
|
3769
3818
|
* operations return value-free results; WebMCP invocation returns the tool's
|
|
3770
3819
|
* output. None persist transient outcomes on the item. Payment-method operations
|
|
3771
|
-
* return the affected wallet payment method.
|
|
3820
|
+
* return the affected wallet payment method. link_balance_setup returns the Link
|
|
3821
|
+
* balance setup URL.
|
|
3772
3822
|
*/
|
|
3773
3823
|
export type VaultItemOperationResponse =
|
|
3774
3824
|
| VaultItemOperationResponse.WalletVaultItem
|
|
@@ -3781,7 +3831,8 @@ export type VaultItemOperationResponse =
|
|
|
3781
3831
|
| OnePasswordFillVaultItemOperationResult
|
|
3782
3832
|
| WebmcpInvokeVaultItemOperationResult
|
|
3783
3833
|
| AddPaymentMethodVaultItemOperationResult
|
|
3784
|
-
| RemovePaymentMethodVaultItemOperationResult
|
|
3834
|
+
| RemovePaymentMethodVaultItemOperationResult
|
|
3835
|
+
| LinkBalanceSetupVaultItemOperationResult;
|
|
3785
3836
|
|
|
3786
3837
|
export namespace VaultItemOperationResponse {
|
|
3787
3838
|
export interface WalletVaultItem {
|
|
@@ -3874,7 +3925,8 @@ export namespace VaultItemOperationResponse {
|
|
|
3874
3925
|
| 'update_access_token'
|
|
3875
3926
|
| 'webmcp_invoke'
|
|
3876
3927
|
| 'add_payment_method'
|
|
3877
|
-
| 'remove_payment_method'
|
|
3928
|
+
| 'remove_payment_method'
|
|
3929
|
+
| 'link_balance_setup';
|
|
3878
3930
|
}
|
|
3879
3931
|
|
|
3880
3932
|
/**
|
|
@@ -3975,7 +4027,8 @@ export namespace VaultItemOperationResponse {
|
|
|
3975
4027
|
| 'update_access_token'
|
|
3976
4028
|
| 'webmcp_invoke'
|
|
3977
4029
|
| 'add_payment_method'
|
|
3978
|
-
| 'remove_payment_method'
|
|
4030
|
+
| 'remove_payment_method'
|
|
4031
|
+
| 'link_balance_setup';
|
|
3979
4032
|
}
|
|
3980
4033
|
}
|
|
3981
4034
|
}
|
|
@@ -4016,6 +4069,14 @@ export interface VaultPaymentMethod {
|
|
|
4016
4069
|
*/
|
|
4017
4070
|
action?: VaultPaymentMethod.Action;
|
|
4018
4071
|
|
|
4072
|
+
/**
|
|
4073
|
+
* Present on stored-value payment methods, such as a Link balance (type
|
|
4074
|
+
* `balance`). `available` is the amount available to spend, absent when the
|
|
4075
|
+
* provider did not report it. Read live from the provider on every request and
|
|
4076
|
+
* never stored by Kernel.
|
|
4077
|
+
*/
|
|
4078
|
+
balance?: VaultPaymentMethodBalance;
|
|
4079
|
+
|
|
4019
4080
|
/**
|
|
4020
4081
|
* Expiry of a pending enrollment link or ingest URL.
|
|
4021
4082
|
*/
|
|
@@ -4093,6 +4154,28 @@ export namespace VaultPaymentMethod {
|
|
|
4093
4154
|
}
|
|
4094
4155
|
}
|
|
4095
4156
|
|
|
4157
|
+
export interface VaultPaymentMethodAmount {
|
|
4158
|
+
/**
|
|
4159
|
+
* Amount in the currency's smallest unit, for example cents for USD.
|
|
4160
|
+
*/
|
|
4161
|
+
amount: number;
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* Lowercase ISO 4217 currency code.
|
|
4165
|
+
*/
|
|
4166
|
+
currency: string;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
/**
|
|
4170
|
+
* Present on stored-value payment methods, such as a Link balance (type
|
|
4171
|
+
* `balance`). `available` is the amount available to spend, absent when the
|
|
4172
|
+
* provider did not report it. Read live from the provider on every request and
|
|
4173
|
+
* never stored by Kernel.
|
|
4174
|
+
*/
|
|
4175
|
+
export interface VaultPaymentMethodBalance {
|
|
4176
|
+
available?: VaultPaymentMethodAmount;
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4096
4179
|
export interface VaultWebmcpBinding {
|
|
4097
4180
|
/**
|
|
4098
4181
|
* A declared, populated credential field or supported card field. A TOTP field
|
|
@@ -4686,7 +4769,8 @@ export type ItemPerformOperationParams =
|
|
|
4686
4769
|
| ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest
|
|
4687
4770
|
| ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
|
|
4688
4771
|
| ItemPerformOperationParams.AddPaymentMethodVaultItemOperationRequest
|
|
4689
|
-
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest
|
|
4772
|
+
| ItemPerformOperationParams.RemovePaymentMethodVaultItemOperationRequest
|
|
4773
|
+
| ItemPerformOperationParams.LinkBalanceSetupVaultItemOperationRequest;
|
|
4690
4774
|
|
|
4691
4775
|
export declare namespace ItemPerformOperationParams {
|
|
4692
4776
|
export interface AuthorizeVaultItemOperationRequest {
|
|
@@ -5168,6 +5252,35 @@ export declare namespace ItemPerformOperationParams {
|
|
|
5168
5252
|
*/
|
|
5169
5253
|
type: 'remove_payment_method';
|
|
5170
5254
|
}
|
|
5255
|
+
|
|
5256
|
+
export interface LinkBalanceSetupVaultItemOperationRequest {
|
|
5257
|
+
/**
|
|
5258
|
+
* Path param
|
|
5259
|
+
*/
|
|
5260
|
+
id_or_name: string;
|
|
5261
|
+
|
|
5262
|
+
/**
|
|
5263
|
+
* Body param
|
|
5264
|
+
*/
|
|
5265
|
+
type: 'link_balance_setup';
|
|
5266
|
+
|
|
5267
|
+
/**
|
|
5268
|
+
* Body param: Balance, in cents, the user should end up with. The page prefills
|
|
5269
|
+
* the amount to add to reach it and skips adding money when the balance already
|
|
5270
|
+
* covers it. Whole dollars only. Link refuses links that ask the user to add more
|
|
5271
|
+
* than $150 at once.
|
|
5272
|
+
*/
|
|
5273
|
+
desired_balance_amount?: number;
|
|
5274
|
+
|
|
5275
|
+
/**
|
|
5276
|
+
* Body param: Approval threshold, in cents, to prefill. Link skips approval only
|
|
5277
|
+
* for spend requests created under its approval policy, which Kernel cards do not
|
|
5278
|
+
* use yet. Whole dollars, at most $500 because a single spend request cannot
|
|
5279
|
+
* exceed $500. When set the page always shows the threshold step; when omitted it
|
|
5280
|
+
* skips it.
|
|
5281
|
+
*/
|
|
5282
|
+
desired_transaction_limit?: number;
|
|
5283
|
+
}
|
|
5171
5284
|
}
|
|
5172
5285
|
|
|
5173
5286
|
export type ItemUpsertParams =
|
|
@@ -5511,6 +5624,8 @@ export declare namespace Items {
|
|
|
5511
5624
|
type KernelSingleUseCard as KernelSingleUseCard,
|
|
5512
5625
|
type KernelWalletState as KernelWalletState,
|
|
5513
5626
|
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
5627
|
+
type LinkBalanceSetupVaultItemOperationRequest as LinkBalanceSetupVaultItemOperationRequest,
|
|
5628
|
+
type LinkBalanceSetupVaultItemOperationResult as LinkBalanceSetupVaultItemOperationResult,
|
|
5514
5629
|
type LinkShippingAddress as LinkShippingAddress,
|
|
5515
5630
|
type LinkUserInfo as LinkUserInfo,
|
|
5516
5631
|
type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField,
|
|
@@ -5551,6 +5666,8 @@ export declare namespace Items {
|
|
|
5551
5666
|
type VaultItemEvent as VaultItemEvent,
|
|
5552
5667
|
type VaultItemOperationResponse as VaultItemOperationResponse,
|
|
5553
5668
|
type VaultPaymentMethod as VaultPaymentMethod,
|
|
5669
|
+
type VaultPaymentMethodAmount as VaultPaymentMethodAmount,
|
|
5670
|
+
type VaultPaymentMethodBalance as VaultPaymentMethodBalance,
|
|
5554
5671
|
type VaultWebmcpBinding as VaultWebmcpBinding,
|
|
5555
5672
|
type VgsCardInput as VgsCardInput,
|
|
5556
5673
|
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,
|
|
@@ -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.154.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.154.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.154.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.154.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|