@@ -185,13 +185,13 @@ export interface CitationMetadata {
185185 citations: Citation [];
186186}
187187
188- // @beta
188+ // @public
189189export interface CodeExecutionResult {
190190 outcome? : Outcome ;
191191 output? : string ;
192192}
193193
194- // @beta
194+ // @public
195195export interface CodeExecutionResultPart {
196196 // (undocumented)
197197 codeExecutionResult? : CodeExecutionResult ;
@@ -283,13 +283,13 @@ export interface ErrorDetails {
283283 reason? : string ;
284284}
285285
286- // @beta
286+ // @public
287287export interface ExecutableCode {
288288 code? : string ;
289289 language? : Language ;
290290}
291291
292- // @beta
292+ // @public
293293export interface ExecutableCodePart {
294294 // (undocumented)
295295 codeExecutionResult? : never ;
@@ -461,8 +461,6 @@ export interface GenerateContentCandidate {
461461 index: number ;
462462 // (undocumented)
463463 safetyRatings? : SafetyRating [];
464- // Warning: (ae-incompatible-release-tags) The symbol "urlContextMetadata" is marked as @public, but its signature references "URLContextMetadata" which is marked as @beta
465- //
466464 // (undocumented)
467465 urlContextMetadata? : URLContextMetadata ;
468466}
@@ -873,13 +871,13 @@ export class IntegerSchema extends Schema {
873871 constructor (schemaParams ? : SchemaParams );
874872}
875873
876- // @beta
874+ // @public
877875export const Language: {
878876 UNSPECIFIED: string ;
879877 PYTHON: string ;
880878};
881879
882- // @beta
880+ // @public
883881export type Language = (typeof Language )[keyof typeof Language ];
884882
885883// @beta
@@ -990,6 +988,7 @@ export const LiveResponseType: {
990988 SERVER_CONTENT: string ;
991989 TOOL_CALL: string ;
992990 TOOL_CALL_CANCELLATION: string ;
991+ GOING_AWAY_NOTICE: string ;
993992};
994993
995994// @beta
@@ -1006,6 +1005,13 @@ export interface LiveServerContent {
10061005 type: ' serverContent' ;
10071006}
10081007
1008+ // @beta
1009+ export interface LiveServerGoingAwayNotice {
1010+ timeLeft: number ;
1011+ // (undocumented)
1012+ type: ' goingAwayNotice' ;
1013+ }
1014+
10091015// @beta
10101016export interface LiveServerToolCall {
10111017 functionCalls: FunctionCall [];
@@ -1027,7 +1033,7 @@ export class LiveSession {
10271033 close(): Promise <void >;
10281034 inConversation: boolean ;
10291035 isClosed: boolean ;
1030- receive(): AsyncGenerator <LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation >;
1036+ receive(): AsyncGenerator <LiveServerContent | LiveServerToolCall | LiveServerToolCallCancellation | LiveServerGoingAwayNotice >;
10311037 send(request : string | Array <string | Part >, turnComplete ? : boolean ): Promise <void >;
10321038 sendAudioRealtime(blob : GenerativeContentBlob ): Promise <void >;
10331039 sendFunctionResponses(functionResponses : FunctionResponse []): Promise <void >;
@@ -1105,20 +1111,17 @@ export interface OnDeviceParams {
11051111 promptOptions? : LanguageModelPromptOptions ;
11061112}
11071113
1108- // @beta
1114+ // @public
11091115export const Outcome: {
11101116 UNSPECIFIED: string ;
11111117 OK: string ;
11121118 FAILED: string ;
11131119 DEADLINE_EXCEEDED: string ;
11141120};
11151121
1116- // @beta
1122+ // @public
11171123export type Outcome = (typeof Outcome )[keyof typeof Outcome ];
11181124
1119- // Warning: (ae-incompatible-release-tags) The symbol "Part" is marked as @public, but its signature references "ExecutableCodePart" which is marked as @beta
1120- // Warning: (ae-incompatible-release-tags) The symbol "Part" is marked as @public, but its signature references "CodeExecutionResultPart" which is marked as @beta
1121- //
11221125// @public
11231126export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart | ExecutableCodePart | CodeExecutionResultPart ;
11241127
@@ -1414,7 +1417,7 @@ export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanS
14141417export interface URLContext {
14151418}
14161419
1417- // @beta
1420+ // @public
14181421export interface URLContextMetadata {
14191422 urlMetadata: URLMetadata [];
14201423}
@@ -1424,13 +1427,13 @@ export interface URLContextTool {
14241427 urlContext: URLContext ;
14251428}
14261429
1427- // @beta
1430+ // @public
14281431export interface URLMetadata {
14291432 retrievedUrl? : string ;
14301433 urlRetrievalStatus? : URLRetrievalStatus ;
14311434}
14321435
1433- // @beta
1436+ // @public
14341437export const URLRetrievalStatus: {
14351438 URL_RETRIEVAL_STATUS_UNSPECIFIED: string ;
14361439 URL_RETRIEVAL_STATUS_SUCCESS: string ;
@@ -1439,11 +1442,13 @@ export const URLRetrievalStatus: {
14391442 URL_RETRIEVAL_STATUS_UNSAFE: string ;
14401443};
14411444
1442- // @beta
1445+ // @public
14431446export type URLRetrievalStatus = (typeof URLRetrievalStatus )[keyof typeof URLRetrievalStatus ];
14441447
14451448// @public
14461449export interface UsageMetadata {
1450+ cachedContentTokenCount? : number ;
1451+ cacheTokensDetails? : ModalityTokenCount [];
14471452 // (undocumented)
14481453 candidatesTokenCount: number ;
14491454 // (undocumented)
0 commit comments