Variable DirectMessageSchemaConst
DirectMessageSchema: Struct<
{
item_id: String;
item_type: String;
media: optionalKey<
Union<
readonly [
Struct<
{
height: Number;
media_type: Literal<1>;
pk: String;
url: String;
width: Number;
},
>,
Struct<
{
height: Number;
media_type: Literal<2>;
pk: String;
url: String;
width: Number;
},
>,
Struct<
{
media_type: Literal<8>;
pk: String;
slides: $Array<
Struct<{ media_type: Union<(...)>; pk: String; url: String }>,
>;
},
>,
],
>,
>;
text: optionalKey<String>;
timestamp: String;
user_id: String;
},
> = ...
One message of a thread. The list of messages is a single item definition, not a table of variants: the app's
item_typehas far more values than this change models (action_log,xma_clip,voice_media, …), so the entry keeps its ownitem_typeand the media the message carries, if any.