File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -1501,6 +1501,21 @@ namespace AssistantV2 {
15011501 * `<em>` tags.
15021502 */
15031503 highlight ?: SearchResultHighlight ;
1504+ /** An array specifying segments of text within the result that were identified as direct answers to the search
1505+ * query. Currently, only the single answer with the highest confidence (if any) is returned.
1506+ *
1507+ * **Note:** This property uses the answer finding beta feature, and is available only if the search skill is
1508+ * connected to a Discovery v2 service instance.
1509+ */
1510+ answers ?: SearchResultAnswer [ ] ;
1511+ }
1512+
1513+ /** An object specifing a segment of text that was identified as a direct answer to the search query. */
1514+ export interface SearchResultAnswer {
1515+ /** The text of the answer. */
1516+ text : string ;
1517+ /** The confidence score for the answer, as returned by the Discovery service. */
1518+ confidence : number ;
15041519 }
15051520
15061521 /** An object containing segments of text from search results with query-matching text highlighted using HTML `<em>` tags. */
Original file line number Diff line number Diff line change @@ -6801,8 +6801,8 @@ namespace DiscoveryV1 {
68016801 /** Object that contains details about the status of the authentication process. */
68026802 export interface StatusDetails {
68036803 /** Indicates whether the credential is accepted by the target data source. */
6804- authentication ?: boolean ;
6805- /** If `authentication ` is `false`, a message describes why the authentication was unsuccessful. */
6804+ authenticated ?: boolean ;
6805+ /** If `authenticated ` is `false`, a message describes why the authentication was unsuccessful. */
68066806 error_message ?: string ;
68076807 }
68086808
Original file line number Diff line number Diff line change @@ -4892,7 +4892,7 @@ describe('DiscoveryV1', () => {
48924892
48934893 // StatusDetails
48944894 const statusDetailsModel = {
4895- authentication : true ,
4895+ authenticated : true ,
48964896 error_message : 'testString' ,
48974897 } ;
48984898
@@ -5075,7 +5075,7 @@ describe('DiscoveryV1', () => {
50755075
50765076 // StatusDetails
50775077 const statusDetailsModel = {
5078- authentication : true ,
5078+ authenticated : true ,
50795079 error_message : 'testString' ,
50805080 } ;
50815081
You can’t perform that action at this time.
0 commit comments