videosphere
    Preparing search index...

    Interface ConnectedAccount

    Full connected account including OAuth tokens. Use only server-side when calling platform APIs (upload, token refresh). Do not expose in API responses or client.

    interface ConnectedAccount {
        id: string;
        userId: string;
        platform: ConnectedAccountPlatform;
        tokenExpiry: string;
        hasRefreshToken: boolean;
        platformUserId: string;
        platformName: string;
        sftpHost?: string;
        sftpPort?: number;
        sftpRemotePath?: string;
        sftpAuthMethod?: SftpAuthMethod;
        sftpHostKeyFingerprint?: string;
        smbHost?: string;
        smbShare?: string;
        smbDomain?: string;
        smbRemotePath?: string;
        googleDriveBackupFolderPath?: string;
        facebookTargetType?: "page" | "profile";
        facebookPageId?: string;
        hasYoutubeMainStreamKey: boolean;
        hasYoutubeTempStreamKey: boolean;
        $createdAt: string;
        $updatedAt: string;
        accessToken: string;
        refreshToken: string;
        youtubeMainStreamKey?: string;
        youtubeTempStreamKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    id: string
    userId: string
    tokenExpiry: string
    hasRefreshToken: boolean

    True when a non-empty refresh token is stored (encrypted at rest).

    platformUserId: string
    platformName: string
    sftpHost?: string

    SFTP server hostname or IP (SFTP accounts only).

    sftpPort?: number

    SFTP server port (SFTP accounts only; default 22).

    sftpRemotePath?: string

    Absolute remote directory for backups (SFTP accounts only).

    sftpAuthMethod?: SftpAuthMethod

    Whether the stored credential is an SSH key or password (SFTP accounts only).

    sftpHostKeyFingerprint?: string

    SHA-256 host key fingerprint pinned after the first successful SFTP connect (SFTP accounts only).

    smbHost?: string

    SMB server hostname or IP (SMB accounts only).

    smbShare?: string

    SMB share name without UNC prefix (SMB accounts only).

    smbDomain?: string

    Windows domain or workgroup (SMB accounts only; optional).

    smbRemotePath?: string

    Path within the share for backups, e.g. /VideoSphere (SMB accounts only).

    googleDriveBackupFolderPath?: string

    Folder path within My Drive for backups; empty or / means Drive root (Google Drive only).

    facebookTargetType?: "page" | "profile"

    Facebook publish target: Page or personal profile (Facebook accounts only).

    facebookPageId?: string

    Facebook Page ID when facebookTargetType is page (Facebook accounts only).

    hasYoutubeMainStreamKey: boolean

    True when a non-empty YouTube main stream key is stored (encrypted at rest).

    hasYoutubeTempStreamKey: boolean

    True when a non-empty YouTube temp stream key is stored (encrypted at rest).

    $createdAt: string

    Persistence system attribute (ISO string).

    $updatedAt: string

    Persistence system attribute (ISO string).

    accessToken: string
    refreshToken: string
    youtubeMainStreamKey?: string

    Decrypted YouTube main stream key (server-only; never sent to the client).

    youtubeTempStreamKey?: string

    Decrypted YouTube temp stream key (server-only; never sent to the client).