@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240810 → 0.0.20240813

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.
Files changed (2) hide show
  1. package/index.d.ts +131 -9
  2. 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: 20240810
12
+ // Revision: 20240813
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -271,7 +271,7 @@ declare namespace gapi.client {
271
271
  startTime?: string;
272
272
  }
273
273
  interface GoogleCloudDiscoveryengineV1alphaControl {
274
- /** Output only. List of all ServingConfig ids this control is attached to. May take up to 10 minutes to update after changes. */
274
+ /** Output only. List of all ServingConfig IDs this control is attached to. May take up to 10 minutes to update after changes. */
275
275
  associatedServingConfigIds?: string[];
276
276
  /** Defines a boost-type control */
277
277
  boostAction?: GoogleCloudDiscoveryengineV1alphaControlBoostAction;
@@ -384,6 +384,8 @@ declare namespace gapi.client {
384
384
  solutionTypes?: string[];
385
385
  /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
386
386
  startingSchema?: GoogleCloudDiscoveryengineV1alphaSchema;
387
+ /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
388
+ workspaceConfig?: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig;
387
389
  }
388
390
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
389
391
  /** Operation create time. */
@@ -1223,6 +1225,12 @@ declare namespace gapi.client {
1223
1225
  /** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
1224
1226
  userId?: string;
1225
1227
  }
1228
+ interface GoogleCloudDiscoveryengineV1alphaWorkspaceConfig {
1229
+ /** Obfuscated Dasher customer ID. */
1230
+ dasherCustomerId?: string;
1231
+ /** The Google Workspace data source. */
1232
+ type?: string;
1233
+ }
1226
1234
  interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
1227
1235
  /** Operation create time. */
1228
1236
  createTime?: string;
@@ -1242,7 +1250,7 @@ declare namespace gapi.client {
1242
1250
  gcsStagingDir?: string;
1243
1251
  /** Required. The AlloyDB location to copy the data from with a length limit of 256 characters. */
1244
1252
  locationId?: string;
1245
- /** 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. */
1253
+ /** The project ID that contains the AlloyDB source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1246
1254
  projectId?: string;
1247
1255
  /** Required. The AlloyDB table to copy the data from with a length limit of 256 characters. */
1248
1256
  tableId?: string;
@@ -1561,6 +1569,22 @@ declare namespace gapi.client {
1561
1569
  /** TargetSites created. */
1562
1570
  targetSites?: GoogleCloudDiscoveryengineV1betaTargetSite[];
1563
1571
  }
1572
+ interface GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponse {
1573
+ /** The metadata of the Documents. */
1574
+ documentsMetadata?: GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponseDocumentMetadata[];
1575
+ }
1576
+ interface GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponseDocumentMetadata {
1577
+ /** The timestamp of the last time the Document was last indexed. */
1578
+ lastRefreshedTime?: string;
1579
+ /** The value of the matcher that was used to match the Document. */
1580
+ matcherValue?: GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponseDocumentMetadataMatcherValue;
1581
+ /** The status of the document. */
1582
+ status?: string;
1583
+ }
1584
+ interface GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponseDocumentMetadataMatcherValue {
1585
+ /** If match by URI, the URI of the Document. */
1586
+ uri?: string;
1587
+ }
1564
1588
  interface GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest {}
1565
1589
  interface GoogleCloudDiscoveryengineV1betaBigQuerySource {
1566
1590
  /** The schema to use when parsing the data from the source. Supported values for user event imports: * `user_event` (default): One UserEvent per row. Supported values for document imports: * `document` (default): One Document format per row. Each document must have a valid Document.id and one of Document.json_data or Document.struct_data. * `custom`: One custom data per row in arbitrary format that conforms to the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. */
@@ -1571,7 +1595,7 @@ declare namespace gapi.client {
1571
1595
  gcsStagingDir?: string;
1572
1596
  /** BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. */
1573
1597
  partitionDate?: GoogleTypeDate;
1574
- /** The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1598
+ /** The project ID or the project number that contains the BigQuery source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1575
1599
  projectId?: string;
1576
1600
  /** Required. The BigQuery table to copy the data from with a length limit of 1,024 characters. */
1577
1601
  tableId?: string;
@@ -1609,7 +1633,7 @@ declare namespace gapi.client {
1609
1633
  bigtableOptions?: GoogleCloudDiscoveryengineV1betaBigtableOptions;
1610
1634
  /** Required. The instance ID of the Cloud Bigtable that needs to be imported. */
1611
1635
  instanceId?: string;
1612
- /** The project ID that the Bigtable source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1636
+ /** The project ID that contains the Bigtable source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1613
1637
  projectId?: string;
1614
1638
  /** Required. The table ID of the Cloud Bigtable that needs to be imported. */
1615
1639
  tableId?: string;
@@ -1641,6 +1665,8 @@ declare namespace gapi.client {
1641
1665
  endPos?: number;
1642
1666
  /** 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. */
1643
1667
  groundingCheckRequired?: boolean;
1668
+ /** Confidence score for the claim in the answer candidate, in the range of [0, 1]. */
1669
+ score?: number;
1644
1670
  /** Position indicating the start of the claim in the answer candidate, measured in bytes. */
1645
1671
  startPos?: number;
1646
1672
  }
@@ -1695,7 +1721,7 @@ declare namespace gapi.client {
1695
1721
  instanceId?: string;
1696
1722
  /** Option for serverless export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/sql/pricing#serverless). */
1697
1723
  offload?: boolean;
1698
- /** The project ID that the Cloud SQL source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1724
+ /** The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
1699
1725
  projectId?: string;
1700
1726
  /** Required. The Cloud SQL table to copy the data from with a length limit of 256 characters. */
1701
1727
  tableId?: string;
@@ -1753,7 +1779,7 @@ declare namespace gapi.client {
1753
1779
  startTime?: string;
1754
1780
  }
1755
1781
  interface GoogleCloudDiscoveryengineV1betaControl {
1756
- /** Output only. List of all ServingConfig ids this control is attached to. May take up to 10 minutes to update after changes. */
1782
+ /** Output only. List of all ServingConfig IDs this control is attached to. May take up to 10 minutes to update after changes. */
1757
1783
  associatedServingConfigIds?: string[];
1758
1784
  /** Defines a boost-type control */
1759
1785
  boostAction?: GoogleCloudDiscoveryengineV1betaControlBoostAction;
@@ -1926,6 +1952,8 @@ declare namespace gapi.client {
1926
1952
  solutionTypes?: string[];
1927
1953
  /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
1928
1954
  startingSchema?: GoogleCloudDiscoveryengineV1betaSchema;
1955
+ /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
1956
+ workspaceConfig?: GoogleCloudDiscoveryengineV1betaWorkspaceConfig;
1929
1957
  }
1930
1958
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
1931
1959
  /** Operation create time. */
@@ -2787,6 +2815,8 @@ declare namespace gapi.client {
2787
2815
  rankingExpression?: string;
2788
2816
  /** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
2789
2817
  regionCode?: string;
2818
+ /** The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. */
2819
+ relevanceThreshold?: string;
2790
2820
  /** Whether to turn on safe search. This is only supported for website search. */
2791
2821
  safeSearch?: boolean;
2792
2822
  /** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
@@ -3090,6 +3120,8 @@ declare namespace gapi.client {
3090
3120
  interface GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint {
3091
3121
  /** Name of the string field as defined in the schema. */
3092
3122
  fieldName?: string;
3123
+ /** Identifies the keywords within the search query that match a filter. */
3124
+ querySegment?: string;
3093
3125
  /** Values of the string field. The record will only be returned if the field value matches one of the values specified here. */
3094
3126
  values?: string[];
3095
3127
  }
@@ -3268,7 +3300,7 @@ declare namespace gapi.client {
3268
3300
  enableDataBoost?: boolean;
3269
3301
  /** Required. The instance ID of the source Spanner table. */
3270
3302
  instanceId?: string;
3271
- /** The project ID that the Spanner source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
3303
+ /** The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
3272
3304
  projectId?: string;
3273
3305
  /** Required. The table name of the Spanner database that needs to be imported. */
3274
3306
  tableId?: string;
@@ -3435,6 +3467,12 @@ declare namespace gapi.client {
3435
3467
  /** Highly recommended for logged-in users. Unique identifier for logged-in user, such as a user name. Don't set for anonymous users. Always use a hashed value for this ID. Don't set the field to the same fixed ID for different users. This mixes the event history of those users together, which results in degraded model quality. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
3436
3468
  userId?: string;
3437
3469
  }
3470
+ interface GoogleCloudDiscoveryengineV1betaWorkspaceConfig {
3471
+ /** Obfuscated Dasher customer ID. */
3472
+ dasherCustomerId?: string;
3473
+ /** The Google Workspace data source. */
3474
+ type?: string;
3475
+ }
3438
3476
  interface GoogleCloudDiscoveryengineV1Condition {
3439
3477
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
3440
3478
  activeTimeRange?: GoogleCloudDiscoveryengineV1ConditionTimeRange[];
@@ -3454,7 +3492,7 @@ declare namespace gapi.client {
3454
3492
  startTime?: string;
3455
3493
  }
3456
3494
  interface GoogleCloudDiscoveryengineV1Control {
3457
- /** Output only. List of all ServingConfig ids this control is attached to. May take up to 10 minutes to update after changes. */
3495
+ /** Output only. List of all ServingConfig IDs this control is attached to. May take up to 10 minutes to update after changes. */
3458
3496
  associatedServingConfigIds?: string[];
3459
3497
  /** Defines a boost-type control */
3460
3498
  boostAction?: GoogleCloudDiscoveryengineV1ControlBoostAction;
@@ -3540,6 +3578,8 @@ declare namespace gapi.client {
3540
3578
  solutionTypes?: string[];
3541
3579
  /** The start schema to use for this DataStore when provisioning it. If unset, a default vertical specialized schema will be used. This field is only used by CreateDataStore API, and will be ignored if used in other APIs. This field will be omitted from all API responses including CreateDataStore API. To retrieve a schema of a DataStore, use SchemaService.GetSchema API instead. The provided schema will be validated against certain rules on schema. Learn more from [this doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). */
3542
3580
  startingSchema?: GoogleCloudDiscoveryengineV1Schema;
3581
+ /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
3582
+ workspaceConfig?: GoogleCloudDiscoveryengineV1WorkspaceConfig;
3543
3583
  }
3544
3584
  interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
3545
3585
  /** Operation create time. */
@@ -3854,6 +3894,24 @@ declare namespace gapi.client {
3854
3894
  /** This number is an estimation on how much total quota this project needs to successfully complete indexing. */
3855
3895
  totalRequiredQuota?: string;
3856
3896
  }
3897
+ interface GoogleCloudDiscoveryengineV1TrainCustomModelMetadata {
3898
+ /** Operation create time. */
3899
+ createTime?: string;
3900
+ /** Operation last update time. If the operation is done, this is also the finish time. */
3901
+ updateTime?: string;
3902
+ }
3903
+ interface GoogleCloudDiscoveryengineV1TrainCustomModelResponse {
3904
+ /** Echoes the destination for the complete errors in the request if set. */
3905
+ errorConfig?: GoogleCloudDiscoveryengineV1ImportErrorConfig;
3906
+ /** A sample of errors encountered while processing the data. */
3907
+ errorSamples?: GoogleRpcStatus[];
3908
+ /** The metrics of the trained model. */
3909
+ metrics?: {[P in string]: number};
3910
+ /** Fully qualified name of the CustomTuningModel. */
3911
+ modelName?: string;
3912
+ /** 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. */
3913
+ modelStatus?: string;
3914
+ }
3857
3915
  interface GoogleCloudDiscoveryengineV1UpdateSchemaMetadata {
3858
3916
  /** Operation create time. */
3859
3917
  createTime?: string;
@@ -3866,6 +3924,12 @@ declare namespace gapi.client {
3866
3924
  /** Operation last update time. If the operation is done, this is also the finish time. */
3867
3925
  updateTime?: string;
3868
3926
  }
3927
+ interface GoogleCloudDiscoveryengineV1WorkspaceConfig {
3928
+ /** Obfuscated Dasher customer ID. */
3929
+ dasherCustomerId?: string;
3930
+ /** The Google Workspace data source. */
3931
+ type?: string;
3932
+ }
3869
3933
  interface GoogleLongrunningCancelOperationRequest {}
3870
3934
  interface GoogleLongrunningListOperationsResponse {
3871
3935
  /** The standard List next-page token. */
@@ -4419,6 +4483,35 @@ declare namespace gapi.client {
4419
4483
  }): Request<GoogleLongrunningListOperationsResponse>;
4420
4484
  }
4421
4485
  interface BranchesResource {
4486
+ /** Gets index freshness metadata for Documents. Supported for website search only. */
4487
+ batchGetDocumentsMetadata(request?: {
4488
+ /** V1 error format. */
4489
+ '$.xgafv'?: string;
4490
+ /** OAuth access token. */
4491
+ access_token?: string;
4492
+ /** Data format for response. */
4493
+ alt?: string;
4494
+ /** JSONP */
4495
+ callback?: string;
4496
+ /** Selector specifying which fields to include in a partial response. */
4497
+ fields?: string;
4498
+ /** 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. */
4499
+ key?: string;
4500
+ /** The exact URIs to match by. */
4501
+ 'matcher.urisMatcher.uris'?: string | string[];
4502
+ /** OAuth 2.0 token for the current user. */
4503
+ oauth_token?: string;
4504
+ /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
4505
+ parent: string;
4506
+ /** Returns response with indentations and line breaks. */
4507
+ prettyPrint?: boolean;
4508
+ /** 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. */
4509
+ quotaUser?: string;
4510
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4511
+ upload_protocol?: string;
4512
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4513
+ uploadType?: string;
4514
+ }): Request<GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponse>;
4422
4515
  documents: DocumentsResource;
4423
4516
  operations: OperationsResource;
4424
4517
  }
@@ -9320,6 +9413,35 @@ declare namespace gapi.client {
9320
9413
  }): Request<GoogleLongrunningListOperationsResponse>;
9321
9414
  }
9322
9415
  interface BranchesResource {
9416
+ /** Gets index freshness metadata for Documents. Supported for website search only. */
9417
+ batchGetDocumentsMetadata(request?: {
9418
+ /** V1 error format. */
9419
+ '$.xgafv'?: string;
9420
+ /** OAuth access token. */
9421
+ access_token?: string;
9422
+ /** Data format for response. */
9423
+ alt?: string;
9424
+ /** JSONP */
9425
+ callback?: string;
9426
+ /** Selector specifying which fields to include in a partial response. */
9427
+ fields?: string;
9428
+ /** 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. */
9429
+ key?: string;
9430
+ /** The exact URIs to match by. */
9431
+ 'matcher.urisMatcher.uris'?: string | string[];
9432
+ /** OAuth 2.0 token for the current user. */
9433
+ oauth_token?: string;
9434
+ /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. */
9435
+ parent: string;
9436
+ /** Returns response with indentations and line breaks. */
9437
+ prettyPrint?: boolean;
9438
+ /** 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. */
9439
+ quotaUser?: string;
9440
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
9441
+ upload_protocol?: string;
9442
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
9443
+ uploadType?: string;
9444
+ }): Request<GoogleCloudDiscoveryengineV1betaBatchGetDocumentsMetadataResponse>;
9323
9445
  documents: DocumentsResource;
9324
9446
  operations: OperationsResource;
9325
9447
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240810",
3
+ "version": "0.0.20240813",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",