File Types
RecordFileRequest
Defines an interface that is used for requests to record a file.
Members
fileByteLength number
The number of bytes in the file.
fileDescription string
The description of the file.
fileMimeType string
The MIME type of the file.
fileSha256Hex string
The hex encoded SHA256 hash of the file that will be uploaded.
headers object
The headers that were included in the result.
instances? string[]
The instances that are currently loaded.
markers? string[]
The markers that should be applied to the file.
RecordFileResult
Defines the possible results of a "record file" request.
A RecordFileResult can be one of the following values:
RecordFileSuccess
RecordFileFailure
Defines an interface that represents a failed "record file" request.
Members
errorCode ("server_error" | "not_supported" | "invalid_record_key" | "unacceptable_request" | "record_not_found" | "not_authorized" | "action_not_supported" | "not_logged_in" | "subscription_limit_reached" | "file_already_exists" | "invalid_file_data")
The error code that describes why the request failed.
errorMessage string
The error message that describes why the request failed.
existingFileUrl? string
The URL that the file is available at if it has already been uploaded.
success false
EraseFileResult
Defines the possible results of a request to erase a file record.
A EraseFileResult can be one of the following values:
EraseFileFailure
Defines an interface that represents a failed request to erase a file record.
Members
errorCode ("server_error" | "invalid_record_key" | "unacceptable_request" | "record_not_found" | "not_authorized" | "action_not_supported" | "not_logged_in" | "subscription_limit_reached" | "file_not_found")
The error code that indicates why the request failed.
errorMessage string
The error message that indicates why the request failed.
success false