@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240415 → 0.0.20240503
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 +87 -421
- package/package.json +1 -1
- package/readme.md +0 -28
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: 20240503
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -88,10 +88,6 @@ declare namespace gapi.client {
|
|
|
88
88
|
/** Immutable. The full resource name of the acl configuration. Format: `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
89
89
|
name?: string;
|
|
90
90
|
}
|
|
91
|
-
interface GoogleCloudDiscoveryengineV1alphaAdditionalParams {
|
|
92
|
-
/** Token that used for non-human user check. */
|
|
93
|
-
token?: string;
|
|
94
|
-
}
|
|
95
91
|
interface GoogleCloudDiscoveryengineV1alphaAnswer {
|
|
96
92
|
/** Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. */
|
|
97
93
|
answerSkippedReasons?: string[];
|
|
@@ -440,12 +436,14 @@ declare namespace gapi.client {
|
|
|
440
436
|
tableId?: string;
|
|
441
437
|
}
|
|
442
438
|
interface GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest {
|
|
443
|
-
/** Answer candidate to check. */
|
|
439
|
+
/** Answer candidate to check. Can have a maximum length of 1024 characters. */
|
|
444
440
|
answerCandidate?: string;
|
|
445
441
|
/** List of facts for the grounding check. We support up to 200 facts. */
|
|
446
442
|
facts?: GoogleCloudDiscoveryengineV1alphaGroundingFact[];
|
|
447
443
|
/** Configuration of the grounding check. */
|
|
448
444
|
groundingSpec?: GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec;
|
|
445
|
+
/** The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details. */
|
|
446
|
+
userLabels?: {[P in string]: string};
|
|
449
447
|
}
|
|
450
448
|
interface GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse {
|
|
451
449
|
/** List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request. */
|
|
@@ -462,6 +460,8 @@ declare namespace gapi.client {
|
|
|
462
460
|
claimText?: string;
|
|
463
461
|
/** Position indicating the end of the claim in the answer candidate, exclusive. */
|
|
464
462
|
endPos?: number;
|
|
463
|
+
/** Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices, and anti_citation_indices should not be returned. */
|
|
464
|
+
groundingCheckRequired?: boolean;
|
|
465
465
|
/** Position indicating the start of the claim in the answer candidate, measured in bytes. */
|
|
466
466
|
startPos?: number;
|
|
467
467
|
}
|
|
@@ -519,18 +519,6 @@ declare namespace gapi.client {
|
|
|
519
519
|
/** Required. The Cloud SQL table to copy the data from with a length limit of 256 characters. */
|
|
520
520
|
tableId?: string;
|
|
521
521
|
}
|
|
522
|
-
interface GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest {
|
|
523
|
-
/** Required. The parent data store resource name for which the completion is performed, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. */
|
|
524
|
-
dataStore?: string;
|
|
525
|
-
/** 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, those are returned and no tail suggestions are returned. */
|
|
526
|
-
includeTailSuggestions?: boolean;
|
|
527
|
-
/** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. */
|
|
528
|
-
query?: string;
|
|
529
|
-
/** Specifies the autocomplete data model. This overrides any model specified in the Configuration > Autocomplete section of the Cloud console. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using 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 from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores. */
|
|
530
|
-
queryModel?: string;
|
|
531
|
-
/** 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 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 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 `INVALID_ARGUMENT` error is returned. */
|
|
532
|
-
userPseudoId?: string;
|
|
533
|
-
}
|
|
534
522
|
interface GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse {
|
|
535
523
|
/** Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion. */
|
|
536
524
|
querySuggestions?: GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion[];
|
|
@@ -584,8 +572,6 @@ declare namespace gapi.client {
|
|
|
584
572
|
conversation?: GoogleCloudDiscoveryengineV1alphaConversation;
|
|
585
573
|
/** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the summary response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
|
|
586
574
|
filter?: string;
|
|
587
|
-
/** Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. */
|
|
588
|
-
name?: string;
|
|
589
575
|
/** Required. Current user input. */
|
|
590
576
|
query?: GoogleCloudDiscoveryengineV1alphaTextInput;
|
|
591
577
|
/** Whether to turn on safe search. */
|
|
@@ -647,6 +633,19 @@ declare namespace gapi.client {
|
|
|
647
633
|
/** Whether or not to enable and include custom fine tuned search adaptor model. */
|
|
648
634
|
enableSearchAdaptor?: boolean;
|
|
649
635
|
}
|
|
636
|
+
interface GoogleCloudDiscoveryengineV1alphaCustomTuningModel {
|
|
637
|
+
/** Timestamp the Model was created at. */
|
|
638
|
+
createTime?: string;
|
|
639
|
+
/** The display name of the model. */
|
|
640
|
+
displayName?: string;
|
|
641
|
+
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
642
|
+
modelState?: string;
|
|
643
|
+
modelVersion?: string;
|
|
644
|
+
/** Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` model must be an alpha-numerical string with limit of 40 characters. */
|
|
645
|
+
name?: string;
|
|
646
|
+
/** Timestamp the model training was initiated. */
|
|
647
|
+
trainingStartTime?: string;
|
|
648
|
+
}
|
|
650
649
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
651
650
|
/** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
|
|
652
651
|
aclEnabled?: boolean;
|
|
@@ -931,6 +930,8 @@ declare namespace gapi.client {
|
|
|
931
930
|
interface GoogleCloudDiscoveryengineV1alphaFactChunk {
|
|
932
931
|
/** Text content of the fact chunk. Can be at most 10K characters long. */
|
|
933
932
|
chunkText?: string;
|
|
933
|
+
/** The index of this chunk. Currently, only used for the streaming mode. */
|
|
934
|
+
index?: number;
|
|
934
935
|
/** Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved. */
|
|
935
936
|
source?: string;
|
|
936
937
|
/** More fine-grained information for the source reference. */
|
|
@@ -1146,6 +1147,10 @@ declare namespace gapi.client {
|
|
|
1146
1147
|
/** Pagination token, if not returned indicates the last page. */
|
|
1147
1148
|
nextPageToken?: string;
|
|
1148
1149
|
}
|
|
1150
|
+
interface GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse {
|
|
1151
|
+
/** List of custom tuning models. */
|
|
1152
|
+
models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
|
|
1153
|
+
}
|
|
1149
1154
|
interface GoogleCloudDiscoveryengineV1alphaListDataStoresResponse {
|
|
1150
1155
|
/** All the customer's DataStores. */
|
|
1151
1156
|
dataStores?: GoogleCloudDiscoveryengineV1alphaDataStore[];
|
|
@@ -1190,14 +1195,6 @@ declare namespace gapi.client {
|
|
|
1190
1195
|
/** The total number of items matching the request. This will always be populated in the response. */
|
|
1191
1196
|
totalSize?: number;
|
|
1192
1197
|
}
|
|
1193
|
-
interface GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest {
|
|
1194
|
-
/** Required. The UUID of the Widget Config. */
|
|
1195
|
-
widgetConfigId?: string;
|
|
1196
|
-
}
|
|
1197
|
-
interface GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse {
|
|
1198
|
-
/** The Anonymous Widget Config associated with the UUID. */
|
|
1199
|
-
anonymousWidgetConfig?: GoogleCloudDiscoveryengineV1alphaWidgetConfig;
|
|
1200
|
-
}
|
|
1201
1198
|
interface GoogleCloudDiscoveryengineV1alphaMediaInfo {
|
|
1202
1199
|
/** 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 set to 90. */
|
|
1203
1200
|
mediaProgressDuration?: string;
|
|
@@ -1503,7 +1500,7 @@ declare namespace gapi.client {
|
|
|
1503
1500
|
imageQuery?: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery;
|
|
1504
1501
|
/** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
|
|
1505
1502
|
offset?: number;
|
|
1506
|
-
/** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
|
|
1503
|
+
/** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
|
|
1507
1504
|
orderBy?: string;
|
|
1508
1505
|
/** Maximum number of Documents to return. The maximum allowed value depends on the data type. Values above the maximum value are coerced to the maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. * Websites with advanced indexing: Default `25`, Maximum `50`. * Other: Default `50`, Maximum `100`. If this field is negative, an `INVALID_ARGUMENT` is returned. */
|
|
1509
1506
|
pageSize?: number;
|
|
@@ -1519,8 +1516,6 @@ declare namespace gapi.client {
|
|
|
1519
1516
|
rankingExpression?: string;
|
|
1520
1517
|
/** Whether to turn on safe search. This is only supported for website search. */
|
|
1521
1518
|
safeSearch?: boolean;
|
|
1522
|
-
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
1523
|
-
servingConfig?: string;
|
|
1524
1519
|
/** The spell correction specification that specifies the mode under which spell correction takes effect. */
|
|
1525
1520
|
spellCorrectionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
|
|
1526
1521
|
/** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
|
|
@@ -1928,6 +1923,8 @@ declare namespace gapi.client {
|
|
|
1928
1923
|
name?: string;
|
|
1929
1924
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
1930
1925
|
providedUriPattern?: string;
|
|
1926
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
1927
|
+
rootDomainUri?: string;
|
|
1931
1928
|
/** Output only. Site ownership and validity verification status. */
|
|
1932
1929
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo;
|
|
1933
1930
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -1960,6 +1957,8 @@ declare namespace gapi.client {
|
|
|
1960
1957
|
errorConfig?: GoogleCloudDiscoveryengineV1alphaImportErrorConfig;
|
|
1961
1958
|
/** Cloud Storage training input. */
|
|
1962
1959
|
gcsTrainingInput?: GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput;
|
|
1960
|
+
/** If not provided, a UUID will be generated. */
|
|
1961
|
+
modelId?: string;
|
|
1963
1962
|
/** Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided. */
|
|
1964
1963
|
modelType?: string;
|
|
1965
1964
|
}
|
|
@@ -1980,6 +1979,8 @@ declare namespace gapi.client {
|
|
|
1980
1979
|
errorSamples?: GoogleRpcStatus[];
|
|
1981
1980
|
/** The metrics of the trained model. */
|
|
1982
1981
|
metrics?: {[P in string]: number};
|
|
1982
|
+
/** Fully qualified name of the CustomTuningModel. */
|
|
1983
|
+
modelName?: string;
|
|
1983
1984
|
/** The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving. */
|
|
1984
1985
|
modelStatus?: string;
|
|
1985
1986
|
}
|
|
@@ -2061,158 +2062,6 @@ declare namespace gapi.client {
|
|
|
2061
2062
|
/** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
2062
2063
|
userId?: string;
|
|
2063
2064
|
}
|
|
2064
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest {
|
|
2065
|
-
/** Additional params for security and privacy enhancement. */
|
|
2066
|
-
additionalParams?: GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
2067
|
-
/** Required. The CompleteQuery request to perform auto-complete suggestion query. */
|
|
2068
|
-
completeQueryRequest?: GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest;
|
|
2069
|
-
/** 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. */
|
|
2070
|
-
configId?: string;
|
|
2071
|
-
}
|
|
2072
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse {
|
|
2073
|
-
/** The token in response. */
|
|
2074
|
-
uToken?: string;
|
|
2075
|
-
/** Results of the matched query suggestions in widget. The result list is ordered and the first result is a top suggestion. */
|
|
2076
|
-
widgetQuerySuggestions?: GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion[];
|
|
2077
|
-
}
|
|
2078
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponseWidgetQuerySuggestion {
|
|
2079
|
-
/** The suggestion for the query. */
|
|
2080
|
-
suggestion?: string;
|
|
2081
|
-
}
|
|
2082
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfig {
|
|
2083
|
-
/** Allowlisted domains that can load this widget. */
|
|
2084
|
-
allowlistedDomains?: string[];
|
|
2085
|
-
/** 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 backend server. */
|
|
2086
|
-
allowPublicAccess?: boolean;
|
|
2087
|
-
/** Output only. Collection components that lists all collections and child data stores associated with the widget config, those data sources can be used for filtering in widget service APIs, users can return results that from selected data sources. */
|
|
2088
|
-
collectionComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
|
|
2089
|
-
/** Output only. Unique obfuscated identifier of a WidgetConfig. */
|
|
2090
|
-
configId?: string;
|
|
2091
|
-
/** The content search spec that configs the desired behavior of content search. */
|
|
2092
|
-
contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
2093
|
-
/** Output only. Timestamp the WidgetConfig was created. */
|
|
2094
|
-
createTime?: string;
|
|
2095
|
-
/** Output only. The type of the parent data store. */
|
|
2096
|
-
dataStoreType?: string;
|
|
2097
|
-
/** Configurable UI configurations per data store. */
|
|
2098
|
-
dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
2099
|
-
/** 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 INVALID_ARGUMENT error is returned. */
|
|
2100
|
-
displayName?: string;
|
|
2101
|
-
/** Whether or not to enable autocomplete. */
|
|
2102
|
-
enableAutocomplete?: boolean;
|
|
2103
|
-
/** Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn). */
|
|
2104
|
-
enableConversationalSearch?: boolean;
|
|
2105
|
-
/** Turn on or off collecting the search result quality feedback from end users. */
|
|
2106
|
-
enableQualityFeedback?: boolean;
|
|
2107
|
-
/** Whether to show the result score. */
|
|
2108
|
-
enableResultScore?: boolean;
|
|
2109
|
-
/** Whether to enable safe search. */
|
|
2110
|
-
enableSafeSearch?: boolean;
|
|
2111
|
-
/** Whether to enable search-as-you-type behavior for the search widget */
|
|
2112
|
-
enableSearchAsYouType?: boolean;
|
|
2113
|
-
/** Turn on or off summary for each snippets result. */
|
|
2114
|
-
enableSnippetResultSummary?: boolean;
|
|
2115
|
-
/** Turn on or off summarization for the search response. */
|
|
2116
|
-
enableSummarization?: boolean;
|
|
2117
|
-
/** Whether to enable standalone web app. */
|
|
2118
|
-
enableWebApp?: boolean;
|
|
2119
|
-
/** The configuration and appearance of facets in the end user view. */
|
|
2120
|
-
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
2121
|
-
/** 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 visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed. */
|
|
2122
|
-
fieldsUiComponentsMap?: {
|
|
2123
|
-
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
2124
|
-
};
|
|
2125
|
-
/** Output only. The industry vertical that the WidgetConfig registers. The WidgetConfig industry vertical is based on the associated Engine. */
|
|
2126
|
-
industryVertical?: string;
|
|
2127
|
-
/** Output only. Whether LLM is enabled in the corresponding data store. */
|
|
2128
|
-
llmEnabled?: boolean;
|
|
2129
|
-
/** Output only. Whether the customer accepted data use terms. */
|
|
2130
|
-
minimumDataTermAccepted?: boolean;
|
|
2131
|
-
/** Immutable. The full resource name of the widget config. Format: `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 length limit of 1024 characters. */
|
|
2132
|
-
name?: string;
|
|
2133
|
-
/** The type of snippet to display in UCS widget. - RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new non-enterprise search users. - EXTRACTIVE_ANSWER for new enterprise search users. */
|
|
2134
|
-
resultDisplayType?: string;
|
|
2135
|
-
/** Required. Immutable. Specifies the solution type that this WidgetConfig can be used for. */
|
|
2136
|
-
solutionType?: string;
|
|
2137
|
-
/** Output only. Timestamp the WidgetConfig was updated. */
|
|
2138
|
-
updateTime?: string;
|
|
2139
|
-
}
|
|
2140
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
2141
|
-
/** For the data store collection, list of the children data stores. */
|
|
2142
|
-
dataStoreComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
|
|
2143
|
-
/** The display name of the collection. */
|
|
2144
|
-
displayName?: string;
|
|
2145
|
-
/** Output only. the identifier of the collection, used for widget service. For now it refers to collection_id, in the future we will migrate the field to encrypted collection name UUID. */
|
|
2146
|
-
id?: string;
|
|
2147
|
-
/** The name of the collection. It should be collection resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection_id}`. For APIs under WidgetService, such as LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
2148
|
-
name?: string;
|
|
2149
|
-
}
|
|
2150
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
|
|
2151
|
-
/** The display name of the data store. */
|
|
2152
|
-
displayName?: string;
|
|
2153
|
-
/** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
|
|
2154
|
-
id?: string;
|
|
2155
|
-
/** The name of the data store. It should be data store resource name Format: `projects/{project_number}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
2156
|
-
name?: string;
|
|
2157
|
-
}
|
|
2158
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
|
|
2159
|
-
/** Facet fields that store the mapping of fields to end user widget appearance. */
|
|
2160
|
-
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
2161
|
-
/** 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 visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed. */
|
|
2162
|
-
fieldsUiComponentsMap?: {
|
|
2163
|
-
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
2164
|
-
};
|
|
2165
|
-
/** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
|
|
2166
|
-
id?: string;
|
|
2167
|
-
/** The name of the data store. It should be data store resource name Format: `projects/{project_number}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
2168
|
-
name?: string;
|
|
2169
|
-
}
|
|
2170
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
|
|
2171
|
-
/** Optional. The field name that end users will see. */
|
|
2172
|
-
displayName?: string;
|
|
2173
|
-
/** Required. Registered field name. The format is `field.abc`. */
|
|
2174
|
-
field?: string;
|
|
2175
|
-
}
|
|
2176
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField {
|
|
2177
|
-
/** The field visibility on different types of devices. */
|
|
2178
|
-
deviceVisibility?: string[];
|
|
2179
|
-
/** The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}". */
|
|
2180
|
-
displayTemplate?: string;
|
|
2181
|
-
/** Required. Registered field name. The format is `field.abc`. */
|
|
2182
|
-
field?: string;
|
|
2183
|
-
}
|
|
2184
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest {
|
|
2185
|
-
/** Additional params for security and privacy enhancement. */
|
|
2186
|
-
additionalParams?: GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
2187
|
-
/** 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. */
|
|
2188
|
-
configId?: string;
|
|
2189
|
-
/** The id of the Conversation to get. Use "-" to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. */
|
|
2190
|
-
conversationId?: string;
|
|
2191
|
-
/** Required. The ConverseConversationRequest request to perform converse a conversation. The ServingConfig id will be `default_search` by default. */
|
|
2192
|
-
converseConversationRequest?: GoogleCloudDiscoveryengineV1alphaConverseConversationRequest;
|
|
2193
|
-
}
|
|
2194
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse {
|
|
2195
|
-
/** The id of the Conversation returned. */
|
|
2196
|
-
conversationId?: string;
|
|
2197
|
-
/** ConverseConversationResponse returned from ConversationalSearchService.ConverseConversation. */
|
|
2198
|
-
converseConversationResponse?: GoogleCloudDiscoveryengineV1alphaConverseConversationResponse;
|
|
2199
|
-
/** The token in response. */
|
|
2200
|
-
uToken?: string;
|
|
2201
|
-
}
|
|
2202
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest {
|
|
2203
|
-
/** Additional params for security and privacy enhancement. */
|
|
2204
|
-
additionalParams?: GoogleCloudDiscoveryengineV1alphaAdditionalParams;
|
|
2205
|
-
/** 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. */
|
|
2206
|
-
configId?: string;
|
|
2207
|
-
/** Required. The search request to perform search. */
|
|
2208
|
-
searchRequest?: GoogleCloudDiscoveryengineV1alphaSearchRequest;
|
|
2209
|
-
}
|
|
2210
|
-
interface GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse {
|
|
2211
|
-
/** The search response after performing search. */
|
|
2212
|
-
searchResponse?: GoogleCloudDiscoveryengineV1alphaSearchResponse;
|
|
2213
|
-
/** The token in response. */
|
|
2214
|
-
uToken?: string;
|
|
2215
|
-
}
|
|
2216
2065
|
interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
|
|
2217
2066
|
/** Operation create time. */
|
|
2218
2067
|
createTime?: string;
|
|
@@ -2257,6 +2106,19 @@ declare namespace gapi.client {
|
|
|
2257
2106
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
2258
2107
|
updateTime?: string;
|
|
2259
2108
|
}
|
|
2109
|
+
interface GoogleCloudDiscoveryengineV1betaCustomTuningModel {
|
|
2110
|
+
/** Timestamp the Model was created at. */
|
|
2111
|
+
createTime?: string;
|
|
2112
|
+
/** The display name of the model. */
|
|
2113
|
+
displayName?: string;
|
|
2114
|
+
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
2115
|
+
modelState?: string;
|
|
2116
|
+
modelVersion?: string;
|
|
2117
|
+
/** Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` model must be an alpha-numerical string with limit of 40 characters. */
|
|
2118
|
+
name?: string;
|
|
2119
|
+
/** Timestamp the model training was initiated. */
|
|
2120
|
+
trainingStartTime?: string;
|
|
2121
|
+
}
|
|
2260
2122
|
interface GoogleCloudDiscoveryengineV1betaDataStore {
|
|
2261
2123
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
2262
2124
|
contentConfig?: string;
|
|
@@ -2448,6 +2310,10 @@ declare namespace gapi.client {
|
|
|
2448
2310
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
2449
2311
|
unjoinedEventsCount?: string;
|
|
2450
2312
|
}
|
|
2313
|
+
interface GoogleCloudDiscoveryengineV1betaListCustomModelsResponse {
|
|
2314
|
+
/** List of custom tuning models. */
|
|
2315
|
+
models?: GoogleCloudDiscoveryengineV1betaCustomTuningModel[];
|
|
2316
|
+
}
|
|
2451
2317
|
interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata {
|
|
2452
2318
|
/** Operation create time. */
|
|
2453
2319
|
createTime?: string;
|
|
@@ -2505,6 +2371,8 @@ declare namespace gapi.client {
|
|
|
2505
2371
|
name?: string;
|
|
2506
2372
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
2507
2373
|
providedUriPattern?: string;
|
|
2374
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
2375
|
+
rootDomainUri?: string;
|
|
2508
2376
|
/** Output only. Site ownership and validity verification status. */
|
|
2509
2377
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1betaSiteVerificationInfo;
|
|
2510
2378
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -2533,6 +2401,8 @@ declare namespace gapi.client {
|
|
|
2533
2401
|
errorSamples?: GoogleRpcStatus[];
|
|
2534
2402
|
/** The metrics of the trained model. */
|
|
2535
2403
|
metrics?: {[P in string]: number};
|
|
2404
|
+
/** Fully qualified name of the CustomTuningModel. */
|
|
2405
|
+
modelName?: string;
|
|
2536
2406
|
/** The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving. */
|
|
2537
2407
|
modelStatus?: string;
|
|
2538
2408
|
}
|
|
@@ -2825,6 +2695,8 @@ declare namespace gapi.client {
|
|
|
2825
2695
|
name?: string;
|
|
2826
2696
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
2827
2697
|
providedUriPattern?: string;
|
|
2698
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
2699
|
+
rootDomainUri?: string;
|
|
2828
2700
|
/** Output only. Site ownership and validity verification status. */
|
|
2829
2701
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1SiteVerificationInfo;
|
|
2830
2702
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -2887,240 +2759,6 @@ declare namespace gapi.client {
|
|
|
2887
2759
|
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
2888
2760
|
year?: number;
|
|
2889
2761
|
}
|
|
2890
|
-
interface LocationsResource {
|
|
2891
|
-
/** Gets the Widget Config using the uuid. */
|
|
2892
|
-
lookupWidgetConfig(request: {
|
|
2893
|
-
/** V1 error format. */
|
|
2894
|
-
'$.xgafv'?: string;
|
|
2895
|
-
/** OAuth access token. */
|
|
2896
|
-
access_token?: string;
|
|
2897
|
-
/** Data format for response. */
|
|
2898
|
-
alt?: string;
|
|
2899
|
-
/** JSONP */
|
|
2900
|
-
callback?: string;
|
|
2901
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2902
|
-
fields?: string;
|
|
2903
|
-
/** 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. */
|
|
2904
|
-
key?: string;
|
|
2905
|
-
/** Required. The location resource where lookup widget will be performed. Format: `locations/{location}` */
|
|
2906
|
-
location: string;
|
|
2907
|
-
/** OAuth 2.0 token for the current user. */
|
|
2908
|
-
oauth_token?: string;
|
|
2909
|
-
/** Returns response with indentations and line breaks. */
|
|
2910
|
-
prettyPrint?: boolean;
|
|
2911
|
-
/** 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. */
|
|
2912
|
-
quotaUser?: string;
|
|
2913
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2914
|
-
upload_protocol?: string;
|
|
2915
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2916
|
-
uploadType?: string;
|
|
2917
|
-
/** Request body */
|
|
2918
|
-
resource: GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest;
|
|
2919
|
-
}): Request<GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse>;
|
|
2920
|
-
lookupWidgetConfig(
|
|
2921
|
-
request: {
|
|
2922
|
-
/** V1 error format. */
|
|
2923
|
-
'$.xgafv'?: string;
|
|
2924
|
-
/** OAuth access token. */
|
|
2925
|
-
access_token?: string;
|
|
2926
|
-
/** Data format for response. */
|
|
2927
|
-
alt?: string;
|
|
2928
|
-
/** JSONP */
|
|
2929
|
-
callback?: string;
|
|
2930
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2931
|
-
fields?: string;
|
|
2932
|
-
/** 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. */
|
|
2933
|
-
key?: string;
|
|
2934
|
-
/** Required. The location resource where lookup widget will be performed. Format: `locations/{location}` */
|
|
2935
|
-
location: string;
|
|
2936
|
-
/** OAuth 2.0 token for the current user. */
|
|
2937
|
-
oauth_token?: string;
|
|
2938
|
-
/** Returns response with indentations and line breaks. */
|
|
2939
|
-
prettyPrint?: boolean;
|
|
2940
|
-
/** 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. */
|
|
2941
|
-
quotaUser?: string;
|
|
2942
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2943
|
-
upload_protocol?: string;
|
|
2944
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2945
|
-
uploadType?: string;
|
|
2946
|
-
},
|
|
2947
|
-
body: GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigRequest
|
|
2948
|
-
): Request<GoogleCloudDiscoveryengineV1alphaLookupWidgetConfigResponse>;
|
|
2949
|
-
/** 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. */
|
|
2950
|
-
widgetCompleteQuery(request: {
|
|
2951
|
-
/** V1 error format. */
|
|
2952
|
-
'$.xgafv'?: string;
|
|
2953
|
-
/** OAuth access token. */
|
|
2954
|
-
access_token?: string;
|
|
2955
|
-
/** Data format for response. */
|
|
2956
|
-
alt?: string;
|
|
2957
|
-
/** JSONP */
|
|
2958
|
-
callback?: string;
|
|
2959
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2960
|
-
fields?: string;
|
|
2961
|
-
/** 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. */
|
|
2962
|
-
key?: string;
|
|
2963
|
-
/** Required. The location resource where widget complete query will be performed. Format: `locations/{location}` */
|
|
2964
|
-
location: string;
|
|
2965
|
-
/** OAuth 2.0 token for the current user. */
|
|
2966
|
-
oauth_token?: string;
|
|
2967
|
-
/** Returns response with indentations and line breaks. */
|
|
2968
|
-
prettyPrint?: boolean;
|
|
2969
|
-
/** 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. */
|
|
2970
|
-
quotaUser?: string;
|
|
2971
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2972
|
-
upload_protocol?: string;
|
|
2973
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2974
|
-
uploadType?: string;
|
|
2975
|
-
/** Request body */
|
|
2976
|
-
resource: GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest;
|
|
2977
|
-
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse>;
|
|
2978
|
-
widgetCompleteQuery(
|
|
2979
|
-
request: {
|
|
2980
|
-
/** V1 error format. */
|
|
2981
|
-
'$.xgafv'?: string;
|
|
2982
|
-
/** OAuth access token. */
|
|
2983
|
-
access_token?: string;
|
|
2984
|
-
/** Data format for response. */
|
|
2985
|
-
alt?: string;
|
|
2986
|
-
/** JSONP */
|
|
2987
|
-
callback?: string;
|
|
2988
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2989
|
-
fields?: string;
|
|
2990
|
-
/** 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. */
|
|
2991
|
-
key?: string;
|
|
2992
|
-
/** Required. The location resource where widget complete query will be performed. Format: `locations/{location}` */
|
|
2993
|
-
location: string;
|
|
2994
|
-
/** OAuth 2.0 token for the current user. */
|
|
2995
|
-
oauth_token?: string;
|
|
2996
|
-
/** Returns response with indentations and line breaks. */
|
|
2997
|
-
prettyPrint?: boolean;
|
|
2998
|
-
/** 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. */
|
|
2999
|
-
quotaUser?: string;
|
|
3000
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3001
|
-
upload_protocol?: string;
|
|
3002
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3003
|
-
uploadType?: string;
|
|
3004
|
-
},
|
|
3005
|
-
body: GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryRequest
|
|
3006
|
-
): Request<GoogleCloudDiscoveryengineV1alphaWidgetCompleteQueryResponse>;
|
|
3007
|
-
/** Converse a conversation with Widget. */
|
|
3008
|
-
widgetConverseConversation(request: {
|
|
3009
|
-
/** V1 error format. */
|
|
3010
|
-
'$.xgafv'?: string;
|
|
3011
|
-
/** OAuth access token. */
|
|
3012
|
-
access_token?: string;
|
|
3013
|
-
/** Data format for response. */
|
|
3014
|
-
alt?: string;
|
|
3015
|
-
/** JSONP */
|
|
3016
|
-
callback?: string;
|
|
3017
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
3018
|
-
fields?: string;
|
|
3019
|
-
/** 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. */
|
|
3020
|
-
key?: string;
|
|
3021
|
-
/** Required. The location resource where widget converse conversation will be performed. Format: `locations/{location}` */
|
|
3022
|
-
location: string;
|
|
3023
|
-
/** OAuth 2.0 token for the current user. */
|
|
3024
|
-
oauth_token?: string;
|
|
3025
|
-
/** Returns response with indentations and line breaks. */
|
|
3026
|
-
prettyPrint?: boolean;
|
|
3027
|
-
/** 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. */
|
|
3028
|
-
quotaUser?: string;
|
|
3029
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3030
|
-
upload_protocol?: string;
|
|
3031
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3032
|
-
uploadType?: string;
|
|
3033
|
-
/** Request body */
|
|
3034
|
-
resource: GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest;
|
|
3035
|
-
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse>;
|
|
3036
|
-
widgetConverseConversation(
|
|
3037
|
-
request: {
|
|
3038
|
-
/** V1 error format. */
|
|
3039
|
-
'$.xgafv'?: string;
|
|
3040
|
-
/** OAuth access token. */
|
|
3041
|
-
access_token?: string;
|
|
3042
|
-
/** Data format for response. */
|
|
3043
|
-
alt?: string;
|
|
3044
|
-
/** JSONP */
|
|
3045
|
-
callback?: string;
|
|
3046
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
3047
|
-
fields?: string;
|
|
3048
|
-
/** 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. */
|
|
3049
|
-
key?: string;
|
|
3050
|
-
/** Required. The location resource where widget converse conversation will be performed. Format: `locations/{location}` */
|
|
3051
|
-
location: string;
|
|
3052
|
-
/** OAuth 2.0 token for the current user. */
|
|
3053
|
-
oauth_token?: string;
|
|
3054
|
-
/** Returns response with indentations and line breaks. */
|
|
3055
|
-
prettyPrint?: boolean;
|
|
3056
|
-
/** 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. */
|
|
3057
|
-
quotaUser?: string;
|
|
3058
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3059
|
-
upload_protocol?: string;
|
|
3060
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3061
|
-
uploadType?: string;
|
|
3062
|
-
},
|
|
3063
|
-
body: GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationRequest
|
|
3064
|
-
): Request<GoogleCloudDiscoveryengineV1alphaWidgetConverseConversationResponse>;
|
|
3065
|
-
/** 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. */
|
|
3066
|
-
widgetSearch(request: {
|
|
3067
|
-
/** V1 error format. */
|
|
3068
|
-
'$.xgafv'?: string;
|
|
3069
|
-
/** OAuth access token. */
|
|
3070
|
-
access_token?: string;
|
|
3071
|
-
/** Data format for response. */
|
|
3072
|
-
alt?: string;
|
|
3073
|
-
/** JSONP */
|
|
3074
|
-
callback?: string;
|
|
3075
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
3076
|
-
fields?: string;
|
|
3077
|
-
/** 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. */
|
|
3078
|
-
key?: string;
|
|
3079
|
-
/** Required. The location resource where widget search will be performed. Format: `locations/{location}` */
|
|
3080
|
-
location: string;
|
|
3081
|
-
/** OAuth 2.0 token for the current user. */
|
|
3082
|
-
oauth_token?: string;
|
|
3083
|
-
/** Returns response with indentations and line breaks. */
|
|
3084
|
-
prettyPrint?: boolean;
|
|
3085
|
-
/** 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. */
|
|
3086
|
-
quotaUser?: string;
|
|
3087
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3088
|
-
upload_protocol?: string;
|
|
3089
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3090
|
-
uploadType?: string;
|
|
3091
|
-
/** Request body */
|
|
3092
|
-
resource: GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest;
|
|
3093
|
-
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse>;
|
|
3094
|
-
widgetSearch(
|
|
3095
|
-
request: {
|
|
3096
|
-
/** V1 error format. */
|
|
3097
|
-
'$.xgafv'?: string;
|
|
3098
|
-
/** OAuth access token. */
|
|
3099
|
-
access_token?: string;
|
|
3100
|
-
/** Data format for response. */
|
|
3101
|
-
alt?: string;
|
|
3102
|
-
/** JSONP */
|
|
3103
|
-
callback?: string;
|
|
3104
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
3105
|
-
fields?: string;
|
|
3106
|
-
/** 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. */
|
|
3107
|
-
key?: string;
|
|
3108
|
-
/** Required. The location resource where widget search will be performed. Format: `locations/{location}` */
|
|
3109
|
-
location: string;
|
|
3110
|
-
/** OAuth 2.0 token for the current user. */
|
|
3111
|
-
oauth_token?: string;
|
|
3112
|
-
/** Returns response with indentations and line breaks. */
|
|
3113
|
-
prettyPrint?: boolean;
|
|
3114
|
-
/** 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. */
|
|
3115
|
-
quotaUser?: string;
|
|
3116
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3117
|
-
upload_protocol?: string;
|
|
3118
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3119
|
-
uploadType?: string;
|
|
3120
|
-
},
|
|
3121
|
-
body: GoogleCloudDiscoveryengineV1alphaWidgetSearchRequest
|
|
3122
|
-
): Request<GoogleCloudDiscoveryengineV1alphaWidgetSearchResponse>;
|
|
3123
|
-
}
|
|
3124
2762
|
interface OperationsResource {
|
|
3125
2763
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
3126
2764
|
get(request?: {
|
|
@@ -3944,6 +3582,35 @@ declare namespace gapi.client {
|
|
|
3944
3582
|
body: GoogleCloudDiscoveryengineV1alphaConversation
|
|
3945
3583
|
): Request<GoogleCloudDiscoveryengineV1alphaConversation>;
|
|
3946
3584
|
}
|
|
3585
|
+
interface CustomModelsResource {
|
|
3586
|
+
/** Gets a list of all the custom models. */
|
|
3587
|
+
list(request?: {
|
|
3588
|
+
/** V1 error format. */
|
|
3589
|
+
'$.xgafv'?: string;
|
|
3590
|
+
/** OAuth access token. */
|
|
3591
|
+
access_token?: string;
|
|
3592
|
+
/** Data format for response. */
|
|
3593
|
+
alt?: string;
|
|
3594
|
+
/** JSONP */
|
|
3595
|
+
callback?: string;
|
|
3596
|
+
/** Required. The resource name of the parent Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to fetch the models from. */
|
|
3597
|
+
dataStore: string;
|
|
3598
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3599
|
+
fields?: string;
|
|
3600
|
+
/** 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. */
|
|
3601
|
+
key?: string;
|
|
3602
|
+
/** OAuth 2.0 token for the current user. */
|
|
3603
|
+
oauth_token?: string;
|
|
3604
|
+
/** Returns response with indentations and line breaks. */
|
|
3605
|
+
prettyPrint?: boolean;
|
|
3606
|
+
/** 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. */
|
|
3607
|
+
quotaUser?: string;
|
|
3608
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3609
|
+
upload_protocol?: string;
|
|
3610
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3611
|
+
uploadType?: string;
|
|
3612
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse>;
|
|
3613
|
+
}
|
|
3947
3614
|
interface OperationsResource {
|
|
3948
3615
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
3949
3616
|
get(request?: {
|
|
@@ -6084,7 +5751,7 @@ declare namespace gapi.client {
|
|
|
6084
5751
|
callback?: string;
|
|
6085
5752
|
/** Selector specifying which fields to include in a partial response. */
|
|
6086
5753
|
fields?: string;
|
|
6087
|
-
/** Filter by solution type. For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
5754
|
+
/** Filter by solution type . For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
6088
5755
|
filter?: string;
|
|
6089
5756
|
/** 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. */
|
|
6090
5757
|
key?: string;
|
|
@@ -6289,6 +5956,7 @@ declare namespace gapi.client {
|
|
|
6289
5956
|
): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
6290
5957
|
branches: BranchesResource;
|
|
6291
5958
|
conversations: ConversationsResource;
|
|
5959
|
+
customModels: CustomModelsResource;
|
|
6292
5960
|
models: ModelsResource;
|
|
6293
5961
|
operations: OperationsResource;
|
|
6294
5962
|
schemas: SchemasResource;
|
|
@@ -10245,7 +9913,7 @@ declare namespace gapi.client {
|
|
|
10245
9913
|
callback?: string;
|
|
10246
9914
|
/** Selector specifying which fields to include in a partial response. */
|
|
10247
9915
|
fields?: string;
|
|
10248
|
-
/** Filter by solution type. For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
9916
|
+
/** Filter by solution type . For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
10249
9917
|
filter?: string;
|
|
10250
9918
|
/** 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. */
|
|
10251
9919
|
key?: string;
|
|
@@ -11070,8 +10738,6 @@ declare namespace gapi.client {
|
|
|
11070
10738
|
operations: OperationsResource;
|
|
11071
10739
|
}
|
|
11072
10740
|
|
|
11073
|
-
const locations: LocationsResource;
|
|
11074
|
-
|
|
11075
10741
|
const projects: ProjectsResource;
|
|
11076
10742
|
}
|
|
11077
10743
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -69,34 +69,6 @@ gapi.auth.authorize(
|
|
|
69
69
|
After that you can use Discovery Engine API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
|
-
/*
|
|
73
|
-
Gets the Widget Config using the uuid.
|
|
74
|
-
*/
|
|
75
|
-
await gapi.client.discoveryengine.locations.lookupWidgetConfig({
|
|
76
|
-
location: 'location',
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
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.
|
|
81
|
-
*/
|
|
82
|
-
await gapi.client.discoveryengine.locations.widgetCompleteQuery({
|
|
83
|
-
location: 'location',
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
/*
|
|
87
|
-
Converse a conversation with Widget.
|
|
88
|
-
*/
|
|
89
|
-
await gapi.client.discoveryengine.locations.widgetConverseConversation({
|
|
90
|
-
location: 'location',
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
/*
|
|
94
|
-
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.
|
|
95
|
-
*/
|
|
96
|
-
await gapi.client.discoveryengine.locations.widgetSearch({
|
|
97
|
-
location: 'location',
|
|
98
|
-
});
|
|
99
|
-
|
|
100
72
|
/*
|
|
101
73
|
Gets a Project. Returns NOT_FOUND when the project is not yet created.
|
|
102
74
|
*/
|