Type Alias ServerMessage

ServerMessage: {
    context?: {
        forwarded?: boolean;
        frequently_forwarded?: boolean;
        from?: string;
        id?: string;
        referred_product?: { catalog_id: string; product_retailer_id: string };
    };
    errors?: [ServerError];
    from: string;
    id: string;
    identity?: {
        acknowledged: boolean;
        created_timestamp: string;
        hash: string;
    };
    referral?: {
        body: string;
        ctwa_clid: string;
        headline: string;
        media_type: "image"
        | "video";
        source_id: string;
        source_type: "ad" | "post";
        source_url: string;
    } & (
        | { image_url: string; media_type: "image" }
        | { media_type: "video"; thumbnail_url: string; video_url: string }
    );
    timestamp: string;
} & ServerMessageTypes

Type declaration

  • Optionalcontext?: {
        forwarded?: boolean;
        frequently_forwarded?: boolean;
        from?: string;
        id?: string;
        referred_product?: { catalog_id: string; product_retailer_id: string };
    }
  • Optionalerrors?: [ServerError]

    Never saw this property on the wild, but it's documented

  • from: string
  • id: string
  • Optionalidentity?: { acknowledged: boolean; created_timestamp: string; hash: string }
  • Optionalreferral?: {
        body: string;
        ctwa_clid: string;
        headline: string;
        media_type: "image" | "video";
        source_id: string;
        source_type: "ad" | "post";
        source_url: string;
    } & (
        | { image_url: string; media_type: "image" }
        | { media_type: "video"; thumbnail_url: string; video_url: string }
    )
  • timestamp: string