@googleapis/discoveryengine 37.0.0 → 37.2.0

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.ts CHANGED
@@ -74,4 +74,3 @@ export {
74
74
  MethodOptions,
75
75
  BodyResponseCallback,
76
76
  } from 'googleapis-common';
77
- // TODO: delete this comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/discoveryengine",
3
- "version": "37.0.0",
3
+ "version": "37.2.0",
4
4
  "description": "discoveryengine",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "outDir": "../../../build/src/apis/discoveryengine"
6
+ },
7
+ "include": [
8
+ "*.ts"
9
+ ]
10
+ }
package/v1.ts CHANGED
@@ -2291,6 +2291,10 @@ export namespace discoveryengine_v1 {
2291
2291
  * Reasons for not answering the assist call.
2292
2292
  */
2293
2293
  assistSkippedReasons?: string[] | null;
2294
+ /**
2295
+ * Output only. Maps an internal connector agent name (the machine identifier embedded in tool names, e.g. `custom_mcp__agent`) to the connector's human-readable display name. Populated at serving time for custom MCP / agent gateway connectors so user-facing surfaces (e.g. the tool-call chip) can show the connector name instead of its internal identifier. Empty when there are no such connectors.
2296
+ */
2297
+ connectorDisplayNames?: {[key: string]: string} | null;
2294
2298
  /**
2295
2299
  * Optional. The field contains information about the various policy checks' results like the banned phrases or the Model Armor checks. This field is populated only if the assist call was skipped due to a policy violation.
2296
2300
  */
@@ -3363,7 +3367,7 @@ export namespace discoveryengine_v1 {
3363
3367
  */
3364
3368
  syncMode?: string | null;
3365
3369
  /**
3366
- * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
3370
+ * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. If the caller omits `tag`, the server auto-derives one from the collection_id (falling back to data_source, else a time-based `t-` sentinel). The auto-derived tag is subject to the same immutability guarantee as a caller-supplied one, so callers who care about the exact tag value should provide it explicitly rather than relying on the server default. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
3367
3371
  */
3368
3372
  tag?: string | null;
3369
3373
  /**
@@ -4978,6 +4982,10 @@ export namespace discoveryengine_v1 {
4978
4982
  * Optional. Whether the license config should be auto renewed when it reaches the end date.
4979
4983
  */
4980
4984
  autoRenew?: boolean | null;
4985
+ /**
4986
+ * Output only. The name of the BillingAccountLicenseConfig from which this LicenseConfig is assigned, if this field is set.
4987
+ */
4988
+ billingAccountLicenseConfig?: string | null;
4981
4989
  /**
4982
4990
  * Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
4983
4991
  */
@@ -5249,6 +5257,10 @@ export namespace discoveryengine_v1 {
5249
5257
  * Optional. Configuration for NotebookLM settings.
5250
5258
  */
5251
5259
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig;
5260
+ /**
5261
+ * Optional. Resource-level access control config for Gemini Enterprise users.
5262
+ */
5263
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig;
5252
5264
  }
5253
5265
  /**
5254
5266
  * Configuration for NotebookLM.
@@ -5302,6 +5314,15 @@ export namespace discoveryengine_v1 {
5302
5314
  */
5303
5315
  userPromptTemplate?: string | null;
5304
5316
  }
5317
+ /**
5318
+ * Controls resource-level access control for Gemini Enterprise users.
5319
+ */
5320
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig {
5321
+ /**
5322
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
5323
+ */
5324
+ dataStoreAccessControlEnabled?: boolean | null;
5325
+ }
5305
5326
  /**
5306
5327
  * Metadata about the terms of service.
5307
5328
  */
@@ -5546,6 +5567,10 @@ export namespace discoveryengine_v1 {
5546
5567
  * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages.
5547
5568
  */
5548
5569
  uiJsonPayload?: string | null;
5570
+ /**
5571
+ * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above.
5572
+ */
5573
+ userSuppliedSobiArtifactReference?: Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference;
5549
5574
  }
5550
5575
  /**
5551
5576
  * Represents a document reference.
@@ -5638,6 +5663,19 @@ export namespace discoveryengine_v1 {
5638
5663
  */
5639
5664
  personId?: string | null;
5640
5665
  }
5666
+ /**
5667
+ * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- "user attached a file" is one concept regardless of source.
5668
+ */
5669
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference {
5670
+ /**
5671
+ * Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name.
5672
+ */
5673
+ fileName?: string | null;
5674
+ /**
5675
+ * Optional. IANA MIME type. Used for icon/preview rendering.
5676
+ */
5677
+ mimeType?: string | null;
5678
+ }
5641
5679
  /**
5642
5680
  * Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field.
5643
5681
  */
@@ -6519,6 +6557,27 @@ export namespace discoveryengine_v1 {
6519
6557
  * The condition under which search as you type should occur. Default to Condition.DISABLED.
6520
6558
  */
6521
6559
  condition?: string | null;
6560
+ /**
6561
+ * Optional. The list of fields to be used for Search As You Type scoring.
6562
+ */
6563
+ fields?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField[];
6564
+ /**
6565
+ * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`.
6566
+ */
6567
+ scoreThreshold?: number | null;
6568
+ }
6569
+ /**
6570
+ * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.
6571
+ */
6572
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField {
6573
+ /**
6574
+ * Required. A field key that has been indexed for Search As You Type.
6575
+ */
6576
+ key?: string | null;
6577
+ /**
6578
+ * Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
6579
+ */
6580
+ weight?: number | null;
6522
6581
  }
6523
6582
  /**
6524
6583
  * Session specification.
@@ -7879,6 +7938,10 @@ export namespace discoveryengine_v1 {
7879
7938
  * Reasons for not answering the assist call.
7880
7939
  */
7881
7940
  assistSkippedReasons?: string[] | null;
7941
+ /**
7942
+ * Output only. Maps an internal connector agent name (the machine identifier embedded in tool names, e.g. `custom_mcp__agent`) to the connector's human-readable display name. Populated at serving time for custom MCP / agent gateway connectors so user-facing surfaces (e.g. the tool-call chip) can show the connector name instead of its internal identifier. Empty when there are no such connectors.
7943
+ */
7944
+ connectorDisplayNames?: {[key: string]: string} | null;
7882
7945
  /**
7883
7946
  * Optional. The field contains information about the various policy checks' results like the banned phrases or the Model Armor checks. This field is populated only if the assist call was skipped due to a policy violation.
7884
7947
  */
@@ -10284,6 +10347,10 @@ export namespace discoveryengine_v1 {
10284
10347
  * Optional. Configuration for NotebookLM settings.
10285
10348
  */
10286
10349
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig;
10350
+ /**
10351
+ * Optional. Resource-level access control config for Gemini Enterprise users.
10352
+ */
10353
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig;
10287
10354
  }
10288
10355
  /**
10289
10356
  * Configuration for NotebookLM.
@@ -10337,6 +10404,15 @@ export namespace discoveryengine_v1 {
10337
10404
  */
10338
10405
  userPromptTemplate?: string | null;
10339
10406
  }
10407
+ /**
10408
+ * Controls resource-level access control for Gemini Enterprise users.
10409
+ */
10410
+ export interface Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig {
10411
+ /**
10412
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
10413
+ */
10414
+ dataStoreAccessControlEnabled?: boolean | null;
10415
+ }
10340
10416
  /**
10341
10417
  * Metadata about the terms of service.
10342
10418
  */
@@ -11185,6 +11261,27 @@ export namespace discoveryengine_v1 {
11185
11261
  * The condition under which search as you type should occur. Default to Condition.DISABLED.
11186
11262
  */
11187
11263
  condition?: string | null;
11264
+ /**
11265
+ * Optional. The list of fields to be used for Search As You Type scoring.
11266
+ */
11267
+ fields?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField[];
11268
+ /**
11269
+ * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`.
11270
+ */
11271
+ scoreThreshold?: number | null;
11272
+ }
11273
+ /**
11274
+ * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.
11275
+ */
11276
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField {
11277
+ /**
11278
+ * Required. A field key that has been indexed for Search As You Type.
11279
+ */
11280
+ key?: string | null;
11281
+ /**
11282
+ * Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
11283
+ */
11284
+ weight?: number | null;
11188
11285
  }
11189
11286
  /**
11190
11287
  * Session specification.
@@ -12037,7 +12134,7 @@ export namespace discoveryengine_v1 {
12037
12134
  */
12038
12135
  selectedPosition?: number | null;
12039
12136
  /**
12040
- * End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
12137
+ * Optional. End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
12041
12138
  */
12042
12139
  selectedSuggestion?: string | null;
12043
12140
  }
@@ -12695,7 +12792,7 @@ export namespace discoveryengine_v1 {
12695
12792
  */
12696
12793
  syncMode?: string | null;
12697
12794
  /**
12698
- * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
12795
+ * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. If the caller omits `tag`, the server auto-derives one from the collection_id (falling back to data_source, else a time-based `t-` sentinel). The auto-derived tag is subject to the same immutability guarantee as a caller-supplied one, so callers who care about the exact tag value should provide it explicitly rather than relying on the server default. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
12699
12796
  */
12700
12797
  tag?: string | null;
12701
12798
  /**
@@ -15025,6 +15122,10 @@ export namespace discoveryengine_v1 {
15025
15122
  * Optional. Configuration for NotebookLM settings.
15026
15123
  */
15027
15124
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig;
15125
+ /**
15126
+ * Optional. Resource-level access control config for Gemini Enterprise users.
15127
+ */
15128
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig;
15028
15129
  }
15029
15130
  /**
15030
15131
  * Configuration for NotebookLM.
@@ -15078,6 +15179,15 @@ export namespace discoveryengine_v1 {
15078
15179
  */
15079
15180
  userPromptTemplate?: string | null;
15080
15181
  }
15182
+ /**
15183
+ * Controls resource-level access control for Gemini Enterprise users.
15184
+ */
15185
+ export interface Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig {
15186
+ /**
15187
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
15188
+ */
15189
+ dataStoreAccessControlEnabled?: boolean | null;
15190
+ }
15081
15191
  /**
15082
15192
  * Metadata about the terms of service.
15083
15193
  */
@@ -15563,7 +15673,7 @@ export namespace discoveryengine_v1 {
15563
15673
  */
15564
15674
  orderBy?: string | null;
15565
15675
  /**
15566
- * The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
15676
+ * Optional. The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
15567
15677
  */
15568
15678
  searchQuery?: string | null;
15569
15679
  }
@@ -16173,6 +16283,27 @@ export namespace discoveryengine_v1 {
16173
16283
  * The condition under which search as you type should occur. Default to Condition.DISABLED.
16174
16284
  */
16175
16285
  condition?: string | null;
16286
+ /**
16287
+ * Optional. The list of fields to be used for Search As You Type scoring.
16288
+ */
16289
+ fields?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField[];
16290
+ /**
16291
+ * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`.
16292
+ */
16293
+ scoreThreshold?: number | null;
16294
+ }
16295
+ /**
16296
+ * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.
16297
+ */
16298
+ export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpecField {
16299
+ /**
16300
+ * Required. A field key that has been indexed for Search As You Type.
16301
+ */
16302
+ key?: string | null;
16303
+ /**
16304
+ * Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
16305
+ */
16306
+ weight?: number | null;
16176
16307
  }
16177
16308
  /**
16178
16309
  * Session specification.
@@ -17409,7 +17540,7 @@ export namespace discoveryengine_v1 {
17409
17540
  */
17410
17541
  export interface Schema$GoogleCloudDiscoveryengineV1UserEvent {
17411
17542
  /**
17412
- * Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
17543
+ * Optional. Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
17413
17544
  */
17414
17545
  attributes?: {
17415
17546
  [key: string]: Schema$GoogleCloudDiscoveryengineV1CustomAttribute;
@@ -17875,6 +18006,10 @@ export namespace discoveryengine_v1 {
17875
18006
  * The name of the collection. It should be collection resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}`. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field. For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.
17876
18007
  */
17877
18008
  name?: string | null;
18009
+ /**
18010
+ * Output only. The version-independent label of the connector backing this collection, mirroring `DataConnector.tag`. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag. Not a unique key. As `DataConnector.tag` documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier. Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying `DataConnector`. Populated only when `ConnectorsFeature.enable_connector_tag` is on.
18011
+ */
18012
+ tag?: string | null;
17878
18013
  }
17879
18014
  /**
17880
18015
  * Read-only connector in CollectionComponent auth state.
@@ -18218,6 +18353,10 @@ export namespace discoveryengine_v1 {
18218
18353
  * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.
18219
18354
  */
18220
18355
  displayName?: string | null;
18356
+ /**
18357
+ * Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized.
18358
+ */
18359
+ family?: string | null;
18221
18360
  /**
18222
18361
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
18223
18362
  */