UNPKG

@adobe/lightroom-apis

Version:

Adobe Firefly Services library for consuming Lightroom Service APIs.

88 lines (86 loc) 4.5 kB
/************************************************************************* * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2025 Adobe * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe and its suppliers, if any. The intellectual * and technical concepts contained herein are proprietary to Adobe * and its suppliers and are protected by all applicable intellectual * property laws, including trade secret and copyright laws. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Adobe. **************************************************************************/ import type { ClientConfig, ApiOptions, ApiResponse } from "@adobe/firefly-services-sdk-core"; import { BaseServiceClient } from "@adobe/firefly-services-sdk-core/internal"; import type { ApplyAutoToneRequest } from "./models/ApplyAutoToneRequest"; import type { ApplyEditsRequest } from "./models/ApplyEditsRequest"; import type { ApplyPresetFromXmpContentRequest } from "./models/ApplyPresetFromXmpContentRequest"; import type { ApplyPresetRequest } from "./models/ApplyPresetRequest"; import type { AutoStraightenImageRequest } from "./models/AutoStraightenImageRequest"; import type { JobStatusLinkResponse } from "./models/JobStatusLinkResponse"; import type { LrJobApiResponse } from "./models/LrJobApiResponse"; /** * LightroomAsyncClient * LightroomAsync API client to use the LightroomAsync API services */ export declare class LightroomAsyncClient extends BaseServiceClient { constructor(config: ClientConfig); /** * Get Status API * Get job status of a Lightroom job * @param jobId The job to get status for * @param options Additional options to send any additional data or cancel the request * @returns LrJobApiResponse Job status * @throws {ApiError} */ lrJobStatus: (jobId: string, options?: ApiOptions) => Promise<ApiResponse<LrJobApiResponse>>; /** * Auto Straighten API * Auto Straighten an image. Applies the Auto Upright transformation on an image * @param requestBody Request body for auto straighten api * @param options Additional options to send any additional data or cancel the request * @returns JobStatusLinkResponse response * @throws {ApiError} */ autoStraightenImageAsync(requestBody: AutoStraightenImageRequest, options?: ApiOptions): Promise<ApiResponse<JobStatusLinkResponse>>; /** * Auto Tone API * Automatically correct exposure, contrast, sharpness, saturation on an image * @param requestBody Request body for applyAutoTone api * @param options Additional options to send any additional data or cancel the request * @returns JobStatusLinkResponse response * @throws {ApiError} */ applyAutoToneAsync(requestBody: ApplyAutoToneRequest, options?: ApiOptions): Promise<ApiResponse<JobStatusLinkResponse>>; /** * Apply Lightroom Edits API * Apply one or more Lightroom edits ( exposure, contrast, sharpness, saturation ) to an image. * @param requestBody Request body for edit api * @param options Additional options to send any additional data or cancel the request * @returns JobStatusLinkResponse response * @throws {ApiError} */ applyEditsAsync(requestBody: ApplyEditsRequest, options?: ApiOptions): Promise<ApiResponse<JobStatusLinkResponse>>; /** * Apply Lightroom Presets API * Apply one or more XMP Lightroom presets to the given image, by using the given preset XMP file(s). * @param requestBody Request body for presets api * @param options Additional options to send any additional data or cancel the request * @returns JobStatusLinkResponse response * @throws {ApiError} */ applyPresetAsync(requestBody: ApplyPresetRequest, options?: ApiOptions): Promise<ApiResponse<JobStatusLinkResponse>>; /** * Add XMP to Image API * Apply XMP based Lightroom preset to an image. XMP content is passed inline to the api. * @param requestBody Request body for xmp api * @param options Additional options to send any additional data or cancel the request * @returns JobStatusLinkResponse response * @throws {ApiError} */ applyPresetFromXmpContentAsync(requestBody: ApplyPresetFromXmpContentRequest, options?: ApiOptions): Promise<ApiResponse<JobStatusLinkResponse>>; }