@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250211 → 0.0.20250214
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 +522 -36
- package/package.json +1 -1
- package/readme.md +3 -0
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: 20250214
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -385,7 +385,7 @@ declare namespace gapi.client {
|
|
|
385
385
|
includeTailSuggestions?: boolean;
|
|
386
386
|
/** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT` error is returned. The exception is when the suggestion_types contains only the type `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which returns user's recently searched queries given the empty query. */
|
|
387
387
|
query?: string;
|
|
388
|
-
/** Specifies the autocomplete
|
|
388
|
+
/** Specifies the autocomplete query model, which only applies to the QUERY SuggestionType. 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. */
|
|
389
389
|
queryModel?: string;
|
|
390
390
|
/** Optional. Suggestion types to return. If empty or unspecified, query suggestions are returned. Only one suggestion type is supported at the moment. */
|
|
391
391
|
suggestionTypes?: string[];
|
|
@@ -509,11 +509,11 @@ declare namespace gapi.client {
|
|
|
509
509
|
steps?: GoogleCloudDiscoveryengineV1alphaAnswerStep[];
|
|
510
510
|
}
|
|
511
511
|
interface GoogleCloudDiscoveryengineV1alphaAnswerCitation {
|
|
512
|
-
/** End of the attributed segment, exclusive. */
|
|
512
|
+
/** End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length. */
|
|
513
513
|
endIndex?: string;
|
|
514
514
|
/** Citation sources for the attributed segment. */
|
|
515
515
|
sources?: GoogleCloudDiscoveryengineV1alphaAnswerCitationSource[];
|
|
516
|
-
/** Index indicates the start of the segment, measured in bytes (UTF-8 unicode). */
|
|
516
|
+
/** Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length. */
|
|
517
517
|
startIndex?: string;
|
|
518
518
|
}
|
|
519
519
|
interface GoogleCloudDiscoveryengineV1alphaAnswerCitationSource {
|
|
@@ -779,6 +779,10 @@ declare namespace gapi.client {
|
|
|
779
779
|
document?: string;
|
|
780
780
|
/** Structured search data. */
|
|
781
781
|
structData?: {[P in string]: any};
|
|
782
|
+
/** Output only. The title of the document. */
|
|
783
|
+
title?: string;
|
|
784
|
+
/** Output only. The URI of the document. */
|
|
785
|
+
uri?: string;
|
|
782
786
|
}
|
|
783
787
|
interface GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo {
|
|
784
788
|
/** List of cited chunk contents derived from document content. */
|
|
@@ -1064,17 +1068,17 @@ declare namespace gapi.client {
|
|
|
1064
1068
|
interface GoogleCloudDiscoveryengineV1alphaCmekConfig {
|
|
1065
1069
|
/** Output only. The default CmekConfig for the Customer. */
|
|
1066
1070
|
isDefault?: boolean;
|
|
1067
|
-
/**
|
|
1071
|
+
/** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
1068
1072
|
kmsKey?: string;
|
|
1069
|
-
/**
|
|
1073
|
+
/** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
|
|
1070
1074
|
kmsKeyVersion?: string;
|
|
1071
1075
|
/** Output only. The timestamp of the last key rotation. */
|
|
1072
1076
|
lastRotationTimestampMicros?: string;
|
|
1073
|
-
/** Required.
|
|
1077
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
1074
1078
|
name?: string;
|
|
1075
1079
|
/** Optional. Single-regional CMEKs that are required for some VAIS features. */
|
|
1076
1080
|
singleRegionKeys?: GoogleCloudDiscoveryengineV1alphaSingleRegionKey[];
|
|
1077
|
-
/** Output only.
|
|
1081
|
+
/** Output only. The states of the CmekConfig. */
|
|
1078
1082
|
state?: string;
|
|
1079
1083
|
}
|
|
1080
1084
|
interface GoogleCloudDiscoveryengineV1alphaCollection {
|
|
@@ -1162,6 +1166,8 @@ declare namespace gapi.client {
|
|
|
1162
1166
|
trigger?: string;
|
|
1163
1167
|
}
|
|
1164
1168
|
interface GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun {
|
|
1169
|
+
/** The number of documents deleted. */
|
|
1170
|
+
deletedRecordCount?: string;
|
|
1165
1171
|
/** The name of the source entity. */
|
|
1166
1172
|
entityName?: string;
|
|
1167
1173
|
/** The total number of documents failed at sync at any stage (extraction, indexing, etc). */
|
|
@@ -1433,10 +1439,14 @@ declare namespace gapi.client {
|
|
|
1433
1439
|
dataStore?: string;
|
|
1434
1440
|
/** The name of the entity. Supported values by data source: * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`, `Contract`, `Campaign` * Jira: `Issue` * Confluence: `Content`, `Space` */
|
|
1435
1441
|
entityName?: string;
|
|
1442
|
+
/** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
|
|
1443
|
+
healthcareFhirConfig?: GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig;
|
|
1436
1444
|
/** Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as `title`, and `description`. Supported key properties: * `title`: The title for data record. This would be displayed on search results. * `description`: The description for data record. This would be displayed on search results. */
|
|
1437
1445
|
keyPropertyMappings?: {[P in string]: string};
|
|
1438
1446
|
/** The parameters for the entity to facilitate data ingestion. E.g. for BigQuery connectors: * Key: `document_id_column` * Value: type STRING. The value of the column ID. */
|
|
1439
1447
|
params?: {[P in string]: any};
|
|
1448
|
+
/** Optional. The start schema to use for the DataStore created from this SourceEntity. If unset, a default vertical specialized schema will be used. This field is only used by SetUpDataConnector API, and will be ignored if used in other APIs. This field will be omitted from all API responses including GetDataConnector API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
|
|
1449
|
+
startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
|
|
1440
1450
|
}
|
|
1441
1451
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
1442
1452
|
/** 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. */
|
|
@@ -1451,7 +1461,7 @@ declare namespace gapi.client {
|
|
|
1451
1461
|
contentConfig?: string;
|
|
1452
1462
|
/** Output only. Timestamp the DataStore was created at. */
|
|
1453
1463
|
createTime?: string;
|
|
1454
|
-
/** Output only. The id of the default Schema
|
|
1464
|
+
/** Output only. The id of the default Schema associated to this data store. */
|
|
1455
1465
|
defaultSchemaId?: string;
|
|
1456
1466
|
/** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
1457
1467
|
displayName?: string;
|
|
@@ -1459,6 +1469,8 @@ declare namespace gapi.client {
|
|
|
1459
1469
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
|
|
1460
1470
|
/** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
|
|
1461
1471
|
healthcareFhirConfig?: GoogleCloudDiscoveryengineV1alphaHealthcareFhirConfig;
|
|
1472
|
+
/** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
|
|
1473
|
+
identityMappingStore?: string;
|
|
1462
1474
|
/** Output only. Data store level identity provider config. */
|
|
1463
1475
|
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
1464
1476
|
/** Immutable. The industry vertical that the data store registers. */
|
|
@@ -2794,7 +2806,7 @@ declare namespace gapi.client {
|
|
|
2794
2806
|
validUrisCount?: number;
|
|
2795
2807
|
}
|
|
2796
2808
|
interface GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest {
|
|
2797
|
-
/** Optional.
|
|
2809
|
+
/** Optional. Credential id to use for crawling. */
|
|
2798
2810
|
siteCredential?: string;
|
|
2799
2811
|
/** Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in `site_search_engine`. */
|
|
2800
2812
|
uris?: string[];
|
|
@@ -2833,6 +2845,19 @@ declare namespace gapi.client {
|
|
|
2833
2845
|
/** Output only. The state of the response. */
|
|
2834
2846
|
state?: string;
|
|
2835
2847
|
}
|
|
2848
|
+
interface GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest {
|
|
2849
|
+
/** Remove all search history suggestions for the user. */
|
|
2850
|
+
removeAllSearchHistorySuggestions?: boolean;
|
|
2851
|
+
/** Optional. Time at which the suggestion was removed. If not set, the current time will be used. */
|
|
2852
|
+
removeTime?: string;
|
|
2853
|
+
/** The search history suggestion to be removed. */
|
|
2854
|
+
searchHistorySuggestion?: string;
|
|
2855
|
+
/** Optional. Information about the end user. This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info. */
|
|
2856
|
+
userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
|
|
2857
|
+
/** Required. 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. */
|
|
2858
|
+
userPseudoId?: string;
|
|
2859
|
+
}
|
|
2860
|
+
interface GoogleCloudDiscoveryengineV1alphaRemoveSuggestionResponse {}
|
|
2836
2861
|
interface GoogleCloudDiscoveryengineV1alphaReply {
|
|
2837
2862
|
/** References in the reply. */
|
|
2838
2863
|
references?: GoogleCloudDiscoveryengineV1alphaReplyReference[];
|
|
@@ -3001,6 +3026,8 @@ declare namespace gapi.client {
|
|
|
3001
3026
|
customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
|
|
3002
3027
|
/** Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
|
|
3003
3028
|
dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
|
|
3029
|
+
/** Optional. Config for display feature, like match highlighting on search results. */
|
|
3030
|
+
displaySpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestDisplaySpec;
|
|
3004
3031
|
/** Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path. */
|
|
3005
3032
|
embeddingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec;
|
|
3006
3033
|
/** Facet specifications for faceted search. If empty, no facets are returned. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
@@ -3031,8 +3058,10 @@ declare namespace gapi.client {
|
|
|
3031
3058
|
query?: string;
|
|
3032
3059
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
3033
3060
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
|
|
3034
|
-
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
3061
|
+
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to BYOE. === BYOE === If ranking expression is not provided or set to BYOE, it should be a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. === CLEARBOX === If ranking expression is set to CLEARBOX, the following expression types (and combinations of those chained using + or * operators) are supported: * double * signal * log(signal) * exp(signal) * rr(signal, double > 0) -- reciprocal rank transformation with second argument being a denominator constant. * is_nan(signal) -- returns 0 if signal is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 * gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32) The following signals are supported: * gecko_score -- semantic similarity adjustment * bm25_score -- keyword match adjustment * jetstream_score -- semantic relevance adjustment * pctr_rank -- predicted conversion rate adjustment as a rank * freshness_rank -- freshness adjustment as a rank * base_rank -- the default rank of the result */
|
|
3035
3062
|
rankingExpression?: string;
|
|
3063
|
+
/** Optional. The backend to use for the ranking expression evaluation. */
|
|
3064
|
+
rankingExpressionBackend?: string;
|
|
3036
3065
|
/** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
|
|
3037
3066
|
regionCode?: string;
|
|
3038
3067
|
/** The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. */
|
|
@@ -3160,6 +3189,10 @@ declare namespace gapi.client {
|
|
|
3160
3189
|
/** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
|
|
3161
3190
|
filter?: string;
|
|
3162
3191
|
}
|
|
3192
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchRequestDisplaySpec {
|
|
3193
|
+
/** The condition under which match highlighting should occur. */
|
|
3194
|
+
matchHighlightingCondition?: string;
|
|
3195
|
+
}
|
|
3163
3196
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
|
|
3164
3197
|
/** The embedding vector used for retrieval. Limit to 1. */
|
|
3165
3198
|
embeddingVectors?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector[];
|
|
@@ -3223,7 +3256,7 @@ declare namespace gapi.client {
|
|
|
3223
3256
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec {
|
|
3224
3257
|
/** If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID. */
|
|
3225
3258
|
queryId?: string;
|
|
3226
|
-
/** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is
|
|
3259
|
+
/** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is similar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode. */
|
|
3227
3260
|
searchResultPersistenceCount?: number;
|
|
3228
3261
|
}
|
|
3229
3262
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec {
|
|
@@ -3819,6 +3852,208 @@ declare namespace gapi.client {
|
|
|
3819
3852
|
/** 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. */
|
|
3820
3853
|
userId?: string;
|
|
3821
3854
|
}
|
|
3855
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfig {
|
|
3856
|
+
/** Will be used for all widget access settings seen in cloud console integration page. Replaces top deprecated top level properties. */
|
|
3857
|
+
accessSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigAccessSettings;
|
|
3858
|
+
/** Allowlisted domains that can load this widget. */
|
|
3859
|
+
allowlistedDomains?: string[];
|
|
3860
|
+
/** 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. */
|
|
3861
|
+
allowPublicAccess?: boolean;
|
|
3862
|
+
/** Optional. Output only. Describes the assistant settings of the widget. */
|
|
3863
|
+
assistantSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings;
|
|
3864
|
+
/** 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. */
|
|
3865
|
+
collectionComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
|
|
3866
|
+
/** Output only. Unique obfuscated identifier of a WidgetConfig. */
|
|
3867
|
+
configId?: string;
|
|
3868
|
+
/** The content search spec that configs the desired behavior of content search. */
|
|
3869
|
+
contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
3870
|
+
/** Output only. Timestamp the WidgetConfig was created. */
|
|
3871
|
+
createTime?: string;
|
|
3872
|
+
/** Output only. The type of the parent data store. */
|
|
3873
|
+
dataStoreType?: string;
|
|
3874
|
+
/** Configurable UI configurations per data store. */
|
|
3875
|
+
dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
3876
|
+
/** The default ordering for search results if specified. Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body */
|
|
3877
|
+
defaultSearchRequestOrderBy?: string;
|
|
3878
|
+
/** 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. */
|
|
3879
|
+
displayName?: string;
|
|
3880
|
+
/** Whether or not to enable autocomplete. */
|
|
3881
|
+
enableAutocomplete?: boolean;
|
|
3882
|
+
/** Whether to allow conversational search (LLM, multi-turn) or not (non-LLM, single-turn). */
|
|
3883
|
+
enableConversationalSearch?: boolean;
|
|
3884
|
+
/** Turn on or off collecting the search result quality feedback from end users. */
|
|
3885
|
+
enableQualityFeedback?: boolean;
|
|
3886
|
+
/** Whether to show the result score. */
|
|
3887
|
+
enableResultScore?: boolean;
|
|
3888
|
+
/** Whether to enable safe search. */
|
|
3889
|
+
enableSafeSearch?: boolean;
|
|
3890
|
+
/** Whether to enable search-as-you-type behavior for the search widget */
|
|
3891
|
+
enableSearchAsYouType?: boolean;
|
|
3892
|
+
/** Turn on or off summary for each snippets result. */
|
|
3893
|
+
enableSnippetResultSummary?: boolean;
|
|
3894
|
+
/** Turn on or off summarization for the search response. */
|
|
3895
|
+
enableSummarization?: boolean;
|
|
3896
|
+
/** Whether to enable standalone web app. */
|
|
3897
|
+
enableWebApp?: boolean;
|
|
3898
|
+
/** Allows to toggle unstable/experimental features in the widget (or web app) */
|
|
3899
|
+
experimentalFeatures?: {[P in string]: string};
|
|
3900
|
+
/** The configuration and appearance of facets in the end user view. */
|
|
3901
|
+
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
3902
|
+
/** 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. */
|
|
3903
|
+
fieldsUiComponentsMap?: {
|
|
3904
|
+
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
3905
|
+
};
|
|
3906
|
+
/** Optional. Describes the homepage settings of the widget. */
|
|
3907
|
+
homepageSetting?: GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSetting;
|
|
3908
|
+
/** Output only. The industry vertical that the WidgetConfig registers. The WidgetConfig industry vertical is based on the associated Engine. */
|
|
3909
|
+
industryVertical?: string;
|
|
3910
|
+
/** Output only. Whether LLM is enabled in the corresponding data store. */
|
|
3911
|
+
llmEnabled?: boolean;
|
|
3912
|
+
/** Output only. Whether the customer accepted data use terms. */
|
|
3913
|
+
minimumDataTermAccepted?: boolean;
|
|
3914
|
+
/** 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. */
|
|
3915
|
+
name?: string;
|
|
3916
|
+
/** 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. */
|
|
3917
|
+
resultDisplayType?: string;
|
|
3918
|
+
/** Required. Immutable. Specifies the solution type that this WidgetConfig can be used for. */
|
|
3919
|
+
solutionType?: string;
|
|
3920
|
+
/** Describes search widget UI branding settings, such as the widget title, logo, favicons, and colors. */
|
|
3921
|
+
uiBranding?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiBrandingSettings;
|
|
3922
|
+
/** Describes general widget search settings as seen in cloud console widget configuration page. Replaces top deprecated top level properties. */
|
|
3923
|
+
uiSettings?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings;
|
|
3924
|
+
/** Output only. Timestamp the WidgetConfig was updated. */
|
|
3925
|
+
updateTime?: string;
|
|
3926
|
+
}
|
|
3927
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAccessSettings {
|
|
3928
|
+
/** List of domains that are allowed to integrate the search widget. */
|
|
3929
|
+
allowlistedDomains?: string[];
|
|
3930
|
+
/** Whether public unauthenticated access is allowed. */
|
|
3931
|
+
allowPublicAccess?: boolean;
|
|
3932
|
+
/** Whether web app access is enabled. */
|
|
3933
|
+
enableWebApp?: boolean;
|
|
3934
|
+
}
|
|
3935
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
|
|
3936
|
+
/** Whether or not the Google search grounding toggle is shown. */
|
|
3937
|
+
googleSearchGroundingEnabled?: boolean;
|
|
3938
|
+
}
|
|
3939
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
3940
|
+
/** Output only. The icon link of the connector source. */
|
|
3941
|
+
connectorIconLink?: string;
|
|
3942
|
+
/** The name of the data source, retrieved from `Collection.data_connector.data_source`. */
|
|
3943
|
+
dataSource?: string;
|
|
3944
|
+
/** For the data store collection, list of the children data stores. */
|
|
3945
|
+
dataStoreComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
|
|
3946
|
+
/** The display name of the collection. */
|
|
3947
|
+
displayName?: string;
|
|
3948
|
+
/** 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. */
|
|
3949
|
+
id?: string;
|
|
3950
|
+
/** The name of the collection. It should be collection resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
3951
|
+
name?: string;
|
|
3952
|
+
}
|
|
3953
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
|
|
3954
|
+
/** Output only. The content config of the data store. */
|
|
3955
|
+
contentConfig?: string;
|
|
3956
|
+
/** The display name of the data store. */
|
|
3957
|
+
displayName?: string;
|
|
3958
|
+
/** The name of the entity, retrieved from `Collection.data_connector.entities.entityName`. */
|
|
3959
|
+
entityName?: string;
|
|
3960
|
+
/** 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. */
|
|
3961
|
+
id?: string;
|
|
3962
|
+
/** The name of the data store. It should be data store resource name Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
3963
|
+
name?: string;
|
|
3964
|
+
/** Output only. Workspace Source Types for workspace data, retrieved from `DataStore.workspace_config.type`. */
|
|
3965
|
+
workspaceType?: string;
|
|
3966
|
+
}
|
|
3967
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
|
|
3968
|
+
/** Facet fields that store the mapping of fields to end user widget appearance. */
|
|
3969
|
+
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
3970
|
+
/** 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. */
|
|
3971
|
+
fieldsUiComponentsMap?: {
|
|
3972
|
+
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
3973
|
+
};
|
|
3974
|
+
/** 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. */
|
|
3975
|
+
id?: string;
|
|
3976
|
+
/** The name of the data store. It should be data store resource name Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For APIs under WidgetService, such as WidgetService.LookUpWidgetConfig, the project number and location part is erased in this field. */
|
|
3977
|
+
name?: string;
|
|
3978
|
+
}
|
|
3979
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
|
|
3980
|
+
/** Optional. The field name that end users will see. */
|
|
3981
|
+
displayName?: string;
|
|
3982
|
+
/** Required. Registered field name. The format is `field.abc`. */
|
|
3983
|
+
field?: string;
|
|
3984
|
+
}
|
|
3985
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSetting {
|
|
3986
|
+
/** Optional. The shortcuts to display on the homepage. LINT.IfChange(max_shortcuts_number) LINT.ThenChange(//depot/google3/cloud/console/web/ai/unified_cloud_search/components/widget_preview/widget_homepage_shortcut_config_form.ts:max_shortcuts_number) */
|
|
3987
|
+
shortcuts?: GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSettingShortcut[];
|
|
3988
|
+
}
|
|
3989
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigHomepageSettingShortcut {
|
|
3990
|
+
/** Optional. Destination URL of shortcut. */
|
|
3991
|
+
destinationUri?: string;
|
|
3992
|
+
/** Optional. Icon URL of shortcut. */
|
|
3993
|
+
icon?: GoogleCloudDiscoveryengineV1alphaWidgetConfigImage;
|
|
3994
|
+
/** Optional. Title of the shortcut. */
|
|
3995
|
+
title?: string;
|
|
3996
|
+
}
|
|
3997
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigImage {
|
|
3998
|
+
/** Image URL. */
|
|
3999
|
+
url?: string;
|
|
4000
|
+
}
|
|
4001
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiBrandingSettings {
|
|
4002
|
+
/** Logo image. */
|
|
4003
|
+
logo?: GoogleCloudDiscoveryengineV1alphaWidgetConfigImage;
|
|
4004
|
+
}
|
|
4005
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField {
|
|
4006
|
+
/** The field visibility on different types of devices. */
|
|
4007
|
+
deviceVisibility?: string[];
|
|
4008
|
+
/** The template to customize how the field is displayed. An example value would be a string that looks like: "Price: {value}". */
|
|
4009
|
+
displayTemplate?: string;
|
|
4010
|
+
/** Required. Registered field name. The format is `field.abc`. */
|
|
4011
|
+
field?: string;
|
|
4012
|
+
}
|
|
4013
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings {
|
|
4014
|
+
/** Per data store configuration. */
|
|
4015
|
+
dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
4016
|
+
/** The default ordering for search results if specified. Used to set SearchRequest#order_by on applicable requests. https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.dataStores.servingConfigs/search#request-body */
|
|
4017
|
+
defaultSearchRequestOrderBy?: string;
|
|
4018
|
+
/** If set to true, the widget will not collect user events. */
|
|
4019
|
+
disableUserEventsCollection?: boolean;
|
|
4020
|
+
/** Whether or not to enable autocomplete. */
|
|
4021
|
+
enableAutocomplete?: boolean;
|
|
4022
|
+
/** Turn on or off collecting the search result quality feedback from end users. */
|
|
4023
|
+
enableQualityFeedback?: boolean;
|
|
4024
|
+
/** Whether to enable safe search. */
|
|
4025
|
+
enableSafeSearch?: boolean;
|
|
4026
|
+
/** Whether to enable search-as-you-type behavior for the search widget. */
|
|
4027
|
+
enableSearchAsYouType?: boolean;
|
|
4028
|
+
/** If set to true, the widget will enable visual content summary on applicable search requests. Only used by healthcare search. */
|
|
4029
|
+
enableVisualContentSummary?: boolean;
|
|
4030
|
+
/** Describes generative answer configuration. */
|
|
4031
|
+
generativeAnswerConfig?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig;
|
|
4032
|
+
/** Describes widget (or web app) interaction type */
|
|
4033
|
+
interactionType?: string;
|
|
4034
|
+
/** Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified. */
|
|
4035
|
+
resultDescriptionType?: string;
|
|
4036
|
+
}
|
|
4037
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig {
|
|
4038
|
+
/** Whether generated answer contains suggested related questions. */
|
|
4039
|
+
disableRelatedQuestions?: boolean;
|
|
4040
|
+
/** Optional. Specifies whether to filter out queries that are adversarial. */
|
|
4041
|
+
ignoreAdversarialQuery?: boolean;
|
|
4042
|
+
/** Optional. Specifies whether to filter out queries that are not relevant to the content. */
|
|
4043
|
+
ignoreLowRelevantContent?: boolean;
|
|
4044
|
+
/** Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is `false`. No answer is returned if the search query is classified as a non-answer seeking query. If this field is set to `true`, we skip generating answers for non-answer seeking queries and return fallback messages instead. */
|
|
4045
|
+
ignoreNonAnswerSeekingQuery?: boolean;
|
|
4046
|
+
/** Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature. */
|
|
4047
|
+
languageCode?: string;
|
|
4048
|
+
/** Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. */
|
|
4049
|
+
maxRephraseSteps?: number;
|
|
4050
|
+
/** Text at the beginning of the prompt that instructs the model that generates the answer. */
|
|
4051
|
+
modelPromptPreamble?: string;
|
|
4052
|
+
/** The model version used to generate the answer. */
|
|
4053
|
+
modelVersion?: string;
|
|
4054
|
+
/** The number of top results to generate the answer from. Up to 10. */
|
|
4055
|
+
resultCount?: number;
|
|
4056
|
+
}
|
|
3822
4057
|
interface GoogleCloudDiscoveryengineV1alphaWorkspaceConfig {
|
|
3823
4058
|
/** Obfuscated Dasher customer ID. */
|
|
3824
4059
|
dasherCustomerId?: string;
|
|
@@ -3858,17 +4093,17 @@ declare namespace gapi.client {
|
|
|
3858
4093
|
interface GoogleCloudDiscoveryengineV1betaCmekConfig {
|
|
3859
4094
|
/** Output only. The default CmekConfig for the Customer. */
|
|
3860
4095
|
isDefault?: boolean;
|
|
3861
|
-
/**
|
|
4096
|
+
/** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
3862
4097
|
kmsKey?: string;
|
|
3863
|
-
/**
|
|
4098
|
+
/** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
|
|
3864
4099
|
kmsKeyVersion?: string;
|
|
3865
4100
|
/** Output only. The timestamp of the last key rotation. */
|
|
3866
4101
|
lastRotationTimestampMicros?: string;
|
|
3867
|
-
/** Required.
|
|
4102
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
3868
4103
|
name?: string;
|
|
3869
4104
|
/** Optional. Single-regional CMEKs that are required for some VAIS features. */
|
|
3870
4105
|
singleRegionKeys?: GoogleCloudDiscoveryengineV1betaSingleRegionKey[];
|
|
3871
|
-
/** Output only.
|
|
4106
|
+
/** Output only. The states of the CmekConfig. */
|
|
3872
4107
|
state?: string;
|
|
3873
4108
|
}
|
|
3874
4109
|
interface GoogleCloudDiscoveryengineV1betaCondition {
|
|
@@ -3963,6 +4198,10 @@ declare namespace gapi.client {
|
|
|
3963
4198
|
/** Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
3964
4199
|
synonyms?: string[];
|
|
3965
4200
|
}
|
|
4201
|
+
interface GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries {
|
|
4202
|
+
/** The QPS of the crawl rate. */
|
|
4203
|
+
qpsTimeSeries?: GoogleMonitoringV3TimeSeries;
|
|
4204
|
+
}
|
|
3966
4205
|
interface GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata {
|
|
3967
4206
|
/** Operation create time. */
|
|
3968
4207
|
createTime?: string;
|
|
@@ -4005,7 +4244,7 @@ declare namespace gapi.client {
|
|
|
4005
4244
|
contentConfig?: string;
|
|
4006
4245
|
/** Output only. Timestamp the DataStore was created at. */
|
|
4007
4246
|
createTime?: string;
|
|
4008
|
-
/** Output only. The id of the default Schema
|
|
4247
|
+
/** Output only. The id of the default Schema associated to this data store. */
|
|
4009
4248
|
defaultSchemaId?: string;
|
|
4010
4249
|
/** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
4011
4250
|
displayName?: string;
|
|
@@ -4013,6 +4252,8 @@ declare namespace gapi.client {
|
|
|
4013
4252
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
|
|
4014
4253
|
/** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
|
|
4015
4254
|
healthcareFhirConfig?: GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig;
|
|
4255
|
+
/** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
|
|
4256
|
+
identityMappingStore?: string;
|
|
4016
4257
|
/** Immutable. The industry vertical that the data store registers. */
|
|
4017
4258
|
industryVertical?: string;
|
|
4018
4259
|
/** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
|
|
@@ -4052,6 +4293,12 @@ declare namespace gapi.client {
|
|
|
4052
4293
|
/** If set true, the DataStore will not be available for serving search requests. */
|
|
4053
4294
|
disabledForServing?: boolean;
|
|
4054
4295
|
}
|
|
4296
|
+
interface GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries {
|
|
4297
|
+
/** Vertex AI's dedicated crawl rate time series of auto-refresh, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and the crawl rate is for best effort use cases like refreshing urls periodically. */
|
|
4298
|
+
autoRefreshCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
|
|
4299
|
+
/** Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users. */
|
|
4300
|
+
userTriggeredCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
|
|
4301
|
+
}
|
|
4055
4302
|
interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
|
|
4056
4303
|
/** Operation create time. */
|
|
4057
4304
|
createTime?: string;
|
|
@@ -4224,14 +4471,6 @@ declare namespace gapi.client {
|
|
|
4224
4471
|
/** Required. The full resource name of the SampleQuerySet used for the evaluation, in the format of `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. */
|
|
4225
4472
|
sampleQuerySet?: string;
|
|
4226
4473
|
}
|
|
4227
|
-
interface GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse {
|
|
4228
|
-
/** List of Sitemaps fetched. */
|
|
4229
|
-
sitemapsMetadata?: GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata[];
|
|
4230
|
-
}
|
|
4231
|
-
interface GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata {
|
|
4232
|
-
/** The Sitemap. */
|
|
4233
|
-
sitemap?: GoogleCloudDiscoveryengineV1betaSitemap;
|
|
4234
|
-
}
|
|
4235
4474
|
interface GoogleCloudDiscoveryengineV1betaHealthcareFhirConfig {
|
|
4236
4475
|
/** Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If set to `true`, the predefined healthcare fhir schema can be extended for more customized searching and filtering. */
|
|
4237
4476
|
enableConfigurableSchema?: boolean;
|
|
@@ -4364,6 +4603,22 @@ declare namespace gapi.client {
|
|
|
4364
4603
|
/** Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED. */
|
|
4365
4604
|
mode?: string;
|
|
4366
4605
|
}
|
|
4606
|
+
interface GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse {
|
|
4607
|
+
/** The historical dedicated crawl rate timeseries data, used for monitoring. */
|
|
4608
|
+
dedicatedCrawlRateTimeSeries?: GoogleCloudDiscoveryengineV1betaDedicatedCrawlRateTimeSeries;
|
|
4609
|
+
/** Errors from service when handling the request. */
|
|
4610
|
+
error?: GoogleRpcStatus;
|
|
4611
|
+
/** The historical organic crawl rate timeseries data, used for monitoring. */
|
|
4612
|
+
organicCrawlRateTimeSeries?: GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries;
|
|
4613
|
+
/** Output only. The state of the response. */
|
|
4614
|
+
state?: string;
|
|
4615
|
+
}
|
|
4616
|
+
interface GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries {
|
|
4617
|
+
/** Google's organic crawl rate time series, which is the sum of all googlebots' crawl rate. Please refer to https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers for more details about googlebots. */
|
|
4618
|
+
googleOrganicCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
|
|
4619
|
+
/** Vertex AI's organic crawl rate time series, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is not set. Please refer to https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers#google-cloudvertexbot for more details about Google-CloudVertexBot. */
|
|
4620
|
+
vertexAiOrganicCrawlRate?: GoogleCloudDiscoveryengineV1betaCrawlRateTimeSeries;
|
|
4621
|
+
}
|
|
4367
4622
|
interface GoogleCloudDiscoveryengineV1betaProject {
|
|
4368
4623
|
/** Output only. The timestamp when this project is created. */
|
|
4369
4624
|
createTime?: string;
|
|
@@ -4441,6 +4696,18 @@ declare namespace gapi.client {
|
|
|
4441
4696
|
/** The top-5 value. */
|
|
4442
4697
|
top5?: number;
|
|
4443
4698
|
}
|
|
4699
|
+
interface GoogleCloudDiscoveryengineV1betaRemoveDedicatedCrawlRateMetadata {
|
|
4700
|
+
/** Operation create time. */
|
|
4701
|
+
createTime?: string;
|
|
4702
|
+
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
4703
|
+
updateTime?: string;
|
|
4704
|
+
}
|
|
4705
|
+
interface GoogleCloudDiscoveryengineV1betaRemoveDedicatedCrawlRateResponse {
|
|
4706
|
+
/** Errors from service when handling the request. */
|
|
4707
|
+
error?: GoogleRpcStatus;
|
|
4708
|
+
/** Output only. The state of the response. */
|
|
4709
|
+
state?: string;
|
|
4710
|
+
}
|
|
4444
4711
|
interface GoogleCloudDiscoveryengineV1betaSchema {
|
|
4445
4712
|
/** The JSON representation of the schema. */
|
|
4446
4713
|
jsonSchema?: string;
|
|
@@ -4502,8 +4769,10 @@ declare namespace gapi.client {
|
|
|
4502
4769
|
query?: string;
|
|
4503
4770
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
4504
4771
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec;
|
|
4505
|
-
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
4772
|
+
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to BYOE. === BYOE === If ranking expression is not provided or set to BYOE, it should be a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. === CLEARBOX === If ranking expression is set to CLEARBOX, the following expression types (and combinations of those chained using + or * operators) are supported: * double * signal * log(signal) * exp(signal) * rr(signal, double > 0) -- reciprocal rank transformation with second argument being a denominator constant. * is_nan(signal) -- returns 0 if signal is NaN, 1 otherwise. * fill_nan(signal1, signal2 | double) -- if signal1 is NaN, returns signal2 | double, else returns signal1. Examples: * 0.2 * gecko_score + 0.8 * log(bm25_score) * 0.2 * exp(fill_nan(gecko_score, 0)) + 0.3 * is_nan(bm25_score) * 0.2 * rr(gecko_score, 16) + 0.8 * rr(bm25_score, 32) The following signals are supported: * gecko_score -- semantic similarity adjustment * bm25_score -- keyword match adjustment * jetstream_score -- semantic relevance adjustment * pctr_rank -- predicted conversion rate adjustment as a rank * freshness_rank -- freshness adjustment as a rank * base_rank -- the default rank of the result */
|
|
4506
4773
|
rankingExpression?: string;
|
|
4774
|
+
/** Optional. The backend to use for the ranking expression evaluation. */
|
|
4775
|
+
rankingExpressionBackend?: string;
|
|
4507
4776
|
/** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
|
|
4508
4777
|
regionCode?: string;
|
|
4509
4778
|
/** The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. */
|
|
@@ -4694,13 +4963,25 @@ declare namespace gapi.client {
|
|
|
4694
4963
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec {
|
|
4695
4964
|
/** If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID. */
|
|
4696
4965
|
queryId?: string;
|
|
4697
|
-
/** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is
|
|
4966
|
+
/** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is similar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode. */
|
|
4698
4967
|
searchResultPersistenceCount?: number;
|
|
4699
4968
|
}
|
|
4700
4969
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec {
|
|
4701
4970
|
/** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
|
|
4702
4971
|
mode?: string;
|
|
4703
4972
|
}
|
|
4973
|
+
interface GoogleCloudDiscoveryengineV1betaSetDedicatedCrawlRateMetadata {
|
|
4974
|
+
/** Operation create time. */
|
|
4975
|
+
createTime?: string;
|
|
4976
|
+
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
4977
|
+
updateTime?: string;
|
|
4978
|
+
}
|
|
4979
|
+
interface GoogleCloudDiscoveryengineV1betaSetDedicatedCrawlRateResponse {
|
|
4980
|
+
/** Errors from service when handling the request. */
|
|
4981
|
+
error?: GoogleRpcStatus;
|
|
4982
|
+
/** Output only. The state of the response. */
|
|
4983
|
+
state?: string;
|
|
4984
|
+
}
|
|
4704
4985
|
interface GoogleCloudDiscoveryengineV1betaSingleRegionKey {
|
|
4705
4986
|
/** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
4706
4987
|
kmsKey?: string;
|
|
@@ -4803,17 +5084,17 @@ declare namespace gapi.client {
|
|
|
4803
5084
|
interface GoogleCloudDiscoveryengineV1CmekConfig {
|
|
4804
5085
|
/** Output only. The default CmekConfig for the Customer. */
|
|
4805
5086
|
isDefault?: boolean;
|
|
4806
|
-
/**
|
|
5087
|
+
/** KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
4807
5088
|
kmsKey?: string;
|
|
4808
|
-
/**
|
|
5089
|
+
/** KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. */
|
|
4809
5090
|
kmsKeyVersion?: string;
|
|
4810
5091
|
/** Output only. The timestamp of the last key rotation. */
|
|
4811
5092
|
lastRotationTimestampMicros?: string;
|
|
4812
|
-
/** Required.
|
|
5093
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
4813
5094
|
name?: string;
|
|
4814
5095
|
/** Optional. Single-regional CMEKs that are required for some VAIS features. */
|
|
4815
5096
|
singleRegionKeys?: GoogleCloudDiscoveryengineV1SingleRegionKey[];
|
|
4816
|
-
/** Output only.
|
|
5097
|
+
/** Output only. The states of the CmekConfig. */
|
|
4817
5098
|
state?: string;
|
|
4818
5099
|
}
|
|
4819
5100
|
interface GoogleCloudDiscoveryengineV1Condition {
|
|
@@ -4926,6 +5207,12 @@ declare namespace gapi.client {
|
|
|
4926
5207
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
4927
5208
|
updateTime?: string;
|
|
4928
5209
|
}
|
|
5210
|
+
interface GoogleCloudDiscoveryengineV1CreateSitemapMetadata {
|
|
5211
|
+
/** Operation create time. */
|
|
5212
|
+
createTime?: string;
|
|
5213
|
+
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
5214
|
+
updateTime?: string;
|
|
5215
|
+
}
|
|
4929
5216
|
interface GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata {
|
|
4930
5217
|
/** Operation create time. */
|
|
4931
5218
|
createTime?: string;
|
|
@@ -4943,7 +5230,7 @@ declare namespace gapi.client {
|
|
|
4943
5230
|
contentConfig?: string;
|
|
4944
5231
|
/** Output only. Timestamp the DataStore was created at. */
|
|
4945
5232
|
createTime?: string;
|
|
4946
|
-
/** Output only. The id of the default Schema
|
|
5233
|
+
/** Output only. The id of the default Schema associated to this data store. */
|
|
4947
5234
|
defaultSchemaId?: string;
|
|
4948
5235
|
/** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
4949
5236
|
displayName?: string;
|
|
@@ -4951,6 +5238,8 @@ declare namespace gapi.client {
|
|
|
4951
5238
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
|
|
4952
5239
|
/** Optional. Configuration for `HEALTHCARE_FHIR` vertical. */
|
|
4953
5240
|
healthcareFhirConfig?: GoogleCloudDiscoveryengineV1HealthcareFhirConfig;
|
|
5241
|
+
/** Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. */
|
|
5242
|
+
identityMappingStore?: string;
|
|
4954
5243
|
/** Immutable. The industry vertical that the data store registers. */
|
|
4955
5244
|
industryVertical?: string;
|
|
4956
5245
|
/** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
|
|
@@ -5016,6 +5305,12 @@ declare namespace gapi.client {
|
|
|
5016
5305
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
5017
5306
|
updateTime?: string;
|
|
5018
5307
|
}
|
|
5308
|
+
interface GoogleCloudDiscoveryengineV1DeleteSitemapMetadata {
|
|
5309
|
+
/** Operation create time. */
|
|
5310
|
+
createTime?: string;
|
|
5311
|
+
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
5312
|
+
updateTime?: string;
|
|
5313
|
+
}
|
|
5019
5314
|
interface GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata {
|
|
5020
5315
|
/** Operation create time. */
|
|
5021
5316
|
createTime?: string;
|
|
@@ -5435,6 +5730,14 @@ declare namespace gapi.client {
|
|
|
5435
5730
|
/** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
5436
5731
|
kmsKey?: string;
|
|
5437
5732
|
}
|
|
5733
|
+
interface GoogleCloudDiscoveryengineV1Sitemap {
|
|
5734
|
+
/** Output only. The sitemap's creation time. */
|
|
5735
|
+
createTime?: string;
|
|
5736
|
+
/** Output only. The fully qualified resource name of the sitemap. `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*` The `sitemap_id` suffix is system-generated. */
|
|
5737
|
+
name?: string;
|
|
5738
|
+
/** Public URI for the sitemap, e.g. `www.example.com/sitemap.xml`. */
|
|
5739
|
+
uri?: string;
|
|
5740
|
+
}
|
|
5438
5741
|
interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
|
|
5439
5742
|
/** Site verification state indicating the ownership and validity. */
|
|
5440
5743
|
siteVerificationState?: string;
|
|
@@ -5803,7 +6106,7 @@ declare namespace gapi.client {
|
|
|
5803
6106
|
fields?: string;
|
|
5804
6107
|
/** 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. */
|
|
5805
6108
|
key?: string;
|
|
5806
|
-
/** Required.
|
|
6109
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
5807
6110
|
name: string;
|
|
5808
6111
|
/** OAuth 2.0 token for the current user. */
|
|
5809
6112
|
oauth_token?: string;
|
|
@@ -5834,7 +6137,7 @@ declare namespace gapi.client {
|
|
|
5834
6137
|
fields?: string;
|
|
5835
6138
|
/** 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. */
|
|
5836
6139
|
key?: string;
|
|
5837
|
-
/** Required.
|
|
6140
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
5838
6141
|
name: string;
|
|
5839
6142
|
/** OAuth 2.0 token for the current user. */
|
|
5840
6143
|
oauth_token?: string;
|
|
@@ -8480,6 +8783,35 @@ declare namespace gapi.client {
|
|
|
8480
8783
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8481
8784
|
uploadType?: string;
|
|
8482
8785
|
}): Request<GoogleLongrunningOperation>;
|
|
8786
|
+
/** Fetch Sitemaps in a DataStore. */
|
|
8787
|
+
fetch(request?: {
|
|
8788
|
+
/** V1 error format. */
|
|
8789
|
+
'$.xgafv'?: string;
|
|
8790
|
+
/** OAuth access token. */
|
|
8791
|
+
access_token?: string;
|
|
8792
|
+
/** Data format for response. */
|
|
8793
|
+
alt?: string;
|
|
8794
|
+
/** JSONP */
|
|
8795
|
+
callback?: string;
|
|
8796
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8797
|
+
fields?: string;
|
|
8798
|
+
/** 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. */
|
|
8799
|
+
key?: string;
|
|
8800
|
+
/** The Sitemap uris. */
|
|
8801
|
+
'matcher.urisMatcher.uris'?: string | string[];
|
|
8802
|
+
/** OAuth 2.0 token for the current user. */
|
|
8803
|
+
oauth_token?: string;
|
|
8804
|
+
/** Required. Parent resource name of the SiteSearchEngine, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. */
|
|
8805
|
+
parent: string;
|
|
8806
|
+
/** Returns response with indentations and line breaks. */
|
|
8807
|
+
prettyPrint?: boolean;
|
|
8808
|
+
/** 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. */
|
|
8809
|
+
quotaUser?: string;
|
|
8810
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8811
|
+
upload_protocol?: string;
|
|
8812
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8813
|
+
uploadType?: string;
|
|
8814
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse>;
|
|
8483
8815
|
}
|
|
8484
8816
|
interface OperationsResource {
|
|
8485
8817
|
/** 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. */
|
|
@@ -9489,6 +9821,37 @@ declare namespace gapi.client {
|
|
|
9489
9821
|
body: GoogleCloudDiscoveryengineV1alphaUserEvent,
|
|
9490
9822
|
): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
|
|
9491
9823
|
}
|
|
9824
|
+
interface WidgetConfigsResource {
|
|
9825
|
+
/** Gets a WidgetConfig. */
|
|
9826
|
+
get(request?: {
|
|
9827
|
+
/** V1 error format. */
|
|
9828
|
+
'$.xgafv'?: string;
|
|
9829
|
+
/** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
|
|
9830
|
+
acceptCache?: boolean;
|
|
9831
|
+
/** OAuth access token. */
|
|
9832
|
+
access_token?: string;
|
|
9833
|
+
/** Data format for response. */
|
|
9834
|
+
alt?: string;
|
|
9835
|
+
/** JSONP */
|
|
9836
|
+
callback?: string;
|
|
9837
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
9838
|
+
fields?: string;
|
|
9839
|
+
/** 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. */
|
|
9840
|
+
key?: string;
|
|
9841
|
+
/** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
|
|
9842
|
+
name: string;
|
|
9843
|
+
/** OAuth 2.0 token for the current user. */
|
|
9844
|
+
oauth_token?: string;
|
|
9845
|
+
/** Returns response with indentations and line breaks. */
|
|
9846
|
+
prettyPrint?: boolean;
|
|
9847
|
+
/** 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. */
|
|
9848
|
+
quotaUser?: string;
|
|
9849
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
9850
|
+
upload_protocol?: string;
|
|
9851
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
9852
|
+
uploadType?: string;
|
|
9853
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
|
|
9854
|
+
}
|
|
9492
9855
|
interface DataStoresResource {
|
|
9493
9856
|
/** Completes the specified user input with keyword suggestions. */
|
|
9494
9857
|
completeQuery(request?: {
|
|
@@ -9940,6 +10303,7 @@ declare namespace gapi.client {
|
|
|
9940
10303
|
siteSearchEngine: SiteSearchEngineResource;
|
|
9941
10304
|
suggestionDenyListEntries: SuggestionDenyListEntriesResource;
|
|
9942
10305
|
userEvents: UserEventsResource;
|
|
10306
|
+
widgetConfigs: WidgetConfigsResource;
|
|
9943
10307
|
}
|
|
9944
10308
|
interface CompletionConfigResource {
|
|
9945
10309
|
/** Completes the user input with advanced keyword suggestions. */
|
|
@@ -10000,6 +10364,64 @@ declare namespace gapi.client {
|
|
|
10000
10364
|
},
|
|
10001
10365
|
body: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest,
|
|
10002
10366
|
): Request<GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse>;
|
|
10367
|
+
/** Removes the search history suggestion in an engine for a user. This will remove the suggestion from being returned in the AdvancedCompleteQueryResponse.recent_search_suggestions for this user. If the user searches the same suggestion again, the new history will override and suggest this suggestion again. */
|
|
10368
|
+
removeSuggestion(request: {
|
|
10369
|
+
/** V1 error format. */
|
|
10370
|
+
'$.xgafv'?: string;
|
|
10371
|
+
/** OAuth access token. */
|
|
10372
|
+
access_token?: string;
|
|
10373
|
+
/** Data format for response. */
|
|
10374
|
+
alt?: string;
|
|
10375
|
+
/** JSONP */
|
|
10376
|
+
callback?: string;
|
|
10377
|
+
/** Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`. */
|
|
10378
|
+
completionConfig: string;
|
|
10379
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
10380
|
+
fields?: string;
|
|
10381
|
+
/** 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. */
|
|
10382
|
+
key?: string;
|
|
10383
|
+
/** OAuth 2.0 token for the current user. */
|
|
10384
|
+
oauth_token?: string;
|
|
10385
|
+
/** Returns response with indentations and line breaks. */
|
|
10386
|
+
prettyPrint?: boolean;
|
|
10387
|
+
/** 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. */
|
|
10388
|
+
quotaUser?: string;
|
|
10389
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
10390
|
+
upload_protocol?: string;
|
|
10391
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
10392
|
+
uploadType?: string;
|
|
10393
|
+
/** Request body */
|
|
10394
|
+
resource: GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest;
|
|
10395
|
+
}): Request<{}>;
|
|
10396
|
+
removeSuggestion(
|
|
10397
|
+
request: {
|
|
10398
|
+
/** V1 error format. */
|
|
10399
|
+
'$.xgafv'?: string;
|
|
10400
|
+
/** OAuth access token. */
|
|
10401
|
+
access_token?: string;
|
|
10402
|
+
/** Data format for response. */
|
|
10403
|
+
alt?: string;
|
|
10404
|
+
/** JSONP */
|
|
10405
|
+
callback?: string;
|
|
10406
|
+
/** Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`. */
|
|
10407
|
+
completionConfig: string;
|
|
10408
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
10409
|
+
fields?: string;
|
|
10410
|
+
/** 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. */
|
|
10411
|
+
key?: string;
|
|
10412
|
+
/** OAuth 2.0 token for the current user. */
|
|
10413
|
+
oauth_token?: string;
|
|
10414
|
+
/** Returns response with indentations and line breaks. */
|
|
10415
|
+
prettyPrint?: boolean;
|
|
10416
|
+
/** 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. */
|
|
10417
|
+
quotaUser?: string;
|
|
10418
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
10419
|
+
upload_protocol?: string;
|
|
10420
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
10421
|
+
uploadType?: string;
|
|
10422
|
+
},
|
|
10423
|
+
body: GoogleCloudDiscoveryengineV1alphaRemoveSuggestionRequest,
|
|
10424
|
+
): Request<{}>;
|
|
10003
10425
|
}
|
|
10004
10426
|
interface ControlsResource {
|
|
10005
10427
|
/** Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the Control to create already exists, an ALREADY_EXISTS error is returned. */
|
|
@@ -11200,6 +11622,37 @@ declare namespace gapi.client {
|
|
|
11200
11622
|
): Request<GoogleCloudDiscoveryengineV1alphaSession>;
|
|
11201
11623
|
answers: AnswersResource;
|
|
11202
11624
|
}
|
|
11625
|
+
interface WidgetConfigsResource {
|
|
11626
|
+
/** Gets a WidgetConfig. */
|
|
11627
|
+
get(request?: {
|
|
11628
|
+
/** V1 error format. */
|
|
11629
|
+
'$.xgafv'?: string;
|
|
11630
|
+
/** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
|
|
11631
|
+
acceptCache?: boolean;
|
|
11632
|
+
/** OAuth access token. */
|
|
11633
|
+
access_token?: string;
|
|
11634
|
+
/** Data format for response. */
|
|
11635
|
+
alt?: string;
|
|
11636
|
+
/** JSONP */
|
|
11637
|
+
callback?: string;
|
|
11638
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
11639
|
+
fields?: string;
|
|
11640
|
+
/** 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. */
|
|
11641
|
+
key?: string;
|
|
11642
|
+
/** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
|
|
11643
|
+
name: string;
|
|
11644
|
+
/** OAuth 2.0 token for the current user. */
|
|
11645
|
+
oauth_token?: string;
|
|
11646
|
+
/** Returns response with indentations and line breaks. */
|
|
11647
|
+
prettyPrint?: boolean;
|
|
11648
|
+
/** 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. */
|
|
11649
|
+
quotaUser?: string;
|
|
11650
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
11651
|
+
upload_protocol?: string;
|
|
11652
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
11653
|
+
uploadType?: string;
|
|
11654
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
|
|
11655
|
+
}
|
|
11203
11656
|
interface EnginesResource {
|
|
11204
11657
|
/** Creates a Engine. */
|
|
11205
11658
|
create(request: {
|
|
@@ -11592,6 +12045,7 @@ declare namespace gapi.client {
|
|
|
11592
12045
|
operations: OperationsResource;
|
|
11593
12046
|
servingConfigs: ServingConfigsResource;
|
|
11594
12047
|
sessions: SessionsResource;
|
|
12048
|
+
widgetConfigs: WidgetConfigsResource;
|
|
11595
12049
|
}
|
|
11596
12050
|
interface OperationsResource {
|
|
11597
12051
|
/** 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. */
|
|
@@ -15016,6 +15470,37 @@ declare namespace gapi.client {
|
|
|
15016
15470
|
body: GoogleCloudDiscoveryengineV1alphaUserEvent,
|
|
15017
15471
|
): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
|
|
15018
15472
|
}
|
|
15473
|
+
interface WidgetConfigsResource {
|
|
15474
|
+
/** Gets a WidgetConfig. */
|
|
15475
|
+
get(request?: {
|
|
15476
|
+
/** V1 error format. */
|
|
15477
|
+
'$.xgafv'?: string;
|
|
15478
|
+
/** Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development. */
|
|
15479
|
+
acceptCache?: boolean;
|
|
15480
|
+
/** OAuth access token. */
|
|
15481
|
+
access_token?: string;
|
|
15482
|
+
/** Data format for response. */
|
|
15483
|
+
alt?: string;
|
|
15484
|
+
/** JSONP */
|
|
15485
|
+
callback?: string;
|
|
15486
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
15487
|
+
fields?: string;
|
|
15488
|
+
/** 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. */
|
|
15489
|
+
key?: string;
|
|
15490
|
+
/** Required. Full WidgetConfig resource name. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}` */
|
|
15491
|
+
name: string;
|
|
15492
|
+
/** OAuth 2.0 token for the current user. */
|
|
15493
|
+
oauth_token?: string;
|
|
15494
|
+
/** Returns response with indentations and line breaks. */
|
|
15495
|
+
prettyPrint?: boolean;
|
|
15496
|
+
/** 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. */
|
|
15497
|
+
quotaUser?: string;
|
|
15498
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
15499
|
+
upload_protocol?: string;
|
|
15500
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
15501
|
+
uploadType?: string;
|
|
15502
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaWidgetConfig>;
|
|
15503
|
+
}
|
|
15019
15504
|
interface DataStoresResource {
|
|
15020
15505
|
/** Completes the specified user input with keyword suggestions. */
|
|
15021
15506
|
completeQuery(request?: {
|
|
@@ -15408,6 +15893,7 @@ declare namespace gapi.client {
|
|
|
15408
15893
|
siteSearchEngine: SiteSearchEngineResource;
|
|
15409
15894
|
suggestionDenyListEntries: SuggestionDenyListEntriesResource;
|
|
15410
15895
|
userEvents: UserEventsResource;
|
|
15896
|
+
widgetConfigs: WidgetConfigsResource;
|
|
15411
15897
|
}
|
|
15412
15898
|
interface OperationsResource {
|
|
15413
15899
|
/** 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. */
|
|
@@ -17403,7 +17889,7 @@ declare namespace gapi.client {
|
|
|
17403
17889
|
fields?: string;
|
|
17404
17890
|
/** 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. */
|
|
17405
17891
|
key?: string;
|
|
17406
|
-
/** Required.
|
|
17892
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
17407
17893
|
name: string;
|
|
17408
17894
|
/** OAuth 2.0 token for the current user. */
|
|
17409
17895
|
oauth_token?: string;
|
|
@@ -17434,7 +17920,7 @@ declare namespace gapi.client {
|
|
|
17434
17920
|
fields?: string;
|
|
17435
17921
|
/** 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. */
|
|
17436
17922
|
key?: string;
|
|
17437
|
-
/** Required.
|
|
17923
|
+
/** Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
|
|
17438
17924
|
name: string;
|
|
17439
17925
|
/** OAuth 2.0 token for the current user. */
|
|
17440
17926
|
oauth_token?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -48,6 +48,9 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
48
48
|
// declare client_id registered in Google Developers Console
|
|
49
49
|
var client_id = '',
|
|
50
50
|
scope = [
|
|
51
|
+
// Search your organization's data in the Cloud Search index
|
|
52
|
+
'https://www.googleapis.com/auth/cloud_search.query',
|
|
53
|
+
|
|
51
54
|
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
52
55
|
'https://www.googleapis.com/auth/cloud-platform',
|
|
53
56
|
],
|