@@ -1280,8 +1280,8 @@ def perform_operation(
12801280 page_url: Exact current top-level page URL. Must match exactly one open page in the
12811281 browser unless target_id is supplied.
12821282
1283- entry_id: ID of an approved request entry. Required when several approved entries have the
1284- page's origin.
1283+ entry_id: ID of an approved request entry. Required when several entries are approved and
1284+ the page's origin does not match exactly one of them .
12851285
12861286 target_id: CDP target ID of the page to fill, such as tab.target_id from
12871287 playwright.execute. Use it when several open pages have page_url. The page's
@@ -1424,6 +1424,67 @@ def perform_operation(
14241424 """
14251425 ...
14261426
1427+ @overload
1428+ def perform_operation (
1429+ self ,
1430+ key : str ,
1431+ * ,
1432+ id_or_name : str ,
1433+ access_token : str ,
1434+ type : Literal ["update_access_token" ],
1435+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1436+ # The extra values given here take precedence over values defined on the client or passed to this method.
1437+ extra_headers : Headers | None = None ,
1438+ extra_query : Query | None = None ,
1439+ extra_body : Body | None = None ,
1440+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
1441+ idempotency_key : str | None = None ,
1442+ ) -> VaultItemOperationResponse :
1443+ """
1444+ Retrieve the item first and invoke only an operation listed in
1445+ `available_operations`, following its natural-language description. Availability
1446+ is rechecked at execution time; unavailable operations return 409. Authorization
1447+ and preparation may call an external provider and return updated state. Link
1448+ cards advertise authorize; pass browser_id and page_url from the final checkout
1449+ page so Kernel can inspect the checkout. Eligible unused AgentCard cards
1450+ advertise prepare_checkout, which requires checkout context and obtains device
1451+ approval before native Square Pay. Keep the returned approval page open, poll
1452+ until ready_to_submit, then submit before preparation.expires_at. Unused
1453+ preparations expire automatically and cannot be reused. If spend-request
1454+ creation is rejected with a non-retryable provider error, the card item is
1455+ deleted and the provider's error code and message are returned. Rate limits
1456+ return HTTP 429 and retain the card item; stop, back off, and retry the same
1457+ authorize operation.
1458+
1459+ Ready Kernel cards advertise fill. Fill delivers card details for a few minutes;
1460+ submit checkout promptly after filling. A repeated fill is safe.
1461+
1462+ Fill returns a value-free execution result. Validation failures before writing
1463+ return 400 (invalid request or targets), 403 (access or destination denied), 404
1464+ (resource not found), or 409 (item or browser not ready). Once writing starts,
1465+ known partial failures and indeterminate field outcomes return 200 with status
1466+ `failed` or `unknown`. Fill never submits the page, so it is safe to retry after
1467+ a failure, an `unknown` outcome, or a transport error.
1468+
1469+ Connected Kernel wallets may advertise add_payment_method, which returns a
1470+ single-use hosted card_enrollment link for a card, and remove_payment_method,
1471+ which removes one card without affecting the others. Both operations require
1472+ vaults:write in addition to vaults:use on the vault for scoped API keys, and
1473+ return 403 without both permissions.
1474+
1475+ Args:
1476+ extra_headers: Send extra headers
1477+
1478+ extra_query: Add additional query parameters to the request
1479+
1480+ extra_body: Add additional JSON properties to the request
1481+
1482+ timeout: Override the client-level default timeout for this request, in seconds
1483+
1484+ idempotency_key: Specify a custom idempotency key for this request
1485+ """
1486+ ...
1487+
14271488 @overload
14281489 def perform_operation (
14291490 self ,
@@ -1656,6 +1717,7 @@ def perform_operation(
16561717 | Literal ["1pw_fill" ]
16571718 | Literal ["1pw_recover" ]
16581719 | Literal ["1pw_update_access_token" ]
1720+ | Literal ["update_access_token" ]
16591721 | Literal ["webmcp_invoke" ]
16601722 | Literal ["add_payment_method" ]
16611723 | Literal ["remove_payment_method" ],
@@ -3285,8 +3347,8 @@ async def perform_operation(
32853347 page_url: Exact current top-level page URL. Must match exactly one open page in the
32863348 browser unless target_id is supplied.
32873349
3288- entry_id: ID of an approved request entry. Required when several approved entries have the
3289- page's origin.
3350+ entry_id: ID of an approved request entry. Required when several entries are approved and
3351+ the page's origin does not match exactly one of them .
32903352
32913353 target_id: CDP target ID of the page to fill, such as tab.target_id from
32923354 playwright.execute. Use it when several open pages have page_url. The page's
@@ -3429,6 +3491,67 @@ async def perform_operation(
34293491 """
34303492 ...
34313493
3494+ @overload
3495+ async def perform_operation (
3496+ self ,
3497+ key : str ,
3498+ * ,
3499+ id_or_name : str ,
3500+ access_token : str ,
3501+ type : Literal ["update_access_token" ],
3502+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
3503+ # The extra values given here take precedence over values defined on the client or passed to this method.
3504+ extra_headers : Headers | None = None ,
3505+ extra_query : Query | None = None ,
3506+ extra_body : Body | None = None ,
3507+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
3508+ idempotency_key : str | None = None ,
3509+ ) -> VaultItemOperationResponse :
3510+ """
3511+ Retrieve the item first and invoke only an operation listed in
3512+ `available_operations`, following its natural-language description. Availability
3513+ is rechecked at execution time; unavailable operations return 409. Authorization
3514+ and preparation may call an external provider and return updated state. Link
3515+ cards advertise authorize; pass browser_id and page_url from the final checkout
3516+ page so Kernel can inspect the checkout. Eligible unused AgentCard cards
3517+ advertise prepare_checkout, which requires checkout context and obtains device
3518+ approval before native Square Pay. Keep the returned approval page open, poll
3519+ until ready_to_submit, then submit before preparation.expires_at. Unused
3520+ preparations expire automatically and cannot be reused. If spend-request
3521+ creation is rejected with a non-retryable provider error, the card item is
3522+ deleted and the provider's error code and message are returned. Rate limits
3523+ return HTTP 429 and retain the card item; stop, back off, and retry the same
3524+ authorize operation.
3525+
3526+ Ready Kernel cards advertise fill. Fill delivers card details for a few minutes;
3527+ submit checkout promptly after filling. A repeated fill is safe.
3528+
3529+ Fill returns a value-free execution result. Validation failures before writing
3530+ return 400 (invalid request or targets), 403 (access or destination denied), 404
3531+ (resource not found), or 409 (item or browser not ready). Once writing starts,
3532+ known partial failures and indeterminate field outcomes return 200 with status
3533+ `failed` or `unknown`. Fill never submits the page, so it is safe to retry after
3534+ a failure, an `unknown` outcome, or a transport error.
3535+
3536+ Connected Kernel wallets may advertise add_payment_method, which returns a
3537+ single-use hosted card_enrollment link for a card, and remove_payment_method,
3538+ which removes one card without affecting the others. Both operations require
3539+ vaults:write in addition to vaults:use on the vault for scoped API keys, and
3540+ return 403 without both permissions.
3541+
3542+ Args:
3543+ extra_headers: Send extra headers
3544+
3545+ extra_query: Add additional query parameters to the request
3546+
3547+ extra_body: Add additional JSON properties to the request
3548+
3549+ timeout: Override the client-level default timeout for this request, in seconds
3550+
3551+ idempotency_key: Specify a custom idempotency key for this request
3552+ """
3553+ ...
3554+
34323555 @overload
34333556 async def perform_operation (
34343557 self ,
@@ -3661,6 +3784,7 @@ async def perform_operation(
36613784 | Literal ["1pw_fill" ]
36623785 | Literal ["1pw_recover" ]
36633786 | Literal ["1pw_update_access_token" ]
3787+ | Literal ["update_access_token" ]
36643788 | Literal ["webmcp_invoke" ]
36653789 | Literal ["add_payment_method" ]
36663790 | Literal ["remove_payment_method" ],
0 commit comments