Skip to content

Commit e84e82f

Browse files
feat: Support existing-user AgentCard wallet imports
Stainless-Generated-From: 28fa4107f1a02d192b8fb5390c923ca9a5cc63d9
1 parent 784dff8 commit e84e82f

1 file changed

Lines changed: 60 additions & 12 deletions

File tree

‎src/resources/vaults/items.ts‎

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,8 +2213,16 @@ export namespace VaultItem {
22132213
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
22142214
* the selected credential; there is no per-item test flag. Without user_id,
22152215
* creation returns a hosted enrollment action and Kernel polls until the user
2216-
* connects. user_id may only reference a user already enrolled by a wallet in this
2217-
* organization under the same configuration.
2216+
* connects. With a customer-owned provider_config, user_id imports an existing
2217+
* connection after verifying access with the selected credentials in their sandbox
2218+
* or live mode; no hosted enrollment is needed, even if the connected user has no
2219+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
2220+
* already enrolled by a wallet in this organization under the same configuration.
2221+
* The user and configuration bindings cannot be changed after creation. Import
2222+
* validation is read-only and runs before creation: a failed validation leaves no
2223+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
2224+
* imports of the same key may both validate, but create at most one wallet and
2225+
* connected event.
22182226
*/
22192227
spec: ItemsAPI.WalletVaultItemSpec;
22202228

@@ -2449,8 +2457,16 @@ export namespace VaultItemOperationResponse {
24492457
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
24502458
* the selected credential; there is no per-item test flag. Without user_id,
24512459
* creation returns a hosted enrollment action and Kernel polls until the user
2452-
* connects. user_id may only reference a user already enrolled by a wallet in this
2453-
* organization under the same configuration.
2460+
* connects. With a customer-owned provider_config, user_id imports an existing
2461+
* connection after verifying access with the selected credentials in their sandbox
2462+
* or live mode; no hosted enrollment is needed, even if the connected user has no
2463+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
2464+
* already enrolled by a wallet in this organization under the same configuration.
2465+
* The user and configuration bindings cannot be changed after creation. Import
2466+
* validation is read-only and runs before creation: a failed validation leaves no
2467+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
2468+
* imports of the same key may both validate, but create at most one wallet and
2469+
* connected event.
24542470
*/
24552471
spec: ItemsAPI.WalletVaultItemSpec;
24562472

@@ -2666,8 +2682,16 @@ export interface VaultWebmcpBinding {
26662682
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
26672683
* the selected credential; there is no per-item test flag. Without user_id,
26682684
* creation returns a hosted enrollment action and Kernel polls until the user
2669-
* connects. user_id may only reference a user already enrolled by a wallet in this
2670-
* organization under the same configuration.
2685+
* connects. With a customer-owned provider_config, user_id imports an existing
2686+
* connection after verifying access with the selected credentials in their sandbox
2687+
* or live mode; no hosted enrollment is needed, even if the connected user has no
2688+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
2689+
* already enrolled by a wallet in this organization under the same configuration.
2690+
* The user and configuration bindings cannot be changed after creation. Import
2691+
* validation is read-only and runs before creation: a failed validation leaves no
2692+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
2693+
* imports of the same key may both validate, but create at most one wallet and
2694+
* connected event.
26712695
*/
26722696
export type WalletVaultItemSpec =
26732697
| WalletVaultItemSpec.LinkWalletVaultItemSpec
@@ -2724,8 +2748,16 @@ export namespace WalletVaultItemSpec {
27242748
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
27252749
* the selected credential; there is no per-item test flag. Without user_id,
27262750
* creation returns a hosted enrollment action and Kernel polls until the user
2727-
* connects. user_id may only reference a user already enrolled by a wallet in this
2728-
* organization under the same configuration.
2751+
* connects. With a customer-owned provider_config, user_id imports an existing
2752+
* connection after verifying access with the selected credentials in their sandbox
2753+
* or live mode; no hosted enrollment is needed, even if the connected user has no
2754+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
2755+
* already enrolled by a wallet in this organization under the same configuration.
2756+
* The user and configuration bindings cannot be changed after creation. Import
2757+
* validation is read-only and runs before creation: a failed validation leaves no
2758+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
2759+
* imports of the same key may both validate, but create at most one wallet and
2760+
* connected event.
27292761
*/
27302762
export interface AgentCardWalletVaultItemSpec {
27312763
provider: 'agentcard';
@@ -3315,8 +3347,16 @@ export declare namespace ItemUpsertParams {
33153347
* credentials, or select a customer-owned configuration. Mode (sandbox vs live) is
33163348
* determined by the selected credential; there is no per-item test flag. Without
33173349
* user_id, creation returns a hosted enrollment action and Kernel polls until the
3318-
* user connects. user_id may only reference a user already enrolled by a wallet in
3319-
* this organization under the same configuration.
3350+
* user connects. With a customer-owned provider_config, user_id imports an
3351+
* existing connection after verifying access with the selected credentials in
3352+
* their sandbox or live mode; no hosted enrollment is needed, even if the
3353+
* connected user has no stored cards. With Kernel-managed credentials, user_id may
3354+
* only reference a user already enrolled by a wallet in this organization under
3355+
* the same configuration. The user and configuration bindings cannot be changed
3356+
* after creation. Import validation is read-only and runs before creation: a
3357+
* failed validation leaves no wallet or reserved key, so the user_id can be
3358+
* corrected and retried. Concurrent imports of the same key may both validate, but
3359+
* create at most one wallet and connected event.
33203360
*/
33213361
spec:
33223362
| WalletVaultItemRequest.LinkWalletVaultItemRequestSpec
@@ -3445,8 +3485,16 @@ export declare namespace ItemUpsertParams {
34453485
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
34463486
* the selected credential; there is no per-item test flag. Without user_id,
34473487
* creation returns a hosted enrollment action and Kernel polls until the user
3448-
* connects. user_id may only reference a user already enrolled by a wallet in this
3449-
* organization under the same configuration.
3488+
* connects. With a customer-owned provider_config, user_id imports an existing
3489+
* connection after verifying access with the selected credentials in their sandbox
3490+
* or live mode; no hosted enrollment is needed, even if the connected user has no
3491+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
3492+
* already enrolled by a wallet in this organization under the same configuration.
3493+
* The user and configuration bindings cannot be changed after creation. Import
3494+
* validation is read-only and runs before creation: a failed validation leaves no
3495+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
3496+
* imports of the same key may both validate, but create at most one wallet and
3497+
* connected event.
34503498
*/
34513499
export interface AgentCardWalletVaultItemSpec {
34523500
provider: 'agentcard';

0 commit comments

Comments
 (0)