tarlatan
    Preparing search index...

    Variable ClaudeEventConst

    ClaudeEvent: Union<
        readonly [
            Struct<
                {
                    is_error: optionalKey<Boolean>;
                    result: optionalKey<String>;
                    session_id: optionalKey<String>;
                    subtype: optionalKey<String>;
                    type: Literal<"result">;
                },
            >,
            Struct<
                {
                    rate_limit_info: optionalKey<
                        StructWithRest<
                            Struct<{ unifiedWindows: optionalKey<$Record<String, Unknown>> }>,
                            readonly [$Record<String, Unknown>],
                        >,
                    >;
                    session_id: optionalKey<String>;
                    type: Literal<"rate_limit_event">;
                },
            >,
            Struct<
                {
                    session_id: optionalKey<String>;
                    subtype: Literal<"api_retry">;
                    type: Literal<"system">;
                },
            >,
        ],
    > = ...

    Any Claude event decoded here: a result, a rate-limit event or an api_retry.