MessageCopyEntry
The MessageCopyEntry type of the TypeScript SDK, part of MessageCopyResult.
type MessageCopyEntry = {
id: string
newId?: string
sourceRemoved?: boolean
status: (typeof MESSAGE_COPY_ENTRY_STATUSES)[number]
threadId?: string | null
}Fields
| Field | Type | Description |
|---|---|---|
id | string | The SOURCE message ULID |
newId | string | Optional. The copy's message ULID in the destination (copied, duplicate) |
sourceRemoved | boolean | Optional. On a move, whether the source message was then deleted. False means the move completed as a copy: the copy exists and the original is still where it was. |
status | (typeof MESSAGE_COPY_ENTRY_STATUSES)[number] | copied: stored in the destination. duplicate: an earlier attempt under the same gestureId already stored it — treat as copied, newId names that copy. not_found: no such message in the source, or it is outside your grant. over_quota / account_over_quota / store_metadata_full / unknown_label / mailbox_gone are refusals by the DESTINATION that the next message would meet too: the rest of the page carries the same status and nextAfter is null. receiving_paused / receiving_disabled are the same kind: the destination's receive hold, which refuses a copy into a mailbox you reach through a share grant (paused may clear; disabled will not until its owner clears it). Its own user and its account copy into it as ever. failed is retryable under the same gestureId. |
threadId | string | null | Optional. The conversation the copy joined in the destination (copied, duplicate) |
Sets of values
MESSAGE_COPY_ENTRY_STATUSES
const MESSAGE_COPY_ENTRY_STATUSES = [
'copied',
'duplicate',
'not_found',
'too_large',
'blob_missing',
'over_quota',
'account_over_quota',
'store_metadata_full',
'unknown_label',
'mailbox_gone',
'receiving_paused',
'receiving_disabled',
'failed',
] as constIts 13 values; the package exports it: import { MESSAGE_COPY_ENTRY_STATUSES } from '@openemail/sdk'.