@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240213 → 0.0.20240224

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 +71 -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: 20240213
12
+ // Revision: 20240224
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -125,12 +125,16 @@ declare namespace gapi.client {
125
125
  defaultSchemaId?: string;
126
126
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
127
127
  displayName?: string;
128
+ /** Configuration for Document understanding and enrichment. */
129
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
128
130
  /** Immutable. The industry vertical that the data store registers. */
129
131
  industryVertical?: string;
130
132
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
131
133
  name?: string;
132
134
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
133
135
  solutionTypes?: string[];
136
+ /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
137
+ startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
134
138
  }
135
139
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
136
140
  /** Operation create time. */
@@ -171,7 +175,7 @@ declare namespace gapi.client {
171
175
  name?: string;
172
176
  /** [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. */
173
177
  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. */
178
+ /** 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. */
175
179
  parsingConfigOverrides?: {
176
180
  [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
177
181
  };
@@ -382,6 +386,8 @@ declare namespace gapi.client {
382
386
  createTime?: string;
383
387
  /** Count of entries that encountered errors while processing. */
384
388
  failureCount?: string;
389
+ /** Count of entries that were ignored as entries were not found. */
390
+ ignoredCount?: string;
385
391
  /** Count of entries that were deleted successfully. */
386
392
  successCount?: string;
387
393
  /** Operation last update time. If the operation is done, this is also the finish time. */
@@ -614,6 +620,8 @@ declare namespace gapi.client {
614
620
  userInput?: GoogleCloudDiscoveryengineV1betaTextInput;
615
621
  }
616
622
  interface GoogleCloudDiscoveryengineV1betaConverseConversationRequest {
623
+ /** Boost specification to boost certain documents in search results which may affect the converse response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) */
624
+ boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
617
625
  /** The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session. */
618
626
  conversation?: GoogleCloudDiscoveryengineV1betaConversation;
619
627
  /** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. This will be used to filter search results which may affect the summary response. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
@@ -684,12 +692,16 @@ declare namespace gapi.client {
684
692
  defaultSchemaId?: string;
685
693
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
686
694
  displayName?: string;
695
+ /** Configuration for Document understanding and enrichment. */
696
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
687
697
  /** Immutable. The industry vertical that the data store registers. */
688
698
  industryVertical?: string;
689
699
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
690
700
  name?: string;
691
701
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
692
702
  solutionTypes?: string[];
703
+ /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
704
+ startingSchema?: GoogleCloudDiscoveryengineV1betaSchema;
693
705
  }
694
706
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
695
707
  /** Operation create time. */
@@ -715,6 +727,7 @@ declare namespace gapi.client {
715
727
  /** Operation last update time. If the operation is done, this is also the finish time. */
716
728
  updateTime?: string;
717
729
  }
730
+ interface GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
718
731
  interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata {
719
732
  /** Operation create time. */
720
733
  createTime?: string;
@@ -730,6 +743,8 @@ declare namespace gapi.client {
730
743
  derivedStructData?: {[P in string]: any};
731
744
  /** Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. */
732
745
  id?: string;
746
+ /** Output only. The last time the document was indexed. If this field is set, the document could be returned in search results. This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed. */
747
+ indexTime?: string;
733
748
  /** The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
734
749
  jsonData?: string;
735
750
  /** Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
@@ -761,6 +776,22 @@ declare namespace gapi.client {
761
776
  /** The Document URI - only allowed for website data stores. */
762
777
  uri?: string;
763
778
  }
779
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig {
780
+ /** 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. */
781
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
782
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
783
+ name?: string;
784
+ /** 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. */
785
+ parsingConfigOverrides?: {
786
+ [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
787
+ };
788
+ }
789
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig {
790
+ /** Configurations applied to digital parser. */
791
+ digitalParsingConfig?: any;
792
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
793
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaOcrParsingConfig;
794
+ }
764
795
  interface GoogleCloudDiscoveryengineV1betaDoubleList {
765
796
  /** Double values. */
766
797
  values?: number[];
@@ -1003,6 +1034,12 @@ declare namespace gapi.client {
1003
1034
  /** Media progress should be computed using only the media_progress_duration relative to the media total length. This value must be between `[0, 1.0]` inclusive. If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset. */
1004
1035
  mediaProgressPercentage?: number;
1005
1036
  }
1037
+ interface GoogleCloudDiscoveryengineV1betaOcrParsingConfig {
1038
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
1039
+ enhancedDocumentElements?: string[];
1040
+ /** If true, will use native text instead of OCR text on pages containing native text. */
1041
+ useNativeText?: boolean;
1042
+ }
1006
1043
  interface GoogleCloudDiscoveryengineV1betaPageInfo {
1007
1044
  /** 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. */
1008
1045
  pageCategory?: string;
@@ -1028,6 +1065,8 @@ declare namespace gapi.client {
1028
1065
  createTime?: string;
1029
1066
  /** Count of entries that encountered errors while processing. */
1030
1067
  failureCount?: string;
1068
+ /** Count of entries that were ignored as entries were not found. */
1069
+ ignoredCount?: string;
1031
1070
  /** Count of entries that were deleted successfully. */
1032
1071
  successCount?: string;
1033
1072
  /** Operation last update time. If the operation is done, this is also the finish time. */
@@ -1179,7 +1218,7 @@ declare namespace gapi.client {
1179
1218
  interface GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec {
1180
1219
  /** Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored. */
1181
1220
  boost?: number;
1182
- /** An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) */
1221
+ /** An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": * (document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue")) */
1183
1222
  condition?: string;
1184
1223
  }
1185
1224
  interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec {
@@ -1614,12 +1653,16 @@ declare namespace gapi.client {
1614
1653
  defaultSchemaId?: string;
1615
1654
  /** Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
1616
1655
  displayName?: string;
1656
+ /** Configuration for Document understanding and enrichment. */
1657
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
1617
1658
  /** Immutable. The industry vertical that the data store registers. */
1618
1659
  industryVertical?: string;
1619
1660
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
1620
1661
  name?: string;
1621
1662
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
1622
1663
  solutionTypes?: string[];
1664
+ /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
1665
+ startingSchema?: GoogleCloudDiscoveryengineV1Schema;
1623
1666
  }
1624
1667
  interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
1625
1668
  /** Operation create time. */
@@ -1645,6 +1688,7 @@ declare namespace gapi.client {
1645
1688
  /** Operation last update time. If the operation is done, this is also the finish time. */
1646
1689
  updateTime?: string;
1647
1690
  }
1691
+ interface GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
1648
1692
  interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata {
1649
1693
  /** Operation create time. */
1650
1694
  createTime?: string;
@@ -1652,6 +1696,22 @@ declare namespace gapi.client {
1652
1696
  updateTime?: string;
1653
1697
  }
1654
1698
  interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse {}
1699
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfig {
1700
+ /** 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. */
1701
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
1702
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1703
+ name?: string;
1704
+ /** 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. */
1705
+ parsingConfigOverrides?: {
1706
+ [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
1707
+ };
1708
+ }
1709
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig {
1710
+ /** Configurations applied to digital parser. */
1711
+ digitalParsingConfig?: any;
1712
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
1713
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1OcrParsingConfig;
1714
+ }
1655
1715
  interface GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata {
1656
1716
  /** Operation create time. */
1657
1717
  createTime?: string;
@@ -1767,11 +1827,19 @@ declare namespace gapi.client {
1767
1827
  /** Count of user events imported, but with Document information not found in the existing Branch. */
1768
1828
  unjoinedEventsCount?: string;
1769
1829
  }
1830
+ interface GoogleCloudDiscoveryengineV1OcrParsingConfig {
1831
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
1832
+ enhancedDocumentElements?: string[];
1833
+ /** If true, will use native text instead of OCR text on pages containing native text. */
1834
+ useNativeText?: boolean;
1835
+ }
1770
1836
  interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
1771
1837
  /** Operation create time. */
1772
1838
  createTime?: string;
1773
1839
  /** Count of entries that encountered errors while processing. */
1774
1840
  failureCount?: string;
1841
+ /** Count of entries that were ignored as entries were not found. */
1842
+ ignoredCount?: string;
1775
1843
  /** Count of entries that were deleted successfully. */
1776
1844
  successCount?: string;
1777
1845
  /** Operation last update time. If the operation is done, this is also the finish time. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240213",
3
+ "version": "0.0.20240224",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",