@googleapis/discoveryengine 37.2.0 → 37.3.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/CHANGELOG.md +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +8 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +95 -0
- package/build/v1alpha.js +53 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +4 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +8 -0
- package/v1alpha.ts +189 -0
- package/v1beta.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/discoveryengine",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.3.0",
|
|
4
4
|
"description": "discoveryengine",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
"ts-loader": "^9.0.0",
|
|
39
39
|
"typescript": "5.7.3",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack-cli": "^7.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/v1.ts
CHANGED
|
@@ -14068,6 +14068,10 @@ export namespace discoveryengine_v1 {
|
|
|
14068
14068
|
* Name of the newly generated or continued session.
|
|
14069
14069
|
*/
|
|
14070
14070
|
session?: string | null;
|
|
14071
|
+
/**
|
|
14072
|
+
* Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format: projects/{project\}/locations/{location\}/tasks/{task_id\}
|
|
14073
|
+
*/
|
|
14074
|
+
taskName?: string | null;
|
|
14071
14075
|
}
|
|
14072
14076
|
/**
|
|
14073
14077
|
* Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.
|
|
@@ -18328,6 +18332,10 @@ export namespace discoveryengine_v1 {
|
|
|
18328
18332
|
* The resolved, server-side view of model selector configuration for the end-user. The backend computes this per-request by applying, in order: Mendel flag evaluation, regional availability rules based on the engine's location, and admin-panel overrides from `model_configs`. The backend is the single source of truth for this configuration; clients should render `resolved_models` directly in the model selector dropdown, in the order provided, without applying their own filtering, ordering, or localization.
|
|
18329
18333
|
*/
|
|
18330
18334
|
export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo {
|
|
18335
|
+
/**
|
|
18336
|
+
* Output only. The `model_id` a client must send when the end-user picks the "Auto" entry (the empty `model_id`). Populated only for surfaces known to have no true "Auto" mode, where leaving the model unset would fall back to a platform default rather than a backend-chosen model. Empty on every other surface, where "Auto" is resolved server-side, and when none of the surface's ranked models is available. When set, it is always one of the non-empty `model_id`s present in `resolved_models`.
|
|
18337
|
+
*/
|
|
18338
|
+
autoModelId?: string | null;
|
|
18331
18339
|
/**
|
|
18332
18340
|
* Output only. The `model_id` of the model that should be selected by default in the model selector when the end-user has not made an explicit choice. The value is always one of the `model_id`s present in `resolved_models`.
|
|
18333
18341
|
*/
|
package/v1alpha.ts
CHANGED
|
@@ -6344,6 +6344,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
6344
6344
|
* Name of the newly generated or continued session.
|
|
6345
6345
|
*/
|
|
6346
6346
|
session?: string | null;
|
|
6347
|
+
/**
|
|
6348
|
+
* Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format: projects/{project\}/locations/{location\}/tasks/{task_id\}
|
|
6349
|
+
*/
|
|
6350
|
+
taskName?: string | null;
|
|
6347
6351
|
}
|
|
6348
6352
|
/**
|
|
6349
6353
|
* Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.
|
|
@@ -12478,6 +12482,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
12478
12482
|
* The resolved, server-side view of model selector configuration for the end-user. The backend computes this per-request by applying, in order: Mendel flag evaluation, regional availability rules based on the engine's location, and admin-panel overrides from `model_configs`. The backend is the single source of truth for this configuration; clients should render `resolved_models` directly in the model selector dropdown, in the order provided, without applying their own filtering, ordering, or localization.
|
|
12479
12483
|
*/
|
|
12480
12484
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo {
|
|
12485
|
+
/**
|
|
12486
|
+
* Output only. The `model_id` a client must send when the end-user picks the "Auto" entry (the empty `model_id`). Populated only for surfaces known to have no true "Auto" mode, where leaving the model unset would fall back to a platform default rather than a backend-chosen model. Empty on every other surface, where "Auto" is resolved server-side, and when none of the surface's ranked models is available. When set, it is always one of the non-empty `model_id`s present in `resolved_models`.
|
|
12487
|
+
*/
|
|
12488
|
+
autoModelId?: string | null;
|
|
12481
12489
|
/**
|
|
12482
12490
|
* Output only. The `model_id` of the model that should be selected by default in the model selector when the end-user has not made an explicit choice. The value is always one of the `model_id`s present in `resolved_models`.
|
|
12483
12491
|
*/
|
|
@@ -51026,6 +51034,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
51026
51034
|
context: APIRequestContext;
|
|
51027
51035
|
files: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files;
|
|
51028
51036
|
operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations;
|
|
51037
|
+
toolCalls: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls;
|
|
51029
51038
|
constructor(context: APIRequestContext) {
|
|
51030
51039
|
this.context = context;
|
|
51031
51040
|
this.files =
|
|
@@ -51036,6 +51045,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
51036
51045
|
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations(
|
|
51037
51046
|
this.context
|
|
51038
51047
|
);
|
|
51048
|
+
this.toolCalls =
|
|
51049
|
+
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls(
|
|
51050
|
+
this.context
|
|
51051
|
+
);
|
|
51039
51052
|
}
|
|
51040
51053
|
|
|
51041
51054
|
/**
|
|
@@ -52352,6 +52365,182 @@ export namespace discoveryengine_v1alpha {
|
|
|
52352
52365
|
name?: string;
|
|
52353
52366
|
}
|
|
52354
52367
|
|
|
52368
|
+
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls {
|
|
52369
|
+
context: APIRequestContext;
|
|
52370
|
+
operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations;
|
|
52371
|
+
constructor(context: APIRequestContext) {
|
|
52372
|
+
this.context = context;
|
|
52373
|
+
this.operations =
|
|
52374
|
+
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations(
|
|
52375
|
+
this.context
|
|
52376
|
+
);
|
|
52377
|
+
}
|
|
52378
|
+
}
|
|
52379
|
+
|
|
52380
|
+
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations {
|
|
52381
|
+
context: APIRequestContext;
|
|
52382
|
+
constructor(context: APIRequestContext) {
|
|
52383
|
+
this.context = context;
|
|
52384
|
+
}
|
|
52385
|
+
|
|
52386
|
+
/**
|
|
52387
|
+
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
|
52388
|
+
* @example
|
|
52389
|
+
* ```js
|
|
52390
|
+
* // Before running the sample:
|
|
52391
|
+
* // - Enable the API at:
|
|
52392
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
52393
|
+
* // - Login into gcloud by running:
|
|
52394
|
+
* // ```sh
|
|
52395
|
+
* // $ gcloud auth application-default login
|
|
52396
|
+
* // ```
|
|
52397
|
+
* // - Install the npm module by running:
|
|
52398
|
+
* // ```sh
|
|
52399
|
+
* // $ npm install googleapis
|
|
52400
|
+
* // ```
|
|
52401
|
+
*
|
|
52402
|
+
* const {google} = require('googleapis');
|
|
52403
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
52404
|
+
*
|
|
52405
|
+
* async function main() {
|
|
52406
|
+
* const auth = new google.auth.GoogleAuth({
|
|
52407
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
52408
|
+
* scopes: [
|
|
52409
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
52410
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
52411
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
52412
|
+
* ],
|
|
52413
|
+
* });
|
|
52414
|
+
*
|
|
52415
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
52416
|
+
* const authClient = await auth.getClient();
|
|
52417
|
+
* google.options({auth: authClient});
|
|
52418
|
+
*
|
|
52419
|
+
* // Do the magic
|
|
52420
|
+
* const res =
|
|
52421
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.agents.toolCalls.operations.get(
|
|
52422
|
+
* {
|
|
52423
|
+
* // The name of the operation resource.
|
|
52424
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/assistants/my-assistant/agents/my-agent/toolCalls/my-toolCall/operations/my-operation',
|
|
52425
|
+
* },
|
|
52426
|
+
* );
|
|
52427
|
+
* console.log(res.data);
|
|
52428
|
+
*
|
|
52429
|
+
* // Example response
|
|
52430
|
+
* // {
|
|
52431
|
+
* // "done": false,
|
|
52432
|
+
* // "error": {},
|
|
52433
|
+
* // "metadata": {},
|
|
52434
|
+
* // "name": "my_name",
|
|
52435
|
+
* // "response": {}
|
|
52436
|
+
* // }
|
|
52437
|
+
* }
|
|
52438
|
+
*
|
|
52439
|
+
* main().catch(e => {
|
|
52440
|
+
* console.error(e);
|
|
52441
|
+
* throw e;
|
|
52442
|
+
* });
|
|
52443
|
+
*
|
|
52444
|
+
* ```
|
|
52445
|
+
*
|
|
52446
|
+
* @param params - Parameters for request
|
|
52447
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
52448
|
+
* @param callback - Optional callback that handles the response.
|
|
52449
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
52450
|
+
*/
|
|
52451
|
+
get(
|
|
52452
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get,
|
|
52453
|
+
options: StreamMethodOptions
|
|
52454
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
52455
|
+
get(
|
|
52456
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get,
|
|
52457
|
+
options?: MethodOptions
|
|
52458
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
52459
|
+
get(
|
|
52460
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get,
|
|
52461
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
52462
|
+
callback: BodyResponseCallback<Readable>
|
|
52463
|
+
): void;
|
|
52464
|
+
get(
|
|
52465
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get,
|
|
52466
|
+
options:
|
|
52467
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
52468
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52469
|
+
): void;
|
|
52470
|
+
get(
|
|
52471
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get,
|
|
52472
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52473
|
+
): void;
|
|
52474
|
+
get(
|
|
52475
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52476
|
+
): void;
|
|
52477
|
+
get(
|
|
52478
|
+
paramsOrCallback?:
|
|
52479
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get
|
|
52480
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52481
|
+
| BodyResponseCallback<Readable>,
|
|
52482
|
+
optionsOrCallback?:
|
|
52483
|
+
| MethodOptions
|
|
52484
|
+
| StreamMethodOptions
|
|
52485
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52486
|
+
| BodyResponseCallback<Readable>,
|
|
52487
|
+
callback?:
|
|
52488
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
52489
|
+
| BodyResponseCallback<Readable>
|
|
52490
|
+
):
|
|
52491
|
+
| void
|
|
52492
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
52493
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
52494
|
+
let params = (paramsOrCallback ||
|
|
52495
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get;
|
|
52496
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
52497
|
+
|
|
52498
|
+
if (typeof paramsOrCallback === 'function') {
|
|
52499
|
+
callback = paramsOrCallback;
|
|
52500
|
+
params =
|
|
52501
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get;
|
|
52502
|
+
options = {};
|
|
52503
|
+
}
|
|
52504
|
+
|
|
52505
|
+
if (typeof optionsOrCallback === 'function') {
|
|
52506
|
+
callback = optionsOrCallback;
|
|
52507
|
+
options = {};
|
|
52508
|
+
}
|
|
52509
|
+
|
|
52510
|
+
const rootUrl =
|
|
52511
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
52512
|
+
const parameters = {
|
|
52513
|
+
options: Object.assign(
|
|
52514
|
+
{
|
|
52515
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
52516
|
+
method: 'GET',
|
|
52517
|
+
apiVersion: '',
|
|
52518
|
+
},
|
|
52519
|
+
options
|
|
52520
|
+
),
|
|
52521
|
+
params,
|
|
52522
|
+
requiredParams: ['name'],
|
|
52523
|
+
pathParams: ['name'],
|
|
52524
|
+
context: this.context,
|
|
52525
|
+
};
|
|
52526
|
+
if (callback) {
|
|
52527
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
52528
|
+
parameters,
|
|
52529
|
+
callback as BodyResponseCallback<unknown>
|
|
52530
|
+
);
|
|
52531
|
+
} else {
|
|
52532
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
52533
|
+
}
|
|
52534
|
+
}
|
|
52535
|
+
}
|
|
52536
|
+
|
|
52537
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get extends StandardParameters {
|
|
52538
|
+
/**
|
|
52539
|
+
* The name of the operation resource.
|
|
52540
|
+
*/
|
|
52541
|
+
name?: string;
|
|
52542
|
+
}
|
|
52543
|
+
|
|
52355
52544
|
export class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
|
|
52356
52545
|
context: APIRequestContext;
|
|
52357
52546
|
constructor(context: APIRequestContext) {
|
package/v1beta.ts
CHANGED
|
@@ -10376,6 +10376,10 @@ export namespace discoveryengine_v1beta {
|
|
|
10376
10376
|
* Name of the newly generated or continued session.
|
|
10377
10377
|
*/
|
|
10378
10378
|
session?: string | null;
|
|
10379
|
+
/**
|
|
10380
|
+
* Optional. The full resource name of the Sobi task if the conversation was handled by a long-running agent task. Format: projects/{project\}/locations/{location\}/tasks/{task_id\}
|
|
10381
|
+
*/
|
|
10382
|
+
taskName?: string | null;
|
|
10379
10383
|
}
|
|
10380
10384
|
/**
|
|
10381
10385
|
* Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.
|