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
Optional
context?: {
forwarded?: boolean;
frequently_forwarded?: boolean;
from?: string;
id?: string;
referred_product?: { catalog_id: string; product_retailer_id: string };
}
from: string
id: string
Optional
identity?: { acknowledged: boolean; created_timestamp: string; hash: string }
Optional
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
Never saw this property on the wild, but it's documented