@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20230814 → 0.0.20230819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +563 -1
- package/package.json +1 -1
- package/readme.md +20 -0
- package/tests.ts +211 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230819
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -104,6 +104,11 @@ declare namespace gapi.client {
|
|
|
104
104
|
functionName?:
|
|
105
105
|
string;
|
|
106
106
|
}
|
|
107
|
+
interface GoogleCloudDiscoveryengineV1alphaAdditionalParams {
|
|
108
|
+
/** Token that used for non-human user check. */
|
|
109
|
+
token?:
|
|
110
|
+
string;
|
|
111
|
+
}
|
|
107
112
|
interface GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse {
|
|
108
113
|
/** TargetSites created. */
|
|
109
114
|
targetSites?:
|
|
@@ -136,6 +141,39 @@ declare namespace gapi.client {
|
|
|
136
141
|
tableId?:
|
|
137
142
|
string;
|
|
138
143
|
}
|
|
144
|
+
interface GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest {
|
|
145
|
+
/**
|
|
146
|
+
* Required. The parent data store resource name for which the completion is performed, such as
|
|
147
|
+
* `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
|
|
148
|
+
*/
|
|
149
|
+
dataStore?:
|
|
150
|
+
string;
|
|
151
|
+
/**
|
|
152
|
+
* Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query,
|
|
153
|
+
* those are returned and no tail suggestions are returned.
|
|
154
|
+
*/
|
|
155
|
+
includeTailSuggestions?:
|
|
156
|
+
boolean;
|
|
157
|
+
/** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. */
|
|
158
|
+
query?:
|
|
159
|
+
string;
|
|
160
|
+
/**
|
|
161
|
+
* Selects data model of query suggestions for serving. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using
|
|
162
|
+
* suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated
|
|
163
|
+
* from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document`
|
|
164
|
+
* is the default model for regular dataStores. * `search-history` is the default model for IndustryVertical.SITE_SEARCH dataStores.
|
|
165
|
+
*/
|
|
166
|
+
queryModel?:
|
|
167
|
+
string;
|
|
168
|
+
/**
|
|
169
|
+
* A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This
|
|
170
|
+
* unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. This should be the same
|
|
171
|
+
* identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
|
172
|
+
* `INVALID_ARGUMENT` error is returned.
|
|
173
|
+
*/
|
|
174
|
+
userPseudoId?:
|
|
175
|
+
string;
|
|
176
|
+
}
|
|
139
177
|
interface GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse {
|
|
140
178
|
/** Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion. */
|
|
141
179
|
querySuggestions?:
|
|
@@ -209,6 +247,14 @@ declare namespace gapi.client {
|
|
|
209
247
|
/** The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session. */
|
|
210
248
|
conversation?:
|
|
211
249
|
GoogleCloudDiscoveryengineV1alphaConversation;
|
|
250
|
+
/**
|
|
251
|
+
* Required. The resource name of the Conversation to get. Format:
|
|
252
|
+
* `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use
|
|
253
|
+
* `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a
|
|
254
|
+
* new conversation inside a ConverseConversation session.
|
|
255
|
+
*/
|
|
256
|
+
name?:
|
|
257
|
+
string;
|
|
212
258
|
/** Required. Current user input. */
|
|
213
259
|
query?:
|
|
214
260
|
GoogleCloudDiscoveryengineV1alphaTextInput;
|
|
@@ -589,6 +635,16 @@ declare namespace gapi.client {
|
|
|
589
635
|
schemas?:
|
|
590
636
|
GoogleCloudDiscoveryengineV1alphaSchema[];
|
|
591
637
|
}
|
|
638
|
+
interface GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest {
|
|
639
|
+
/** Required. The UUID of the Widget Config. */
|
|
640
|
+
widgetConfigId?:
|
|
641
|
+
string;
|
|
642
|
+
}
|
|
643
|
+
interface GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse {
|
|
644
|
+
/** The Anonymous Widget Config associated with the UUID. */
|
|
645
|
+
anonymousWidgetConfig?:
|
|
646
|
+
GoogleCloudDiscoveryengineV1alphaWidgetConfig;
|
|
647
|
+
}
|
|
592
648
|
interface GoogleCloudDiscoveryengineV1alphaMediaInfo {
|
|
593
649
|
/**
|
|
594
650
|
* The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo.media_progress_duration.seconds should be
|
|
@@ -932,6 +988,13 @@ declare namespace gapi.client {
|
|
|
932
988
|
/** Whether to turn on safe search. This is only supported for website search. */
|
|
933
989
|
safeSearch?:
|
|
934
990
|
boolean;
|
|
991
|
+
/**
|
|
992
|
+
* Required. The resource name of the Search serving config, such as
|
|
993
|
+
* `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving
|
|
994
|
+
* configuration name, set of models used to make the search.
|
|
995
|
+
*/
|
|
996
|
+
servingConfig?:
|
|
997
|
+
string;
|
|
935
998
|
/** The spell correction specification that specifies the mode under which spell correction takes effect. */
|
|
936
999
|
spellCorrectionSpec?:
|
|
937
1000
|
GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
|
|
@@ -1008,6 +1071,12 @@ declare namespace gapi.client {
|
|
|
1008
1071
|
*/
|
|
1009
1072
|
maxExtractiveSegmentCount?:
|
|
1010
1073
|
number;
|
|
1074
|
+
/** Return at most `num_next_segments` segments after each selected segments. */
|
|
1075
|
+
numNextSegments?:
|
|
1076
|
+
number;
|
|
1077
|
+
/** Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments. */
|
|
1078
|
+
numPreviousSegments?:
|
|
1079
|
+
number;
|
|
1011
1080
|
/** Specifies whether to return the confidence score from the extractive segments in each search result. The default value is `false`. */
|
|
1012
1081
|
returnExtractiveSegmentScore?:
|
|
1013
1082
|
boolean;
|
|
@@ -1481,6 +1550,168 @@ declare namespace gapi.client {
|
|
|
1481
1550
|
userId?:
|
|
1482
1551
|
string;
|
|
1483
1552
|
}
|
|
1553
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest {
|
|
1554
|
+
/** Additional params for security and privacy enhancement. */
|
|
1555
|
+
additionalParams?:
|
|
1556
|
+
GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
1557
|
+
/** Required. The CompleteQuery request to perform auto-complete suggestion query. */
|
|
1558
|
+
completeQueryRequest?:
|
|
1559
|
+
GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest;
|
|
1560
|
+
/** Required. The UUID of the WidgetConfig. This field is used to identify the widget configuration, set of models used to make the auto complete query. */
|
|
1561
|
+
configId?:
|
|
1562
|
+
string;
|
|
1563
|
+
}
|
|
1564
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse {
|
|
1565
|
+
/** The token in response. */
|
|
1566
|
+
uToken?:
|
|
1567
|
+
string;
|
|
1568
|
+
/** Results of the matched query suggestions in widget. The result list is ordered and the first result is a top suggestion. */
|
|
1569
|
+
widgetQuerySuggestions?:
|
|
1570
|
+
GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion[];
|
|
1571
|
+
}
|
|
1572
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion {
|
|
1573
|
+
/** The suggestion for the query. */
|
|
1574
|
+
suggestion?:
|
|
1575
|
+
string;
|
|
1576
|
+
}
|
|
1577
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfig {
|
|
1578
|
+
/** Allowlisted domains that can load this widget. */
|
|
1579
|
+
allowlistedDomains?:
|
|
1580
|
+
string[];
|
|
1581
|
+
/**
|
|
1582
|
+
* Whether allow no-auth integration with widget. If set true, public access to search or other solutions from widget is allowed without authenication token provided by customer hosted
|
|
1583
|
+
* backend server.
|
|
1584
|
+
*/
|
|
1585
|
+
allowPublicAccess?:
|
|
1586
|
+
boolean;
|
|
1587
|
+
/** Output only. Unique obfuscated identifier of a WidgetConfig. */
|
|
1588
|
+
configId?:
|
|
1589
|
+
string;
|
|
1590
|
+
/** The content search spec that configs the desired behavior of content search. */
|
|
1591
|
+
contentSearchSpec?:
|
|
1592
|
+
GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
1593
|
+
/** Output only. Timestamp the WidgetConfig was created. */
|
|
1594
|
+
createTime?:
|
|
1595
|
+
string;
|
|
1596
|
+
/** Output only. The type of the parent data store. */
|
|
1597
|
+
dataStoreType?:
|
|
1598
|
+
string;
|
|
1599
|
+
/**
|
|
1600
|
+
* Required. The human readable widget config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
|
1601
|
+
* INVALID_ARGUMENT error is returned.
|
|
1602
|
+
*/
|
|
1603
|
+
displayName?:
|
|
1604
|
+
string;
|
|
1605
|
+
/** Whether or not to enable autocomplete. */
|
|
1606
|
+
enableAutocomplete?:
|
|
1607
|
+
boolean;
|
|
1608
|
+
/** Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn). */
|
|
1609
|
+
enableConversationalSearch?:
|
|
1610
|
+
boolean;
|
|
1611
|
+
/** Turn on or off collecting the search result quality feedback from end users. */
|
|
1612
|
+
enableQualityFeedback?:
|
|
1613
|
+
boolean;
|
|
1614
|
+
/** Whether to show the result score. */
|
|
1615
|
+
enableResultScore?:
|
|
1616
|
+
boolean;
|
|
1617
|
+
/** Whether to enable safe search. */
|
|
1618
|
+
enableSafeSearch?:
|
|
1619
|
+
boolean;
|
|
1620
|
+
/** Turn on or off summary for each snippets result. */
|
|
1621
|
+
enableSnippetResultSummary?:
|
|
1622
|
+
boolean;
|
|
1623
|
+
/** Turn on or off summarization for the search response. */
|
|
1624
|
+
enableSummarization?:
|
|
1625
|
+
boolean;
|
|
1626
|
+
/** The configuration and appearance of facets in the end user view. */
|
|
1627
|
+
facetField?:
|
|
1628
|
+
GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
1629
|
+
/**
|
|
1630
|
+
* The key is the UI component. Mock. Currently supported `title`, `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. The value is the name of the field along with its device
|
|
1631
|
+
* visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed.
|
|
1632
|
+
*/
|
|
1633
|
+
fieldsUiComponentsMap?:
|
|
1634
|
+
{ [P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField };
|
|
1635
|
+
/** Output only. Whether LLM is enabled in the corresponding data store. */
|
|
1636
|
+
llmEnabled?:
|
|
1637
|
+
boolean;
|
|
1638
|
+
/**
|
|
1639
|
+
* Immutable. The full resource name of the widget config. Format:
|
|
1640
|
+
* `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`. This field must be a UTF-8 encoded string with a
|
|
1641
|
+
* length limit of 1024 characters.
|
|
1642
|
+
*/
|
|
1643
|
+
name?:
|
|
1644
|
+
string;
|
|
1645
|
+
/** Required. Immutable. Specifies the solution type that this WidgetConfig can be used for. */
|
|
1646
|
+
solutionType?:
|
|
1647
|
+
string;
|
|
1648
|
+
/** Output only. Timestamp the WidgetConfig was updated. */
|
|
1649
|
+
updateTime?:
|
|
1650
|
+
string;
|
|
1651
|
+
}
|
|
1652
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
|
|
1653
|
+
/** Optional. The field name that end users will see. */
|
|
1654
|
+
displayName?:
|
|
1655
|
+
string;
|
|
1656
|
+
/** Required. Registered field name. The format is `field.abc`. */
|
|
1657
|
+
field?:
|
|
1658
|
+
string;
|
|
1659
|
+
}
|
|
1660
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField {
|
|
1661
|
+
/** The field visibility on different types of devices. */
|
|
1662
|
+
deviceVisibility?:
|
|
1663
|
+
string[];
|
|
1664
|
+
/** The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}". */
|
|
1665
|
+
displayTemplate?:
|
|
1666
|
+
string;
|
|
1667
|
+
/** Required. Registered field name. The format is `field.abc`. */
|
|
1668
|
+
field?:
|
|
1669
|
+
string;
|
|
1670
|
+
}
|
|
1671
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest {
|
|
1672
|
+
/** Additional params for security and privacy enhancement. */
|
|
1673
|
+
additionalParams?:
|
|
1674
|
+
GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
1675
|
+
/** Required. The UUID of the WidgetConfig. This field is used to identify the widget configuration, set of models used to make the user event collection. */
|
|
1676
|
+
configId?:
|
|
1677
|
+
string;
|
|
1678
|
+
/** The id of the Conversation to get. Use "-" to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. */
|
|
1679
|
+
conversationId?:
|
|
1680
|
+
string;
|
|
1681
|
+
/** Required. The ConverseConversationRequest request to perform converse a conversation. The ServingConfig id will be `default_search` by default. */
|
|
1682
|
+
converseConversationRequest?:
|
|
1683
|
+
GoogleCloudDiscoveryengineV1alphaConverseConversationRequest;
|
|
1684
|
+
}
|
|
1685
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse {
|
|
1686
|
+
/** The id of the Conversation returned. */
|
|
1687
|
+
conversationId?:
|
|
1688
|
+
string;
|
|
1689
|
+
/** ConverseConversationResponse returned from ConversationalSearchService.ConverseConversation. */
|
|
1690
|
+
converseConversationResponse?:
|
|
1691
|
+
GoogleCloudDiscoveryengineV1alphaConverseConversationResponse;
|
|
1692
|
+
/** The token in response. */
|
|
1693
|
+
uToken?:
|
|
1694
|
+
string;
|
|
1695
|
+
}
|
|
1696
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest {
|
|
1697
|
+
/** Additional params for security and privacy enhancement. */
|
|
1698
|
+
additionalParams?:
|
|
1699
|
+
GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
1700
|
+
/** Required. The UUID of the Search WidgetConfig. This field is used to identify the search widget configuration, set of models used to make the search. */
|
|
1701
|
+
configId?:
|
|
1702
|
+
string;
|
|
1703
|
+
/** Required. The search request to perform search. */
|
|
1704
|
+
searchRequest?:
|
|
1705
|
+
GoogleCloudDiscoveryengineV1alphaSearchRequest;
|
|
1706
|
+
}
|
|
1707
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse {
|
|
1708
|
+
/** The search response after performing search. */
|
|
1709
|
+
searchResponse?:
|
|
1710
|
+
GoogleCloudDiscoveryengineV1alphaSearchResponse;
|
|
1711
|
+
/** The token in response. */
|
|
1712
|
+
uToken?:
|
|
1713
|
+
string;
|
|
1714
|
+
}
|
|
1484
1715
|
interface GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata {
|
|
1485
1716
|
/** Operation create time. */
|
|
1486
1717
|
createTime?:
|
|
@@ -1780,6 +2011,335 @@ declare namespace gapi.client {
|
|
|
1780
2011
|
year?:
|
|
1781
2012
|
number;
|
|
1782
2013
|
}
|
|
2014
|
+
interface LocationsResource {
|
|
2015
|
+
/** Gets the Widget Config using the uuid. */
|
|
2016
|
+
lookupWidgetConfig(request: {
|
|
2017
|
+
/** V1 error format. */
|
|
2018
|
+
"$.xgafv"?:
|
|
2019
|
+
string;
|
|
2020
|
+
/** OAuth access token. */
|
|
2021
|
+
access_token?:
|
|
2022
|
+
string;
|
|
2023
|
+
/** Data format for response. */
|
|
2024
|
+
alt?:
|
|
2025
|
+
string;
|
|
2026
|
+
/** JSONP */
|
|
2027
|
+
callback?:
|
|
2028
|
+
string;
|
|
2029
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2030
|
+
fields?:
|
|
2031
|
+
string;
|
|
2032
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2033
|
+
key?:
|
|
2034
|
+
string;
|
|
2035
|
+
/** Required. The location resource where lookup widget will be performed. Format: `locations/{location}` */
|
|
2036
|
+
location:
|
|
2037
|
+
string;
|
|
2038
|
+
/** OAuth 2.0 token for the current user. */
|
|
2039
|
+
oauth_token?:
|
|
2040
|
+
string;
|
|
2041
|
+
/** Returns response with indentations and line breaks. */
|
|
2042
|
+
prettyPrint?:
|
|
2043
|
+
boolean;
|
|
2044
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2045
|
+
quotaUser?:
|
|
2046
|
+
string;
|
|
2047
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2048
|
+
upload_protocol?:
|
|
2049
|
+
string;
|
|
2050
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2051
|
+
uploadType?:
|
|
2052
|
+
string;
|
|
2053
|
+
/** Request body */
|
|
2054
|
+
resource:
|
|
2055
|
+
GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest;
|
|
2056
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse>;
|
|
2057
|
+
lookupWidgetConfig(request: {
|
|
2058
|
+
/** V1 error format. */
|
|
2059
|
+
"$.xgafv"?:
|
|
2060
|
+
string;
|
|
2061
|
+
/** OAuth access token. */
|
|
2062
|
+
access_token?:
|
|
2063
|
+
string;
|
|
2064
|
+
/** Data format for response. */
|
|
2065
|
+
alt?:
|
|
2066
|
+
string;
|
|
2067
|
+
/** JSONP */
|
|
2068
|
+
callback?:
|
|
2069
|
+
string;
|
|
2070
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2071
|
+
fields?:
|
|
2072
|
+
string;
|
|
2073
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2074
|
+
key?:
|
|
2075
|
+
string;
|
|
2076
|
+
/** Required. The location resource where lookup widget will be performed. Format: `locations/{location}` */
|
|
2077
|
+
location:
|
|
2078
|
+
string;
|
|
2079
|
+
/** OAuth 2.0 token for the current user. */
|
|
2080
|
+
oauth_token?:
|
|
2081
|
+
string;
|
|
2082
|
+
/** Returns response with indentations and line breaks. */
|
|
2083
|
+
prettyPrint?:
|
|
2084
|
+
boolean;
|
|
2085
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2086
|
+
quotaUser?:
|
|
2087
|
+
string;
|
|
2088
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2089
|
+
upload_protocol?:
|
|
2090
|
+
string;
|
|
2091
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2092
|
+
uploadType?:
|
|
2093
|
+
string;
|
|
2094
|
+
},
|
|
2095
|
+
body: GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest): Request<GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Performs a user input completion with keyword suggestion. Similar to the CompletionService.CompleteQuery method, but a widget version that allows CompleteQuery without API Key. It
|
|
2098
|
+
* supports CompleteQuery with or without JWT token.
|
|
2099
|
+
*/
|
|
2100
|
+
widgetCompleteQuery(request: {
|
|
2101
|
+
/** V1 error format. */
|
|
2102
|
+
"$.xgafv"?:
|
|
2103
|
+
string;
|
|
2104
|
+
/** OAuth access token. */
|
|
2105
|
+
access_token?:
|
|
2106
|
+
string;
|
|
2107
|
+
/** Data format for response. */
|
|
2108
|
+
alt?:
|
|
2109
|
+
string;
|
|
2110
|
+
/** JSONP */
|
|
2111
|
+
callback?:
|
|
2112
|
+
string;
|
|
2113
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2114
|
+
fields?:
|
|
2115
|
+
string;
|
|
2116
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2117
|
+
key?:
|
|
2118
|
+
string;
|
|
2119
|
+
/** Required. The location resource where widget complete query will be performed. Format: `locations/{location}` */
|
|
2120
|
+
location:
|
|
2121
|
+
string;
|
|
2122
|
+
/** OAuth 2.0 token for the current user. */
|
|
2123
|
+
oauth_token?:
|
|
2124
|
+
string;
|
|
2125
|
+
/** Returns response with indentations and line breaks. */
|
|
2126
|
+
prettyPrint?:
|
|
2127
|
+
boolean;
|
|
2128
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2129
|
+
quotaUser?:
|
|
2130
|
+
string;
|
|
2131
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2132
|
+
upload_protocol?:
|
|
2133
|
+
string;
|
|
2134
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2135
|
+
uploadType?:
|
|
2136
|
+
string;
|
|
2137
|
+
/** Request body */
|
|
2138
|
+
resource:
|
|
2139
|
+
GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest;
|
|
2140
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse>;
|
|
2141
|
+
widgetCompleteQuery(request: {
|
|
2142
|
+
/** V1 error format. */
|
|
2143
|
+
"$.xgafv"?:
|
|
2144
|
+
string;
|
|
2145
|
+
/** OAuth access token. */
|
|
2146
|
+
access_token?:
|
|
2147
|
+
string;
|
|
2148
|
+
/** Data format for response. */
|
|
2149
|
+
alt?:
|
|
2150
|
+
string;
|
|
2151
|
+
/** JSONP */
|
|
2152
|
+
callback?:
|
|
2153
|
+
string;
|
|
2154
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2155
|
+
fields?:
|
|
2156
|
+
string;
|
|
2157
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2158
|
+
key?:
|
|
2159
|
+
string;
|
|
2160
|
+
/** Required. The location resource where widget complete query will be performed. Format: `locations/{location}` */
|
|
2161
|
+
location:
|
|
2162
|
+
string;
|
|
2163
|
+
/** OAuth 2.0 token for the current user. */
|
|
2164
|
+
oauth_token?:
|
|
2165
|
+
string;
|
|
2166
|
+
/** Returns response with indentations and line breaks. */
|
|
2167
|
+
prettyPrint?:
|
|
2168
|
+
boolean;
|
|
2169
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2170
|
+
quotaUser?:
|
|
2171
|
+
string;
|
|
2172
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2173
|
+
upload_protocol?:
|
|
2174
|
+
string;
|
|
2175
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2176
|
+
uploadType?:
|
|
2177
|
+
string;
|
|
2178
|
+
},
|
|
2179
|
+
body: GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest): Request<GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse>;
|
|
2180
|
+
/** Converse a conversation with Widget. */
|
|
2181
|
+
widgetConverseConversation(request: {
|
|
2182
|
+
/** V1 error format. */
|
|
2183
|
+
"$.xgafv"?:
|
|
2184
|
+
string;
|
|
2185
|
+
/** OAuth access token. */
|
|
2186
|
+
access_token?:
|
|
2187
|
+
string;
|
|
2188
|
+
/** Data format for response. */
|
|
2189
|
+
alt?:
|
|
2190
|
+
string;
|
|
2191
|
+
/** JSONP */
|
|
2192
|
+
callback?:
|
|
2193
|
+
string;
|
|
2194
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2195
|
+
fields?:
|
|
2196
|
+
string;
|
|
2197
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2198
|
+
key?:
|
|
2199
|
+
string;
|
|
2200
|
+
/** Required. The location resource where widget converse conversation will be performed. Format: `locations/{location}` */
|
|
2201
|
+
location:
|
|
2202
|
+
string;
|
|
2203
|
+
/** OAuth 2.0 token for the current user. */
|
|
2204
|
+
oauth_token?:
|
|
2205
|
+
string;
|
|
2206
|
+
/** Returns response with indentations and line breaks. */
|
|
2207
|
+
prettyPrint?:
|
|
2208
|
+
boolean;
|
|
2209
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2210
|
+
quotaUser?:
|
|
2211
|
+
string;
|
|
2212
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2213
|
+
upload_protocol?:
|
|
2214
|
+
string;
|
|
2215
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2216
|
+
uploadType?:
|
|
2217
|
+
string;
|
|
2218
|
+
/** Request body */
|
|
2219
|
+
resource:
|
|
2220
|
+
GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest;
|
|
2221
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse>;
|
|
2222
|
+
widgetConverseConversation(request: {
|
|
2223
|
+
/** V1 error format. */
|
|
2224
|
+
"$.xgafv"?:
|
|
2225
|
+
string;
|
|
2226
|
+
/** OAuth access token. */
|
|
2227
|
+
access_token?:
|
|
2228
|
+
string;
|
|
2229
|
+
/** Data format for response. */
|
|
2230
|
+
alt?:
|
|
2231
|
+
string;
|
|
2232
|
+
/** JSONP */
|
|
2233
|
+
callback?:
|
|
2234
|
+
string;
|
|
2235
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2236
|
+
fields?:
|
|
2237
|
+
string;
|
|
2238
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2239
|
+
key?:
|
|
2240
|
+
string;
|
|
2241
|
+
/** Required. The location resource where widget converse conversation will be performed. Format: `locations/{location}` */
|
|
2242
|
+
location:
|
|
2243
|
+
string;
|
|
2244
|
+
/** OAuth 2.0 token for the current user. */
|
|
2245
|
+
oauth_token?:
|
|
2246
|
+
string;
|
|
2247
|
+
/** Returns response with indentations and line breaks. */
|
|
2248
|
+
prettyPrint?:
|
|
2249
|
+
boolean;
|
|
2250
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2251
|
+
quotaUser?:
|
|
2252
|
+
string;
|
|
2253
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2254
|
+
upload_protocol?:
|
|
2255
|
+
string;
|
|
2256
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2257
|
+
uploadType?:
|
|
2258
|
+
string;
|
|
2259
|
+
},
|
|
2260
|
+
body: GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest): Request<GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse>;
|
|
2261
|
+
/** Performs a search. Similar to the SearchService.Search method, but a widget version that allows search without API Key. It supports search with or without JWT token. */
|
|
2262
|
+
widgetSearch(request: {
|
|
2263
|
+
/** V1 error format. */
|
|
2264
|
+
"$.xgafv"?:
|
|
2265
|
+
string;
|
|
2266
|
+
/** OAuth access token. */
|
|
2267
|
+
access_token?:
|
|
2268
|
+
string;
|
|
2269
|
+
/** Data format for response. */
|
|
2270
|
+
alt?:
|
|
2271
|
+
string;
|
|
2272
|
+
/** JSONP */
|
|
2273
|
+
callback?:
|
|
2274
|
+
string;
|
|
2275
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2276
|
+
fields?:
|
|
2277
|
+
string;
|
|
2278
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2279
|
+
key?:
|
|
2280
|
+
string;
|
|
2281
|
+
/** Required. The location resource where widget search will be performed. Format: `locations/{location}` */
|
|
2282
|
+
location:
|
|
2283
|
+
string;
|
|
2284
|
+
/** OAuth 2.0 token for the current user. */
|
|
2285
|
+
oauth_token?:
|
|
2286
|
+
string;
|
|
2287
|
+
/** Returns response with indentations and line breaks. */
|
|
2288
|
+
prettyPrint?:
|
|
2289
|
+
boolean;
|
|
2290
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2291
|
+
quotaUser?:
|
|
2292
|
+
string;
|
|
2293
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2294
|
+
upload_protocol?:
|
|
2295
|
+
string;
|
|
2296
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2297
|
+
uploadType?:
|
|
2298
|
+
string;
|
|
2299
|
+
/** Request body */
|
|
2300
|
+
resource:
|
|
2301
|
+
GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest;
|
|
2302
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse>;
|
|
2303
|
+
widgetSearch(request: {
|
|
2304
|
+
/** V1 error format. */
|
|
2305
|
+
"$.xgafv"?:
|
|
2306
|
+
string;
|
|
2307
|
+
/** OAuth access token. */
|
|
2308
|
+
access_token?:
|
|
2309
|
+
string;
|
|
2310
|
+
/** Data format for response. */
|
|
2311
|
+
alt?:
|
|
2312
|
+
string;
|
|
2313
|
+
/** JSONP */
|
|
2314
|
+
callback?:
|
|
2315
|
+
string;
|
|
2316
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2317
|
+
fields?:
|
|
2318
|
+
string;
|
|
2319
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2320
|
+
key?:
|
|
2321
|
+
string;
|
|
2322
|
+
/** Required. The location resource where widget search will be performed. Format: `locations/{location}` */
|
|
2323
|
+
location:
|
|
2324
|
+
string;
|
|
2325
|
+
/** OAuth 2.0 token for the current user. */
|
|
2326
|
+
oauth_token?:
|
|
2327
|
+
string;
|
|
2328
|
+
/** Returns response with indentations and line breaks. */
|
|
2329
|
+
prettyPrint?:
|
|
2330
|
+
boolean;
|
|
2331
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2332
|
+
quotaUser?:
|
|
2333
|
+
string;
|
|
2334
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2335
|
+
upload_protocol?:
|
|
2336
|
+
string;
|
|
2337
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2338
|
+
uploadType?:
|
|
2339
|
+
string;
|
|
2340
|
+
},
|
|
2341
|
+
body: GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest): Request<GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse>;
|
|
2342
|
+
}
|
|
1783
2343
|
interface DocumentsResource {
|
|
1784
2344
|
/** Creates a Document. */
|
|
1785
2345
|
create(request: {
|
|
@@ -6594,6 +7154,8 @@ declare namespace gapi.client {
|
|
|
6594
7154
|
OperationsResource;
|
|
6595
7155
|
}
|
|
6596
7156
|
|
|
7157
|
+
const locations: LocationsResource;
|
|
7158
|
+
|
|
6597
7159
|
const projects: ProjectsResource;
|
|
6598
7160
|
}
|
|
6599
7161
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -65,4 +65,24 @@ gapi.auth.authorize(
|
|
|
65
65
|
After that you can use Discovery Engine API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
Gets the Widget Config using the uuid.
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.discoveryengine.locations.lookupWidgetConfig({ location: "location", });
|
|
73
|
+
|
|
74
|
+
/*
|
|
75
|
+
Performs a user input completion with keyword suggestion. Similar to the CompletionService.CompleteQuery method, but a widget version that allows CompleteQuery without API Key. It supports CompleteQuery with or without JWT token.
|
|
76
|
+
*/
|
|
77
|
+
await gapi.client.discoveryengine.locations.widgetCompleteQuery({ location: "location", });
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
Converse a conversation with Widget.
|
|
81
|
+
*/
|
|
82
|
+
await gapi.client.discoveryengine.locations.widgetConverseConversation({ location: "location", });
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
Performs a search. Similar to the SearchService.Search method, but a widget version that allows search without API Key. It supports search with or without JWT token.
|
|
86
|
+
*/
|
|
87
|
+
await gapi.client.discoveryengine.locations.widgetSearch({ location: "location", });
|
|
68
88
|
```
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230819
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -29,6 +29,208 @@ gapi.load('client', async () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
+
/** Gets the Widget Config using the uuid. */
|
|
33
|
+
await gapi.client.discoveryengine.locations.lookupWidgetConfig({
|
|
34
|
+
location: "Test string",
|
|
35
|
+
}, {
|
|
36
|
+
widgetConfigId: "Test string",
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Performs a user input completion with keyword suggestion. Similar to the CompletionService.CompleteQuery method, but a widget version that allows CompleteQuery without API Key. It
|
|
40
|
+
* supports CompleteQuery with or without JWT token.
|
|
41
|
+
*/
|
|
42
|
+
await gapi.client.discoveryengine.locations.widgetCompleteQuery({
|
|
43
|
+
location: "Test string",
|
|
44
|
+
}, {
|
|
45
|
+
additionalParams: {
|
|
46
|
+
token: "Test string",
|
|
47
|
+
},
|
|
48
|
+
completeQueryRequest: {
|
|
49
|
+
dataStore: "Test string",
|
|
50
|
+
includeTailSuggestions: true,
|
|
51
|
+
query: "Test string",
|
|
52
|
+
queryModel: "Test string",
|
|
53
|
+
userPseudoId: "Test string",
|
|
54
|
+
},
|
|
55
|
+
configId: "Test string",
|
|
56
|
+
});
|
|
57
|
+
/** Converse a conversation with Widget. */
|
|
58
|
+
await gapi.client.discoveryengine.locations.widgetConverseConversation({
|
|
59
|
+
location: "Test string",
|
|
60
|
+
}, {
|
|
61
|
+
additionalParams: {
|
|
62
|
+
token: "Test string",
|
|
63
|
+
},
|
|
64
|
+
configId: "Test string",
|
|
65
|
+
conversationId: "Test string",
|
|
66
|
+
converseConversationRequest: {
|
|
67
|
+
conversation: {
|
|
68
|
+
endTime: "Test string",
|
|
69
|
+
messages: [
|
|
70
|
+
{
|
|
71
|
+
createTime: "Test string",
|
|
72
|
+
reply: {
|
|
73
|
+
references: [
|
|
74
|
+
{
|
|
75
|
+
anchorText: "Test string",
|
|
76
|
+
end: 42,
|
|
77
|
+
start: 42,
|
|
78
|
+
uri: "Test string",
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
reply: "Test string",
|
|
82
|
+
summary: {
|
|
83
|
+
summarySkippedReasons: [
|
|
84
|
+
"Test string"
|
|
85
|
+
],
|
|
86
|
+
summaryText: "Test string",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
userInput: {
|
|
90
|
+
context: {
|
|
91
|
+
activeDocument: "Test string",
|
|
92
|
+
contextDocuments: [
|
|
93
|
+
"Test string"
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
input: "Test string",
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
name: "Test string",
|
|
101
|
+
startTime: "Test string",
|
|
102
|
+
state: "Test string",
|
|
103
|
+
userPseudoId: "Test string",
|
|
104
|
+
},
|
|
105
|
+
name: "Test string",
|
|
106
|
+
query: {
|
|
107
|
+
context: {
|
|
108
|
+
activeDocument: "Test string",
|
|
109
|
+
contextDocuments: [
|
|
110
|
+
"Test string"
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
input: "Test string",
|
|
114
|
+
},
|
|
115
|
+
safeSearch: true,
|
|
116
|
+
servingConfig: "Test string",
|
|
117
|
+
userLabels: {
|
|
118
|
+
A: "Test string"
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
/** Performs a search. Similar to the SearchService.Search method, but a widget version that allows search without API Key. It supports search with or without JWT token. */
|
|
123
|
+
await gapi.client.discoveryengine.locations.widgetSearch({
|
|
124
|
+
location: "Test string",
|
|
125
|
+
}, {
|
|
126
|
+
additionalParams: {
|
|
127
|
+
token: "Test string",
|
|
128
|
+
},
|
|
129
|
+
configId: "Test string",
|
|
130
|
+
searchRequest: {
|
|
131
|
+
boostSpec: {
|
|
132
|
+
conditionBoostSpecs: [
|
|
133
|
+
{
|
|
134
|
+
boost: 42,
|
|
135
|
+
condition: "Test string",
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
branch: "Test string",
|
|
140
|
+
contentSearchSpec: {
|
|
141
|
+
extractiveContentSpec: {
|
|
142
|
+
maxExtractiveAnswerCount: 42,
|
|
143
|
+
maxExtractiveSegmentCount: 42,
|
|
144
|
+
numNextSegments: 42,
|
|
145
|
+
numPreviousSegments: 42,
|
|
146
|
+
returnExtractiveSegmentScore: true,
|
|
147
|
+
},
|
|
148
|
+
snippetSpec: {
|
|
149
|
+
maxSnippetCount: 42,
|
|
150
|
+
referenceOnly: true,
|
|
151
|
+
returnSnippet: true,
|
|
152
|
+
},
|
|
153
|
+
summarySpec: {
|
|
154
|
+
ignoreAdversarialQuery: true,
|
|
155
|
+
ignoreNonSummarySeekingQuery: true,
|
|
156
|
+
includeCitations: true,
|
|
157
|
+
languageCode: "Test string",
|
|
158
|
+
summaryResultCount: 42,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
embeddingSpec: {
|
|
162
|
+
embeddingVectors: [
|
|
163
|
+
{
|
|
164
|
+
fieldPath: "Test string",
|
|
165
|
+
vector: [
|
|
166
|
+
42
|
|
167
|
+
],
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
facetSpecs: [
|
|
172
|
+
{
|
|
173
|
+
enableDynamicPosition: true,
|
|
174
|
+
excludedFilterKeys: [
|
|
175
|
+
"Test string"
|
|
176
|
+
],
|
|
177
|
+
facetKey: {
|
|
178
|
+
caseInsensitive: true,
|
|
179
|
+
contains: [
|
|
180
|
+
"Test string"
|
|
181
|
+
],
|
|
182
|
+
intervals: [
|
|
183
|
+
{
|
|
184
|
+
exclusiveMaximum: 42,
|
|
185
|
+
exclusiveMinimum: 42,
|
|
186
|
+
maximum: 42,
|
|
187
|
+
minimum: 42,
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
key: "Test string",
|
|
191
|
+
orderBy: "Test string",
|
|
192
|
+
prefixes: [
|
|
193
|
+
"Test string"
|
|
194
|
+
],
|
|
195
|
+
restrictedValues: [
|
|
196
|
+
"Test string"
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
limit: 42,
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
filter: "Test string",
|
|
203
|
+
imageQuery: {
|
|
204
|
+
imageBytes: "Test string",
|
|
205
|
+
},
|
|
206
|
+
offset: 42,
|
|
207
|
+
orderBy: "Test string",
|
|
208
|
+
pageSize: 42,
|
|
209
|
+
pageToken: "Test string",
|
|
210
|
+
params: {
|
|
211
|
+
A: 42
|
|
212
|
+
},
|
|
213
|
+
query: "Test string",
|
|
214
|
+
queryExpansionSpec: {
|
|
215
|
+
condition: "Test string",
|
|
216
|
+
pinUnexpandedResults: true,
|
|
217
|
+
},
|
|
218
|
+
rankingExpression: "Test string",
|
|
219
|
+
safeSearch: true,
|
|
220
|
+
servingConfig: "Test string",
|
|
221
|
+
spellCorrectionSpec: {
|
|
222
|
+
mode: "Test string",
|
|
223
|
+
},
|
|
224
|
+
userInfo: {
|
|
225
|
+
userAgent: "Test string",
|
|
226
|
+
userId: "Test string",
|
|
227
|
+
},
|
|
228
|
+
userLabels: {
|
|
229
|
+
A: "Test string"
|
|
230
|
+
},
|
|
231
|
+
userPseudoId: "Test string",
|
|
232
|
+
},
|
|
233
|
+
});
|
|
32
234
|
/** Completes the specified user input with keyword suggestions. */
|
|
33
235
|
await gapi.client.discoveryengine.projects.locations.collections.dataStores.completeQuery({
|
|
34
236
|
dataStore: "Test string",
|
|
@@ -213,6 +415,7 @@ gapi.load('client', async () => {
|
|
|
213
415
|
state: "Test string",
|
|
214
416
|
userPseudoId: "Test string",
|
|
215
417
|
},
|
|
418
|
+
name: "Test string",
|
|
216
419
|
query: {
|
|
217
420
|
context: {
|
|
218
421
|
activeDocument: "Test string",
|
|
@@ -526,6 +729,8 @@ gapi.load('client', async () => {
|
|
|
526
729
|
extractiveContentSpec: {
|
|
527
730
|
maxExtractiveAnswerCount: 42,
|
|
528
731
|
maxExtractiveSegmentCount: 42,
|
|
732
|
+
numNextSegments: 42,
|
|
733
|
+
numPreviousSegments: 42,
|
|
529
734
|
returnExtractiveSegmentScore: true,
|
|
530
735
|
},
|
|
531
736
|
snippetSpec: {
|
|
@@ -600,6 +805,7 @@ gapi.load('client', async () => {
|
|
|
600
805
|
},
|
|
601
806
|
rankingExpression: "Test string",
|
|
602
807
|
safeSearch: true,
|
|
808
|
+
servingConfig: "Test string",
|
|
603
809
|
spellCorrectionSpec: {
|
|
604
810
|
mode: "Test string",
|
|
605
811
|
},
|
|
@@ -1042,6 +1248,7 @@ gapi.load('client', async () => {
|
|
|
1042
1248
|
state: "Test string",
|
|
1043
1249
|
userPseudoId: "Test string",
|
|
1044
1250
|
},
|
|
1251
|
+
name: "Test string",
|
|
1045
1252
|
query: {
|
|
1046
1253
|
context: {
|
|
1047
1254
|
activeDocument: "Test string",
|
|
@@ -1344,6 +1551,8 @@ gapi.load('client', async () => {
|
|
|
1344
1551
|
extractiveContentSpec: {
|
|
1345
1552
|
maxExtractiveAnswerCount: 42,
|
|
1346
1553
|
maxExtractiveSegmentCount: 42,
|
|
1554
|
+
numNextSegments: 42,
|
|
1555
|
+
numPreviousSegments: 42,
|
|
1347
1556
|
returnExtractiveSegmentScore: true,
|
|
1348
1557
|
},
|
|
1349
1558
|
snippetSpec: {
|
|
@@ -1418,6 +1627,7 @@ gapi.load('client', async () => {
|
|
|
1418
1627
|
},
|
|
1419
1628
|
rankingExpression: "Test string",
|
|
1420
1629
|
safeSearch: true,
|
|
1630
|
+
servingConfig: "Test string",
|
|
1421
1631
|
spellCorrectionSpec: {
|
|
1422
1632
|
mode: "Test string",
|
|
1423
1633
|
},
|