@maxim_mazurok/gapi.client.discoveryengine-v1 0.3.20260802 → 0.3.20260809

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 +31 -1
  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=v1
12
- // Revision: 20260802
12
+ // Revision: 20260809
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -8273,6 +8273,8 @@ declare namespace gapi.client {
8273
8273
  | 'CLEARBOX'
8274
8274
  | 'RANK_BY_EMBEDDING'
8275
8275
  | 'RANK_BY_FORMULA';
8276
+ /** Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search. */
8277
+ relevanceFilterSpec?: GoogleCloudDiscoveryengineV1SearchRequestRelevanceFilterSpec;
8276
8278
  /** Optional. The specification for returning the relevance score. */
8277
8279
  relevanceScoreSpec?: GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec;
8278
8280
  /** The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search. */
@@ -8478,6 +8480,23 @@ declare namespace gapi.client {
8478
8480
  /** Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. */
8479
8481
  pinUnexpandedResults?: boolean;
8480
8482
  }
8483
+ interface GoogleCloudDiscoveryengineV1SearchRequestRelevanceFilterSpec {
8484
+ /** Optional. Relevance filtering threshold specification for keyword search. */
8485
+ keywordSearchThreshold?: GoogleCloudDiscoveryengineV1SearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8486
+ /** Optional. Relevance filtering threshold specification for semantic search. */
8487
+ semanticSearchThreshold?: GoogleCloudDiscoveryengineV1SearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
8488
+ }
8489
+ interface GoogleCloudDiscoveryengineV1SearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
8490
+ /** Pre-defined relevance threshold for the sub-search. */
8491
+ relevanceThreshold?:
8492
+ | 'RELEVANCE_THRESHOLD_UNSPECIFIED'
8493
+ | 'LOWEST'
8494
+ | 'LOW'
8495
+ | 'MEDIUM'
8496
+ | 'HIGH';
8497
+ /** Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. */
8498
+ semanticRelevanceThreshold?: number;
8499
+ }
8481
8500
  interface GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec {
8482
8501
  /** Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query. */
8483
8502
  returnRelevanceScore?: boolean;
@@ -8627,6 +8646,8 @@ declare namespace gapi.client {
8627
8646
  modelScores?: {[P in string]: GoogleCloudDiscoveryengineV1DoubleList};
8628
8647
  /** Optional. A set of ranking signals associated with the result. */
8629
8648
  rankSignals?: GoogleCloudDiscoveryengineV1SearchResponseSearchResultRankSignals;
8649
+ /** Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds. */
8650
+ retrievalSignals?: GoogleCloudDiscoveryengineV1SearchResponseSearchResultRetrievalSignals;
8630
8651
  }
8631
8652
  interface GoogleCloudDiscoveryengineV1SearchResponseSearchResultRankSignals {
8632
8653
  /** Optional. Combined custom boosts for a doc. */
@@ -8656,6 +8677,13 @@ declare namespace gapi.client {
8656
8677
  /** Optional. Float value representing the ranking signal (e.g. 1.25 for BM25). */
8657
8678
  value?: number;
8658
8679
  }
8680
+ interface GoogleCloudDiscoveryengineV1SearchResponseSearchResultRetrievalSignals {
8681
+ /** Optional. Indicates how the result was retrieved. */
8682
+ retrievalSources?:
8683
+ 'RETRIEVAL_SOURCE_UNSPECIFIED' | 'KEYWORD_SEARCH' | 'SEMANTIC_SEARCH'[];
8684
+ /** Optional. Relevance score used by the filter when semantic_relevance_threshold is set. */
8685
+ semanticRelevanceScore?: number;
8686
+ }
8659
8687
  interface GoogleCloudDiscoveryengineV1SearchResponseSessionInfo {
8660
8688
  /** Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name. */
8661
8689
  name?: string;
@@ -9514,6 +9542,8 @@ declare namespace gapi.client {
9514
9542
  icon?: string;
9515
9543
  /** Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI. */
9516
9544
  isPreview?: boolean;
9545
+ /** Output only. Short label shown in the compact selector bar chip (e.g. `3.x Flash`) as opposed to the full `display_name` (`Gemini 3.x Flash`). Falls back to `display_name` when the backend registry does not specify a distinct short label. */
9546
+ label?: string;
9517
9547
  /** Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; they are resolved to the underlying concrete model on the backend. */
9518
9548
  modelId?: string;
9519
9549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1",
3
- "version": "0.3.20260802",
3
+ "version": "0.3.20260809",
4
4
  "description": "TypeScript typings for Discovery Engine API v1",
5
5
  "repository": {
6
6
  "type": "git",