/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as OctoAI from "../../../index"; export declare namespace AssetLibrary { interface Options { environment?: core.Supplier; apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; abortSignal?: AbortSignal; } } export declare class AssetLibrary { protected readonly _options: AssetLibrary.Options; constructor(_options?: AssetLibrary.Options); /** * List assets with optional filtering. * * @param {OctoAI.assetLibrary.ListRequest} request * @param {AssetLibrary.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.assetLibrary.UnprocessableEntityError} * * @example * await client.assetLibrary.list() */ list(request?: OctoAI.assetLibrary.ListRequest, requestOptions?: AssetLibrary.RequestOptions): Promise; /** * Create an asset on the asset library. * * @param {OctoAI.assetLibrary.CreateAssetRequest} request * @param {AssetLibrary.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.assetLibrary.UnprocessableEntityError} * * @example * await client.assetLibrary.create({ * assetType: OctoAI.assetLibrary.AssetType.File, * data: { * assetType: "vae", * engine: OctoAI.assetLibrary.BaseEngine.TextLlama27B * }, * name: "name" * }) */ create(request: OctoAI.assetLibrary.CreateAssetRequest, requestOptions?: AssetLibrary.RequestOptions): Promise; /** * Delete an asset from the asset library. * * @param {string} assetId - The asset unique ID. * @param {AssetLibrary.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.assetLibrary.UnprocessableEntityError} * * @example * await client.assetLibrary.delete("asset_id") */ delete(assetId: string, requestOptions?: AssetLibrary.RequestOptions): Promise; /** * Complete the upload of an asset. * * @param {string} assetId - The asset unique ID. * @param {OctoAI.assetLibrary.CompleteAssetUploadRequest} request * @param {AssetLibrary.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.assetLibrary.UnprocessableEntityError} * * @example * await client.assetLibrary.completeUpload("asset_id") */ completeUpload(assetId: string, request?: OctoAI.assetLibrary.CompleteAssetUploadRequest, requestOptions?: AssetLibrary.RequestOptions): Promise; /** * Retrieve asset with the given owner and name or id. * * @param {string} assetOwnerAndNameOrId - Owner and name or id of the asset. * @param {OctoAI.assetLibrary.GetRequest} request * @param {AssetLibrary.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.assetLibrary.UnprocessableEntityError} * * @example * await client.assetLibrary.get("asset_owner_and_name_or_id") */ get(assetOwnerAndNameOrId: string, request?: OctoAI.assetLibrary.GetRequest, requestOptions?: AssetLibrary.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }