as const object so that both the runtime values and the
union type are available, with full autocomplete.
const ErrorCode: { addressNotFound: "addressNotFound"; attachmentNotFound: "attachmentNotFound"; attachmentNotReady: "attachmentNotReady"; burstRateExceeded: "burstRateExceeded"; chatNotFound: "chatNotFound"; contentDuplicateExceeded: "contentDuplicateExceeded"; dailyLimitExceeded: "dailyLimitExceeded"; databaseError: "databaseError"; duplicateMessage: "duplicateMessage"; groupIconNotFound: "groupIconNotFound"; internalError: "internalError"; invalidArgument: "invalidArgument"; messageNotFound: "messageNotFound"; networkError: "networkError"; newContactThrottled: "newContactThrottled"; operationNotSupported: "operationNotSupported"; pollNotFound: "pollNotFound"; preconditionFailed: "preconditionFailed"; privateApiUnavailable: "privateApiUnavailable"; recipientCoolingDown: "recipientCoolingDown"; recipientLimitExceeded: "recipientLimitExceeded"; recipientLocked: "recipientLocked"; sendReceiveRatioExceeded: "sendReceiveRatioExceeded"; serviceUnavailable: "serviceUnavailable"; sharedFriendLocationNotFound: "sharedFriendLocationNotFound"; timeout: "timeout"; tokenBlocked: "tokenBlocked"; tokenExpired: "tokenExpired"; unauthenticated: "unauthenticated"; unauthorized: "unauthorized"; uploadRateExceeded: "uploadRateExceeded" }