Parameters to block email addresses
The results of the operation
Cancels a scheduled draft message. If no matching scheduled message is found, the operation completes successfully without error.
Parameters used to cancel a scheduled draft message
Check if an email address is available to be provisioned within a domain.
Parameters used to perform the email addresses check.
Returns the fully qualified email addresses, filtering out already used email addresses.
Create a custom email folder for the email address identified by emailAddressId.
Parameters used to create a custom email folder.
The created custom email folder.
Create a draft email message in RFC 6854 (supersedes RFC 822)(https://tools.ietf.org/html/rfc6854) format.
Parameters used to create a draft email message.
The metadata of the saved draft email message.
Creates the singleton key pair that every email address and email alias is registered with, if the key store doesn't have it.
Requires SudoEmailClientConfig.enforceSingletonPublicKey. Call it once the user is signed in, before
provisioning: provisioning never creates the key, and fails with SingletonKeyPairNotFoundError without it.
The result says whether the key had to be created. If it was, the key store has changed, so back the keys up
again with exportKeys. If the user already has email addresses or aliases, a new key also means this
client's key store doesn't have the one they're registered with (for example another browser, or one whose keys
were removed), so import the user's key backup with importKeys.
Whether the singleton key pair was created, and its identifier.
InvalidConfigError if the client doesn't enforce a singleton key pair.
Delete a custom email folder for the email address identified by emailAddressId. When a custom folder is deleted, any messages in the folder will be moved to TRASH.
Parameters used to delete a custom email folder.
The deleted folder, or undefined if folder was not found.
Delete the draft email messages identified by the list of ids.
Any draft email message ids that do not exist will be marked as success. Any emailAddressId that is not owned or does not exist, will throw an error.
Parameters used to delete a draft email message.
The status of the delete: Success - All draft email messages succeeded to delete. Partial - Only a partial amount of draft email messages succeeded to delete. Includes a list of the identifiers of the draft email messages that failed and succeeded to delete. Failure - All draft email messages failed to delete.
Delete a single email message identified by id.
The identifier of the email message to be deleted.
Result object containing the identifier of the email message that was deleted, or undefined if the email message could not be deleted.
Delete the email messages identified by the list of ids.
Email messages can only be deleted in batches of 100. Anything greater will throw a LimitExceededError.
A list of one or more identifiers of the email messages to be deleted. There is a limit of 100 email message ids per API request. Exceeding this will cause an error to be thrown.
The status of the delete: Success - All email messages succeeded to delete. Partial - Only a partial amount of messages succeeded to delete. Includes a list of the identifiers of the email messages that failed and succeeded to delete. Failure - All email messages failed to delete.
Delete all messages for in an email folder. Deletion will be processed asynchronously since it may take a substantial amount of time. This method does not wait for deletion to complete. To check for completion, listen for subscriptions or check list endpoints.
Parameters used to delete messages from a folder
The id of the folder
Deprovision an email address.
If SudoEmailClientConfig.allowCallerManagedKeys is false, once the email address is deprovisioned its key
pair is removed from the key store, unless another of the user's email addresses or email aliases still uses it.
Nothing is removed if the client allows caller managed keys (the default) or enforces a singleton key pair, or
if the service can't say whether the key pair is still used. Key pairs of email aliases aren't removed, because
the service doesn't report which key pair an alias was provisioned with.
The identifier of the email address to deprovision.
The deprovisioned email address.
KeyPairRemovalFailedError if the email address was deprovisioned, but its key pair couldn't be removed from the key store. The error carries the deprovisioned email address, so callers can treat it as success.
Deprovisions an existing email alias, permanently removing it from the system.
The input parameters for deprovisioning the email alias
A promise that resolves to the deprovisioned email alias
Disables an active email alias, preventing it from forwarding emails.
The input parameters for disabling the email alias
A promise that resolves to the disabled email alias
Enables a previously disabled email alias, allowing it to forward emails again.
The input parameters for enabling the email alias
A promise that resolves to the enabled email alias
Export the cryptographic keys to a key archive.
Key archive data.
Flush all cached message bodies scoped to the given sudo or email address. Call this after deleting a sudo or deprovisioning an email address.
Parameters specifying the scope of the flush.
Get the configuration data for the email service.
The configuration data for the email service.
Get a draft email message that has been previously saved.
Parameters used to retrieve a draft email message.
The draft email message identified by id or undefined if not found.
Get an email address identified by id.
Parameters used to retrieve an email address.
The email address identified by id or undefined if the email address cannot be found.
Get email address blocklist for logged in user
The list of unsealed blocked addresses
Retrieve a specific EmailAlias by it's unique id
The input parameters for retrieving an EmailAlias
A promise that resolves to the retrieved EmailAlias
Get an email message identified by id.
Parameters used to retrieve an email message.
The email message identified by id or undefined if the email message cannot be found.
Get the body and attachment data of an EmailMessage
Parameters used to retrieve the data of the email message.
The data associated with the email message or undefined if not found
Imports cryptographic keys from a key archive produced by exportKeys.
The archive replaces the keys in the key store. It's read and checked first, so an archive that is invalid or that this client can't import leaves the existing keys in place. An archive with no keys imports nothing and leaves the existing keys in place.
The archive's keys must be in this client's key namespace.
If saving the keys fails, the existing keys have already been removed, so restore them from the app's own copy, such as an archive exported before the import.
Key archive data to import the keys from.
InvalidArgumentError if archiveData is empty.
InvalidKeyArchiveError if the archive is invalid. The existing keys are unchanged.
KeyArchiveNotImportableError if the archive contains keys this client can't import, for example keys exported under a different key namespace. The existing keys are unchanged.
Lists the metadata of all draft email messages for the specified email address identifier. Supports pagination with limit and nextToken parameters. Supports pagination with limit and nextToken parameters.
Parameters for listing draft email message metadata including emailAddressId, optional limit (defaults to 10), and optional nextToken for pagination.
A list output containing draft email message metadata and pagination token.
Lists the metadata and content of all draft messages for the specified email address identifier. Supports pagination with limit and nextToken parameters.
Parameters for listing draft email messages including emailAddressId, optional limit (defaults to 10), and optional nextToken for pagination.
A list output containing draft email messages and pagination token.
Get a list of all provisioned email addresses for the signed in user.
Optionalinput: Pagination
Parameters used to retrieve a list of provisioned email addresses.
List operation result.
Get a list of provisioned email addresses owned by the Sudo identified by sudoId.
Parameters used to retrieve a list of provisioned email addresses for a sudoId.
List operation result.
Lists email aliases owned by the current user, with optional filtering and pagination.
Optionalinput: ListEmailAliasesInput
The input parameters for filtering and pagination
A promise that resolves to a list of email aliases and pagination info
Lists email aliases owned by the current user, with optional filtering and pagination.
Optionalinput: ListEmailAliasesForOwnerInput
The input parameters for filtering and pagination
A promise that resolves to a list of email aliases and pagination info
Use listEmailAliases instead
Get a list of email folders associated with the email address identified by emailAddressId.
Parameters used to retrieve a list of email folders for an emailAddressId.
An array of email folders or an empty array if no matching email folders can be found.
Get the list of all email messages for the user.
Parameters used to retrieve a list of all email messages for a user.
List operation result.
Get the list of email messages for the specified email address.
Parameters used to retrieve a list of email messages for an emailAddressId.
List operation result.
Get the list of email messages for the specified email folder.
Parameters used to retrieve a list of email messages for a folderId.
List operation result.
List scheduled draft messages associated with an email address.
Parameters ued to list scheduled draft messages for an email address
Get a list of public information objects associated with the provided email addresses.
Results can only be retrieved in batches of 50. Anything greater will throw a LimitExceededError.
Parameters used to retrieve a list of public information objects for a list of email addresses.
An array of public info objects, or an empty array if email addresses or their public keys cannot be found.
Provision an email address.
Parameters used to provision an email address. Email addresses must meet the following criteria:
.) must not exceed 63 characters.^[a-zA-Z0-9](\.?[-_a-zA-Z0-9])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$.The provisioned email address.
Provisions a new email alias with the specified configuration.
The input parameters for provisioning the email alias
A promise that resolves to the newly created email alias
Removes all keys associated with this client and any cached data maintained by this client.
The keys removed include the singleton key pair, so call createSingletonKeysIfAbsent again before
provisioning if the client enforces one.
Parameters used to schedule send a draft message.
Send an email message using RFC 6854 (supersedes RFC 822)(https://tools.ietf.org/html/rfc6854) data.
Email messages sent to in-network recipients (i.e. email addresses that exist within the Sudo Platform) will be sent end-to-end encrypted.
Parameters used to send an email message.
The identifier of the email message that is being sent.
Send an email message via an email alias using RFC 6854 (supersedes RFC 822)(https://tools.ietf.org/html/rfc6854) data.
Email messages sent to in-network recipients (i.e. email addresses/aliases that exist within the Sudo Platform) will be sent end-to-end encrypted.
Parameters used to send an email message via an email alias.
The identifier of the email message that is being sent.
Update the maximum size of the local message body cache. The new limit is persisted and survives across client sessions. Set to 0 to disable caching; existing cached entries are evicted immediately when the limit is reduced.
New cache size limit in bytes. Must be >= 0.
Sets an optional callback to handle sign-in when operations are attempted while not signed in.
When set, all operations (exception subscriptions and initialization/reset) will check sign-in status before performing their normal behavior. If the client is not signed in, the callback will be invoked to allow the host app to perform sign-in. Once the callback completes, then the client will attempt the original operation that triggered the callback. If the callback throws an error, then the error will be propagated to the caller and the original operation will not be attempted. To clear the callback, call this method with no arguments or undefined.
Optionalcallback: SudoPlatformSignInCallbackSubscribe to email message events.
unique identifier to differentiate subscriptions; note that specifying a duplicate subscription id will replace the previous subscription.
implementation of callback to be invoked when email message event occurs
Unblock email address(es) for the given owner
Parameters to unblock email addresses
The results of the operation
Unsubscribe from email message events.
unique identifier to differentiate subscription
Update the custom email folder identified by emailFolderId
Parameters used to update a custom email folder.
The updated email folder.
Update a draft email message in RFC 6854 (supersedes RFC 822)(https://tools.ietf.org/html/rfc6854) format.
Parameters used to update a draft email message.
The metadata of the updated draft email message.
Update the metadata of an email address.
Parameters used to update the metadata of an email address.
The id of the updated email address.
Updates the metadata or expiration date of an existing email alias.
The input parameters for updating the email alias
A promise that resolves to the updated email alias
Update the email messages identified by the list of ids.
Email messages can only be updated in batches of 100. Anything greater will throw a LimitExceededError.
Parameters used to update a list of email messages.
The status of the update: Success - All email messages succeeded to update. Partial - Only a partial amount of messages succeeded to update. Includes a list of the identifiers of the email messages that failed and succeeded to update. Failure - All email messages failed to update.
Sends an email verification code or verifies an external email address given a verification code.
The input parameters for verifying an external email address
A promise that resolves to a result if a verification code was provided in the request or undefined if a verification code was sent.
Block email address(es) for the given owner