feat(ai): Deprecate Google Maps Grounding enableWidget (#10035)

### Discussion

Marks the `enableWidget` field of the `GoogleMaps` interface as deprecated.

### Testing

None.

### API Changes

See `Discussion` above.
This commit is contained in:
DellaBitta
2026-06-16 10:47:02 -04:00
committed by GitHub
parent 4a1d1910c4
commit dd03437dbb
4 changed files with 18 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@firebase/ai': patch
---
Deprecated `GoogleMaps.enableWidget`, following the announcement by the Grounding for Google Maps service.
+1 -1
View File
@@ -699,7 +699,7 @@ export interface GoogleAIGenerateContentResponse {
// @public
export interface GoogleMaps {
// (undocumented)
// @deprecated (undocumented)
enableWidget?: boolean;
}
+7
View File
@@ -26,6 +26,13 @@ export interface GoogleMaps
## GoogleMaps.enableWidget
> Warning: This API is now obsolete.
>
> The `enableWidget` feature has been deprecated by the Grounding for Google Maps service.
>
> If true, include the widget context token in the response.
>
<b>Signature:</b>
```typescript
+5 -2
View File
@@ -556,8 +556,11 @@ export interface GoogleSearch {}
* @public
*/
export interface GoogleMaps {
/*
* If true, include the widget context token in the response.
/**
* @deprecated The `enableWidget` feature has been deprecated by the Grounding for Google Maps
* service.
*
* If true, include the widget context token in the response.
*/
enableWidget?: boolean;
}