igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Variable DirectThreadActionStateSchemaConst

    DirectThreadActionStateSchema: Union<
        readonly [
            Struct<
                {
                    has_messages: Boolean;
                    is_group: Literal<false>;
                    ordinal_reserved: optionalKey<Boolean>;
                    participants: $Array<
                        Struct<
                            {
                                fbid_v2: optionalKey<String>;
                                full_name: String;
                                pk: String;
                                username: String;
                            },
                        >,
                    >;
                    peer_user_fbid: optionalKey<String>;
                    peer_user_id: optionalKey<String>;
                    send_attribution: optionalKey<
                        Literals<
                            readonly [
                                "inbox",
                                "inbox_new_message",
                                "direct_thread_creation_omnipicker",
                                "message_button",
                            ],
                        >,
                    >;
                    thread_id: String;
                    thread_title: String;
                    thread_v2_id: optionalKey<String>;
                },
            >,
            Struct<
                {
                    has_messages: Boolean;
                    is_group: Literal<true>;
                    lead_user_id: optionalKey<String>;
                    ordinal_reserved: optionalKey<Boolean>;
                    participants: $Array<
                        Struct<
                            {
                                fbid_v2: optionalKey<String>;
                                full_name: String;
                                pk: String;
                                username: String;
                            },
                        >,
                    >;
                    send_attribution: optionalKey<
                        Literals<
                            readonly [
                                "inbox",
                                "inbox_new_message",
                                "direct_thread_creation_omnipicker",
                                "message_button",
                            ],
                        >,
                    >;
                    thread_id: String;
                    thread_title: String;
                    thread_v2_id: optionalKey<String>;
                },
            >,
        ],
    > = ...

    The state of a thread, a sum on whether it is a group: each kind holds only the facts that exist for it. A one-to-one thread names its peer — the pair of ids the details hub's two requests send; a group names its first participant, the person the hub asks the sharing info about when it comes back in front.