Data Types
RecordDataFailure
Defines an interface that represents a failed "record data" result.
Members
errorCode ("not_logged_in" | "not_supported" | "data_too_large" | "record_not_found" | "invalid_record_key" | "unacceptable_request" | "server_error" | "not_authorized" | "subscription_limit_reached" | "action_not_supported" | "invalid_update_policy" | "invalid_delete_policy")
The error code for the failure.
errorMessage string
The error message for the failure.
errorReason? ("data_too_large" | "data_not_allowed" | "too_many_items")
The reason for the error.
reason? DenialReason
The reason why the request was denied authorization.
success false
RecordDataResult
The possible results of a record data request.
A RecordDataResult can be one of the following values:
GetDataFailure
Defines an interface that repeesents a failed "get data" result.
Members
errorCode ("not_logged_in" | "not_supported" | "data_not_found" | "record_not_found" | "invalid_record_key" | "unacceptable_request" | "server_error" | "not_authorized" | "subscription_limit_reached" | "action_not_supported")
The error code for the failure.
errorMessage string
The error message for the failure.
success false
GetDataResult
The possible results of a get data request.
A GetDataResult can be one of the following values:
GetDataSuccess
Defines an interface that represents a successful "get data" result.
Members
data any
The data that was stored.
deletePolicy UserPolicy
The delete policy that the data uses.
markers string[]
The list of markers that have been applied to the data.
publisherId string
The ID of the user that owns the record.