import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AttachmentReference, AttachmentReference$Outbound } from "./attachmentreference.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; export type Attachment = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The display id of the file */ displayId?: string | null | undefined; /** * The name of the file */ name?: string | null | undefined; /** * The MIME type of the file. */ mimeType?: string | null | undefined; /** * The size of the file in bytes */ size?: number | null | undefined; reference?: AttachmentReference | undefined; /** * Optional description of the file */ description?: string | null | undefined; /** * The folder id where this attachment belong to */ parentFolderId?: string | 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; /** * 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 declare const Attachment$inboundSchema: z.ZodType; /** @internal */ export type Attachment$Outbound = { id?: string | undefined; display_id?: string | null | undefined; name?: string | null | undefined; mime_type?: string | null | undefined; size?: number | null | undefined; reference?: AttachmentReference$Outbound | undefined; description?: string | null | undefined; parent_folder_id?: string | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const Attachment$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 Attachment$ { /** @deprecated use `Attachment$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Attachment$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Attachment$Outbound` instead. */ type Outbound = Attachment$Outbound; } export declare function attachmentToJSON(attachment: Attachment): string; export declare function attachmentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=attachment.d.ts.map