import type * as _Core from "@osdk/foundry.core"; import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client"; import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2"; import type * as _Ontologies from "../_components.js"; /** * Upload an attachment to use in an action. Any attachment which has not been linked to an object via * an action within one hour after upload will be removed. * Previously mapped attachments which are not connected to any object anymore are also removed on * a biweekly basis. * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`. * * @public * * Required Scopes: [api:ontologies-write] * URL: /v2/ontologies/attachments/upload */ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ $body: Blob, $queryParams: { filename: _Core.Filename; }, $headerParams?: { "Content-Type"?: _Core.ContentType; } ]): Promise<_Ontologies.AttachmentV2>; /** * This endpoint is identical to `/v2/ontologies/attachments/upload` but additionally accepts a previously * generated `AttachmentRid`. * * @alpha * * Required Scopes: [api:ontologies-write] * URL: /v2/ontologies/attachments/upload/{attachmentRid} */ export declare function uploadWithRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ attachmentRid: _Ontologies.AttachmentRid, $body: Blob, $queryParams: { filename: _Core.Filename; preview?: _Core.PreviewMode | undefined; }, $headerParams?: { "Content-Type"?: _Core.ContentType; } ]): Promise<_Ontologies.AttachmentV2>; /** * Get the content of an attachment. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/attachments/{attachmentRid}/content */ export declare function read($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [attachmentRid: _Ontologies.AttachmentRid]): Promise; /** * Get the metadata of an attachment. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/attachments/{attachmentRid} */ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [attachmentRid: _Ontologies.AttachmentRid]): Promise<_Ontologies.AttachmentV2>; //# sourceMappingURL=Attachment.d.ts.map