@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20250604 → 0.0.20250609
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 +13 -13
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250609
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1439,7 +1439,7 @@ declare namespace gapi.client {
|
|
|
1439
1439
|
top5?: number;
|
|
1440
1440
|
}
|
|
1441
1441
|
interface GoogleCloudDiscoveryengineV1alphaQuery {
|
|
1442
|
-
/** Unique Id for the query. */
|
|
1442
|
+
/** Output only. Unique Id for the query. */
|
|
1443
1443
|
queryId?: string;
|
|
1444
1444
|
/** Plain text. */
|
|
1445
1445
|
text?: string;
|
|
@@ -1583,7 +1583,7 @@ declare namespace gapi.client {
|
|
|
1583
1583
|
query?: string;
|
|
1584
1584
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
1585
1585
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
|
|
1586
|
-
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to
|
|
1586
|
+
/** Optional. The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the `ranking_expression_backend` value. If `ranking_expression_backend` is not provided, it defaults to `RANK_BY_EMBEDDING`. If ranking_expression_backend is not provided or set to `RANK_BY_EMBEDDING`, it should be a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between `embedding_field_path` and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. If ranking_expression_backend is set to `RANK_BY_FORMULA`, the following expression types (and combinations of those chained using + or * operators) are supported: * `double` * `signal` * `log(signal)` * `exp(signal)` * `rr(signal, double > 0)` -- reciprocal rank transformation with second argument being a denominator constant. * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns signal2 | double, else returns signal1. Here are a few examples of ranking formulas that use the supported ranking expression types: - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` -- mostly rank by the logarithm of `keyword_similarity_score` with slight `semantic_smilarity_score` adjustment. - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * is_nan(keyword_similarity_score)` -- rank by the exponent of `semantic_similarity_score` filling the value with 0 if it's NaN, also add constant 0.3 adjustment to the final score if `semantic_similarity_score` is NaN. - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank of `keyword_similarity_score` with slight adjustment of reciprocal rank of `semantic_smilarity_score`. The following signals are supported: * `semantic_similarity_score`: semantic similarity adjustment that is calculated using the embeddings generated by a proprietary Google model. This score determines how semantically similar a search query is to a document. * `keyword_similarity_score`: keyword match adjustment uses the Best Match 25 (BM25) ranking function. This score is calculated using a probabilistic model to estimate the probability that a document is relevant to a given query. * `relevance_score`: semantic relevance adjustment that uses a proprietary Google model to determine the meaning and intent behind a user's query in context with the content in the documents. * `pctr_rank`: predicted conversion rate adjustment as a rank use predicted Click-through rate (pCTR) to gauge the relevance and attractiveness of a search result from a user's perspective. A higher pCTR suggests that the result is more likely to satisfy the user's query and intent, making it a valuable signal for ranking. * `freshness_rank`: freshness adjustment as a rank * `base_rank`: the default rank of the result */
|
|
1587
1587
|
rankingExpression?: string;
|
|
1588
1588
|
/** Optional. The backend to use for the ranking expression evaluation. */
|
|
1589
1589
|
rankingExpressionBackend?: string;
|
|
@@ -1605,6 +1605,8 @@ declare namespace gapi.client {
|
|
|
1605
1605
|
sessionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec;
|
|
1606
1606
|
/** The spell correction specification that specifies the mode under which spell correction takes effect. */
|
|
1607
1607
|
spellCorrectionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
|
|
1608
|
+
/** Uses the Engine, ServingConfig and Control freshly read from the database. Note: this skips config cache and introduces dependency on databases, which could significantly increase the API latency. It should only be used for testing, but not serving end users. */
|
|
1609
|
+
useLatestData?: boolean;
|
|
1608
1610
|
/** Information about the end user. Highly recommended for analytics and personalization. UserInfo.user_agent is used to deduce `device_type` for analytics. */
|
|
1609
1611
|
userInfo?: GoogleCloudDiscoveryengineV1alphaUserInfo;
|
|
1610
1612
|
/** 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. */
|
|
@@ -1821,14 +1823,12 @@ declare namespace gapi.client {
|
|
|
1821
1823
|
userPseudoId?: string;
|
|
1822
1824
|
}
|
|
1823
1825
|
interface GoogleCloudDiscoveryengineV1alphaSessionTurn {
|
|
1824
|
-
/** The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
|
|
1826
|
+
/** Optional. The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
|
|
1825
1827
|
answer?: string;
|
|
1826
1828
|
/** Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session. */
|
|
1827
1829
|
detailedAnswer?: GoogleCloudDiscoveryengineV1alphaAnswer;
|
|
1828
|
-
/** The user query. */
|
|
1830
|
+
/** Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn */
|
|
1829
1831
|
query?: GoogleCloudDiscoveryengineV1alphaQuery;
|
|
1830
|
-
/** Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). We don't want to import directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a wider set of customers. This information is used in particular when rendering alternative answers to the same prompt, providing visual information about how each answer was generated. The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.) should always store their information with "google..". 3P services can use anything not starting with "google." */
|
|
1831
|
-
queryConfigs?: {[P in string]: string};
|
|
1832
1832
|
}
|
|
1833
1833
|
interface GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateMetadata {
|
|
1834
1834
|
/** Operation create time. */
|
|
@@ -3220,7 +3220,7 @@ declare namespace gapi.client {
|
|
|
3220
3220
|
query?: string;
|
|
3221
3221
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
3222
3222
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec;
|
|
3223
|
-
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the ranking_expression_backend value. If ranking_expression_backend is not provided, it defaults to
|
|
3223
|
+
/** Optional. The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The syntax and supported features depend on the `ranking_expression_backend` value. If `ranking_expression_backend` is not provided, it defaults to `RANK_BY_EMBEDDING`. If ranking_expression_backend is not provided or set to `RANK_BY_EMBEDDING`, it should be a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between `embedding_field_path` and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. If ranking_expression_backend is set to `RANK_BY_FORMULA`, the following expression types (and combinations of those chained using + or * operators) are supported: * `double` * `signal` * `log(signal)` * `exp(signal)` * `rr(signal, double > 0)` -- reciprocal rank transformation with second argument being a denominator constant. * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns signal2 | double, else returns signal1. Here are a few examples of ranking formulas that use the supported ranking expression types: - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` -- mostly rank by the logarithm of `keyword_similarity_score` with slight `semantic_smilarity_score` adjustment. - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * is_nan(keyword_similarity_score)` -- rank by the exponent of `semantic_similarity_score` filling the value with 0 if it's NaN, also add constant 0.3 adjustment to the final score if `semantic_similarity_score` is NaN. - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank of `keyword_similarity_score` with slight adjustment of reciprocal rank of `semantic_smilarity_score`. The following signals are supported: * `semantic_similarity_score`: semantic similarity adjustment that is calculated using the embeddings generated by a proprietary Google model. This score determines how semantically similar a search query is to a document. * `keyword_similarity_score`: keyword match adjustment uses the Best Match 25 (BM25) ranking function. This score is calculated using a probabilistic model to estimate the probability that a document is relevant to a given query. * `relevance_score`: semantic relevance adjustment that uses a proprietary Google model to determine the meaning and intent behind a user's query in context with the content in the documents. * `pctr_rank`: predicted conversion rate adjustment as a rank use predicted Click-through rate (pCTR) to gauge the relevance and attractiveness of a search result from a user's perspective. A higher pCTR suggests that the result is more likely to satisfy the user's query and intent, making it a valuable signal for ranking. * `freshness_rank`: freshness adjustment as a rank * `base_rank`: the default rank of the result */
|
|
3224
3224
|
rankingExpression?: string;
|
|
3225
3225
|
/** Optional. The backend to use for the ranking expression evaluation. */
|
|
3226
3226
|
rankingExpressionBackend?: string;
|
|
@@ -4690,6 +4690,8 @@ declare namespace gapi.client {
|
|
|
4690
4690
|
totalPanels?: number;
|
|
4691
4691
|
}
|
|
4692
4692
|
interface GoogleCloudDiscoveryengineV1Principal {
|
|
4693
|
+
/** For 3P application identities which are not present in the customer identity provider. */
|
|
4694
|
+
externalEntityId?: string;
|
|
4693
4695
|
/** Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config. */
|
|
4694
4696
|
groupId?: string;
|
|
4695
4697
|
/** User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config. */
|
|
@@ -4809,7 +4811,7 @@ declare namespace gapi.client {
|
|
|
4809
4811
|
force?: boolean;
|
|
4810
4812
|
}
|
|
4811
4813
|
interface GoogleCloudDiscoveryengineV1Query {
|
|
4812
|
-
/** Unique Id for the query. */
|
|
4814
|
+
/** Output only. Unique Id for the query. */
|
|
4813
4815
|
queryId?: string;
|
|
4814
4816
|
/** Plain text. */
|
|
4815
4817
|
text?: string;
|
|
@@ -5345,14 +5347,12 @@ declare namespace gapi.client {
|
|
|
5345
5347
|
userPseudoId?: string;
|
|
5346
5348
|
}
|
|
5347
5349
|
interface GoogleCloudDiscoveryengineV1SessionTurn {
|
|
5348
|
-
/** The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
|
|
5350
|
+
/** Optional. The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. */
|
|
5349
5351
|
answer?: string;
|
|
5350
5352
|
/** Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session. */
|
|
5351
5353
|
detailedAnswer?: GoogleCloudDiscoveryengineV1Answer;
|
|
5352
|
-
/** The user query. */
|
|
5354
|
+
/** Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn */
|
|
5353
5355
|
query?: GoogleCloudDiscoveryengineV1Query;
|
|
5354
|
-
/** Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). We don't want to import directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a wider set of customers. This information is used in particular when rendering alternative answers to the same prompt, providing visual information about how each answer was generated. The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.) should always store their information with "google..". 3P services can use anything not starting with "google." */
|
|
5355
|
-
queryConfigs?: {[P in string]: string};
|
|
5356
5356
|
}
|
|
5357
5357
|
interface GoogleCloudDiscoveryengineV1SingleRegionKey {
|
|
5358
5358
|
/** Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|