|
| 1 | +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | + |
| 3 | +from __future__ import annotations |
| 4 | + |
| 5 | +from typing_extensions import Literal, Required, TypedDict |
| 6 | + |
| 7 | +__all__ = ["ArmPasskeyVaultItemOperationRequestParam"] |
| 8 | + |
| 9 | + |
| 10 | +class ArmPasskeyVaultItemOperationRequestParam(TypedDict, total=False): |
| 11 | + """ |
| 12 | + Let a browser attached to the item's vault sign in with a stored passkey. |
| 13 | + Only invoke when the item advertises `arm_passkey`. Returns immediately; |
| 14 | + there is no time limit. While armed, when a page in that browser whose |
| 15 | + origin matches the passkey's relying party asks for a passkey |
| 16 | + (`navigator.credentials.get`, including autofill requests made at page |
| 17 | + load), Kernel answers with this passkey. The private key never enters the |
| 18 | + browser: Kernel signs on its servers, using the origin Chrome reports for |
| 19 | + the requesting frame. Arming a passkey for a relying party replaces any |
| 20 | + passkey armed earlier in the browser for the same relying party. The arm |
| 21 | + lasts until `disarm_passkey`, the browser ends, the vault is detached, or |
| 22 | + the item or field is deleted. Drive the sign-in with your own browser |
| 23 | + tools and inspect the page to confirm it. A page opened in a new tab |
| 24 | + or window can run its first scripts before Kernel's handler attaches; |
| 25 | + if such a page asks for a passkey as soon as it loads, reload it. While |
| 26 | + armed, any script running on the relying party's pages can obtain a |
| 27 | + sign-in without user interaction, as with a password manager that |
| 28 | + fills automatically; disarm when the task is done. Passkeys report a |
| 29 | + signature counter of 0 and backup flags, as synced passkeys do. |
| 30 | + """ |
| 31 | + |
| 32 | + browser_id: Required[str] |
| 33 | + """Browser session ID, not a reusable browser name.""" |
| 34 | + |
| 35 | + type: Required[Literal["arm_passkey"]] |
| 36 | + |
| 37 | + field: str |
| 38 | + """Passkey field to arm. |
| 39 | +
|
| 40 | + Required when more than one passkey field holds a passkey. |
| 41 | + """ |
0 commit comments