@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240307 → 0.0.20240318
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 +138 -36
- 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: 20240318
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -315,7 +315,6 @@ declare namespace gapi.client {
|
|
|
315
315
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
316
316
|
updateTime?: string;
|
|
317
317
|
}
|
|
318
|
-
interface GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig {}
|
|
319
318
|
interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata {
|
|
320
319
|
/** Operation create time. */
|
|
321
320
|
createTime?: string;
|
|
@@ -402,7 +401,15 @@ declare namespace gapi.client {
|
|
|
402
401
|
/** Configurations applied to layout parser. */
|
|
403
402
|
layoutParsingConfig?: any;
|
|
404
403
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
405
|
-
ocrParsingConfig?:
|
|
404
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
405
|
+
}
|
|
406
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
407
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig {}
|
|
408
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
409
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
410
|
+
enhancedDocumentElements?: string[];
|
|
411
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
412
|
+
useNativeText?: boolean;
|
|
406
413
|
}
|
|
407
414
|
interface GoogleCloudDiscoveryengineV1alphaDoubleList {
|
|
408
415
|
/** Double values. */
|
|
@@ -701,7 +708,6 @@ declare namespace gapi.client {
|
|
|
701
708
|
/** Inclusive lower bound. */
|
|
702
709
|
minimum?: number;
|
|
703
710
|
}
|
|
704
|
-
interface GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig {}
|
|
705
711
|
interface GoogleCloudDiscoveryengineV1alphaListChunksResponse {
|
|
706
712
|
/** The Chunks. */
|
|
707
713
|
chunks?: GoogleCloudDiscoveryengineV1alphaChunk[];
|
|
@@ -766,12 +772,6 @@ declare namespace gapi.client {
|
|
|
766
772
|
/** 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. */
|
|
767
773
|
mediaProgressPercentage?: number;
|
|
768
774
|
}
|
|
769
|
-
interface GoogleCloudDiscoveryengineV1alphaOcrParsingConfig {
|
|
770
|
-
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
771
|
-
enhancedDocumentElements?: string[];
|
|
772
|
-
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
773
|
-
useNativeText?: boolean;
|
|
774
|
-
}
|
|
775
775
|
interface GoogleCloudDiscoveryengineV1alphaPageInfo {
|
|
776
776
|
/** 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. */
|
|
777
777
|
pageCategory?: string;
|
|
@@ -799,6 +799,12 @@ declare namespace gapi.client {
|
|
|
799
799
|
/** User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config. */
|
|
800
800
|
userId?: string;
|
|
801
801
|
}
|
|
802
|
+
interface GoogleCloudDiscoveryengineV1alphaProcessedDocument {
|
|
803
|
+
/** Required. Full resource name of the referenced document, in the format `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. */
|
|
804
|
+
document?: string;
|
|
805
|
+
/** The JSON string representation of the processed document. */
|
|
806
|
+
jsonData?: string;
|
|
807
|
+
}
|
|
802
808
|
interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
|
|
803
809
|
/** Operation create time. */
|
|
804
810
|
createTime?: string;
|
|
@@ -1026,9 +1032,9 @@ declare namespace gapi.client {
|
|
|
1026
1032
|
conditionBoostSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec[];
|
|
1027
1033
|
}
|
|
1028
1034
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
|
|
1029
|
-
/** 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. */
|
|
1035
|
+
/** 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. Only one of the (condition, boost) combination or the boost_control_spec below are set. If both are set then the global boost is ignored and the more fine-grained boost_control_spec is applied. */
|
|
1030
1036
|
boost?: number;
|
|
1031
|
-
/** 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":
|
|
1037
|
+
/** 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"))` */
|
|
1032
1038
|
condition?: string;
|
|
1033
1039
|
}
|
|
1034
1040
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec {
|
|
@@ -1050,6 +1056,8 @@ declare namespace gapi.client {
|
|
|
1050
1056
|
numNextSegments?: number;
|
|
1051
1057
|
/** Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments. */
|
|
1052
1058
|
numPreviousSegments?: number;
|
|
1059
|
+
/** Specifies whether to return the confidence score from the extractive segments in each search result. This feature is available only for new or allowlisted data stores. To allowlist your data store, please contact your Customer Engineer. The default value is `false`. */
|
|
1060
|
+
returnExtractiveSegmentScore?: boolean;
|
|
1053
1061
|
}
|
|
1054
1062
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec {
|
|
1055
1063
|
/** [DEPRECATED] This field is deprecated. To control snippet return, use `return_snippet` field. For backwards compatibility, we will return snippet if max_snippet_count > 0. */
|
|
@@ -1074,13 +1082,15 @@ declare namespace gapi.client {
|
|
|
1074
1082
|
modelSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
|
|
1075
1083
|
/** The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results can be used to generate a summary. */
|
|
1076
1084
|
summaryResultCount?: number;
|
|
1085
|
+
/** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. Please note that with this feature enabled, not all top search results will be referenced and included in the reference list, so the citation source index only points to the search results listed in the reference list. */
|
|
1086
|
+
useSemanticChunks?: boolean;
|
|
1077
1087
|
}
|
|
1078
1088
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec {
|
|
1079
1089
|
/** Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. */
|
|
1080
1090
|
preamble?: string;
|
|
1081
1091
|
}
|
|
1082
1092
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec {
|
|
1083
|
-
/** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned
|
|
1093
|
+
/** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). * `preview`: string. (Public preview) Uses a preview model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). */
|
|
1084
1094
|
version?: string;
|
|
1085
1095
|
}
|
|
1086
1096
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
|
|
@@ -1313,8 +1323,6 @@ declare namespace gapi.client {
|
|
|
1313
1323
|
interface GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig {
|
|
1314
1324
|
/** Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days. */
|
|
1315
1325
|
contentFreshnessCutoffDays?: number;
|
|
1316
|
-
/** Specifies the content watched minutes threshold for demotion. */
|
|
1317
|
-
contentWatchedMinutesThreshold?: number;
|
|
1318
1326
|
/** Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive. */
|
|
1319
1327
|
contentWatchedPercentageThreshold?: number;
|
|
1320
1328
|
/** Specifies the content watched minutes threshold for demotion. */
|
|
@@ -1387,13 +1395,13 @@ declare namespace gapi.client {
|
|
|
1387
1395
|
modelType?: string;
|
|
1388
1396
|
}
|
|
1389
1397
|
interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput {
|
|
1390
|
-
/** The Cloud Storage corpus data which could be associated in train data. The data path format is gs
|
|
1398
|
+
/** The Cloud Storage corpus data which could be associated in train data. The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For search-tuning model, each line should have the _id, title and text. Example: `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` */
|
|
1391
1399
|
corpusDataPath?: string;
|
|
1392
|
-
/** The gcs query data which could be associated in train data. The data path format is gs
|
|
1400
|
+
/** The gcs query data which could be associated in train data. The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For search-tuning model, each line should have the _id and text. Example: {"_id": "query1", "text": "example query"} */
|
|
1393
1401
|
queryDataPath?: string;
|
|
1394
1402
|
/** Cloud Storage test data. Same format as train_data_path. If not provided, a random 80/20 train/test split will be performed on train_data_path. */
|
|
1395
1403
|
testDataPath?: string;
|
|
1396
|
-
/** Cloud Storage training data path whose format should be gs
|
|
1404
|
+
/** Cloud Storage training data path whose format should be `gs:///`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1` */
|
|
1397
1405
|
trainDataPath?: string;
|
|
1398
1406
|
}
|
|
1399
1407
|
interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse {
|
|
@@ -1505,6 +1513,8 @@ declare namespace gapi.client {
|
|
|
1505
1513
|
allowlistedDomains?: string[];
|
|
1506
1514
|
/** Whether allow no-auth integration with widget. If set true, public access to search or other solutions from widget is allowed without authenication token provided by customer hosted backend server. */
|
|
1507
1515
|
allowPublicAccess?: boolean;
|
|
1516
|
+
/** Output only. Collection components that lists all collections and child data stores associated with the widget config, those data sources can be used for filtering in widget service APIs, users can return results that from selected data sources. */
|
|
1517
|
+
collectionComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
|
|
1508
1518
|
/** Output only. Unique obfuscated identifier of a WidgetConfig. */
|
|
1509
1519
|
configId?: string;
|
|
1510
1520
|
/** The content search spec that configs the desired behavior of content search. */
|
|
@@ -1513,6 +1523,8 @@ declare namespace gapi.client {
|
|
|
1513
1523
|
createTime?: string;
|
|
1514
1524
|
/** Output only. The type of the parent data store. */
|
|
1515
1525
|
dataStoreType?: string;
|
|
1526
|
+
/** Configurable UI configurations per data store. */
|
|
1527
|
+
dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
1516
1528
|
/** Required. The human readable widget config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
1517
1529
|
displayName?: string;
|
|
1518
1530
|
/** Whether or not to enable autocomplete. */
|
|
@@ -1552,6 +1564,36 @@ declare namespace gapi.client {
|
|
|
1552
1564
|
/** Output only. Timestamp the WidgetConfig was updated. */
|
|
1553
1565
|
updateTime?: string;
|
|
1554
1566
|
}
|
|
1567
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
1568
|
+
/** For the data store collection, list of the children data stores. */
|
|
1569
|
+
dataStoreComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
|
|
1570
|
+
/** The display name of the collection. */
|
|
1571
|
+
displayName?: string;
|
|
1572
|
+
/** Output only. the identifier of the collection, used for widget service. For now it refers to collection_id, in the future we will migrate the field to encrypted collection name UUID. */
|
|
1573
|
+
id?: string;
|
|
1574
|
+
/** The name of the collection. It should be collection resource name. Format: `projects/{project_number}/locations/{location}/collections/{collection_id}`. For widget service usage, such look up widget config, returned name should be skipped. */
|
|
1575
|
+
name?: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
|
|
1578
|
+
/** The display name of the data store. */
|
|
1579
|
+
displayName?: string;
|
|
1580
|
+
/** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
|
|
1581
|
+
id?: string;
|
|
1582
|
+
/** The name of the data store. It should be data store resource name Format: `projects/{project_number}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For widget service usage, such look up widget config, returned name should be skipped. */
|
|
1583
|
+
name?: string;
|
|
1584
|
+
}
|
|
1585
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
|
|
1586
|
+
/** Facet fields that store the mapping of fields to end user widget appearance. */
|
|
1587
|
+
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
1588
|
+
/** 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. */
|
|
1589
|
+
fieldsUiComponentsMap?: {
|
|
1590
|
+
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
1591
|
+
};
|
|
1592
|
+
/** Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. */
|
|
1593
|
+
id?: string;
|
|
1594
|
+
/** The name of the data store. It should be data store resource name Format: `projects/{project_number}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. For widget service usage, such look up widget config, returned name should be skipped. */
|
|
1595
|
+
name?: string;
|
|
1596
|
+
}
|
|
1555
1597
|
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
|
|
1556
1598
|
/** Optional. The field name that end users will see. */
|
|
1557
1599
|
displayName?: string;
|
|
@@ -1686,7 +1728,6 @@ declare namespace gapi.client {
|
|
|
1686
1728
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1687
1729
|
updateTime?: string;
|
|
1688
1730
|
}
|
|
1689
|
-
interface GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
|
|
1690
1731
|
interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata {
|
|
1691
1732
|
/** Operation create time. */
|
|
1692
1733
|
createTime?: string;
|
|
@@ -1708,7 +1749,14 @@ declare namespace gapi.client {
|
|
|
1708
1749
|
/** Configurations applied to digital parser. */
|
|
1709
1750
|
digitalParsingConfig?: any;
|
|
1710
1751
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
1711
|
-
ocrParsingConfig?:
|
|
1752
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
1753
|
+
}
|
|
1754
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
1755
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
1756
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
1757
|
+
enhancedDocumentElements?: string[];
|
|
1758
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
1759
|
+
useNativeText?: boolean;
|
|
1712
1760
|
}
|
|
1713
1761
|
interface GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata {
|
|
1714
1762
|
/** Operation create time. */
|
|
@@ -1825,12 +1873,6 @@ declare namespace gapi.client {
|
|
|
1825
1873
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
1826
1874
|
unjoinedEventsCount?: string;
|
|
1827
1875
|
}
|
|
1828
|
-
interface GoogleCloudDiscoveryengineV1betaOcrParsingConfig {
|
|
1829
|
-
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
1830
|
-
enhancedDocumentElements?: string[];
|
|
1831
|
-
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
1832
|
-
useNativeText?: boolean;
|
|
1833
|
-
}
|
|
1834
1876
|
interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata {
|
|
1835
1877
|
/** Operation create time. */
|
|
1836
1878
|
createTime?: string;
|
|
@@ -1997,7 +2039,6 @@ declare namespace gapi.client {
|
|
|
1997
2039
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1998
2040
|
updateTime?: string;
|
|
1999
2041
|
}
|
|
2000
|
-
interface GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
|
|
2001
2042
|
interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata {
|
|
2002
2043
|
/** Operation create time. */
|
|
2003
2044
|
createTime?: string;
|
|
@@ -2019,7 +2060,14 @@ declare namespace gapi.client {
|
|
|
2019
2060
|
/** Configurations applied to digital parser. */
|
|
2020
2061
|
digitalParsingConfig?: any;
|
|
2021
2062
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
2022
|
-
ocrParsingConfig?:
|
|
2063
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
2064
|
+
}
|
|
2065
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
2066
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
2067
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
2068
|
+
enhancedDocumentElements?: string[];
|
|
2069
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
2070
|
+
useNativeText?: boolean;
|
|
2023
2071
|
}
|
|
2024
2072
|
interface GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata {
|
|
2025
2073
|
/** Operation create time. */
|
|
@@ -2136,12 +2184,6 @@ declare namespace gapi.client {
|
|
|
2136
2184
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
2137
2185
|
unjoinedEventsCount?: string;
|
|
2138
2186
|
}
|
|
2139
|
-
interface GoogleCloudDiscoveryengineV1OcrParsingConfig {
|
|
2140
|
-
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
2141
|
-
enhancedDocumentElements?: string[];
|
|
2142
|
-
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
2143
|
-
useNativeText?: boolean;
|
|
2144
|
-
}
|
|
2145
2187
|
interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
|
|
2146
2188
|
/** Operation create time. */
|
|
2147
2189
|
createTime?: string;
|
|
@@ -2598,7 +2640,6 @@ declare namespace gapi.client {
|
|
|
2598
2640
|
alt?: string;
|
|
2599
2641
|
/** JSONP */
|
|
2600
2642
|
callback?: string;
|
|
2601
|
-
documentsId: string;
|
|
2602
2643
|
/** Selector specifying which fields to include in a partial response. */
|
|
2603
2644
|
fields?: string;
|
|
2604
2645
|
/** 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. */
|
|
@@ -2738,6 +2779,37 @@ declare namespace gapi.client {
|
|
|
2738
2779
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2739
2780
|
uploadType?: string;
|
|
2740
2781
|
}): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
2782
|
+
/** Gets the parsed layout information for a Document. */
|
|
2783
|
+
getProcessedDocument(request?: {
|
|
2784
|
+
/** V1 error format. */
|
|
2785
|
+
'$.xgafv'?: string;
|
|
2786
|
+
/** OAuth access token. */
|
|
2787
|
+
access_token?: string;
|
|
2788
|
+
/** Data format for response. */
|
|
2789
|
+
alt?: string;
|
|
2790
|
+
/** JSONP */
|
|
2791
|
+
callback?: string;
|
|
2792
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2793
|
+
fields?: string;
|
|
2794
|
+
/** 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. */
|
|
2795
|
+
key?: string;
|
|
2796
|
+
/** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
|
|
2797
|
+
name: string;
|
|
2798
|
+
/** OAuth 2.0 token for the current user. */
|
|
2799
|
+
oauth_token?: string;
|
|
2800
|
+
/** Returns response with indentations and line breaks. */
|
|
2801
|
+
prettyPrint?: boolean;
|
|
2802
|
+
/** What format output should be. If unspecified, defaults to JSON. */
|
|
2803
|
+
processedDocumentFormat?: string;
|
|
2804
|
+
/** Required. What type of processing to return. */
|
|
2805
|
+
processedDocumentType?: string;
|
|
2806
|
+
/** 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. */
|
|
2807
|
+
quotaUser?: string;
|
|
2808
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2809
|
+
upload_protocol?: string;
|
|
2810
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2811
|
+
uploadType?: string;
|
|
2812
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
|
|
2741
2813
|
/** Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated. */
|
|
2742
2814
|
import(request: {
|
|
2743
2815
|
/** V1 error format. */
|
|
@@ -6407,7 +6479,6 @@ declare namespace gapi.client {
|
|
|
6407
6479
|
alt?: string;
|
|
6408
6480
|
/** JSONP */
|
|
6409
6481
|
callback?: string;
|
|
6410
|
-
documentsId: string;
|
|
6411
6482
|
/** Selector specifying which fields to include in a partial response. */
|
|
6412
6483
|
fields?: string;
|
|
6413
6484
|
/** 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. */
|
|
@@ -6547,6 +6618,37 @@ declare namespace gapi.client {
|
|
|
6547
6618
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6548
6619
|
uploadType?: string;
|
|
6549
6620
|
}): Request<GoogleCloudDiscoveryengineV1alphaDocument>;
|
|
6621
|
+
/** Gets the parsed layout information for a Document. */
|
|
6622
|
+
getProcessedDocument(request?: {
|
|
6623
|
+
/** V1 error format. */
|
|
6624
|
+
'$.xgafv'?: string;
|
|
6625
|
+
/** OAuth access token. */
|
|
6626
|
+
access_token?: string;
|
|
6627
|
+
/** Data format for response. */
|
|
6628
|
+
alt?: string;
|
|
6629
|
+
/** JSONP */
|
|
6630
|
+
callback?: string;
|
|
6631
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
6632
|
+
fields?: string;
|
|
6633
|
+
/** 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. */
|
|
6634
|
+
key?: string;
|
|
6635
|
+
/** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
|
|
6636
|
+
name: string;
|
|
6637
|
+
/** OAuth 2.0 token for the current user. */
|
|
6638
|
+
oauth_token?: string;
|
|
6639
|
+
/** Returns response with indentations and line breaks. */
|
|
6640
|
+
prettyPrint?: boolean;
|
|
6641
|
+
/** What format output should be. If unspecified, defaults to JSON. */
|
|
6642
|
+
processedDocumentFormat?: string;
|
|
6643
|
+
/** Required. What type of processing to return. */
|
|
6644
|
+
processedDocumentType?: string;
|
|
6645
|
+
/** 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. */
|
|
6646
|
+
quotaUser?: string;
|
|
6647
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6648
|
+
upload_protocol?: string;
|
|
6649
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6650
|
+
uploadType?: string;
|
|
6651
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
|
|
6550
6652
|
/** Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated. */
|
|
6551
6653
|
import(request: {
|
|
6552
6654
|
/** V1 error format. */
|