@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.1.20251209 → 0.1.20251217

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 +225 -3
  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: 20251209
12
+ // Revision: 20251217
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -213,9 +213,17 @@ declare namespace gapi.client {
213
213
  enrollState?: string;
214
214
  }
215
215
  interface GoogleCloudDiscoveryengineV1alphaA2AAgentDefinition {
216
+ /** Optional. Configuration specific to agents that are deployed from Cloud Marketplace. */
217
+ cloudMarketplaceConfig?: GoogleCloudDiscoveryengineV1alphaA2AAgentDefinitionCloudMarketplaceConfig;
216
218
  /** Optional. The agent card is a JSON string. */
217
219
  jsonAgentCard?: string;
218
220
  }
221
+ interface GoogleCloudDiscoveryengineV1alphaA2AAgentDefinitionCloudMarketplaceConfig {
222
+ /** Required. The Marketplace Entitlement this agent is associated with. Format: `projects/{project}/entitlements/{entitlement}`. */
223
+ entitlement?: string;
224
+ /** Output only. The Marketplace Order this agent belongs to. Format: `billingAccounts/{billing_account}/orders/{order}` */
225
+ order?: string;
226
+ }
219
227
  interface GoogleCloudDiscoveryengineV1alphaAclConfig {
220
228
  /** Identity provider config. */
221
229
  idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
@@ -3840,9 +3848,11 @@ declare namespace gapi.client {
3840
3848
  rankingExpressionBackend?: string;
3841
3849
  /** 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. */
3842
3850
  regionCode?: string;
3851
+ /** 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. */
3852
+ relevanceFilterSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec;
3843
3853
  /** Optional. The specification for returning the relevance score. */
3844
3854
  relevanceScoreSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec;
3845
- /** 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. This feature is not supported for healthcare search. */
3855
+ /** 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. */
3846
3856
  relevanceThreshold?: string;
3847
3857
  /** Whether to turn on safe search. This is only supported for website search. */
3848
3858
  safeSearch?: boolean;
@@ -4051,6 +4061,18 @@ declare namespace gapi.client {
4051
4061
  /** 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. */
4052
4062
  pinUnexpandedResults?: boolean;
4053
4063
  }
4064
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec {
4065
+ /** Optional. Relevance filtering threshold specification for keyword search. */
4066
+ keywordSearchThreshold?: GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
4067
+ /** Optional. Relevance filtering threshold specification for semantic search. */
4068
+ semanticSearchThreshold?: GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
4069
+ }
4070
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
4071
+ /** Pre-defined relevance threshold for the sub-search. */
4072
+ relevanceThreshold?: string;
4073
+ /** Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. */
4074
+ semanticRelevanceThreshold?: number;
4075
+ }
4054
4076
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec {
4055
4077
  /** Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query. */
4056
4078
  returnRelevanceScore?: boolean;
@@ -6071,9 +6093,11 @@ declare namespace gapi.client {
6071
6093
  rankingExpressionBackend?: string;
6072
6094
  /** 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. */
6073
6095
  regionCode?: string;
6096
+ /** 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. */
6097
+ relevanceFilterSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
6074
6098
  /** Optional. The specification for returning the relevance score. */
6075
6099
  relevanceScoreSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
6076
- /** 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. This feature is not supported for healthcare search. */
6100
+ /** 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. */
6077
6101
  relevanceThreshold?: string;
6078
6102
  /** Whether to turn on safe search. This is only supported for website search. */
6079
6103
  safeSearch?: boolean;
@@ -6280,6 +6304,18 @@ declare namespace gapi.client {
6280
6304
  /** 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. */
6281
6305
  pinUnexpandedResults?: boolean;
6282
6306
  }
6307
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
6308
+ /** Optional. Relevance filtering threshold specification for keyword search. */
6309
+ keywordSearchThreshold?: GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
6310
+ /** Optional. Relevance filtering threshold specification for semantic search. */
6311
+ semanticSearchThreshold?: GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
6312
+ }
6313
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
6314
+ /** Pre-defined relevance threshold for the sub-search. */
6315
+ relevanceThreshold?: string;
6316
+ /** Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. */
6317
+ semanticRelevanceThreshold?: number;
6318
+ }
6283
6319
  interface GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec {
6284
6320
  /** Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query. */
6285
6321
  returnRelevanceScore?: boolean;
@@ -10521,6 +10557,68 @@ declare namespace gapi.client {
10521
10557
  },
10522
10558
  body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest,
10523
10559
  ): Request<GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>;
10560
+ /** Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned. */
10561
+ create(request: {
10562
+ /** V1 error format. */
10563
+ '$.xgafv'?: string;
10564
+ /** OAuth access token. */
10565
+ access_token?: string;
10566
+ /** Data format for response. */
10567
+ alt?: string;
10568
+ /** JSONP */
10569
+ callback?: string;
10570
+ /** Selector specifying which fields to include in a partial response. */
10571
+ fields?: string;
10572
+ /** 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. */
10573
+ key?: string;
10574
+ /** OAuth 2.0 token for the current user. */
10575
+ oauth_token?: string;
10576
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
10577
+ parent: string;
10578
+ /** Returns response with indentations and line breaks. */
10579
+ prettyPrint?: boolean;
10580
+ /** 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. */
10581
+ quotaUser?: string;
10582
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
10583
+ servingConfigId?: string;
10584
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10585
+ upload_protocol?: string;
10586
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10587
+ uploadType?: string;
10588
+ /** Request body */
10589
+ resource: GoogleCloudDiscoveryengineV1alphaServingConfig;
10590
+ }): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
10591
+ create(
10592
+ request: {
10593
+ /** V1 error format. */
10594
+ '$.xgafv'?: string;
10595
+ /** OAuth access token. */
10596
+ access_token?: string;
10597
+ /** Data format for response. */
10598
+ alt?: string;
10599
+ /** JSONP */
10600
+ callback?: string;
10601
+ /** Selector specifying which fields to include in a partial response. */
10602
+ fields?: string;
10603
+ /** 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. */
10604
+ key?: string;
10605
+ /** OAuth 2.0 token for the current user. */
10606
+ oauth_token?: string;
10607
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
10608
+ parent: string;
10609
+ /** Returns response with indentations and line breaks. */
10610
+ prettyPrint?: boolean;
10611
+ /** 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. */
10612
+ quotaUser?: string;
10613
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
10614
+ servingConfigId?: string;
10615
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10616
+ upload_protocol?: string;
10617
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10618
+ uploadType?: string;
10619
+ },
10620
+ body: GoogleCloudDiscoveryengineV1alphaServingConfig,
10621
+ ): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
10524
10622
  /** Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist. */
10525
10623
  delete(request?: {
10526
10624
  /** V1 error format. */
@@ -14667,6 +14765,68 @@ declare namespace gapi.client {
14667
14765
  },
14668
14766
  body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest,
14669
14767
  ): Request<GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>;
14768
+ /** Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned. */
14769
+ create(request: {
14770
+ /** V1 error format. */
14771
+ '$.xgafv'?: string;
14772
+ /** OAuth access token. */
14773
+ access_token?: string;
14774
+ /** Data format for response. */
14775
+ alt?: string;
14776
+ /** JSONP */
14777
+ callback?: string;
14778
+ /** Selector specifying which fields to include in a partial response. */
14779
+ fields?: string;
14780
+ /** 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. */
14781
+ key?: string;
14782
+ /** OAuth 2.0 token for the current user. */
14783
+ oauth_token?: string;
14784
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
14785
+ parent: string;
14786
+ /** Returns response with indentations and line breaks. */
14787
+ prettyPrint?: boolean;
14788
+ /** 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. */
14789
+ quotaUser?: string;
14790
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
14791
+ servingConfigId?: string;
14792
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14793
+ upload_protocol?: string;
14794
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14795
+ uploadType?: string;
14796
+ /** Request body */
14797
+ resource: GoogleCloudDiscoveryengineV1alphaServingConfig;
14798
+ }): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
14799
+ create(
14800
+ request: {
14801
+ /** V1 error format. */
14802
+ '$.xgafv'?: string;
14803
+ /** OAuth access token. */
14804
+ access_token?: string;
14805
+ /** Data format for response. */
14806
+ alt?: string;
14807
+ /** JSONP */
14808
+ callback?: string;
14809
+ /** Selector specifying which fields to include in a partial response. */
14810
+ fields?: string;
14811
+ /** 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. */
14812
+ key?: string;
14813
+ /** OAuth 2.0 token for the current user. */
14814
+ oauth_token?: string;
14815
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
14816
+ parent: string;
14817
+ /** Returns response with indentations and line breaks. */
14818
+ prettyPrint?: boolean;
14819
+ /** 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. */
14820
+ quotaUser?: string;
14821
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
14822
+ servingConfigId?: string;
14823
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
14824
+ upload_protocol?: string;
14825
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
14826
+ uploadType?: string;
14827
+ },
14828
+ body: GoogleCloudDiscoveryengineV1alphaServingConfig,
14829
+ ): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
14670
14830
  /** Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist. */
14671
14831
  delete(request?: {
14672
14832
  /** V1 error format. */
@@ -17918,6 +18078,68 @@ declare namespace gapi.client {
17918
18078
  },
17919
18079
  body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest,
17920
18080
  ): Request<GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>;
18081
+ /** Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned. */
18082
+ create(request: {
18083
+ /** V1 error format. */
18084
+ '$.xgafv'?: string;
18085
+ /** OAuth access token. */
18086
+ access_token?: string;
18087
+ /** Data format for response. */
18088
+ alt?: string;
18089
+ /** JSONP */
18090
+ callback?: string;
18091
+ /** Selector specifying which fields to include in a partial response. */
18092
+ fields?: string;
18093
+ /** 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. */
18094
+ key?: string;
18095
+ /** OAuth 2.0 token for the current user. */
18096
+ oauth_token?: string;
18097
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
18098
+ parent: string;
18099
+ /** Returns response with indentations and line breaks. */
18100
+ prettyPrint?: boolean;
18101
+ /** 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. */
18102
+ quotaUser?: string;
18103
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
18104
+ servingConfigId?: string;
18105
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18106
+ upload_protocol?: string;
18107
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18108
+ uploadType?: string;
18109
+ /** Request body */
18110
+ resource: GoogleCloudDiscoveryengineV1alphaServingConfig;
18111
+ }): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
18112
+ create(
18113
+ request: {
18114
+ /** V1 error format. */
18115
+ '$.xgafv'?: string;
18116
+ /** OAuth access token. */
18117
+ access_token?: string;
18118
+ /** Data format for response. */
18119
+ alt?: string;
18120
+ /** JSONP */
18121
+ callback?: string;
18122
+ /** Selector specifying which fields to include in a partial response. */
18123
+ fields?: string;
18124
+ /** 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. */
18125
+ key?: string;
18126
+ /** OAuth 2.0 token for the current user. */
18127
+ oauth_token?: string;
18128
+ /** Required. Full resource name of parent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */
18129
+ parent: string;
18130
+ /** Returns response with indentations and line breaks. */
18131
+ prettyPrint?: boolean;
18132
+ /** 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. */
18133
+ quotaUser?: string;
18134
+ /** Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/. */
18135
+ servingConfigId?: string;
18136
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
18137
+ upload_protocol?: string;
18138
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
18139
+ uploadType?: string;
18140
+ },
18141
+ body: GoogleCloudDiscoveryengineV1alphaServingConfig,
18142
+ ): Request<GoogleCloudDiscoveryengineV1alphaServingConfig>;
17921
18143
  /** Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist. */
17922
18144
  delete(request?: {
17923
18145
  /** 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.1.20251209",
3
+ "version": "0.1.20251217",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",