@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240526 → 0.0.20240530
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 +59 -11
- 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: 20240530
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -88,6 +88,20 @@ declare namespace gapi.client {
|
|
|
88
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
89
|
name?: string;
|
|
90
90
|
}
|
|
91
|
+
interface GoogleCloudDiscoveryengineV1alphaAlloyDbSource {
|
|
92
|
+
/** Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters. */
|
|
93
|
+
clusterId?: string;
|
|
94
|
+
/** Required. The AlloyDB database to copy the data from with a length limit of 256 characters. */
|
|
95
|
+
databaseId?: string;
|
|
96
|
+
/** Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory. Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory. */
|
|
97
|
+
gcsStagingDir?: string;
|
|
98
|
+
/** Required. The AlloyDB location to copy the data from with a length limit of 256 characters. */
|
|
99
|
+
locationId?: string;
|
|
100
|
+
/** The project ID that the AlloyDB source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
|
|
101
|
+
projectId?: string;
|
|
102
|
+
/** Required. The AlloyDB table to copy the data from with a length limit of 256 characters. */
|
|
103
|
+
tableId?: string;
|
|
104
|
+
}
|
|
91
105
|
interface GoogleCloudDiscoveryengineV1alphaAnswer {
|
|
92
106
|
/** Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. */
|
|
93
107
|
answerSkippedReasons?: string[];
|
|
@@ -141,6 +155,8 @@ declare namespace gapi.client {
|
|
|
141
155
|
searchSpec?: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec;
|
|
142
156
|
/** The session resource name. Not required. When session field is not set, the API is in sessionless mode. We support auto session mode: users can use the wildcard symbol `-` as session ID. A new ID will be automatically generated and assigned. */
|
|
143
157
|
session?: string;
|
|
158
|
+
/** The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details. */
|
|
159
|
+
userLabels?: {[P in string]: string};
|
|
144
160
|
/** A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
145
161
|
userPseudoId?: string;
|
|
146
162
|
}
|
|
@@ -1101,6 +1117,8 @@ declare namespace gapi.client {
|
|
|
1101
1117
|
updateTime?: string;
|
|
1102
1118
|
}
|
|
1103
1119
|
interface GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest {
|
|
1120
|
+
/** AlloyDB input source. */
|
|
1121
|
+
alloyDbSource?: GoogleCloudDiscoveryengineV1alphaAlloyDbSource;
|
|
1104
1122
|
/** Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be specified using id_field, otherwise, documents without IDs fail to be imported. Supported data sources: * GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. * FirestoreSource. * BigtableSource. */
|
|
1105
1123
|
autoGenerateIds?: boolean;
|
|
1106
1124
|
/** BigQuery input source. */
|
|
@@ -1641,7 +1659,7 @@ declare namespace gapi.client {
|
|
|
1641
1659
|
chunkSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec;
|
|
1642
1660
|
/** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
|
|
1643
1661
|
extractiveContentSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec;
|
|
1644
|
-
/** Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. */
|
|
1662
|
+
/** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. */
|
|
1645
1663
|
searchResultMode?: string;
|
|
1646
1664
|
/** If `snippetSpec` is not specified, snippets are not included in the search response. */
|
|
1647
1665
|
snippetSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec;
|
|
@@ -2321,6 +2339,8 @@ declare namespace gapi.client {
|
|
|
2321
2339
|
}
|
|
2322
2340
|
interface GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse {}
|
|
2323
2341
|
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig {
|
|
2342
|
+
/** Whether chunking mode is enabled. */
|
|
2343
|
+
chunkingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig;
|
|
2324
2344
|
/** 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. */
|
|
2325
2345
|
defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
2326
2346
|
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
@@ -2330,13 +2350,26 @@ declare namespace gapi.client {
|
|
|
2330
2350
|
[P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
2331
2351
|
};
|
|
2332
2352
|
}
|
|
2353
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig {
|
|
2354
|
+
/** Configuration for the layout based chunking. */
|
|
2355
|
+
layoutBasedChunkingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig;
|
|
2356
|
+
}
|
|
2357
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig {
|
|
2358
|
+
/** The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500. */
|
|
2359
|
+
chunkSize?: number;
|
|
2360
|
+
/** Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False. */
|
|
2361
|
+
includeAncestorHeadings?: boolean;
|
|
2362
|
+
}
|
|
2333
2363
|
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig {
|
|
2334
2364
|
/** Configurations applied to digital parser. */
|
|
2335
2365
|
digitalParsingConfig?: any;
|
|
2366
|
+
/** Configurations applied to layout parser. */
|
|
2367
|
+
layoutParsingConfig?: any;
|
|
2336
2368
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
2337
2369
|
ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
2338
2370
|
}
|
|
2339
2371
|
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
2372
|
+
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig {}
|
|
2340
2373
|
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
2341
2374
|
/** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
|
|
2342
2375
|
enhancedDocumentElements?: string[];
|
|
@@ -2736,6 +2769,8 @@ declare namespace gapi.client {
|
|
|
2736
2769
|
}
|
|
2737
2770
|
interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse {}
|
|
2738
2771
|
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfig {
|
|
2772
|
+
/** Whether chunking mode is enabled. */
|
|
2773
|
+
chunkingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig;
|
|
2739
2774
|
/** 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. */
|
|
2740
2775
|
defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
2741
2776
|
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
@@ -2745,13 +2780,26 @@ declare namespace gapi.client {
|
|
|
2745
2780
|
[P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
2746
2781
|
};
|
|
2747
2782
|
}
|
|
2783
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig {
|
|
2784
|
+
/** Configuration for the layout based chunking. */
|
|
2785
|
+
layoutBasedChunkingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig;
|
|
2786
|
+
}
|
|
2787
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig {
|
|
2788
|
+
/** The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500. */
|
|
2789
|
+
chunkSize?: number;
|
|
2790
|
+
/** Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False. */
|
|
2791
|
+
includeAncestorHeadings?: boolean;
|
|
2792
|
+
}
|
|
2748
2793
|
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig {
|
|
2749
2794
|
/** Configurations applied to digital parser. */
|
|
2750
2795
|
digitalParsingConfig?: any;
|
|
2796
|
+
/** Configurations applied to layout parser. */
|
|
2797
|
+
layoutParsingConfig?: any;
|
|
2751
2798
|
/** Configurations applied to OCR parser. Currently it only applies to PDFs. */
|
|
2752
2799
|
ocrParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
2753
2800
|
}
|
|
2754
2801
|
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
2802
|
+
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig {}
|
|
2755
2803
|
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
2756
2804
|
/** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
|
|
2757
2805
|
enhancedDocumentElements?: string[];
|
|
@@ -3653,7 +3701,7 @@ declare namespace gapi.client {
|
|
|
3653
3701
|
key?: string;
|
|
3654
3702
|
/** OAuth 2.0 token for the current user. */
|
|
3655
3703
|
oauth_token?: string;
|
|
3656
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
3704
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
3657
3705
|
parent: string;
|
|
3658
3706
|
/** Returns response with indentations and line breaks. */
|
|
3659
3707
|
prettyPrint?: boolean;
|
|
@@ -3684,7 +3732,7 @@ declare namespace gapi.client {
|
|
|
3684
3732
|
key?: string;
|
|
3685
3733
|
/** OAuth 2.0 token for the current user. */
|
|
3686
3734
|
oauth_token?: string;
|
|
3687
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
3735
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
3688
3736
|
parent: string;
|
|
3689
3737
|
/** Returns response with indentations and line breaks. */
|
|
3690
3738
|
prettyPrint?: boolean;
|
|
@@ -3773,7 +3821,7 @@ declare namespace gapi.client {
|
|
|
3773
3821
|
pageSize?: number;
|
|
3774
3822
|
/** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
|
|
3775
3823
|
pageToken?: string;
|
|
3776
|
-
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
3824
|
+
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
3777
3825
|
parent: string;
|
|
3778
3826
|
/** Returns response with indentations and line breaks. */
|
|
3779
3827
|
prettyPrint?: boolean;
|
|
@@ -6524,7 +6572,7 @@ declare namespace gapi.client {
|
|
|
6524
6572
|
key?: string;
|
|
6525
6573
|
/** OAuth 2.0 token for the current user. */
|
|
6526
6574
|
oauth_token?: string;
|
|
6527
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
6575
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
6528
6576
|
parent: string;
|
|
6529
6577
|
/** Returns response with indentations and line breaks. */
|
|
6530
6578
|
prettyPrint?: boolean;
|
|
@@ -6555,7 +6603,7 @@ declare namespace gapi.client {
|
|
|
6555
6603
|
key?: string;
|
|
6556
6604
|
/** OAuth 2.0 token for the current user. */
|
|
6557
6605
|
oauth_token?: string;
|
|
6558
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
6606
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
6559
6607
|
parent: string;
|
|
6560
6608
|
/** Returns response with indentations and line breaks. */
|
|
6561
6609
|
prettyPrint?: boolean;
|
|
@@ -6644,7 +6692,7 @@ declare namespace gapi.client {
|
|
|
6644
6692
|
pageSize?: number;
|
|
6645
6693
|
/** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
|
|
6646
6694
|
pageToken?: string;
|
|
6647
|
-
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
6695
|
+
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
6648
6696
|
parent: string;
|
|
6649
6697
|
/** Returns response with indentations and line breaks. */
|
|
6650
6698
|
prettyPrint?: boolean;
|
|
@@ -8612,7 +8660,7 @@ declare namespace gapi.client {
|
|
|
8612
8660
|
key?: string;
|
|
8613
8661
|
/** OAuth 2.0 token for the current user. */
|
|
8614
8662
|
oauth_token?: string;
|
|
8615
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
8663
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
8616
8664
|
parent: string;
|
|
8617
8665
|
/** Returns response with indentations and line breaks. */
|
|
8618
8666
|
prettyPrint?: boolean;
|
|
@@ -8643,7 +8691,7 @@ declare namespace gapi.client {
|
|
|
8643
8691
|
key?: string;
|
|
8644
8692
|
/** OAuth 2.0 token for the current user. */
|
|
8645
8693
|
oauth_token?: string;
|
|
8646
|
-
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
8694
|
+
/** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
8647
8695
|
parent: string;
|
|
8648
8696
|
/** Returns response with indentations and line breaks. */
|
|
8649
8697
|
prettyPrint?: boolean;
|
|
@@ -8732,7 +8780,7 @@ declare namespace gapi.client {
|
|
|
8732
8780
|
pageSize?: number;
|
|
8733
8781
|
/** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
|
|
8734
8782
|
pageToken?: string;
|
|
8735
|
-
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
|
|
8783
|
+
/** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
|
|
8736
8784
|
parent: string;
|
|
8737
8785
|
/** Returns response with indentations and line breaks. */
|
|
8738
8786
|
prettyPrint?: boolean;
|