FlowGuard API - v1.2.0-rc.2
    Preparing search index...

    Function countByKind

    • Count events by kind for a summary view.

      Parameters

      • events: Readonly<
            {
                id: string;
                sessionId: string;
                phase: string;
                event: string;
                timestamp: string;
                actor: string;
                detail: Record<string, unknown>;
                actorInfo?: Readonly<
                    {
                        id: string;
                        email: string
                        | null;
                        displayName?: string | null;
                        source: "unknown" | "env" | "git" | "claim" | "oidc";
                        assurance: "best_effort" | "claim_validated" | "idp_verified";
                        verificationMeta?: Readonly<
                            {
                                issuer: string;
                                audience: string[];
                                keyId: string;
                                algorithm: string;
                                verifiedAt: string;
                            },
                        >;
                    },
                >;
                prevHash?: string;
                chainHash?: string;
            },
        >[]

      Returns Record<string, number>