@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20240530 → 0.0.20240607
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 +86 -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: 20240607
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -976,6 +976,8 @@ declare namespace gapi.client {
|
|
|
976
976
|
maxReturnResults?: number;
|
|
977
977
|
/** 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
978
|
orderBy?: string;
|
|
979
|
+
/** 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) */
|
|
980
|
+
searchResultMode?: string;
|
|
979
981
|
}
|
|
980
982
|
interface GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultList {
|
|
981
983
|
/** Search results. */
|
|
@@ -1694,6 +1696,44 @@ declare namespace gapi.client {
|
|
|
1694
1696
|
/** 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
1697
|
citationThreshold?: number;
|
|
1696
1698
|
}
|
|
1699
|
+
interface GoogleCloudDiscoveryengineV1Chunk {
|
|
1700
|
+
/** Output only. Metadata of the current chunk. */
|
|
1701
|
+
chunkMetadata?: GoogleCloudDiscoveryengineV1ChunkChunkMetadata;
|
|
1702
|
+
/** Content is a string from a document (parsed content). */
|
|
1703
|
+
content?: string;
|
|
1704
|
+
/** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
|
|
1705
|
+
derivedStructData?: {[P in string]: any};
|
|
1706
|
+
/** Metadata of the document from the current chunk. */
|
|
1707
|
+
documentMetadata?: GoogleCloudDiscoveryengineV1ChunkDocumentMetadata;
|
|
1708
|
+
/** Unique chunk ID of the current chunk. */
|
|
1709
|
+
id?: string;
|
|
1710
|
+
/** 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. */
|
|
1711
|
+
name?: string;
|
|
1712
|
+
/** Page span of the chunk. */
|
|
1713
|
+
pageSpan?: GoogleCloudDiscoveryengineV1ChunkPageSpan;
|
|
1714
|
+
/** 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. */
|
|
1715
|
+
relevanceScore?: number;
|
|
1716
|
+
}
|
|
1717
|
+
interface GoogleCloudDiscoveryengineV1ChunkChunkMetadata {
|
|
1718
|
+
/** 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. */
|
|
1719
|
+
nextChunks?: GoogleCloudDiscoveryengineV1Chunk[];
|
|
1720
|
+
/** 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. */
|
|
1721
|
+
previousChunks?: GoogleCloudDiscoveryengineV1Chunk[];
|
|
1722
|
+
}
|
|
1723
|
+
interface GoogleCloudDiscoveryengineV1ChunkDocumentMetadata {
|
|
1724
|
+
/** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
1725
|
+
structData?: {[P in string]: any};
|
|
1726
|
+
/** Title of the document. */
|
|
1727
|
+
title?: string;
|
|
1728
|
+
/** Uri of the document. */
|
|
1729
|
+
uri?: string;
|
|
1730
|
+
}
|
|
1731
|
+
interface GoogleCloudDiscoveryengineV1ChunkPageSpan {
|
|
1732
|
+
/** The end page of the chunk. */
|
|
1733
|
+
pageEnd?: number;
|
|
1734
|
+
/** The start page of the chunk. */
|
|
1735
|
+
pageStart?: number;
|
|
1736
|
+
}
|
|
1697
1737
|
interface GoogleCloudDiscoveryengineV1CloudSqlSource {
|
|
1698
1738
|
/** Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. */
|
|
1699
1739
|
databaseId?: string;
|
|
@@ -2527,13 +2567,23 @@ declare namespace gapi.client {
|
|
|
2527
2567
|
condition?: string;
|
|
2528
2568
|
}
|
|
2529
2569
|
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec {
|
|
2570
|
+
/** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
|
|
2571
|
+
chunkSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec;
|
|
2530
2572
|
/** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
|
|
2531
2573
|
extractiveContentSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec;
|
|
2574
|
+
/** 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`. */
|
|
2575
|
+
searchResultMode?: string;
|
|
2532
2576
|
/** If `snippetSpec` is not specified, snippets are not included in the search response. */
|
|
2533
2577
|
snippetSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec;
|
|
2534
2578
|
/** If `summarySpec` is not specified, summaries are not included in the search response. */
|
|
2535
2579
|
summarySpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec;
|
|
2536
2580
|
}
|
|
2581
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec {
|
|
2582
|
+
/** 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. */
|
|
2583
|
+
numNextChunks?: number;
|
|
2584
|
+
/** 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. */
|
|
2585
|
+
numPreviousChunks?: number;
|
|
2586
|
+
}
|
|
2537
2587
|
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec {
|
|
2538
2588
|
/** 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
2589
|
maxExtractiveAnswerCount?: number;
|
|
@@ -2667,6 +2717,8 @@ declare namespace gapi.client {
|
|
|
2667
2717
|
pinnedResultCount?: string;
|
|
2668
2718
|
}
|
|
2669
2719
|
interface GoogleCloudDiscoveryengineV1SearchResponseSearchResult {
|
|
2720
|
+
/** The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
|
|
2721
|
+
chunk?: GoogleCloudDiscoveryengineV1Chunk;
|
|
2670
2722
|
/** The document data snippet in the search response. Only fields that are marked as `retrievable` are populated. */
|
|
2671
2723
|
document?: GoogleCloudDiscoveryengineV1Document;
|
|
2672
2724
|
/** Document.id of the searched Document. */
|
|
@@ -10081,6 +10133,39 @@ declare namespace gapi.client {
|
|
|
10081
10133
|
): Request<GoogleCloudDiscoveryengineV1RankResponse>;
|
|
10082
10134
|
}
|
|
10083
10135
|
interface UserEventsResource {
|
|
10136
|
+
/** 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. */
|
|
10137
|
+
collect(request?: {
|
|
10138
|
+
/** V1 error format. */
|
|
10139
|
+
'$.xgafv'?: string;
|
|
10140
|
+
/** OAuth access token. */
|
|
10141
|
+
access_token?: string;
|
|
10142
|
+
/** Data format for response. */
|
|
10143
|
+
alt?: string;
|
|
10144
|
+
/** JSONP */
|
|
10145
|
+
callback?: string;
|
|
10146
|
+
/** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
|
|
10147
|
+
ets?: string;
|
|
10148
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
10149
|
+
fields?: string;
|
|
10150
|
+
/** 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. */
|
|
10151
|
+
key?: string;
|
|
10152
|
+
/** OAuth 2.0 token for the current user. */
|
|
10153
|
+
oauth_token?: string;
|
|
10154
|
+
/** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
|
|
10155
|
+
parent: string;
|
|
10156
|
+
/** Returns response with indentations and line breaks. */
|
|
10157
|
+
prettyPrint?: boolean;
|
|
10158
|
+
/** 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. */
|
|
10159
|
+
quotaUser?: string;
|
|
10160
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
10161
|
+
upload_protocol?: string;
|
|
10162
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
10163
|
+
uploadType?: string;
|
|
10164
|
+
/** 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. */
|
|
10165
|
+
uri?: string;
|
|
10166
|
+
/** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
|
|
10167
|
+
userEvent?: string;
|
|
10168
|
+
}): Request<GoogleApiHttpBody>;
|
|
10084
10169
|
/** Writes a single user event. */
|
|
10085
10170
|
write(request: {
|
|
10086
10171
|
/** V1 error format. */
|