@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240307 → 0.0.20240312
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 +67 -35
- 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: 20240312
|
|
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;
|
|
@@ -1028,7 +1028,7 @@ declare namespace gapi.client {
|
|
|
1028
1028
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
|
|
1029
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. */
|
|
1030
1030
|
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":
|
|
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": `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` */
|
|
1032
1032
|
condition?: string;
|
|
1033
1033
|
}
|
|
1034
1034
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec {
|
|
@@ -1050,6 +1050,8 @@ declare namespace gapi.client {
|
|
|
1050
1050
|
numNextSegments?: number;
|
|
1051
1051
|
/** Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments. */
|
|
1052
1052
|
numPreviousSegments?: number;
|
|
1053
|
+
/** 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`. */
|
|
1054
|
+
returnExtractiveSegmentScore?: boolean;
|
|
1053
1055
|
}
|
|
1054
1056
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec {
|
|
1055
1057
|
/** [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. */
|
|
@@ -1080,7 +1082,7 @@ declare namespace gapi.client {
|
|
|
1080
1082
|
preamble?: string;
|
|
1081
1083
|
}
|
|
1082
1084
|
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
|
|
1085
|
+
/** 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
1086
|
version?: string;
|
|
1085
1087
|
}
|
|
1086
1088
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
|
|
@@ -1313,8 +1315,6 @@ declare namespace gapi.client {
|
|
|
1313
1315
|
interface GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig {
|
|
1314
1316
|
/** Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days. */
|
|
1315
1317
|
contentFreshnessCutoffDays?: number;
|
|
1316
|
-
/** Specifies the content watched minutes threshold for demotion. */
|
|
1317
|
-
contentWatchedMinutesThreshold?: number;
|
|
1318
1318
|
/** Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive. */
|
|
1319
1319
|
contentWatchedPercentageThreshold?: number;
|
|
1320
1320
|
/** Specifies the content watched minutes threshold for demotion. */
|
|
@@ -1387,13 +1387,13 @@ declare namespace gapi.client {
|
|
|
1387
1387
|
modelType?: string;
|
|
1388
1388
|
}
|
|
1389
1389
|
interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput {
|
|
1390
|
-
/** The Cloud Storage corpus data which could be associated in train data. The data path format is gs
|
|
1390
|
+
/** 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
1391
|
corpusDataPath?: string;
|
|
1392
|
-
/** The gcs query data which could be associated in train data. The data path format is gs
|
|
1392
|
+
/** 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
1393
|
queryDataPath?: string;
|
|
1394
1394
|
/** 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
1395
|
testDataPath?: string;
|
|
1396
|
-
/** Cloud Storage training data path whose format should be gs
|
|
1396
|
+
/** 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
1397
|
trainDataPath?: string;
|
|
1398
1398
|
}
|
|
1399
1399
|
interface GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse {
|
|
@@ -1505,6 +1505,8 @@ declare namespace gapi.client {
|
|
|
1505
1505
|
allowlistedDomains?: string[];
|
|
1506
1506
|
/** 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
1507
|
allowPublicAccess?: boolean;
|
|
1508
|
+
/** 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. */
|
|
1509
|
+
collectionComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
|
|
1508
1510
|
/** Output only. Unique obfuscated identifier of a WidgetConfig. */
|
|
1509
1511
|
configId?: string;
|
|
1510
1512
|
/** The content search spec that configs the desired behavior of content search. */
|
|
@@ -1513,6 +1515,8 @@ declare namespace gapi.client {
|
|
|
1513
1515
|
createTime?: string;
|
|
1514
1516
|
/** Output only. The type of the parent data store. */
|
|
1515
1517
|
dataStoreType?: string;
|
|
1518
|
+
/** Configurable UI configurations per data store. */
|
|
1519
|
+
dataStoreUiConfigs?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
1516
1520
|
/** 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
1521
|
displayName?: string;
|
|
1518
1522
|
/** Whether or not to enable autocomplete. */
|
|
@@ -1552,6 +1556,36 @@ declare namespace gapi.client {
|
|
|
1552
1556
|
/** Output only. Timestamp the WidgetConfig was updated. */
|
|
1553
1557
|
updateTime?: string;
|
|
1554
1558
|
}
|
|
1559
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
1560
|
+
/** For the data store collection, list of the children data stores. */
|
|
1561
|
+
dataStoreComponents?: GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
|
|
1562
|
+
/** The display name of the collection. */
|
|
1563
|
+
displayName?: string;
|
|
1564
|
+
/** 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. */
|
|
1565
|
+
id?: string;
|
|
1566
|
+
/** 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. */
|
|
1567
|
+
name?: string;
|
|
1568
|
+
}
|
|
1569
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
|
|
1570
|
+
/** The display name of the data store. */
|
|
1571
|
+
displayName?: string;
|
|
1572
|
+
/** 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. */
|
|
1573
|
+
id?: string;
|
|
1574
|
+
/** 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. */
|
|
1575
|
+
name?: string;
|
|
1576
|
+
}
|
|
1577
|
+
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
|
|
1578
|
+
/** Facet fields that store the mapping of fields to end user widget appearance. */
|
|
1579
|
+
facetField?: GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
1580
|
+
/** 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. */
|
|
1581
|
+
fieldsUiComponentsMap?: {
|
|
1582
|
+
[P in string]: GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
1583
|
+
};
|
|
1584
|
+
/** 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. */
|
|
1585
|
+
id?: string;
|
|
1586
|
+
/** 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. */
|
|
1587
|
+
name?: string;
|
|
1588
|
+
}
|
|
1555
1589
|
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField {
|
|
1556
1590
|
/** Optional. The field name that end users will see. */
|
|
1557
1591
|
displayName?: string;
|
|
@@ -1686,7 +1720,6 @@ declare namespace gapi.client {
|
|
|
1686
1720
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1687
1721
|
updateTime?: string;
|
|
1688
1722
|
}
|
|
1689
|
-
interface GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
|
|
1690
1723
|
interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata {
|
|
1691
1724
|
/** Operation create time. */
|
|
1692
1725
|
createTime?: string;
|
|
@@ -1708,7 +1741,14 @@ declare namespace gapi.client {
|
|
|
1708
1741
|
/** Configurations applied to digital parser. */
|
|
1709
1742
|
digitalParsingConfig?: any;
|
|
1710
1743
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
1711
|
-
ocrParsingConfig?:
|
|
1744
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
1745
|
+
}
|
|
1746
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
1747
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
1748
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
1749
|
+
enhancedDocumentElements?: string[];
|
|
1750
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
1751
|
+
useNativeText?: boolean;
|
|
1712
1752
|
}
|
|
1713
1753
|
interface GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata {
|
|
1714
1754
|
/** Operation create time. */
|
|
@@ -1825,12 +1865,6 @@ declare namespace gapi.client {
|
|
|
1825
1865
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
1826
1866
|
unjoinedEventsCount?: string;
|
|
1827
1867
|
}
|
|
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
1868
|
interface GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata {
|
|
1835
1869
|
/** Operation create time. */
|
|
1836
1870
|
createTime?: string;
|
|
@@ -1997,7 +2031,6 @@ declare namespace gapi.client {
|
|
|
1997
2031
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1998
2032
|
updateTime?: string;
|
|
1999
2033
|
}
|
|
2000
|
-
interface GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
|
|
2001
2034
|
interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata {
|
|
2002
2035
|
/** Operation create time. */
|
|
2003
2036
|
createTime?: string;
|
|
@@ -2019,7 +2052,14 @@ declare namespace gapi.client {
|
|
|
2019
2052
|
/** Configurations applied to digital parser. */
|
|
2020
2053
|
digitalParsingConfig?: any;
|
|
2021
2054
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
2022
|
-
ocrParsingConfig?:
|
|
2055
|
+
ocrParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
2056
|
+
}
|
|
2057
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
2058
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
2059
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
2060
|
+
enhancedDocumentElements?: string[];
|
|
2061
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
2062
|
+
useNativeText?: boolean;
|
|
2023
2063
|
}
|
|
2024
2064
|
interface GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata {
|
|
2025
2065
|
/** Operation create time. */
|
|
@@ -2136,12 +2176,6 @@ declare namespace gapi.client {
|
|
|
2136
2176
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
2137
2177
|
unjoinedEventsCount?: string;
|
|
2138
2178
|
}
|
|
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
2179
|
interface GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata {
|
|
2146
2180
|
/** Operation create time. */
|
|
2147
2181
|
createTime?: string;
|
|
@@ -2598,7 +2632,6 @@ declare namespace gapi.client {
|
|
|
2598
2632
|
alt?: string;
|
|
2599
2633
|
/** JSONP */
|
|
2600
2634
|
callback?: string;
|
|
2601
|
-
documentsId: string;
|
|
2602
2635
|
/** Selector specifying which fields to include in a partial response. */
|
|
2603
2636
|
fields?: string;
|
|
2604
2637
|
/** 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. */
|
|
@@ -6407,7 +6440,6 @@ declare namespace gapi.client {
|
|
|
6407
6440
|
alt?: string;
|
|
6408
6441
|
/** JSONP */
|
|
6409
6442
|
callback?: string;
|
|
6410
|
-
documentsId: string;
|
|
6411
6443
|
/** Selector specifying which fields to include in a partial response. */
|
|
6412
6444
|
fields?: string;
|
|
6413
6445
|
/** 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. */
|