/* * 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"; export type FilesFilter = { /** * ID of the drive to filter on */ driveId?: string | undefined; /** * ID of the folder to filter on. The root folder has an alias "root" */ folderId?: string | undefined; /** * Only return files and folders that are shared */ shared?: boolean | undefined; }; /** @internal */ export type FilesFilter$Outbound = { drive_id?: string | undefined; folder_id?: string | undefined; shared?: boolean | undefined; }; /** @internal */ export const FilesFilter$outboundSchema: z.ZodType< FilesFilter$Outbound, z.ZodTypeDef, FilesFilter > = /* @__PURE__ */ lazySchema$(() => z.object({ driveId: z.string().optional(), folderId: z.string().optional(), shared: z.boolean().optional(), }).transform((v) => { return remap$(v, { driveId: "drive_id", folderId: "folder_id", }); }) ); export function filesFilterToJSON(filesFilter: FilesFilter): string { return JSON.stringify(FilesFilter$outboundSchema.parse(filesFilter)); }