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

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 +60 -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: 20240704
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
  };
@@ -553,6 +557,18 @@ declare namespace gapi.client {
553
557
  /** Total number of documents. */
554
558
  documentCount?: string;
555
559
  }
560
+ interface GoogleCloudDiscoveryengineV1alphaExportUserEventsMetadata {
561
+ /** Operation create time. */
562
+ createTime?: string;
563
+ /** Operation last update time. If the operation is done, this is also the finish time. */
564
+ updateTime?: string;
565
+ }
566
+ interface GoogleCloudDiscoveryengineV1alphaExportUserEventsResponse {
567
+ /** Output result indicating where the data were exported to. */
568
+ outputResult?: GoogleCloudDiscoveryengineV1alphaOutputResult;
569
+ /** The status of the export operation. */
570
+ status?: GoogleRpcStatus;
571
+ }
556
572
  interface GoogleCloudDiscoveryengineV1alphaFieldConfig {
557
573
  /** If this field is set, only the corresponding source will be indexed for this field. Otherwise, the values from different sources are merged. Assuming a page with `` in meta tag, and `` in page map: if this enum is set to METATAGS, we will only index ``; if this enum is not set, we will merge them and index ``. */
558
574
  advancedSiteSearchDataSources?: string[];
@@ -673,6 +689,16 @@ declare namespace gapi.client {
673
689
  /** List of custom tuning models. */
674
690
  models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
675
691
  }
692
+ interface GoogleCloudDiscoveryengineV1alphaOutputResult {
693
+ /** The BigQuery location where the result is stored. */
694
+ bigqueryResult?: GoogleCloudDiscoveryengineV1alphaOutputResultBigQueryOutputResult;
695
+ }
696
+ interface GoogleCloudDiscoveryengineV1alphaOutputResultBigQueryOutputResult {
697
+ /** The ID of a BigQuery Dataset. */
698
+ datasetId?: string;
699
+ /** The ID of a BigQuery Table. */
700
+ tableId?: string;
701
+ }
676
702
  interface GoogleCloudDiscoveryengineV1alphaProject {
677
703
  /** Output only. The timestamp when this project is created. */
678
704
  createTime?: string;
@@ -990,6 +1016,8 @@ declare namespace gapi.client {
990
1016
  interface GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec {
991
1017
  /** Disable query rephraser. */
992
1018
  disable?: boolean;
1019
+ /** Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. */
1020
+ maxRephraseSteps?: number;
993
1021
  }
994
1022
  interface GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec {
995
1023
  /** Enable related questions feature if true. */
@@ -1158,6 +1186,8 @@ declare namespace gapi.client {
1158
1186
  document?: string;
1159
1187
  /** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
1160
1188
  snippetInfo?: GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo[];
1189
+ /** 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). */
1190
+ structData?: {[P in string]: any};
1161
1191
  /** Title. */
1162
1192
  title?: string;
1163
1193
  /** URI for the document. */
@@ -1297,6 +1327,8 @@ declare namespace gapi.client {
1297
1327
  createTime?: string;
1298
1328
  /** The display name of the model. */
1299
1329
  displayName?: string;
1330
+ /** The metrics of the trained model. */
1331
+ metrics?: {[P in string]: number};
1300
1332
  /** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
1301
1333
  modelState?: string;
1302
1334
  /** The version of the model. */
@@ -1366,7 +1398,7 @@ declare namespace gapi.client {
1366
1398
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1367
1399
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1368
1400
  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. */
1401
+ /** 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
1402
  parsingConfigOverrides?: {
1371
1403
  [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1372
1404
  };
@@ -2101,7 +2133,7 @@ declare namespace gapi.client {
2101
2133
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2102
2134
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
2103
2135
  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. */
2136
+ /** 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
2137
  parsingConfigOverrides?: {
2106
2138
  [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2107
2139
  };
@@ -2676,6 +2708,12 @@ declare namespace gapi.client {
2676
2708
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec;
2677
2709
  /** Whether to turn on safe search. This is only supported for website search. */
2678
2710
  safeSearch?: boolean;
2711
+ /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
2712
+ searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec;
2713
+ /** 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. */
2714
+ session?: string;
2715
+ /** Session specification. Can be used only when `session` is set. */
2716
+ sessionSpec?: GoogleCloudDiscoveryengineV1SearchRequestSessionSpec;
2679
2717
  /** The spell correction specification that specifies the mode under which spell correction takes effect. */
2680
2718
  spellCorrectionSpec?: GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec;
2681
2719
  /** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
@@ -2799,6 +2837,16 @@ declare namespace gapi.client {
2799
2837
  /** 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
2838
  pinUnexpandedResults?: boolean;
2801
2839
  }
2840
+ interface GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec {
2841
+ /** The condition under which search as you type should occur. Default to Condition.DISABLED. */
2842
+ condition?: string;
2843
+ }
2844
+ interface GoogleCloudDiscoveryengineV1SearchRequestSessionSpec {
2845
+ /** 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. */
2846
+ queryId?: string;
2847
+ /** 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. */
2848
+ searchResultPersistenceCount?: number;
2849
+ }
2802
2850
  interface GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec {
2803
2851
  /** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
2804
2852
  mode?: string;
@@ -2818,6 +2866,8 @@ declare namespace gapi.client {
2818
2866
  redirectUri?: string;
2819
2867
  /** A list of matched documents. The order represents the ranking. */
2820
2868
  results?: GoogleCloudDiscoveryengineV1SearchResponseSearchResult[];
2869
+ /** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
2870
+ sessionInfo?: GoogleCloudDiscoveryengineV1SearchResponseSessionInfo;
2821
2871
  /** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
2822
2872
  summary?: GoogleCloudDiscoveryengineV1SearchResponseSummary;
2823
2873
  /** 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 +2903,12 @@ declare namespace gapi.client {
2853
2903
  /** Document.id of the searched Document. */
2854
2904
  id?: string;
2855
2905
  }
2906
+ interface GoogleCloudDiscoveryengineV1SearchResponseSessionInfo {
2907
+ /** Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name. */
2908
+ name?: string;
2909
+ /** 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. */
2910
+ queryId?: string;
2911
+ }
2856
2912
  interface GoogleCloudDiscoveryengineV1SearchResponseSummary {
2857
2913
  /** A collection of Safety Attribute categories and their associated confidence scores. */
2858
2914
  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.20240704",
4
4
  "description": "TypeScript typings for Discovery Engine API v1",
5
5
  "repository": {
6
6
  "type": "git",