@@ -18,16 +18,16 @@ export class ArraySchema extends Schema {
1818 toJSON(): SchemaRequest ;
1919}
2020
21- // @public (undocumented)
21+ // @public
2222export type Backend = GoogleAIBackend | VertexAIBackend ;
2323
24- // @public (undocumented)
24+ // @public
2525export const BackendType: {
2626 readonly VERTEX_AI: " VERTEX_AI" ;
2727 readonly GOOGLE_AI: " GOOGLE_AI" ;
2828};
2929
30- // @public (undocumented)
30+ // @public
3131export type BackendType = (typeof BackendType )[keyof typeof BackendType ];
3232
3333// @public
@@ -254,25 +254,20 @@ export interface FunctionResponsePart {
254254// @public
255255export interface GenAI {
256256 app: FirebaseApp ;
257- // (undocumented)
258257 backend: Backend ;
259- // @deprecated (undocumented)
258+ // @deprecated
260259 location: string ;
261260}
262261
263262// @public
264- class GenAIError extends FirebaseError {
263+ export class GenAIError extends FirebaseError {
265264 constructor (code : GenAIErrorCode , message : string , customErrorData ? : CustomErrorData | undefined );
266265 // (undocumented)
267266 readonly code: GenAIErrorCode ;
268267 // (undocumented)
269268 readonly customErrorData? : CustomErrorData | undefined ;
270269}
271270
272- export { GenAIError }
273-
274- export { GenAIError as VertexAIError }
275-
276271// @public
277272const enum GenAIErrorCode {
278273 API_NOT_ENABLED = " api-not-enabled" ,
@@ -295,7 +290,7 @@ export { GenAIErrorCode }
295290export { GenAIErrorCode as VertexAIErrorCode }
296291
297292// @public
298- abstract class GenAIModel {
293+ export abstract class GenAIModel {
299294 // @internal
300295 protected constructor (genAI : GenAI , modelName : string );
301296 // @internal (undocumented)
@@ -305,13 +300,8 @@ abstract class GenAIModel {
305300 static normalizeModelName(modelName : string , backendType : BackendType ): string ;
306301 }
307302
308- export { GenAIModel }
309-
310- export { GenAIModel as VertexAIModel }
311-
312- // @public (undocumented)
303+ // @public
313304export interface GenAIOptions {
314- // (undocumented)
315305 backend: Backend ;
316306}
317307
@@ -431,12 +421,12 @@ export function getImagenModel(genAI: GenAI, modelParams: ImagenModelParams, req
431421// @public
432422export function getVertexAI(app ? : FirebaseApp , options ? : VertexAIOptions ): VertexAI ;
433423
434- // @public (undocumented)
424+ // @public
435425export type GoogleAIBackend = {
436426 backendType: typeof BackendType .GOOGLE_AI ;
437427};
438428
439- // @public (undocumented)
429+ // @public
440430export function googleAIBackend(): GoogleAIBackend ;
441431
442432// @public @deprecated (undocumented)
@@ -601,9 +591,6 @@ export interface InlineDataPart {
601591 videoMetadata? : VideoMetadata ;
602592}
603593
604- // @public (undocumented)
605- export type InstanceIdentifier = Backend ;
606-
607594// @public
608595export class IntegerSchema extends Schema {
609596 constructor (schemaParams ? : SchemaParams );
@@ -871,15 +858,21 @@ export interface UsageMetadata {
871858// @public (undocumented)
872859export type VertexAI = GenAI ;
873860
874- // @public (undocumented)
861+ // @public
875862export type VertexAIBackend = {
876863 backendType: typeof BackendType .VERTEX_AI ;
877864 location: string ;
878865};
879866
880- // @public (undocumented)
867+ // @public
881868export function vertexAIBackend(location ? : string ): VertexAIBackend ;
882869
870+ // @public
871+ export const VertexAIError: typeof GenAIError ;
872+
873+ // @public
874+ export const VertexAIModel: typeof GenAIModel ;
875+
883876// @public
884877export interface VertexAIOptions {
885878 // (undocumented)
0 commit comments