Skip to content

Commit 25df22a

Browse files
yoshi-automationfeywind
authored andcommitted
feat(firebaseml): update the API
#### firebaseml:v2beta The following keys were added: - schemas.GoogleCloudAiplatformV1beta1FunctionResponse.properties.parts.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponse.properties.parts.items.$ref - schemas.GoogleCloudAiplatformV1beta1FunctionResponse.properties.parts.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.id - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.data.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.data.format - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.data.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.displayName.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.displayName.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.mimeType.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.properties.mimeType.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseBlob.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.id - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.displayName.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.displayName.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.fileUri.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.fileUri.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.mimeType.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.properties.mimeType.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponseFileData.type - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.id - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.properties.fileData.$ref - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.properties.fileData.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.properties.inlineData.$ref - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.properties.inlineData.description - schemas.GoogleCloudAiplatformV1beta1FunctionResponsePart.type - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.description - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.id - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.properties.speakerVoiceConfigs.description - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.properties.speakerVoiceConfigs.items.$ref - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.properties.speakerVoiceConfigs.type - schemas.GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig.type - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.description - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.id - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.properties.speaker.description - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.properties.speaker.type - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.properties.voiceConfig.$ref - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.properties.voiceConfig.description - schemas.GoogleCloudAiplatformV1beta1SpeakerVoiceConfig.type - schemas.GoogleCloudAiplatformV1beta1SpeechConfig.properties.multiSpeakerVoiceConfig.$ref - schemas.GoogleCloudAiplatformV1beta1SpeechConfig.properties.multiSpeakerVoiceConfig.description - schemas.GoogleCloudAiplatformV1beta1Tool.properties.computerUse.$ref - schemas.GoogleCloudAiplatformV1beta1Tool.properties.computerUse.description - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.description - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.id - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.environment.description - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.environment.enum - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.environment.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.environment.type - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.excludedPredefinedFunctions.description - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.excludedPredefinedFunctions.items.type - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.properties.excludedPredefinedFunctions.type - schemas.GoogleCloudAiplatformV1beta1ToolComputerUse.type
1 parent e7b0e7f commit 25df22a

File tree

2 files changed

+219
-1
lines changed

2 files changed

+219
-1
lines changed

discovery/firebaseml-v2beta.json

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
}
207207
}
208208
},
209-
"revision": "20250930",
209+
"revision": "20251005",
210210
"rootUrl": "https://firebaseml.googleapis.com/",
211211
"schemas": {
212212
"Date": {
@@ -949,6 +949,13 @@
949949
"description": "Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].",
950950
"type": "string"
951951
},
952+
"parts": {
953+
"description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.",
954+
"items": {
955+
"$ref": "GoogleCloudAiplatformV1beta1FunctionResponsePart"
956+
},
957+
"type": "array"
958+
},
952959
"response": {
953960
"additionalProperties": {
954961
"description": "Properties of the object.",
@@ -960,6 +967,60 @@
960967
},
961968
"type": "object"
962969
},
970+
"GoogleCloudAiplatformV1beta1FunctionResponseBlob": {
971+
"description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.",
972+
"id": "GoogleCloudAiplatformV1beta1FunctionResponseBlob",
973+
"properties": {
974+
"data": {
975+
"description": "Required. Raw bytes.",
976+
"format": "byte",
977+
"type": "string"
978+
},
979+
"displayName": {
980+
"description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.",
981+
"type": "string"
982+
},
983+
"mimeType": {
984+
"description": "Required. The IANA standard MIME type of the source data.",
985+
"type": "string"
986+
}
987+
},
988+
"type": "object"
989+
},
990+
"GoogleCloudAiplatformV1beta1FunctionResponseFileData": {
991+
"description": "URI based data for function response.",
992+
"id": "GoogleCloudAiplatformV1beta1FunctionResponseFileData",
993+
"properties": {
994+
"displayName": {
995+
"description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.",
996+
"type": "string"
997+
},
998+
"fileUri": {
999+
"description": "Required. URI.",
1000+
"type": "string"
1001+
},
1002+
"mimeType": {
1003+
"description": "Required. The IANA standard MIME type of the source data.",
1004+
"type": "string"
1005+
}
1006+
},
1007+
"type": "object"
1008+
},
1009+
"GoogleCloudAiplatformV1beta1FunctionResponsePart": {
1010+
"description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
1011+
"id": "GoogleCloudAiplatformV1beta1FunctionResponsePart",
1012+
"properties": {
1013+
"fileData": {
1014+
"$ref": "GoogleCloudAiplatformV1beta1FunctionResponseFileData",
1015+
"description": "URI based data."
1016+
},
1017+
"inlineData": {
1018+
"$ref": "GoogleCloudAiplatformV1beta1FunctionResponseBlob",
1019+
"description": "Inline media bytes."
1020+
}
1021+
},
1022+
"type": "object"
1023+
},
9631024
"GoogleCloudAiplatformV1beta1GenerateContentRequest": {
9641025
"description": "Request message for [PredictionService.GenerateContent].",
9651026
"id": "GoogleCloudAiplatformV1beta1GenerateContentRequest",
@@ -1775,6 +1836,20 @@
17751836
},
17761837
"type": "object"
17771838
},
1839+
"GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig": {
1840+
"description": "Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct voices in a single synthesis request.",
1841+
"id": "GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig",
1842+
"properties": {
1843+
"speakerVoiceConfigs": {
1844+
"description": "Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.",
1845+
"items": {
1846+
"$ref": "GoogleCloudAiplatformV1beta1SpeakerVoiceConfig"
1847+
},
1848+
"type": "array"
1849+
}
1850+
},
1851+
"type": "object"
1852+
},
17781853
"GoogleCloudAiplatformV1beta1Part": {
17791854
"description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.",
17801855
"id": "GoogleCloudAiplatformV1beta1Part",
@@ -2421,6 +2496,21 @@
24212496
},
24222497
"type": "object"
24232498
},
2499+
"GoogleCloudAiplatformV1beta1SpeakerVoiceConfig": {
2500+
"description": "Configuration for a single speaker in a multi speaker setup.",
2501+
"id": "GoogleCloudAiplatformV1beta1SpeakerVoiceConfig",
2502+
"properties": {
2503+
"speaker": {
2504+
"description": "Required. The name of the speaker. This should be the same as the speaker name used in the prompt.",
2505+
"type": "string"
2506+
},
2507+
"voiceConfig": {
2508+
"$ref": "GoogleCloudAiplatformV1beta1VoiceConfig",
2509+
"description": "Required. The configuration for the voice of this speaker."
2510+
}
2511+
},
2512+
"type": "object"
2513+
},
24242514
"GoogleCloudAiplatformV1beta1SpeechConfig": {
24252515
"description": "The speech generation config.",
24262516
"id": "GoogleCloudAiplatformV1beta1SpeechConfig",
@@ -2429,6 +2519,10 @@
24292519
"description": "Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.",
24302520
"type": "string"
24312521
},
2522+
"multiSpeakerVoiceConfig": {
2523+
"$ref": "GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig",
2524+
"description": "The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`."
2525+
},
24322526
"voiceConfig": {
24332527
"$ref": "GoogleCloudAiplatformV1beta1VoiceConfig",
24342528
"description": "The configuration for the speaker to use."
@@ -2444,6 +2538,10 @@
24442538
"$ref": "GoogleCloudAiplatformV1beta1ToolCodeExecution",
24452539
"description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation."
24462540
},
2541+
"computerUse": {
2542+
"$ref": "GoogleCloudAiplatformV1beta1ToolComputerUse",
2543+
"description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations."
2544+
},
24472545
"enterpriseWebSearch": {
24482546
"$ref": "GoogleCloudAiplatformV1beta1EnterpriseWebSearch",
24492547
"description": "Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance."
@@ -2485,6 +2583,32 @@
24852583
"properties": {},
24862584
"type": "object"
24872585
},
2586+
"GoogleCloudAiplatformV1beta1ToolComputerUse": {
2587+
"description": "Tool to support computer use.",
2588+
"id": "GoogleCloudAiplatformV1beta1ToolComputerUse",
2589+
"properties": {
2590+
"environment": {
2591+
"description": "Required. The environment being operated.",
2592+
"enum": [
2593+
"ENVIRONMENT_UNSPECIFIED",
2594+
"ENVIRONMENT_BROWSER"
2595+
],
2596+
"enumDescriptions": [
2597+
"Defaults to browser.",
2598+
"Operates in a web browser."
2599+
],
2600+
"type": "string"
2601+
},
2602+
"excludedPredefinedFunctions": {
2603+
"description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.",
2604+
"items": {
2605+
"type": "string"
2606+
},
2607+
"type": "array"
2608+
}
2609+
},
2610+
"type": "object"
2611+
},
24882612
"GoogleCloudAiplatformV1beta1ToolConfig": {
24892613
"description": "Tool config. This config is shared for all tools provided in the request.",
24902614
"id": "GoogleCloudAiplatformV1beta1ToolConfig",

src/apis/firebaseml/v2beta.ts

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,62 @@ export namespace firebaseml_v2beta {
606606
* Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
607607
*/
608608
name?: string | null;
609+
/**
610+
* Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
611+
*/
612+
parts?: Schema$GoogleCloudAiplatformV1beta1FunctionResponsePart[];
609613
/**
610614
* Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
611615
*/
612616
response?: {[key: string]: any} | null;
613617
}
618+
/**
619+
* Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.
620+
*/
621+
export interface Schema$GoogleCloudAiplatformV1beta1FunctionResponseBlob {
622+
/**
623+
* Required. Raw bytes.
624+
*/
625+
data?: string | null;
626+
/**
627+
* Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
628+
*/
629+
displayName?: string | null;
630+
/**
631+
* Required. The IANA standard MIME type of the source data.
632+
*/
633+
mimeType?: string | null;
634+
}
635+
/**
636+
* URI based data for function response.
637+
*/
638+
export interface Schema$GoogleCloudAiplatformV1beta1FunctionResponseFileData {
639+
/**
640+
* Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.
641+
*/
642+
displayName?: string | null;
643+
/**
644+
* Required. URI.
645+
*/
646+
fileUri?: string | null;
647+
/**
648+
* Required. The IANA standard MIME type of the source data.
649+
*/
650+
mimeType?: string | null;
651+
}
652+
/**
653+
* A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.
654+
*/
655+
export interface Schema$GoogleCloudAiplatformV1beta1FunctionResponsePart {
656+
/**
657+
* URI based data.
658+
*/
659+
fileData?: Schema$GoogleCloudAiplatformV1beta1FunctionResponseFileData;
660+
/**
661+
* Inline media bytes.
662+
*/
663+
inlineData?: Schema$GoogleCloudAiplatformV1beta1FunctionResponseBlob;
664+
}
614665
/**
615666
* Request message for [PredictionService.GenerateContent].
616667
*/
@@ -1166,6 +1217,15 @@ export namespace firebaseml_v2beta {
11661217
*/
11671218
responseTemplateName?: string | null;
11681219
}
1220+
/**
1221+
* Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct voices in a single synthesis request.
1222+
*/
1223+
export interface Schema$GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig {
1224+
/**
1225+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided.
1226+
*/
1227+
speakerVoiceConfigs?: Schema$GoogleCloudAiplatformV1beta1SpeakerVoiceConfig[];
1228+
}
11691229
/**
11701230
* A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.
11711231
*/
@@ -1558,6 +1618,19 @@ export namespace firebaseml_v2beta {
15581618
*/
15591619
text?: string | null;
15601620
}
1621+
/**
1622+
* Configuration for a single speaker in a multi speaker setup.
1623+
*/
1624+
export interface Schema$GoogleCloudAiplatformV1beta1SpeakerVoiceConfig {
1625+
/**
1626+
* Required. The name of the speaker. This should be the same as the speaker name used in the prompt.
1627+
*/
1628+
speaker?: string | null;
1629+
/**
1630+
* Required. The configuration for the voice of this speaker.
1631+
*/
1632+
voiceConfig?: Schema$GoogleCloudAiplatformV1beta1VoiceConfig;
1633+
}
15611634
/**
15621635
* The speech generation config.
15631636
*/
@@ -1566,6 +1639,10 @@ export namespace firebaseml_v2beta {
15661639
* Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization.
15671640
*/
15681641
languageCode?: string | null;
1642+
/**
1643+
* The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`.
1644+
*/
1645+
multiSpeakerVoiceConfig?: Schema$GoogleCloudAiplatformV1beta1MultiSpeakerVoiceConfig;
15691646
/**
15701647
* The configuration for the speaker to use.
15711648
*/
@@ -1579,6 +1656,10 @@ export namespace firebaseml_v2beta {
15791656
* Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
15801657
*/
15811658
codeExecution?: Schema$GoogleCloudAiplatformV1beta1ToolCodeExecution;
1659+
/**
1660+
* Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.
1661+
*/
1662+
computerUse?: Schema$GoogleCloudAiplatformV1beta1ToolComputerUse;
15821663
/**
15831664
* Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance.
15841665
*/
@@ -1612,6 +1693,19 @@ export namespace firebaseml_v2beta {
16121693
* Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool.
16131694
*/
16141695
export interface Schema$GoogleCloudAiplatformV1beta1ToolCodeExecution {}
1696+
/**
1697+
* Tool to support computer use.
1698+
*/
1699+
export interface Schema$GoogleCloudAiplatformV1beta1ToolComputerUse {
1700+
/**
1701+
* Required. The environment being operated.
1702+
*/
1703+
environment?: string | null;
1704+
/**
1705+
* Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.
1706+
*/
1707+
excludedPredefinedFunctions?: string[] | null;
1708+
}
16151709
/**
16161710
* Tool config. This config is shared for all tools provided in the request.
16171711
*/

0 commit comments

Comments
 (0)