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"; /** * Get the metadata of attachments parented to the given object. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property} */ export declare function getAttachment($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ ontology: _Ontologies.OntologyIdentifier, objectType: _Ontologies.ObjectTypeApiName, primaryKey: _Ontologies.PropertyValueEscapedString, property: _Ontologies.PropertyApiName, $queryParams?: { sdkPackageRid?: _Ontologies.SdkPackageRid | undefined; sdkVersion?: _Ontologies.SdkVersion | undefined; } ]): Promise<_Ontologies.AttachmentMetadataResponse>; /** * Get the metadata of a particular attachment in an attachment list. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid} */ export declare function getAttachmentByRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ ontology: _Ontologies.OntologyIdentifier, objectType: _Ontologies.ObjectTypeApiName, primaryKey: _Ontologies.PropertyValueEscapedString, property: _Ontologies.PropertyApiName, attachmentRid: _Ontologies.AttachmentRid, $queryParams?: { sdkPackageRid?: _Ontologies.SdkPackageRid | undefined; sdkVersion?: _Ontologies.SdkVersion | undefined; } ]): Promise<_Ontologies.AttachmentV2>; /** * Get the content of an attachment. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content */ export declare function readAttachment($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ ontology: _Ontologies.OntologyIdentifier, objectType: _Ontologies.ObjectTypeApiName, primaryKey: _Ontologies.PropertyValueEscapedString, property: _Ontologies.PropertyApiName, $queryParams?: { sdkPackageRid?: _Ontologies.SdkPackageRid | undefined; sdkVersion?: _Ontologies.SdkVersion | undefined; } ]): Promise; /** * Get the content of an attachment by its RID. * * The RID must exist in the attachment array of the property. * * @public * * Required Scopes: [api:ontologies-read] * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content */ export declare function readAttachmentByRid($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [ ontology: _Ontologies.OntologyIdentifier, objectType: _Ontologies.ObjectTypeApiName, primaryKey: _Ontologies.PropertyValueEscapedString, property: _Ontologies.PropertyApiName, attachmentRid: _Ontologies.AttachmentRid, $queryParams?: { sdkPackageRid?: _Ontologies.SdkPackageRid | undefined; sdkVersion?: _Ontologies.SdkVersion | undefined; } ]): Promise; //# sourceMappingURL=AttachmentPropertyV2.d.ts.map