Skip to content

Commit b8b9b91

Browse files
chore: update AI config with missing API
1 parent f03b43b commit b8b9b91

1 file changed

Lines changed: 100 additions & 0 deletions

File tree

  • .github/scripts/compare-types/configs

.github/scripts/compare-types/configs/ai.ts

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,81 @@ const config: PackageConfig = {
106106
reason:
107107
'RN Firebase schema-builder does not currently expose the `anyOf` helper class, so union-schema composition is not part of the public RN AI API.',
108108
},
109+
{
110+
name: 'ContextWindowCompressionConfig',
111+
reason:
112+
'RN Firebase live sessions do not currently expose JS SDK context-window compression controls.',
113+
},
114+
{
115+
name: 'GoogleMaps',
116+
reason:
117+
'Google Maps grounding/tool support is not currently part of the public RN Firebase AI API.',
118+
},
119+
{
120+
name: 'GoogleMapsGroundingChunk',
121+
reason:
122+
'RN Firebase grounding metadata currently exposes web grounding chunks only and does not surface Google Maps grounding chunks.',
123+
},
124+
{
125+
name: 'GoogleMapsTool',
126+
reason:
127+
'RN Firebase tools do not currently expose the JS SDK Google Maps grounding tool.',
128+
},
129+
{
130+
name: 'ImageConfig',
131+
reason:
132+
'RN Firebase generation config does not currently expose the JS SDK image generation configuration surface.',
133+
},
134+
{
135+
name: 'ImageConfigAspectRatio',
136+
reason:
137+
'RN Firebase does not currently expose JS SDK image generation aspect-ratio presets in the public AI types.',
138+
},
139+
{
140+
name: 'ImageConfigImageSize',
141+
reason:
142+
'RN Firebase does not currently expose JS SDK image generation size presets in the public AI types.',
143+
},
144+
{
145+
name: 'LatLng',
146+
reason:
147+
'Coordinate typing is only used by the JS SDK Google Maps grounding surface, which RN Firebase does not currently expose.',
148+
},
109149
{
110150
name: 'LiveServerGoingAwayNotice',
111151
reason:
112152
'RN Firebase live sessions do not currently surface the server `goingAwayNotice` message type in the public API.',
113153
},
154+
{
155+
name: 'LiveSessionResumptionUpdate',
156+
reason:
157+
'RN Firebase live sessions do not currently surface JS SDK session-resumption update messages in the public API.',
158+
},
114159
{
115160
name: 'ObjectSchemaRequest',
116161
reason:
117162
'RN Firebase exposes `ObjectSchemaInterface` for schema helper typing, but does not separately export the raw request-shape `ObjectSchemaRequest` type.',
118163
},
164+
{
165+
name: 'RetrievalConfig',
166+
reason:
167+
'RN Firebase tool configuration does not currently expose the JS SDK retrieval configuration surface.',
168+
},
169+
{
170+
name: 'SessionResumptionConfig',
171+
reason:
172+
'RN Firebase live model connection APIs do not currently expose JS SDK session-resumption configuration.',
173+
},
119174
{
120175
name: 'SingleRequestOptions',
121176
reason:
122177
'RN Firebase does not currently expose per-call request overrides such as `AbortSignal`; requests are configured via model-level `RequestOptions` only.',
123178
},
179+
{
180+
name: 'SlidingWindow',
181+
reason:
182+
'Sliding-window compression is part of the JS SDK context-window compression surface, which RN Firebase does not currently expose.',
183+
},
124184
{
125185
name: 'ChatSessionBase',
126186
reason:
@@ -151,6 +211,11 @@ const config: PackageConfig = {
151211
reason:
152212
'Template tool unions are part of firebase-js-sdk template tooling that RN Firebase does not currently expose.',
153213
},
214+
{
215+
name: 'TemplateToolConfig',
216+
reason:
217+
'Template tool configuration is part of the JS SDK template tooling surface, which RN Firebase does not currently expose.',
218+
},
154219
{
155220
name: 'ThinkingLevel',
156221
reason:
@@ -195,6 +260,11 @@ const config: PackageConfig = {
195260
reason:
196261
'RN Firebase does not expose `inferenceSource` because hybrid on-device / in-cloud inference is a browser-only feature.',
197262
},
263+
{
264+
name: 'FinishReason',
265+
reason:
266+
'RN Firebase currently exposes the earlier finish-reason enum subset and does not surface the newer JS SDK image, language, tool-call, thought-signature, and malformed-response finish reasons.',
267+
},
198268
{
199269
name: 'Citation',
200270
reason:
@@ -225,6 +295,16 @@ const config: PackageConfig = {
225295
reason:
226296
'RN Firebase function responses omit the optional `parts` field from the JS SDK declaration and only expose the structured response payload.',
227297
},
298+
{
299+
name: 'GroundingChunk',
300+
reason:
301+
'RN Firebase grounding chunks do not currently include the JS SDK Google Maps grounding variant.',
302+
},
303+
{
304+
name: 'GroundingMetadata',
305+
reason:
306+
'RN Firebase grounding metadata does not currently surface Google Maps widget context tokens from the JS SDK API.',
307+
},
228308
{
229309
name: 'GenerationConfig',
230310
reason:
@@ -240,6 +320,16 @@ const config: PackageConfig = {
240320
reason:
241321
'RN Firebase Imagen model requests do not currently accept per-call `SingleRequestOptions`, so request overrides are limited to model-level `RequestOptions`.',
242322
},
323+
{
324+
name: 'LiveGenerationConfig',
325+
reason:
326+
'RN Firebase live generation config does not currently expose JS SDK context-window compression settings.',
327+
},
328+
{
329+
name: 'LiveGenerativeModel',
330+
reason:
331+
'RN Firebase live model connections do not currently accept JS SDK session-resumption configuration.',
332+
},
243333
{
244334
name: 'LiveResponseType',
245335
reason:
@@ -290,6 +380,16 @@ const config: PackageConfig = {
290380
reason:
291381
'RN Firebase thinking config supports `thinkingBudget` and `includeThoughts`, but does not currently expose the JS SDK `thinkingLevel` preset field.',
292382
},
383+
{
384+
name: 'Tool',
385+
reason:
386+
'RN Firebase tools do not currently include the JS SDK Google Maps grounding tool variant.',
387+
},
388+
{
389+
name: 'ToolConfig',
390+
reason:
391+
'RN Firebase tool config currently exposes function calling config only and omits the JS SDK retrieval config field.',
392+
},
293393
{
294394
name: 'TypedSchema',
295395
reason:

0 commit comments

Comments
 (0)