import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { LinkedFolder, LinkedFolder$Outbound } from "./linkedfolder.js"; import { Owner, Owner$Outbound } from "./owner.js"; export type Folder = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The name of the folder */ name: string; /** * Optional description of the folder */ description?: string | null | undefined; /** * The full path of the folder (includes the folder name) */ path?: string | null | undefined; /** * The size of the folder in bytes */ size?: number | null | undefined; owner?: Owner | undefined; /** * The parent folders of the file, starting from the root */ parentFolders: Array; /** * Whether the list of parent folder is complete. Some connectors only return the direct parent of a folder */ parentFoldersComplete?: boolean | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; }; /** @internal */ export declare const Folder$inboundSchema: z.ZodType; /** @internal */ export type Folder$Outbound = { id?: string | undefined; name: string; description?: string | null | undefined; path?: string | null | undefined; size?: number | null | undefined; owner?: Owner$Outbound | undefined; parent_folders: Array; parent_folders_complete?: boolean | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; }; /** @internal */ export declare const Folder$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Folder$ { /** @deprecated use `Folder$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Folder$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Folder$Outbound` instead. */ type Outbound = Folder$Outbound; } export declare function folderToJSON(folder: Folder): string; export declare function folderFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=folder.d.ts.map