@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240415 → 0.0.20240502
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 +87 -5
- 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=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240502
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -260,6 +260,19 @@ declare namespace gapi.client {
|
|
|
260
260
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
261
261
|
updateTime?: string;
|
|
262
262
|
}
|
|
263
|
+
interface GoogleCloudDiscoveryengineV1alphaCustomTuningModel {
|
|
264
|
+
/** Timestamp the Model was created at. */
|
|
265
|
+
createTime?: string;
|
|
266
|
+
/** The display name of the model. */
|
|
267
|
+
displayName?: string;
|
|
268
|
+
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
269
|
+
modelState?: string;
|
|
270
|
+
modelVersion?: string;
|
|
271
|
+
/** Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` model must be an alpha-numerical string with limit of 40 characters. */
|
|
272
|
+
name?: string;
|
|
273
|
+
/** Timestamp the model training was initiated. */
|
|
274
|
+
trainingStartTime?: string;
|
|
275
|
+
}
|
|
263
276
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
264
277
|
/** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
|
|
265
278
|
aclEnabled?: boolean;
|
|
@@ -545,6 +558,10 @@ declare namespace gapi.client {
|
|
|
545
558
|
/** Count of user events imported, but with Document information not found in the existing Branch. */
|
|
546
559
|
unjoinedEventsCount?: string;
|
|
547
560
|
}
|
|
561
|
+
interface GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse {
|
|
562
|
+
/** List of custom tuning models. */
|
|
563
|
+
models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
|
|
564
|
+
}
|
|
548
565
|
interface GoogleCloudDiscoveryengineV1alphaProject {
|
|
549
566
|
/** Output only. The timestamp when this project is created. */
|
|
550
567
|
createTime?: string;
|
|
@@ -703,6 +720,8 @@ declare namespace gapi.client {
|
|
|
703
720
|
name?: string;
|
|
704
721
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
705
722
|
providedUriPattern?: string;
|
|
723
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
724
|
+
rootDomainUri?: string;
|
|
706
725
|
/** Output only. Site ownership and validity verification status. */
|
|
707
726
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo;
|
|
708
727
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -731,6 +750,8 @@ declare namespace gapi.client {
|
|
|
731
750
|
errorSamples?: GoogleRpcStatus[];
|
|
732
751
|
/** The metrics of the trained model. */
|
|
733
752
|
metrics?: {[P in string]: number};
|
|
753
|
+
/** Fully qualified name of the CustomTuningModel. */
|
|
754
|
+
modelName?: string;
|
|
734
755
|
/** The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving. */
|
|
735
756
|
modelStatus?: string;
|
|
736
757
|
}
|
|
@@ -1105,12 +1126,14 @@ declare namespace gapi.client {
|
|
|
1105
1126
|
tableId?: string;
|
|
1106
1127
|
}
|
|
1107
1128
|
interface GoogleCloudDiscoveryengineV1betaCheckGroundingRequest {
|
|
1108
|
-
/** Answer candidate to check. */
|
|
1129
|
+
/** Answer candidate to check. Can have a maximum length of 1024 characters. */
|
|
1109
1130
|
answerCandidate?: string;
|
|
1110
1131
|
/** List of facts for the grounding check. We support up to 200 facts. */
|
|
1111
1132
|
facts?: GoogleCloudDiscoveryengineV1betaGroundingFact[];
|
|
1112
1133
|
/** Configuration of the grounding check. */
|
|
1113
1134
|
groundingSpec?: GoogleCloudDiscoveryengineV1betaCheckGroundingSpec;
|
|
1135
|
+
/** 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. */
|
|
1136
|
+
userLabels?: {[P in string]: string};
|
|
1114
1137
|
}
|
|
1115
1138
|
interface GoogleCloudDiscoveryengineV1betaCheckGroundingResponse {
|
|
1116
1139
|
/** List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request. */
|
|
@@ -1127,6 +1150,8 @@ declare namespace gapi.client {
|
|
|
1127
1150
|
claimText?: string;
|
|
1128
1151
|
/** Position indicating the end of the claim in the answer candidate, exclusive. */
|
|
1129
1152
|
endPos?: number;
|
|
1153
|
+
/** Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices, and anti_citation_indices should not be returned. */
|
|
1154
|
+
groundingCheckRequired?: boolean;
|
|
1130
1155
|
/** Position indicating the start of the claim in the answer candidate, measured in bytes. */
|
|
1131
1156
|
startPos?: number;
|
|
1132
1157
|
}
|
|
@@ -1258,6 +1283,19 @@ declare namespace gapi.client {
|
|
|
1258
1283
|
/** The textual values of this custom attribute. For example, `["yellow", "green"]` when the key is "color". Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
1259
1284
|
text?: string[];
|
|
1260
1285
|
}
|
|
1286
|
+
interface GoogleCloudDiscoveryengineV1betaCustomTuningModel {
|
|
1287
|
+
/** Timestamp the Model was created at. */
|
|
1288
|
+
createTime?: string;
|
|
1289
|
+
/** The display name of the model. */
|
|
1290
|
+
displayName?: string;
|
|
1291
|
+
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
1292
|
+
modelState?: string;
|
|
1293
|
+
modelVersion?: string;
|
|
1294
|
+
/** Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}` model must be an alpha-numerical string with limit of 40 characters. */
|
|
1295
|
+
name?: string;
|
|
1296
|
+
/** Timestamp the model training was initiated. */
|
|
1297
|
+
trainingStartTime?: string;
|
|
1298
|
+
}
|
|
1261
1299
|
interface GoogleCloudDiscoveryengineV1betaDataStore {
|
|
1262
1300
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
1263
1301
|
contentConfig?: string;
|
|
@@ -1446,6 +1484,8 @@ declare namespace gapi.client {
|
|
|
1446
1484
|
interface GoogleCloudDiscoveryengineV1betaFactChunk {
|
|
1447
1485
|
/** Text content of the fact chunk. Can be at most 10K characters long. */
|
|
1448
1486
|
chunkText?: string;
|
|
1487
|
+
/** The index of this chunk. Currently, only used for the streaming mode. */
|
|
1488
|
+
index?: number;
|
|
1449
1489
|
/** Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved. */
|
|
1450
1490
|
source?: string;
|
|
1451
1491
|
/** More fine-grained information for the source reference. */
|
|
@@ -1615,6 +1655,10 @@ declare namespace gapi.client {
|
|
|
1615
1655
|
/** Pagination token, if not returned indicates the last page. */
|
|
1616
1656
|
nextPageToken?: string;
|
|
1617
1657
|
}
|
|
1658
|
+
interface GoogleCloudDiscoveryengineV1betaListCustomModelsResponse {
|
|
1659
|
+
/** List of custom tuning models. */
|
|
1660
|
+
models?: GoogleCloudDiscoveryengineV1betaCustomTuningModel[];
|
|
1661
|
+
}
|
|
1618
1662
|
interface GoogleCloudDiscoveryengineV1betaListDataStoresResponse {
|
|
1619
1663
|
/** All the customer's DataStores. */
|
|
1620
1664
|
dataStores?: GoogleCloudDiscoveryengineV1betaDataStore[];
|
|
@@ -1847,7 +1891,7 @@ declare namespace gapi.client {
|
|
|
1847
1891
|
imageQuery?: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery;
|
|
1848
1892
|
/** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
|
|
1849
1893
|
offset?: number;
|
|
1850
|
-
/** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
|
|
1894
|
+
/** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
|
|
1851
1895
|
orderBy?: string;
|
|
1852
1896
|
/** Maximum number of Documents to return. The maximum allowed value depends on the data type. Values above the maximum value are coerced to the maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. * Websites with advanced indexing: Default `25`, Maximum `50`. * Other: Default `50`, Maximum `100`. If this field is negative, an `INVALID_ARGUMENT` is returned. */
|
|
1853
1897
|
pageSize?: number;
|
|
@@ -2252,6 +2296,8 @@ declare namespace gapi.client {
|
|
|
2252
2296
|
name?: string;
|
|
2253
2297
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
2254
2298
|
providedUriPattern?: string;
|
|
2299
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
2300
|
+
rootDomainUri?: string;
|
|
2255
2301
|
/** Output only. Site ownership and validity verification status. */
|
|
2256
2302
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1betaSiteVerificationInfo;
|
|
2257
2303
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -2284,6 +2330,8 @@ declare namespace gapi.client {
|
|
|
2284
2330
|
errorConfig?: GoogleCloudDiscoveryengineV1betaImportErrorConfig;
|
|
2285
2331
|
/** Cloud Storage training input. */
|
|
2286
2332
|
gcsTrainingInput?: GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput;
|
|
2333
|
+
/** If not provided, a UUID will be generated. */
|
|
2334
|
+
modelId?: string;
|
|
2287
2335
|
/** Model to be trained. Supported values are: * **search-tuning**: Fine tuning the search system based on data provided. */
|
|
2288
2336
|
modelType?: string;
|
|
2289
2337
|
}
|
|
@@ -2304,6 +2352,8 @@ declare namespace gapi.client {
|
|
|
2304
2352
|
errorSamples?: GoogleRpcStatus[];
|
|
2305
2353
|
/** The metrics of the trained model. */
|
|
2306
2354
|
metrics?: {[P in string]: number};
|
|
2355
|
+
/** Fully qualified name of the CustomTuningModel. */
|
|
2356
|
+
modelName?: string;
|
|
2307
2357
|
/** The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training job creation is in progress. * **training**: Model is actively training. * **evaluating**: The model is evaluating trained metrics. * **indexing**: The model trained metrics are indexing. * **ready**: The model is ready for serving. */
|
|
2308
2358
|
modelStatus?: string;
|
|
2309
2359
|
}
|
|
@@ -2657,6 +2707,8 @@ declare namespace gapi.client {
|
|
|
2657
2707
|
name?: string;
|
|
2658
2708
|
/** Required. Input only. The user provided URI pattern from which the `generated_uri_pattern` is generated. */
|
|
2659
2709
|
providedUriPattern?: string;
|
|
2710
|
+
/** Output only. Root domain of the provided_uri_pattern. */
|
|
2711
|
+
rootDomainUri?: string;
|
|
2660
2712
|
/** Output only. Site ownership and validity verification status. */
|
|
2661
2713
|
siteVerificationInfo?: GoogleCloudDiscoveryengineV1SiteVerificationInfo;
|
|
2662
2714
|
/** The type of the target site, e.g., whether the site is to be included or excluded. */
|
|
@@ -3450,6 +3502,35 @@ declare namespace gapi.client {
|
|
|
3450
3502
|
body: GoogleCloudDiscoveryengineV1betaConversation
|
|
3451
3503
|
): Request<GoogleCloudDiscoveryengineV1betaConversation>;
|
|
3452
3504
|
}
|
|
3505
|
+
interface CustomModelsResource {
|
|
3506
|
+
/** Gets a list of all the custom models. */
|
|
3507
|
+
list(request?: {
|
|
3508
|
+
/** V1 error format. */
|
|
3509
|
+
'$.xgafv'?: string;
|
|
3510
|
+
/** OAuth access token. */
|
|
3511
|
+
access_token?: string;
|
|
3512
|
+
/** Data format for response. */
|
|
3513
|
+
alt?: string;
|
|
3514
|
+
/** JSONP */
|
|
3515
|
+
callback?: string;
|
|
3516
|
+
/** Required. The resource name of the parent Data Store, such as `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to fetch the models from. */
|
|
3517
|
+
dataStore: string;
|
|
3518
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3519
|
+
fields?: string;
|
|
3520
|
+
/** 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. */
|
|
3521
|
+
key?: string;
|
|
3522
|
+
/** OAuth 2.0 token for the current user. */
|
|
3523
|
+
oauth_token?: string;
|
|
3524
|
+
/** Returns response with indentations and line breaks. */
|
|
3525
|
+
prettyPrint?: boolean;
|
|
3526
|
+
/** 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. */
|
|
3527
|
+
quotaUser?: string;
|
|
3528
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3529
|
+
upload_protocol?: string;
|
|
3530
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3531
|
+
uploadType?: string;
|
|
3532
|
+
}): Request<GoogleCloudDiscoveryengineV1betaListCustomModelsResponse>;
|
|
3533
|
+
}
|
|
3453
3534
|
interface OperationsResource {
|
|
3454
3535
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
3455
3536
|
get(request?: {
|
|
@@ -5505,7 +5586,7 @@ declare namespace gapi.client {
|
|
|
5505
5586
|
callback?: string;
|
|
5506
5587
|
/** Selector specifying which fields to include in a partial response. */
|
|
5507
5588
|
fields?: string;
|
|
5508
|
-
/** Filter by solution type. For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
5589
|
+
/** Filter by solution type . For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
5509
5590
|
filter?: string;
|
|
5510
5591
|
/** 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. */
|
|
5511
5592
|
key?: string;
|
|
@@ -5648,6 +5729,7 @@ declare namespace gapi.client {
|
|
|
5648
5729
|
): Request<GoogleLongrunningOperation>;
|
|
5649
5730
|
branches: BranchesResource;
|
|
5650
5731
|
conversations: ConversationsResource;
|
|
5732
|
+
customModels: CustomModelsResource;
|
|
5651
5733
|
models: ModelsResource;
|
|
5652
5734
|
operations: OperationsResource;
|
|
5653
5735
|
schemas: SchemasResource;
|
|
@@ -9427,7 +9509,7 @@ declare namespace gapi.client {
|
|
|
9427
9509
|
callback?: string;
|
|
9428
9510
|
/** Selector specifying which fields to include in a partial response. */
|
|
9429
9511
|
fields?: string;
|
|
9430
|
-
/** Filter by solution type. For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
9512
|
+
/** Filter by solution type . For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH' */
|
|
9431
9513
|
filter?: string;
|
|
9432
9514
|
/** 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. */
|
|
9433
9515
|
key?: string;
|