@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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 +75 -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=v1alpha
12
- // Revision: 20240213
12
+ // Revision: 20240224
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -174,6 +174,8 @@ declare namespace gapi.client {
174
174
  userInput?: GoogleCloudDiscoveryengineV1alphaTextInput;
175
175
  }
176
176
  interface GoogleCloudDiscoveryengineV1alphaConverseConversationRequest {
177
+ /** 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) */
178
+ boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
177
179
  /** 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. */
178
180
  conversation?: GoogleCloudDiscoveryengineV1alphaConversation;
179
181
  /** 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) */
@@ -250,12 +252,16 @@ declare namespace gapi.client {
250
252
  defaultSchemaId?: string;
251
253
  /** 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. */
252
254
  displayName?: string;
255
+ /** Configuration for Document understanding and enrichment. */
256
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
253
257
  /** Immutable. The industry vertical that the data store registers. */
254
258
  industryVertical?: string;
255
259
  /** 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. */
256
260
  name?: string;
257
261
  /** 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. */
258
262
  solutionTypes?: string[];
263
+ /** 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). */
264
+ startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
259
265
  }
260
266
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
261
267
  /** Operation create time. */
@@ -297,6 +303,8 @@ declare namespace gapi.client {
297
303
  derivedStructData?: {[P in string]: any};
298
304
  /** 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. */
299
305
  id?: string;
306
+ /** 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. */
307
+ indexTime?: string;
300
308
  /** The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
301
309
  jsonData?: string;
302
310
  /** 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. */
@@ -335,7 +343,7 @@ declare namespace gapi.client {
335
343
  name?: string;
336
344
  /** [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. */
337
345
  ocrConfig?: GoogleCloudDiscoveryengineV1alphaOcrConfig;
338
- /** 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. */
346
+ /** 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. */
339
347
  parsingConfigOverrides?: {
340
348
  [P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
341
349
  };
@@ -734,6 +742,8 @@ declare namespace gapi.client {
734
742
  createTime?: string;
735
743
  /** Count of entries that encountered errors while processing. */
736
744
  failureCount?: string;
745
+ /** Count of entries that were ignored as entries were not found. */
746
+ ignoredCount?: string;
737
747
  /** Count of entries that were deleted successfully. */
738
748
  successCount?: string;
739
749
  /** Operation last update time. If the operation is done, this is also the finish time. */
@@ -900,6 +910,8 @@ declare namespace gapi.client {
900
910
  canonicalFilter?: string;
901
911
  /** A specification for configuring the behavior of content search. */
902
912
  contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
913
+ /** Custom fine tuning configs. */
914
+ customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
903
915
  /** Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path. */
904
916
  embeddingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec;
905
917
  /** Facet specifications for faceted search. If empty, no facets are returned. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. */
@@ -944,7 +956,7 @@ declare namespace gapi.client {
944
956
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
945
957
  /** 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. */
946
958
  boost?: number;
947
- /** 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")) */
959
+ /** 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")) */
948
960
  condition?: string;
949
961
  }
950
962
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec {
@@ -1437,6 +1449,8 @@ declare namespace gapi.client {
1437
1449
  enableSnippetResultSummary?: boolean;
1438
1450
  /** Turn on or off summarization for the search response. */
1439
1451
  enableSummarization?: boolean;
1452
+ /** Whether to enable standalone web app. */
1453
+ enableWebApp?: boolean;
1440
1454
  /** The configuration and appearance of facets in the end user view. */
1441
1455
  facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
1442
1456
  /** The key is the UI component. Mock. Currently supported `title`, `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed. */
@@ -1557,12 +1571,16 @@ declare namespace gapi.client {
1557
1571
  defaultSchemaId?: string;
1558
1572
  /** 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. */
1559
1573
  displayName?: string;
1574
+ /** Configuration for Document understanding and enrichment. */
1575
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
1560
1576
  /** Immutable. The industry vertical that the data store registers. */
1561
1577
  industryVertical?: string;
1562
1578
  /** 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. */
1563
1579
  name?: string;
1564
1580
  /** 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. */
1565
1581
  solutionTypes?: string[];
1582
+ /** 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). */
1583
+ startingSchema?: GoogleCloudDiscoveryengineV1betaSchema;
1566
1584
  }
1567
1585
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
1568
1586
  /** Operation create time. */
@@ -1588,6 +1606,7 @@ declare namespace gapi.client {
1588
1606
  /** Operation last update time. If the operation is done, this is also the finish time. */
1589
1607
  updateTime?: string;
1590
1608
  }
1609
+ interface GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
1591
1610
  interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata {
1592
1611
  /** Operation create time. */
1593
1612
  createTime?: string;
@@ -1595,6 +1614,22 @@ declare namespace gapi.client {
1595
1614
  updateTime?: string;
1596
1615
  }
1597
1616
  interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse {}
1617
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig {
1618
+ /** 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. */
1619
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1620
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1621
+ name?: string;
1622
+ /** 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. */
1623
+ parsingConfigOverrides?: {
1624
+ [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1625
+ };
1626
+ }
1627
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig {
1628
+ /** Configurations applied to digital parser. */
1629
+ digitalParsingConfig?: any;
1630
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
1631
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaOcrParsingConfig;
1632
+ }
1598
1633
  interface GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata {
1599
1634
  /** Operation create time. */
1600
1635
  createTime?: string;
@@ -1710,11 +1745,19 @@ declare namespace gapi.client {
1710
1745
  /** Count of user events imported, but with Document information not found in the existing Branch. */
1711
1746
  unjoinedEventsCount?: string;
1712
1747
  }
1748
+ interface GoogleCloudDiscoveryengineV1betaOcrParsingConfig {
1749
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
1750
+ enhancedDocumentElements?: string[];
1751
+ /** If true, will use native text instead of OCR text on pages containing native text. */
1752
+ useNativeText?: boolean;
1753
+ }
1713
1754
  interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata {
1714
1755
  /** Operation create time. */
1715
1756
  createTime?: string;
1716
1757
  /** Count of entries that encountered errors while processing. */
1717
1758
  failureCount?: string;
1759
+ /** Count of entries that were ignored as entries were not found. */
1760
+ ignoredCount?: string;
1718
1761
  /** Count of entries that were deleted successfully. */
1719
1762
  successCount?: string;
1720
1763
  /** Operation last update time. If the operation is done, this is also the finish time. */
@@ -1825,12 +1868,16 @@ declare namespace gapi.client {
1825
1868
  defaultSchemaId?: string;
1826
1869
  /** 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. */
1827
1870
  displayName?: string;
1871
+ /** Configuration for Document understanding and enrichment. */
1872
+ documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
1828
1873
  /** Immutable. The industry vertical that the data store registers. */
1829
1874
  industryVertical?: string;
1830
1875
  /** 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. */
1831
1876
  name?: string;
1832
1877
  /** 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. */
1833
1878
  solutionTypes?: string[];
1879
+ /** 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). */
1880
+ startingSchema?: GoogleCloudDiscoveryengineV1Schema;
1834
1881
  }
1835
1882
  interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
1836
1883
  /** Operation create time. */
@@ -1856,6 +1903,7 @@ declare namespace gapi.client {
1856
1903
  /** Operation last update time. If the operation is done, this is also the finish time. */
1857
1904
  updateTime?: string;
1858
1905
  }
1906
+ interface GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
1859
1907
  interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata {
1860
1908
  /** Operation create time. */
1861
1909
  createTime?: string;
@@ -1863,6 +1911,22 @@ declare namespace gapi.client {
1863
1911
  updateTime?: string;
1864
1912
  }
1865
1913
  interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse {}
1914
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfig {
1915
+ /** 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. */
1916
+ defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
1917
+ /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
1918
+ name?: string;
1919
+ /** 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. */
1920
+ parsingConfigOverrides?: {
1921
+ [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
1922
+ };
1923
+ }
1924
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig {
1925
+ /** Configurations applied to digital parser. */
1926
+ digitalParsingConfig?: any;
1927
+ /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
1928
+ ocrParsingConfig?: GoogleCloudDiscoveryengineV1OcrParsingConfig;
1929
+ }
1866
1930
  interface GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata {
1867
1931
  /** Operation create time. */
1868
1932
  createTime?: string;
@@ -1978,11 +2042,19 @@ declare namespace gapi.client {
1978
2042
  /** Count of user events imported, but with Document information not found in the existing Branch. */
1979
2043
  unjoinedEventsCount?: string;
1980
2044
  }
2045
+ interface GoogleCloudDiscoveryengineV1OcrParsingConfig {
2046
+ /** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
2047
+ enhancedDocumentElements?: string[];
2048
+ /** If true, will use native text instead of OCR text on pages containing native text. */
2049
+ useNativeText?: boolean;
2050
+ }
1981
2051
  interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
1982
2052
  /** Operation create time. */
1983
2053
  createTime?: string;
1984
2054
  /** Count of entries that encountered errors while processing. */
1985
2055
  failureCount?: string;
2056
+ /** Count of entries that were ignored as entries were not found. */
2057
+ ignoredCount?: string;
1986
2058
  /** Count of entries that were deleted successfully. */
1987
2059
  successCount?: string;
1988
2060
  /** 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-v1alpha",
3
- "version": "0.0.20240213",
3
+ "version": "0.0.20240224",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",