@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240118 → 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.
- package/index.d.ts +36 -14
- 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:
|
|
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
|
-
/**
|
|
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;
|
|
@@ -856,7 +878,7 @@ declare namespace gapi.client {
|
|
|
856
878
|
canonicalFilter?: string;
|
|
857
879
|
/** A specification for configuring the behavior of content search. */
|
|
858
880
|
contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
859
|
-
/** 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.
|
|
881
|
+
/** 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. */
|
|
860
882
|
embeddingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec;
|
|
861
883
|
/** 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. */
|
|
862
884
|
facetSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec[];
|
|
@@ -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
|
-
/**
|
|
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;
|
|
@@ -4835,7 +4857,7 @@ declare namespace gapi.client {
|
|
|
4835
4857
|
prettyPrint?: boolean;
|
|
4836
4858
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4837
4859
|
quotaUser?: string;
|
|
4838
|
-
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.
|
|
4860
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.ocr_config If not set, all supported fields are updated. */
|
|
4839
4861
|
updateMask?: string;
|
|
4840
4862
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4841
4863
|
upload_protocol?: 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
|
-
/**
|
|
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;
|
|
@@ -4866,7 +4888,7 @@ declare namespace gapi.client {
|
|
|
4866
4888
|
prettyPrint?: boolean;
|
|
4867
4889
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4868
4890
|
quotaUser?: string;
|
|
4869
|
-
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.
|
|
4891
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.ocr_config If not set, all supported fields are updated. */
|
|
4870
4892
|
updateMask?: string;
|
|
4871
4893
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4872
4894
|
upload_protocol?: 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
|
-
/**
|
|
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;
|
|
@@ -8002,7 +8024,7 @@ declare namespace gapi.client {
|
|
|
8002
8024
|
prettyPrint?: boolean;
|
|
8003
8025
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8004
8026
|
quotaUser?: string;
|
|
8005
|
-
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.
|
|
8027
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.ocr_config If not set, all supported fields are updated. */
|
|
8006
8028
|
updateMask?: string;
|
|
8007
8029
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8008
8030
|
upload_protocol?: 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
|
-
/**
|
|
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;
|
|
@@ -8033,7 +8055,7 @@ declare namespace gapi.client {
|
|
|
8033
8055
|
prettyPrint?: boolean;
|
|
8034
8056
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8035
8057
|
quotaUser?: string;
|
|
8036
|
-
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.
|
|
8058
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.ocr_config If not set, all supported fields are updated. */
|
|
8037
8059
|
updateMask?: string;
|
|
8038
8060
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8039
8061
|
upload_protocol?: string;
|
|
@@ -8129,7 +8151,7 @@ declare namespace gapi.client {
|
|
|
8129
8151
|
fields?: string;
|
|
8130
8152
|
/** 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. */
|
|
8131
8153
|
key?: string;
|
|
8132
|
-
/** Required. Full resource name of the
|
|
8154
|
+
/** Required. Full resource name of the location, such as `projects/{project}/locations/{location}`. */
|
|
8133
8155
|
location: string;
|
|
8134
8156
|
/** OAuth 2.0 token for the current user. */
|
|
8135
8157
|
oauth_token?: string;
|
|
@@ -8158,7 +8180,7 @@ declare namespace gapi.client {
|
|
|
8158
8180
|
fields?: string;
|
|
8159
8181
|
/** 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. */
|
|
8160
8182
|
key?: string;
|
|
8161
|
-
/** Required. Full resource name of the
|
|
8183
|
+
/** Required. Full resource name of the location, such as `projects/{project}/locations/{location}`. */
|
|
8162
8184
|
location: string;
|
|
8163
8185
|
/** OAuth 2.0 token for the current user. */
|
|
8164
8186
|
oauth_token?: string;
|