/// import { CatalystApp } from '../catalyst-app'; import { AuthorizedHttpClient } from '../utils/api-request'; import fs from 'fs'; import { ICatalystZiaObject, ICatalystZiaOCR, ICatalystZiaBarcode, ICatalystZiaModeration, ICatalystZiaFace, ICatalystZiaAutoML, ICatalystZiaFaceComparison, ICatalystZiaKeywordExtractionResponse, ICatalystZiaSentimentAnalysisResponse, ICatalystZiaNERPredictionResponse, ICatalystZiaTextAnalyticsResponse } from '../utils/pojo/zia'; import { Component } from '../utils/pojo/common'; export declare class Zia implements Component { requester: AuthorizedHttpClient; constructor(app: CatalystApp); getComponentName(): string; detectObject(file: fs.ReadStream): Promise; extractOpticalCharacters(file: fs.ReadStream, opts?: { language?: string; modelType?: string; }): Promise; extractAadhaarCharacters(frontImg: fs.ReadStream, backImg: fs.ReadStream, language: string): Promise; scanBarcode(image: fs.ReadStream, opts?: { format?: string; }): Promise; moderateImage(image: fs.ReadStream, opts?: { mode?: string; }): Promise; analyseFace(image: fs.ReadStream, opts?: { mode?: string; emotion?: boolean; age?: boolean; gender?: boolean; }): Promise; /** * @param sourceImage read stream of the source image * @param queryImage read stream of the image to be compared * @returns `ICatalystZiaFaceComparison` the object that contains the match and confidence value * @link https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/identity-scanner/facial-comparison/ */ compareFace(sourceImage: fs.ReadStream, queryImage: fs.ReadStream): Promise; automl(modelId: string | number, data?: { [x: string]: any; }): Promise; /** * Get the sentiment analytics for the list of documents. * @param listOfDocuments Array of strings whose sentiment is to be analyzed. * @param keywords Entity-level sentiment key * @returns `Array` * @link https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/text-analytics/sentiment-analysis/ */ getSentimentAnalysis(listOfDocuments: Array, keywords?: Array): Promise>; /** * Extracts the keywords from the list of documents provided. * @param listOfDocuments Array of strings, which has to processed for keyword extraction * @returns `Array` * @link https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/text-analytics/keyword-extraction/ */ getKeywordExtraction(listOfDocuments: Array): Promise>; /** * Performs NER (Named Entity Recognition) on the given list of documents. * @param listOfDocuments Array of strings to be processed for NER. * @returns `Array` * @link https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/text-analytics/named-entity-recognition/ */ getNERPrediction(listOfDocuments: Array): Promise>; /** * Performs all the three available text analytics on the list of documents provided. * * Available text analytics features: * * `Sentiment Analysis` * * `Keyword Extraction` * * `NER Prediction` * * Note: These text analytics features are also available as separate functions. Please check other functions under `textAnalysis`. * * @param listOfDocuments Array of strings to be processed for text analytics. * @param keywords Entity-level sentiment key * @returns `Array` * @link https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/zia-services/text-analytics/all-text-analytics/ */ getTextAnalytics(listOfDocuments: Array, keywords?: Array): Promise>; }