/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; import { PassThroughBody, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type FilesSearch = { /** * The query to search for. May match across multiple fields. */ query: string; /** * ID of the drive to filter on */ driveId?: string | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export type FilesSearch$Outbound = { query: string; drive_id?: string | undefined; pass_through?: Array | undefined; }; /** @internal */ export const FilesSearch$outboundSchema: z.ZodType< FilesSearch$Outbound, z.ZodTypeDef, FilesSearch > = /* @__PURE__ */ lazySchema$(() => z.object({ query: z.string(), driveId: z.string().optional(), passThrough: z.array(PassThroughBody$outboundSchema).optional(), }).transform((v) => { return remap$(v, { driveId: "drive_id", passThrough: "pass_through", }); }) ); export function filesSearchToJSON(filesSearch: FilesSearch): string { return JSON.stringify(FilesSearch$outboundSchema.parse(filesSearch)); }