@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250305 → 0.0.20250306

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 +11 -206
  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=v1alpha
12
- // Revision: 20250305
12
+ // Revision: 20250306
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1232,7 +1232,7 @@ declare namespace gapi.client {
1232
1232
  interface GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRunProgress {
1233
1233
  /** The current progress. */
1234
1234
  currentCount?: string;
1235
- /** Derived. The percentile of the progress. */
1235
+ /** Derived. The percentile of the progress.current_count / total_count. The value is between [0, 1.0] inclusive. */
1236
1236
  percentile?: number;
1237
1237
  /** The total. */
1238
1238
  totalCount?: string;
@@ -1443,6 +1443,8 @@ declare namespace gapi.client {
1443
1443
  bapConfig?: GoogleCloudDiscoveryengineV1alphaBAPConfig;
1444
1444
  /** Output only. User actions that must be completed before the connector can start syncing data. */
1445
1445
  blockingReasons?: string[];
1446
+ /** Output only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is notmutable once set by system. */
1447
+ connectorType?: string;
1446
1448
  /** Output only. Timestamp the DataConnector was created at. */
1447
1449
  createTime?: string;
1448
1450
  /** Required. The name of the data source. Supported values: `salesforce`, `jira`, `confluence`, `bigquery`. */
@@ -1471,6 +1473,8 @@ declare namespace gapi.client {
1471
1473
  params?: {[P in string]: any};
1472
1474
  /** Output only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function. */
1473
1475
  privateConnectivityProjectId?: string;
1476
+ /** Output only. real-time sync state */
1477
+ realtimeState?: string;
1474
1478
  /** 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. */
1475
1479
  refreshInterval?: string;
1476
1480
  /** Output only. State of the connector. */
@@ -1997,139 +2001,6 @@ declare namespace gapi.client {
1997
2001
  /** 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`). */
1998
2002
  inputUris?: string[];
1999
2003
  }
2000
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest {
2001
- /** 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. */
2002
- contents?: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent[];
2003
- /** Content generation specification. */
2004
- generationSpec?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerationSpec;
2005
- /** Grounding specification. */
2006
- groundingSpec?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSpec;
2007
- /** 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. */
2008
- systemInstruction?: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent;
2009
- /** 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. */
2010
- userLabels?: {[P in string]: string};
2011
- }
2012
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfiguration {
2013
- /** Specification for the predictor for dynamic retrieval. */
2014
- predictor?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor;
2015
- }
2016
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor {
2017
- /** The value of the threshold. If the predictor will predict a value smaller than this, it would suppress grounding in the source. */
2018
- threshold?: number;
2019
- /** The version of the predictor to be used in dynamic retrieval. */
2020
- version?: string;
2021
- }
2022
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerationSpec {
2023
- /** If specified, custom value for frequency penalty will be used. */
2024
- frequencyPenalty?: number;
2025
- /** Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). */
2026
- languageCode?: string;
2027
- /** If specified, custom value for max output tokens will be used. */
2028
- maxOutputTokens?: number;
2029
- /** Specifies which Vertex model id to use for generation. */
2030
- modelId?: string;
2031
- /** If specified, custom value for presence penalty will be used. */
2032
- presencePenalty?: number;
2033
- /** If specified, custom value for the seed will be used. */
2034
- seed?: number;
2035
- /** If specified, custom value for the temperature will be used. */
2036
- temperature?: number;
2037
- /** If specified, custom value for top-k sampling will be used. */
2038
- topK?: number;
2039
- /** If specified, custom value for nucleus sampling will be used. */
2040
- topP?: number;
2041
- }
2042
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource {
2043
- /** If set, grounding is performed with enterprise web retrieval. */
2044
- enterpriseWebRetrievalSource?: any;
2045
- /** If set, grounding is performed with Google Search. */
2046
- googleSearchSource?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource;
2047
- /** If set, grounding is performed with inline content. */
2048
- inlineSource?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource;
2049
- /** If set, grounding is performed with Vertex AI Search. */
2050
- searchSource?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource;
2051
- }
2052
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceEnterpriseWebRetrievalSource {}
2053
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource {
2054
- /** Optional. Specifies the dynamic retrieval configuration for the given source. */
2055
- dynamicRetrievalConfig?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfiguration;
2056
- }
2057
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource {
2058
- /** Attributes associated with the content. Common attributes include `source` (indicating where the content was sourced from) and `author` (indicating the author of the content). */
2059
- attributes?: {[P in string]: string};
2060
- /** List of facts to be used for grounding. */
2061
- groundingFacts?: GoogleCloudDiscoveryengineV1alphaGroundingFact[];
2062
- }
2063
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource {
2064
- /** Filter expression to be applied to the search. The syntax is the same as SearchRequest.filter. */
2065
- filter?: string;
2066
- /** Number of search results to return. The default value is 10. The maximumm allowed value is 10. */
2067
- maxResultCount?: number;
2068
- /** If set, safe search is enabled in Vertex AI Search requests. */
2069
- safeSearch?: boolean;
2070
- /** The resource name of the Engine to use. Format: `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` */
2071
- servingConfig?: string;
2072
- }
2073
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSpec {
2074
- /** Grounding sources. */
2075
- groundingSources?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource[];
2076
- }
2077
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponse {
2078
- /** Generated candidates. */
2079
- candidates?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidate[];
2080
- }
2081
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidate {
2082
- /** Content of the candidate. */
2083
- content?: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent;
2084
- /** Grounding metadata for the generated content. */
2085
- groundingMetadata?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadata;
2086
- /** The overall grounding score for the candidate, in the range of [0, 1]. */
2087
- groundingScore?: number;
2088
- /** Index of the candidate. */
2089
- index?: number;
2090
- }
2091
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadata {
2092
- /** GroundingSupport across all claims in the answer candidate. An support to a fact indicates that the claim is supported by the fact. */
2093
- groundingSupport?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport[];
2094
- /** 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. */
2095
- retrievalMetadata?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata[];
2096
- /** Google search entry for the following-up web searches. */
2097
- searchEntryPoint?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint;
2098
- /** List of chunks to be attributed across all claims in the candidate. These are derived from the grounding sources supplied in the request. */
2099
- supportChunks?: GoogleCloudDiscoveryengineV1alphaFactChunk[];
2100
- /** Web search queries for the following-up web search. */
2101
- webSearchQueries?: string[];
2102
- }
2103
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata {
2104
- /** Metadata for the dynamic retrieval predictor. */
2105
- predictorMetadata?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata;
2106
- }
2107
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata {
2108
- /** 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. */
2109
- prediction?: number;
2110
- /** The version of the predictor which was used in dynamic retrieval. */
2111
- version?: string;
2112
- }
2113
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport {
2114
- /** Text for the claim in the candidate. Always provided when a support is found. */
2115
- claimText?: string;
2116
- /** 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. */
2117
- supportChunkIndices?: number[];
2118
- /** 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. */
2119
- supportScore?: number;
2120
- }
2121
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata {
2122
- /** Metadata for dynamic retrieval. */
2123
- dynamicRetrievalMetadata?: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata;
2124
- /** Describes the source to which the metadata is referring to. */
2125
- source?: string;
2126
- }
2127
- interface GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint {
2128
- /** Web content snippet that can be embedded in a web page or an app webview. */
2129
- renderedContent?: string;
2130
- /** Base64 encoded JSON representing array of tuple. */
2131
- sdkBlob?: string;
2132
- }
2133
2004
  interface GoogleCloudDiscoveryengineV1alphaGetSessionRequest {
2134
2005
  /** Optional. If set to true, the full session including all answer details will be returned. */
2135
2006
  includeAnswerDetails?: boolean;
@@ -2140,16 +2011,6 @@ declare namespace gapi.client {
2140
2011
  /** Document data keyed by URI pattern. For example: document_data_map = { "www.url1.com/*": { "Categories": ["category1", "category2"] }, "www.url2.com/*": { "Categories": ["category3"] } } */
2141
2012
  documentDataMap?: {[P in string]: {[P in string]: any}};
2142
2013
  }
2143
- interface GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent {
2144
- /** Ordered `Parts` that constitute a single message. */
2145
- parts?: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart[];
2146
- /** Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset. */
2147
- role?: string;
2148
- }
2149
- interface GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart {
2150
- /** Inline text. */
2151
- text?: string;
2152
- }
2153
2014
  interface GoogleCloudDiscoveryengineV1alphaGroundingFact {
2154
2015
  /** 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. */
2155
2016
  attributes?: {[P in string]: string};
@@ -2791,7 +2652,7 @@ declare namespace gapi.client {
2791
2652
  interface GoogleCloudDiscoveryengineV1alphaRankRequest {
2792
2653
  /** If true, the response will contain only record ID and score. By default, it is false, the response will contain record details. */
2793
2654
  ignoreRecordDetailsInResponse?: boolean;
2794
- /** The identifier of the model to use. It is one of: * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input token size 512. It is set to `semantic-ranker-512@latest` by default if unspecified. */
2655
+ /** The identifier of the model to use. It is one of: * `semantic-ranker-512@latest`: Semantic ranking model with maximum input token size 512. It is set to `semantic-ranker-512@latest` by default if unspecified. */
2795
2656
  model?: string;
2796
2657
  /** The query to use. */
2797
2658
  query?: string;
@@ -3083,7 +2944,7 @@ declare namespace gapi.client {
3083
2944
  contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
3084
2945
  /** Custom fine tuning configs. If set, it has higher priority than the configs set in ServingConfig.custom_fine_tuning_spec. */
3085
2946
  customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
3086
- /** Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
2947
+ /** Specifications that define the specific [DataStore]s to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
3087
2948
  dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
3088
2949
  /** Optional. Config for display feature, like match highlighting on search results. */
3089
2950
  displaySpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestDisplaySpec;
@@ -4000,6 +3861,8 @@ declare namespace gapi.client {
4000
3861
  allowPublicAccess?: boolean;
4001
3862
  /** Whether web app access is enabled. */
4002
3863
  enableWebApp?: boolean;
3864
+ /** Optional. The workforce identity pool provider used to access the widget. */
3865
+ workforceIdentityPoolProvider?: string;
4003
3866
  }
4004
3867
  interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
4005
3868
  /** Whether or not the Google search grounding toggle is shown. */
@@ -4818,7 +4681,7 @@ declare namespace gapi.client {
4818
4681
  canonicalFilter?: string;
4819
4682
  /** A specification for configuring the behavior of content search. */
4820
4683
  contentSearchSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec;
4821
- /** Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
4684
+ /** Specifications that define the specific [DataStore]s to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used. */
4822
4685
  dataStoreSpecs?: GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec[];
4823
4686
  /** Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path. */
4824
4687
  embeddingSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec;
@@ -17562,64 +17425,6 @@ declare namespace gapi.client {
17562
17425
  },
17563
17426
  body: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest,
17564
17427
  ): Request<GoogleLongrunningOperation>;
17565
- /** Generates grounded content. */
17566
- generateGroundedContent(request: {
17567
- /** V1 error format. */
17568
- '$.xgafv'?: string;
17569
- /** OAuth access token. */
17570
- access_token?: string;
17571
- /** Data format for response. */
17572
- alt?: string;
17573
- /** JSONP */
17574
- callback?: string;
17575
- /** Selector specifying which fields to include in a partial response. */
17576
- fields?: string;
17577
- /** 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. */
17578
- key?: string;
17579
- /** Required. Location resource. Format: `projects/{project}/locations/{location}`. */
17580
- location: string;
17581
- /** OAuth 2.0 token for the current user. */
17582
- oauth_token?: string;
17583
- /** Returns response with indentations and line breaks. */
17584
- prettyPrint?: boolean;
17585
- /** 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. */
17586
- quotaUser?: string;
17587
- /** Upload protocol for media (e.g. "raw", "multipart"). */
17588
- upload_protocol?: string;
17589
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17590
- uploadType?: string;
17591
- /** Request body */
17592
- resource: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest;
17593
- }): Request<GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponse>;
17594
- generateGroundedContent(
17595
- request: {
17596
- /** V1 error format. */
17597
- '$.xgafv'?: string;
17598
- /** OAuth access token. */
17599
- access_token?: string;
17600
- /** Data format for response. */
17601
- alt?: string;
17602
- /** JSONP */
17603
- callback?: string;
17604
- /** Selector specifying which fields to include in a partial response. */
17605
- fields?: string;
17606
- /** 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. */
17607
- key?: string;
17608
- /** Required. Location resource. Format: `projects/{project}/locations/{location}`. */
17609
- location: string;
17610
- /** OAuth 2.0 token for the current user. */
17611
- oauth_token?: string;
17612
- /** Returns response with indentations and line breaks. */
17613
- prettyPrint?: boolean;
17614
- /** 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. */
17615
- quotaUser?: string;
17616
- /** Upload protocol for media (e.g. "raw", "multipart"). */
17617
- upload_protocol?: string;
17618
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
17619
- uploadType?: string;
17620
- },
17621
- body: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest,
17622
- ): Request<GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponse>;
17623
17428
  /** Gets the AclConfig. */
17624
17429
  getAclConfig(request?: {
17625
17430
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250305",
3
+ "version": "0.0.20250306",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",