@maxim_mazurok/gapi.client.discoveryengine-v1 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 +112 -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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240612
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -371,6 +371,8 @@ declare namespace gapi.client {
|
|
|
371
371
|
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
372
372
|
/** Immutable. The industry vertical that the data store registers. */
|
|
373
373
|
industryVertical?: string;
|
|
374
|
+
/** Language info for DataStore. */
|
|
375
|
+
languageInfo?: GoogleCloudDiscoveryengineV1alphaLanguageInfo;
|
|
374
376
|
/** 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. */
|
|
375
377
|
name?: string;
|
|
376
378
|
/** 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. */
|
|
@@ -641,6 +643,16 @@ declare namespace gapi.client {
|
|
|
641
643
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
642
644
|
unjoinedEventsCount?: string;
|
|
643
645
|
}
|
|
646
|
+
interface GoogleCloudDiscoveryengineV1alphaLanguageInfo {
|
|
647
|
+
/** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
|
|
648
|
+
language?: string;
|
|
649
|
+
/** The language code for the DataStore. */
|
|
650
|
+
languageCode?: string;
|
|
651
|
+
/** 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`. */
|
|
652
|
+
normalizedLanguageCode?: string;
|
|
653
|
+
/** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
|
|
654
|
+
region?: string;
|
|
655
|
+
}
|
|
644
656
|
interface GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse {
|
|
645
657
|
/** List of custom tuning models. */
|
|
646
658
|
models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
|
|
@@ -976,6 +988,8 @@ declare namespace gapi.client {
|
|
|
976
988
|
maxReturnResults?: number;
|
|
977
989
|
/** 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. */
|
|
978
990
|
orderBy?: string;
|
|
991
|
+
/** 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) */
|
|
992
|
+
searchResultMode?: string;
|
|
979
993
|
}
|
|
980
994
|
interface GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultList {
|
|
981
995
|
/** Search results. */
|
|
@@ -1277,6 +1291,8 @@ declare namespace gapi.client {
|
|
|
1277
1291
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
|
|
1278
1292
|
/** Immutable. The industry vertical that the data store registers. */
|
|
1279
1293
|
industryVertical?: string;
|
|
1294
|
+
/** Language info for DataStore. */
|
|
1295
|
+
languageInfo?: GoogleCloudDiscoveryengineV1betaLanguageInfo;
|
|
1280
1296
|
/** 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. */
|
|
1281
1297
|
name?: string;
|
|
1282
1298
|
/** 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. */
|
|
@@ -1470,6 +1486,16 @@ declare namespace gapi.client {
|
|
|
1470
1486
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
1471
1487
|
unjoinedEventsCount?: string;
|
|
1472
1488
|
}
|
|
1489
|
+
interface GoogleCloudDiscoveryengineV1betaLanguageInfo {
|
|
1490
|
+
/** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
|
|
1491
|
+
language?: string;
|
|
1492
|
+
/** The language code for the DataStore. */
|
|
1493
|
+
languageCode?: string;
|
|
1494
|
+
/** 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`. */
|
|
1495
|
+
normalizedLanguageCode?: string;
|
|
1496
|
+
/** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
|
|
1497
|
+
region?: string;
|
|
1498
|
+
}
|
|
1473
1499
|
interface GoogleCloudDiscoveryengineV1betaListCustomModelsResponse {
|
|
1474
1500
|
/** List of custom tuning models. */
|
|
1475
1501
|
models?: GoogleCloudDiscoveryengineV1betaCustomTuningModel[];
|
|
@@ -1694,6 +1720,44 @@ declare namespace gapi.client {
|
|
|
1694
1720
|
/** 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. */
|
|
1695
1721
|
citationThreshold?: number;
|
|
1696
1722
|
}
|
|
1723
|
+
interface GoogleCloudDiscoveryengineV1Chunk {
|
|
1724
|
+
/** Output only. Metadata of the current chunk. */
|
|
1725
|
+
chunkMetadata?: GoogleCloudDiscoveryengineV1ChunkChunkMetadata;
|
|
1726
|
+
/** Content is a string from a document (parsed content). */
|
|
1727
|
+
content?: string;
|
|
1728
|
+
/** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
|
|
1729
|
+
derivedStructData?: {[P in string]: any};
|
|
1730
|
+
/** Metadata of the document from the current chunk. */
|
|
1731
|
+
documentMetadata?: GoogleCloudDiscoveryengineV1ChunkDocumentMetadata;
|
|
1732
|
+
/** Unique chunk ID of the current chunk. */
|
|
1733
|
+
id?: string;
|
|
1734
|
+
/** 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. */
|
|
1735
|
+
name?: string;
|
|
1736
|
+
/** Page span of the chunk. */
|
|
1737
|
+
pageSpan?: GoogleCloudDiscoveryengineV1ChunkPageSpan;
|
|
1738
|
+
/** 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. */
|
|
1739
|
+
relevanceScore?: number;
|
|
1740
|
+
}
|
|
1741
|
+
interface GoogleCloudDiscoveryengineV1ChunkChunkMetadata {
|
|
1742
|
+
/** 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. */
|
|
1743
|
+
nextChunks?: GoogleCloudDiscoveryengineV1Chunk[];
|
|
1744
|
+
/** 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. */
|
|
1745
|
+
previousChunks?: GoogleCloudDiscoveryengineV1Chunk[];
|
|
1746
|
+
}
|
|
1747
|
+
interface GoogleCloudDiscoveryengineV1ChunkDocumentMetadata {
|
|
1748
|
+
/** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
1749
|
+
structData?: {[P in string]: any};
|
|
1750
|
+
/** Title of the document. */
|
|
1751
|
+
title?: string;
|
|
1752
|
+
/** Uri of the document. */
|
|
1753
|
+
uri?: string;
|
|
1754
|
+
}
|
|
1755
|
+
interface GoogleCloudDiscoveryengineV1ChunkPageSpan {
|
|
1756
|
+
/** The end page of the chunk. */
|
|
1757
|
+
pageEnd?: number;
|
|
1758
|
+
/** The start page of the chunk. */
|
|
1759
|
+
pageStart?: number;
|
|
1760
|
+
}
|
|
1697
1761
|
interface GoogleCloudDiscoveryengineV1CloudSqlSource {
|
|
1698
1762
|
/** Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. */
|
|
1699
1763
|
databaseId?: string;
|
|
@@ -2491,6 +2555,8 @@ declare namespace gapi.client {
|
|
|
2491
2555
|
filter?: string;
|
|
2492
2556
|
/** Raw image query. */
|
|
2493
2557
|
imageQuery?: GoogleCloudDiscoveryengineV1SearchRequestImageQuery;
|
|
2558
|
+
/** 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. */
|
|
2559
|
+
languageCode?: string;
|
|
2494
2560
|
/** 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. */
|
|
2495
2561
|
offset?: number;
|
|
2496
2562
|
/** 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. */
|
|
@@ -2527,13 +2593,23 @@ declare namespace gapi.client {
|
|
|
2527
2593
|
condition?: string;
|
|
2528
2594
|
}
|
|
2529
2595
|
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec {
|
|
2596
|
+
/** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
|
|
2597
|
+
chunkSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec;
|
|
2530
2598
|
/** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
|
|
2531
2599
|
extractiveContentSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec;
|
|
2600
|
+
/** 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`. */
|
|
2601
|
+
searchResultMode?: string;
|
|
2532
2602
|
/** If `snippetSpec` is not specified, snippets are not included in the search response. */
|
|
2533
2603
|
snippetSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec;
|
|
2534
2604
|
/** If `summarySpec` is not specified, summaries are not included in the search response. */
|
|
2535
2605
|
summarySpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec;
|
|
2536
2606
|
}
|
|
2607
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec {
|
|
2608
|
+
/** 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. */
|
|
2609
|
+
numNextChunks?: number;
|
|
2610
|
+
/** 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. */
|
|
2611
|
+
numPreviousChunks?: number;
|
|
2612
|
+
}
|
|
2537
2613
|
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec {
|
|
2538
2614
|
/** 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. */
|
|
2539
2615
|
maxExtractiveAnswerCount?: number;
|
|
@@ -2667,6 +2743,8 @@ declare namespace gapi.client {
|
|
|
2667
2743
|
pinnedResultCount?: string;
|
|
2668
2744
|
}
|
|
2669
2745
|
interface GoogleCloudDiscoveryengineV1SearchResponseSearchResult {
|
|
2746
|
+
/** The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
|
|
2747
|
+
chunk?: GoogleCloudDiscoveryengineV1Chunk;
|
|
2670
2748
|
/** The document data snippet in the search response. Only fields that are marked as `retrievable` are populated. */
|
|
2671
2749
|
document?: GoogleCloudDiscoveryengineV1Document;
|
|
2672
2750
|
/** Document.id of the searched Document. */
|
|
@@ -10081,6 +10159,39 @@ declare namespace gapi.client {
|
|
|
10081
10159
|
): Request<GoogleCloudDiscoveryengineV1RankResponse>;
|
|
10082
10160
|
}
|
|
10083
10161
|
interface UserEventsResource {
|
|
10162
|
+
/** 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. */
|
|
10163
|
+
collect(request?: {
|
|
10164
|
+
/** V1 error format. */
|
|
10165
|
+
'$.xgafv'?: string;
|
|
10166
|
+
/** OAuth access token. */
|
|
10167
|
+
access_token?: string;
|
|
10168
|
+
/** Data format for response. */
|
|
10169
|
+
alt?: string;
|
|
10170
|
+
/** JSONP */
|
|
10171
|
+
callback?: string;
|
|
10172
|
+
/** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
|
|
10173
|
+
ets?: string;
|
|
10174
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
10175
|
+
fields?: string;
|
|
10176
|
+
/** 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. */
|
|
10177
|
+
key?: string;
|
|
10178
|
+
/** OAuth 2.0 token for the current user. */
|
|
10179
|
+
oauth_token?: string;
|
|
10180
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
10181
|
+
parent: string;
|
|
10182
|
+
/** Returns response with indentations and line breaks. */
|
|
10183
|
+
prettyPrint?: boolean;
|
|
10184
|
+
/** 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. */
|
|
10185
|
+
quotaUser?: string;
|
|
10186
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
10187
|
+
upload_protocol?: string;
|
|
10188
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
10189
|
+
uploadType?: string;
|
|
10190
|
+
/** 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. */
|
|
10191
|
+
uri?: string;
|
|
10192
|
+
/** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
|
|
10193
|
+
userEvent?: string;
|
|
10194
|
+
}): Request<GoogleApiHttpBody>;
|
|
10084
10195
|
/** Writes a single user event. */
|
|
10085
10196
|
write(request: {
|
|
10086
10197
|
/** V1 error format. */
|