Skip to content

Commit cc99978

Browse files
committed
fix(assistant_v2 discovery_v1): regen with final release
1 parent bb69a7e commit cc99978

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

assistant/v2.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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. */

discovery/v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

test/unit/discovery.v1.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)