@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/build/v1alpha.d.ts
CHANGED
|
@@ -6372,6 +6372,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
6372
6372
|
* Name of the newly generated or continued session.
|
|
6373
6373
|
*/
|
|
6374
6374
|
session?: string | null;
|
|
6375
|
+
/**
|
|
6376
|
+
* 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\}
|
|
6377
|
+
*/
|
|
6378
|
+
taskName?: string | null;
|
|
6375
6379
|
}
|
|
6376
6380
|
/**
|
|
6377
6381
|
* Response message for SiteSearchEngineService.FetchDomainVerificationStatus method.
|
|
@@ -12560,6 +12564,10 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
12560
12564
|
* 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.
|
|
12561
12565
|
*/
|
|
12562
12566
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo {
|
|
12567
|
+
/**
|
|
12568
|
+
* 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`.
|
|
12569
|
+
*/
|
|
12570
|
+
autoModelId?: string | null;
|
|
12563
12571
|
/**
|
|
12564
12572
|
* 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`.
|
|
12565
12573
|
*/
|
|
@@ -36101,6 +36109,7 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36101
36109
|
context: APIRequestContext;
|
|
36102
36110
|
files: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files;
|
|
36103
36111
|
operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations;
|
|
36112
|
+
toolCalls: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls;
|
|
36104
36113
|
constructor(context: APIRequestContext);
|
|
36105
36114
|
/**
|
|
36106
36115
|
* Creates an Agent.
|
|
@@ -36807,6 +36816,92 @@ export declare namespace discoveryengine_v1alpha {
|
|
|
36807
36816
|
*/
|
|
36808
36817
|
name?: string;
|
|
36809
36818
|
}
|
|
36819
|
+
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls {
|
|
36820
|
+
context: APIRequestContext;
|
|
36821
|
+
operations: Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations;
|
|
36822
|
+
constructor(context: APIRequestContext);
|
|
36823
|
+
}
|
|
36824
|
+
export class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations {
|
|
36825
|
+
context: APIRequestContext;
|
|
36826
|
+
constructor(context: APIRequestContext);
|
|
36827
|
+
/**
|
|
36828
|
+
* 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.
|
|
36829
|
+
* @example
|
|
36830
|
+
* ```js
|
|
36831
|
+
* // Before running the sample:
|
|
36832
|
+
* // - Enable the API at:
|
|
36833
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
36834
|
+
* // - Login into gcloud by running:
|
|
36835
|
+
* // ```sh
|
|
36836
|
+
* // $ gcloud auth application-default login
|
|
36837
|
+
* // ```
|
|
36838
|
+
* // - Install the npm module by running:
|
|
36839
|
+
* // ```sh
|
|
36840
|
+
* // $ npm install googleapis
|
|
36841
|
+
* // ```
|
|
36842
|
+
*
|
|
36843
|
+
* const {google} = require('googleapis');
|
|
36844
|
+
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
36845
|
+
*
|
|
36846
|
+
* async function main() {
|
|
36847
|
+
* const auth = new google.auth.GoogleAuth({
|
|
36848
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
36849
|
+
* scopes: [
|
|
36850
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
36851
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
36852
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
36853
|
+
* ],
|
|
36854
|
+
* });
|
|
36855
|
+
*
|
|
36856
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
36857
|
+
* const authClient = await auth.getClient();
|
|
36858
|
+
* google.options({auth: authClient});
|
|
36859
|
+
*
|
|
36860
|
+
* // Do the magic
|
|
36861
|
+
* const res =
|
|
36862
|
+
* await discoveryengine.projects.locations.collections.engines.assistants.agents.toolCalls.operations.get(
|
|
36863
|
+
* {
|
|
36864
|
+
* // The name of the operation resource.
|
|
36865
|
+
* 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',
|
|
36866
|
+
* },
|
|
36867
|
+
* );
|
|
36868
|
+
* console.log(res.data);
|
|
36869
|
+
*
|
|
36870
|
+
* // Example response
|
|
36871
|
+
* // {
|
|
36872
|
+
* // "done": false,
|
|
36873
|
+
* // "error": {},
|
|
36874
|
+
* // "metadata": {},
|
|
36875
|
+
* // "name": "my_name",
|
|
36876
|
+
* // "response": {}
|
|
36877
|
+
* // }
|
|
36878
|
+
* }
|
|
36879
|
+
*
|
|
36880
|
+
* main().catch(e => {
|
|
36881
|
+
* console.error(e);
|
|
36882
|
+
* throw e;
|
|
36883
|
+
* });
|
|
36884
|
+
*
|
|
36885
|
+
* ```
|
|
36886
|
+
*
|
|
36887
|
+
* @param params - Parameters for request
|
|
36888
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
36889
|
+
* @param callback - Optional callback that handles the response.
|
|
36890
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
36891
|
+
*/
|
|
36892
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
36893
|
+
get(params?: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
36894
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
36895
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
36896
|
+
get(params: Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
36897
|
+
get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
36898
|
+
}
|
|
36899
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations$Get extends StandardParameters {
|
|
36900
|
+
/**
|
|
36901
|
+
* The name of the operation resource.
|
|
36902
|
+
*/
|
|
36903
|
+
name?: string;
|
|
36904
|
+
}
|
|
36810
36905
|
export class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
|
|
36811
36906
|
context: APIRequestContext;
|
|
36812
36907
|
constructor(context: APIRequestContext);
|
package/build/v1alpha.js
CHANGED
|
@@ -6174,12 +6174,15 @@ var discoveryengine_v1alpha;
|
|
|
6174
6174
|
context;
|
|
6175
6175
|
files;
|
|
6176
6176
|
operations;
|
|
6177
|
+
toolCalls;
|
|
6177
6178
|
constructor(context) {
|
|
6178
6179
|
this.context = context;
|
|
6179
6180
|
this.files =
|
|
6180
6181
|
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Files(this.context);
|
|
6181
6182
|
this.operations =
|
|
6182
6183
|
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations(this.context);
|
|
6184
|
+
this.toolCalls =
|
|
6185
|
+
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls(this.context);
|
|
6183
6186
|
}
|
|
6184
6187
|
create(paramsOrCallback, optionsOrCallback, callback) {
|
|
6185
6188
|
let params = (paramsOrCallback ||
|
|
@@ -6428,6 +6431,56 @@ var discoveryengine_v1alpha;
|
|
|
6428
6431
|
}
|
|
6429
6432
|
}
|
|
6430
6433
|
discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations = Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Operations;
|
|
6434
|
+
class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls {
|
|
6435
|
+
context;
|
|
6436
|
+
operations;
|
|
6437
|
+
constructor(context) {
|
|
6438
|
+
this.context = context;
|
|
6439
|
+
this.operations =
|
|
6440
|
+
new Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations(this.context);
|
|
6441
|
+
}
|
|
6442
|
+
}
|
|
6443
|
+
discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls = Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls;
|
|
6444
|
+
class Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations {
|
|
6445
|
+
context;
|
|
6446
|
+
constructor(context) {
|
|
6447
|
+
this.context = context;
|
|
6448
|
+
}
|
|
6449
|
+
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
6450
|
+
let params = (paramsOrCallback ||
|
|
6451
|
+
{});
|
|
6452
|
+
let options = (optionsOrCallback || {});
|
|
6453
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6454
|
+
callback = paramsOrCallback;
|
|
6455
|
+
params =
|
|
6456
|
+
{};
|
|
6457
|
+
options = {};
|
|
6458
|
+
}
|
|
6459
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6460
|
+
callback = optionsOrCallback;
|
|
6461
|
+
options = {};
|
|
6462
|
+
}
|
|
6463
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
6464
|
+
const parameters = {
|
|
6465
|
+
options: Object.assign({
|
|
6466
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6467
|
+
method: 'GET',
|
|
6468
|
+
apiVersion: '',
|
|
6469
|
+
}, options),
|
|
6470
|
+
params,
|
|
6471
|
+
requiredParams: ['name'],
|
|
6472
|
+
pathParams: ['name'],
|
|
6473
|
+
context: this.context,
|
|
6474
|
+
};
|
|
6475
|
+
if (callback) {
|
|
6476
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
6477
|
+
}
|
|
6478
|
+
else {
|
|
6479
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
6480
|
+
}
|
|
6481
|
+
}
|
|
6482
|
+
}
|
|
6483
|
+
discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations = Resource$Projects$Locations$Collections$Engines$Assistants$Agents$Toolcalls$Operations;
|
|
6431
6484
|
class Resource$Projects$Locations$Collections$Engines$Assistants$Cannedqueries {
|
|
6432
6485
|
context;
|
|
6433
6486
|
constructor(context) {
|