@seamapi/http - v2.35.0
    Preparing search index...

    Type Alias Media

    Represents a piece of media, such as a video clip or a thumbnail image, that a device captured for an event. Media is in beta.

    type Media = {
        content_type: string | null;
        created_at: string;
        device_id: string | null;
        event_id: string | null;
        expires_at: string | null;
        media_id: string;
        media_type: "video" | "image";
        status: "pending" | "available" | "unavailable" | "failed";
        url: string | null;
        workspace_id: string;
    }
    Index
    content_type: string | null

    MIME type of the media, such as video/mp4 or image/jpeg.

    created_at: string

    Date and time at which the media was created.

    device_id: string | null

    ID of the device that captured the media.

    event_id: string | null

    ID of the event that the media belongs to.

    expires_at: string | null

    Date and time at which the media stops being available. Null when Seam does not know when the media expires.

    media_id: string

    ID of the media.

    media_type: "video" | "image"

    Type of the media: a video clip or a still image.

    status: "pending" | "available" | "unavailable" | "failed"

    Status of the media. pending means that Seam is still retrieving the media. available means that url can be used to download it. unavailable means that no media exists for the event, and failed means that Seam could not retrieve it.

    url: string | null

    Short-lived URL from which you can download the media. Null unless status is available. The URL expires after about five minutes. Call /media/get again for a new URL.

    workspace_id: string

    ID of the workspace that contains the media.