@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240123 → 0.0.20240129

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 +25 -3
  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: 20240123
12
+ // Revision: 20240129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -156,6 +156,7 @@ declare namespace gapi.client {
156
156
  /** Operation last update time. If the operation is done, this is also the finish time. */
157
157
  updateTime?: string;
158
158
  }
159
+ interface GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig {}
159
160
  interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata {
160
161
  /** Operation create time. */
161
162
  createTime?: string;
@@ -164,10 +165,24 @@ declare namespace gapi.client {
164
165
  }
165
166
  interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse {}
166
167
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig {
167
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
168
+ /** Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing. */
169
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
170
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
168
171
  name?: string;
169
- /** The OCR config. Currently it only applies to PDFs. */
172
+ /** [DEPRECATED] This field is deprecated. To specify OCR parsing config, please specify `ocr_parsing_config` in `default_parsing_config` field The OCR config. Currently it only applies to PDFs. */
170
173
  ocrConfig?: GoogleCloudDiscoveryengineV1alphaOcrConfig;
174
+ /** 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. */
175
+ parsingConfigOverrides?: {
176
+ [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
177
+ };
178
+ }
179
+ interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig {
180
+ /** Configurations applied to digital parser. */
181
+ digitalParsingConfig?: any;
182
+ /** Configurations applied to layout parser. */
183
+ layoutParsingConfig?: any;
184
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
185
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1alphaOcrParsingConfig;
171
186
  }
172
187
  interface GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata {
173
188
  /** Operation create time. */
@@ -347,6 +362,7 @@ declare namespace gapi.client {
347
362
  /** Count of user events imported, but with Document information not found in the existing Branch. */
348
363
  unjoinedEventsCount?: string;
349
364
  }
365
+ interface GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig {}
350
366
  interface GoogleCloudDiscoveryengineV1alphaOcrConfig {
351
367
  /** Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply. We will only perform OCR on the first 80 pages of the PDF files. */
352
368
  enabled?: boolean;
@@ -355,6 +371,12 @@ declare namespace gapi.client {
355
371
  /** If true, will use native text instead of OCR text on pages containing native text. */
356
372
  useNativeText?: boolean;
357
373
  }
374
+ interface GoogleCloudDiscoveryengineV1alphaOcrParsingConfig {
375
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
376
+ enhancedDocumentElements?: string[];
377
+ /** If true, will use native text instead of OCR text on pages containing native text. */
378
+ useNativeText?: boolean;
379
+ }
358
380
  interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
359
381
  /** Operation create time. */
360
382
  createTime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240123",
3
+ "version": "0.0.20240129",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",