import { CcApiCompositeCommand } from '../../lib/cc-api-command.js'; import type { CcApiComposer } from '../../types/cc-api.types.js'; import type { UploadCellarObjectCommandInput } from './upload-cellar-object-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 * - `UPLOAD_FAILED`: the storage cluster refused the content */ export declare const UPLOAD_CELLAR_OBJECT_ERROR_CODES: { readonly CELLAR_NOT_FOUND: 'clever.cellar.not-found'; readonly BUCKET_NOT_FOUND: 'clever.cellar.bucket-not-found'; readonly UPLOAD_FAILED: 'clever.cellar.upload-failed'; }; export type UploadCellarObjectErrorCode = (typeof UPLOAD_CELLAR_OBJECT_ERROR_CODES)[keyof typeof UPLOAD_CELLAR_OBJECT_ERROR_CODES]; /** * Uploads an object into a Cellar bucket. * * The content is sent to a presigned URL pointing at https://api.clever-cloud.com, so that second * request leaves the client configuration behind: it reaches the API directly even when the client * is set up to go through `api-bridge`, it does not carry the authentication set on the client, and * in a browser it is a cross-origin request. * * Common error codes: see {@link UPLOAD_CELLAR_OBJECT_ERROR_CODES} * * @endpoint [POST] /v4/cellar/organisations/:XXX/cellar/:XXX/buckets/:XXX/objects/:XXX/presigned-url * @endpoint [POST] /v4/cellar/organisations/:XXX/cellar/:XXX/buckets/:XXX/objects/upload/:XXX * @group Cellar * @version 4 */ export declare class UploadCellarObjectCommand extends CcApiCompositeCommand { compose(params: UploadCellarObjectCommandInput, composer: CcApiComposer): Promise; isIdempotent(): boolean; } //# sourceMappingURL=upload-cellar-object-command.d.ts.map