SendSafely.js is the primary client side JavaScript API used to communicate with the SendSafely server platform.
Return Type:
constructor
The only constructor for the library.
|
||||||||||||
Parameters:
|
||||||||||||
Raised Events: N/A
|
Return Type:
List
A helper function to parse out links from a String of text. Returns a list of links found in the provided text.
|
||||||
Parameters:
|
||||||
Raised Events: N/A
|
Return Type:
promise
Verifies the API Key and API Secret with the server. Returns the email address of the user that owns the API key.
|
||||||
Parameters:
|
||||||
Raised Events:
|
Return Type:
void
Returns profile information related to the authenticated API user.
|
|||||||||
Parameters:
|
|||||||||
Raised Events:
|
Return Type:
void
Deletes a file from a package.
|
||||||||||||
Parameters:
|
||||||||||||
Raised Events:
|
Return Type:
void
Removes a recipient from a given package.
|
||||||||||||
Parameters:
|
||||||||||||
Raised Events:
|
Return Type:
void
Retrieves organization-level information about the SendSafely enterprise account that the currently authenticated user belongs to.
|
||||||
Parameters:
|
||||||
Raised Events:
|
Return Type:
void
Adds a recipient to a given package.
|
|||||||||||||||
Parameters:
|
|||||||||||||||
Raised Events:
|
Return Type:
void
Adds a list of recipients to a given package.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
void
Adds a phone number to a recipient for SMS verification .
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
String
Finalizes the package so it can be delivered to the recipients. Returns the Secure Link needed for recipients to access the package.
|
|||||||||||||||
Parameters:
|
|||||||||||||||
Raised Events:
|
Return Type:
String
Finalizes a package without any recipients being specified. Returns the Secure Link needed for recipients to access the package.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
void
Fetch the latest metadata for a specific package using a PackageId.
|
|||||||||
Parameters:
|
|||||||||
Raised Events:
|
Return Type:
void
Fetch the latest metadata for a specific package using a Secure Link.
|
|||||||||
Parameters:
|
|||||||||
Raised Events:
|
Return Type:
void
Update the package expiration (days). Setting the life to 0 means the package will not expire.
|
||||||||||||
Parameters:
|
||||||||||||
Raised Events:
|
Return Type:
void
Adds a secure message to the package. If a message already exists it will be overwritten.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
void
Adds a list of files to the package. Files will be encrypted and uploaded to the server and stored in the root directory of the package.
|
|||||||||||||||||||||
Parameters:
|
|||||||||||||||||||||
Raised Events:
|
Return Type:
void
Adds a list of files to the package within a specific directory . Files will be encrypted and uploaded to the server.
|
||||||||||||||||||||||||
Parameters:
|
||||||||||||||||||||||||
Raised Events:
|
Return Type:
void
Downloads and decrypts a keycode from the server for the given a packageId and Trusted Device key pair.
|
|||||||||||||||
Parameters:
|
|||||||||||||||
Raised Events:
|
Return Type:
void
Generates a new Trusted Device key pair. The private key and public key returned. The public key is uploaded and stored on the SendSafely servers. The public key returned also includes an "id" parameter that used to uniquely identify the Trusted Device key.
|
|||||||||
Parameters:
|
|||||||||
Raised Events:
|
Return Type:
void
Revokes a Trusted Device key pair. Only call this function if the private key has been deleted and should never be used anymore (cannot be undone).
|
|||||||||
Parameters:
|
|||||||||
Raised Events:
|
Return Type:
void
Downloads and decrypts an individual file from the root directory of a package.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
void
Downloads and decrypts an individual file from a specific directory of the package.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Return Type:
void
Creates a new directory in the root folder of a Workspace. Only Workspace packages support this function.
|
||||||||||||
Parameters:
|
||||||||||||
Raised Events:
|
Return Type:
void
Creates a new sub-directory in a Workspace. Only Workspace packages support this function.
|
|||||||||||||||
Parameters:
|
|||||||||||||||
Raised Events:
|
Return Type:
void
Moves a directory from its current location to the specified destination directory in a Workspace package.
|
|||||||||||||||
Parameters:
|
|||||||||||||||
Raised Events:
|
Return Type:
boolean
Utility function to check if the package has any ongoing uploads.
|
Parameters: N/A
|
Raised Events: N/A
|
Return Type:
void
Create a new empty package.
|
||||||
Parameters:
|
||||||
Raised Events:
|
Return Type:
void
Create a new empty Workspace package.
|
||||||
Parameters:
|
||||||
Raised Events:
|
Return Type:
void
Decrypt the message from a package.
|
||||||||||||||||||
Parameters:
|
||||||||||||||||||
Raised Events:
|
Name | Type | Description |
---|---|---|
packageId | String | N/A |
packageCode | String | N/A |
serverSecret | String | N/A |
recipients | List[Recipient] | N/A |
files | List[File] | N/A |
approverList | List[approverEmail] | N/A |
needsApproval | bool | N/A |
state | PackageState | N/A |
life | Integer | N/A |
description | String | N/A |
Name | Type | Description |
---|---|---|
PACKAGE_STATE_DELETED_PARTIALLY_COMPLETE | enum | N/A |
PACKAGE_STATE_DELETED_INCOMPLETE | enum | N/A |
PACKAGE_STATE_TEMP | enum | N/A |
PACKAGE_STATE_DELETED_COMPLETE | enum | N/A |
PACKAGE_STATE_IN_PROGRESS | enum | N/A |
PACKAGE_STATE_EXPIRED_INCOMPLETE | enum | N/A |
PACKAGE_STATE_EXPIRED_COMPLETE | enum | N/A |
PACKAGE_STATE_ACTIVE_COMPLETE | enum | N/A |
PACKAGE_STATE_ACTIVE_INCOMPLETE | enum | N/A |
PACKAGE_STATE_ACTIVE_PARTIALLY_COMPLETE | enum | N/A |
PACKAGE_STATE_EXPIRED_PARTIALLY_COMPLETE | enum | N/A |