import { CcApiSimpleCommand } from '../../lib/cc-api-command.js'; import type { IdResolve } from '../../types/resource-id-resolver.types.js'; import type { GetCellarObjectDownloadUrlCommandInput, GetCellarObjectDownloadUrlCommandOutput } from './get-cellar-object-download-url-command.types.js'; /** * The error codes this command can produce, to compare against `error.code`. * * - `CELLAR_NOT_FOUND`: the add-on does not exist, or does not belong to the given owner * - `BUCKET_NOT_FOUND`: the bucket does not exist in the add-on * - `OBJECT_NOT_FOUND`: the object does not exist in the bucket */ export declare const GET_CELLAR_OBJECT_DOWNLOAD_URL_ERROR_CODES: { readonly CELLAR_NOT_FOUND: 'clever.cellar.not-found'; readonly BUCKET_NOT_FOUND: 'clever.cellar.bucket-not-found'; readonly OBJECT_NOT_FOUND: 'clever.cellar.object-not-found'; }; export type GetCellarObjectDownloadUrlErrorCode = (typeof GET_CELLAR_OBJECT_DOWNLOAD_URL_ERROR_CODES)[keyof typeof GET_CELLAR_OBJECT_DOWNLOAD_URL_ERROR_CODES]; /** * Mints a presigned URL that downloads one object without credentials. * * Common error codes: see {@link GET_CELLAR_OBJECT_DOWNLOAD_URL_ERROR_CODES} * * @endpoint [POST] /v4/cellar/organisations/:XXX/cellar/:XXX/buckets/:XXX/objects/download-url * @group Cellar * @version 4 */ export declare class GetCellarObjectDownloadUrlCommand extends CcApiSimpleCommand { toRequestParams(params: GetCellarObjectDownloadUrlCommandInput): Partial; getIdsToResolve(): IdResolve; isIdempotent(): boolean; } //# sourceMappingURL=get-cellar-object-download-url-command.d.ts.map