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

    Type Alias PigeonEventIdentity

    PigeonEventIdentity:
        | { kind: "anonymous" }
        | { kind: "process" }
        | { kind: "tokens"; tokensKey: string }
        | { kind: "viewer"; userId: string }

    Who logged an event, which decides the batch and the events entry it is uploaded in (packages/pigeon-nest/spec/): the stamp the queue keeps on the event. A sum of the four loggers the recordings show, each with only what it has:

    • anonymous — the identity logger while the session holds no tokens, or the sessionless logger a producer declares (loggedAnonymously);
    • process — the process-level logger, which logs anonymously into an events entry of its own (loggedByProcessLogger); it has no other identity;
    • tokens — the identity logger while the session holds the account's tokens and not yet its viewer (the sign-up's window between the two writes), named by a key of the tokens (tokensKeyOf: a hash of the authorization, which the login issues once; no credential travels in the queue);
    • viewer — the identity logger of a session that holds the account, named by the account's id.

    An event is never delivered under another account's batch or tokens: one whose viewer or tokens the session no longer holds is left out.