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

    Variable DirectThemeIdSchemaConst

    DirectThemeIdSchema: decodeTo<
        String,
        Union<readonly [Number, String]>,
        never,
        never,
    > = NumericIdText

    The id of a Direct chat theme as an answer spells it: the core's one JSON reader (parseJson, its response mode) turns a number literal of more than 15 characters into its exact text — the 448 app's 9277000000000003 is one, and a Number would round it — while a shorter id arrives as a number. Both are read as the text of the id (IdAsText), and the text is digits only: the id is one path segment of set_theme, so a value that could reshape that path is not a theme id. One schema for the wire fact, shared by the response types of @igpapi/mobile, the chat wallpaper's uploader and the screen that applies a theme.