Marmot-TS
    Preparing search index...

    Type Alias GroupsManagerOptions<THistory, TMedia>

    Options for creating a new GroupsManager

    type GroupsManagerOptions<
        THistory extends BaseGroupHistory
        | undefined = undefined,
        TMedia extends BaseGroupMedia | undefined = undefined,
    > = {
        accountProofSigner?: AccountIdentityProofSigner;
        audit?: AuditSink;
        auditContext?: AuditContextOptions;
        convergencePolicy?: ConvergencePolicy;
        cryptoProvider?: CryptoProvider;
        historyFactory?: GroupHistoryFactory<THistory>;
        ingestionPool?: IngestionPoolOptions;
        mediaFactory?: GroupMediaFactory<TMedia>;
        network: NostrNetworkInterface;
        rewindStore?: GenericKeyValueStore<Uint8Array>;
        signer: EventSigner;
        store: GenericKeyValueStore<SerializedClientState>;
    }

    Type Parameters

    Index

    Client - Group Manager

    accountProofSigner?: AccountIdentityProofSigner

    Signs the account identity proof carried on the group creator's own leaf. Required for the creator to be addable to spec-conformant groups, which validate the proof on every leaf.

    audit?: AuditSink

    Optional forensic audit sink inherited by groups. Omitted by default.

    auditContext?: AuditContextOptions

    Required when audit is set; contains stable engine/account/session metadata.

    convergencePolicy?: ConvergencePolicy

    Convergence policy applied to every group (branch selection + the maxRewindCommits rollback horizon). Set maxRewindCommits: Infinity to keep forks of any age eligible for re-convergence. Defaults to profile 1.

    cryptoProvider?: CryptoProvider

    The crypto provider to use for cryptographic operations

    historyFactory?: GroupHistoryFactory<THistory>

    Optional group history factory passed to each MarmotGroup instance

    ingestionPool?: IngestionPoolOptions

    Ingestion-pool tuning applied to every group: max entries and max epoch-age for undecryptable events held for retry. Raise both for a debugging tool that aims to retain and process everything.

    mediaFactory?: GroupMediaFactory<TMedia>

    Optional group media factory passed to each MarmotGroup instance

    The nostr relay pool to use for the client

    rewindStore?: GenericKeyValueStore<Uint8Array>

    Dedicated backend for the per-group rewind-history blob. When provided, the convergence rewind window is persisted and survives a restart. Optional.

    signer: EventSigner

    The signer used for the clients identity

    The backend storing serialized group state bytes