import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { FileType } from "./filetype.js"; import { LinkedFolder } from "./linkedfolder.js"; import { Owner } from "./owner.js"; /** * Permissions the current user has on this file. */ export type Permissions = { /** * Whether the current user can download this file. */ download?: boolean | undefined; }; export type UnifiedFile = { /** * A unique identifier for an object. */ id: string; /** * The third-party API ID of original entity */ downstreamId?: string | null | undefined; /** * The name of the file */ name: string | null; /** * Optional description of the file */ description?: string | null | undefined; /** * The type of resource. Could be file, folder or url */ type: FileType | null; /** * The full path of the file or folder (includes the file name) */ path?: string | null | undefined; /** * The MIME type of the file. */ mimeType?: string | null | undefined; /** * Whether the current user can download this file */ downloadable?: boolean | undefined; /** * The size of the file in bytes */ size?: number | null | undefined; owner?: Owner | undefined; /** * The parent folders of the file, starting from the root */ parentFolders?: Array | undefined; /** * Whether the list of parent folders is complete. Some connectors only return the direct parent of a file */ parentFoldersComplete?: boolean | undefined; /** * Permissions the current user has on this file. */ permissions?: Permissions | undefined; /** * Whether the current file is exportable to other file formats. This property is relevant for proprietary file formats such as Google Docs or Dropbox Paper. */ exportable?: boolean | undefined; /** * The available file formats when exporting this file. */ exportFormats?: Array | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | 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 Permissions$inboundSchema: z.ZodType; export declare function permissionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UnifiedFile$inboundSchema: z.ZodType; export declare function unifiedFileFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=unifiedfile.d.ts.map