|
6 | 6 |
|
7 | 7 | import { AppCheckTokenResult } from '@firebase/app-check-interop-types';
|
8 | 8 | import { FirebaseApp } from '@firebase/app';
|
| 9 | +import { FirebaseAuthTokenData } from '@firebase/auth-interop-types'; |
9 | 10 |
|
10 | 11 | // @public
|
11 | 12 | export interface BaseParams {
|
@@ -101,6 +102,28 @@ export interface EnhancedGenerateContentResponse extends GenerateContentResponse
|
101 | 102 | text: () => string;
|
102 | 103 | }
|
103 | 104 |
|
| 105 | +// @public |
| 106 | +export interface FileData { |
| 107 | + // (undocumented) |
| 108 | + fileUri: string; |
| 109 | + // (undocumented) |
| 110 | + mimeType: string; |
| 111 | +} |
| 112 | + |
| 113 | +// @public |
| 114 | +export interface FileDataPart { |
| 115 | + // (undocumented) |
| 116 | + fileData: FileData; |
| 117 | + // (undocumented) |
| 118 | + functionCall?: never; |
| 119 | + // (undocumented) |
| 120 | + functionResponse?: never; |
| 121 | + // (undocumented) |
| 122 | + inlineData?: never; |
| 123 | + // (undocumented) |
| 124 | + text?: never; |
| 125 | +} |
| 126 | + |
104 | 127 | // @public
|
105 | 128 | export enum FinishReason {
|
106 | 129 | // (undocumented)
|
@@ -332,7 +355,7 @@ export class GenerativeModel {
|
332 | 355 | export function getGenerativeModel(vertexAI: VertexAI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
|
333 | 356 |
|
334 | 357 | // @public
|
335 |
| -export function getVertexAI(app?: FirebaseApp): VertexAI; |
| 358 | +export function getVertexAI(app?: FirebaseApp, options?: VertexAIOptions): VertexAI; |
336 | 359 |
|
337 | 360 | // @public (undocumented)
|
338 | 361 | export interface GroundingAttribution {
|
@@ -448,7 +471,7 @@ export interface ModelParams extends BaseParams {
|
448 | 471 | }
|
449 | 472 |
|
450 | 473 | // @public
|
451 |
| -export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart; |
| 474 | +export type Part = TextPart | InlineDataPart | FunctionCallPart | FunctionResponsePart | FileDataPart; |
452 | 475 |
|
453 | 476 | // @public
|
454 | 477 | export const POSSIBLE_ROLES: readonly ["user", "model", "function", "system"];
|
@@ -566,6 +589,12 @@ export interface VertexAI {
|
566 | 589 | location: string;
|
567 | 590 | }
|
568 | 591 |
|
| 592 | +// @public |
| 593 | +export interface VertexAIOptions { |
| 594 | + // (undocumented) |
| 595 | + location?: string; |
| 596 | +} |
| 597 | + |
569 | 598 | // @public
|
570 | 599 | export interface VideoMetadata {
|
571 | 600 | endOffset: string;
|
|
0 commit comments