apollo-ai-api-client
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -14,2 +14,7 @@ export interface IAutoAbstractResponse { | ||
} | ||
export interface IContinuousClusteringResponse { | ||
status: number; | ||
message: string; | ||
data: IClusteringArticle[][]; | ||
} | ||
export interface IClusteringArticle { | ||
@@ -35,3 +40,3 @@ identifier: string; | ||
} | ||
export interface IContinuesClusteringOptions { | ||
export interface IContinuousClusteringOptions { | ||
abstractMaxChars?: number; | ||
@@ -42,8 +47,13 @@ keywords?: string[]; | ||
} | ||
export interface IContinuesClusteringInput { | ||
newArticles: IArticle[] | string[]; | ||
result?: IContinuesClusteringResultItem[]; | ||
options?: IContinuesClusteringOptions; | ||
export interface IContinuousClustering { | ||
newArticles?: IArticle[] | string[]; | ||
result?: IContinuousClusteringResultItem[]; | ||
} | ||
export interface IContinuesClusteringResultItem { | ||
export interface IContinuousClusteringInput extends IContinuousClustering { | ||
options?: IContinuousClusteringOptions; | ||
} | ||
export interface IContinuousClusteringResponse extends IContinuousClustering { | ||
invalidArticles: Array<string | IArticle>; | ||
} | ||
export interface IContinuousClusteringResultItem { | ||
article: IArticle; | ||
@@ -65,2 +75,3 @@ related: string[]; | ||
autoAbstractEndpoint: string; | ||
debug: boolean; | ||
combinedApiEndpoint: string; | ||
@@ -72,3 +83,3 @@ constructor(apiKey: string); | ||
clustering(articles: IClusteringArticle[], threshold?: number, language?: ClusteringLanguage): Promise<IClusteringResponse[]>; | ||
continuedClustering(newArticles: IArticle[] | string[], presentArticles?: IContinuesClusteringResultItem[], options?: IContinuesClusteringOptions): Promise<IClusteringResponse[]>; | ||
continuedClustering(newArticles: IArticle[] | string[], presentArticles?: IContinuousClusteringResultItem[], options?: IContinuousClusteringOptions): Promise<IContinuousClusteringResponse>; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
this.autoAbstractEndpoint = 'autoabstract'; | ||
this.debug = false; | ||
this.combinedApiEndpoint = 'combinedapi'; | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "apollo-ai-api-client", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Client for the apollo.ai auto abstract api.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14008
198