@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20240621 → 0.0.20240701

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 +36 -4
  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=v1
12
- // Revision: 20240621
12
+ // Revision: 20240701
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -221,6 +221,8 @@ declare namespace gapi.client {
221
221
  document?: string;
222
222
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
223
223
  snippetInfo?: GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo[];
224
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
225
+ structData?: {[P in string]: any};
224
226
  /** Title. */
225
227
  title?: string;
226
228
  /** URI for the document. */
@@ -345,6 +347,8 @@ declare namespace gapi.client {
345
347
  createTime?: string;
346
348
  /** The display name of the model. */
347
349
  displayName?: string;
350
+ /** The metrics of the trained model. */
351
+ metrics?: {[P in string]: number};
348
352
  /** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
349
353
  modelState?: string;
350
354
  /** The version of the model. */
@@ -418,7 +422,7 @@ declare namespace gapi.client {
418
422
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
419
423
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
420
424
  name?: string;
421
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
425
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
422
426
  parsingConfigOverrides?: {
423
427
  [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
424
428
  };
@@ -1158,6 +1162,8 @@ declare namespace gapi.client {
1158
1162
  document?: string;
1159
1163
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
1160
1164
  snippetInfo?: GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo[];
1165
+ /** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
1166
+ structData?: {[P in string]: any};
1161
1167
  /** Title. */
1162
1168
  title?: string;
1163
1169
  /** URI for the document. */
@@ -1297,6 +1303,8 @@ declare namespace gapi.client {
1297
1303
  createTime?: string;
1298
1304
  /** The display name of the model. */
1299
1305
  displayName?: string;
1306
+ /** The metrics of the trained model. */
1307
+ metrics?: {[P in string]: number};
1300
1308
  /** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
1301
1309
  modelState?: string;
1302
1310
  /** The version of the model. */
@@ -1366,7 +1374,7 @@ declare namespace gapi.client {
1366
1374
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1367
1375
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1368
1376
  name?: string;
1369
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
1377
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
1370
1378
  parsingConfigOverrides?: {
1371
1379
  [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1372
1380
  };
@@ -2101,7 +2109,7 @@ declare namespace gapi.client {
2101
2109
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2102
2110
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
2103
2111
  name?: string;
2104
- /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported. */
2112
+ /** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
2105
2113
  parsingConfigOverrides?: {
2106
2114
  [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2107
2115
  };
@@ -2676,6 +2684,12 @@ declare namespace gapi.client {
2676
2684
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec;
2677
2685
  /** Whether to turn on safe search. This is only supported for website search. */
2678
2686
  safeSearch?: boolean;
2687
+ /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
2688
+ searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec;
2689
+ /** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
2690
+ session?: string;
2691
+ /** Session specification. Can be used only when `session` is set. */
2692
+ sessionSpec?: GoogleCloudDiscoveryengineV1SearchRequestSessionSpec;
2679
2693
  /** The spell correction specification that specifies the mode under which spell correction takes effect. */
2680
2694
  spellCorrectionSpec?: GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec;
2681
2695
  /** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
@@ -2799,6 +2813,16 @@ declare namespace gapi.client {
2799
2813
  /** Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. */
2800
2814
  pinUnexpandedResults?: boolean;
2801
2815
  }
2816
+ interface GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec {
2817
+ /** The condition under which search as you type should occur. Default to Condition.DISABLED. */
2818
+ condition?: string;
2819
+ }
2820
+ interface GoogleCloudDiscoveryengineV1SearchRequestSessionSpec {
2821
+ /** 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. */
2822
+ queryId?: string;
2823
+ /** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar 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. */
2824
+ searchResultPersistenceCount?: number;
2825
+ }
2802
2826
  interface GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec {
2803
2827
  /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
2804
2828
  mode?: string;
@@ -2818,6 +2842,8 @@ declare namespace gapi.client {
2818
2842
  redirectUri?: string;
2819
2843
  /** A list of matched documents. The order represents the ranking. */
2820
2844
  results?: GoogleCloudDiscoveryengineV1SearchResponseSearchResult[];
2845
+ /** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
2846
+ sessionInfo?: GoogleCloudDiscoveryengineV1SearchResponseSessionInfo;
2821
2847
  /** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
2822
2848
  summary?: GoogleCloudDiscoveryengineV1SearchResponseSummary;
2823
2849
  /** The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches. */
@@ -2853,6 +2879,12 @@ declare namespace gapi.client {
2853
2879
  /** Document.id of the searched Document. */
2854
2880
  id?: string;
2855
2881
  }
2882
+ interface GoogleCloudDiscoveryengineV1SearchResponseSessionInfo {
2883
+ /** Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name. */
2884
+ name?: string;
2885
+ /** Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call. */
2886
+ queryId?: string;
2887
+ }
2856
2888
  interface GoogleCloudDiscoveryengineV1SearchResponseSummary {
2857
2889
  /** A collection of Safety Attribute categories and their associated confidence scores. */
2858
2890
  safetyAttributes?: GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1",
3
- "version": "0.0.20240621",
3
+ "version": "0.0.20240701",
4
4
  "description": "TypeScript typings for Discovery Engine API v1",
5
5
  "repository": {
6
6
  "type": "git",