UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

32 lines (31 loc) 999 B
export type VisualSearchType = "vector" | "vector+text" | "text" | "vectorOrText" | "vectorAndText"; export declare class VisualSearchResource { /** * The color the user has selected in the color dropdown. */ color?: string; /** * What the search should take into account ("image" | "imageAndMetaData" | "metaData"). */ type?: VisualSearchType; /** * The id of the asset that the user wants to find similar assets for. */ imageEntityId?: number; /** * Indicates if the search should be a deep search. */ isDeepSearch?: boolean; /** * The value for the AI search box. */ text?: string; constructor(init?: Partial<VisualSearchResource>); } export declare class VisualSearchRequestResource extends VisualSearchResource { /** * The base64 hash of the image that the user uploaded to find similar assets for. */ image?: string; constructor(init?: Partial<VisualSearchRequestResource>); }