@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240530 → 0.0.20240612
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 +114 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240612
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -357,6 +357,8 @@ declare namespace gapi.client {
|
|
|
357
357
|
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
358
358
|
/** Immutable. The industry vertical that the data store registers. */
|
|
359
359
|
industryVertical?: string;
|
|
360
|
+
/** Language info for DataStore. */
|
|
361
|
+
languageInfo?: GoogleCloudDiscoveryengineV1alphaLanguageInfo;
|
|
360
362
|
/** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
361
363
|
name?: string;
|
|
362
364
|
/** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
|
|
@@ -627,6 +629,16 @@ declare namespace gapi.client {
|
|
|
627
629
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
628
630
|
unjoinedEventsCount?: string;
|
|
629
631
|
}
|
|
632
|
+
interface GoogleCloudDiscoveryengineV1alphaLanguageInfo {
|
|
633
|
+
/** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
|
|
634
|
+
language?: string;
|
|
635
|
+
/** The language code for the DataStore. */
|
|
636
|
+
languageCode?: string;
|
|
637
|
+
/** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
|
|
638
|
+
normalizedLanguageCode?: string;
|
|
639
|
+
/** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
|
|
640
|
+
region?: string;
|
|
641
|
+
}
|
|
630
642
|
interface GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse {
|
|
631
643
|
/** List of custom tuning models. */
|
|
632
644
|
models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
|
|
@@ -988,6 +1000,8 @@ declare namespace gapi.client {
|
|
|
988
1000
|
maxReturnResults?: number;
|
|
989
1001
|
/** 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. */
|
|
990
1002
|
orderBy?: string;
|
|
1003
|
+
/** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) */
|
|
1004
|
+
searchResultMode?: string;
|
|
991
1005
|
}
|
|
992
1006
|
interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList {
|
|
993
1007
|
/** Search results. */
|
|
@@ -1252,6 +1266,44 @@ declare namespace gapi.client {
|
|
|
1252
1266
|
/** The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6. */
|
|
1253
1267
|
citationThreshold?: number;
|
|
1254
1268
|
}
|
|
1269
|
+
interface GoogleCloudDiscoveryengineV1betaChunk {
|
|
1270
|
+
/** Output only. Metadata of the current chunk. */
|
|
1271
|
+
chunkMetadata?: GoogleCloudDiscoveryengineV1betaChunkChunkMetadata;
|
|
1272
|
+
/** Content is a string from a document (parsed content). */
|
|
1273
|
+
content?: string;
|
|
1274
|
+
/** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
|
|
1275
|
+
derivedStructData?: {[P in string]: any};
|
|
1276
|
+
/** Metadata of the document from the current chunk. */
|
|
1277
|
+
documentMetadata?: GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata;
|
|
1278
|
+
/** Unique chunk ID of the current chunk. */
|
|
1279
|
+
id?: string;
|
|
1280
|
+
/** The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
1281
|
+
name?: string;
|
|
1282
|
+
/** Page span of the chunk. */
|
|
1283
|
+
pageSpan?: GoogleCloudDiscoveryengineV1betaChunkPageSpan;
|
|
1284
|
+
/** Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchService.SearchResponse. */
|
|
1285
|
+
relevanceScore?: number;
|
|
1286
|
+
}
|
|
1287
|
+
interface GoogleCloudDiscoveryengineV1betaChunkChunkMetadata {
|
|
1288
|
+
/** The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API. */
|
|
1289
|
+
nextChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
|
|
1290
|
+
/** The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API. */
|
|
1291
|
+
previousChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
|
|
1292
|
+
}
|
|
1293
|
+
interface GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata {
|
|
1294
|
+
/** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
1295
|
+
structData?: {[P in string]: any};
|
|
1296
|
+
/** Title of the document. */
|
|
1297
|
+
title?: string;
|
|
1298
|
+
/** Uri of the document. */
|
|
1299
|
+
uri?: string;
|
|
1300
|
+
}
|
|
1301
|
+
interface GoogleCloudDiscoveryengineV1betaChunkPageSpan {
|
|
1302
|
+
/** The end page of the chunk. */
|
|
1303
|
+
pageEnd?: number;
|
|
1304
|
+
/** The start page of the chunk. */
|
|
1305
|
+
pageStart?: number;
|
|
1306
|
+
}
|
|
1255
1307
|
interface GoogleCloudDiscoveryengineV1betaCloudSqlSource {
|
|
1256
1308
|
/** Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. */
|
|
1257
1309
|
databaseId?: string;
|
|
@@ -1465,6 +1517,8 @@ declare namespace gapi.client {
|
|
|
1465
1517
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
|
|
1466
1518
|
/** Immutable. The industry vertical that the data store registers. */
|
|
1467
1519
|
industryVertical?: string;
|
|
1520
|
+
/** Language info for DataStore. */
|
|
1521
|
+
languageInfo?: GoogleCloudDiscoveryengineV1betaLanguageInfo;
|
|
1468
1522
|
/** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
1469
1523
|
name?: string;
|
|
1470
1524
|
/** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
|
|
@@ -1822,6 +1876,16 @@ declare namespace gapi.client {
|
|
|
1822
1876
|
/** Inclusive lower bound. */
|
|
1823
1877
|
minimum?: number;
|
|
1824
1878
|
}
|
|
1879
|
+
interface GoogleCloudDiscoveryengineV1betaLanguageInfo {
|
|
1880
|
+
/** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
|
|
1881
|
+
language?: string;
|
|
1882
|
+
/** The language code for the DataStore. */
|
|
1883
|
+
languageCode?: string;
|
|
1884
|
+
/** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
|
|
1885
|
+
normalizedLanguageCode?: string;
|
|
1886
|
+
/** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
|
|
1887
|
+
region?: string;
|
|
1888
|
+
}
|
|
1825
1889
|
interface GoogleCloudDiscoveryengineV1betaListControlsResponse {
|
|
1826
1890
|
/** All the Controls for a given data store. */
|
|
1827
1891
|
controls?: GoogleCloudDiscoveryengineV1betaControl[];
|
|
@@ -2101,6 +2165,8 @@ declare namespace gapi.client {
|
|
|
2101
2165
|
filter?: string;
|
|
2102
2166
|
/** Raw image query. */
|
|
2103
2167
|
imageQuery?: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery;
|
|
2168
|
+
/** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate. */
|
|
2169
|
+
languageCode?: string;
|
|
2104
2170
|
/** 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. */
|
|
2105
2171
|
offset?: number;
|
|
2106
2172
|
/** 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. */
|
|
@@ -2117,6 +2183,8 @@ declare namespace gapi.client {
|
|
|
2117
2183
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec;
|
|
2118
2184
|
/** 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 joint 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)`. */
|
|
2119
2185
|
rankingExpression?: string;
|
|
2186
|
+
/** 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. */
|
|
2187
|
+
regionCode?: string;
|
|
2120
2188
|
/** Whether to turn on safe search. This is only supported for website search. */
|
|
2121
2189
|
safeSearch?: boolean;
|
|
2122
2190
|
/** The spell correction specification that specifies the mode under which spell correction takes effect. */
|
|
@@ -2157,13 +2225,23 @@ declare namespace gapi.client {
|
|
|
2157
2225
|
boostAmount?: number;
|
|
2158
2226
|
}
|
|
2159
2227
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec {
|
|
2228
|
+
/** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
|
|
2229
|
+
chunkSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec;
|
|
2160
2230
|
/** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
|
|
2161
2231
|
extractiveContentSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec;
|
|
2232
|
+
/** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. */
|
|
2233
|
+
searchResultMode?: string;
|
|
2162
2234
|
/** If `snippetSpec` is not specified, snippets are not included in the search response. */
|
|
2163
2235
|
snippetSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec;
|
|
2164
2236
|
/** If `summarySpec` is not specified, summaries are not included in the search response. */
|
|
2165
2237
|
summarySpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec;
|
|
2166
2238
|
}
|
|
2239
|
+
interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec {
|
|
2240
|
+
/** The number of next chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no next chunks will be returned. */
|
|
2241
|
+
numNextChunks?: number;
|
|
2242
|
+
/** The number of previous chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no previous chunks will be returned. */
|
|
2243
|
+
numPreviousChunks?: number;
|
|
2244
|
+
}
|
|
2167
2245
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec {
|
|
2168
2246
|
/** The maximum number of extractive answers returned in each search result. An extractive answer is a verbatim answer extracted from the original document, which provides a precise and contextually relevant answer to the search query. If the number of matching answers is less than the `max_extractive_answer_count`, return all of the answers. Otherwise, return the `max_extractive_answer_count`. At most five answers are returned for each SearchResult. */
|
|
2169
2247
|
maxExtractiveAnswerCount?: number;
|
|
@@ -2330,6 +2408,8 @@ declare namespace gapi.client {
|
|
|
2330
2408
|
pinnedResultCount?: string;
|
|
2331
2409
|
}
|
|
2332
2410
|
interface GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult {
|
|
2411
|
+
/** The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
|
|
2412
|
+
chunk?: GoogleCloudDiscoveryengineV1betaChunk;
|
|
2333
2413
|
/** The document data snippet in the search response. Only fields that are marked as `retrievable` are populated. */
|
|
2334
2414
|
document?: GoogleCloudDiscoveryengineV1betaDocument;
|
|
2335
2415
|
/** Document.id of the searched Document. */
|
|
@@ -10871,6 +10951,39 @@ declare namespace gapi.client {
|
|
|
10871
10951
|
): Request<GoogleCloudDiscoveryengineV1betaRankResponse>;
|
|
10872
10952
|
}
|
|
10873
10953
|
interface UserEventsResource {
|
|
10954
|
+
/** Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */
|
|
10955
|
+
collect(request?: {
|
|
10956
|
+
/** V1 error format. */
|
|
10957
|
+
'$.xgafv'?: string;
|
|
10958
|
+
/** OAuth access token. */
|
|
10959
|
+
access_token?: string;
|
|
10960
|
+
/** Data format for response. */
|
|
10961
|
+
alt?: string;
|
|
10962
|
+
/** JSONP */
|
|
10963
|
+
callback?: string;
|
|
10964
|
+
/** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
|
|
10965
|
+
ets?: string;
|
|
10966
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
10967
|
+
fields?: string;
|
|
10968
|
+
/** 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. */
|
|
10969
|
+
key?: string;
|
|
10970
|
+
/** OAuth 2.0 token for the current user. */
|
|
10971
|
+
oauth_token?: string;
|
|
10972
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
10973
|
+
parent: string;
|
|
10974
|
+
/** Returns response with indentations and line breaks. */
|
|
10975
|
+
prettyPrint?: boolean;
|
|
10976
|
+
/** 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. */
|
|
10977
|
+
quotaUser?: string;
|
|
10978
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
10979
|
+
upload_protocol?: string;
|
|
10980
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
10981
|
+
uploadType?: string;
|
|
10982
|
+
/** The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests. */
|
|
10983
|
+
uri?: string;
|
|
10984
|
+
/** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
|
|
10985
|
+
userEvent?: string;
|
|
10986
|
+
}): Request<GoogleApiHttpBody>;
|
|
10874
10987
|
/** Writes a single user event. */
|
|
10875
10988
|
write(request: {
|
|
10876
10989
|
/** V1 error format. */
|