waii-sdk-js
Advanced tools
Comparing version 1.8.2 to 1.9.1
@@ -6,3 +6,6 @@ declare class SemanticStatement { | ||
labels?: string[]; | ||
constructor(scope: string | undefined, statement: string, labels?: string[]); | ||
always_include?: boolean; | ||
search_keys?: string[]; | ||
extract_prompt?: string; | ||
constructor(scope: string | undefined, statement: string, labels?: string[], always_include?: boolean, search_keys?: string[], extract_prompt?: string); | ||
} | ||
@@ -17,5 +20,14 @@ type ModifySemanticContextRequest = { | ||
}; | ||
type GetSemanticContextRequest = {}; | ||
type GetSemanticContextRequestFilter = { | ||
always_include?: boolean; | ||
}; | ||
type GetSemanticContextRequest = { | ||
filter?: GetSemanticContextRequestFilter; | ||
search_text?: string; | ||
offset?: number; | ||
limit?: number; | ||
}; | ||
type GetSemanticContextResponse = { | ||
semantic_context?: SemanticStatement[]; | ||
total_candidates?: number; | ||
}; | ||
@@ -27,2 +39,2 @@ export declare let SemanticContext: { | ||
export default SemanticContext; | ||
export { SemanticStatement, ModifySemanticContextRequest, ModifySemanticContextResponse, GetSemanticContextRequest, GetSemanticContextResponse }; | ||
export { SemanticStatement, ModifySemanticContextRequest, ModifySemanticContextResponse, GetSemanticContextRequestFilter, GetSemanticContextRequest, GetSemanticContextResponse }; |
@@ -21,3 +21,3 @@ "use strict"; | ||
class SemanticStatement { | ||
constructor(scope = '*', statement, labels = []) { | ||
constructor(scope = '*', statement, labels = [], always_include = true, search_keys = [], extract_prompt = '') { | ||
this.id = (0, uuid_1.v4)(); | ||
@@ -27,2 +27,5 @@ this.scope = scope; | ||
this.labels = labels; | ||
this.always_include = always_include; | ||
this.search_keys = search_keys; | ||
this.extract_prompt = extract_prompt; | ||
} | ||
@@ -29,0 +32,0 @@ } |
{ | ||
"name": "waii-sdk-js", | ||
"version": "1.8.2", | ||
"version": "1.9.1", | ||
"description": "Typescript / Javascript SDK for the waii api. SQL generation and much more.", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/waii-sdk.js", |
121087
1330