@archastro/sdk
    Preparing search index...

    Variable agentRoutineRunSchemaConst

    agentRoutineRunSchema: ZodObject<
        {
            acl: ZodOptional<
                ZodObject<
                    {
                        add: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        actions: ZodArray<ZodString, "many">;
                                        principal: ZodOptional<ZodString>;
                                        principal_type: ZodString;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    { actions: string[]; principal?: string; principal_type: string },
                                    { actions: string[]; principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                        grants: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        actions: ZodArray<ZodString, "many">;
                                        principal: ZodOptional<ZodString>;
                                        principal_type: ZodString;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    { actions: string[]; principal?: string; principal_type: string },
                                    { actions: string[]; principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                        remove: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    { principal: ZodOptional<ZodString>; principal_type: ZodString },
                                    "strip",
                                    ZodTypeAny,
                                    { principal?: string; principal_type: string },
                                    { principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    },
                    {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    },
                >,
            >;
            agent: ZodOptional<ZodString>;
            app: ZodOptional<ZodString>;
            created_at: ZodOptional<ZodString>;
            delivery: ZodOptional<
                ZodObject<
                    {
                        delivered_at: ZodOptional<ZodString>;
                        delivered_message: ZodOptional<ZodString>;
                        last_error: ZodOptional<ZodString>;
                        message: ZodOptional<ZodString>;
                        status: ZodEnum<["not_requested", "pending", "delivered", "failed"]>;
                        thread: ZodOptional<ZodString>;
                        type: ZodEnum<["none", "thread", "reply"]>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        delivered_at?: string;
                        delivered_message?: string;
                        last_error?: string;
                        message?: string;
                        status: "pending"
                        | "failed"
                        | "delivered"
                        | "not_requested";
                        thread?: string;
                        type: "thread" | "none" | "reply";
                    },
                    {
                        delivered_at?: string;
                        delivered_message?: string;
                        last_error?: string;
                        message?: string;
                        status: "pending"
                        | "failed"
                        | "delivered"
                        | "not_requested";
                        thread?: string;
                        type: "thread" | "none" | "reply";
                    },
                >,
            >;
            duration_ms: ZodOptional<ZodNumber>;
            event_id: ZodOptional<ZodString>;
            id: ZodString;
            metadata: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            participants: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            payload: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            result: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            routine: ZodOptional<ZodString>;
            status: ZodOptional<ZodString>;
            structured_response: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            updated_at: ZodOptional<ZodString>;
            worker: ZodOptional<
                ZodObject<
                    { attempt: ZodNumber; max_attempts: ZodNumber; status: ZodString },
                    "strip",
                    ZodTypeAny,
                    { attempt: number; max_attempts: number; status: string },
                    { attempt: number; max_attempts: number; status: string },
                >,
            >;
        },
        "strip",
        ZodTypeAny,
        {
            acl?: {
                add?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                grants?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                remove?: { principal?: string; principal_type: string }[];
            };
            agent?: string;
            app?: string;
            created_at?: string;
            delivery?: {
                delivered_at?: string;
                delivered_message?: string;
                last_error?: string;
                message?: string;
                status: "pending"
                | "failed"
                | "delivered"
                | "not_requested";
                thread?: string;
                type: "thread" | "none" | "reply";
            };
            duration_ms?: number;
            event_id?: string;
            id: string;
            metadata?: Record<string, {} | null>;
            participants?: Record<string, {} | null>;
            payload?: Record<string, {} | null>;
            result?: Record<string, {} | null>;
            routine?: string;
            status?: string;
            structured_response?: Record<string, {} | null>;
            updated_at?: string;
            worker?: { attempt: number; max_attempts: number; status: string };
        },
        {
            acl?: {
                add?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                grants?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                remove?: { principal?: string; principal_type: string }[];
            };
            agent?: string;
            app?: string;
            created_at?: string;
            delivery?: {
                delivered_at?: string;
                delivered_message?: string;
                last_error?: string;
                message?: string;
                status: "pending"
                | "failed"
                | "delivered"
                | "not_requested";
                thread?: string;
                type: "thread" | "none" | "reply";
            };
            duration_ms?: number;
            event_id?: string;
            id: string;
            metadata?: Record<string, {} | null>;
            participants?: Record<string, {} | null>;
            payload?: Record<string, {} | null>;
            result?: Record<string, {} | null>;
            routine?: string;
            status?: string;
            structured_response?: Record<string, {} | null>;
            updated_at?: string;
            worker?: { attempt: number; max_attempts: number; status: string };
        },
    > = ...

    Runtime validator for AgentRoutineRun.