videosphere
    Preparing search index...

    Interface Draft

    Defines the shape of draft.

    interface Draft {
        id: string;
        userId: string;
        targets: readonly ConnectedAccountPlatform[];
        title: string;
        description: string;
        tags: string[];
        visibility: PlatformUploadVisibility;
        platforms: DraftPlatforms;
        backupNaming?: BackupFileNameSettings;
        thumbnailR2Key?: string;
        thumbnailContentType?: string;
        thumbnailPreviewUrl?: string;
        usedInUploadAt?: string;
        $createdAt: string;
        $updatedAt: string;
    }
    Index

    Properties

    id: string
    userId: string
    targets: readonly ConnectedAccountPlatform[]

    Platforms this draft is configured to publish to (UI toggles).

    title: string

    Required for uploads; stored in document.

    description: string
    tags: string[]

    Shared tag list for every target platform; stored in document.

    Applied when distributing (mapped to each API's privacy model).

    platforms: DraftPlatforms

    Per-platform-only options (e.g. YouTube categoryId, Vimeo category URI).

    backupNaming?: BackupFileNameSettings

    Backup filename settings applied to Google Drive, SFTP, and SMB uploads.

    thumbnailR2Key?: string

    R2 object key for a custom thumbnail image (JPG or PNG), or undefined if none. Best-effort cleared after distribution completes (retained if the cleanup DB write fails).

    thumbnailContentType?: string

    MIME type of the thumbnail object (for platform upload and preview).

    thumbnailPreviewUrl?: string

    Ephemeral presigned GET URL for the draft form preview. Returned by endpoints that include draft payloads (e.g. GET/PATCH /api/drafts/[id], and thumbnail complete) when a valid thumbnail exists. Not stored in persistent storage.

    usedInUploadAt?: string

    When this draft was first used to create an upload job. Stored on the draft (denormalized) to avoid scanning upload job history.

    $createdAt: string

    Persistence system attribute (ISO string).

    $updatedAt: string

    Persistence system attribute (ISO string).