@@ -440,6 +440,53 @@ def perform_operation(
440440 """
441441 ...
442442
443+ @overload
444+ def perform_operation (
445+ self ,
446+ key : str ,
447+ * ,
448+ id_or_name : str ,
449+ type : Literal ["restart_verification" ],
450+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
451+ # The extra values given here take precedence over values defined on the client or passed to this method.
452+ extra_headers : Headers | None = None ,
453+ extra_query : Query | None = None ,
454+ extra_body : Body | None = None ,
455+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
456+ ) -> VaultItemOperationResponse :
457+ """
458+ Retrieve the item first and invoke only an operation listed in
459+ `available_operations`, following its natural-language description. Availability
460+ is rechecked at execution time; unavailable operations return 409. Authorization
461+ and preparation may call an external provider and return updated state. Link
462+ cards advertise authorize without checkout context. Eligible unused AgentCard
463+ cards advertise prepare_checkout, which requires checkout context and obtains
464+ device approval before native Square Pay. Keep the returned approval page open,
465+ poll until ready_to_submit, then submit before preparation.expires_at. Unused
466+ preparations expire automatically and cannot be reused. If spend-request
467+ creation is rejected with a non-retryable provider error, the card item is
468+ deleted and the provider's error code and message are returned. Rate limits
469+ return HTTP 429 and retain the card item; stop, back off, and retry the same
470+ authorize operation.
471+
472+ Fill returns a value-free execution result. Validation failures before writing
473+ return 400 (invalid request or targets), 403 (access or destination denied), 404
474+ (resource not found), or 409 (item or browser not ready). Once writing starts,
475+ known partial failures and indeterminate field outcomes return 200 with status
476+ `failed` or `unknown`. Fill never submits the page, so it is safe to retry after
477+ a failure, an `unknown` outcome, or a transport error.
478+
479+ Args:
480+ extra_headers: Send extra headers
481+
482+ extra_query: Add additional query parameters to the request
483+
484+ extra_body: Add additional JSON properties to the request
485+
486+ timeout: Override the client-level default timeout for this request, in seconds
487+ """
488+ ...
489+
443490 @overload
444491 def perform_operation (
445492 self ,
@@ -1001,6 +1048,7 @@ def perform_operation(
10011048 * ,
10021049 id_or_name : str ,
10031050 type : Literal ["authorize" ]
1051+ | Literal ["restart_verification" ]
10041052 | Literal ["confirm_transaction" ]
10051053 | Literal ["collect" ]
10061054 | Literal ["prepare_checkout" ]
@@ -1689,6 +1737,53 @@ async def perform_operation(
16891737 """
16901738 ...
16911739
1740+ @overload
1741+ async def perform_operation (
1742+ self ,
1743+ key : str ,
1744+ * ,
1745+ id_or_name : str ,
1746+ type : Literal ["restart_verification" ],
1747+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1748+ # The extra values given here take precedence over values defined on the client or passed to this method.
1749+ extra_headers : Headers | None = None ,
1750+ extra_query : Query | None = None ,
1751+ extra_body : Body | None = None ,
1752+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
1753+ ) -> VaultItemOperationResponse :
1754+ """
1755+ Retrieve the item first and invoke only an operation listed in
1756+ `available_operations`, following its natural-language description. Availability
1757+ is rechecked at execution time; unavailable operations return 409. Authorization
1758+ and preparation may call an external provider and return updated state. Link
1759+ cards advertise authorize without checkout context. Eligible unused AgentCard
1760+ cards advertise prepare_checkout, which requires checkout context and obtains
1761+ device approval before native Square Pay. Keep the returned approval page open,
1762+ poll until ready_to_submit, then submit before preparation.expires_at. Unused
1763+ preparations expire automatically and cannot be reused. If spend-request
1764+ creation is rejected with a non-retryable provider error, the card item is
1765+ deleted and the provider's error code and message are returned. Rate limits
1766+ return HTTP 429 and retain the card item; stop, back off, and retry the same
1767+ authorize operation.
1768+
1769+ Fill returns a value-free execution result. Validation failures before writing
1770+ return 400 (invalid request or targets), 403 (access or destination denied), 404
1771+ (resource not found), or 409 (item or browser not ready). Once writing starts,
1772+ known partial failures and indeterminate field outcomes return 200 with status
1773+ `failed` or `unknown`. Fill never submits the page, so it is safe to retry after
1774+ a failure, an `unknown` outcome, or a transport error.
1775+
1776+ Args:
1777+ extra_headers: Send extra headers
1778+
1779+ extra_query: Add additional query parameters to the request
1780+
1781+ extra_body: Add additional JSON properties to the request
1782+
1783+ timeout: Override the client-level default timeout for this request, in seconds
1784+ """
1785+ ...
1786+
16921787 @overload
16931788 async def perform_operation (
16941789 self ,
@@ -2250,6 +2345,7 @@ async def perform_operation(
22502345 * ,
22512346 id_or_name : str ,
22522347 type : Literal ["authorize" ]
2348+ | Literal ["restart_verification" ]
22532349 | Literal ["confirm_transaction" ]
22542350 | Literal ["collect" ]
22552351 | Literal ["prepare_checkout" ]
0 commit comments