@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240213 → 0.0.20240227
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.
- package/index.d.ts +93 -3
- 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:
|
|
12
|
+
// Revision: 20240227
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -82,6 +82,12 @@ declare namespace gapi.client {
|
|
|
82
82
|
/** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
|
|
83
83
|
functionName?: string;
|
|
84
84
|
}
|
|
85
|
+
interface GoogleCloudDiscoveryengineV1alphaAclConfig {
|
|
86
|
+
/** Identity provider config. */
|
|
87
|
+
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
88
|
+
/** Immutable. The full resource name of the acl configuration. Format: `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
89
|
+
name?: string;
|
|
90
|
+
}
|
|
85
91
|
interface GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata {
|
|
86
92
|
/** Operation create time. */
|
|
87
93
|
createTime?: string;
|
|
@@ -117,6 +123,8 @@ declare namespace gapi.client {
|
|
|
117
123
|
updateTime?: string;
|
|
118
124
|
}
|
|
119
125
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
126
|
+
/** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
|
|
127
|
+
aclEnabled?: boolean;
|
|
120
128
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
121
129
|
contentConfig?: string;
|
|
122
130
|
/** Output only. Timestamp the DataStore was created at. */
|
|
@@ -125,12 +133,18 @@ declare namespace gapi.client {
|
|
|
125
133
|
defaultSchemaId?: string;
|
|
126
134
|
/** 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
135
|
displayName?: string;
|
|
136
|
+
/** Configuration for Document understanding and enrichment. */
|
|
137
|
+
documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
|
|
138
|
+
/** Output only. Data store level identity provider config. */
|
|
139
|
+
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
128
140
|
/** Immutable. The industry vertical that the data store registers. */
|
|
129
141
|
industryVertical?: string;
|
|
130
142
|
/** 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
143
|
name?: string;
|
|
132
144
|
/** 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
145
|
solutionTypes?: string[];
|
|
146
|
+
/** 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). */
|
|
147
|
+
startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
|
|
134
148
|
}
|
|
135
149
|
interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
|
|
136
150
|
/** Operation create time. */
|
|
@@ -171,7 +185,7 @@ declare namespace gapi.client {
|
|
|
171
185
|
name?: string;
|
|
172
186
|
/** [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
187
|
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. */
|
|
188
|
+
/** 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
189
|
parsingConfigOverrides?: {
|
|
176
190
|
[P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
|
|
177
191
|
};
|
|
@@ -192,6 +206,8 @@ declare namespace gapi.client {
|
|
|
192
206
|
}
|
|
193
207
|
interface GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse {}
|
|
194
208
|
interface GoogleCloudDiscoveryengineV1alphaEngine {
|
|
209
|
+
/** Whether the search engine can associate with multiple data stores. If true, the generic search engine can associate with one or more data stores. This is an input-only field. */
|
|
210
|
+
allowMultipleDataStoresSearchEngine?: boolean;
|
|
195
211
|
/** Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
|
|
196
212
|
chatEngineConfig?: GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig;
|
|
197
213
|
/** Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
|
|
@@ -308,6 +324,16 @@ declare namespace gapi.client {
|
|
|
308
324
|
/** If searchable_option is SEARCHABLE_ENABLED, field values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but field type is numerical, field values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical fields. If searchable_option is unset, the server behavior defaults to SEARCHABLE_DISABLED for fields that support setting searchable options. Only `string` fields that have no key property mapping support setting searchable_option. For those fields that do not support setting searchable options, the server will skip searchable option setting, and setting searchable_option for those fields will throw `INVALID_ARGUMENT` error. */
|
|
309
325
|
searchableOption?: string;
|
|
310
326
|
}
|
|
327
|
+
interface GoogleCloudDiscoveryengineV1alphaIdpConfig {
|
|
328
|
+
/** External Identity provider config. */
|
|
329
|
+
externalIdpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig;
|
|
330
|
+
/** Identity provider type configured. */
|
|
331
|
+
idpType?: string;
|
|
332
|
+
}
|
|
333
|
+
interface GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig {
|
|
334
|
+
/** Workforce pool name. Example: "locations/global/workforcePools/pool_id" */
|
|
335
|
+
workforcePoolName?: string;
|
|
336
|
+
}
|
|
311
337
|
interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
|
|
312
338
|
/** Operation create time. */
|
|
313
339
|
createTime?: string;
|
|
@@ -382,6 +408,8 @@ declare namespace gapi.client {
|
|
|
382
408
|
createTime?: string;
|
|
383
409
|
/** Count of entries that encountered errors while processing. */
|
|
384
410
|
failureCount?: string;
|
|
411
|
+
/** Count of entries that were ignored as entries were not found. */
|
|
412
|
+
ignoredCount?: string;
|
|
385
413
|
/** Count of entries that were deleted successfully. */
|
|
386
414
|
successCount?: string;
|
|
387
415
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
@@ -614,6 +642,8 @@ declare namespace gapi.client {
|
|
|
614
642
|
userInput?: GoogleCloudDiscoveryengineV1betaTextInput;
|
|
615
643
|
}
|
|
616
644
|
interface GoogleCloudDiscoveryengineV1betaConverseConversationRequest {
|
|
645
|
+
/** 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) */
|
|
646
|
+
boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
|
|
617
647
|
/** 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
648
|
conversation?: GoogleCloudDiscoveryengineV1betaConversation;
|
|
619
649
|
/** 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 +714,16 @@ declare namespace gapi.client {
|
|
|
684
714
|
defaultSchemaId?: string;
|
|
685
715
|
/** 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
716
|
displayName?: string;
|
|
717
|
+
/** Configuration for Document understanding and enrichment. */
|
|
718
|
+
documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
|
|
687
719
|
/** Immutable. The industry vertical that the data store registers. */
|
|
688
720
|
industryVertical?: string;
|
|
689
721
|
/** 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
722
|
name?: string;
|
|
691
723
|
/** 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
724
|
solutionTypes?: string[];
|
|
725
|
+
/** 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). */
|
|
726
|
+
startingSchema?: GoogleCloudDiscoveryengineV1betaSchema;
|
|
693
727
|
}
|
|
694
728
|
interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
|
|
695
729
|
/** Operation create time. */
|
|
@@ -715,6 +749,7 @@ declare namespace gapi.client {
|
|
|
715
749
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
716
750
|
updateTime?: string;
|
|
717
751
|
}
|
|
752
|
+
interface GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
|
|
718
753
|
interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata {
|
|
719
754
|
/** Operation create time. */
|
|
720
755
|
createTime?: string;
|
|
@@ -730,6 +765,8 @@ declare namespace gapi.client {
|
|
|
730
765
|
derivedStructData?: {[P in string]: any};
|
|
731
766
|
/** 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
767
|
id?: string;
|
|
768
|
+
/** 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. */
|
|
769
|
+
indexTime?: string;
|
|
733
770
|
/** The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
734
771
|
jsonData?: string;
|
|
735
772
|
/** 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 +798,22 @@ declare namespace gapi.client {
|
|
|
761
798
|
/** The Document URI - only allowed for website data stores. */
|
|
762
799
|
uri?: string;
|
|
763
800
|
}
|
|
801
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig {
|
|
802
|
+
/** 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. */
|
|
803
|
+
defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
804
|
+
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
805
|
+
name?: string;
|
|
806
|
+
/** 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. */
|
|
807
|
+
parsingConfigOverrides?: {
|
|
808
|
+
[P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig {
|
|
812
|
+
/** Configurations applied to digital parser. */
|
|
813
|
+
digitalParsingConfig?: any;
|
|
814
|
+
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
815
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaOcrParsingConfig;
|
|
816
|
+
}
|
|
764
817
|
interface GoogleCloudDiscoveryengineV1betaDoubleList {
|
|
765
818
|
/** Double values. */
|
|
766
819
|
values?: number[];
|
|
@@ -1003,6 +1056,12 @@ declare namespace gapi.client {
|
|
|
1003
1056
|
/** 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
1057
|
mediaProgressPercentage?: number;
|
|
1005
1058
|
}
|
|
1059
|
+
interface GoogleCloudDiscoveryengineV1betaOcrParsingConfig {
|
|
1060
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
1061
|
+
enhancedDocumentElements?: string[];
|
|
1062
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
1063
|
+
useNativeText?: boolean;
|
|
1064
|
+
}
|
|
1006
1065
|
interface GoogleCloudDiscoveryengineV1betaPageInfo {
|
|
1007
1066
|
/** 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
1067
|
pageCategory?: string;
|
|
@@ -1028,6 +1087,8 @@ declare namespace gapi.client {
|
|
|
1028
1087
|
createTime?: string;
|
|
1029
1088
|
/** Count of entries that encountered errors while processing. */
|
|
1030
1089
|
failureCount?: string;
|
|
1090
|
+
/** Count of entries that were ignored as entries were not found. */
|
|
1091
|
+
ignoredCount?: string;
|
|
1031
1092
|
/** Count of entries that were deleted successfully. */
|
|
1032
1093
|
successCount?: string;
|
|
1033
1094
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
@@ -1179,7 +1240,7 @@ declare namespace gapi.client {
|
|
|
1179
1240
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec {
|
|
1180
1241
|
/** 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
1242
|
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": * (
|
|
1243
|
+
/** 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
1244
|
condition?: string;
|
|
1184
1245
|
}
|
|
1185
1246
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec {
|
|
@@ -1614,12 +1675,16 @@ declare namespace gapi.client {
|
|
|
1614
1675
|
defaultSchemaId?: string;
|
|
1615
1676
|
/** 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
1677
|
displayName?: string;
|
|
1678
|
+
/** Configuration for Document understanding and enrichment. */
|
|
1679
|
+
documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
|
|
1617
1680
|
/** Immutable. The industry vertical that the data store registers. */
|
|
1618
1681
|
industryVertical?: string;
|
|
1619
1682
|
/** 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
1683
|
name?: string;
|
|
1621
1684
|
/** 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
1685
|
solutionTypes?: string[];
|
|
1686
|
+
/** 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). */
|
|
1687
|
+
startingSchema?: GoogleCloudDiscoveryengineV1Schema;
|
|
1623
1688
|
}
|
|
1624
1689
|
interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
|
|
1625
1690
|
/** Operation create time. */
|
|
@@ -1645,6 +1710,7 @@ declare namespace gapi.client {
|
|
|
1645
1710
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1646
1711
|
updateTime?: string;
|
|
1647
1712
|
}
|
|
1713
|
+
interface GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
|
|
1648
1714
|
interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata {
|
|
1649
1715
|
/** Operation create time. */
|
|
1650
1716
|
createTime?: string;
|
|
@@ -1652,6 +1718,22 @@ declare namespace gapi.client {
|
|
|
1652
1718
|
updateTime?: string;
|
|
1653
1719
|
}
|
|
1654
1720
|
interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse {}
|
|
1721
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfig {
|
|
1722
|
+
/** 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. */
|
|
1723
|
+
defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
1724
|
+
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
1725
|
+
name?: string;
|
|
1726
|
+
/** 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. */
|
|
1727
|
+
parsingConfigOverrides?: {
|
|
1728
|
+
[P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig {
|
|
1732
|
+
/** Configurations applied to digital parser. */
|
|
1733
|
+
digitalParsingConfig?: any;
|
|
1734
|
+
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
1735
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1OcrParsingConfig;
|
|
1736
|
+
}
|
|
1655
1737
|
interface GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata {
|
|
1656
1738
|
/** Operation create time. */
|
|
1657
1739
|
createTime?: string;
|
|
@@ -1767,11 +1849,19 @@ declare namespace gapi.client {
|
|
|
1767
1849
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
1768
1850
|
unjoinedEventsCount?: string;
|
|
1769
1851
|
}
|
|
1852
|
+
interface GoogleCloudDiscoveryengineV1OcrParsingConfig {
|
|
1853
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
1854
|
+
enhancedDocumentElements?: string[];
|
|
1855
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
1856
|
+
useNativeText?: boolean;
|
|
1857
|
+
}
|
|
1770
1858
|
interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
|
|
1771
1859
|
/** Operation create time. */
|
|
1772
1860
|
createTime?: string;
|
|
1773
1861
|
/** Count of entries that encountered errors while processing. */
|
|
1774
1862
|
failureCount?: string;
|
|
1863
|
+
/** Count of entries that were ignored as entries were not found. */
|
|
1864
|
+
ignoredCount?: string;
|
|
1775
1865
|
/** Count of entries that were deleted successfully. */
|
|
1776
1866
|
successCount?: string;
|
|
1777
1867
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|