@maxim_mazurok/gapi.client.discoveryengine-v1beta 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.
Files changed (2) hide show
  1. package/index.d.ts +86 -1
  2. 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: 20240530
12
+ // Revision: 20240607
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -988,6 +988,8 @@ declare namespace gapi.client {
988
988
  maxReturnResults?: number;
989
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. */
990
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;
991
993
  }
992
994
  interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList {
993
995
  /** Search results. */
@@ -1252,6 +1254,44 @@ declare namespace gapi.client {
1252
1254
  /** 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
1255
  citationThreshold?: number;
1254
1256
  }
1257
+ interface GoogleCloudDiscoveryengineV1betaChunk {
1258
+ /** Output only. Metadata of the current chunk. */
1259
+ chunkMetadata?: GoogleCloudDiscoveryengineV1betaChunkChunkMetadata;
1260
+ /** Content is a string from a document (parsed content). */
1261
+ content?: string;
1262
+ /** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
1263
+ derivedStructData?: {[P in string]: any};
1264
+ /** Metadata of the document from the current chunk. */
1265
+ documentMetadata?: GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata;
1266
+ /** Unique chunk ID of the current chunk. */
1267
+ id?: string;
1268
+ /** 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. */
1269
+ name?: string;
1270
+ /** Page span of the chunk. */
1271
+ pageSpan?: GoogleCloudDiscoveryengineV1betaChunkPageSpan;
1272
+ /** 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. */
1273
+ relevanceScore?: number;
1274
+ }
1275
+ interface GoogleCloudDiscoveryengineV1betaChunkChunkMetadata {
1276
+ /** 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. */
1277
+ nextChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
1278
+ /** 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. */
1279
+ previousChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
1280
+ }
1281
+ interface GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata {
1282
+ /** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
1283
+ structData?: {[P in string]: any};
1284
+ /** Title of the document. */
1285
+ title?: string;
1286
+ /** Uri of the document. */
1287
+ uri?: string;
1288
+ }
1289
+ interface GoogleCloudDiscoveryengineV1betaChunkPageSpan {
1290
+ /** The end page of the chunk. */
1291
+ pageEnd?: number;
1292
+ /** The start page of the chunk. */
1293
+ pageStart?: number;
1294
+ }
1255
1295
  interface GoogleCloudDiscoveryengineV1betaCloudSqlSource {
1256
1296
  /** Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. */
1257
1297
  databaseId?: string;
@@ -2157,13 +2197,23 @@ declare namespace gapi.client {
2157
2197
  boostAmount?: number;
2158
2198
  }
2159
2199
  interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec {
2200
+ /** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
2201
+ chunkSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec;
2160
2202
  /** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
2161
2203
  extractiveContentSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec;
2204
+ /** 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`. */
2205
+ searchResultMode?: string;
2162
2206
  /** If `snippetSpec` is not specified, snippets are not included in the search response. */
2163
2207
  snippetSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec;
2164
2208
  /** If `summarySpec` is not specified, summaries are not included in the search response. */
2165
2209
  summarySpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec;
2166
2210
  }
2211
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec {
2212
+ /** 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. */
2213
+ numNextChunks?: number;
2214
+ /** 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. */
2215
+ numPreviousChunks?: number;
2216
+ }
2167
2217
  interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec {
2168
2218
  /** 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
2219
  maxExtractiveAnswerCount?: number;
@@ -2330,6 +2380,8 @@ declare namespace gapi.client {
2330
2380
  pinnedResultCount?: string;
2331
2381
  }
2332
2382
  interface GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult {
2383
+ /** The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
2384
+ chunk?: GoogleCloudDiscoveryengineV1betaChunk;
2333
2385
  /** The document data snippet in the search response. Only fields that are marked as `retrievable` are populated. */
2334
2386
  document?: GoogleCloudDiscoveryengineV1betaDocument;
2335
2387
  /** Document.id of the searched Document. */
@@ -10871,6 +10923,39 @@ declare namespace gapi.client {
10871
10923
  ): Request<GoogleCloudDiscoveryengineV1betaRankResponse>;
10872
10924
  }
10873
10925
  interface UserEventsResource {
10926
+ /** 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. */
10927
+ collect(request?: {
10928
+ /** V1 error format. */
10929
+ '$.xgafv'?: string;
10930
+ /** OAuth access token. */
10931
+ access_token?: string;
10932
+ /** Data format for response. */
10933
+ alt?: string;
10934
+ /** JSONP */
10935
+ callback?: string;
10936
+ /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
10937
+ ets?: string;
10938
+ /** Selector specifying which fields to include in a partial response. */
10939
+ fields?: string;
10940
+ /** 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. */
10941
+ key?: string;
10942
+ /** OAuth 2.0 token for the current user. */
10943
+ oauth_token?: string;
10944
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
10945
+ parent: string;
10946
+ /** Returns response with indentations and line breaks. */
10947
+ prettyPrint?: boolean;
10948
+ /** 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. */
10949
+ quotaUser?: string;
10950
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10951
+ upload_protocol?: string;
10952
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10953
+ uploadType?: string;
10954
+ /** 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. */
10955
+ uri?: string;
10956
+ /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
10957
+ userEvent?: string;
10958
+ }): Request<GoogleApiHttpBody>;
10874
10959
  /** Writes a single user event. */
10875
10960
  write(request: {
10876
10961
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240530",
3
+ "version": "0.0.20240607",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",