Expand description
Wasm support module for autotype.
WASM bindings for the autotype IPC requests, exposed to the clients through
@bitwarden/sdk-internal.
There is one driver interface per desktop process, each implemented by the user of this crate (for example, within the Bitwarden desktop app):
AutotypeDriverhandles requests in the main process, registered withregisterAutotypeHandlers.AutotypeRenderDriverhandles requests in the render process, registered withregisterAutotypeRenderHandlers.
Structs§
- Autotype
Credentials - The credentials the render process found for an
AutotypeGetCredentialsRequest. - Autotype
GetCredentials 🔒Handler - An [
RpcHandler] that finds the credentials to autotype through aRawJsAutotypeRenderDriver. - Autotype
GetCredentials Request - A request from the main process, sent when the user presses the Autotype shortcut, asking the render process for the credentials to autotype into the focused app.
- Autotype
GetCredentials Response - A response to an
AutotypeGetCredentialsRequest. - Autotype
List 🔒Running Apps Handler - An [
RpcHandler] that lists running applications through aRawJsAutotypeDriver. - Autotype
List Running Apps Request - A request asking the receiving client for the applications that are currently running.
- Autotype
List Running Apps Response - A response to an
AutotypeListRunningAppsRequest. - Autotype
Running App - A running application.
- Autotype
SetEnabled 🔒Handler - An [
RpcHandler] that applies the requested state through aRawJsAutotypeDriver. - Autotype
SetEnabled Request - A request asking the receiving client to enable or disable Autotype.
- Autotype
SetEnabled Response - A response to an
AutotypeSetEnabledRequest. - Autotype
SetKeyboard 🔒Shortcut Handler - An [
RpcHandler] that applies the requested shortcut through aRawJsAutotypeDriver. - Autotype
SetKeyboard Shortcut Request - A request asking the receiving client to change the keyboard shortcut Autotype is triggered by.
- Autotype
SetKeyboard Shortcut Response - A response to an
AutotypeSetKeyboardShortcutRequest. - JsAutotype
Driver 🔒 - Wraps the JavaScript driver in a [
ThreadBoundRunner] so it can be used from theSendfutures an [RpcHandler] is required to return. - JsAutotype
Render 🔒Driver - Wraps the JavaScript render driver in a [
ThreadBoundRunner] so it can be used from theSendfutures an [RpcHandler] is required to return. - RawJs
Autotype Driver - JavaScript implementation of the various Autotype operations.
- RawJs
Autotype Render Driver - JavaScript implementation of the Autotype operations applied in the render process.
Functions§
- autotype_
request_ get_ credentials - Sends an
AutotypeGetCredentialsRequestto the desktop render process, asking for the credentials to autotype into the focused app. The response’scredentialsis empty when no vault item matches. - autotype_
request_ list_ running_ apps - Asks the desktop main process which applications are currently running.
- autotype_
request_ set_ enabled - Sends an
AutotypeSetEnabledRequestto the desktop main process and reports whether the requested change was successful. - autotype_
request_ set_ keyboard_ shortcut - Sends an
AutotypeSetKeyboardShortcutRequestto the desktop main process and reports whether the requested shortcut was applied. - from_
source 🔒 - Determines if a request came from the
expectedsource. - register_
autotype_ handlers - This registers the Autotype handlers so the client responds to Autotype requests through
the
RawJsAutotypeDriver. Call this on the desktop main process’s IPC client. - register_
autotype_ render_ handlers - This registers the Autotype handlers so the client responds to Autotype requests from the
main process through the
RawJsAutotypeRenderDriver. Call this on the desktop render process’s IPC client.