import * as z from "zod/v4"; import * as discriminatedUnionTypes from "../types/discriminatedUnion.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { WebSearchSource, WebSearchSource$Outbound } from "./websearchsource.js"; import { WebSearchStatus } from "./websearchstatus.js"; export type OutputWebSearchCallItemActionFindInPage = { pattern: string; type: "find_in_page"; url: string; }; export type OutputWebSearchCallItemActionOpenPage = { type: "open_page"; url?: string | null | undefined; }; export type OutputWebSearchCallItemActionSearch = { queries?: Array | undefined; query: string; sources?: Array | undefined; type: "search"; }; export type OutputWebSearchCallItemActionUnion = OutputWebSearchCallItemActionSearch | OutputWebSearchCallItemActionOpenPage | OutputWebSearchCallItemActionFindInPage | discriminatedUnionTypes.Unknown<"type">; export declare const OutputWebSearchCallItemTypeWebSearchCall: { readonly WebSearchCall: "web_search_call"; }; export type OutputWebSearchCallItemTypeWebSearchCall = ClosedEnum; export type OutputWebSearchCallItem = { action?: OutputWebSearchCallItemActionSearch | OutputWebSearchCallItemActionOpenPage | OutputWebSearchCallItemActionFindInPage | discriminatedUnionTypes.Unknown<"type"> | undefined; id: string; status: WebSearchStatus; type: OutputWebSearchCallItemTypeWebSearchCall; additionalProperties?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const OutputWebSearchCallItemActionFindInPage$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchCallItemActionFindInPage$Outbound = { pattern: string; type: "find_in_page"; url: string; }; /** @internal */ export declare const OutputWebSearchCallItemActionFindInPage$outboundSchema: z.ZodType; export declare function outputWebSearchCallItemActionFindInPageToJSON(outputWebSearchCallItemActionFindInPage: OutputWebSearchCallItemActionFindInPage): string; export declare function outputWebSearchCallItemActionFindInPageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchCallItemActionOpenPage$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchCallItemActionOpenPage$Outbound = { type: "open_page"; url?: string | null | undefined; }; /** @internal */ export declare const OutputWebSearchCallItemActionOpenPage$outboundSchema: z.ZodType; export declare function outputWebSearchCallItemActionOpenPageToJSON(outputWebSearchCallItemActionOpenPage: OutputWebSearchCallItemActionOpenPage): string; export declare function outputWebSearchCallItemActionOpenPageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchCallItemActionSearch$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchCallItemActionSearch$Outbound = { queries?: Array | undefined; query: string; sources?: Array | undefined; type: "search"; }; /** @internal */ export declare const OutputWebSearchCallItemActionSearch$outboundSchema: z.ZodType; export declare function outputWebSearchCallItemActionSearchToJSON(outputWebSearchCallItemActionSearch: OutputWebSearchCallItemActionSearch): string; export declare function outputWebSearchCallItemActionSearchFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchCallItemActionUnion$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchCallItemActionUnion$Outbound = OutputWebSearchCallItemActionSearch$Outbound | OutputWebSearchCallItemActionOpenPage$Outbound | OutputWebSearchCallItemActionFindInPage$Outbound; /** @internal */ export declare const OutputWebSearchCallItemActionUnion$outboundSchema: z.ZodType; export declare function outputWebSearchCallItemActionUnionToJSON(outputWebSearchCallItemActionUnion: OutputWebSearchCallItemActionUnion): string; export declare function outputWebSearchCallItemActionUnionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputWebSearchCallItemTypeWebSearchCall$inboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchCallItemTypeWebSearchCall$outboundSchema: z.ZodEnum; /** @internal */ export declare const OutputWebSearchCallItem$inboundSchema: z.ZodType; /** @internal */ export type OutputWebSearchCallItem$Outbound = { action?: OutputWebSearchCallItemActionSearch$Outbound | OutputWebSearchCallItemActionOpenPage$Outbound | OutputWebSearchCallItemActionFindInPage$Outbound | undefined; id: string; status: string; type: string; [additionalProperties: string]: unknown; }; /** @internal */ export declare const OutputWebSearchCallItem$outboundSchema: z.ZodType; export declare function outputWebSearchCallItemToJSON(outputWebSearchCallItem: OutputWebSearchCallItem): string; export declare function outputWebSearchCallItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputwebsearchcallitem.d.ts.map