Record Key Types
CreatePublicRecordKeyResult
Defines an interface that represents the result of a "create public record key" operation.
A CreatePublicRecordKeyResult can be one of the following values:
CreatePublicRecordKeyFailure
Defines an interface that represents a failed "create public record key" result.
Members
errorCode ("not_logged_in" | "not_supported" | "invalid_key" | "session_expired" | "unacceptable_session_key" | "unacceptable_request" | "server_error" | "unauthorized_to_create_record_key" | "user_is_banned" | "not_authorized" | "subscription_limit_reached" | "record_already_exists" | "invalid_policy")
The type of error that occurred.
errorMessage string
The error message.
errorReason? ("not_logged_in" | "not_supported" | "server_error" | "not_authorized" | "invalid_policy" | "user_denied" | "record_owned_by_different_user")
The unique reason as to why the error occurred.
success false
Whether the operation was successful.