@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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 +29 -7
  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=v1alpha
12
- // Revision: 20240123
12
+ // Revision: 20240129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -277,6 +277,7 @@ declare namespace gapi.client {
277
277
  /** Operation last update time. If the operation is done, this is also the finish time. */
278
278
  updateTime?: string;
279
279
  }
280
+ interface GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig {}
280
281
  interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata {
281
282
  /** Operation create time. */
282
283
  createTime?: string;
@@ -324,10 +325,24 @@ declare namespace gapi.client {
324
325
  uri?: string;
325
326
  }
326
327
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig {
327
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
328
+ /** 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. */
329
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
330
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
328
331
  name?: string;
329
- /** The OCR config. Currently it only applies to PDFs. */
332
+ /** [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. */
330
333
  ocrConfig?: GoogleCloudDiscoveryengineV1alphaOcrConfig;
334
+ /** 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. */
335
+ parsingConfigOverrides?: {
336
+ [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
337
+ };
338
+ }
339
+ interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig {
340
+ /** Configurations applied to digital parser. */
341
+ digitalParsingConfig?: any;
342
+ /** Configurations applied to layout parser. */
343
+ layoutParsingConfig?: any;
344
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
345
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1alphaOcrParsingConfig;
331
346
  }
332
347
  interface GoogleCloudDiscoveryengineV1alphaDoubleList {
333
348
  /** Double values. */
@@ -604,6 +619,7 @@ declare namespace gapi.client {
604
619
  /** Inclusive lower bound. */
605
620
  minimum?: number;
606
621
  }
622
+ interface GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig {}
607
623
  interface GoogleCloudDiscoveryengineV1alphaListConversationsResponse {
608
624
  /** All the Conversations for a given data store. */
609
625
  conversations?: GoogleCloudDiscoveryengineV1alphaConversation[];
@@ -664,6 +680,12 @@ declare namespace gapi.client {
664
680
  /** If true, will use native text instead of OCR text on pages containing native text. */
665
681
  useNativeText?: boolean;
666
682
  }
683
+ interface GoogleCloudDiscoveryengineV1alphaOcrParsingConfig {
684
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
685
+ enhancedDocumentElements?: string[];
686
+ /** If true, will use native text instead of OCR text on pages containing native text. */
687
+ useNativeText?: boolean;
688
+ }
667
689
  interface GoogleCloudDiscoveryengineV1alphaPageInfo {
668
690
  /** The most specific category associated with a category page. To represent full path of category, use '>' sign to separate different hierarchies. If '>' is part of the category name, please replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: `"pageCategory" : "Sales > 2017 Black Friday Deals"`. Required for `view-category-page` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned. */
669
691
  pageCategory?: string;
@@ -4827,7 +4849,7 @@ declare namespace gapi.client {
4827
4849
  fields?: string;
4828
4850
  /** 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. */
4829
4851
  key?: string;
4830
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
4852
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
4831
4853
  name: string;
4832
4854
  /** OAuth 2.0 token for the current user. */
4833
4855
  oauth_token?: string;
@@ -4858,7 +4880,7 @@ declare namespace gapi.client {
4858
4880
  fields?: string;
4859
4881
  /** 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. */
4860
4882
  key?: string;
4861
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
4883
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
4862
4884
  name: string;
4863
4885
  /** OAuth 2.0 token for the current user. */
4864
4886
  oauth_token?: string;
@@ -7994,7 +8016,7 @@ declare namespace gapi.client {
7994
8016
  fields?: string;
7995
8017
  /** 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. */
7996
8018
  key?: string;
7997
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
8019
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
7998
8020
  name: string;
7999
8021
  /** OAuth 2.0 token for the current user. */
8000
8022
  oauth_token?: string;
@@ -8025,7 +8047,7 @@ declare namespace gapi.client {
8025
8047
  fields?: string;
8026
8048
  /** 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. */
8027
8049
  key?: string;
8028
- /** Output only. The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
8050
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
8029
8051
  name: string;
8030
8052
  /** OAuth 2.0 token for the current user. */
8031
8053
  oauth_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240123",
3
+ "version": "0.0.20240129",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",