@datadog/datadog-api-client
Version:
OpenAPI client for Datadog APIs
39 lines (38 loc) • 2 kB
TypeScript
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi";
import { Configuration } from "../../datadog-api-client-common/configuration";
import { RequestContext, ResponseContext, HttpFile } from "../../datadog-api-client-common/http/http";
import { StegadographyGetWidgetsResponse } from "../models/StegadographyGetWidgetsResponse";
export declare class StegadographyApiRequestFactory extends BaseAPIRequestFactory {
getStegadographyWidgets(image: HttpFile, _options?: Configuration): Promise<RequestContext>;
}
export declare class StegadographyApiResponseProcessor {
/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to getStegadographyWidgets
* @throws ApiException if the response code was not in [200, 299]
*/
getStegadographyWidgets(response: ResponseContext): Promise<StegadographyGetWidgetsResponse>;
}
export interface StegadographyApiGetStegadographyWidgetsRequest {
/**
* PNG image to extract watermarks from.
* @type HttpFile
*/
image: HttpFile;
}
export declare class StegadographyApi {
private requestFactory;
private responseProcessor;
private configuration;
constructor(configuration: Configuration, requestFactory?: StegadographyApiRequestFactory, responseProcessor?: StegadographyApiResponseProcessor);
/**
* Extracts watermarks from a PNG image and returns the cached widget data
* associated with each watermark found. The image must be uploaded as a
* `multipart/form-data` request with the file in the `image` field.
* Only widgets belonging to the authenticated organization are returned.
* @param param The request object
*/
getStegadographyWidgets(param: StegadographyApiGetStegadographyWidgetsRequest, options?: Configuration): Promise<StegadographyGetWidgetsResponse>;
}