@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20241208 → 0.0.20241216

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 +399 -2
  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: 20241208
12
+ // Revision: 20241216
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -165,6 +165,12 @@ declare namespace gapi.client {
165
165
  /** 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. */
166
166
  name?: string;
167
167
  }
168
+ interface GoogleCloudDiscoveryengineV1alphaActionConfig {
169
+ /** Required. Params needed to support actions in the format of (Key, Value) pairs. Required parameters for sources that support OAUTH, i.e. `gmail`, `google_calendar`, `jira`, `workday`, `salesforce`, `confluence`: * Key: `client_id` * Value: type STRING. The client id for the service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the application's authorization server. */
170
+ actionParams?: {[P in string]: any};
171
+ /** Output only. The connector contains the necessary parameters and is configured to support actions. */
172
+ isActionConfigured?: boolean;
173
+ }
168
174
  interface GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig {
169
175
  /** If set true, automatic refresh is disabled for the DataStore. */
170
176
  disableAutomaticRefresh?: boolean;
@@ -362,9 +368,21 @@ declare namespace gapi.client {
362
368
  lastRotationTimestampMicros?: string;
363
369
  /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
364
370
  name?: string;
371
+ /** Optional. Single-regional CMEKs that are required for some VAIS features. */
372
+ singleRegionKeys?: GoogleCloudDiscoveryengineV1alphaSingleRegionKey[];
365
373
  /** Output only. State of the CmekConfig. */
366
374
  state?: string;
367
375
  }
376
+ interface GoogleCloudDiscoveryengineV1alphaCollection {
377
+ /** Output only. Timestamp the Collection was created at. */
378
+ createTime?: string;
379
+ /** Output only. The data connector, if present, manages the connection for data stores in the Collection. To set up the connector, use DataConnectorService.SetUpDataConnector method, which creates a new Collection while setting up the DataConnector singleton resource. Setting up connector on an existing Collection is not supported. This output only field contains a subset of the DataConnector fields, including `name`, `data_source`, `entities.entity_name` and `entities.data_store`. To get more details about a data connector, use the DataConnector.GetDataConnector method. */
380
+ dataConnector?: GoogleCloudDiscoveryengineV1alphaDataConnector;
381
+ /** Required. The Collection display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
382
+ displayName?: string;
383
+ /** Immutable. The full resource name of the Collection. Format: `projects/{project}/locations/{location}/collections/{collection_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
384
+ name?: string;
385
+ }
368
386
  interface GoogleCloudDiscoveryengineV1alphaCondition {
369
387
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
370
388
  activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
@@ -385,6 +403,48 @@ declare namespace gapi.client {
385
403
  /** Start of time range. Range is inclusive. */
386
404
  startTime?: string;
387
405
  }
406
+ interface GoogleCloudDiscoveryengineV1alphaConnectorRun {
407
+ /** Output only. The time when the connector run ended. */
408
+ endTime?: string;
409
+ /** Output only. The details of the entities synced at the ConnectorRun. Each ConnectorRun consists of syncing one or more entities. */
410
+ entityRuns?: GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun[];
411
+ /** Contains info about errors incurred during the sync. Only exist if running into an error state. Contains error code and error message. Use with the `state` field. */
412
+ errors?: GoogleRpcStatus[];
413
+ /** Output only. The time when the connector run was most recently paused. */
414
+ latestPauseTime?: string;
415
+ /** Output only. The full resource name of the Connector Run. Format: `projects/*‍/locations/*‍/collections/*‍/dataConnector/connectorRuns/*`. The `connector_run_id` is system-generated. */
416
+ name?: string;
417
+ /** Output only. The time when the connector run started. */
418
+ startTime?: string;
419
+ /** Output only. The state of the sync run. */
420
+ state?: string;
421
+ /** Timestamp at which the connector run sync state was last updated. */
422
+ stateUpdateTime?: string;
423
+ /** Output only. The trigger for this ConnectorRun. */
424
+ trigger?: string;
425
+ }
426
+ interface GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun {
427
+ /** The name of the source entity. */
428
+ entityName?: string;
429
+ /** The total number of documents failed at sync at any stage (extraction, indexing, etc). */
430
+ errorRecordCount?: string;
431
+ /** The errors from the entity's sync run. Only exist if running into an error state. Contains error code and error message. */
432
+ errors?: GoogleRpcStatus[];
433
+ /** The number of documents extracted from connector source, ready to be ingested to UCS. */
434
+ extractedRecordCount?: string;
435
+ /** The number of documents indexed. */
436
+ indexedRecordCount?: string;
437
+ /** The number of requests sent to 3p API. */
438
+ sourceApiRequestCount?: string;
439
+ /** The state of the entity's sync run. */
440
+ state?: string;
441
+ /** Timestamp at which the entity sync state was last updated. */
442
+ stateUpdateTime?: string;
443
+ /** The timestamp for either extracted_documents_count, indexed_documents_count and error_documents_count was last updated. */
444
+ statsUpdateTime?: string;
445
+ /** Sync type of this run. */
446
+ syncType?: string;
447
+ }
388
448
  interface GoogleCloudDiscoveryengineV1alphaControl {
389
449
  /** Output only. List of all ServingConfig IDs this control is attached to. May take up to 10 minutes to update after changes. */
390
450
  associatedServingConfigIds?: string[];
@@ -476,6 +536,64 @@ declare namespace gapi.client {
476
536
  /** Whether or not to enable and include custom fine tuned search adaptor model. */
477
537
  enableSearchAdaptor?: boolean;
478
538
  }
539
+ interface GoogleCloudDiscoveryengineV1alphaDataConnector {
540
+ /** Optional. Action configurations to make the connector support actions. */
541
+ actionConfig?: GoogleCloudDiscoveryengineV1alphaActionConfig;
542
+ /** Indicates whether the connector is disabled for auto run. It can be used to pause periodical and real time sync. */
543
+ autoRunDisabled?: boolean;
544
+ /** Output only. User actions that must be completed before the connector can start syncing data. */
545
+ blockingReasons?: string[];
546
+ /** Output only. Timestamp the DataConnector was created at. */
547
+ createTime?: string;
548
+ /** Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, `bigquery`. */
549
+ dataSource?: string;
550
+ /** Optional. Any target destinations used to connect to third-party services. */
551
+ destinationConfigs?: GoogleCloudDiscoveryengineV1alphaDestinationConfig[];
552
+ /** List of entities from the connected data source to ingest. */
553
+ entities?: GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity[];
554
+ /** Output only. The errors from initialization or from the latest connector run. */
555
+ errors?: GoogleRpcStatus[];
556
+ /** The refresh interval to sync the Access Control List information for the documents ingested by this connector. If not set, the access control list will be refreshed at the default interval of 30 minutes. The identity refresh interval can be at least 30 minutes and at most 7 days. */
557
+ identityRefreshInterval?: string;
558
+ /** The configuration for the identity data synchronization runs. This contains the refresh interval to sync the Access Control List information for the documents ingested by this connector. */
559
+ identityScheduleConfig?: GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig;
560
+ /** Input only. The KMS key to be used to protect the DataStores managed by this connector. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStores created by this connector will be protected by the KMS key. */
561
+ kmsKeyName?: string;
562
+ /** Output only. For periodic connectors only, the last time a data sync was completed. */
563
+ lastSyncTime?: string;
564
+ /** Output only. The most recent timestamp when this DataConnector was paused, affecting all functionalities such as data synchronization. Pausing a connector has the following effects: - All functionalities, including data synchronization, are halted. - Any ongoing data synchronization job will be canceled. - No future data synchronization runs will be scheduled nor can be triggered. */
565
+ latestPauseTime?: string;
566
+ /** Output only. The full resource name of the Data Connector. Format: `projects/*‍/locations/*‍/collections/*‍/dataConnector`. */
567
+ name?: string;
568
+ /** The UTC time when the next data sync is expected to start for the Data Connector. Customers are only able to specify the hour and minute to schedule the data sync. This is utilized when the data connector has a refresh interval greater than 1 day. */
569
+ nextSyncTime?: GoogleTypeDateTime;
570
+ /** Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client id for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { "instance_uri": "https://xxx.atlassian.net", "user_account": "xxxx.xxx@xxx.com", "api_token": "test-token" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`. */
571
+ params?: {[P in string]: any};
572
+ /** Output only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function. */
573
+ privateConnectivityProjectId?: string;
574
+ /** Required. The refresh interval for data sync. If duration is set to 0, the data will be synced in real time. The streaming feature is not supported yet. The minimum is 30 minutes and maximum is 7 days. */
575
+ refreshInterval?: string;
576
+ /** Output only. State of the connector. */
577
+ state?: string;
578
+ /** Output only. The static IP addresses used by this connector. */
579
+ staticIpAddresses?: string[];
580
+ /** Optional. Whether customer has enabled static IP addresses for this connector. */
581
+ staticIpEnabled?: boolean;
582
+ /** The data synchronization mode supported by the data connector. */
583
+ syncMode?: string;
584
+ /** Output only. Timestamp the DataConnector was last updated. */
585
+ updateTime?: string;
586
+ }
587
+ interface GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity {
588
+ /** Output only. The full resource name of the associated data store for the source entity. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*`. When the connector is initialized by the DataConnectorService.SetUpDataConnector method, a DataStore is automatically created for each source entity. */
589
+ dataStore?: string;
590
+ /** The name of the entity. Supported values by data source: * Salesforce: `Lead`, `Opportunity`, `Contact`, `Account`, `Case`, `Contract`, `Campaign` * Jira: `Issue` * Confluence: `Content`, `Space` */
591
+ entityName?: string;
592
+ /** Attributes for indexing. Key: Field name. Value: The key property to map a field to, such as `title`, and `description`. Supported key properties: * `title`: The title for data record. This would be displayed on search results. * `description`: The description for data record. This would be displayed on search results. */
593
+ keyPropertyMappings?: {[P in string]: string};
594
+ /** The parameters for the entity to facilitate data ingestion. E.g. for BQ connectors: * Key: `document_id_column` * Value: type STRING. The value of the column id. */
595
+ params?: {[P in string]: any};
596
+ }
479
597
  interface GoogleCloudDiscoveryengineV1alphaDataStore {
480
598
  /** 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. */
481
599
  aclEnabled?: boolean;
@@ -499,6 +617,8 @@ declare namespace gapi.client {
499
617
  idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
500
618
  /** Immutable. The industry vertical that the data store registers. */
501
619
  industryVertical?: string;
620
+ /** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
621
+ isInfobotFaqDataStore?: boolean;
502
622
  /** Input only. The KMS key to be used to protect this DataStore at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStore will be protected by the KMS key, as indicated in the cmek_config field. */
503
623
  kmsKeyName?: string;
504
624
  /** Language info for DataStore. */
@@ -540,6 +660,12 @@ declare namespace gapi.client {
540
660
  /** Vertex AI's dedicated crawl rate time series of user triggered crawl, which is the crawl rate of Google-CloudVertexBot when dedicate crawl is set, and user triggered crawl rate is for deterministic use cases like crawling urls or sitemaps specified by users. */
541
661
  userTriggeredCrawlRate?: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries;
542
662
  }
663
+ interface GoogleCloudDiscoveryengineV1alphaDeleteCollectionMetadata {
664
+ /** Operation create time. */
665
+ createTime?: string;
666
+ /** Operation last update time. If the operation is done, this is also the finish time. */
667
+ updateTime?: string;
668
+ }
543
669
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
544
670
  /** Operation create time. */
545
671
  createTime?: string;
@@ -574,6 +700,20 @@ declare namespace gapi.client {
574
700
  /** Operation last update time. If the operation is done, this is also the finish time. */
575
701
  updateTime?: string;
576
702
  }
703
+ interface GoogleCloudDiscoveryengineV1alphaDestinationConfig {
704
+ /** Optional. The destinations for the corresponding key. */
705
+ destinations?: GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination[];
706
+ /** Optional. Unique destination identifier that is supported by the connector. */
707
+ key?: string;
708
+ /** Optional. Additional parameters for this destination config. */
709
+ params?: {[P in string]: any};
710
+ }
711
+ interface GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination {
712
+ /** Publicly routable host. */
713
+ host?: string;
714
+ /** Optional. Target port number accepted by the destination. */
715
+ port?: number;
716
+ }
577
717
  interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata {
578
718
  /** Operation create time. */
579
719
  createTime?: string;
@@ -797,6 +937,10 @@ declare namespace gapi.client {
797
937
  /** Document data keyed by URI pattern. For example: document_data_map = { "www.url1.com/*": { "Categories": ["category1", "category2"] }, "www.url2.com/*": { "Categories": ["category3"] } } */
798
938
  documentDataMap?: {[P in string]: {[P in string]: any}};
799
939
  }
940
+ interface GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig {
941
+ /** Optional. The refresh interval to sync the Access Control List information for the documents ingested by this connector. If not set, the access control list will be refreshed at the default interval of 30 minutes. The identity refresh interval can be at least 30 minutes and at most 7 days. */
942
+ refreshInterval?: string;
943
+ }
800
944
  interface GoogleCloudDiscoveryengineV1alphaIdpConfig {
801
945
  /** External Identity provider config. */
802
946
  externalIdpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig;
@@ -1394,6 +1538,7 @@ declare namespace gapi.client {
1394
1538
  /** The user query. */
1395
1539
  query?: GoogleCloudDiscoveryengineV1alphaQuery;
1396
1540
  }
1541
+ interface GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorMetadata {}
1397
1542
  interface GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata {
1398
1543
  /** Operation create time. */
1399
1544
  createTime?: string;
@@ -1401,6 +1546,10 @@ declare namespace gapi.client {
1401
1546
  updateTime?: string;
1402
1547
  }
1403
1548
  interface GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse {}
1549
+ interface GoogleCloudDiscoveryengineV1alphaSingleRegionKey {
1550
+ /** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
1551
+ kmsKey?: string;
1552
+ }
1404
1553
  interface GoogleCloudDiscoveryengineV1alphaSitemap {
1405
1554
  /** Output only. The sitemap's creation time. */
1406
1555
  createTime?: string;
@@ -1474,6 +1623,12 @@ declare namespace gapi.client {
1474
1623
  /** Operation last update time. If the operation is done, this is also the finish time. */
1475
1624
  updateTime?: string;
1476
1625
  }
1626
+ interface GoogleCloudDiscoveryengineV1alphaUpdateCollectionMetadata {
1627
+ /** Operation create time. */
1628
+ createTime?: string;
1629
+ /** Operation last update time. If the operation is done, this is also the finish time. */
1630
+ updateTime?: string;
1631
+ }
1477
1632
  interface GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata {
1478
1633
  /** Operation create time. */
1479
1634
  createTime?: string;
@@ -2137,6 +2292,8 @@ declare namespace gapi.client {
2137
2292
  lastRotationTimestampMicros?: string;
2138
2293
  /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
2139
2294
  name?: string;
2295
+ /** Optional. Single-regional CMEKs that are required for some VAIS features. */
2296
+ singleRegionKeys?: GoogleCloudDiscoveryengineV1betaSingleRegionKey[];
2140
2297
  /** Output only. State of the CmekConfig. */
2141
2298
  state?: string;
2142
2299
  }
@@ -2382,6 +2539,8 @@ declare namespace gapi.client {
2382
2539
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
2383
2540
  /** Immutable. The industry vertical that the data store registers. */
2384
2541
  industryVertical?: string;
2542
+ /** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
2543
+ isInfobotFaqDataStore?: boolean;
2385
2544
  /** Input only. The KMS key to be used to protect this DataStore at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStore will be protected by the KMS key, as indicated in the cmek_config field. */
2386
2545
  kmsKeyName?: string;
2387
2546
  /** Language info for DataStore. */
@@ -2462,7 +2621,7 @@ declare namespace gapi.client {
2462
2621
  derivedStructData?: {[P in string]: any};
2463
2622
  /** Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. */
2464
2623
  id?: string;
2465
- /** Output only. The index status of the document. * If document is indexed successfully, the index_time field is populated. * Otherwise, if document is not indexed due to errors, the error_samples field is populated. * Otherwise, index_status is unset. */
2624
+ /** Output only. The index status of the document. * If document is indexed successfully, the index_time field is populated. * Otherwise, if document is not indexed due to errors, the error_samples field is populated. * Otherwise, if document's index is in progress, the pending_message field is populated. */
2466
2625
  indexStatus?: GoogleCloudDiscoveryengineV1betaDocumentIndexStatus;
2467
2626
  /** Output only. The last time the document was indexed. If this field is set, the document could be returned in search results. This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed. */
2468
2627
  indexTime?: string;
@@ -2490,6 +2649,8 @@ declare namespace gapi.client {
2490
2649
  errorSamples?: GoogleRpcStatus[];
2491
2650
  /** The time when the document was indexed. If this field is populated, it means the document has been indexed. */
2492
2651
  indexTime?: string;
2652
+ /** Immutable. The message indicates the document index is in progress. If this field is populated, the document index is pending. */
2653
+ pendingMessage?: string;
2493
2654
  }
2494
2655
  interface GoogleCloudDiscoveryengineV1betaDocumentInfo {
2495
2656
  /** Optional. The conversion value associated with this Document. Must be set if UserEvent.event_type is "conversion". For example, a value of 1000 signifies that 1000 seconds were spent viewing a Document for the `watch` conversion type. */
@@ -2697,6 +2858,146 @@ declare namespace gapi.client {
2697
2858
  /** Required. Cloud Storage URIs to input files. Each URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`). */
2698
2859
  inputUris?: string[];
2699
2860
  }
2861
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest {
2862
+ /** Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request. */
2863
+ contents?: GoogleCloudDiscoveryengineV1betaGroundedGenerationContent[];
2864
+ /** Content generation specification. */
2865
+ generationSpec?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec;
2866
+ /** Grounding specification. */
2867
+ groundingSpec?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec;
2868
+ /** Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them. */
2869
+ systemInstruction?: GoogleCloudDiscoveryengineV1betaGroundedGenerationContent;
2870
+ /** 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. */
2871
+ userLabels?: {[P in string]: string};
2872
+ }
2873
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfiguration {
2874
+ /** Specification for the predictor for dynamic retrieval. */
2875
+ predictor?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor;
2876
+ }
2877
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor {
2878
+ /** The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source. */
2879
+ threshold?: number;
2880
+ /** The version of the predictor to be used in dynamic retrieval. */
2881
+ version?: string;
2882
+ }
2883
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec {
2884
+ /** If specified, custom value for frequency penalty will be used. */
2885
+ frequencyPenalty?: number;
2886
+ /** Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). */
2887
+ languageCode?: string;
2888
+ /** If specified, custom value for max output tokens will be used. */
2889
+ maxOutputTokens?: number;
2890
+ /** Specifies which Vertex model id to use for generation. */
2891
+ modelId?: string;
2892
+ /** If specified, custom value for presence penalty will be used. */
2893
+ presencePenalty?: number;
2894
+ /** If specified, custom value for the seed will be used. */
2895
+ seed?: number;
2896
+ /** If specified, custom value for the temperature will be used. */
2897
+ temperature?: number;
2898
+ /** If specified, custom value for top-k sampling will be used. */
2899
+ topK?: number;
2900
+ /** If specified, custom value for nucleus sampling will be used. */
2901
+ topP?: number;
2902
+ }
2903
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource {
2904
+ /** If set, grounding is performed with Google Search. */
2905
+ googleSearchSource?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource;
2906
+ /** If set, grounding is performed with inline content. */
2907
+ inlineSource?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource;
2908
+ /** If set, grounding is performed with Vertex AI Search. */
2909
+ searchSource?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceSearchSource;
2910
+ }
2911
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource {
2912
+ /** Optional. Specifies the dynamic retrieval configuration for the given source. */
2913
+ dynamicRetrievalConfig?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfiguration;
2914
+ }
2915
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource {
2916
+ /** Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content). */
2917
+ attributes?: {[P in string]: string};
2918
+ /** List of facts to be used for grounding. */
2919
+ groundingFacts?: GoogleCloudDiscoveryengineV1betaGroundingFact[];
2920
+ }
2921
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceSearchSource {
2922
+ /** Filter expression to be applied to the search. The syntax is the same as SearchRequest.filter. */
2923
+ filter?: string;
2924
+ /** Number of search results to return. The default value is 10. The maximumm allowed value is 10. */
2925
+ maxResultCount?: number;
2926
+ /** If set, safe search is enabled in Vertex AI Search requests. */
2927
+ safeSearch?: boolean;
2928
+ /** The resource name of the Engine to use. Format: `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` */
2929
+ servingConfig?: string;
2930
+ }
2931
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec {
2932
+ /** Grounding sources. */
2933
+ groundingSources?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource[];
2934
+ }
2935
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponse {
2936
+ /** Generated candidates. */
2937
+ candidates?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate[];
2938
+ }
2939
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate {
2940
+ /** Content of the candidate. */
2941
+ content?: GoogleCloudDiscoveryengineV1betaGroundedGenerationContent;
2942
+ /** Grounding metadata for the generated content. */
2943
+ groundingMetadata?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata;
2944
+ /** The overall grounding score for the candidate, in the range of [0, 1]. */
2945
+ groundingScore?: number;
2946
+ /** Index of the candidate. */
2947
+ index?: number;
2948
+ }
2949
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata {
2950
+ /** GroundingSupport across all claims in the answer candidate. An support to a fact indicates that the claim is supported by the fact. */
2951
+ groundingSupport?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport[];
2952
+ /** Retrieval metadata to provide an understanding in the retrieval steps performed by the model. There can be multiple such messages which can correspond to different parts of the retrieval. This is a mechanism used to ensure transparency to our users. */
2953
+ retrievalMetadata?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata[];
2954
+ /** Google search entry for the following-up web searches. */
2955
+ searchEntryPoint?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint;
2956
+ /** List of chunks to be attributed across all claims in the candidate. These are derived from the grounding sources supplied in the request. */
2957
+ supportChunks?: GoogleCloudDiscoveryengineV1betaFactChunk[];
2958
+ /** Web search queries for the following-up web search. */
2959
+ webSearchQueries?: string[];
2960
+ }
2961
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata {
2962
+ /** Metadata for the dynamic retrieval predictor. */
2963
+ predictorMetadata?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata;
2964
+ }
2965
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata {
2966
+ /** The value of the predictor. This should be between [0, 1] where a value of 0 means that the query would not benefit from grounding, while a value of 1.0 means that the query would benefit the most. In between values allow to differentiate between different usefulness scores for grounding. */
2967
+ prediction?: number;
2968
+ /** The version of the predictor which was used in dynamic retrieval. */
2969
+ version?: string;
2970
+ }
2971
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport {
2972
+ /** Text for the claim in the candidate. Always provided when a support is found. */
2973
+ claimText?: string;
2974
+ /** A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim. */
2975
+ supportChunkIndices?: number[];
2976
+ /** A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks. */
2977
+ supportScore?: number;
2978
+ }
2979
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata {
2980
+ /** Metadata for dynamic retrieval. */
2981
+ dynamicRetrievalMetadata?: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata;
2982
+ /** Describes the source to which the metadata is referring to. */
2983
+ source?: string;
2984
+ }
2985
+ interface GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint {
2986
+ /** Web content snippet that can be embedded in a web page or an app webview. */
2987
+ renderedContent?: string;
2988
+ /** Base64 encoded JSON representing array of tuple. */
2989
+ sdkBlob?: string;
2990
+ }
2991
+ interface GoogleCloudDiscoveryengineV1betaGroundedGenerationContent {
2992
+ /** Ordered `Parts` that constitute a single message. */
2993
+ parts?: GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart[];
2994
+ /** Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset. */
2995
+ role?: string;
2996
+ }
2997
+ interface GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart {
2998
+ /** Inline text. */
2999
+ text?: string;
3000
+ }
2700
3001
  interface GoogleCloudDiscoveryengineV1betaGroundingFact {
2701
3002
  /** Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on. */
2702
3003
  attributes?: {[P in string]: string};
@@ -3823,6 +4124,10 @@ declare namespace gapi.client {
3823
4124
  /** The user query. */
3824
4125
  query?: GoogleCloudDiscoveryengineV1betaQuery;
3825
4126
  }
4127
+ interface GoogleCloudDiscoveryengineV1betaSingleRegionKey {
4128
+ /** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
4129
+ kmsKey?: string;
4130
+ }
3826
4131
  interface GoogleCloudDiscoveryengineV1betaSitemap {
3827
4132
  /** Output only. The sitemap's creation time. */
3828
4133
  createTime?: string;
@@ -4040,6 +4345,8 @@ declare namespace gapi.client {
4040
4345
  lastRotationTimestampMicros?: string;
4041
4346
  /** Required. Name of the CmekConfig, of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmekConfig}`. */
4042
4347
  name?: string;
4348
+ /** Optional. Single-regional CMEKs that are required for some VAIS features. */
4349
+ singleRegionKeys?: GoogleCloudDiscoveryengineV1SingleRegionKey[];
4043
4350
  /** Output only. State of the CmekConfig. */
4044
4351
  state?: string;
4045
4352
  }
@@ -4158,6 +4465,8 @@ declare namespace gapi.client {
4158
4465
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfig;
4159
4466
  /** Immutable. The industry vertical that the data store registers. */
4160
4467
  industryVertical?: string;
4468
+ /** Optional. If set, this DataStore is an Infobot FAQ DataStore. */
4469
+ isInfobotFaqDataStore?: boolean;
4161
4470
  /** Input only. The KMS key to be used to protect this DataStore at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStore will be protected by the KMS key, as indicated in the cmek_config field. */
4162
4471
  kmsKeyName?: string;
4163
4472
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
@@ -4604,6 +4913,10 @@ declare namespace gapi.client {
4604
4913
  /** Specifies the event type used for demoting recommendation result. Currently supported values: * `view-item`: Item viewed. * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. If unset, watch history demotion will not be applied. Content freshness demotion will still be applied. */
4605
4914
  demotionEventType?: string;
4606
4915
  }
4916
+ interface GoogleCloudDiscoveryengineV1SingleRegionKey {
4917
+ /** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
4918
+ kmsKey?: string;
4919
+ }
4607
4920
  interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
4608
4921
  /** Site verification state indicating the ownership and validity. */
4609
4922
  siteVerificationState?: string;
@@ -4764,6 +5077,32 @@ declare namespace gapi.client {
4764
5077
  /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
4765
5078
  year?: number;
4766
5079
  }
5080
+ interface GoogleTypeDateTime {
5081
+ /** Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day. */
5082
+ day?: number;
5083
+ /** Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
5084
+ hours?: number;
5085
+ /** Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. */
5086
+ minutes?: number;
5087
+ /** Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. */
5088
+ month?: number;
5089
+ /** Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. */
5090
+ nanos?: number;
5091
+ /** Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds. */
5092
+ seconds?: number;
5093
+ /** Time zone. */
5094
+ timeZone?: GoogleTypeTimeZone;
5095
+ /** UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }. */
5096
+ utcOffset?: string;
5097
+ /** Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. */
5098
+ year?: number;
5099
+ }
5100
+ interface GoogleTypeTimeZone {
5101
+ /** IANA Time Zone Database time zone. For example "America/New_York". */
5102
+ id?: string;
5103
+ /** Optional. IANA Time Zone Database version number. For example "2019a". */
5104
+ version?: string;
5105
+ }
4767
5106
  interface OperationsResource {
4768
5107
  /** 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. */
4769
5108
  get(request?: {
@@ -14637,6 +14976,64 @@ declare namespace gapi.client {
14637
14976
  ): Request<GoogleCloudDiscoveryengineV1betaUserEvent>;
14638
14977
  }
14639
14978
  interface LocationsResource {
14979
+ /** Generates grounded content. */
14980
+ generateGroundedContent(request: {
14981
+ /** V1 error format. */
14982
+ '$.xgafv'?: string;
14983
+ /** OAuth access token. */
14984
+ access_token?: string;
14985
+ /** Data format for response. */
14986
+ alt?: string;
14987
+ /** JSONP */
14988
+ callback?: string;
14989
+ /** Selector specifying which fields to include in a partial response. */
14990
+ fields?: string;
14991
+ /** 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. */
14992
+ key?: string;
14993
+ /** Required. Location resource. Format: `projects/{project}/locations/{location}`. */
14994
+ location: string;
14995
+ /** OAuth 2.0 token for the current user. */
14996
+ oauth_token?: string;
14997
+ /** Returns response with indentations and line breaks. */
14998
+ prettyPrint?: boolean;
14999
+ /** 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. */
15000
+ quotaUser?: string;
15001
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
15002
+ upload_protocol?: string;
15003
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
15004
+ uploadType?: string;
15005
+ /** Request body */
15006
+ resource: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest;
15007
+ }): Request<GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponse>;
15008
+ generateGroundedContent(
15009
+ request: {
15010
+ /** V1 error format. */
15011
+ '$.xgafv'?: string;
15012
+ /** OAuth access token. */
15013
+ access_token?: string;
15014
+ /** Data format for response. */
15015
+ alt?: string;
15016
+ /** JSONP */
15017
+ callback?: string;
15018
+ /** Selector specifying which fields to include in a partial response. */
15019
+ fields?: string;
15020
+ /** 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. */
15021
+ key?: string;
15022
+ /** Required. Location resource. Format: `projects/{project}/locations/{location}`. */
15023
+ location: string;
15024
+ /** OAuth 2.0 token for the current user. */
15025
+ oauth_token?: string;
15026
+ /** Returns response with indentations and line breaks. */
15027
+ prettyPrint?: boolean;
15028
+ /** 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. */
15029
+ quotaUser?: string;
15030
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
15031
+ upload_protocol?: string;
15032
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
15033
+ uploadType?: string;
15034
+ },
15035
+ body: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest
15036
+ ): Request<GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponse>;
14640
15037
  collections: CollectionsResource;
14641
15038
  dataStores: DataStoresResource;
14642
15039
  evaluations: EvaluationsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20241208",
3
+ "version": "0.0.20241216",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",