Expand description
§bitwarden-wasm-internal
Note: This is only for internal use. Bitwarden will not provide any support for this crate.
Bitwarden WASM internal exposes WebAssembly bindings for the Bitwarden SDK. This crate should contain no logic but rather only handle WASM unique conversions and bindings. Business logic MUST be placed in the relevant feature crates.
§Getting Started
§Requirements
wasm32-unknown-unknownrust target.binaryeninstalled forwasm-optandwasm2js.- npm packages must be installed in the
npmfolder. Runnpm ciinside:- OSS:
crates/bitwarden-wasm-internal/npm - Commercial:
crates/bitwarden-wasm-internal/bitwarden_license/npm
- OSS:
rustup target add wasm32-unknown-unknown
brew install binaryen§Building
# dev
./build.sh
# dev with commercial license
./build.sh -b
# release
./build.sh -r
# release with commercial license
./build.sh -r -bModules§
- client 🔒
- custom_
types 🔒 - flight_
recorder 🔒 - WASM bindings for the Flight Recorder.
- init 🔒
- platform 🔒
- pure_
crypto 🔒 - ssh 🔒
Structs§
- Channel
Error - Deserialize
Error - Flight
Recorder Client - WASM client for reading Flight Recorder logs.
- Invite
Link Admin Client - Client for organization invite link administrative (organization-key) operations: creating, refreshing, updating, deleting, and inspecting invite links, and recovering the invite secret.
- Invite
Link Client - Client for organization invite link operations.
- Invite
Link User Client - Client for organization invite link invitee (user) operations: checking link status, validating email eligibility, and accepting or self-confirming an invite.
- JsCommunication
Backend - JavaScript implementation of the
CommunicationBackendtrait for IPC communication. - JsCommunication
Backend Sender - JavaScript interface for handling outgoing messages from the IPC framework.
- JsIpc
Client - JavaScript wrapper around the IPC client. For more information, see the
[
IpcClient] trait documentation. - JsIpc
Client Subscription - JavaScript wrapper around the IPC client subscription. For more information, see the IpcClientSubscription documentation.
- JsServer
Communication Config Client - JavaScript wrapper for ServerCommunicationConfigClient
- JsServer
Communication Config Platform Api - Thread-safe JavaScript implementation of ServerCommunicationConfigPlatformApi
- JsServer
Communication Config Repository - Thread-safe JavaScript implementation of ServerCommunicationConfigRepository
- JsSession
Repository - Thread safe JavaScript implementation of the
SessionRepositorytrait for IPC sessions. - Managed
Settings Client - Handle to the host system’s Unified Endpoint Management profile.
- Organization
Invite Link - An organization invite link as persisted by the server.
- Organization
Invite Link SsoView - SSO details for an organization referenced by an invite link status.
- Organization
Invite Link Status View - The status of an organization invite link, used to verify basic availability before an invitee attempts to accept.
- Organization
Invite Link View - An organization invite link with reconstructed URL for display by the client.
- Organization
User Bulk Response - The outcome of a bulk member operation for one organization member.
- Organization
Users Management Client - Client for administering the members of an organization.
- Password
Manager Client - The main entry point for the Bitwarden SDK in WebAssembly environments
- RawJs
Server Communication Config Platform Api - JavaScript interface for the ServerCommunicationConfigPlatformApi
- RawJs
Server Communication Config Repository - JavaScript interface for the ServerCommunicationConfigRepository
- RawJs
Session Repository - JavaScript interface for handling outgoing messages from the IPC framework.
- RawJs
Shared Unlock Driver - JavaScript implementation of shared unlock operations used by shared unlock protocol.
- Shared
Unlock Peer - Shared-unlock peer for WASM clients.
Enums§
- Invite
Link Error - Errors returned from invite link client operations.
- Organization
Users Management Error - Errors returned from
OrganizationUsersManagementClientoperations. - Wasm
Communication Error - Error type for the WASM communication backend’s send and receive operations.
Traits§
- Invite
Link Client Ext - Extension trait that exposes
InviteLinkClienton [Client]. - Organization
Users Management Client Ext - Extension trait exposing
OrganizationUsersManagementClienton [Client].
Functions§
- init_
sdk - Initialize the SDK. Must be called before using any other API. Only the first invocation has effect; subsequent calls are ignored.
- ipc_
register_ discover_ handler - Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
- ipc_
request_ discover - Sends a DiscoverRequest to the specified destination and returns the response.