import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { type Uploadable } from "../core/uploads.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Attachments extends APIResource { /** * Create an attachment */ create(body: AttachmentCreateParams, options?: RequestOptions): APIPromise; } export interface AttachmentCreateResponse { data?: AttachmentCreateResponse.Data; request_id?: string; } export declare namespace AttachmentCreateResponse { interface Data { id?: string; description?: string; name?: string; url?: string; } } export interface AttachmentCreateParams { /** * The description of the file */ description?: string; /** * The file to upload */ file?: Uploadable; /** * The URL to fetch the file from, if the file is not provided */ file_url?: string; } export declare namespace Attachments { export { type AttachmentCreateResponse as AttachmentCreateResponse, type AttachmentCreateParams as AttachmentCreateParams, }; } //# sourceMappingURL=attachments.d.ts.map