"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Search = void 0;
const searchSearchAssets_js_1 = require("../funcs/searchSearchAssets.js");
const searchVisualSearchAssets_js_1 = require("../funcs/searchVisualSearchAssets.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
class Search extends sdks_js_1.ClientSDK {
    /**
     * Provides a powerful query interface to filter and retrieve assets and their details
     *
     * @remarks
     * Returns a list of resources matching the specified search criteria. The API supports a variety of search parameters and returns a JSON response with the matching resources and their details.
     */
    async searchAssets(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, searchSearchAssets_js_1.searchSearchAssets)(this, request, options));
    }
    /**
     * Finds images in your asset library based on visual similarity or content
     *
     * @remarks
     * Returns a list of resources that are visually similar to a specified image. You can provide the source image for comparison in one of three ways:
     * - Provide a URL of an image
     * - Specify the public ID or asset ID of an existing image
     * - Provide a textual description
     */
    async visualSearchAssets(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, searchVisualSearchAssets_js_1.searchVisualSearchAssets)(this, request, options));
    }
}
exports.Search = Search;
//# sourceMappingURL=search.js.map