@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20231209 → 0.0.20231218
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 +193 -1
- 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: 20231218
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -323,6 +323,12 @@ declare namespace gapi.client {
|
|
|
323
323
|
/** The Document URI - only allowed for website data stores. */
|
|
324
324
|
uri?: string;
|
|
325
325
|
}
|
|
326
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig {
|
|
327
|
+
/** Output only. The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
328
|
+
name?: string;
|
|
329
|
+
/** The OCR config. Currently it only applies to PDFs. */
|
|
330
|
+
ocrConfig?: GoogleCloudDiscoveryengineV1alphaOcrConfig;
|
|
331
|
+
}
|
|
326
332
|
interface GoogleCloudDiscoveryengineV1alphaDoubleList {
|
|
327
333
|
/** Double values. */
|
|
328
334
|
values?: number[];
|
|
@@ -624,6 +630,14 @@ declare namespace gapi.client {
|
|
|
624
630
|
/** 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. */
|
|
625
631
|
mediaProgressPercentage?: number;
|
|
626
632
|
}
|
|
633
|
+
interface GoogleCloudDiscoveryengineV1alphaOcrConfig {
|
|
634
|
+
/** Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply. */
|
|
635
|
+
enabled?: boolean;
|
|
636
|
+
/** Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model. */
|
|
637
|
+
enhancedDocumentElements?: string[];
|
|
638
|
+
/** If true, will use native text instead of OCR text on pages containing native text. */
|
|
639
|
+
useNativeText?: boolean;
|
|
640
|
+
}
|
|
627
641
|
interface GoogleCloudDiscoveryengineV1alphaPageInfo {
|
|
628
642
|
/** 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. */
|
|
629
643
|
pageCategory?: string;
|
|
@@ -4032,6 +4046,33 @@ declare namespace gapi.client {
|
|
|
4032
4046
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4033
4047
|
uploadType?: string;
|
|
4034
4048
|
}): Request<GoogleCloudDiscoveryengineV1alphaDataStore>;
|
|
4049
|
+
/** Gets a DocumentProcessingConfig. */
|
|
4050
|
+
getDocumentProcessingConfig(request?: {
|
|
4051
|
+
/** V1 error format. */
|
|
4052
|
+
'$.xgafv'?: string;
|
|
4053
|
+
/** OAuth access token. */
|
|
4054
|
+
access_token?: string;
|
|
4055
|
+
/** Data format for response. */
|
|
4056
|
+
alt?: string;
|
|
4057
|
+
/** JSONP */
|
|
4058
|
+
callback?: string;
|
|
4059
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4060
|
+
fields?: string;
|
|
4061
|
+
/** 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. */
|
|
4062
|
+
key?: string;
|
|
4063
|
+
/** Required. Full DocumentProcessingConfig resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig` */
|
|
4064
|
+
name: string;
|
|
4065
|
+
/** OAuth 2.0 token for the current user. */
|
|
4066
|
+
oauth_token?: string;
|
|
4067
|
+
/** Returns response with indentations and line breaks. */
|
|
4068
|
+
prettyPrint?: boolean;
|
|
4069
|
+
/** 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. */
|
|
4070
|
+
quotaUser?: string;
|
|
4071
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4072
|
+
upload_protocol?: string;
|
|
4073
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4074
|
+
uploadType?: string;
|
|
4075
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
4035
4076
|
/** Gets the SiteSearchEngine. */
|
|
4036
4077
|
getSiteSearchEngine(request?: {
|
|
4037
4078
|
/** V1 error format. */
|
|
@@ -4212,6 +4253,68 @@ declare namespace gapi.client {
|
|
|
4212
4253
|
},
|
|
4213
4254
|
body: GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
|
|
4214
4255
|
): Request<GoogleLongrunningOperation>;
|
|
4256
|
+
/** Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. */
|
|
4257
|
+
updateDocumentProcessingConfig(request: {
|
|
4258
|
+
/** V1 error format. */
|
|
4259
|
+
'$.xgafv'?: string;
|
|
4260
|
+
/** OAuth access token. */
|
|
4261
|
+
access_token?: string;
|
|
4262
|
+
/** Data format for response. */
|
|
4263
|
+
alt?: string;
|
|
4264
|
+
/** JSONP */
|
|
4265
|
+
callback?: string;
|
|
4266
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4267
|
+
fields?: string;
|
|
4268
|
+
/** 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. */
|
|
4269
|
+
key?: string;
|
|
4270
|
+
/** Output only. The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
4271
|
+
name: string;
|
|
4272
|
+
/** OAuth 2.0 token for the current user. */
|
|
4273
|
+
oauth_token?: string;
|
|
4274
|
+
/** Returns response with indentations and line breaks. */
|
|
4275
|
+
prettyPrint?: boolean;
|
|
4276
|
+
/** 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. */
|
|
4277
|
+
quotaUser?: string;
|
|
4278
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.orc_config If not set, all supported fields are updated. */
|
|
4279
|
+
updateMask?: string;
|
|
4280
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4281
|
+
upload_protocol?: string;
|
|
4282
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4283
|
+
uploadType?: string;
|
|
4284
|
+
/** Request body */
|
|
4285
|
+
resource: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
|
|
4286
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
4287
|
+
updateDocumentProcessingConfig(
|
|
4288
|
+
request: {
|
|
4289
|
+
/** V1 error format. */
|
|
4290
|
+
'$.xgafv'?: string;
|
|
4291
|
+
/** OAuth access token. */
|
|
4292
|
+
access_token?: string;
|
|
4293
|
+
/** Data format for response. */
|
|
4294
|
+
alt?: string;
|
|
4295
|
+
/** JSONP */
|
|
4296
|
+
callback?: string;
|
|
4297
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4298
|
+
fields?: string;
|
|
4299
|
+
/** 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. */
|
|
4300
|
+
key?: string;
|
|
4301
|
+
/** Output only. The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
4302
|
+
name: string;
|
|
4303
|
+
/** OAuth 2.0 token for the current user. */
|
|
4304
|
+
oauth_token?: string;
|
|
4305
|
+
/** Returns response with indentations and line breaks. */
|
|
4306
|
+
prettyPrint?: boolean;
|
|
4307
|
+
/** 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. */
|
|
4308
|
+
quotaUser?: string;
|
|
4309
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.orc_config If not set, all supported fields are updated. */
|
|
4310
|
+
updateMask?: string;
|
|
4311
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4312
|
+
upload_protocol?: string;
|
|
4313
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4314
|
+
uploadType?: string;
|
|
4315
|
+
},
|
|
4316
|
+
body: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
|
|
4317
|
+
): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
4215
4318
|
branches: BranchesResource;
|
|
4216
4319
|
conversations: ConversationsResource;
|
|
4217
4320
|
models: ModelsResource;
|
|
@@ -7049,6 +7152,33 @@ declare namespace gapi.client {
|
|
|
7049
7152
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7050
7153
|
uploadType?: string;
|
|
7051
7154
|
}): Request<GoogleCloudDiscoveryengineV1alphaDataStore>;
|
|
7155
|
+
/** Gets a DocumentProcessingConfig. */
|
|
7156
|
+
getDocumentProcessingConfig(request?: {
|
|
7157
|
+
/** V1 error format. */
|
|
7158
|
+
'$.xgafv'?: string;
|
|
7159
|
+
/** OAuth access token. */
|
|
7160
|
+
access_token?: string;
|
|
7161
|
+
/** Data format for response. */
|
|
7162
|
+
alt?: string;
|
|
7163
|
+
/** JSONP */
|
|
7164
|
+
callback?: string;
|
|
7165
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7166
|
+
fields?: string;
|
|
7167
|
+
/** 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. */
|
|
7168
|
+
key?: string;
|
|
7169
|
+
/** Required. Full DocumentProcessingConfig resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig` */
|
|
7170
|
+
name: string;
|
|
7171
|
+
/** OAuth 2.0 token for the current user. */
|
|
7172
|
+
oauth_token?: string;
|
|
7173
|
+
/** Returns response with indentations and line breaks. */
|
|
7174
|
+
prettyPrint?: boolean;
|
|
7175
|
+
/** 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. */
|
|
7176
|
+
quotaUser?: string;
|
|
7177
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7178
|
+
upload_protocol?: string;
|
|
7179
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7180
|
+
uploadType?: string;
|
|
7181
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
7052
7182
|
/** Gets the SiteSearchEngine. */
|
|
7053
7183
|
getSiteSearchEngine(request?: {
|
|
7054
7184
|
/** V1 error format. */
|
|
@@ -7171,6 +7301,68 @@ declare namespace gapi.client {
|
|
|
7171
7301
|
},
|
|
7172
7302
|
body: GoogleCloudDiscoveryengineV1alphaDataStore
|
|
7173
7303
|
): Request<GoogleCloudDiscoveryengineV1alphaDataStore>;
|
|
7304
|
+
/** Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. */
|
|
7305
|
+
updateDocumentProcessingConfig(request: {
|
|
7306
|
+
/** V1 error format. */
|
|
7307
|
+
'$.xgafv'?: string;
|
|
7308
|
+
/** OAuth access token. */
|
|
7309
|
+
access_token?: string;
|
|
7310
|
+
/** Data format for response. */
|
|
7311
|
+
alt?: string;
|
|
7312
|
+
/** JSONP */
|
|
7313
|
+
callback?: string;
|
|
7314
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7315
|
+
fields?: string;
|
|
7316
|
+
/** 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. */
|
|
7317
|
+
key?: string;
|
|
7318
|
+
/** Output only. The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
7319
|
+
name: string;
|
|
7320
|
+
/** OAuth 2.0 token for the current user. */
|
|
7321
|
+
oauth_token?: string;
|
|
7322
|
+
/** Returns response with indentations and line breaks. */
|
|
7323
|
+
prettyPrint?: boolean;
|
|
7324
|
+
/** 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. */
|
|
7325
|
+
quotaUser?: string;
|
|
7326
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.orc_config If not set, all supported fields are updated. */
|
|
7327
|
+
updateMask?: string;
|
|
7328
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7329
|
+
upload_protocol?: string;
|
|
7330
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7331
|
+
uploadType?: string;
|
|
7332
|
+
/** Request body */
|
|
7333
|
+
resource: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
|
|
7334
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
7335
|
+
updateDocumentProcessingConfig(
|
|
7336
|
+
request: {
|
|
7337
|
+
/** V1 error format. */
|
|
7338
|
+
'$.xgafv'?: string;
|
|
7339
|
+
/** OAuth access token. */
|
|
7340
|
+
access_token?: string;
|
|
7341
|
+
/** Data format for response. */
|
|
7342
|
+
alt?: string;
|
|
7343
|
+
/** JSONP */
|
|
7344
|
+
callback?: string;
|
|
7345
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
7346
|
+
fields?: string;
|
|
7347
|
+
/** 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. */
|
|
7348
|
+
key?: string;
|
|
7349
|
+
/** Output only. The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
7350
|
+
name: string;
|
|
7351
|
+
/** OAuth 2.0 token for the current user. */
|
|
7352
|
+
oauth_token?: string;
|
|
7353
|
+
/** Returns response with indentations and line breaks. */
|
|
7354
|
+
prettyPrint?: boolean;
|
|
7355
|
+
/** 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. */
|
|
7356
|
+
quotaUser?: string;
|
|
7357
|
+
/** Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields: * DocumentProcessingConfig.orc_config If not set, all supported fields are updated. */
|
|
7358
|
+
updateMask?: string;
|
|
7359
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
7360
|
+
upload_protocol?: string;
|
|
7361
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
7362
|
+
uploadType?: string;
|
|
7363
|
+
},
|
|
7364
|
+
body: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
|
|
7365
|
+
): Request<GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>;
|
|
7174
7366
|
branches: BranchesResource;
|
|
7175
7367
|
conversations: ConversationsResource;
|
|
7176
7368
|
models: ModelsResource;
|