@googleapis/discoveryengine 31.0.0 → 32.1.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/build/v1beta.d.ts CHANGED
@@ -1418,6 +1418,10 @@ export declare namespace discoveryengine_v1beta {
1418
1418
  * Final verdict of the customer policy enforcement. If only one policy blocked the processing, the verdict is BLOCK.
1419
1419
  */
1420
1420
  verdict?: string | null;
1421
+ /**
1422
+ * Output only. The source of the violation.
1423
+ */
1424
+ violationSource?: string | null;
1421
1425
  }
1422
1426
  /**
1423
1427
  * Customer policy enforcement result for the banned phrase policy.
@@ -2471,13 +2475,9 @@ export declare namespace discoveryengine_v1beta {
2471
2475
  vpcscEnabled?: boolean | null;
2472
2476
  }
2473
2477
  /**
2474
- * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, authenticated_account, note).
2478
+ * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, note).
2475
2479
  */
2476
2480
  export interface Schema$GoogleCloudDiscoveryengineV1alphaDataConnectorConnectorMetadata {
2477
- /**
2478
- * Optional. The end user's account as authenticated to the connector, so the end user can see which account is connected. May be an email, a username, or any identifier the connector/third party provides.
2479
- */
2480
- authenticatedAccount?: string | null;
2481
2481
  /**
2482
2482
  * Optional. The party that authored the connector, e.g. "Google" or a third-party provider name. Lets end users see who authored a connector (future: third-party-authored connectors).
2483
2483
  */
@@ -3317,7 +3317,7 @@ export declare namespace discoveryengine_v1beta {
3317
3317
  */
3318
3318
  displayName?: string | null;
3319
3319
  /**
3320
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
3320
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
3321
3321
  */
3322
3322
  features?: {
3323
3323
  [key: string]: string;
@@ -7643,6 +7643,10 @@ export declare namespace discoveryengine_v1beta {
7643
7643
  * Final verdict of the customer policy enforcement. If only one policy blocked the processing, the verdict is BLOCK.
7644
7644
  */
7645
7645
  verdict?: string | null;
7646
+ /**
7647
+ * Output only. The source of the violation.
7648
+ */
7649
+ violationSource?: string | null;
7646
7650
  }
7647
7651
  /**
7648
7652
  * Customer policy enforcement result for the banned phrase policy.
@@ -8155,7 +8159,7 @@ export declare namespace discoveryengine_v1beta {
8155
8159
  */
8156
8160
  deleteUnassignedUserLicenses?: boolean | null;
8157
8161
  /**
8158
- * The inline source for the input content for document embeddings.
8162
+ * The inline source for the input content for license assignment.
8159
8163
  */
8160
8164
  inlineSource?: Schema$GoogleCloudDiscoveryengineV1betaBatchUpdateUserLicensesRequestInlineSource;
8161
8165
  }
@@ -9896,7 +9900,7 @@ export declare namespace discoveryengine_v1beta {
9896
9900
  */
9897
9901
  displayName?: string | null;
9898
9902
  /**
9899
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
9903
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
9900
9904
  */
9901
9905
  features?: {
9902
9906
  [key: string]: string;
@@ -12976,7 +12980,7 @@ export declare namespace discoveryengine_v1beta {
12976
12980
  */
12977
12981
  export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponse {
12978
12982
  /**
12979
- * Controls applied as part of the Control service.
12983
+ * Optional. Controls applied as part of the Control service.
12980
12984
  */
12981
12985
  appliedControls?: string[] | null;
12982
12986
  /**
@@ -13306,6 +13310,10 @@ export declare namespace discoveryengine_v1beta {
13306
13310
  * Optional. A set of ranking signals associated with the result.
13307
13311
  */
13308
13312
  rankSignals?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRankSignals;
13313
+ /**
13314
+ * Optional. A set of signals used by the relevance filter meant for use to fine-tune the relevance filter thresholds.
13315
+ */
13316
+ retrievalSignals?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals;
13309
13317
  }
13310
13318
  /**
13311
13319
  * A set of ranking signals.
@@ -13365,6 +13373,19 @@ export declare namespace discoveryengine_v1beta {
13365
13373
  */
13366
13374
  value?: number | null;
13367
13375
  }
13376
+ /**
13377
+ * Contains a set of signals used by the relevance filter.
13378
+ */
13379
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSearchResultRetrievalSignals {
13380
+ /**
13381
+ * Optional. Indicates how the result was retrieved.
13382
+ */
13383
+ retrievalSources?: string[] | null;
13384
+ /**
13385
+ * Optional. Relevance score used by the filter when semantic_relevance_threshold is set.
13386
+ */
13387
+ semanticRelevanceScore?: number | null;
13388
+ }
13368
13389
  /**
13369
13390
  * Information about the session.
13370
13391
  */
@@ -14982,13 +15003,9 @@ export declare namespace discoveryengine_v1beta {
14982
15003
  vpcscEnabled?: boolean | null;
14983
15004
  }
14984
15005
  /**
14985
- * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, authenticated_account, note).
15006
+ * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, note).
14986
15007
  */
14987
15008
  export interface Schema$GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata {
14988
- /**
14989
- * Optional. The end user's account as authenticated to the connector, so the end user can see which account is connected. May be an email, a username, or any identifier the connector/third party provides.
14990
- */
14991
- authenticatedAccount?: string | null;
14992
15009
  /**
14993
15010
  * Optional. The party that authored the connector, e.g. "Google" or a third-party provider name. Lets end users see who authored a connector (future: third-party-authored connectors).
14994
15011
  */
@@ -15725,7 +15742,7 @@ export declare namespace discoveryengine_v1beta {
15725
15742
  */
15726
15743
  displayName?: string | null;
15727
15744
  /**
15728
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
15745
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
15729
15746
  */
15730
15747
  features?: {
15731
15748
  [key: string]: string;
@@ -17963,6 +17980,84 @@ export declare namespace discoveryengine_v1beta {
17963
17980
  obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse>): void;
17964
17981
  obtainCrawlRate(params: Params$Resource$Projects$Locations$Obtaincrawlrate, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse>): void;
17965
17982
  obtainCrawlRate(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateResponse>): void;
17983
+ /**
17984
+ * Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.
17985
+ * @example
17986
+ * ```js
17987
+ * // Before running the sample:
17988
+ * // - Enable the API at:
17989
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
17990
+ * // - Login into gcloud by running:
17991
+ * // ```sh
17992
+ * // $ gcloud auth application-default login
17993
+ * // ```
17994
+ * // - Install the npm module by running:
17995
+ * // ```sh
17996
+ * // $ npm install googleapis
17997
+ * // ```
17998
+ *
17999
+ * const {google} = require('googleapis');
18000
+ * const discoveryengine = google.discoveryengine('v1beta');
18001
+ *
18002
+ * async function main() {
18003
+ * const auth = new google.auth.GoogleAuth({
18004
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
18005
+ * scopes: [
18006
+ * 'https://www.googleapis.com/auth/cloud-platform',
18007
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
18008
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
18009
+ * ],
18010
+ * });
18011
+ *
18012
+ * // Acquire an auth client, and bind it to all future calls
18013
+ * const authClient = await auth.getClient();
18014
+ * google.options({auth: authClient});
18015
+ *
18016
+ * // Do the magic
18017
+ * const res = await discoveryengine.projects.locations.provision({
18018
+ * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
18019
+ * name: 'projects/my-project/locations/my-location',
18020
+ *
18021
+ * // Request body metadata
18022
+ * requestBody: {
18023
+ * // request body parameters
18024
+ * // {
18025
+ * // "acceptDataUseTerms": false,
18026
+ * // "dataUseTermsVersion": "my_dataUseTermsVersion",
18027
+ * // "saasParams": {}
18028
+ * // }
18029
+ * },
18030
+ * });
18031
+ * console.log(res.data);
18032
+ *
18033
+ * // Example response
18034
+ * // {
18035
+ * // "done": false,
18036
+ * // "error": {},
18037
+ * // "metadata": {},
18038
+ * // "name": "my_name",
18039
+ * // "response": {}
18040
+ * // }
18041
+ * }
18042
+ *
18043
+ * main().catch(e => {
18044
+ * console.error(e);
18045
+ * throw e;
18046
+ * });
18047
+ *
18048
+ * ```
18049
+ *
18050
+ * @param params - Parameters for request
18051
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
18052
+ * @param callback - Optional callback that handles the response.
18053
+ * @returns A promise if used with async/await, or void if used with a callback.
18054
+ */
18055
+ provision(params: Params$Resource$Projects$Locations$Provision, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
18056
+ provision(params?: Params$Resource$Projects$Locations$Provision, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
18057
+ provision(params: Params$Resource$Projects$Locations$Provision, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
18058
+ provision(params: Params$Resource$Projects$Locations$Provision, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18059
+ provision(params: Params$Resource$Projects$Locations$Provision, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
18060
+ provision(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
17966
18061
  /**
17967
18062
  * Removes the dedicated crawl rate for a craw_rate_scope. If the dedicated crawl rate was set, this will disable vertex AI's crawl bot from using the dedicated crawl rate for crawling. If the dedicated crawl rate was not set, this is a no-op.
17968
18063
  * @example
@@ -18302,6 +18397,16 @@ export declare namespace discoveryengine_v1beta {
18302
18397
  */
18303
18398
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateRequest;
18304
18399
  }
18400
+ export interface Params$Resource$Projects$Locations$Provision extends StandardParameters {
18401
+ /**
18402
+ * Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
18403
+ */
18404
+ name?: string;
18405
+ /**
18406
+ * Request body metadata
18407
+ */
18408
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaProvisionProjectRequest;
18409
+ }
18305
18410
  export interface Params$Resource$Projects$Locations$Removededicatedcrawlrate extends StandardParameters {
18306
18411
  /**
18307
18412
  * Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`
package/build/v1beta.js CHANGED
@@ -302,6 +302,38 @@ var discoveryengine_v1beta;
302
302
  return (0, googleapis_common_1.createAPIRequest)(parameters);
303
303
  }
304
304
  }
305
+ provision(paramsOrCallback, optionsOrCallback, callback) {
306
+ let params = (paramsOrCallback ||
307
+ {});
308
+ let options = (optionsOrCallback || {});
309
+ if (typeof paramsOrCallback === 'function') {
310
+ callback = paramsOrCallback;
311
+ params = {};
312
+ options = {};
313
+ }
314
+ if (typeof optionsOrCallback === 'function') {
315
+ callback = optionsOrCallback;
316
+ options = {};
317
+ }
318
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
319
+ const parameters = {
320
+ options: Object.assign({
321
+ url: (rootUrl + '/v1beta/{+name}:provision').replace(/([^:]\/)\/+/g, '$1'),
322
+ method: 'POST',
323
+ apiVersion: '',
324
+ }, options),
325
+ params,
326
+ requiredParams: ['name'],
327
+ pathParams: ['name'],
328
+ context: this.context,
329
+ };
330
+ if (callback) {
331
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
332
+ }
333
+ else {
334
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
335
+ }
336
+ }
305
337
  removeDedicatedCrawlRate(paramsOrCallback, optionsOrCallback, callback) {
306
338
  let params = (paramsOrCallback ||
307
339
  {});