@@ -175,13 +175,13 @@ export interface CitationMetadata {
175175    citations:  Citation [];
176176}
177177
178- //  @public 
178+ //  @beta 
179179export  interface  CodeExecutionResult  {
180180    outcome? :  Outcome ;
181181    output? :  string ;
182182}
183183
184- //  @public 
184+ //  @beta 
185185export  interface  CodeExecutionResultPart  {
186186    //  (undocumented)
187187    codeExecutionResult? :  CodeExecutionResult ;
@@ -203,7 +203,7 @@ export interface CodeExecutionResultPart {
203203    thoughtSignature? :  never ;
204204}
205205
206- //  @public 
206+ //  @beta 
207207export  interface  CodeExecutionTool  {
208208    codeExecution:  {};
209209}
@@ -271,13 +271,13 @@ export interface ErrorDetails {
271271    reason? :  string ;
272272}
273273
274- //  @public 
274+ //  @beta 
275275export  interface  ExecutableCode  {
276276    code? :  string ;
277277    language? :  Language ;
278278}
279279
280- //  @public 
280+ //  @beta 
281281export  interface  ExecutableCodePart  {
282282    //  (undocumented)
283283    codeExecutionResult? :  never ;
@@ -449,6 +449,10 @@ export interface GenerateContentCandidate {
449449    index:  number ;
450450    //  (undocumented)
451451    safetyRatings? :  SafetyRating [];
452+     //  Warning: (ae-incompatible-release-tags) The symbol "urlContextMetadata" is marked as @public, but its signature references "URLContextMetadata" which is marked as @beta
453+     // 
454+     //  (undocumented)
455+     urlContextMetadata? :  URLContextMetadata ;
452456}
453457
454458//  @public
@@ -549,7 +553,7 @@ export function getAI(app?: FirebaseApp, options?: AIOptions): AI;
549553//  @public
550554export  function  getGenerativeModel(ai :  AI , modelParams :  ModelParams  |  HybridParams , requestOptions ? :  RequestOptions ):  GenerativeModel ;
551555
552- //  @beta 
556+ //  @public 
553557export  function  getImagenModel(ai :  AI , modelParams :  ImagenModelParams , requestOptions ? :  RequestOptions ):  ImagenModel ;
554558
555559//  @beta
@@ -600,6 +604,8 @@ export interface GoogleAIGenerateContentCandidate {
600604    index:  number ;
601605    //  (undocumented)
602606    safetyRatings? :  SafetyRating [];
607+     //  (undocumented)
608+     urlContextMetadata? :  URLContextMetadata ;
603609}
604610
605611//  Warning: (ae-internal-missing-underscore) The name "GoogleAIGenerateContentResponse" should be prefixed with an underscore because the declaration is marked as @internal
@@ -706,7 +712,7 @@ export interface HybridParams {
706712    onDeviceParams? :  OnDeviceParams ;
707713}
708714
709- //  @beta 
715+ //  @public 
710716export const :  {
711717    readonly  SQUARE:  " 1:1" 
712718    readonly  LANDSCAPE_3x4:  " 3:4" 
@@ -715,16 +721,16 @@ export const ImagenAspectRatio: {
715721    readonly  PORTRAIT_9x16:  " 9:16" 
716722};
717723
718- //  @beta 
724+ //  @public 
719725export  type  ImagenAspectRatio  =  (typeof  ImagenAspectRatio )[keyof  typeof  ImagenAspectRatio ];
720726
721- //  @beta 
727+ //  @public 
722728export  interface  ImagenGCSImage  {
723729    gcsURI:  string ;
724730    mimeType:  string ;
725731}
726732
727- //  @beta 
733+ //  @public 
728734export  interface  ImagenGenerationConfig  {
729735    addWatermark? :  boolean ;
730736    aspectRatio? :  ImagenAspectRatio ;
@@ -733,27 +739,27 @@ export interface ImagenGenerationConfig {
733739    numberOfImages? :  number ;
734740}
735741
736- //  @beta 
742+ //  @public 
737743export  interface  ImagenGenerationResponse <T  extends  ImagenInlineImage  |  ImagenGCSImage > {
738744    filteredReason? :  string ;
739745    images:  T [];
740746}
741747
742- //  @beta 
748+ //  @public 
743749export  class  ImagenImageFormat  {
744750    compressionQuality? :  number ;
745751    static  jpeg(compressionQuality ? :  number ):  ImagenImageFormat ;
746752    mimeType:  string ;
747753    static  png():  ImagenImageFormat ;
748754}
749755
750- //  @beta 
756+ //  @public 
751757export  interface  ImagenInlineImage  {
752758    bytesBase64Encoded:  string ;
753759    mimeType:  string ;
754760}
755761
756- //  @beta 
762+ //  @public 
757763export  class  ImagenModel  extends  AIModel  {
758764    constructor (ai :  AI , modelParams :  ImagenModelParams , requestOptions ? :  RequestOptions  |  undefined );
759765    generateImages(prompt :  string ):  Promise <ImagenGenerationResponse <ImagenInlineImage >>;
@@ -765,35 +771,35 @@ export class ImagenModel extends AIModel {
765771    safetySettings? :  ImagenSafetySettings ;
766772}
767773
768- //  @beta 
774+ //  @public 
769775export  interface  ImagenModelParams  {
770776    generationConfig? :  ImagenGenerationConfig ;
771777    model:  string ;
772778    safetySettings? :  ImagenSafetySettings ;
773779}
774780
775- //  @beta 
781+ //  @public 
776782export const :  {
777783    readonly  BLOCK_ALL:  " dont_allow" 
778784    readonly  ALLOW_ADULT:  " allow_adult" 
779785    readonly  ALLOW_ALL:  " allow_all" 
780786};
781787
782- //  @beta 
788+ //  @public 
783789export  type  ImagenPersonFilterLevel  =  (typeof  ImagenPersonFilterLevel )[keyof  typeof  ImagenPersonFilterLevel ];
784790
785- //  @beta 
791+ //  @public 
786792export const :  {
787793    readonly  BLOCK_LOW_AND_ABOVE:  " block_low_and_above" 
788794    readonly  BLOCK_MEDIUM_AND_ABOVE:  " block_medium_and_above" 
789795    readonly  BLOCK_ONLY_HIGH:  " block_only_high" 
790796    readonly  BLOCK_NONE:  " block_none" 
791797};
792798
793- //  @beta 
799+ //  @public 
794800export  type  ImagenSafetyFilterLevel  =  (typeof  ImagenSafetyFilterLevel )[keyof  typeof  ImagenSafetyFilterLevel ];
795801
796- //  @beta 
802+ //  @public 
797803export  interface  ImagenSafetySettings  {
798804    personFilterLevel? :  ImagenPersonFilterLevel ;
799805    safetyFilterLevel? :  ImagenSafetyFilterLevel ;
@@ -836,13 +842,13 @@ export class IntegerSchema extends Schema {
836842    constructor (schemaParams ? :  SchemaParams );
837843}
838844
839- //  @public 
845+ //  @beta 
840846export const :  {
841847    UNSPECIFIED:  string ;
842848    PYTHON:  string ;
843849};
844850
845- //  @public 
851+ //  @beta 
846852export  type  Language  =  (typeof  Language )[keyof  typeof  Language ];
847853
848854//  @beta
@@ -988,6 +994,7 @@ export class LiveSession {
988994    isClosed:  boolean ;
989995    receive():  AsyncGenerator <LiveServerContent  |  LiveServerToolCall  |  LiveServerToolCallCancellation >;
990996    send(request :  string  |  Array <string  |  Part >, turnComplete ? :  boolean ):  Promise <void >;
997+     sendFunctionResponses(functionResponses :  FunctionResponse []):  Promise <void >;
991998    sendMediaChunks(mediaChunks :  GenerativeContentBlob []):  Promise <void >;
992999    sendMediaStream(mediaChunkStream :  ReadableStream <GenerativeContentBlob >):  Promise <void >;
9931000    }
@@ -1058,17 +1065,20 @@ export interface OnDeviceParams {
10581065    promptOptions? :  LanguageModelPromptOptions ;
10591066}
10601067
1061- //  @public 
1068+ //  @beta 
10621069export const :  {
10631070    UNSPECIFIED:  string ;
10641071    OK:  string ;
10651072    FAILED:  string ;
10661073    DEADLINE_EXCEEDED:  string ;
10671074};
10681075
1069- //  @public 
1076+ //  @beta 
10701077export  type  Outcome  =  (typeof  Outcome )[keyof  typeof  Outcome ];
10711078
1079+ //  Warning: (ae-incompatible-release-tags) The symbol "Part" is marked as @public, but its signature references "ExecutableCodePart" which is marked as @beta
1080+ //  Warning: (ae-incompatible-release-tags) The symbol "Part" is marked as @public, but its signature references "CodeExecutionResultPart" which is marked as @beta
1081+ // 
10721082//  @public
10731083export  type  Part  =  TextPart  |  InlineDataPart  |  FunctionCallPart  |  FunctionResponsePart  |  FileDataPart  |  ExecutableCodePart  |  CodeExecutionResultPart ;
10741084
@@ -1254,7 +1264,7 @@ export function startAudioConversation(liveSession: LiveSession, options?: Start
12541264
12551265//  @beta
12561266export  interface  StartAudioConversationOptions  {
1257-     functionCallingHandler? :  (functionCalls :  LiveServerToolCall [ ' functionCalls ' =>  Promise <Part >;
1267+     functionCallingHandler? :  (functionCalls :  FunctionCall [ ]) =>  Promise <FunctionResponse >;
12581268}
12591269
12601270//  @public
@@ -1304,8 +1314,11 @@ export interface ThinkingConfig {
13041314    thinkingBudget? :  number ;
13051315}
13061316
1317+ //  Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "CodeExecutionTool" which is marked as @beta
1318+ //  Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "URLContextTool" which is marked as @beta
1319+ // 
13071320//  @public
1308- export  type  Tool  =  FunctionDeclarationsTool  |  GoogleSearchTool  |  CodeExecutionTool ;
1321+ export  type  Tool  =  FunctionDeclarationsTool  |  GoogleSearchTool  |  CodeExecutionTool   |   URLContextTool ;
13091322
13101323//  @public
13111324export  interface  ToolConfig  {
@@ -1316,6 +1329,38 @@ export interface ToolConfig {
13161329//  @public
13171330export  type  TypedSchema  =  IntegerSchema  |  NumberSchema  |  StringSchema  |  BooleanSchema  |  ObjectSchema  |  ArraySchema  |  AnyOfSchema ;
13181331
1332+ //  @beta
1333+ export  interface  URLContext  {
1334+ }
1335+ 
1336+ //  @beta
1337+ export  interface  URLContextMetadata  {
1338+     urlMetadata:  URLMetadata [];
1339+ }
1340+ 
1341+ //  @beta
1342+ export  interface  URLContextTool  {
1343+     urlContext:  URLContext ;
1344+ }
1345+ 
1346+ //  @beta
1347+ export  interface  URLMetadata  {
1348+     retrievedUrl? :  string ;
1349+     urlRetrievalStatus? :  URLRetrievalStatus ;
1350+ }
1351+ 
1352+ //  @beta
1353+ export const :  {
1354+     URL_RETRIEVAL_STATUS_UNSPECIFIED:  string ;
1355+     URL_RETRIEVAL_STATUS_SUCCESS:  string ;
1356+     URL_RETRIEVAL_STATUS_ERROR:  string ;
1357+     URL_RETRIEVAL_STATUS_PAYWALL:  string ;
1358+     URL_RETRIEVAL_STATUS_UNSAFE:  string ;
1359+ };
1360+ 
1361+ //  @beta
1362+ export  type  URLRetrievalStatus  =  (typeof  URLRetrievalStatus )[keyof  typeof  URLRetrievalStatus ];
1363+ 
13191364//  @public
13201365export  interface  UsageMetadata  {
13211366    //  (undocumented)
@@ -1327,6 +1372,8 @@ export interface UsageMetadata {
13271372    //  (undocumented)
13281373    promptTokensDetails? :  ModalityTokenCount [];
13291374    thoughtsTokenCount? :  number ;
1375+     toolUsePromptTokenCount? :  number ;
1376+     toolUsePromptTokensDetails? :  ModalityTokenCount [];
13301377    //  (undocumented)
13311378    totalTokenCount:  number ;
13321379}
0 commit comments