@google/genai 2.11.0 → 2.12.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/dist/genai.d.ts +666 -25
- package/dist/index.cjs +848 -100
- package/dist/index.mjs +848 -100
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +913 -165
- package/dist/node/index.mjs +913 -165
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +666 -25
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +16 -0
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +913 -165
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +666 -25
- package/package.json +1 -1
package/dist/genai.d.ts
CHANGED
|
@@ -286,6 +286,30 @@ declare type Annotation$ = Annotation;
|
|
|
286
286
|
*/
|
|
287
287
|
declare type Annotation = URLCitation | FileCitation | PlaceCitation;
|
|
288
288
|
|
|
289
|
+
declare type AntigravityAgentConfig$ = AntigravityAgentConfig;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @license
|
|
293
|
+
* Copyright 2026 Google LLC
|
|
294
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
295
|
+
*
|
|
296
|
+
* g3-prettier-ignore-file
|
|
297
|
+
*/
|
|
298
|
+
/**
|
|
299
|
+
* Configuration for the Antigravity agent runtime.
|
|
300
|
+
*
|
|
301
|
+
* @remarks
|
|
302
|
+
* Provides server-side control over the agent's execution environment
|
|
303
|
+
* and tool configuration.
|
|
304
|
+
*/
|
|
305
|
+
declare type AntigravityAgentConfig = {
|
|
306
|
+
/**
|
|
307
|
+
* Max total tokens for the agent run.
|
|
308
|
+
*/
|
|
309
|
+
max_total_tokens?: string | undefined;
|
|
310
|
+
type: "antigravity";
|
|
311
|
+
};
|
|
312
|
+
|
|
289
313
|
/** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */
|
|
290
314
|
export declare interface ApiAuth {
|
|
291
315
|
/** The API secret. */
|
|
@@ -1776,6 +1800,47 @@ declare type CodeExecutionResultStep = {
|
|
|
1776
1800
|
type: "code_execution_result";
|
|
1777
1801
|
};
|
|
1778
1802
|
|
|
1803
|
+
declare type CodeMenderAgentConfig$ = CodeMenderAgentConfig;
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* Configuration for the CodeMender agent.
|
|
1807
|
+
*/
|
|
1808
|
+
declare type CodeMenderAgentConfig = {
|
|
1809
|
+
/**
|
|
1810
|
+
* Request parameters specific to FIND sessions, used for discovering
|
|
1811
|
+
*
|
|
1812
|
+
* @remarks
|
|
1813
|
+
* vulnerabilities in a codebase.
|
|
1814
|
+
*/
|
|
1815
|
+
find_request?: FindRequest | undefined;
|
|
1816
|
+
/**
|
|
1817
|
+
* Request parameters specific to FIX sessions, used for generating and
|
|
1818
|
+
*
|
|
1819
|
+
* @remarks
|
|
1820
|
+
* validating security patches.
|
|
1821
|
+
*/
|
|
1822
|
+
fix_request?: FixRequest | undefined;
|
|
1823
|
+
/**
|
|
1824
|
+
* The name of the model to use for the CodeMender agent. One
|
|
1825
|
+
*
|
|
1826
|
+
* @remarks
|
|
1827
|
+
* CodeMender session will only use one model.
|
|
1828
|
+
*/
|
|
1829
|
+
model?: string | undefined;
|
|
1830
|
+
/**
|
|
1831
|
+
* The configuration of CodeMender sessions.
|
|
1832
|
+
*/
|
|
1833
|
+
session_config?: SessionConfig | undefined;
|
|
1834
|
+
/**
|
|
1835
|
+
* Parameter for grouping multiple interactions that belong to
|
|
1836
|
+
*
|
|
1837
|
+
* @remarks
|
|
1838
|
+
* the same CodeMender session.
|
|
1839
|
+
*/
|
|
1840
|
+
session_id?: string | undefined;
|
|
1841
|
+
type: "code-mender";
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1779
1844
|
/** Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API. */
|
|
1780
1845
|
export declare interface CompletionStats {
|
|
1781
1846
|
/** Output only. The number of entities for which any error was encountered. */
|
|
@@ -1917,6 +1982,9 @@ export declare interface ContentEmbeddingStatistics {
|
|
|
1917
1982
|
/** Gemini Enterprise Agent Platform only. Number of tokens of the input text.
|
|
1918
1983
|
*/
|
|
1919
1984
|
tokenCount?: number;
|
|
1985
|
+
/** Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
|
|
1986
|
+
*/
|
|
1987
|
+
tokensDetails?: ModalityTokenCount[];
|
|
1920
1988
|
}
|
|
1921
1989
|
|
|
1922
1990
|
export declare type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];
|
|
@@ -2096,7 +2164,7 @@ declare type CreateAgentInteraction = {
|
|
|
2096
2164
|
/**
|
|
2097
2165
|
* Configuration parameters for the agent interaction.
|
|
2098
2166
|
*/
|
|
2099
|
-
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
|
|
2167
|
+
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
|
|
2100
2168
|
/**
|
|
2101
2169
|
* Safety settings for the interaction.
|
|
2102
2170
|
*/
|
|
@@ -2116,7 +2184,7 @@ declare type CreateAgentInteraction = {
|
|
|
2116
2184
|
/**
|
|
2117
2185
|
* Configuration parameters for the agent interaction.
|
|
2118
2186
|
*/
|
|
2119
|
-
declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
|
|
2187
|
+
declare type CreateAgentInteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
|
|
2120
2188
|
|
|
2121
2189
|
/**
|
|
2122
2190
|
* The environment configuration for the interaction. Can be an object specifying remote environment sources or a string referencing an existing environment ID.
|
|
@@ -2493,16 +2561,6 @@ declare type CreateModelInteraction = {
|
|
|
2493
2561
|
* Configuration parameters for model interactions.
|
|
2494
2562
|
*/
|
|
2495
2563
|
generation_config?: GenerationConfig_2 | undefined;
|
|
2496
|
-
/**
|
|
2497
|
-
* The name of the cached content used as context to serve the prediction.
|
|
2498
|
-
*
|
|
2499
|
-
* @remarks
|
|
2500
|
-
* Note: only used in explicit caching, where users can have control over
|
|
2501
|
-
* caching (e.g. what content to cache) and enjoy guaranteed cost savings.
|
|
2502
|
-
* Format:
|
|
2503
|
-
* `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
|
|
2504
|
-
*/
|
|
2505
|
-
cached_content?: string | undefined;
|
|
2506
2564
|
/**
|
|
2507
2565
|
* Safety settings for the interaction.
|
|
2508
2566
|
*/
|
|
@@ -2578,6 +2636,16 @@ export declare function createPartFromText(text: string): Part;
|
|
|
2578
2636
|
*/
|
|
2579
2637
|
export declare function createPartFromUri(uri: string, mimeType: string, mediaResolution?: PartMediaResolutionLevel): Part;
|
|
2580
2638
|
|
|
2639
|
+
declare type CreateTriggerParams = Omit<CreateTriggerRequest, "body"> & CreateTriggerRequest["body"];
|
|
2640
|
+
|
|
2641
|
+
declare type CreateTriggerRequest = {
|
|
2642
|
+
/**
|
|
2643
|
+
* Which version of the API to use.
|
|
2644
|
+
*/
|
|
2645
|
+
api_version?: string | undefined;
|
|
2646
|
+
body: triggers.TriggerCreateParams;
|
|
2647
|
+
};
|
|
2648
|
+
|
|
2581
2649
|
/** Fine-tuning job creation request - optional fields. */
|
|
2582
2650
|
export declare interface CreateTuningJobConfig {
|
|
2583
2651
|
/** Used to override HTTP request options. */
|
|
@@ -2997,6 +3065,19 @@ export declare interface DeleteResourceJob {
|
|
|
2997
3065
|
error?: JobError;
|
|
2998
3066
|
}
|
|
2999
3067
|
|
|
3068
|
+
declare type DeleteTriggerParams = Omit<DeleteTriggerRequest, "id">;
|
|
3069
|
+
|
|
3070
|
+
declare type DeleteTriggerRequest = {
|
|
3071
|
+
/**
|
|
3072
|
+
* Which version of the API to use.
|
|
3073
|
+
*/
|
|
3074
|
+
api_version?: string | undefined;
|
|
3075
|
+
/**
|
|
3076
|
+
* Resource name of the trigger.
|
|
3077
|
+
*/
|
|
3078
|
+
id: string;
|
|
3079
|
+
};
|
|
3080
|
+
|
|
3000
3081
|
declare type DeleteWebhookParams = Omit<DeleteWebhookRequest, "id">;
|
|
3001
3082
|
|
|
3002
3083
|
declare type DeleteWebhookRequest = {
|
|
@@ -3914,6 +3995,27 @@ declare type FileCitation = {
|
|
|
3914
3995
|
type: "file_citation";
|
|
3915
3996
|
};
|
|
3916
3997
|
|
|
3998
|
+
/**
|
|
3999
|
+
* @license
|
|
4000
|
+
* Copyright 2026 Google LLC
|
|
4001
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4002
|
+
*
|
|
4003
|
+
* g3-prettier-ignore-file
|
|
4004
|
+
*/
|
|
4005
|
+
/**
|
|
4006
|
+
* Content of a single file in the codebase.
|
|
4007
|
+
*/
|
|
4008
|
+
declare type FileContent = {
|
|
4009
|
+
/**
|
|
4010
|
+
* The UTF-8 encoded text content of the file.
|
|
4011
|
+
*/
|
|
4012
|
+
content?: string | undefined;
|
|
4013
|
+
/**
|
|
4014
|
+
* The relative path of the file from the project root.
|
|
4015
|
+
*/
|
|
4016
|
+
path?: string | undefined;
|
|
4017
|
+
};
|
|
4018
|
+
|
|
3917
4019
|
/** URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. */
|
|
3918
4020
|
export declare interface FileData {
|
|
3919
4021
|
/** Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. This field is not supported in Gemini API. */
|
|
@@ -4364,6 +4466,40 @@ declare type Filter = {
|
|
|
4364
4466
|
vector_similarity_threshold?: number | undefined;
|
|
4365
4467
|
};
|
|
4366
4468
|
|
|
4469
|
+
declare type FindRequest$ = FindRequest;
|
|
4470
|
+
|
|
4471
|
+
/**
|
|
4472
|
+
* Request parameters specific to FIND sessions, used for discovering
|
|
4473
|
+
*
|
|
4474
|
+
* @remarks
|
|
4475
|
+
* vulnerabilities in a codebase.
|
|
4476
|
+
*/
|
|
4477
|
+
declare type FindRequest = {
|
|
4478
|
+
/**
|
|
4479
|
+
* Additional context or custom instructions provided by the user to guide
|
|
4480
|
+
*
|
|
4481
|
+
* @remarks
|
|
4482
|
+
* the vulnerability analysis.
|
|
4483
|
+
*/
|
|
4484
|
+
description?: string | undefined;
|
|
4485
|
+
/**
|
|
4486
|
+
* The identifier of a specific finding to verify. This is primarily used in
|
|
4487
|
+
*
|
|
4488
|
+
* @remarks
|
|
4489
|
+
* VERIFY mode to focus the agent's execution-based validation on a single
|
|
4490
|
+
* vulnerability.
|
|
4491
|
+
*/
|
|
4492
|
+
finding_id?: string | undefined;
|
|
4493
|
+
/**
|
|
4494
|
+
* The mode of the find session.
|
|
4495
|
+
*/
|
|
4496
|
+
mode?: Mode | undefined;
|
|
4497
|
+
/**
|
|
4498
|
+
* A list of source files to provide as context for the scan.
|
|
4499
|
+
*/
|
|
4500
|
+
source_files?: Array<FileContent> | undefined;
|
|
4501
|
+
};
|
|
4502
|
+
|
|
4367
4503
|
/** Output only. The reason why the model stopped generating tokens.
|
|
4368
4504
|
|
|
4369
4505
|
If empty, the model has not stopped generating the tokens. */
|
|
@@ -4438,6 +4574,38 @@ export declare enum FinishReason {
|
|
|
4438
4574
|
IMAGE_OTHER = "IMAGE_OTHER"
|
|
4439
4575
|
}
|
|
4440
4576
|
|
|
4577
|
+
declare type FixRequest$ = FixRequest;
|
|
4578
|
+
|
|
4579
|
+
/**
|
|
4580
|
+
* Request parameters specific to FIX sessions, used for generating and
|
|
4581
|
+
*
|
|
4582
|
+
* @remarks
|
|
4583
|
+
* validating security patches.
|
|
4584
|
+
*/
|
|
4585
|
+
declare type FixRequest = {
|
|
4586
|
+
/**
|
|
4587
|
+
* Additional context or custom instructions provided by the user to guide
|
|
4588
|
+
*
|
|
4589
|
+
* @remarks
|
|
4590
|
+
* the patch generation process.
|
|
4591
|
+
*/
|
|
4592
|
+
description?: string | undefined;
|
|
4593
|
+
/**
|
|
4594
|
+
* The identifier of the specific security finding to be remediated. This ID
|
|
4595
|
+
*
|
|
4596
|
+
* @remarks
|
|
4597
|
+
* maps to a previously discovered vulnerability.
|
|
4598
|
+
*/
|
|
4599
|
+
finding_id?: string | undefined;
|
|
4600
|
+
/**
|
|
4601
|
+
* A list of source files providing context for the remediation. These files
|
|
4602
|
+
*
|
|
4603
|
+
* @remarks
|
|
4604
|
+
* are typically the ones containing the identified vulnerability.
|
|
4605
|
+
*/
|
|
4606
|
+
source_files?: Array<FileContent> | undefined;
|
|
4607
|
+
};
|
|
4608
|
+
|
|
4441
4609
|
/** Tuning Spec for Full Fine Tuning. This data type is not supported in Gemini API. */
|
|
4442
4610
|
export declare interface FullFineTuningSpec {
|
|
4443
4611
|
/** Optional. Hyperparameters for Full Fine Tuning. */
|
|
@@ -4728,6 +4896,20 @@ declare class GeminiNextGenInteractions {
|
|
|
4728
4896
|
private getClient;
|
|
4729
4897
|
}
|
|
4730
4898
|
|
|
4899
|
+
declare class GeminiNextGenTriggers {
|
|
4900
|
+
private readonly parentClient;
|
|
4901
|
+
private sdk;
|
|
4902
|
+
constructor(parentClient: GoogleGenAIParentClient);
|
|
4903
|
+
create(params: CreateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4904
|
+
list(params?: ListTriggersParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggersResponse>;
|
|
4905
|
+
get(id: string, params?: GetTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4906
|
+
update(id: string, params: UpdateTriggerParams, options?: GoogleGenAIRequestOptions): Promise<triggers.Trigger>;
|
|
4907
|
+
delete(id: string, params?: DeleteTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<interactions.Empty>;
|
|
4908
|
+
run(trigger_id: string, params?: RunTriggerParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.TriggerExecution>;
|
|
4909
|
+
listExecutions(trigger_id: string, params?: ListTriggerExecutionsParams | null | undefined, options?: GoogleGenAIRequestOptions): Promise<triggers.ListTriggerExecutionsResponse>;
|
|
4910
|
+
private getClient;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4731
4913
|
declare class GeminiNextGenWebhooks {
|
|
4732
4914
|
private readonly parentClient;
|
|
4733
4915
|
private sdk;
|
|
@@ -5691,6 +5873,19 @@ export declare interface GetOperationParameters {
|
|
|
5691
5873
|
config?: GetOperationConfig;
|
|
5692
5874
|
}
|
|
5693
5875
|
|
|
5876
|
+
declare type GetTriggerParams = Omit<GetTriggerRequest, "id">;
|
|
5877
|
+
|
|
5878
|
+
declare type GetTriggerRequest = {
|
|
5879
|
+
/**
|
|
5880
|
+
* Which version of the API to use.
|
|
5881
|
+
*/
|
|
5882
|
+
api_version?: string | undefined;
|
|
5883
|
+
/**
|
|
5884
|
+
* Resource name of the trigger.
|
|
5885
|
+
*/
|
|
5886
|
+
id: string;
|
|
5887
|
+
};
|
|
5888
|
+
|
|
5694
5889
|
/** Optional parameters for tunings.get method. */
|
|
5695
5890
|
export declare interface GetTuningJobConfig {
|
|
5696
5891
|
/** Used to override HTTP request options. */
|
|
@@ -5775,10 +5970,12 @@ export declare class GoogleGenAI {
|
|
|
5775
5970
|
private _webhooks;
|
|
5776
5971
|
private _agents;
|
|
5777
5972
|
private _nextGenClient;
|
|
5973
|
+
private _triggers;
|
|
5778
5974
|
private getNextGenClient;
|
|
5779
5975
|
get interactions(): GeminiNextGenInteractions;
|
|
5780
5976
|
get webhooks(): GeminiNextGenWebhooks;
|
|
5781
5977
|
get agents(): GeminiNextGenAgents;
|
|
5978
|
+
get triggers(): GeminiNextGenTriggers;
|
|
5782
5979
|
constructor(options: GoogleGenAIOptions);
|
|
5783
5980
|
}
|
|
5784
5981
|
|
|
@@ -5873,6 +6070,7 @@ declare interface GoogleGenAIParentClient {
|
|
|
5873
6070
|
getBaseUrl(): string;
|
|
5874
6071
|
getApiVersion(): string;
|
|
5875
6072
|
getDefaultHeaders?(): Record<string, string>;
|
|
6073
|
+
getHeaders?(): Record<string, string> | undefined;
|
|
5876
6074
|
getAuthHeaders(url?: string): Headers | Promise<Headers>;
|
|
5877
6075
|
}
|
|
5878
6076
|
|
|
@@ -6604,6 +6802,16 @@ export declare enum HarmSeverity {
|
|
|
6604
6802
|
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
6605
6803
|
}
|
|
6606
6804
|
|
|
6805
|
+
/** Configuration for history exchange between client and server. */
|
|
6806
|
+
export declare interface HistoryConfig {
|
|
6807
|
+
/** If true, after sending `setup_complete`, the server will wait
|
|
6808
|
+
and at first process `client_content` messages until `turn_complete` is
|
|
6809
|
+
`true`. This initial history will not trigger a model call and
|
|
6810
|
+
may end with model content. After `turn_complete` is `true`, the client
|
|
6811
|
+
can start the realtime conversation via `realtime_input`. */
|
|
6812
|
+
initialHistoryInClientContent?: boolean;
|
|
6813
|
+
}
|
|
6814
|
+
|
|
6607
6815
|
/** The location of the API key. This enum is not supported in Gemini API. */
|
|
6608
6816
|
export declare enum HttpElementLocation {
|
|
6609
6817
|
HTTP_IN_UNSPECIFIED = "HTTP_IN_UNSPECIFIED",
|
|
@@ -7174,20 +7382,10 @@ declare type Interaction = {
|
|
|
7174
7382
|
* Configuration parameters for model interactions.
|
|
7175
7383
|
*/
|
|
7176
7384
|
generation_config?: GenerationConfig_2 | undefined;
|
|
7177
|
-
/**
|
|
7178
|
-
* The name of the cached content used as context to serve the prediction.
|
|
7179
|
-
*
|
|
7180
|
-
* @remarks
|
|
7181
|
-
* Note: only used in explicit caching, where users can have control over
|
|
7182
|
-
* caching (e.g. what content to cache) and enjoy guaranteed cost savings.
|
|
7183
|
-
* Format:
|
|
7184
|
-
* `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
|
|
7185
|
-
*/
|
|
7186
|
-
cached_content?: string | undefined;
|
|
7187
7385
|
/**
|
|
7188
7386
|
* Configuration parameters for the agent interaction.
|
|
7189
7387
|
*/
|
|
7190
|
-
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | undefined;
|
|
7388
|
+
agent_config?: DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig | undefined;
|
|
7191
7389
|
/**
|
|
7192
7390
|
* Safety settings for the interaction.
|
|
7193
7391
|
*/
|
|
@@ -7224,10 +7422,15 @@ declare type Interaction = {
|
|
|
7224
7422
|
output_video?: VideoContent | undefined;
|
|
7225
7423
|
};
|
|
7226
7424
|
|
|
7425
|
+
/**
|
|
7426
|
+
* Required. The interaction request template to be executed.
|
|
7427
|
+
*/
|
|
7428
|
+
declare type Interaction_2 = interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
7429
|
+
|
|
7227
7430
|
/**
|
|
7228
7431
|
* Configuration parameters for the agent interaction.
|
|
7229
7432
|
*/
|
|
7230
|
-
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig;
|
|
7433
|
+
declare type InteractionAgentConfig = DynamicAgentConfig | DeepResearchAgentConfig | CodeMenderAgentConfig | AntigravityAgentConfig;
|
|
7231
7434
|
|
|
7232
7435
|
declare type InteractionCancelParams$ = CancelInteractionByIdParams;
|
|
7233
7436
|
|
|
@@ -7316,12 +7519,15 @@ declare type InteractionResponseFormat = Array<ResponseFormat_2> | ResponseForma
|
|
|
7316
7519
|
export declare namespace Interactions {
|
|
7317
7520
|
export type AllowedTools = AllowedTools$;
|
|
7318
7521
|
export type Annotation = Annotation$;
|
|
7522
|
+
export type AntigravityAgentConfig = AntigravityAgentConfig$;
|
|
7319
7523
|
export type AudioContent = AudioContent$;
|
|
7320
7524
|
export type AudioResponseFormat = AudioResponseFormat$;
|
|
7321
7525
|
export type CodeExecutionCallArguments = CodeExecutionCallArguments$;
|
|
7322
7526
|
export interface CodeExecutionCallStep extends CodeExecutionCallStep$ {
|
|
7323
7527
|
}
|
|
7324
7528
|
export type CodeExecutionResultStep = CodeExecutionResultStep$;
|
|
7529
|
+
export interface CodeMenderAgentConfig extends CodeMenderAgentConfig$ {
|
|
7530
|
+
}
|
|
7325
7531
|
export type Content = Content$;
|
|
7326
7532
|
export type CreateAgentInteractionParamsNonStreaming = CreateAgentInteractionParamsNonStreaming$;
|
|
7327
7533
|
export type CreateAgentInteractionParamsStreaming = CreateAgentInteractionParamsStreaming$;
|
|
@@ -7417,6 +7623,19 @@ export declare namespace Interactions {
|
|
|
7417
7623
|
export namespace CodeExecutionCallStep {
|
|
7418
7624
|
export type Arguments = Arguments$;
|
|
7419
7625
|
}
|
|
7626
|
+
export namespace CodeMenderAgentConfig {
|
|
7627
|
+
export interface FindRequest extends FindRequest$ {
|
|
7628
|
+
}
|
|
7629
|
+
export interface FixRequest extends FixRequest$ {
|
|
7630
|
+
}
|
|
7631
|
+
export type SessionConfig = SessionConfig$;
|
|
7632
|
+
export namespace FindRequest {
|
|
7633
|
+
export type SourceFile = SourceFile$;
|
|
7634
|
+
}
|
|
7635
|
+
export namespace FixRequest {
|
|
7636
|
+
export type SourceFile = SourceFile$2;
|
|
7637
|
+
}
|
|
7638
|
+
}
|
|
7420
7639
|
export namespace Environment {
|
|
7421
7640
|
export type Allowlist = Allowlist$;
|
|
7422
7641
|
export type Source = Source$;
|
|
@@ -7541,6 +7760,7 @@ declare namespace interactions {
|
|
|
7541
7760
|
Transform,
|
|
7542
7761
|
AllowlistEntry,
|
|
7543
7762
|
Annotation,
|
|
7763
|
+
AntigravityAgentConfig,
|
|
7544
7764
|
ArgumentsDelta,
|
|
7545
7765
|
AudioContentMimeType,
|
|
7546
7766
|
AudioContent,
|
|
@@ -7556,6 +7776,7 @@ declare namespace interactions {
|
|
|
7556
7776
|
CodeExecutionResultDelta,
|
|
7557
7777
|
CodeExecutionResultStep,
|
|
7558
7778
|
CodeExecution,
|
|
7779
|
+
CodeMenderAgentConfig,
|
|
7559
7780
|
DisabledSafetyPolicy,
|
|
7560
7781
|
EnvironmentEnum,
|
|
7561
7782
|
ComputerUse_2 as ComputerUse,
|
|
@@ -7585,6 +7806,7 @@ declare namespace interactions {
|
|
|
7585
7806
|
ErrorT,
|
|
7586
7807
|
ExaAISearchConfig,
|
|
7587
7808
|
FileCitation,
|
|
7809
|
+
FileContent,
|
|
7588
7810
|
FileSearchCallDelta,
|
|
7589
7811
|
FileSearchCallStep,
|
|
7590
7812
|
FileSearchResultDelta,
|
|
@@ -7592,6 +7814,9 @@ declare namespace interactions {
|
|
|
7592
7814
|
FileSearchResult,
|
|
7593
7815
|
FileSearch_2 as FileSearch,
|
|
7594
7816
|
Filter,
|
|
7817
|
+
Mode,
|
|
7818
|
+
FindRequest,
|
|
7819
|
+
FixRequest,
|
|
7595
7820
|
FunctionCallStep,
|
|
7596
7821
|
FunctionResultDeltaResult,
|
|
7597
7822
|
FunctionResultDeltaResultUnion,
|
|
@@ -7682,6 +7907,7 @@ declare namespace interactions {
|
|
|
7682
7907
|
Threshold,
|
|
7683
7908
|
SafetySetting_2 as SafetySetting,
|
|
7684
7909
|
ServiceTier_2 as ServiceTier,
|
|
7910
|
+
SessionConfig,
|
|
7685
7911
|
SourceType,
|
|
7686
7912
|
Source,
|
|
7687
7913
|
SpeechConfig_2 as SpeechConfig,
|
|
@@ -8142,6 +8368,99 @@ export declare class ListModelsResponse {
|
|
|
8142
8368
|
models?: Model[];
|
|
8143
8369
|
}
|
|
8144
8370
|
|
|
8371
|
+
declare type ListTriggerExecutionsParams = {
|
|
8372
|
+
api_version?: string;
|
|
8373
|
+
pageSize?: number;
|
|
8374
|
+
pageToken?: string;
|
|
8375
|
+
};
|
|
8376
|
+
|
|
8377
|
+
declare type ListTriggerExecutionsParams_2 = Omit<ListTriggerExecutionsRequest, "trigger_id">;
|
|
8378
|
+
|
|
8379
|
+
declare type ListTriggerExecutionsRequest = {
|
|
8380
|
+
/**
|
|
8381
|
+
* Which version of the API to use.
|
|
8382
|
+
*/
|
|
8383
|
+
api_version?: string | undefined;
|
|
8384
|
+
/**
|
|
8385
|
+
* Resource name of the trigger.
|
|
8386
|
+
*/
|
|
8387
|
+
trigger_id: string;
|
|
8388
|
+
/**
|
|
8389
|
+
* Optional. The maximum number of executions to return per page.
|
|
8390
|
+
*/
|
|
8391
|
+
page_size?: number | undefined;
|
|
8392
|
+
/**
|
|
8393
|
+
* Optional. A page token from a previous ListTriggerExecutions call.
|
|
8394
|
+
*/
|
|
8395
|
+
page_token?: string | undefined;
|
|
8396
|
+
};
|
|
8397
|
+
|
|
8398
|
+
declare type ListTriggerExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
8399
|
+
|
|
8400
|
+
/**
|
|
8401
|
+
* Response message for TriggerService.ListTriggerExecutions.
|
|
8402
|
+
*/
|
|
8403
|
+
declare type ListTriggerExecutionsResponse = {
|
|
8404
|
+
/**
|
|
8405
|
+
* A page token, received from a previous `ListTriggerExecutions` call.
|
|
8406
|
+
*
|
|
8407
|
+
* @remarks
|
|
8408
|
+
* Provide this to retrieve the subsequent page.
|
|
8409
|
+
*/
|
|
8410
|
+
next_page_token?: string | undefined;
|
|
8411
|
+
/**
|
|
8412
|
+
* The list of trigger executions.
|
|
8413
|
+
*/
|
|
8414
|
+
trigger_executions?: Array<TriggerExecution> | undefined;
|
|
8415
|
+
};
|
|
8416
|
+
|
|
8417
|
+
declare type ListTriggersParams = {
|
|
8418
|
+
api_version?: string;
|
|
8419
|
+
filter?: string;
|
|
8420
|
+
pageSize?: number;
|
|
8421
|
+
pageToken?: string;
|
|
8422
|
+
};
|
|
8423
|
+
|
|
8424
|
+
declare type ListTriggersParams_2 = ListTriggersRequest;
|
|
8425
|
+
|
|
8426
|
+
declare type ListTriggersRequest = {
|
|
8427
|
+
/**
|
|
8428
|
+
* Which version of the API to use.
|
|
8429
|
+
*/
|
|
8430
|
+
api_version?: string | undefined;
|
|
8431
|
+
/**
|
|
8432
|
+
* Optional. Filter expression (e.g., by state).
|
|
8433
|
+
*/
|
|
8434
|
+
filter?: string | undefined;
|
|
8435
|
+
/**
|
|
8436
|
+
* Optional. The maximum number of triggers to return per page.
|
|
8437
|
+
*/
|
|
8438
|
+
page_size?: number | undefined;
|
|
8439
|
+
/**
|
|
8440
|
+
* Optional. A page token from a previous ListTriggers call.
|
|
8441
|
+
*/
|
|
8442
|
+
page_token?: string | undefined;
|
|
8443
|
+
};
|
|
8444
|
+
|
|
8445
|
+
declare type ListTriggersResponse$ = ListTriggersResponse;
|
|
8446
|
+
|
|
8447
|
+
/**
|
|
8448
|
+
* Response message for TriggerService.ListTriggers.
|
|
8449
|
+
*/
|
|
8450
|
+
declare type ListTriggersResponse = {
|
|
8451
|
+
/**
|
|
8452
|
+
* A page token, received from a previous `ListTriggers` call.
|
|
8453
|
+
*
|
|
8454
|
+
* @remarks
|
|
8455
|
+
* Provide this to retrieve the subsequent page.
|
|
8456
|
+
*/
|
|
8457
|
+
next_page_token?: string | undefined;
|
|
8458
|
+
/**
|
|
8459
|
+
* The list of triggers.
|
|
8460
|
+
*/
|
|
8461
|
+
triggers?: Array<Trigger> | undefined;
|
|
8462
|
+
};
|
|
8463
|
+
|
|
8145
8464
|
/** Configuration for the list tuning jobs method. */
|
|
8146
8465
|
export declare interface ListTuningJobsConfig {
|
|
8147
8466
|
/** Used to override HTTP request options. */
|
|
@@ -8397,6 +8716,8 @@ export declare interface LiveClientSetup {
|
|
|
8397
8716
|
response.
|
|
8398
8717
|
*/
|
|
8399
8718
|
safetySettings?: SafetySetting[];
|
|
8719
|
+
/** Configures the exchange of history between the client and the server. */
|
|
8720
|
+
historyConfig?: HistoryConfig;
|
|
8400
8721
|
}
|
|
8401
8722
|
|
|
8402
8723
|
/** Client generated response to a `ToolCall` received from the server.
|
|
@@ -9348,6 +9669,11 @@ declare type ModalityTokens = {
|
|
|
9348
9669
|
tokens?: number | undefined;
|
|
9349
9670
|
};
|
|
9350
9671
|
|
|
9672
|
+
/**
|
|
9673
|
+
* The mode of the find session.
|
|
9674
|
+
*/
|
|
9675
|
+
declare type Mode = "scan" | "verify" | (string & {});
|
|
9676
|
+
|
|
9351
9677
|
declare type Model$ = Model_2;
|
|
9352
9678
|
|
|
9353
9679
|
/** A trained machine learning model. */
|
|
@@ -9415,7 +9741,7 @@ export declare interface Model {
|
|
|
9415
9741
|
/**
|
|
9416
9742
|
* The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
|
|
9417
9743
|
*/
|
|
9418
|
-
declare type Model_2 = "gemini-2.5-
|
|
9744
|
+
declare type Model_2 = "gemini-2.5-flash" | "gemini-2.5-pro" | "gemma-4-26b-a4b-it" | "gemma-4-31b-it" | "gemini-flash-latest" | "gemini-flash-lite-latest" | "gemini-pro-latest" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-image" | "gemini-3-flash-preview" | "gemini-3.1-pro-preview" | "gemini-3.1-pro-preview-customtools" | "gemini-3.1-flash-lite" | "gemini-3-pro-image" | "nano-banana-pro-preview" | "gemini-3.1-flash-image" | "gemini-3.5-flash" | "lyria-3-clip-preview" | "lyria-3-pro-preview" | "gemini-robotics-er-1.6-preview" | (string & {});
|
|
9419
9745
|
|
|
9420
9746
|
/** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
|
|
9421
9747
|
export declare interface ModelArmorConfig {
|
|
@@ -11328,6 +11654,19 @@ export declare interface RougeMetricValue {
|
|
|
11328
11654
|
score?: number;
|
|
11329
11655
|
}
|
|
11330
11656
|
|
|
11657
|
+
declare type RunTriggerParams = Omit<RunTriggerRequest, "trigger_id">;
|
|
11658
|
+
|
|
11659
|
+
declare type RunTriggerRequest = {
|
|
11660
|
+
/**
|
|
11661
|
+
* Which version of the API to use.
|
|
11662
|
+
*/
|
|
11663
|
+
api_version?: string | undefined;
|
|
11664
|
+
/**
|
|
11665
|
+
* Resource name of the trigger.
|
|
11666
|
+
*/
|
|
11667
|
+
trigger_id: string;
|
|
11668
|
+
};
|
|
11669
|
+
|
|
11331
11670
|
/** Safety attributes of a GeneratedImage or the user-provided prompt. */
|
|
11332
11671
|
export declare interface SafetyAttributes {
|
|
11333
11672
|
/** List of RAI categories. */
|
|
@@ -11838,6 +12177,28 @@ export declare class Session {
|
|
|
11838
12177
|
close(): void;
|
|
11839
12178
|
}
|
|
11840
12179
|
|
|
12180
|
+
declare type SessionConfig$ = SessionConfig;
|
|
12181
|
+
|
|
12182
|
+
/**
|
|
12183
|
+
* @license
|
|
12184
|
+
* Copyright 2026 Google LLC
|
|
12185
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12186
|
+
*
|
|
12187
|
+
* g3-prettier-ignore-file
|
|
12188
|
+
*/
|
|
12189
|
+
/**
|
|
12190
|
+
* The configuration of CodeMender sessions.
|
|
12191
|
+
*/
|
|
12192
|
+
declare type SessionConfig = {
|
|
12193
|
+
/**
|
|
12194
|
+
* The maximum number of interaction rounds the agent is allowed to perform
|
|
12195
|
+
*
|
|
12196
|
+
* @remarks
|
|
12197
|
+
* before reaching a timeout.
|
|
12198
|
+
*/
|
|
12199
|
+
max_rounds?: number | undefined;
|
|
12200
|
+
};
|
|
12201
|
+
|
|
11841
12202
|
/** Configuration of session resumption mechanism.
|
|
11842
12203
|
|
|
11843
12204
|
Included in `LiveConnectConfig.session_resumption`. If included server
|
|
@@ -11962,6 +12323,10 @@ declare type Source = {
|
|
|
11962
12323
|
type?: SourceType | undefined;
|
|
11963
12324
|
};
|
|
11964
12325
|
|
|
12326
|
+
declare type SourceFile$ = FileContent;
|
|
12327
|
+
|
|
12328
|
+
declare type SourceFile$2 = FileContent;
|
|
12329
|
+
|
|
11965
12330
|
/**
|
|
11966
12331
|
* @license
|
|
11967
12332
|
* Copyright 2026 Google LLC
|
|
@@ -12918,6 +13283,267 @@ export declare interface TranslationConfig {
|
|
|
12918
13283
|
targetLanguageCode?: string;
|
|
12919
13284
|
}
|
|
12920
13285
|
|
|
13286
|
+
declare type Trigger$ = Trigger;
|
|
13287
|
+
|
|
13288
|
+
/**
|
|
13289
|
+
* A trigger configuration that is scheduled to run an agent.
|
|
13290
|
+
*/
|
|
13291
|
+
declare type Trigger = {
|
|
13292
|
+
/**
|
|
13293
|
+
* Output only. The number of consecutive failures that have occurred
|
|
13294
|
+
*
|
|
13295
|
+
* @remarks
|
|
13296
|
+
* since the last successful execution.
|
|
13297
|
+
*/
|
|
13298
|
+
consecutive_failure_count?: number | undefined;
|
|
13299
|
+
/**
|
|
13300
|
+
* Output only. The time when the trigger was created.
|
|
13301
|
+
*/
|
|
13302
|
+
create_time?: string | undefined;
|
|
13303
|
+
/**
|
|
13304
|
+
* Optional. The display name of the trigger.
|
|
13305
|
+
*/
|
|
13306
|
+
display_name?: string | undefined;
|
|
13307
|
+
/**
|
|
13308
|
+
* Optional. The environment ID for the trigger execution.
|
|
13309
|
+
*/
|
|
13310
|
+
environment_id?: string | undefined;
|
|
13311
|
+
/**
|
|
13312
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13313
|
+
*/
|
|
13314
|
+
execution_timeout_seconds?: number | undefined;
|
|
13315
|
+
/**
|
|
13316
|
+
* Required. Output only. Identifier. The ID of the trigger.
|
|
13317
|
+
*/
|
|
13318
|
+
id: string;
|
|
13319
|
+
/**
|
|
13320
|
+
* The Interaction resource.
|
|
13321
|
+
*/
|
|
13322
|
+
interaction: interactions.Interaction;
|
|
13323
|
+
/**
|
|
13324
|
+
* Output only. The time when the trigger was last paused.
|
|
13325
|
+
*/
|
|
13326
|
+
last_pause_time?: string | undefined;
|
|
13327
|
+
/**
|
|
13328
|
+
* Output only. The time when the trigger was last resumed.
|
|
13329
|
+
*/
|
|
13330
|
+
last_resume_time?: string | undefined;
|
|
13331
|
+
/**
|
|
13332
|
+
* Output only. The time when the trigger was last run.
|
|
13333
|
+
*/
|
|
13334
|
+
last_run_time?: string | undefined;
|
|
13335
|
+
/**
|
|
13336
|
+
* Optional. The maximum number of consecutive failures allowed before
|
|
13337
|
+
*
|
|
13338
|
+
* @remarks
|
|
13339
|
+
* the trigger is automatically paused (status becomes ERROR).
|
|
13340
|
+
*/
|
|
13341
|
+
max_consecutive_failures?: number | undefined;
|
|
13342
|
+
/**
|
|
13343
|
+
* Output only. The time when the trigger is scheduled to run next.
|
|
13344
|
+
*/
|
|
13345
|
+
next_run_time?: string | undefined;
|
|
13346
|
+
/**
|
|
13347
|
+
* Output only. The ID of the last interaction created by this trigger.
|
|
13348
|
+
*/
|
|
13349
|
+
previous_interaction_id?: string | undefined;
|
|
13350
|
+
/**
|
|
13351
|
+
* Required. The cron schedule on which the trigger should run.
|
|
13352
|
+
*
|
|
13353
|
+
* @remarks
|
|
13354
|
+
* Standard cron format.
|
|
13355
|
+
*/
|
|
13356
|
+
schedule: string;
|
|
13357
|
+
/**
|
|
13358
|
+
* Output only. The current status of the trigger.
|
|
13359
|
+
*/
|
|
13360
|
+
status?: TriggerStatus | undefined;
|
|
13361
|
+
/**
|
|
13362
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13363
|
+
*/
|
|
13364
|
+
time_zone: string;
|
|
13365
|
+
/**
|
|
13366
|
+
* Output only. The time when the trigger was last updated.
|
|
13367
|
+
*/
|
|
13368
|
+
update_time?: string | undefined;
|
|
13369
|
+
};
|
|
13370
|
+
|
|
13371
|
+
declare type TriggerCreateParams$ = TriggerCreateParams;
|
|
13372
|
+
|
|
13373
|
+
/**
|
|
13374
|
+
* Parameters for creating a trigger.
|
|
13375
|
+
*/
|
|
13376
|
+
declare type TriggerCreateParams = {
|
|
13377
|
+
/**
|
|
13378
|
+
* Required. The cron schedule on which the trigger should run. Standard cron format.
|
|
13379
|
+
*/
|
|
13380
|
+
schedule: string;
|
|
13381
|
+
/**
|
|
13382
|
+
* Required. Time zone in which the schedule should be interpreted.
|
|
13383
|
+
*/
|
|
13384
|
+
time_zone: string;
|
|
13385
|
+
/**
|
|
13386
|
+
* Optional. The display name of the trigger.
|
|
13387
|
+
*/
|
|
13388
|
+
display_name?: string | undefined;
|
|
13389
|
+
/**
|
|
13390
|
+
* Optional. The environment ID for the trigger execution.
|
|
13391
|
+
*/
|
|
13392
|
+
environment_id?: string | undefined;
|
|
13393
|
+
/**
|
|
13394
|
+
* Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR).
|
|
13395
|
+
*/
|
|
13396
|
+
max_consecutive_failures?: number | undefined;
|
|
13397
|
+
/**
|
|
13398
|
+
* Optional. The execution timeout for the triggered interaction.
|
|
13399
|
+
*/
|
|
13400
|
+
execution_timeout_seconds?: number | undefined;
|
|
13401
|
+
/**
|
|
13402
|
+
* Required. The interaction request template to be executed.
|
|
13403
|
+
*/
|
|
13404
|
+
interaction: interactions.CreateAgentInteraction | interactions.CreateModelInteraction;
|
|
13405
|
+
};
|
|
13406
|
+
|
|
13407
|
+
declare type TriggerDeleteParams$ = DeleteTriggerParams;
|
|
13408
|
+
|
|
13409
|
+
declare type TriggerDeleteResponse$ = Empty;
|
|
13410
|
+
|
|
13411
|
+
declare type TriggerExecution$ = TriggerExecution;
|
|
13412
|
+
|
|
13413
|
+
/**
|
|
13414
|
+
* An execution instance of a trigger.
|
|
13415
|
+
*/
|
|
13416
|
+
declare type TriggerExecution = {
|
|
13417
|
+
/**
|
|
13418
|
+
* Output only. The time when the execution finished.
|
|
13419
|
+
*/
|
|
13420
|
+
end_time?: string | undefined;
|
|
13421
|
+
/**
|
|
13422
|
+
* Output only. The environment ID used for the execution.
|
|
13423
|
+
*/
|
|
13424
|
+
environment_id?: string | undefined;
|
|
13425
|
+
/**
|
|
13426
|
+
* Output only. The error message if the execution failed.
|
|
13427
|
+
*/
|
|
13428
|
+
error?: string | undefined;
|
|
13429
|
+
/**
|
|
13430
|
+
* Required. Output only. Identifier. The ID of the trigger execution.
|
|
13431
|
+
*/
|
|
13432
|
+
id: string;
|
|
13433
|
+
/**
|
|
13434
|
+
* Output only. The ID of the interaction created by this execution, if any.
|
|
13435
|
+
*/
|
|
13436
|
+
interaction_id?: string | undefined;
|
|
13437
|
+
/**
|
|
13438
|
+
* Output only. The time when the execution was scheduled to run.
|
|
13439
|
+
*/
|
|
13440
|
+
scheduled_time?: string | undefined;
|
|
13441
|
+
/**
|
|
13442
|
+
* Output only. The time when the execution started.
|
|
13443
|
+
*/
|
|
13444
|
+
start_time?: string | undefined;
|
|
13445
|
+
/**
|
|
13446
|
+
* Output only. The status of the execution.
|
|
13447
|
+
*/
|
|
13448
|
+
status?: TriggerExecutionStatus | undefined;
|
|
13449
|
+
/**
|
|
13450
|
+
* Required. Output only. Identifier. The ID of the trigger that created this execution.
|
|
13451
|
+
*/
|
|
13452
|
+
trigger_id: string;
|
|
13453
|
+
};
|
|
13454
|
+
|
|
13455
|
+
/**
|
|
13456
|
+
* @license
|
|
13457
|
+
* Copyright 2026 Google LLC
|
|
13458
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13459
|
+
*
|
|
13460
|
+
* g3-prettier-ignore-file
|
|
13461
|
+
*/
|
|
13462
|
+
/**
|
|
13463
|
+
* Output only. The status of the execution.
|
|
13464
|
+
*/
|
|
13465
|
+
declare type TriggerExecutionStatus = "in_progress" | "completed" | "failed" | "skipped" | "timed_out" | (string & {});
|
|
13466
|
+
|
|
13467
|
+
declare type TriggerGetParams$ = GetTriggerParams;
|
|
13468
|
+
|
|
13469
|
+
declare type TriggerListExecutionsParams$ = ListTriggerExecutionsParams_2;
|
|
13470
|
+
|
|
13471
|
+
declare type TriggerListExecutionsResponse$ = ListTriggerExecutionsResponse;
|
|
13472
|
+
|
|
13473
|
+
declare type TriggerListParams$ = ListTriggersParams_2;
|
|
13474
|
+
|
|
13475
|
+
declare type TriggerListResponse$ = ListTriggersResponse;
|
|
13476
|
+
|
|
13477
|
+
declare type TriggerRunParams$ = RunTriggerParams;
|
|
13478
|
+
|
|
13479
|
+
export declare namespace Triggers {
|
|
13480
|
+
export type ListTriggerExecutionsResponse = ListTriggerExecutionsResponse$;
|
|
13481
|
+
export type ListTriggersResponse = ListTriggersResponse$;
|
|
13482
|
+
export type Trigger = Trigger$;
|
|
13483
|
+
export type TriggerCreateParams = TriggerCreateParams$;
|
|
13484
|
+
export type TriggerDeleteParams = TriggerDeleteParams$;
|
|
13485
|
+
export type TriggerDeleteResponse = TriggerDeleteResponse$;
|
|
13486
|
+
export type TriggerExecution = TriggerExecution$;
|
|
13487
|
+
export type TriggerGetParams = TriggerGetParams$;
|
|
13488
|
+
export type TriggerListExecutionsParams = TriggerListExecutionsParams$;
|
|
13489
|
+
export type TriggerListExecutionsResponse = TriggerListExecutionsResponse$;
|
|
13490
|
+
export type TriggerListParams = TriggerListParams$;
|
|
13491
|
+
export type TriggerListResponse = TriggerListResponse$;
|
|
13492
|
+
export type TriggerRunParams = TriggerRunParams$;
|
|
13493
|
+
export type TriggerUpdate = TriggerUpdate$;
|
|
13494
|
+
export type TriggerUpdateParams = TriggerUpdateParams$;
|
|
13495
|
+
}
|
|
13496
|
+
|
|
13497
|
+
declare namespace triggers {
|
|
13498
|
+
export {
|
|
13499
|
+
ListTriggerExecutionsResponse,
|
|
13500
|
+
ListTriggersResponse,
|
|
13501
|
+
Interaction_2 as Interaction,
|
|
13502
|
+
TriggerCreateParams,
|
|
13503
|
+
TriggerExecutionStatus,
|
|
13504
|
+
TriggerExecution,
|
|
13505
|
+
TriggerUpdateStatus,
|
|
13506
|
+
TriggerUpdate,
|
|
13507
|
+
TriggerStatus,
|
|
13508
|
+
Trigger
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13511
|
+
|
|
13512
|
+
/**
|
|
13513
|
+
* Output only. The current status of the trigger.
|
|
13514
|
+
*/
|
|
13515
|
+
declare type TriggerStatus = "active" | "paused" | "error" | (string & {});
|
|
13516
|
+
|
|
13517
|
+
declare type TriggerUpdate$ = TriggerUpdate;
|
|
13518
|
+
|
|
13519
|
+
/**
|
|
13520
|
+
* Represents the fields of a Trigger that can be updated.
|
|
13521
|
+
*/
|
|
13522
|
+
declare type TriggerUpdate = {
|
|
13523
|
+
/**
|
|
13524
|
+
* Optional. The display name of the trigger.
|
|
13525
|
+
*/
|
|
13526
|
+
display_name?: string | undefined;
|
|
13527
|
+
/**
|
|
13528
|
+
* Optional. The status of the trigger.
|
|
13529
|
+
*/
|
|
13530
|
+
status?: TriggerUpdateStatus | undefined;
|
|
13531
|
+
};
|
|
13532
|
+
|
|
13533
|
+
declare type TriggerUpdateParams$ = UpdateTriggerParams;
|
|
13534
|
+
|
|
13535
|
+
/**
|
|
13536
|
+
* @license
|
|
13537
|
+
* Copyright 2026 Google LLC
|
|
13538
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
13539
|
+
*
|
|
13540
|
+
* g3-prettier-ignore-file
|
|
13541
|
+
*/
|
|
13542
|
+
/**
|
|
13543
|
+
* Optional. The status of the trigger.
|
|
13544
|
+
*/
|
|
13545
|
+
declare type TriggerUpdateStatus = "active" | "paused" | "error";
|
|
13546
|
+
|
|
12921
13547
|
/** TunedModel for the Tuned Model of a Tuning Job. */
|
|
12922
13548
|
export declare interface TunedModel {
|
|
12923
13549
|
/** Output only. The resource name of the TunedModel.
|
|
@@ -13927,6 +14553,7 @@ declare namespace types {
|
|
|
13927
14553
|
LanguageHints,
|
|
13928
14554
|
AudioTranscriptionConfig,
|
|
13929
14555
|
ProactivityConfig,
|
|
14556
|
+
HistoryConfig,
|
|
13930
14557
|
CustomizedAvatar,
|
|
13931
14558
|
AvatarConfig,
|
|
13932
14559
|
LiveClientSetup,
|
|
@@ -14036,6 +14663,20 @@ export declare interface UpdateModelParameters {
|
|
|
14036
14663
|
config?: UpdateModelConfig;
|
|
14037
14664
|
}
|
|
14038
14665
|
|
|
14666
|
+
declare type UpdateTriggerParams = Omit<UpdateTriggerRequest, "id" | "body"> & UpdateTriggerRequest["body"];
|
|
14667
|
+
|
|
14668
|
+
declare type UpdateTriggerRequest = {
|
|
14669
|
+
/**
|
|
14670
|
+
* Which version of the API to use.
|
|
14671
|
+
*/
|
|
14672
|
+
api_version?: string | undefined;
|
|
14673
|
+
/**
|
|
14674
|
+
* Resource name of the trigger.
|
|
14675
|
+
*/
|
|
14676
|
+
id: string;
|
|
14677
|
+
body: triggers.TriggerUpdate;
|
|
14678
|
+
};
|
|
14679
|
+
|
|
14039
14680
|
declare interface Uploader {
|
|
14040
14681
|
/**
|
|
14041
14682
|
* Uploads a file to the given upload url.
|